Daniel Schulze writes:
 > Tom Cook wrote:
 > > 
 > > Hey all,
 > > 
 > > I have an ear file which I've packaged up and am trying to deploy.
 > > The server gives the output below (note that the 'm.xxx == yyy' is some
 > > tracing I've added).  I'm not worried about the problem jaws is having
 > > creating a table (that should work anyway, right?) but the fact that
 > > the context can not be created is a definite worry (this same war file
 > > is known to work if tomcat is standalone).  Any ideas?
 > > 
 > 
 > Seems to be a bug in EmbeddedTomcat - some unexpected runtime exception
 > is thrown there...
 > 
 > Once you are started hacking the code, could you wrap the content of the
 > EmbeddedTomcatService.deploy() method in a try-catch block and log the
 > exception that is thrown?
 > The trace of that exception would help more

OK, finally managed to get it (had some odd problems logging so I
wrote it to a file).  It says this:

java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParserFactory
        at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java)
        at org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader.java)
        at org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java)
        at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java)
        at org.apache.tomcat.startup.EmbededTomcat.initContext(EmbededTomcat.java)
        at 
org.jboss.tomcat.EmbeddedTomcatService.deploy(EmbeddedTomcatService.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:647)
        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:129)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:322)
        at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:258)
        at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:301)
        at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:92)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at 
org.jboss.dependencies.DependencyManager.startMBean(DependencyManager.java:284)
        at 
org.jboss.dependencies.DependencyManager.loadService(DependencyManager.java:261)
        at 
org.jboss.dependencies.DependencyManager.processService(DependencyManager.java:243)
        at 
org.jboss.dependencies.DependencyManager.startMBeans(DependencyManager.java:117)
        at org.jboss.Main.<init>(Main.java:162)
        at org.jboss.Main$1.run(Main.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.Main.main(Main.java:83)

This could be one of my servlets needing this, I guess (we've been
running it in stand-alone tomcat with all the lib stuff in
$TOMCAT-HOME/lib.  The SAXParserFactory class in definitely in
xerces.jar in lib/ext.  Is there some reason why EmbeddedTomcatService
and my contexts can't see these classes?

Tom


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to