Re: [JPublish-developer] JPublish WAR with JBoss 3.x-Tomcat 4.x
Brought to you by:
aeden
From: Mike H. <mah...@uc...> - 2003-03-03 04:28:22
|
Would be a nice way to go. ..to read files in the WAR file, you can use=20 getServletContext().getResourceAsStream("/directory/filename"). Mike H On Sunday, March 2, 2003, at 07:29 PM, Dan Hodnett wrote: > any plans to support deployment of JPublish WARs to JBoss 3.x-Tomcat=20= > 4.x > environments? (I believe this is an issue with Weblogic 6.x, 7.x also) > =A0 > The issue is, of course,=A0that WARs are not unpacked when the server = is=20 > launched, > and thereforethe JPublishServlet fails to initialize because it cannot > read from config files=A0under WEB-INF with the current = implementation; > =A0 > String rootDir =3D getServletContext().getRealPath("/"); //=A0returns = null > File contextRoot =3D new File(rootDir); // fails with NPE > > Dan Hodnett > > =A0 |