| From | Sent On | Attachments |
|---|---|---|
| Patrik Björling Rygert | Jan 4, 2005 2:52 am | |
| Neeraj Bajaj | Jan 4, 2005 3:32 am | |
| Patrik Björling Rygert | Jan 4, 2005 3:46 am | |
| Sean Mullan | Jan 4, 2005 6:30 am | |
| Patrik Björling Rygert | Jan 4, 2005 8:03 am | |
| Tom Amiro | Jan 4, 2005 8:34 am | |
| Sean Mullan | Jan 4, 2005 8:44 am | |
| Patrik Björling Rygert | Jan 4, 2005 8:57 am | |
| Patrik Björling Rygert | Jan 4, 2005 9:29 am | |
| Patrik Björling Rygert | Jan 4, 2005 9:58 am | |
| Tom Amiro | Jan 4, 2005 10:26 am | |
| Neeraj Bajaj | Jan 4, 2005 7:57 pm | |
| Patrik Björling Rygert | Jan 5, 2005 1:57 am |
| Subject: | Re: javax.xml.parsers.FactoryConfigurationError | |
|---|---|---|
| From: | Neeraj Bajaj (Neer...@Sun.COM) | |
| Date: | Jan 4, 2005 7:57:09 pm | |
| List: | net.java.dev.jwsdp.users | |
It seems Tom you have hit at the root cause, Patrik let us know if this doesn't solve your problem.
Neeraj
Tom Amiro wrote:
Hi Patrik,
It sounds like you did not install JWSDP into your container. If you did, then <jwsdp_home>/jaxp/lib/endorsed would be on the C:LASSPATH known to your container and <jwsdp_home>/jaxb/lib/endorsed/xercesImpl.jar which contains the class com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl would be found.
It probably works with JDK 1.5 because the renamed com.sun.org.apache.internal.* jaxp classes are built-in. With JDK 1.4.x, the original org.apache jaxp classes are built-in. If you copy the jars from <jwsdp_home>/jaxp/lib/endorsed to <jdk_home>jre//lib/endorsed, the error should go away, but it would be better to make sure your container's CLASSPATH contains the JAXP 1.2.6 jars, which have the renamed com.sun.org.apache.internal.* classes. The JWSDP launcher for your container will take care of that, if you install (or integrate) JWSDP into one of the supported containers (Tomcat 5 for JWSDP, AS 8.0.0_01, or WS 6.1; see java.sun.com/webservices/containers.html).
Tom
Patrik Björling Rygert wrote:
More info on my problem:
When I debug I get to the org.apache.commons.modeler.util.DomUtil.readXml() method, which looks like this:
public static Document readXml(InputStream is) throws SAXException, IOException, ParserConfigurationException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false); dbf.setIgnoringComments(false); dbf.setIgnoringElementContentWhitespace(true); ....
The first line (DocumentBuilderFactory dbf = ...) is the one that fails. When I debug down in that call it wants the source for com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.
Does anybody have the source code for this class?
/Patrik
-----Original Message----- From: Sean Mullan [mailto:Sean...@Sun.COM] Sent: den 4 januari 2005 17:44 To: use...@jwsdp.dev.java.net Subject: Re: javax.xml.parsers.FactoryConfigurationError
What's the root cause/stack trace of the FactoryConfigurationError? i.e. -
FactoryConfigurationError.getException().printStackTrace();
--Sean
Patrik Björling Rygert wrote:
It shouldn't occur, but it does... I checked with the -verbose flag and there is no other xercesImpl.jar loaded.
When I call my XMLDsig code first of all that works fine, but later on my program reads another XML file and then I get this error.
This really puzzles me...
/Patrik
-----Original Message----- From: Sean Mullan [mailto:Sean...@Sun.COM] Sent: den 4 januari 2005 15:31 To: use...@jwsdp.dev.java.net Subject: Re: javax.xml.parsers.FactoryConfigurationError
This shouldn't occur if you are using the xercesImpl.jar bundled with JWSDP 1.5: jaxp/lib/endorsed/xercesImpl.jar. There is a services entry in the jar file (META-INF/services/javax.xml.parsers.DocumentBuilderFactory) that contains the classname implementation of the DocumentBuilderFactory. I would check your CLASSPATH or run your application with the java -verbose option to make sure you are not picking up a different xercesImpl.jar.
--Sean
Patrik Björling Rygert wrote:
I use JWSDP 1.5 FCS where JAXP RI 1.2.6 is included.
/Patrik
------------------------------------------------------------------------
*From:* Neeraj Bajaj [mailto:Neer...@Sun.COM] *Sent:* den 4 januari 2005 12:33 *To:* use...@jwsdp.dev.java.net *Subject:* Re: javax.xml.parsers.FactoryConfigurationError
Are you using JAXP 1.3 RI ?
Neeraj
Patrik Björling Rygert wrote:
I use XMLDsig successfully, but when I want to add the code to a project a get the following exception:
javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:130)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
at org.apache.catalina.loader.WebappLoader.init(WebappLoader.java:612)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:644)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4231)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.startup.Embedded.start(Embedded.java:846)
If I remove xercesImpl.jar from the classpath the project runs without problem (since I do not yet call the XMLDsig classes I made). But if add the xercesImpl.jar again I get the exception above.
Any clues?
Regards,
Patrik Björling Rygert





