Does anyone know what this exception means? I'm using GWT - Java 1.7.
Here the console output:
[WARN] failed jersey-servlet
javax.servlet.ServletException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:437)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
...
Here's the web.xml:
<servlet>
<servlet-name>jersey-servlet</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>de.mme2app.open.server, org.codehaus.jackson.jaxrs</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jersey-servlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
I haven't verified that this is causing that error specifically, but the com.sun.jersey.config.property.packages
param should just point to packages containing your resources and providers. It doesn't seem like org.codehaus.jackson.jaxrs
belongs there. Try it will just:
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>de.mme2app.open.server</param-value>
</init-param>
Assuming de.mme2app.open.server
is the package in your project with resources/providers.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.