RE: [JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12

2002-10-01 Thread Matthew Baird

ugg. Turned out to be a copy of commons-digester.jar put in jboss server/default/lib 
conflicting with the one in tomcat/server/lib, 4.1 has this jar, while the older 
tomcat didn't.

Strange that it didn't happen on every startup, and the error message wasn't very 
helpful. I should have done a jar-by-jar compare before I deployed.

m

-Original Message-
From: Matthew Baird 
Sent: Tuesday, October 01, 2002 3:45 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12


If I stick my .war file in the deploy directory, then startup jboss everything is 
fine. If I stop jboss and restart, I get an exception NoSuchMethodException: No such 
accessible method: addDefaultContext() on object: 
org.apache.catalina.core.StandardHost.

if I delete the tmp/deploy directory, I can restart JBoss/Tomcat perfectly and use the 
web-app.

I am on windows 2000 fwiw.

To reproduce:
1. put the examples.war (ships with some tomcats) in the deploy dir.
2. start Jboss
3. repeat if necessary :)

you should get the addDefaultContext problem about 8% of the time. I can't figure out 
why it doesn't crash all the time. I believe this also occurs with unpacked wars. 
Certainly it's NOT happening every time, but I still think this is probably a pretty 

anyone else seeing this error? I'm dl'ing the jboss code right now and will look into 
it, but at first glance I'm guessing someone is calling the addDefaultContext method 
reflectively and that's why this isn't failing at compile-time.

regards,
Matthew

stack
14:46:18,595 INFO  [EmbeddedCatalinaService41] Creating
14:46:18,605 INFO  [EmbeddedCatalinaService41] Created
14:46:18,605 INFO  [EmbeddedCatalinaService41] Starting
14:46:19,736 ERROR [Digester] End event threw exception
java.lang.NoSuchMethodException: No such accessible method: addDefaultContext() on 
object: org.apache.catalina.core.Stan
dardHost
at 
org.apache.commons.beanutils.MethodUtils.invokeExactMethod(MethodUtils.java:334)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:170)
at org.apache.commons.digester.Digester.endElement(Digester.java:829)
at org.jboss.web.catalina.LoggedXmlMapper.endElement(LoggedXmlMapper.java:65)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1047)
at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:447)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:173)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)
at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:132)
at 
org.jboss.web.catalina.EmbeddedCatalinaService41.initCatalina(EmbeddedCatalinaService41.java:348)
at 
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(EmbeddedCatalinaService41.java:249)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy5.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:397)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at 

RE: [JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12

2002-10-01 Thread Liam Magee

Hi Matthew,

The embedded catalina service for Tomcat 4.1.x uses the
org.apache.commons.digester.* package for setting up the Tomcat config.
The org.jboss.web.catalina.ConfigHandler does this. I haven't had this
problem, and I don't know why it might be happening intermittently. Have
you changed the tomcat-service.xml file from the default?

Regards,

Liam.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Matthew
Baird
Sent: Wednesday, October 02, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12


If I stick my .war file in the deploy directory, then startup jboss
everything is fine. If I stop jboss and restart, I get an exception
NoSuchMethodException: No such accessible method: addDefaultContext()
on object: org.apache.catalina.core.StandardHost.

if I delete the tmp/deploy directory, I can restart JBoss/Tomcat
perfectly and use the web-app.

I am on windows 2000 fwiw.

To reproduce:
1. put the examples.war (ships with some tomcats) in the deploy dir. 2.
start Jboss 3. repeat if necessary :)

you should get the addDefaultContext problem about 8% of the time. I
can't figure out why it doesn't crash all the time. I believe this also
occurs with unpacked wars. Certainly it's NOT happening every time, but
I still think this is probably a pretty 

anyone else seeing this error? I'm dl'ing the jboss code right now and
will look into it, but at first glance I'm guessing someone is calling
the addDefaultContext method reflectively and that's why this isn't
failing at compile-time.

regards,
Matthew

stack
14:46:18,595 INFO  [EmbeddedCatalinaService41] Creating 14:46:18,605
INFO  [EmbeddedCatalinaService41] Created 14:46:18,605 INFO
[EmbeddedCatalinaService41] Starting 14:46:19,736 ERROR [Digester] End
event threw exception
java.lang.NoSuchMethodException: No such accessible method:
addDefaultContext() on object: org.apache.catalina.core.Stan dardHost
at
org.apache.commons.beanutils.MethodUtils.invokeExactMethod(MethodUtils.j
ava:334)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:170)
at
org.apache.commons.digester.Digester.endElement(Digester.java:829)
at
org.jboss.web.catalina.LoggedXmlMapper.endElement(LoggedXmlMapper.java:6
5)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Transfor
merIdentityImpl.java:1047)
at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:447)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:173)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transform
erIdentityImpl.java:325)
at
org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:
132)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.initCatalina(EmbeddedCa
talinaService41.java:348)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(EmbeddedCa
talinaService41.java:249)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
spatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController
.java:976)
at $Proxy5.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:397)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
spatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
spatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)