> From: Licht Jiang [mailto:licht.ji...@gmail.com] > Subject: java.lang.NoClassDefFoundError: Could not initialize class > > java.lang.NoClassDefFoundError: Could not initialize class > com.myservice.web.TestClass
Show us the full stack trace(s); there are usually at least two in cases like this. > But class "TestClass" is in "WEB-INF/classes/come/myservice/web" Note the discrepancy between "com.myservice.web" and "come/myservice/web"; is one of them a typo? > under the service deployment folder What is a "service deployment folder"? What's in your server.xml? What is the exact structure under Tomcat's webapps directory? > So, what could be wrong? Lots of things. - 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