File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Jersey Error on Post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jersey Error on Post" Watch "Jersey Error on Post" New topic
Author

Jersey Error on Post

ai dan
Greenhorn

Joined: Jul 18, 2011
Posts: 8
When I make an ajax post to my method, i get the following error in the logs:

24-Jul-2012 18:33:12 com.sun.jersey.server.wadl.generators.WadlGeneratorJAXBGrammarGenerator attachTypes
INFO: Couldn't find JAX-B element for class javax.ws.rs.core.MultivaluedMap
24-Jul-2012 18:33:12 com.sun.jersey.server.wadl.generators.WadlGeneratorJAXBGrammarGenerator attachTypes
INFO: Couldn't find JAX-B element for class java.lang.String

This code worked fine when testing with a CURL command but produces the above error when using an ajax post.
Any tips on what I might be doing wrong? I did google for this earlier and it mentioned overriding jersey with war files using :
com.sun.enterprise.overrideablejavaxpackages JVM property

But I tried this and it didn't work.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jersey Error on Post
 
Similar Threads
some internal library in Hibernate logs even though logging is set to error.
Tomcat seems to be started via console. But unable to access through browser
Error in tomcat 5.5
Exception occurred while attempting to acquire a JDBC DataSource from JNDI : Tomcat 7 and Mysql
Hibernated Pojo Generator using config.xml for Oracle database