cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reza x <reza_...@yahoo.com>
Subject null pointer exception using weblogic 8.x`
Date Mon, 23 Feb 2004 05:59:17 GMT
hi all
i am using weblogic version 8.x for my cocoon application deployment,but i have a problem
in cocoonServlet initilization.the exception is as follows:
 
 
java.lang.NullPointerException
	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:342)
	at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
	at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
	at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
	at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:504)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:349)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
	at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
	at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 
I think the problem is that My webApp has been deployed as .war file and the following line

 
      this.servletContextPath = this.servletContext.getRealPath("/");
returns null ,so the exception is occured.
can any one help me to solve this problem.
 
thanks alot for your attention
Best Regards.
 
Mehrdad Hosein


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
Mime
View raw message