You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <vg...@hns.com> on 2001/02/16 16:10:13 UTC

NPE in CocoonServlet with WebLogic6, was: classpath problems with cocoon2

> -----Original Message-----
> From: Berin Loritsch [mailto:bloritsch@apache.org]
> Sent: Friday, February 16, 2001 8:41
> To: cocoon-dev@xml.apache.org
> Subject: Re: classpath problems with cocoon2
>
>

<snip/>

> >
> > By 'unsealing' jaxp.jar and crimson.jar and adding 'servlet.jar' to the
> > context classpath attribute, Cocoon2 works perfectly out of a single jar
> > on Catalina.
> >
> > I believe this is a pretty damn good result given the problems we face
> > and there are no side effects in these changes.
>
> Yeah, but how many other implementations do we have to worry about.
> BEA is another one--although I will attempt to unseal their XML parser
> to get the same results.

Neither 5.1, nor 6.0 have sealed JARs. 5.1 even doesn't have META-INF
directory
in jar...

But what I got when tried to drop cocoon.war into Weblogic 6 is NPE:

java.lang.NullPointerException
	at java.io.File.<init>(File.java:181)
	at
org.apache.cocoon.servlet.CocoonServlet.getClassPath(CocoonServlet.java:140)
	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:105)
	at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:687)
	at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:625)
	at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:573)
	at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:29
5)
	at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:204)
	at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1127)
	at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1529)
	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


PS Fresh cocoon from CVS

Regards,
Vadim