Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I can't run my class in use "http://localhost:8080/servlet/package.myclass

843841Oct 26 2005 — edited Oct 26 2005
I can't run my class in use "http://localhost:8080/servlet/package.myclass.
I use the Tomcat container. My class is in "%CATALINA_HOME%\WEB-INF\classes\package\myclass.class .JDK was right.Tomcat have started.
"http://localhost:8080/servlet/..." is the default settings of tomcat web service, and have no need to chang the web. It's right?!

in addition,
I config my web.xml :
like,
...
<servlet>
<servlet-name>Test</servlet-name>
<servlet-class>test.Test</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/index</url-pattern>
<servlet-mapping> ...
and restart the Tomcat ,link url "http://localhost:8080/index/test.Test

my class is in the foder "%CATALINA_HOME%\webapps\ROOT\WEB-INF\classes\test\Test.class"
but, "http status 404..." messages still show.

please help me out, thank you very much!
------------2005/10/26 beijing
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2005
Added on Oct 26 2005
2 comments
700 views