You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Geeta Sharma <gs...@knowledgeview.co.uk> on 2001/11/15 07:00:12 UTC

Cocoon not able to find Action classes.

Hi,
I am using Cocoon 2 with Orion 1.5.2 . The Default Cocoon page and examples
work properly. I have prepared a Application .ear file and configured the
Orion Server to run Cocoon as my Web framework. The System is working
properly for .XSP pages and I am able to view them, but when I add Actions,
I get :-
............................................................................
...........
internal-server-error

message Error in sitemap configuration :
com.knowledgeview.rapidx.web.action.DoLogin

description
org.apache.avalon.framework.configuration.ConfigurationException: Error in
sitemap configuration : com.knowledgeview.rapidx.web.action.DoLogin
Original exception : java.lang.ClassNotFoundException:
com.knowledgeview.rapidx.web.action.DoLogin
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:218)
at
org.apache.cocoon.www.WEB_INF.lib.sitemap_xmap$Configurer.configActions(site
map_xmap.java:1059)
at
org.apache.cocoon.www.WEB_INF.lib.sitemap_xmap.configure(sitemap_xmap.java:3
72)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Un
known Source)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
Unknown Source)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:135)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:345)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:323)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:271)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:188)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Unknown Source)

............................................................................
...............

It is clear that Cocoon is not able to locate the required classes. All the
classes are present in ejb.jar file. I do not want to make my actions part
of cocoon.jar. I have tried all below combinations for setting class path,
but still I get the same error.

1) I edited web.xml file in WEB-INF, to give extra-classpath path to my
ejb.jar file. It did not work.

2) Copied ejb.jar in WEB-INF/lib directory. This also did not work.

Any suggestion how I can make cocoon access actions from my EJB application
jar file, containing all my ejb, and action classes.
When I See the cocoon.log file , I am able to see the required jar file
classpath printed.

Thanks in advance
Geeta