users@jaxb.java.net

Re: SAX Exception in Websphere Server 4.0.1

From: Douglas Jackson <douglasscottjackson_at_yahoo.com>
Date: Wed, 21 May 2003 02:09:48 -0700

We have run into websphere problems with xerces
versions. There is one thing you can do to
guarantee that your choice of parsers are used in your
application. A runtime argument
...J2EEApplicationMode
(cant remember the exact argument com.ws...) set
to true in Websphere 4.0.3 and above. With this
setting you put all of your dependant jars inside
your ear file. In the Manifest for the war and
ejb jar, you need to add a classpath setting listing
the jars in the ear. In this manner we were able to
use the Xerces jar of our choice for our application.
It worked better in Weblogic than Websphere but that
should be no surprise. Websphere 4.0.3 had flakey
memory errors for us in this mode. With Weblogic no
special flag is needed to package ears in this manner.
-Doug.
--- Jos?_Ventura <ventura_at_cit.com.br> wrote:
> Hi all,
>
> I have an application using JAXB that runs fine on
> WSAD. However,
> when I try to deploy it to Websphere Server 4.0.1
> fixpack 5, I
> get the following exceptions.
>
> My guess is that WS has some internal implementation
> of the
> javax.xml.parsers classes or org.xml.sax and is
> using them
> instead of the (correct) sax.jar I have in my
> classpath.
>
> Anybody has any insights on this?
>
> []'s
> - ventura
>
> (huge stack trace follows)
>
> [03.05.19 14:21:02:591 GMT-03:00] 3fcd0ed0
> ServletInstan X SRVE0100E: Did not realize init()
> exception thrown by servlet StartupServlet:
> javax.servlet.ServletException:
> javax/xml/parsers/SAXParser.getXMLReader
> at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:817)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:137)
> at
>
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:243)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:103)
> at
>
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
> at
>
javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
>
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
> at
>
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:226)
> at
>
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
> at
>
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
> at
>
com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
> at
>
com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
> at
>
com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
> at
>
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:633)
> at
>
com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
> at
>
com.ibm.ws.runtime.Server.startModule(Server.java:615)
> at
>
com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:509)
> at
>
com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
> at
>
com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
> at
>
com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
> at
>
com.ibm.ejs.sm.active.ActiveObject.operateOnContainedObjects(ActiveObject.java:609)
> at
>
com.ibm.ejs.sm.active.ActiveEJBServer.startAction(ActiveEJBServer.java:730)
> at
>
com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
> at
>
com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
> at java.lang.reflect.Method.invoke(Native Method)
> at
>
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
> at
>
com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
> at
>
com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80)
> at
>
com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
> at com.ibm.CORBA.iiop.ORB.process(ORB.java:2294)
> at
> com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
> at
>
com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:95)
> at
>
com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
>
> [03.05.19 14:21:02:711 GMT-03:00] 3fcd0ed0 WebGroup
> X Servlet Error-[StartupServlet]: Failed to load
> servlet: java.lang.AbstractMethodError:
> javax/xml/parsers/SAXParser.getXMLReader
> at
>
javax.xml.bind.helpers.AbstractUnmarshallerImpl.getXMLReader(AbstractUnmarshallerImpl.java:88)
> at
>
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:139)
> at
>
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:186)
> at
>
br.com.cit.caf.core.config.Config.createCafConfig(Config.java:138)
> at
>
br.com.cit.caf.core.config.Config.init(Config.java:85)
> at
>
br.com.cit.caf.core.config.Config.init(Config.java:97)
> at
>
br.com.equifax.dataqa.StartupServlet.init(StartupServlet.java:61)
> at
>
javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:137)
> at
>
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:243)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:103)
> at
>
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
> at
>
javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
>
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
> at
>
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:226)
> at
>
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
> at
>
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
> at
>
com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
> at
>
com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
> at
>
com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
> at
>
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:633)
> at
>
com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
> at
>
com.ibm.ws.runtime.Server.startModule(Server.java:615)
> at
>
com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:509)
> at
>
com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
> at
>
com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
> at
>
com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
> at
>
com.ibm.ejs.sm.active.ActiveObject.operateOnContainedObjects(ActiveObject.java:609)
> at
>
com.ibm.ejs.sm.active.ActiveEJBServer.startAction(ActiveEJBServer.java:730)
> at
>
com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
> at
>
com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
> at java.lang.reflect.Method.invoke(Native Method)
> at
>
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
> at
>
com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
> at
>
com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80)
> at
>
com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
> at com.ibm.CORBA.iiop.ORB.process(ORB.java:2294)
> at
> com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
> at
>
com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:95)
> at
>
com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
>
> [03.05.19 14:21:02:881 GMT-03:00] 3fcd0ed0 WebGroup
> I SRVE0091I: [Servlet LOG]: ActionServlet: init
> [03.05.19 14:21:02:925 GMT-03:00] 3fcd0ed0 WebGroup
> I SRVE0091I: [Servlet LOG]: ActionServlet:
> Loading application resources from resource
> EquifaxBundle
> [03.05.19 14:21:02:925 GMT-03:00] 3fcd0ed0 WebGroup
> I SRVE0091I: [Servlet LOG]: ActionServlet:
> Initializing configuration from resource path
> /WEB-INF/struts-config.xml
> [03.05.19 14:21:02:931 GMT-03:00] 3fcd0ed0
> ServletInstan X SRVE0100E: Did not realize init()
> exception thrown by servlet ActionServlet:
> javax.servlet.ServletException: trying to refine
> class org/xml/sax/SAXParseException (bad class
> loader?)
> at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:817)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:137)
> at
>
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:243)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:103)
>
=== message truncated ===


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com