You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kees Broenink <ke...@backbase.com> on 2005/07/22 16:17:06 UTC

[websphere6] deploying cocoon servlet in websphere fails

Hi lists,

I am using Cocoon for a long time now, also building my own transformers
etc.
But I always used Tomcat to deploy the servlet.
I have successfully used Weblogic (configuring my hand using a exploded
war).
But now I have problems with Websphere 6. I have applied the helpful
interformation in the archives about setting PARENT_LAST as Classloader
Mode. I also set the WAR classloader policy from Module to Application.

The error I get is:

java.lang.NoClassDefFoundError: net/sf/ehcache/CacheManager
	at
org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
ultStore.java:213)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:283)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:277)
      ....

Any help very much appreciated.

Kees


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


Re: [websphere6] deploying cocoon servlet in websphere fails (2)

Posted by Warrell Harries <wh...@westsussex.gov.uk>.
I overcame the problem with the conflict between mozilla.javascript classes
by making rhino a shared library on the Server. However, I'm now stuck with
the problem that Kees Broenick has. Did anyone get anywhere with this
problem?

--
View this message in context: http://www.nabble.com/-websphere6-deploying-cocoon-servlet-in-websphere-fails-t166164.html#a3800409
Sent from the Cocoon - Dev forum at Nabble.com.


Re: [websphere6] deploying cocoon servlet in websphere fails (2)

Posted by Mark Lowe <me...@gmail.com>.
I've tried everything with 2.1.6, webspere 5.1, the only thing I've
had working on a local version of websphere is when i add all the
classes to the server classpath. Not even ws.libs digs..

Setting the PARENT_LAST and both scoping the calssloader to module and
application, the problem was related to the rhino jar not being
loaded.. So after noticing that websphere has a js lib, i swapped it
for the cocoon version (just to make sure), and still gave me an error
about not finding the rhino stuff.

Sorry I cant be of any help, but at least you've got some company :)

Mark

On 7/23/05, Kees Broenink <ke...@backbase.com> wrote:
> Forgot to mention that using the ParanoidCocoonServlet or the web.xml
> setting 'init-classloader' did not solve the problem.
> 
> I am using Cocoon 2.1.7 with two blocks:
> - include.block.jsp=true
> - include.block.paranoid=true
> 
> With ParanoidServlet the error is different:
> 
> java.lang.ExceptionInInitializerError
>         at
> org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
> ultStore.java:213)
>         at
> org.apache.avalon.framework.container.ContainerUtil.initialize(Container
> Util.java:283)
>         at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
> e(DefaultComponentFactory.java:277)
> 
> Anybody?
> 
> Kees
> 
> -----Oorspronkelijk bericht-----
> Van: Kees Broenink [mailto:kees.broenink@backbase.com]
> Verzonden: Friday, July 22, 2005 4:17 PM
> Aan: dev@cocoon.apache.org; users@cocoon.apache.org
> Onderwerp: [websphere6] deploying cocoon servlet in websphere fails
> 
> 
> Hi lists,
> 
> I am using Cocoon for a long time now, also building my own transformers
> etc. But I always used Tomcat to deploy the servlet. I have successfully
> used Weblogic (configuring my hand using a exploded war). But now I have
> problems with Websphere 6. I have applied the helpful interformation in
> the archives about setting PARENT_LAST as Classloader Mode. I also set
> the WAR classloader policy from Module to Application.
> 
> The error I get is:
> 
> java.lang.NoClassDefFoundError: net/sf/ehcache/CacheManager
>         at
> org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
> ultStore.java:213)
>         at
> org.apache.avalon.framework.container.ContainerUtil.initialize(Container
> Util.java:283)
>         at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
> e(DefaultComponentFactory.java:277)
>       ....
> 
> Any help very much appreciated.
> 
> Kees
> 
> 
>

SOLVED: [websphere6] deploying cocoon servlet in websphere fails (2)

Posted by Kees Broenink <ke...@backbase.com>.
Dear Cocoon lovers,

Sorry for the polution on the lists about Websphere. I have solved the
problems.
I forgot to clean the Websphere cache (in various temp and wstemp
directories) when I changed the settings.
I must say that the Wiki info is not that clear. The following works for
me:

Most important is to add a file to your classes directory called
commons-logging.properties. It contains one line:
org.apache.commons.logging.Logfactory=org.apache.commons.logging.impl.Lo
gFactoryImpl

Funny hey. Let's solve this in Cocoon 2.1.8. 

There is no need for ParanoidCocoonServlet or setting init-classloader
to true.

Use Websphere console http://localhost:9060/ibm/console
- on the left click on + Applications
- click on Enterprise Applications
- on the right click on your application
- set Class Loader mode to PARENT_LAST
- set WAR class loader policy to APPLICATION

That's it.

Kees


SOLVED: [websphere6] deploying cocoon servlet in websphere fails (2)

Posted by Kees Broenink <ke...@backbase.com>.
Dear Cocoon lovers,

Sorry for the polution on the lists about Websphere. I have solved the
problems.
I forgot to clean the Websphere cache (in various temp and wstemp
directories) when I changed the settings.
I must say that the Wiki info is not that clear. The following works for
me:

Most important is to add a file to your classes directory called
commons-logging.properties. It contains one line:
org.apache.commons.logging.Logfactory=org.apache.commons.logging.impl.Lo
gFactoryImpl

Funny hey. Let's solve this in Cocoon 2.1.8. 

There is no need for ParanoidCocoonServlet or setting init-classloader
to true.

Use Websphere console http://localhost:9060/ibm/console
- on the left click on + Applications
- click on Enterprise Applications
- on the right click on your application
- set Class Loader mode to PARENT_LAST
- set WAR class loader policy to APPLICATION

That's it.

Kees


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


[websphere6] deploying cocoon servlet in websphere fails (2)

Posted by Kees Broenink <ke...@backbase.com>.
Forgot to mention that using the ParanoidCocoonServlet or the web.xml
setting 'init-classloader' did not solve the problem.

I am using Cocoon 2.1.7 with two blocks:
- include.block.jsp=true
- include.block.paranoid=true

With ParanoidServlet the error is different:

java.lang.ExceptionInInitializerError
	at
org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
ultStore.java:213)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:283)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:277)

Anybody?

Kees

-----Oorspronkelijk bericht-----
Van: Kees Broenink [mailto:kees.broenink@backbase.com] 
Verzonden: Friday, July 22, 2005 4:17 PM
Aan: dev@cocoon.apache.org; users@cocoon.apache.org
Onderwerp: [websphere6] deploying cocoon servlet in websphere fails


Hi lists,

I am using Cocoon for a long time now, also building my own transformers
etc. But I always used Tomcat to deploy the servlet. I have successfully
used Weblogic (configuring my hand using a exploded war). But now I have
problems with Websphere 6. I have applied the helpful interformation in
the archives about setting PARENT_LAST as Classloader Mode. I also set
the WAR classloader policy from Module to Application.

The error I get is:

java.lang.NoClassDefFoundError: net/sf/ehcache/CacheManager
	at
org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
ultStore.java:213)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:283)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:277)
      ....

Any help very much appreciated.

Kees



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


[websphere6] deploying cocoon servlet in websphere fails (2)

Posted by Kees Broenink <ke...@backbase.com>.
Forgot to mention that using the ParanoidCocoonServlet or the web.xml
setting 'init-classloader' did not solve the problem.

I am using Cocoon 2.1.7 with two blocks:
- include.block.jsp=true
- include.block.paranoid=true

With ParanoidServlet the error is different:

java.lang.ExceptionInInitializerError
	at
org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
ultStore.java:213)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:283)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:277)

Anybody?

Kees

-----Oorspronkelijk bericht-----
Van: Kees Broenink [mailto:kees.broenink@backbase.com] 
Verzonden: Friday, July 22, 2005 4:17 PM
Aan: dev@cocoon.apache.org; users@cocoon.apache.org
Onderwerp: [websphere6] deploying cocoon servlet in websphere fails


Hi lists,

I am using Cocoon for a long time now, also building my own transformers
etc. But I always used Tomcat to deploy the servlet. I have successfully
used Weblogic (configuring my hand using a exploded war). But now I have
problems with Websphere 6. I have applied the helpful interformation in
the archives about setting PARENT_LAST as Classloader Mode. I also set
the WAR classloader policy from Module to Application.

The error I get is:

java.lang.NoClassDefFoundError: net/sf/ehcache/CacheManager
	at
org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefa
ultStore.java:213)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:283)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:277)
      ....

Any help very much appreciated.

Kees