cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bagby <willi...@adone.com>
Subject RE: Cocoon2 on Weblogic 5.1.0 ?
Date Tue, 20 Mar 2001 23:15:00 GMT
> To further pinpoint the problem, can you recompile Cocoon without any
optimization
> and with debug information included?  

How do I do that?  

> Also, Cocoon does create a log file.  Search for a file called
'cocoon.log'.  That will 
> usually include some really helpful information.

I wasn't able to find this file.

Thanks,

William.

-----Original Message-----
From: Berin Loritsch [mailto:bloritsch@apache.org]
Sent: Tuesday, March 20, 2001 3:28 PM
To: cocoon-users@xml.apache.org
Subject: Re: Cocoon2 on Weblogic 5.1.0 ?


William Bagby wrote:
> 
> Thanks for your help.  I figured it out (sort of) just as I saw your
> message.  At least it is loading now.  But it's giving me the 
following:
> 
> Mon Mar 19 18:50:24 EST 2001:<E> 
<WebAppServletContext-Cocoon2> Servlet
> failed with Exception
> java.lang.NullPointerException
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at java.lang.Throwable.fillInStackTrace(Compiled Code)
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Exception.<init>(Compiled Code)
>         at java.lang.RuntimeException.<init>(Compiled Code)
>         at java.lang.NullPointerException.<init>(Compiled Code)
>         at java.io.File.<init>(Compiled Code)
>         at 
org.apache.cocoon.servlet.CocoonServlet.getClassPath(Compiled
> Code)
>         at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:111)
>         at
> 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletS
tubImpl.java
> :474)
> 
> etc, etc...
> 
> Has anyone else received this error?  Am I doing something 
wrong? Or does it
> have to do with the "...this is ALPHA-quality code..." 
disclaimer, maybe the
> code itself is screwy today...

This is a new bug--possibly in the install instructions.  
Cocoon is surprisingly
stable in many platforms.  The line where we are getting a 
NullPointerException
is in the .getClassPath() function--something where the only 
way we would get
a NullPointer is if the Servlet Engine does not implement the 
context.getRealPath()
method--or implements it incorrectly.

To further pinpoint the problem, can you recompile Cocoon 
without any optimization
and with debug information included?  Also, Cocoon does create 
a log file.  Search
for a file called 'cocoon.log'.  That will usually include some 
really helpful information.

> 
> Thanks for your time.
> 
> William.
> 
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vgritsenko@hns.com]
> Sent: Monday, March 19, 2001 6:52 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: Cocoon2 on Weblogic 5.1.0 ?
> 
> For instructions about 4, please read:
> http://www.weblogic.com/docs51/classdocs/webappguide.html#deploywls
> 
> Which says:
> -----------------------------
> To deploy a Web Application on WebLogic Server, add the
> following property
> to the weblogic.properties file:
>   weblogic.httpd.webApp.myapp=location
> Where:
>   myapp
> Is the context name given to the Web Application. The context name is
> included in the initial part of any URL request to the Web 
Application.
>   location
> Is the root directory of the Web Application, or the location
> of the .war
> file that contains the Web Application archive.
> ----------------------------
> 
> Vadim
> 
> > -----Original Message-----
> > From: William Bagby [mailto:williamb@adone.com]
> > Sent: Monday, March 19, 2001 18:02
> > To: 'cocoon-users@xml.apache.org'
> > Subject: RE: Cocoon2 on Weblogic 5.1.0 ?
> >
> >
> > You are WAAAYYYYYY ahead of me. I can't even determine if
> cocoon.war is
> > being loaded.
> >
> > I have read the "Installation instructions", which are basically:
> >
> > 1. have a servlet2.2 engine
> > 2. set JAVA_HOME
> > 3. build cocoon.war
> > 4. put it somewhere
> > 5. restart servlet engine
> > 6. Voila!
> >
> > I have done steps 1-3.  It's #4 that's giving me a bit of a
> > problem. I have
> > cocoon.war in my classpath, but it ain't workin'.
> >
> > Call me an ignorant slob, but what you're saying sounds 
slightly more
> > complicated than that.  Are there any installation
> instructions anywhere
> > else that someone can point me to? I have searched this list,
> to no avail.
> >
> > Thank you so much,
> >
> > William.
> >
> > -----Original Message-----
> > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > Sent: Monday, March 19, 2001 5:18 PM
> > To: cocoon-users@xml.apache.org
> > Subject: Re: Cocoon2 on Weblogic 5.1.0 ?
> >
> >
> > William Bagby wrote:
> > >
> > > ParanoidCocoonServlet?
> >
> > The difference between the two Servlets, is that the
> > ParanoidCocoonServlet
> > will explicitly load the jars into it's own classloader.  It
> also gives
> > you a couple of parameters to overcome the problem of when
> > ServletContainer
> > vendors try to move your jars on you.
> >
> > >
> > > -----Original Message-----
> > > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > > Sent: Monday, March 19, 2001 4:46 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: Re: Cocoon2 on Weblogic 5.1.0 ?
> > >
> > > William Bagby wrote:
> > > >
> > > > Has anyone been able to run Cocoon 2 on Weblogic 5.1.0
> > > successfully?  I am
> > > > trying to get it to work but WL keeps giving me a
> > > ClassNotFoundException for
> > > > org.apache.cocoon.Cocoon
> > > >
> > > > I have Cocoon 1.8.2 running beautifully, and I am attempting
> > > to upgrade to
> > > > C2.  Are there any "upgrade" intructions?  Or is that wishful
> > > thinking?
> > > >
> > > > Please advise...
> > >
> > > Try using the ParanoidCocoonServlet instead of the CocoonServlet.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message