When I delete the mapping of the web.xml I get the following error
 HTTP Status 404 - /eventos / ws / evento

*With the WEB.XML mapping ( Success but not inject )*

INFO  - uiceServletContextListener - getInject() - Executando
INFO  - EventosModule              - Configurando Modulo - Eventos
INFO  - EventosModule              - Cofigurando Modulo JPA
21/06/2011 18:53:49 com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  br.impa.apps.eventos.ws
21/06/2011 18:53:49 com.sun.jersey.api.core.ScanningResourceConfig
logClasses
INFO: Root resource classes found:
  class br.impa.apps.eventos.ws.EventoWS
21/06/2011 18:53:49 com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
21/06/2011 18:53:50
com.sun.jersey.server.impl.application.WebApplicationImpl _i
nitiate
INFO: Initiating Jersey application, version 'Jersey: 1.7 05/20/2011 11:04
AM'

*Without the WEB.XML **mapping ( 404 )*
*
*
*
public class EventosModule extends ServletModule {

private final transient Logger log = Logger.getLogger(EventosModule.class
 .getName());

public final static String PERSISTENCE_UNIT = "eventosImpa";

public void configureServlets() {

 log.info("Configurando Modulo - Eventos");

 final Map<String, String> params = new HashMap<String, String>();

install(new JpaPersistModule(PERSISTENCE_UNIT));
 filter("/*").through(PersistFilter.class);

 Map<String, String> jerseyParams = new HashMap<String, String>();
jerseyParams.put("com.sun.jersey.config.property.packages",
 "br.impa.apps.eventos.ws");
serve("/ws/*").with(GuiceContainer.class, jerseyParams);

}

}
*
*
*
*
*
INFO  - uiceServletContextListener - getInject() - Executando
INFO  - EventosModule              - Configurando Modulo - Eventos
21/06/2011 20:15:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
21/06/2011 20:15:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
21/06/2011 20:15:59 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
21/06/2011 20:15:59 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager

I'm trying to solve the problem, any progress I say.
 *

-----------------------------------
   Gabriel Cardelli
   Software Developer
   gabrcardelli.appspot.com
*
*
-----------------------------------
*
*

*

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to