HTTP Status 500 – AbstractValueFactoryProvider Class not found










0















I had follow the below solution to solve my problem.



RESTFUL WS: pass more than 1 parameter



However, I encountered another error:




HTTP Status 500 – Internal Server Error



javax.servlet.ServletException: Servlet.init() for servlet
[jersey-servlet] threw exception



Root Cause



java.lang.NoClassDefFoundError:
org/glassfish/jersey/server/internal/inject/AbstractValueFactoryProvider




I find out that the class has not inside the latest Jersey download:



https://jersey.github.io/download.html



Currently the list of Jar file that I used are :



enter image description here



The current changes that I've made to my code are:



import javax.websocket.server.PathParam;

@Path("uuid/browserinfo/ipint/lat/longitude/sessionid/spid/tr"
+ "/jsnum/fingerprint/methodset")
@Produces(MediaType.TEXT_PLAIN)
public int adaptiveAuth(
@PathParam("uuid") String uuID,
@PathParam("browserinfo") String browserInfo,
@PathParam("ipint") long ipInt,
@PathParam("lat") double latiTude,
@PathParam("longitude") double longiTude,
@PathParam("sessionid") String sessionID,
@PathParam("spid") String spID,
@PathParam("tr") int tR,
@PathParam("jsnum") int jsNum,
@PathParam("fingerprint") String fingerPrint,
@PathParam("methodset") MethodClass methodSet) throws SQLException{


Is there any idea on how to fix the problem?
If the latest version of Jersey is no longer support on AbstractValueFactoryProvider, what is the replacement of jar that I can use in order to make my code works?



Thank you.










share|improve this question

















  • 1





    Don't mix your Jersey versions. Make sure all the Jersey jars are all the same version. I see you added a jersey-media-multipart-2.1. Is 2.1 the version of Jersey you are using? If not, make sure you are using the right version. If you change it to a later version like 2.27, then you may also need to change the mimepull jar to 1.9.6

    – Paul Samsotha
    Nov 14 '18 at 3:10












  • Hi Paul, Thank you for your comment. I have tried to use latest version of Jersey : [link]repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/… And use jersey-media-multipart-2.2.7 and mimepull1.9.6-jar, but the Jersey still returning error: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public

    – user1823924
    Nov 14 '18 at 6:14












  • Why are you using jersey-media-multipart-2.2.7? Why specifically, did you choose that version? As far as the error, have you googled it?

    – Paul Samsotha
    Nov 14 '18 at 6:23
















0















I had follow the below solution to solve my problem.



RESTFUL WS: pass more than 1 parameter



However, I encountered another error:




HTTP Status 500 – Internal Server Error



javax.servlet.ServletException: Servlet.init() for servlet
[jersey-servlet] threw exception



Root Cause



java.lang.NoClassDefFoundError:
org/glassfish/jersey/server/internal/inject/AbstractValueFactoryProvider




I find out that the class has not inside the latest Jersey download:



https://jersey.github.io/download.html



Currently the list of Jar file that I used are :



enter image description here



The current changes that I've made to my code are:



import javax.websocket.server.PathParam;

@Path("uuid/browserinfo/ipint/lat/longitude/sessionid/spid/tr"
+ "/jsnum/fingerprint/methodset")
@Produces(MediaType.TEXT_PLAIN)
public int adaptiveAuth(
@PathParam("uuid") String uuID,
@PathParam("browserinfo") String browserInfo,
@PathParam("ipint") long ipInt,
@PathParam("lat") double latiTude,
@PathParam("longitude") double longiTude,
@PathParam("sessionid") String sessionID,
@PathParam("spid") String spID,
@PathParam("tr") int tR,
@PathParam("jsnum") int jsNum,
@PathParam("fingerprint") String fingerPrint,
@PathParam("methodset") MethodClass methodSet) throws SQLException{


Is there any idea on how to fix the problem?
If the latest version of Jersey is no longer support on AbstractValueFactoryProvider, what is the replacement of jar that I can use in order to make my code works?



Thank you.










share|improve this question

















  • 1





    Don't mix your Jersey versions. Make sure all the Jersey jars are all the same version. I see you added a jersey-media-multipart-2.1. Is 2.1 the version of Jersey you are using? If not, make sure you are using the right version. If you change it to a later version like 2.27, then you may also need to change the mimepull jar to 1.9.6

    – Paul Samsotha
    Nov 14 '18 at 3:10












  • Hi Paul, Thank you for your comment. I have tried to use latest version of Jersey : [link]repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/… And use jersey-media-multipart-2.2.7 and mimepull1.9.6-jar, but the Jersey still returning error: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public

    – user1823924
    Nov 14 '18 at 6:14












  • Why are you using jersey-media-multipart-2.2.7? Why specifically, did you choose that version? As far as the error, have you googled it?

    – Paul Samsotha
    Nov 14 '18 at 6:23














0












0








0








I had follow the below solution to solve my problem.



RESTFUL WS: pass more than 1 parameter



However, I encountered another error:




HTTP Status 500 – Internal Server Error



javax.servlet.ServletException: Servlet.init() for servlet
[jersey-servlet] threw exception



Root Cause



java.lang.NoClassDefFoundError:
org/glassfish/jersey/server/internal/inject/AbstractValueFactoryProvider




I find out that the class has not inside the latest Jersey download:



https://jersey.github.io/download.html



Currently the list of Jar file that I used are :



enter image description here



The current changes that I've made to my code are:



import javax.websocket.server.PathParam;

@Path("uuid/browserinfo/ipint/lat/longitude/sessionid/spid/tr"
+ "/jsnum/fingerprint/methodset")
@Produces(MediaType.TEXT_PLAIN)
public int adaptiveAuth(
@PathParam("uuid") String uuID,
@PathParam("browserinfo") String browserInfo,
@PathParam("ipint") long ipInt,
@PathParam("lat") double latiTude,
@PathParam("longitude") double longiTude,
@PathParam("sessionid") String sessionID,
@PathParam("spid") String spID,
@PathParam("tr") int tR,
@PathParam("jsnum") int jsNum,
@PathParam("fingerprint") String fingerPrint,
@PathParam("methodset") MethodClass methodSet) throws SQLException{


Is there any idea on how to fix the problem?
If the latest version of Jersey is no longer support on AbstractValueFactoryProvider, what is the replacement of jar that I can use in order to make my code works?



Thank you.










share|improve this question














I had follow the below solution to solve my problem.



RESTFUL WS: pass more than 1 parameter



However, I encountered another error:




HTTP Status 500 – Internal Server Error



javax.servlet.ServletException: Servlet.init() for servlet
[jersey-servlet] threw exception



Root Cause



java.lang.NoClassDefFoundError:
org/glassfish/jersey/server/internal/inject/AbstractValueFactoryProvider




I find out that the class has not inside the latest Jersey download:



https://jersey.github.io/download.html



Currently the list of Jar file that I used are :



enter image description here



The current changes that I've made to my code are:



import javax.websocket.server.PathParam;

@Path("uuid/browserinfo/ipint/lat/longitude/sessionid/spid/tr"
+ "/jsnum/fingerprint/methodset")
@Produces(MediaType.TEXT_PLAIN)
public int adaptiveAuth(
@PathParam("uuid") String uuID,
@PathParam("browserinfo") String browserInfo,
@PathParam("ipint") long ipInt,
@PathParam("lat") double latiTude,
@PathParam("longitude") double longiTude,
@PathParam("sessionid") String sessionID,
@PathParam("spid") String spID,
@PathParam("tr") int tR,
@PathParam("jsnum") int jsNum,
@PathParam("fingerprint") String fingerPrint,
@PathParam("methodset") MethodClass methodSet) throws SQLException{


Is there any idea on how to fix the problem?
If the latest version of Jersey is no longer support on AbstractValueFactoryProvider, what is the replacement of jar that I can use in order to make my code works?



Thank you.







java rest web-services jersey






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 2:25







user1823924














  • 1





    Don't mix your Jersey versions. Make sure all the Jersey jars are all the same version. I see you added a jersey-media-multipart-2.1. Is 2.1 the version of Jersey you are using? If not, make sure you are using the right version. If you change it to a later version like 2.27, then you may also need to change the mimepull jar to 1.9.6

    – Paul Samsotha
    Nov 14 '18 at 3:10












  • Hi Paul, Thank you for your comment. I have tried to use latest version of Jersey : [link]repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/… And use jersey-media-multipart-2.2.7 and mimepull1.9.6-jar, but the Jersey still returning error: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public

    – user1823924
    Nov 14 '18 at 6:14












  • Why are you using jersey-media-multipart-2.2.7? Why specifically, did you choose that version? As far as the error, have you googled it?

    – Paul Samsotha
    Nov 14 '18 at 6:23













  • 1





    Don't mix your Jersey versions. Make sure all the Jersey jars are all the same version. I see you added a jersey-media-multipart-2.1. Is 2.1 the version of Jersey you are using? If not, make sure you are using the right version. If you change it to a later version like 2.27, then you may also need to change the mimepull jar to 1.9.6

    – Paul Samsotha
    Nov 14 '18 at 3:10












  • Hi Paul, Thank you for your comment. I have tried to use latest version of Jersey : [link]repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/… And use jersey-media-multipart-2.2.7 and mimepull1.9.6-jar, but the Jersey still returning error: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public

    – user1823924
    Nov 14 '18 at 6:14












  • Why are you using jersey-media-multipart-2.2.7? Why specifically, did you choose that version? As far as the error, have you googled it?

    – Paul Samsotha
    Nov 14 '18 at 6:23








1




1





Don't mix your Jersey versions. Make sure all the Jersey jars are all the same version. I see you added a jersey-media-multipart-2.1. Is 2.1 the version of Jersey you are using? If not, make sure you are using the right version. If you change it to a later version like 2.27, then you may also need to change the mimepull jar to 1.9.6

– Paul Samsotha
Nov 14 '18 at 3:10






Don't mix your Jersey versions. Make sure all the Jersey jars are all the same version. I see you added a jersey-media-multipart-2.1. Is 2.1 the version of Jersey you are using? If not, make sure you are using the right version. If you change it to a later version like 2.27, then you may also need to change the mimepull jar to 1.9.6

– Paul Samsotha
Nov 14 '18 at 3:10














Hi Paul, Thank you for your comment. I have tried to use latest version of Jersey : [link]repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/… And use jersey-media-multipart-2.2.7 and mimepull1.9.6-jar, but the Jersey still returning error: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public

– user1823924
Nov 14 '18 at 6:14






Hi Paul, Thank you for your comment. I have tried to use latest version of Jersey : [link]repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/… And use jersey-media-multipart-2.2.7 and mimepull1.9.6-jar, but the Jersey still returning error: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public

– user1823924
Nov 14 '18 at 6:14














Why are you using jersey-media-multipart-2.2.7? Why specifically, did you choose that version? As far as the error, have you googled it?

– Paul Samsotha
Nov 14 '18 at 6:23






Why are you using jersey-media-multipart-2.2.7? Why specifically, did you choose that version? As far as the error, have you googled it?

– Paul Samsotha
Nov 14 '18 at 6:23













1 Answer
1






active

oldest

votes


















0














Currently I am using the latest Jersey version, so I updated the particular jar as per latest version.
I also change @PathParam to @FormDataParam and it works.
I am able to view the wadl file.
Now proceed to test the Web Service using SOAP UI.
Thanks






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292317%2fhttp-status-500-abstractvaluefactoryprovider-class-not-found%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown
























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Currently I am using the latest Jersey version, so I updated the particular jar as per latest version.
    I also change @PathParam to @FormDataParam and it works.
    I am able to view the wadl file.
    Now proceed to test the Web Service using SOAP UI.
    Thanks






    share|improve this answer



























      0














      Currently I am using the latest Jersey version, so I updated the particular jar as per latest version.
      I also change @PathParam to @FormDataParam and it works.
      I am able to view the wadl file.
      Now proceed to test the Web Service using SOAP UI.
      Thanks






      share|improve this answer

























        0












        0








        0







        Currently I am using the latest Jersey version, so I updated the particular jar as per latest version.
        I also change @PathParam to @FormDataParam and it works.
        I am able to view the wadl file.
        Now proceed to test the Web Service using SOAP UI.
        Thanks






        share|improve this answer













        Currently I am using the latest Jersey version, so I updated the particular jar as per latest version.
        I also change @PathParam to @FormDataParam and it works.
        I am able to view the wadl file.
        Now proceed to test the Web Service using SOAP UI.
        Thanks







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 0:58







        user1823924




































            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292317%2fhttp-status-500-abstractvaluefactoryprovider-class-not-found%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Use pre created SQLite database for Android project in kotlin

            Darth Vader #20

            Ondo