roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: Running Roller as a Packed WAR
Date Sat, 09 Aug 2008 03:58:04 GMT
On Thu, Aug 7, 2008 at 11:44 AM, mclovis <mclovis@elucidar.com> wrote:
>
> Ok here goes...
> 1. In org.apache.roller.weblogger.ui.core.RollerContext
>
> The way code is currently written you will get a NULL pointer exception that
> will cause roller to NOT run because of the following..

...snip...

> roller-custom.properties. So if you then change the code to :
> String ctxPath ="";
>        // get the *real* path to <context>/resources
>        ctxPath= servletContext.getRealPath("/");
>        //log.info(ctxPath);
>        if(ctxPath!=null&&!ctxPath.endsWith(File.separator))
>            ctxPath += File.separator + "resources";
>        else
>            ctxPath += "resources";
> and change the roller-custom.properties to have a base.dir property to
> something like your home directory and have the uploads and planecache
> directories be in ${basedir}/roller_data/uploads, etc.
> this takes care of the first issue. Furthermore, move the themes velocity
> templates to a themes directory outside of the war also.

That all sounds good and suitable for a patch, once we figure this thing out...


> If you do this and try again. You will then deploy properly until you try to
> access the index page of the roller project. You will then run into your
> next issue:
>
> Page: Unexpected Exception Status Code     500
> Message         An exception occurred processing JSP page /index.jsp at line 31 28:
> } else { 29: // dispatch to setup page 30: RequestDispatcher setuppage =
> request.getRequestDispatcher("/roller-ui/setup.rol"); 31:
> setuppage.forward(request, response); 32: } 33: 34: %> Stacktrace:
> Type
> Exception       Roller has encountered and logged an unexpected exception.
>
> Catalina.out
> java.lang.IllegalStateException: Roller Weblogger has not been bootstrapped
> yet at
> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>  at org.apache.roller.weblogger.ui.struts2.core.Setup.execute(Setup.java:60)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

...snip...

> It is at this point I was asking had anyone else started down this path....

Is there an error message earlier in the logs? Something else must
have gone wrong to cause that "not been bootstrapped" message.

- Dave

Mime
View raw message