×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Tomcat war deployment problem - services is not found

Tomcat war deployment problem - services is not found

Tomcat war deployment problem - services is not found

(OP)
Hi,
I created my first test Jersey 2 web service project.
I converted it in .war installed on /webapps/RentAPI.war and changed /WEB-INF/web.xml

CODE

<servlet>
        <servlet-name>RentAPI</servlet-name>
        <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
        
         <init-param>
            <param-name>jersey.config.server.provider.packages</param-name>
            <param-value>com.rentwsapi.reservation.services</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>RentAPI</servlet-name>
        <url-pattern>/rent/*</url-pattern>
    </servlet-mapping> 

when I run http://localhost:8080/RentAPI - it shows me welcome page, but when I try to get info
http://localhost:8080/RentAPI/rentwsapi/rent/reservation/gencontractnumber[pre]
I got HTTP Status 404 – Not Found.
The project itself work on Eclipse, but cannot be deployed on standalone TOMCAT.
I tried to replace current init-param with

CODE

<init-param>
            <param-name>javax.ws.rs.Application</param-name>
            <param-value>com.rentwsapi.reservation.app.RentReservationApplication</param-value>
        </init-param 
The RentReservationApplication worked,but same 404 - Not found error displayed Look like it could not found [pre]com.rentwsapi.reservation.services
package
What I do wrong? Please help.





Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close