Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet to JBoss

 
Jamal Hasanov
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
I want to deploy Servlet+EJB's to JBoss+Tomcat. But I have some problems with servlet. Quote from my web.xml file:

<web-app>
<display-name>Jamal's test Web Application</display-name>
<servlet>
<servlet-name>web.TestServlet</servlet-name>
<description>Test Servlet</description>
<servlet-class>web.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>web.TestServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

When i wnat to acces to address:
http://localhost/TestServlet
I'm getting
"MAPPING configuration error for requested URI" error.
Any thoughts?
Thanx a lot,
Jamal Hasanov
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Jamal:
Try the following configuration:
<web-app>
<display-name>Jamal's test Web Application</display-name>
<servlet>
<servlet-name>MyTestServlet</servlet-name>
<description>Test Servlet</description>
<servlet-class>web.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyTestServlet</servlet-name>
<url-pattern>/test/*</url-pattern>
</servlet-mapping>
Make sure you have put the correct Servlet class name and access the servlet using:
http://localhost/test or
http://localhost/test/
regards,
 
Jamal Hasanov
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Guoqiao,
It works!
Jamal Hasanov
www.j-think.com
 
I'm so happy! And I wish to make this tiny ad happy too:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!