gwt-user-2.3.0.jar and servlet-api-2.5.jar aren't loaded

As you can see in the console text below, two jar files are not loaded. I have added them to build path. Where can be the problem?


Nov 21, 2012 5:39:41 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Nov 21, 2012 5:39:42 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]
{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:BBT' did not find a matching property.
Nov 21, 2012 5:39:42 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]

Nov 21, 2012 5:39:42 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Nov 21, 2012 5:39:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2418 ms
Nov 21, 2012 5:39:42 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 21, 2012 5:39:42 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Nov 21, 2012 5:39:44 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/spronk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/BBT/WEB-INF/lib/gwt-user-2.3.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Nov 21, 2012 5:39:44 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/spronk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/BBT/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Nov 21, 2012 5:39:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]

Nov 21, 2012 5:39:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Nov 21, 2012 5:39:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5535 ms
Nov 21, 2012 5:40:04 PM com.vaadin.terminal.gwt.server.AbstractApplicationServlet checkProductionMode
WARNING: 
=================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.
=================================================================

Can anyone help me? Still need an answer very much…

You should not deploy gwt-user jar or servlet-api jar. The servlet API provided by your servlet container (Tomcat) and it will not deploy these jars as they conflict with the servlet API it provides itself.

When I deleted that jars I got these errors: “Project ‘BBT’ is missing required library: 'WebContent/WEB-INF/lib/servlet-api-2.5.jar” and “Project ‘BBT’ is missing required library: 'WebContent/WEB-INF/lib/gwt-user-2.3.0.jar”. The project cannot be built until build path errors are resolved.

Select project in Eclipse → Properties… (in context menu) → Java Build Path → Libraries tab. Remove those libraries. If necessary, also update any launches that refer to them explicitly etc.

Normally, a WTP project in Eclipse should not have explicit references on the build path to files in WEB-INF/lib but use a special classpath container (Web App Libraries) that automatically includes them. However, it seems somebody has added them to your project configuration.

Thank you, Henri. It helped! :slight_smile: