Topic: SAXParserFactory.getSchema() Excep

Exception :

javax.security.auth.login.LoginException: java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema()Ljavax/xml/validation/Schema;

Version Used in the application :

Tomcat : 5.0.28 Axis : 1.1 JDK(sun) : 1.4.2 Weblogic : 9.1

SOAP : 1.1 Xerces : 2.6

We are facing above failures,when trying to connect to weblogic server using Tomcat server as a web service.

Our application is deployed in the weblogic, when we directly access the application on weblogic server it is working fine.. but when we try to connect through Tomcat Server (Web service - SOAP and axis is deployed)

we getting javax.security.auth.login.LoginException.

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:124)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:98)

at weblogic.xml.jaxp.WebLogicSAXParser.<init>(WebLogicSAXParser.java:45)

at weblogic.xml.jaxp.WebLogicSAXParserFactory.newSAXParser(WebLogicSAXParserFactory.java:51)

at weblogic.rmi.internal.DescriptorManager.getDescriptorAsMap(DescriptorManager.java:176)

at weblogic.rmi.internal.DescriptorManager.getDescriptorAsMap(DescriptorManager.java:162)

at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:107)

at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:88)

at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:54)

at weblogic.rmi.extensions.server.ServerHelper.getRuntimeDescriptor(ServerHelper.java:332)

at weblogic.common.internal.RMIBootServiceStub.<clinit>(RMIBootServiceStub.java:29)

at weblogic.security.acl.internal.Security.authenticate(Security.java:177)

at weblogic.security.acl.internal.Security.authenticate(Security.java:146)

at weblogic.security.auth.Authenticate.authenticate(Authenticate.java:112)

It is working in Weblogic 8 version with same set-up.

We don't know why it gives this such exception.Can please help in this issue.

[2166 byte] By [elangovan_ba] at [2007-10-2 20:32:59]
# 1

You get this Exception if you use an incompatible JAXP implementation.

If you use the (ancient) jaxp implementation bundled with jdk1.4..2, one of the things you miss is the javax.xml.parsers.SAXParserFactory.getSchema() method. (see the lack of it at http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParserFactory.html )

In order to use a recent version of jaxp (e.g. 1.3, bundled with JWSDP) you will need to install the libraries (jaxp-api.jar, sax.jar, dom.jar, xercesImpl.jar, xalan.jar) and make sure they're preferred (by your classloader) above the default classpath by using the endorsed mechanism. See the jaxp faq for more info http://java.sun.com/webservices/jaxp/reference/faqs/index.html

Good luck!

iniminia at 2007-7-13 23:16:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...