Tomcat Deployer throws NoClassDefFoundError for DigesterFactory

2004-09-24 Thread Mikko Hämäläinen
Hi,

I'm trying to run the Tomcat Deployers (Tomcat 5.0.28, Ant 1.6.2,
Windows 2000 Pro  Cygwin shell) default Ant script for my web
application. For some reason, the validator-task fails every time
with a NoClassDefFoundError. If I comment the task out, everything
works fine.

I've set the properties webapp and path to my app's root dir and
context-path, respectively. Otherwise, the deployer is out-of-box,
i.e. just extracted to some directory.

Below's the stack trace got with ant -v, any suggestions?

---clip---
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:92)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
... 5 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:92)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
---clap---

Regards,

-mikko

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: security hole on windows tomcat?

2003-08-14 Thread Mikko Hämäläinen
Hi,
I use Tomcat 4.1.18 on win2k and it seems to be safe, I also tested that
with Tomcat 4.0.1 on Redhat and it was ok too..


- Original Message -
From: Paul Sundling(Webdaddy) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 7:00 AM
Subject: security hole on windows tomcat?


 I came across what appears to be a security hole when running tomcat.
 I'm not sure how widespread it is, but my linux server is safe, yet my
 windows XP, tomcat 4.1.24 is vulnerable.

 I found that if you append %20 to a jsp page it shows the source code
 instead of displaying the page:

 http://192.168.1.54:8080/index.jsp  shows page as expected
 http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp

 So how widespread is this?

 Paul Sundling


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]