Can't run or debug web app anymore in 977

I seem to no longer be able to run a web app using the built in Tomcat integration anymore. It used to work just fine prior to 663 (when I lost debug support but the run functionality still worked). Any ideas? It works fine when running/debugging externally in Tomcat. Here is the error I get...

C:/j2sdk1.4.0_01\bin\javaw.exe -Djava.endorsed.dirs=C:\ApacheTomcat4_0_4\bin;C:\ApacheTomcat4_0_4\common\lib -Dcatalina.base="C:\Documents and Settings\arifb\.IntelliJIdea\system\tomcat_prenet_9b2cc9a9" -Dcatalina.home=C:\ApacheTomcat4_0_4 -Djava.io.tmpdir=C:\ApacheTomcat4_0_4\temp -classpath "C:\j2sdk1.4.0_01\lib\tools.jar;C:\ApacheTomcat4_0_4\bin\bootstrap.jar;C:\j2sdk1.4.0_01\jre\lib\rt.jar;C:\j2sdk1.4.0_01\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.0_01\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.0_01\jre\lib\ext\localedata.jar;C:\j2sdk1.4.0_01\jre\lib\ext\sunjce_provider.jar;C:\ApacheTomcat4_1\common\lib;C:\ApacheTomcat4_1\server\lib\catalina-ant.jar;C:\ApacheTomcat4_1\server\lib\catalina.jar;C:\ApacheTomcat4_1\server\lib\commons-beanutils.jar;C:\ApacheTomcat4_1\server\lib\commons-digester.jar;C:\ApacheTomcat4_1\server\lib\commons-logging.jar;C:\ApacheTomcat4_1\server\lib\commons-modeler.jar;C:\ApacheTomcat4_1\server\lib\jaas.jar;C:\ApacheTomcat4_1\server\lib\jakarta-regexp-1.2.jar;C:\ApacheTomcat4_1\server\lib\mx4j-jmx.jar;C:\ApacheTomcat4_1\server\lib\servlets-common.jar;C:\ApacheTomcat4_1\server\lib\servlets-default.jar;C:\ApacheTomcat4_1\server\lib\servlets-invoker.jar;C:\ApacheTomcat4_1\server\lib\servlets-webdav.jar;C:\ApacheTomcat4_1\server\lib\tomcat-coyote.jar;C:\ApacheTomcat4_1\server\lib\tomcat-http11.jar;C:\ApacheTomcat4_1\server\lib\tomcat-jk.jar;C:\ApacheTomcat4_1\server\lib\tomcat-jk2.jar;C:\ApacheTomcat4_1\server\lib\tomcat-util.jar;C:\ApacheTomcat4_1\server\lib\tomcat-warp.jar;C:\arif\eng\java\src\ServiceProviderCC\build\WEB-INF\classes;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\classes12.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\jakarta-regexp-1.2.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\jdbcpool-20011114.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\junit.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\junitee.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\log4j-core.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\log4j.jar;C:\ApacheTomcat4_0_4\common\lib\servlet.jar;C:\IntelliJ-IDEA-977\lib\idea_rt.jar" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=p005011-0167:3743,suspend=y org.apache.catalina.startup.Bootstrap startException during startup processing
java.lang.reflect.InvocationTargetException
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)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/ArrayStack
at org.apache.commons.digester.Digester.]]>(Digester.java:189)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
at org.apache.catalina.startup.Catalina.start(Catalina.java:441)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more
Process terminated with exit code 2

4 comments

BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tomcat 4.0.x debugging is busted, I've filed a bug about it. Nothing
fixed yet.

use Tomcat 5, it works fine.

R

