Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: <param-value> in web.xml whith Jersey

  1. #1
    Member
    Join Date
    Jul 2013
    Posts
    46
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default <param-value> in web.xml 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

    HTML 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
    HTML Code:
    <param-value>Project's name</param-value>
    i got always that error but when i switch it to
    HTML 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

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


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: <param-value> in web.xml whith Jersey

    This thread has been cross posted here:

    http://www.java-forums.org/advanced-java/80614-param-value-whith-jersey.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting


  3. #3
    Member
    Join Date
    Jul 2013
    Posts
    46
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: <param-value> in web.xml whith Jersey

    the solution
    Last edited by jps; August 5th, 2013 at 01:24 PM. Reason: oops

Similar Threads

  1. Change web.xml after deployment
    By manoop in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 20th, 2013, 02:03 AM
  2. Security for Jersey Rest Web Services
    By tcstcs in forum Web Frameworks
    Replies: 0
    Last Post: February 29th, 2012, 07:48 AM
  3. Parse error in application web.xml
    By abijith1 in forum Member Introductions
    Replies: 1
    Last Post: February 6th, 2012, 11:38 AM
  4. How web service returns xml?
    By nikos in forum Web Frameworks
    Replies: 2
    Last Post: October 7th, 2010, 12:50 PM