• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

See Servlet Spec 2.3, section 9.7.2.

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to install a ebXML server (freebXML, an opensourse MSH). there i get the following error.

INFO: Installing web application at context path /msh from URL jar:file:D:\Java\jwsdp-1.3\webapps\msh.war!/
Jun 18, 2004 6:23:15 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(D:\Java\jwsdp-1.3\work\Catalina\localhost\msh\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class


I read in newsgroups that this is caused by the servlet.jar in WEB-INF/liba nd need to remove it. Therefore I removed this .jar and start the tomcat again. However problems sits as same and during the startup of the tomcat it coppies a new servlet.jar to WEB-INF/lib folder.

I would be realy gratefull if anybody could help on this.

regards
chami
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just ignore this warning. It will not interfere on anything.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've probably included e.g. servlet-api.jar in the runtime library (in the .WAR) - you only need it for build time.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same problem, and removed the servlet-api.jar from my web app (as described by the previous author) and then it worked.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a similar problem, however this time it is actually causing my context to not load:

...
INFO: validateJarFile(C:\Drive\TeamSite\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jan 20, 2005 3:25:53 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 20, 2005 3:25:53 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
...

Any ideas here? Does this mean that I have something included in a runtime library that I shouldn't? And if so, how do I remove it?

Many Thanks!
b
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just delete the j2ee.jar file from WEB-INF/lib

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody!

I have this "Offending class: javax/servlet/Servlet.class" problem too.

I'm working on a Servlet that generates the code-source of an apache Servlet and then compile it. The generated Servlet source-code needs some stuff i have developped in an external libraries that has been compiled with ant.

So this particular .jar files includes my own libraries and the apache libraries in order to work.

I have a .bat file that is executed by my application that conatains the line :
javac -cp lib/my.jar -d classes src/generatedServlet.java.

When I execute this command in the dos prompt shell, everything works well.

But when this command is executed inside the java programm, I have this very annoying offending class error...

Any Ideas ?

PS : I hope I am understandable, my english is poor... By the way if you notice bad mistakes, correct me please, it would be very appreciated!
[originally posted on jforum.net by IndyGroumpf]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just ignore the warning - it should not prevent your application of working.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sadly, it does...

I have the "offending class" error and the generated java class is not compiled
[originally posted on jforum.net by IndyGroumpf]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, then remove the jar from WEB-INF/lib, and update your build script to point to the new location.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:Well, then remove the jar from WEB-INF/lib, and update your build script to point to the new location.

Rafael



I've removed the servlet-api.jar from WEB-INF/lib, but the fatal error appears:

log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
2006-9-6 13:30:35 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
2006-9-6 13:30:35 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
2006-9-6 13:30:35 org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

So, I can't access my forum from my web browser at all.
How can I do? Thanks.
[originally posted on jforum.net by DBlue]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THis message not effect to your App. Because tomcat load 2 times servlet.jar so it alert for you know. if u want tomcat not alert this message. just delete servlet.jar in your App or delete in your <tomcat dir>\common\lib
[originally posted on jforum.net by quoctien82]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
see
[originally posted on jforum.net by avaj]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same error
--------validateJarFile(D:\Novice\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class---------

I didnt have the servlet.jar file in the struts.war folder of webapps in my tomcat server...

Can u please help on this.

Am stuck up with this error for the past one week
[originally posted on jforum.net by nithiyasri]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same error
--------validateJarFile(D:\Novice\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class---------

http://www.handandaily.com
[originally posted on jforum.net by kaixin110]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I had the same error



And did you follow the information above to fix the problem? E.g. delete the jar from the WEB-INF\lib directory (and any war files that may be involved...)
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also getting the same error..

Dec 12, 2008 2:41:54 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(D:\Tomcat 5.5\webapps\StrtSprngHiber\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.

any help please..
[originally posted on jforum.net by ven512]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Short answer: remove the j2ee.jar file from your webapps' WEB-INF/lib directory.

Long answer:

The Spec being referred to says that the Servlet Container (E.g. Tomcat) will supply the implementation class of the J2EE spec. The j2ee.jar in your WEB-INF/lib directory is trying to supply the same info. Having application specific implementations is a stability and security problem that is disallowed by the spec/Tomcat.

FWIW, generally, you will need the j2ee.jar for development builds but not for the webapp/war being deployed. I tend to set up my development environments with those kinds of jars in a different directory that is on the build path.
[originally posted on jforum.net by monroe]
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic