Results 1 to 3 of 3
  1. #1
    vector_ever is offline Senior Member
    Join Date
    Jul 2013
    Posts
    187
    Rep Power
    2

    Default <param-value> whith Jersey

    Hello every one,

    I am just get confused because the web.xml data when i using REST Web Service using Jersey

    now i have 3 Packages, and every package contain at least one jersey class.

    Now when i want to run the project i get always this error

    XML Code:
    com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes
    so after looking for the cause the problem, i notice that all about <param-value> tag

    so when
    XML Code:
    <param-value>Project's name</param-value>
    i got always that error but when i switch it to
    XML Code:
    <param-value>package's name</param-value>
    it works just only if i run the calss from the same package but when run another class from another package i got again the same error

    XML Code:
              <param-name>com.sun.jersey.config.property.packages</param-name>
              <param-value>???</param-value>
            </init-param>
    so what the problem

  2. #2
    doWhile is online now Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: <param-value> whith Jersey

    Once again, cross posted with no link back
    <param-value> in web.xml whith Jersey

  3. #3
    vector_ever is offline Senior Member
    Join Date
    Jul 2013
    Posts
    187
    Rep Power
    2

    Default Re: <param-value> whith Jersey

    the solution

    XML Code:
            <init-param>
                <param-name>jersey.config.server.provider.packages</param-name>
                <param-value>first Package; second Package; third Package;...</param-value>
            </init-param>

Similar Threads

  1. JSF2 - f:ajax and f:param
    By fcsacin in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 11-22-2011, 02:40 PM
  2. How to use <s:param> tag
    By aruna.hcu in forum Web Frameworks
    Replies: 7
    Last Post: 01-13-2010, 08:25 AM
  3. quadratic equation whith Rational class
    By adamrain in forum New To Java
    Replies: 8
    Last Post: 12-22-2009, 05:35 PM
  4. Replies: 1
    Last Post: 03-17-2008, 12:59 AM
  5. jsp:param action
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-24-2007, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •