Hi I am currently porting an application from WebSphere 5.1 to JBoss 4.0, but am having problems getting it deployed on JBoss. The application uses EJB's and a great deal of XML parsing, and has been working for many years already on WebSphere.
The application is packed in an ear, with a war and several jar within it. When i try to deploy I get the following error: | 09:59:57,390 ERROR [Digester] Digester.getParser: | java.lang.ClassCastException | at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:26) | at org.apache.commons.digester.Digester.getFactory(Digester.java:478) | at org.apache.commons.digester.Digester.getParser(Digester.java:683) | at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891) | at org.apache.commons.digester.Digester.parse(Digester.java:1591) | at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1112) | at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) | at javax.servlet.GenericServlet.init(GenericServlet.java:211) | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) | at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) | ... | 09:59:57,406 ERROR [Engine] ----- Root Cause ----- | java.lang.NullPointerException | at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891) | at org.apache.commons.digester.Digester.parse(Digester.java:1591) | at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1112) | at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) | at javax.servlet.GenericServlet.init(GenericServlet.java:211) | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) | at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) | 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) | However, when I remove the xmlparserv2.jar from the ear, the error changes to: | [Loaded org.jboss.management.j2ee.statistics.StatelessSessionBeanStatsImpl] | 09:51:01,359 INFO [TomcatDeployer] deploy, ctxPath=/formsolution/xmltf, warUrl=file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp5041185598026612330f | ormsolution.ear-contents/xmltransform-exp.war/ | [Loaded org.apache.log4j.spi.AppenderAttachable] | [Loaded org.apache.log4j.Category] | [Loaded org.apache.log4j.Logger] | [Loaded org.apache.catalina.authenticator.FormAuthenticator] | [Loaded sun.reflect.GeneratedConstructorAccessor28] | [Loaded org.apache.struts.action.ActionServlet] | [Loaded java.lang.ClassCircularityError from C:\j2sdk1.4.2_19\jre\lib\rt.jar] | 09:51:01,468 INFO [Engine] StandardContext[/formsolution/xmltf]Marking servlet action as unavailable | 09:51:01,468 ERROR [Engine] StandardContext[/formsolution/xmltf]Servlet /formsolution/xmltf threw load() exception | javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996) | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) | at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | .... | 09:51:01,484 ERROR [Engine] ----- Root Cause ----- | java.lang.NoClassDefFoundError: org/xml/sax/SAXException | at java.lang.Class.getDeclaredConstructors0(Native Method) | at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618) | at java.lang.Class.getConstructor0(Class.java:1930) | at java.lang.Class.newInstance0(Class.java:278) | at java.lang.Class.newInstance(Class.java:261) | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987) | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) | at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | Does anybody have an idea on how I can fix this? I've been at it for a couple of days and starting to get a little fed up... -Petter View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220147#4220147 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220147 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user