You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thibaut <la...@ifrance.com> on 2006/01/05 17:59:16 UTC

jar not loaded

Hi,

When I load my struts application with tomcat I have this information :
"
5 janv. 2006 17:57:25 org.apache.catalina.loader.WebappClassLoader 
validateJarFile
INFO: 
validateJarFile(/home/toto/workspace/cvdunetV51/WEB-INF/lib/servlet.jar) 
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
javax/servlet/Servlet.class
"

What does it mean ?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: jar not loaded

Posted by Wendy Smoak <ws...@gmail.com>.
On 1/5/06, Thibaut <la...@ifrance.com> wrote:

> When I load my struts application with tomcat I have this information :
> "
> 5 janv. 2006 17:57:25 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(/home/toto/workspace/cvdunetV51/WEB-INF/lib/servlet.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
> "
>
> What does it mean ?

You've included servlet.jar in your web application.  Tomcat is
refusing to load the classes and telling you where in the
specification to find more information.

The container provides the Servlet and JSP api and implementation to
your webapp, you should not include it in WEB-INF/lib.

(Any chance you're building with Maven 2?  If so, you're probably
picking up a transitive dependency from a project that didn't tag the
Servlet api as having 'provided' scope.  Use -X on the command line to
track it down.)

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org