Thanks Charles for your help!

>> 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.

Now I have no access to the service.

>> 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?

2nd's a typo, should be com/myservice/web

> What is a "service deployment folder"?  What's in your server.xml?  What is 
> the exact structure under Tomcat's webapps directory?

The service is a war file, "MyService.war". It is put in "webapps"
folder of tomcat. "TestClass.class" is in the following folder:

tomcat_home/webapps/MyService/WEB-INF/classes/com/myservice/web

In web.xml, a servlet is defined (which calls TestClass in doget),
when requested, it generated the exception as posted.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to