Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Metro web service deployment problem in tomcat.  RSS feed

 
Anjan Nandi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have developed a metro web service in java with Netbeans 7.0 and deploying the same in tomcat 7.0.26. I encountered a weird problem while deploying. During tomcat start up the warning below came and nothing happens.

Warning :

INFO: validateJarFile(E:\VOIAMO\SOAP_API\apache-tomcat-7.0.52\webapps\Voiamo_Soap_API_FW\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 3.0,
section 10.7.2. Offending class: javax/servlet/Servlet.class Mar 06, 2014 12:09:20 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing


Most amazing thing is that, for the last few days I am deploying,testing and running the exact same thing in tomcat 7.0.26. Everything was fine and absolutely OK. All of a sudden today I encountered this problem. I have tried out all possible ways like restarting the tomcat server by deleting all log files. If anybody could give any suggestion about this it would be of great help.

Thanks in advance.
Anjan

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

While that is only a warning that you can safely ignore (the servlet container will simply not load that jar file, like the message says), you should remove the file from your web app.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anjan

Welcome to Java ranch !!

As mentioned in warning, your web app contains Servlet API jar inside it's WEB-INF/lib folder.
The servlet-api jar shouldn't be in your WEB-INF/lib at all, as it is provided by the container. In your case, Container is Tomcat. Tomcat already contain this Servlet API jar.
The warning message is quite explicit - the servlet spec requires containers to ignore any jar files in a webapp that contain javax.servlet classes. You can safely ignore that message.
In case you still want to remove this warning, Remove this jar from web app and hopefully your warning should go away.

Thanks


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!