context.xml: ClassNotFoundException

T

tremalnaik

Hello, I have a problem with Tomcat 5.5
I created a file CiccioPasticcio.war with my application. I have to
filter user requests using Tomcat Valves, so I wrote a context.xml file
with the following

<Context cookies="true" crossContext="false" >
<Valve
className="com.ciccio.pasticcio.web.valve.LoginErrorMessageValve" />
<Valve
className="com.ciccio.pasticcio.web.valve.LicenseRequirementsValve" />
<Valve className="com.ciccio.pasticcio.web.valve.TomcatFixValve" />
</Context>

The file is in the folder

CiccioPasticcio.war\META-INF\context.xml

The Va;ve classes are in the war into the following locations:

CiccioPasticcio.war\WEB-INF\classes\com\ciccio\pasticcio\web\valve\LoginErrorMessageValve.class
......

When I start tomcat I have the following

SEVERE: Begin event threw exception
java.lang.ClassNotFoundException:
com.ciccio.pasticcio.web.valve.LoginErrorMess
ageValve
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
........
SEVERE: Parse error in default web.xml
java.lang.ClassNotFoundException:
com.ciccio.pasticcio.web.valve.LoginErrorMess
ageValve
.....

can you help me?

TREMALNAIK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top