Avatar of java_casanova
java_casanova

asked on 

Problem in servlet mapping.

Hello experts.

I am not able to map my request to a particular servlet.

Following is my servlet mapping

        <servlet>
            <servlet-name>testServletService</servlet-name>
            <servlet-class>com.sas.pest.remote.TestServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>testServletService</servlet-name>
            <url-pattern>/*/abc.rpc</url-pattern>
      </servlet-mapping>

Following is my request URL

http://localhost:8080/testContext/235/abc.rpc

Here 'testContext' is the web context path

But I am getting 404 error (i,e servlet not found)

You can note that my request url contains '235'.
This is a number which is generated randomly while the request is fired
and I want all the requests ending with '/abc.rpc' to be serviced by
servlet 'testServletService'. Kindly let me know how do I map my servlet?

NB: My application is deployed in Apache/Tomcat V 6.0

Regards
java_casanova
Java EEWeb Applications

Avatar of undefined
Last Comment
java_casanova
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of java_casanova
java_casanova

ASKER

Thanx for the info mate.
Java EE
Java EE

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based server and client technologies and how they interoperate. Java EE specifies server and client architectures and uses profiles to define technology sets targeted at specific classes of applications. All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules and security requirements.

18K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo