users@jax-rpc.java.net

RE: JAXP Problem

From: Kevin Jones <kevinj_at_develop.com>
Date: Thu, 7 Apr 2005 08:47:42 +0100

JWSDP comes with it's own version of Xerces and Xalan, you may need to copy
the files from %JWSDP_HOME%/jaxp/endorsed to %JAVA_HOME%/jre/lib/endorsed

> I've tried using "wscompile -cp {xerces-path\xercesImpl.jar}", but it
appears to be ignoring it. Is there something I'm missing?

try -cp %JWSDP_HOME%/jaxp/lib;%JWSDP_HOME%/jaxp/lib/endorsed

although I don't remember ever having to do this but I've been running on
JDK 5.0 for a while,

Kevin Jones
http://public.xdi.org/=kevin.jones
skype (www.skype.com): kevinrjones

 


________________________________

        From: Mike Feldmeier [mailto:mfeldmeier_at_metadata.com]
        Sent: 06 April 2005 22:49
        To: users_at_jax-rpc.dev.java.net
        Subject: JAXP Problem
        
        

        Hi,

         

        I'm on XP using Java 1.4.2. I've installed the JWSDP with default
settings, and added the /bin to my path. Now typing wscompile ..., yields:

         

        XML parser factory has not been configured correctly: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl not found

                at
org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:116)

                at
org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:100)

                at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163
)

                at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:184)

                at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)

                at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)

                at
org.apache.commons.launcher.Launcher.start(Launcher.java:390)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

                at java.lang.reflect.Method.invoke(Method.java:324)

                at LauncherBootstrap.main(LauncherBootstrap.java:185)

        Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl not found

                at javax.xml.parsers.SAXParserFactory.newInstance(Unknown
Source)

                at
org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:114)

                ... 11 more

        --- Nested Exception ---

        javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl not found

                at javax.xml.parsers.SAXParserFactory.newInstance(Unknown
Source)

                at
org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:114)

                at
org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:100)

                at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163
)

                at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:184)

                at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)

                at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)

                at
org.apache.commons.launcher.Launcher.start(Launcher.java:390)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

                at java.lang.reflect.Method.invoke(Method.java:324)

                at LauncherBootstrap.main(LauncherBootstrap.java:185)

         

         

        I've tried using "wscompile -cp {xerces-path\xercesImpl.jar}", but
it appears to be ignoring it. Is there something I'm missing?

         

        Thanks,

        Mike

         


        --
        No virus found in this outgoing message.
        Checked by AVG Anti-Virus.
        Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 4/5/2005