users@jersey.java.net

Glassfish 3.0.1 + Jersey 1.1.5-1.0 = Ajax Json fails

From: Jordi Domingo <noseya_at_hotmail.com>
Date: Fri, 23 Jul 2010 00:07:29 +0200

Hi all,

I updated Glassfish and it broked my app. Everything was working fine until that.

Now all my ajax requests get an 404 NOT FOUND. This is a snippet of one resource:


@Stateless
@ImplicitProduces("text/html;qs=10")
@Path("/users")
public class UsersResource{
......
@GET @Path("account/changePwd")
    @Produces({"application/json"})
    public Response changePassword(@QueryParam("currentPassword") String currentPassword,_at_QueryParam("password") String password,_at_Context HttpServletRequest req) throws Exception{
..........

I need help, i looked at the jersey guide to do an upgrade to jersey 1.3 but that point is in a "TODO" state. Traces didnt help a lot:

INFO: Mapped exception to response: 404 (Not Found)
com.sun.jersey.api.NotFoundException
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:991)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:941)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:932)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:384)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:451)
    at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:797)
    at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:770)
    at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:731)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
    at com.blueliv.common.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)


Thanks a lot,

Jordi
                                               
_________________________________________________________________
Agudiza los sentidos que viene un nuevo Messenger ¿estás listo?
http://explore.live.com/windows-live-messenger