• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Servlet to JBoss

 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Guoqiao,
It works!
Jamal Hasanov
www.j-think.com
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic