Re: Enterprise Archive Problem
Anthony Eden <[email protected]> Thu, 14 Aug 2003 15:57:35 -0400
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
This is fixed in JPublish 3.x. Since JPublish 2.x relies on the use of getRealPath() it will never be able to work properly as a packed WAR. JPublish 3.x does away with the use of getRealPath() replacing it with a virtual file system which maps over the ServletContext. Sincerely, Anthony Eden James wrote: >Anyone out there have experience with JPublish >deployed via an enterprise archive? I'm having some >problems. > >I have an application that was originally deployed on >Tomcat web server. I am in process of moving it to >JBoss. I created a app.war file and it has been >working in JBoss v3.2.1, as such. However, there are >a couple of POJO interfaces that I need to have >visible to the EJB layer. To do this I need to deploy >the app.war into an enterprise archive, i.e. app.ear. >When doing this the POJOs that originally where in the >/WEB-INF/lib/app.jar have been moved outside the >app.war and are contained in the app.ear along with >the app.war. > >The app.ear seems to deploy successfully without any >exceptions. (I can see a couple of listener classes >load successfully) > >However, when I try to get the home page via browser, >I get exceptions. It looks like Jython can't find the >app package/module. > >The app.war's manifest has the nessesary Class-Path >entries. > >Any ideas why jython can't see the packages in >app.war? The application.xml follows. > >I am using JPublish 2.0, currently. > >Thanks, Jim > >--------------------- ><application> > <display-name>My App</display-name> > > <module> > <java>app.jar</java> > </module> > > <module> > <web> > <web-uri>app.war</web-uri> > <context-root>app</context-root> > </web> > </module> > ></application> > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Jpublish-developer mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jpublish-developer > > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01