Re: JPublish WAR with JBoss 3.x-Tomcat 4.x

Anthony Eden <[email protected]> Mon, 03 Mar 2003 09:40:55 -0500
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
Dan,

I think it is a good idea so I'll work on it this week.  Andy is correct in that we will need an alternative Repository implementation which uses the Servlet methods for accessing resources but that shouldn't be too difficult.

-Anthony

Dan Hodnett wrote:
> any plans to support deployment of JPublish WARs to JBoss 3.x-Tomcat 4.x
> environments? (I believe this is an issue with Weblogic 6.x, 7.x also)
>  
> The issue is, of course, that WARs are not unpacked when the server is 
> launched,
> and therefore the JPublishServlet fails to initialize because it cannot
> read from config files under WEB-INF with the current implementation;
>  
> String rootDir = getServletContext().getRealPath("/"); // returns null
> File contextRoot = new File(rootDir); // fails with NPE
> 
> Dan Hodnett
> 
>  



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf