• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic