Thanks, Charles! On Fri, May 28, 2010 at 10:28 AM, Caldarale, Charles R <chuck.caldar...@unisys.com> wrote: >> From: Licht Jiang [mailto:licht.ji...@gmail.com] >> Subject: service failed to load and "Error configuring application >> listener ..." >> >> I tried to deploy a service "MyServices" in a .war file to tomcat5. > > Always, always, always provide the *exact* Tomcat, JRE/JDK, and platform > versions you're using. There have been dozens of releases of Tomcat 5. > > First problem: > >> May 28, 2010 3:02:24 AM org.apache.catalina.loader.WebappClassLoader >> validateJarFile >> INFO: validateJarFile(/usr/share/tomcat5/webapps/MyServices/WEB-INF/ >> lib/servlet-api-2.4.jar) >> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. >> Offending class: javax/servlet/Servlet.class > > You must never place the servlet-api-*.jar file in your webapp's WEB-INF/lib > directory; the container (Tomcat, in this case) provides that jar. > > Second problem: > >> 03:02:24,140 ERROR [/MyServices]:3715 - Error configuring application >> listener of class ServletContextListener >> java.lang.UnsupportedClassVersionError: Bad version number >> in .class file > > You compiled your class with a JDK newer than the JRE you're trying to run it > on. Don't do that. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org