Arif Butt wrote:
| I seem to no longer be able to run a web app using the built in Tomcat
integration anymore. It used to work just fine prior to 663 (when I lost
debug support but the run functionality still worked). Any ideas? It
works fine when running/debugging externally in Tomcat. Here is the
error I get...
|
| C:/j2sdk1.4.0_01\bin\javaw.exe
-
-Djava.endorsed.dirs=C:\ApacheTomcat4_0_4\bin;C:\ApacheTomcat4_0_4\common\lib
- -Dcatalina.base="C:\Documents and
Settings\arifb\.IntelliJIdea\system\tomcat_prenet_9b2cc9a9"
- -Dcatalina.home=C:\ApacheTomcat4_0_4
- -Djava.io.tmpdir=C:\ApacheTomcat4_0_4\temp -classpath
"C:\j2sdk1.4.0_01\lib\tools.jar;C:\ApacheTomcat4_0_4\bin\bootstrap.jar;C:\j2sdk1.4.0_01\jre\lib\rt.jar;C:\j2sdk1.4.0_01\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.0_01\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.0_01\jre\lib\ext\localedata.jar;C:\j2sdk1.4.0_01\jre\lib\ext\sunjce_provider.jar;C:\ApacheTomcat4_1\common\lib;C:\ApacheTomcat4_1\server\lib\catalina-ant.jar;C:\ApacheTomcat4_1\server\lib\catalina.jar;C:\ApacheTomcat4_1\server\lib\commons-beanutils.jar;C:\ApacheTomcat4_1\server\lib\commons-digester.jar;C:\ApacheTomcat4_1\server\lib\commons-logging.jar;C:\ApacheTomcat4_1\server\lib\commons-modeler.jar;C:\ApacheTomcat4_1\server\lib\jaas.jar;C:\ApacheTomcat4_1\server\lib\jakarta-regexp-1.2.jar;C:\ApacheTomcat4_1\server\lib\mx4j-jmx.jar;C:\ApacheTomcat4_1\server\lib\servlets-common.jar;C:\ApacheTomcat4_1\server\lib\servlets-default.jar;C:\ApacheTomcat4_1\server\lib\servlets-invoker.jar;C:\ApacheTomcat4_1\server\lib\servlets-webdav.jar;C:\ApacheTomcat4_1\server\lib\tomcat-coyote.jar;C:\Ap
acheTomcat4_1\server\lib\tomcat-http11.jar;C:\ApacheTomcat4_1\server\lib\tomcat-jk.jar;C:\ApacheTomcat4_1\server\lib\tomcat-jk2.jar;C:\ApacheTomcat4_1\server\lib\tomcat-util.jar;C:\ApacheTomcat4_1\server\lib\tomcat-warp.jar;C:\arif\eng\java\src\ServiceProviderCC\build\WEB-INF\classes;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\classes12.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\jakarta-regexp-1.2.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\jdbcpool-20011114.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\junit.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\junitee.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\log4j-core.jar;C:\arif\eng\java\src\ServiceProviderCC\web\WEB-INF\lib\log4j.jar;C:\ApacheTomcat4_0_4\common\lib\servlet.jar;C:\IntelliJ-IDEA-977\lib\idea_rt.jar"
- -Xdebug -Xnoagent -Djava.compiler=NONE
- -Xrunjdwp:transport=dt_socket,address=p005011-0167:3743,suspend=y
org.apache.catalina.startup.Bootstrap startException during startup
processing
| java.lang.reflect.InvocationTargetException
| 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)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
| Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/collections/ArrayStack
| at org.apache.commons.digester.Digester.]]>(Digester.java:189)
| at
org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:441)
| at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
| at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
| ... 5 more
| Process terminated with exit code 2
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/uRnY+cV9vuB27SARApZ6AJ0Xh2/103O1ewgFskK2ZV3Ue3pbtACfa/3A
JEkVo0N5kDOqlYUdoafvKSo=
=EuVy
-


END PGP SIGNATURE-----

0

Actually I found what my original problem was. Somehow IntelliJ found an tomcat 4.1 version and added it to it's classpath as well as the 4.0 version I was intending to use. I renamed the 4.1 installation directory and all was then okay. run/debug now seems to fine in both 4.0 and 5.0

0

BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

huh really? I gotta check that then.

R

Arif Butt wrote:
| Actually I found what my original problem was. Somehow IntelliJ found
an tomcat 4.1 version and added it to it's classpath as well as the 4.0
version I was intending to use. I renamed the 4.1 installation directory
and all was then okay. run/debug now seems to fine in both 4.0 and 5.0
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/uXtK+cV9vuB27SARAq8LAJ96Vdn04RiOn39w9PosXKA/Y9wM8gCggc01
B3wIlbsKEjd1mcjrBdCRpow=
=VRwh
-


END PGP SIGNATURE-----

0

Please sign in to leave a comment.