Dave,
  RollerContext without being modified looks like the following

        
        // get the *real* path to <context>/resources
        String ctxPath= servletContext.getRealPath("/");
        //log.info(ctxPath);
        if(!ctxPath.endsWith(File.separator))
            ctxPath += File.separator + "resources";
        else
            ctxPath += "resources";

And ctxPath in an unPacked War returns null and the String test .endsWith
results in an NullPointerException. This can be found in catalina.out when
ran with Tomcat. It will not run properly for me then. Am I missing
something?





Dave Johnson-8 wrote:
> 
> On Mon, Aug 4, 2008 at 9:51 AM, mclovis <[EMAIL PROTECTED]> wrote:
>>
>> Does anyone know has any thought been given to running roller as an
>> unPacked
>> war. If you changed the code in RollerContext as follows:
>>
>>  String ctxPath ="";
>>
>>        // get the *real* path to <context>/resources
>>        ctxPath= servletContext.getRealPath("/");
>>
>> It will allow it to run until other issues arise.
>>
>> I need to see if this option has been explored before.
> 
> I'm able to run Roller as a WAR or as an unpacked WAR without any code
> changes.
> 
> Perhaps you are running into some other problem?
> 
> - Dave
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Roller-as-unPacked-war-tp18811688s12275p18813719.html
Sent from the Roller - User mailing list archive at Nabble.com.

Reply via email to