On 3/22/07, Dmitriy <[EMAIL PROTECTED]> wrote:
I don't it is related to plesk. It's just migration
from windows to linux.

 have enabled Logger for the application. The log file
shows the following:
2007-03-22 05:02:26 StandardContext[/roller]Exception
sending context initialized event to listener instance
of class org.apache.roller.ui.core.RollerContext
java.lang.NullPointerException
        at
org.apache.roller.ui.core.RollerContext.contextInitialized(RollerContext.java:143)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3831)
        at

That null pointer exception is occuring in RollerContext.java at line 143.

141        // get the *real* path to <context>/resources
142        String ctxPath = mContext.getRealPath("/");
143        if(!ctxPath.endsWith(File.separator))
144            ctxPath += File.separator + "resources";
145        else
146            ctxPath += "resources";

It appears that the call to ServletContext.getRealPath() on 142 is
failing and returning null, which leads to a null pointer exception on
line 143.

It's possible that your ISP has configured Tomcat so that it is not
possible to get the real path where the Roller application lives.  I'm
not sure why an ISP would do that. You might want to ask your ISP what
restrictions they (or Plesk) place on Java web applications.

- Dave

Reply via email to