I think this error may not be Guice related, I think you're trying to load a servlet spec that's higher than the container you are running. Tomcat 7 supports servlet 3.0, if you're using GWT dev mode, it's running Jetty6 with servlet 2.5.
In reply to your other mail, yes you should use PersistFilter for all your servlets that you wish to utilize Guice provided JPA classes. On 4 July 2011 12:06, Gabriel Cardelli <[email protected]> wrote: > I changed the order and got the same error. > I added now this line: > > filter("/*").through(PersistFilter.class); > > but i got the error: > > INFO: Deploying web application archive jersey-guice-filter.war > 04/07/2011 08:05:03 org.apache.catalina.loader.WebappClassLoader > validateJarFile > INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat > 7.0\web > apps\jersey-guice-filter\WEB-INF\lib\tomcat-servlet-api-7.0.12.jar) - jar > not lo > aded. See Servlet Spec 2.3, section 9.7.2. Offending class: > javax/servlet/Servle > t.class > 04/07/2011 08:05:05 org.apache.catalina.core.StandardContext startInternal > GRAVE: Error filterStart > 04/07/2011 08:05:05 org.apache.catalina.core.StandardContext startInternal > GRAVE: Context [/jersey-guice-filter] startup failed due to previous errors > 04/07/2011 08:05:05 org.apache.catalina.loader.WebappClassLoader > clearReferences > Threads > GRAVE: The web application [/jersey-guice-filter] appears to have started a > thre > ad named [com.google.inject.internal.util.$Finalizer] but has failed to stop > it. > This is very likely to create a memory leak. > > > please help. > > thx. > > -- > 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. > -- 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.
