logo       

Re: Porting Enhydra SuperServlet to Jetty: msg#00051

java.enhydra.general

Subject: Re: Porting Enhydra SuperServlet to Jetty

Hi!

I made it to run Enhydra Apps in following web containers: Orion, Tomcat and *almost* on WebLogic.
I created a web app structure and placed a web.xml in its web-inf. One like this:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>
<web-app> <servlet>
<servlet-name> EnhydraApp </servlet-name>
<servlet-class> com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet
</servlet-class>
<init-param>
<param-name>ConfFile</param-name>
<param-value>AbsolutePath??\CorpContactsWeb.conf</param-value> </init-param> </servlet> <!-- The mapping for the default servlet --> <servlet-mapping>
<servlet-name>EnhydraApp</servlet-name> <url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>

Then I made Enhydra jar acessible to the app (I don't remember if it was in the webapp lib dir or in the global classpath) and created a web context for the enhydra application in the server specific webserver config file (e.g. tomcat->server.xml).

On weblogic I had a problem with cookies (there was an extra '/' in the domain parameter and my browser couldn't bind it to my server properly), the other two I tried almost fine worked fine (when I closed Orion I got a ThreadDeath on com.lutris.appserver.server.session.StandardSessionKeyGen.shutdown).
Never tried Jetty...

Hope this helps!
Luís

Massimo Lusetti wrote:

I need to port an Enhydra SuperServlet application (build on enhydra
3.1) to a "standard" web application to run inside Jetty.
I'm using and would like to continue to use features like DBManager and
SessionManager and so on so i've try to read through the ML archives but
didn't find my answer, i have found mail of guys lutris.com saying it is
possible ("just take the enhydra.jar") but no more infos...

Does anyone here have had any successful experience like this ?
Any hints is very appreciated ;) !

Regards



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise