Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:00:05+00:00 2026-06-03T23:00:05+00:00

I am deploying a restful web services using Netbeans EE6 and jersey libraries with

  • 0

I am deploying a restful web services using Netbeans EE6 and jersey libraries with the tutorial http://netbeans.org/kb/docs/websvc/rest.html.

When I create a restful web services from entities that hold composite primary keys in the database, the project gives me an error when I try to test the web services:

SEVERE: Missing dependency for method public entities.RMSchedule service.RMScheduleFacadeREST.find(entities.RMSchedulePK) at parameter at index 0
SEVERE: Method, public entities.RMSchedule service.RMScheduleFacadeREST.find(entities.RMSchedulePK), annotated with GET of resource, class service.RMScheduleFacadeREST, is not recognized as valid resource method.

Is the error due to composite primary keys or is there a step that I should include?
Many thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:00:07+00:00Added an answer on June 3, 2026 at 11:00 pm

    I think this issue is related to Netbeans bug:

    https://netbeans.org/bugzilla/show_bug.cgi?id=208375

    When creating entity class which has composite primary keys,
    two entity files are created. (ex CustomerEntity.jave, CustomerEntityPK.java)

    Then if you choose to create the servlet from the entity class, the servlet comes with automatically generated code such as below:

        @DELETE
        @Path("{id}")
        public void remove(@PathParam("id") CustomerEntityPK id) { //error
            super.remove(super.find(id));
        }
    
        @GET
        @Path("{id}")
        @Produces({"application/xml", "application/json"})
        public CustomerEntity find(@PathParam("id") CustomerEntityPK id) { //error
            return super.find(id);
        }
    

    The issue is that argument being passed to the servlet methods is CustomerEntityPK which has composite primary key.

    If you change the argument type to something like String then the error went away in my case.

        @DELETE
        @Path("{id}")
        public void remove(@PathParam("id") String id) { //type set to String now
            super.remove(super.find(id));
        }
    

    But in my project I did not need such auto generated code so I simply choose to create servlet class by hand and has no problem.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

after deploying my web app to a new server using the add web setup
I've been deploying ASP.NET websites and managing their configurations using the web configuration transforms
When deploying a web project written in ASP.Net, what happens to user sessions? Do
After deploying a set of services on QA environemnt, one orchestration is suspended with
When deploying plug-ins for MS Dynamics CRM, using the CRM plugin registration tool, you
While deploying a dwr web app, i'm continuously getting this error. I dont know
I'm deploying a web site and I need to run large TSQL scripts contained
I am currently deploying a Rails application using Capistrano. Cap deploy:update_code usually works just
After deploying a complete application using Entity Framework (EF) and LINQ, the next things
When i follow restful project in netbeans then i get the error. SEVERE: Exception

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.