JRE 1.4.2: how to override the default xml parser?
Hi all,
I have JRE 1.4.2_03 and I need to replace the default xml "crimson" parser with xerces because the former one doesn't properly handle utf-8 BOM.
Does anyone have an idea where I should look at for this kind of configuration?
I skimmed thorugh the oracle docs but couldn't find anything.
I found a link describing how to change the xml parser in OC4J, but my understanding is that this has little to do with what I am looking for.
I need to force Saxon 8.6.1, that is invoked by means of java.exe from the command line, to pick up the right xml parser.
Has anyone else tried this out already?
Alternatively, is it safe to install JRE 1.5 in place of JRE 1.4.2 on a Oracle 10.1.0.4 database?
I am told that JRE 1.5 uses a different xml parser that should fix my problem.
Bye,
Flavio
I sorted this out myself.
Downloaded the latest stable xerces binary (2.5.0) from http://xml.apache.org/dist/xerces-j/
Then I extracted xercesImpl.jar and put it under:
%ORACLE_HOME%\LIB\endorsed
I had to create the endorsed folder as it didn't exist.
Then, when invoking Saxon using java.exe, I added the following switch:
-Djava.endorsed.dirs=%ORACLE_HOME%\LIB\endorsed
That's it.
You can find some background info on:
https://jaxp.dev.java.net/Updating.html
Bye,
Flavio
Similar Messages
-
How to override the default height of tree component...
Hi,
Can anyone please tell me how to override the default height of <af:tree> component.
Actual Problem:
I have a PanelBox in which I have a ShowDetail component. ShowDetail contains Tree component. When I click on ShowDetail item the Tree component have to be displayed. But, PanelBox is expanding to TREE default height(27.27 ems) instead of expanding to exact height of Tree.
How to manage this issue?
Thanks
-SukumarDid you already try
<af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
var="node"
selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
rowSelection="none" rowBandingInterval="0"
inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
Julian -
How to override the default delete operation
Hi,
I am new to Jheadstart, java coding for that matter.
Here's my situation,
I have a view which is based on a function (function returns a collection).
I have created instead of triggers on this view to perform insert/update/delete operations.
All these DML operations work as expected in Oracle database.
Now, I created an Entity object and a view object on this view in my jheadstart project.
When I run this Jheadstart application my insert and search operations run fine but update and delete operations fail with JBO-26080 error.
The underlying oracle error is "ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc."
I know that delete and update operations work fine in Oracle and hence I would like to override the default Jheadstart operations. Can any body tell me how can I do it or point me in right direction?Hi,
From the JHeadstart Developer's Guide, chapter TroubleShooting - Problem Assessment:
If you are getting a JBO error (Business Components for Java error), try to perform the same data retrieval or data manipulation action using the BC4J Tester. You can
invoke the tester through a right-mouse-click on the BC4J application module. If you get the same error using the BC4J tester, the problem is in the BC4J object definitions. If you added business rules, or other custom code to your BC4J objects that executes during your data retrieval or data manipulation action, you can debug this code line-by-line by running the tester in debug mode. You can also look up the JBO error in the JDeveloper online help, for each error possible causes and how to solve them are described.
It sounds to me like you will also get this error in the BC4J Tester. This means that the problem is not related to JHeadstart. You can go to the JDeveloper discussion forum http://otn.oracle.com/discussionforums/jdev.html and ask your question there without mentioning JHeadstart. Maybe there is some switch you can set in the BC4J object to let BC4J not use SELECT FOR UPDATE.
Hope this helps,
Sandra Muller
JHeadstart Team -
How to override the 'default' partition in composite.xml - urgent
All,
Version: 11.1.1.4
I have created a simple BPEL A which invokes another BPEL B which is deployed to 'default' partition. In the composite.xml of BPEL A I can see the WSDL location of BPEL B as *"http://localhost:7001/soa-infra/services/default/BPELB/BPELB.wsdl"*. I noticed that the name of the partition (i.e in our case its 'default') is hardcoded in the wsdl location. During deployment I want to override to other partition, how I can achieve this?
thanks
senIf you want to change the partion name at run time then used Token ,value concept and define it in build.xml
For Example
<target name="replaceAllValues">
<input
message="Please enter full path of the file directory:"
addproperty="dirPath"/>
<replace dir="${dirPath}">
<replacefilter
token="OldValue."
value="Newvalue"/>
</replace>
</target>
Call the above target from ant build.xml before you deploying the service.
Regards,
Tarak. -
How to override the default "required" attribute for the UIComponent?
Hi, consider the following markup: <h:inputText id="txt_firstName" value="#{myBean.firstName}" required="true"/>
if I leave this field empty and hit the submit button, the required validator will fire an error msg. If however, I leave an empty space in the text box and hit submit button, it will go through no problem.
I'd like to override the required attribute, so it will trim the spaces first before decide if it really is empty:
//whatever the name of the method i'm overriding....
String value = (String)value;
if(value==null)throw new ValidatorException(whateverDefinedInTheBundle);
value = value.trim();
if(value.length==0)throw new ValidatorException(whateverDefinedInTheBundle);
How can I go about doing that?
Thank you.Did you already try
<af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
var="node"
selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
rowSelection="none" rowBandingInterval="0"
inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
Julian -
Hello Experts,
How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
How do I do that?Sorry settings in inforecord problem.
-
HT201448 How to override the default order of Websites, Wiki, and Xcode services?
Greetings,
On my Mac server, I have the Websites, Wiki, and Xcode services all enabled but, as detailed by the Apple support article, Xcode takes precedence over all, or Wiki if Xcode is disabled.
What I would like to see is a virtual host (e.g. wiki.myhost.com) and/or directory alias (www.mydomain.com/xcode) that opens the home page for the respective service while the default (e.g. www.mydomain.com) goes to the home page for mydomain.com.
I'm no httpd configuration expert but I expect some manual httpd configuration will be required. Any help appreciated.At the end, I decided to adopt Firefox add-on "Classic Theme Restore"—amazing output. I guess it is impossible to get such a space saving but full furnished solution somehow else.
-
Anyone out there know how i can fix the xml parsing error on football manager 2011? It's wrecking my excellent 4th season and even a delete and reinstall with new game hasn't worked
Have you tried Windows Update in the Control Panel?
Many times it will find the newest supported drivers for Hardware.
Just be sure to install everything not just the Important ones.
Let us know if this helps. -
How to override the default SOAP envelope prefix?
I have a Web service as an external reference. In run-time WebLogic generates SOAP messages with a default prefix <env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/”…>. Normally this is fine. However the Web service required a prefix as <soapenv:…>. How can I have WebLogic generate soap envelope prefix as soapenv instead env?
hello!
It's possible. You must implement handler and change envelope and body prefix. Here is example:
public class WsHandler implements SOAPHandler<SOAPMessageContext> {
public boolean handleMessage(SOAPMessageContext context) {
Boolean outboundProperty =
(Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
if (outboundProperty.booleanValue()) {
try {
SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
envelope.setPrefix("soapenv");
envelope.removeNamespaceDeclaration("env"); //remove old prefix
envelope.getBody().setPrefix("soapenv");
context.getMessage().saveChanges();
} catch (Exception e) {
throw new ProtocolException(e);
} -
How to change the default JRE when there are several version of JRE in Sys
How to change the default JRE when there are several version of JRE in System?
i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
Now the JRE is jdk1.3\bin
When run class that was compiled with jdk1.5,throw:
java.lang.UnsupportedClassVersionError
How can i change the jre to 1.5?There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
Excerpts from sun docs:
However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
Example:
Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
Details are here
http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
Will update if i find more information -
one of my kids changed my password, and now i can't access my mail accounts. Any ideas on how to override the password and set up a new one?
A mail account password or you login password?
Which OS by the way? -
How to change the default structure when exporting data in CSV format?
Hello,
can some one tell us how to change the default structure in CRM when exporting lists in CSV format (with Option "Always use unformatted list format (CSV) for download" ? Because we want to add a new structure for our own -is it possible ?
If it is possible where can we find these structure ? In the blueprint customizing ?
Thank you very much,
ChristianThere is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
Excerpts from sun docs:
However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
Example:
Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
Details are here
http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
Will update if i find more information -
How to change the default KeyBinding of the TableView ?
how to change the default key binding of the TableView ?
When press Enter key on a editable TableView, the default action is to make the selceted cell to a editing state. I want to know if there is any way to make it select the right cell and wouldn't change the editing state of the selected cell when i press Enter key.
here is something i've done.
table.setOnKeyPressed(new EventHandler<KeyEvent>() {
@Override
public void handle(KeyEvent e) {;
table.requestFocus();
KeyCode code =e.getCode();
if(code == KeyCode.ENTER){
try {
new Robot().keyPress(java.awt.event.KeyEvent.VK_RIGHT);//XXX
} catch (Exception e1) {
Thanks,
ahiwoo
Edited by: 911579 on 2012-2-1 上午3:15
Edited by: 911579 on 2012-2-1 上午6:26
Edited by: 911579 on 2012-2-1 上午6:41thanks jsmith. now it works well.
table.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
@Override
public void handle(KeyEvent e) {
table.requestFocus();
KeyCode code =e.getCode();
if(code == KeyCode.ENTER){
try {
new Robot().keyPress(key);//XXX javafx has no robot for key type...
} catch (Exception e1) {
e.consume();
}); -
How do change the default "Save As" from PSD to JPG?
I know a while back, Photoshop was offering to save my files as JPEGs as default. But now it defaults to saving as a PSD file, and I am having some difficulty figuring out how to make it save as a JPG file instead.
OS: CS 5.1 Production Premium, Mac
Adobe Photoshop 5.1
Thanks!Some of the posters up in this thread implied that this is a problem and/or is somehow not logical (yes, I know some of the posts are old).
That's not the case. There actually is rhyme and reason. Understanding it could help you make better decisions while using Photoshop.
Photoshop has a concept that you will be working with master documents and occasionally saving copies as work products. Conceptually a master document is saved into a file and loaded from a file so that it maintains all the features you added while editing.
So Photoshop considers that JPEG can actually house a master document IF (and only if) all the features of your document can be saved in the JPEG format. For this to be true, the document has to be a flat single layer, 8 bits/channel, and without other things such as extra channels. It can have paths.
Here's the logic as I understand it:
IF the last time you saved or opened the master document you're working on you saved it as a JPEG, and IF all the features currently in the document can be saved as a JPEG, your default format in the File - Save As menu will be JPEG.
If you change or add something in the document - say create a layer (or turn the Background into a layer), add a channel, or increase the bit depth to 16 - the next time you try to save it Photoshop will offer to save it in e.g., PSD format, since that format is now needed to save and re-load all the additional features of the document that you have added. At this point, if you override the default format and change it to JPEG, you'll find the [ ] As a Copy option will be automatically be given a checkmark which you can't change, indicating you cannot save all the current document features in that format.
For brand new documents you've just created, I believe Photoshop simply checks to see if the current document can be completely saved in the last master document format you saved something else in successfully, and offers that as the default if everything about the document will "fit" in that format. So if a few minutes ago you saved a JPEG master document, then you created a new flattened image in 8 bits/channel and now you do File - Save As, it will offer JPEG as the default choice.
Someone please correct me if I've missed anything here.
-Noel -
HOW TO override/modify default PTG homepage?
Hi:
I want to know how to override default portal to go homepage. I've create my wireless app that is already well deployed in a container and already working in PTG. I want to know how to modify the default ptg home. I've removed all apps from ptg to the guests users and just give access to guest to my application. I need a simple default homepage and i need to remove the SETUP link that is always displayed in /PTG/RM page. Also, can anyone tell me how to create a simple url to access my wireless portal?
for instance i have to write : portal.myorg.pt/ptg/rm and i would like to just hae to write : wire.morg.pt
How can i achieve this?
Thanks
JoaoI'm using a beta of 10G at the moment. What I did is change the oracle logo (logo.gif) with our own company's logo (http://host:port/ptg/images/logo.gif) (also the wbmp and png file) .
If you can get access to the webtool http://host:port/webtool/login.uix you can click on the system tab and look for
System > Wireless Server: Administration > Device (look at component configuration).
From here you can enable/disable standard interface options
Multi-Channel Server Setup Menu Configuration
Enable Login
Enable Logout
Enable User Info
Enable Application Customization
Enable Global Preset
Enable User Profile
Enable Self Registration
Enable User's Home Page
Enable Help
Help URL
You can change the logon page and other pages on <oracle_home>\wireless\j2ee\applications\ptg\ptg-web\modules\login
and
<oracle_home>\wireless\j2ee\applications\ptg\ptg-web\modules\iaswfr
I'm also curious if there is a more easy way to customize things.
Thomas
Maybe you are looking for
-
Re: Satellite U400-11Q with Vista has new HDD but no recovery disk
Hi, Before I start a very important message: I usually don't work with pc...:-) At my work we have an IT-department for our PC's :-)) However, now I have to work privately with a PC/ notebook and I need help: I am sitting in front of a Toshiba Satell
-
When I used to receive emails it would make a beep now it doesn't make any noise
it will not even make the *whoosh* sound anymore. My volume is up I checked the mail settings and the sound were all on, then I checked the system prefreces in the sounds menu and that appeared to be fine Any suggestions?
-
How do i get rid of the other on my iphone?
Hey all, I have 3.18 gb of other on my iphone and I don't know how to get rid of it to make some room on my phone. Do you all have any tips?
-
Firefox recommends I download .exe software to fix threats but I am on a Mac I received a security alert for a number of high level threats. I want to download the software to erase these items but the firefox software is .exe What can I do? I am on
-
Can anyone tell me how to find what OS I'm using on the Mac? Tiger or Leopard? Also, how do I update from 10.6.8 to the latest version?