Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet not working

 
Arun Shanmugham
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I wanted to port an application from Tomcat to JBoss. I copied the war file from tomcat to JBoss. I was getting error in executing the servlet from JBoss . Then i just created a simple application with 1 servlet in new.war file which has the following structure
/Test.html
/WEB-INF/classes/com/servlet/TestServlet
/web.xml (this maps com.servlet.TestServlet to Test)
When i tried http://localhost/new/Test.html it works.
When i tried http://localhost/new/servlet/Test it does'nt work and
the error from JBoss-Tomcat is "404 requested resource not found(new/servlet/Test).
Do u have any idea why its not working..?
Arun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic