Hi,
I am working with HP-AS it is newly released J2EE platform app server.
Cocoon cannot be deployed as WAR unless WAR is extracted!!!!!!!

Tomcat has a configuration parameter to specify if the WAR should be
extracted before "usage".
The default is set to "true". What does it means is that as a first step WAR
is extracted then the rest of initialization happens.
Internal Cocoon classpath is set, sitemap is compiled and life is beautiful.

When the WAR is not extracted we have some problems. The problem is that the
result of getRealPath() method is undefined and
classpath cannot be correctly set and everything relying on classpath is
failing - compilation of the sitemap is the first victim.

In fact this problem is on my to-do list. I hope to fix Cocoon code to
surpass this limitation very soon.

Other minor problem is that I need to override HP-AS xalan.jar and
xerces.jar with those shipped with Cocoon.
Regards,
Kinga






----- Original Message -----
From: "Piroumian, Konstantin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 24, 2001 10:57 AM
Subject: [C2.0rc1] Cocoon installation fails on IONA iPortal App Server


> Hi, C2ers!
>
>  Did anybody try to install C2.0rc1 on IONA App Server
> (http://www.iona.com)?
>  Or some other server that does not use Tomcat as a servlet container? I
>  think that before releasing C2.0 it must be tested with most popular J2EE
>  app servers (WebLogic, WebSphere) and results must be documented.
>
>  I am trying to install C2.0rc1 on IONA iPortal App Server 3.0, which is a
>  certified J2EE platform, but I get this error during CocoonServlet
>  initialization:
>
>  java.lang.NullPointerException
>  at java.util.Hashtable.put(Hashtable.java:380)
>   at
>
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:1
> 07)
>   at
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:365)
>   at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:136)
>   at
>
com.iona.j2ee.web.servlet.ServletInstanceManager.loadAndInitializeServletCla
> ss(ServletInstanceManager.java:202)
>   at
>
com.iona.j2ee.web.servlet.ServletInstanceManager.loadUserDefinedServlet(Serv
> letInstanceManager.java:192)
>   at
>
com.iona.j2ee.web.servlet.ServletInstanceManager.refresh(ServletInstanceMana
> ger.java:89)
>   at
>
com.iona.j2ee.web.servlet.ServletInstanceManager.<init>(ServletInstanceManag
> er.java:74)
>   at
>
com.iona.j2ee.web.servlet.ServletContextImpl.<init>(ServletContextImpl.java:
> 56)
>   at
> com.iona.j2ee.server.WebApplicationImpl.<init>(WebApplicationImpl.java:61)
>   at
>
com.iona.j2ee.server.DeployedWarModule.applyContainerConfiguration(DeployedW
> arModule.java:90)
>   at
>
com.iona.j2ee.server.Deployed.applyContainerConfiguration(Deployed.java:77)
>   at com.iona.j2ee.server.ContainerBean.configure(ContainerBean.java:685)
>   at com.iona.j2ee.server.ContainerBean._configure(ContainerBean.java:701)
>  ....
>
> The source from CocoonServlet.java [C2.0rc1] looks like this:
>
> 363        final DefaultContext subcontext = new
> DefaultContext(this.appContext);
> 364        subcontext.put("servlet-context", this.servletContext);
> 365        subcontext.put("context-root",
> this.servletContext.getRealPath("/"));  <-- this raises an NPE
>
> I can only guess what happens: it seems that the server does not extract
> files from WAR and works with it and for whatever reason
> this.servletContext.getRealPath("/") returns null. What can be done in
this
> situation?
>
>  Any help would very appreciated.
>
>  Regards,
>      Konstantin Piroumian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to