when I put the GuiceFilter in web.xml.I get the following message in
terminal:
 *

INFO  - uiceServletContextListener - getInject() - Executando
INFO  - EventosModule              - Configurando Modulo - Eventos
INFO  - Version                    - Hibernate Annotations 3.4.0.GA
INFO  - Environment                - Hibernate 3.3.0.SP1
INFO  - Environment                - hibernate.properties not found
INFO  - Environment                - Bytecode provider name : javassist
INFO  - Environment                - using JDK 1.4 java.sql.Timestamp
handling
INFO  - Version                    - Hibernate Commons Annotations 3.1.0.GA
INFO  - Version                    - Hibernate EntityManager 3.4.0.GA
22/06/2011 08:33:53 org.apache.catalina.core.StandardContext startInternal
GRAVE: Error filterStart
22/06/2011 08:33:53 org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/eventos] startup failed due to previous errors
22/06/2011 08:33:53 org.apache.catalina.loader.WebappClassLoader
clearReferences
Threads
GRAVE: The web application [/eventos] appears to have started a thread named
[co
m.google.inject.internal.util.$Finalizer] but has failed to stop it. This is
ver
y likely to create a memory leak.
*
**
*


when I put the filter in ServletModule. I get the following message on the
console:

INFO  - uiceServletContextListener - getInject() - Executando
INFO  - EventosModule              - Configurando Modulo - Eventos
*

**
*web.xml*

** <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
 version="2.4">
 <display-name>Institucional Eventos - Wicket Application</display-name>
 <listener>
  
<listener-class>br.impa.apps.eventos.config.servlet.listener.ImpaGuiceServletContextListener</listener-class>
 </listener>
 <servlet>

  <servlet-name>servlet</servlet-name>
  
<servlet-class>br.impa.apps.eventos.config.servlet.listener.EmptyServlet</servlet-class>

 </servlet>

 <servlet-mapping>

  <servlet-name>servlet</servlet-name>
  <url-pattern>/*</url-pattern>

 </servlet-mapping>
</web-app>
**
*Module:*
* *
*
 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);

  filter("/*").through(GuiceFilter.class);

 }
}

thx
-----------------------------------------------

   Gabriel Cardelli <http://gabrcardelli.appspot.com>
   opengti.com.br - Software Developer

**
-----------------------------------------------
*
*

*

>
>

-- 
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