Thx for the advice, but how can I can get the client IP? I used something like:
@Inject private RequestGlobals rg; .. rg.getHTTPServletRequest().getRemoteAddr(); but if I remove the servlet-api from the class loader I get an exeption that the HTTPServletRequest could not be resolved. May be there is an other way to resolve the client-IP.. -- regards Oskar Thiago H. de Paula Figueiredo wrote: > > On Tue, 02 Mar 2010 15:09:52 -0300, oskar_a > <s3746...@mail.inf.tu-dresden.de> wrote: > >> Hi, > > Hi! > >> I have an Problem using T5 and javax.servlet. I need the javax.servlet to >> get the client IP (for some click statistics), so I added the servlet-api >> using maven. > > You don't need to add the servlet API, as it's added automatically. > Tapestry is built on the servlet API. > >> java.lang.ClassCastException: org.apache.tapestry5.TapestryFilter cannot >> be cast to javax.servlet.Filter > > This looks like a classloader issue. Try removing the servlet API from the > dependencies. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, Ars Machina Tecnologia da > Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://old.nabble.com/Using-javax.servlet-and-tomcat-%28TapestryFilter-cannot-be-cast-to-javax.servlet.Filter%29-tp27759155p27759403.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org