Hubert I try the jar that you send me.. and Hudson failed.
java.lang.ClassCastException: org.kohsuke.stapler.WebApp cannot be cast to
org.kohsuke.stapler.WebApp
maybe the jars are loaded twice in the classloader ?
I will give you the wars that I tested with Deployer 1.9.17.
http://www.mediafire.com/?sharekey=fc577931a2d88b4119747bd91027d4dd431eab634af4c054
here the command line that I used :
C:\Tmp>java -Djava.util.logging.config.file=C:/source/logging.properties
-jar grizzly-http-servlet-deployer-1.9.18-SNAPSHOT.jar -a c:\temp\demo
--cometEnabled=true
just unrar demo.war in a folder.
some examples need PHP or JSP support.
here few tests :
HTML/servlets
http://localhost:8080/hudson/
http://localhost:8080/grizzly-twitter/index.html
http://localhost:8080/grizzly-jmaki/index.html
PHP
http://localhost:8080/wordpress/
JSP
http://localhost:8080/test/index.jsp
http://localhost:8080/helloworld/hi.jsp
I attached xml files for JSP and PHP support.
here are the jars that I include for JSp and PHP
can use the param :
--libraryPath=C:\Source\grizzly\modules\http-servlet-deployer\lib_jsp_php
annotations-api-6.0.18.jar
catalina-6.0.18.jar
el-api-6.0.18.jar
jasper-6.0.18.jar
jasper-el-6.0.18.jar
jasper-jdt-6.0.18.jar
javamail-141.jar
jsp-api-6.0.18.jar
juli-6.0.18.jar
quercus.jar
resin-kernel.jar
lets me know if you need help to debug it.
oh ya.. to test filters without servlet-mapping
you can use LIFT :
there web.xml is this :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>LiftFilter</filter-name>
<display-name>Lift Filter</display-name>
<description>The Filter that intercepts lift calls</description>
<filter-class>net.liftweb.http.LiftFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LiftFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
and it was loading before.
2009/9/10 Hubert Iwaniuk <neotyk_at_kungfoo.pl>
> Hi,
> See inline
> On Thu, Sep 10, 2009 at 2:57 AM, Jeanfrancois Arcand
> <Jeanfrancois.Arcand_at_sun.com> wrote:
> >
> > Salut,
> >
> > Hubert Iwaniuk wrote:
> >>
> >> Hi,
> >>
> >> Refactoring is nearly finished.
> >
> > Great work Hubert!
>
> Thanks!
>
> >
> >> I tested it and so far what I see is that it doesn't work properly with
> filters, but I think it is current state on trunk.
> >
> > Can you elaborate a little about what is not working.
>
> Both mapping filter to path and to servlet are not working in sense we
> do nothing about it.
> Issue: http://bit.ly/2vDKQl
>
> >>
> >> Autodeploy needs to be fixed, I would like to change it at same time to
> approach taken by Jetty:
> >> http://bit.ly/12AIoq
> >
> > Honestly I don't like the autodeploy of Jetty as for me it nevers works,
> having to stop/start it all the time.
>
> What autodeploy you are referring to here?
>
> >
> > But +1 for having a grizly-web.xml (or web.xml like Tomcat).
> >
> >> What do you guys think of it?
> >
> > Agree.
> >
> >>
> >> If anyone files like running some test please go ahead.
> >
> > Thanks!!!
> >
> > -- Jeanfrancois
> >
>
> My pleasure,
> Hubert.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>
--
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant