I just installed and made C2/TC4 work. Renaming xerces jar is not related to the
problem. The problem is
associated with the other parser jar files that come with TC4. I had to remove all
parser.jar, crimson.jar,
and jaxp.jar files. Then copy the C2 xerces jar file to the common\lib directory and
rename it the same name
as what was previously there for jaxp.jar
Removing the cocoon.war file and then putting it back is not related to the problem.
The only thing you should
have to remove when restarting TC4 is the work directory that is dynamically created
after starting TC4.
These steps are not documented and took sometime for me figure out. Fortunately a lot
of people on this
mailing list keep answering this question for others!
Earl
Allan Kamau wrote:
> Hi all,
> If this question has already been answered, sorry for
> the inconvience caused.
> Am trying to install Cocoon-2.0b2 in TC 4.0 Final.
> I've followed the install instruction included in
> cocoon-2.0b2 but after deploying the cocoon.war file
> into the webapps directory of $CATALINA_HOME I get the
> error below.
> I've even tried shutting down TC4 then renaming
> xerces_1_4_1.jar to axerces_1_4_1.jar then deleting
> cocoon.war( so it does not overwrite my changes), then
> restarting TC4 but the problem persists.
>
> Cocoon 2 - Internal servlet error
>
> --------------------------------------------------------------------------------
>
> type internal-servlet-error
>
> message Internal servlet error
>
> description Cocoon was not initialized.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /cocoon/
>
> embedded exception
>
> org.apache.avalon.framework.component.ComponentException:
> Could not access the Component for role:
> org.apache.cocoon.components.parser.Parser
>
> embedded exception stacktrace
>
> org.apache.avalon.framework.component.ComponentException:
> Could not access the Component for role:
> org.apache.cocoon.components.parser.Parser
> at
>
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:286)
> at
> org.apache.cocoon.Cocoon.configure(Cocoon.java:210)
> at
> org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
> at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
> at
> org.apache.catalina.core.StandardWrapper.load(Unknown
> Source)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
> Source)
> at
> org.apache.catalina.core.StandardContext.start(Unknown
> Source)
> at
> org.apache.catalina.core.ContainerBase.addChild(Unknown
> Source)
> at
> org.apache.catalina.core.StandardHost.addChild(Unknown
> Source)
> at
> org.apache.catalina.core.StandardHost.install(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.deployApps(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.start(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
> Source)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> Source)
> at
> org.apache.catalina.core.ContainerBase.start(Unknown
> Source)
> at
> org.apache.catalina.core.ContainerBase.start(Unknown
> Source)
> at
> org.apache.catalina.core.StandardEngine.start(Unknown
> Source)
> at
> org.apache.catalina.core.StandardService.start(Unknown
> Source)
> at
> org.apache.catalina.core.StandardServer.start(Unknown
> Source)
> at org.apache.catalina.startup.Catalina.start(Unknown
> Source)
> at
> org.apache.catalina.startup.Catalina.execute(Unknown
> Source)
> at
> org.apache.catalina.startup.Catalina.process(Unknown
> Source)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.catalina.startup.Bootstrap.main(Unknown
> Source)
>
> exception
>
> org.apache.avalon.framework.configuration.ConfigurationException:
> Error trying to load configurations
>
> stacktrace
>
> org.apache.avalon.framework.configuration.ConfigurationException:
> Error trying to load configurations
> at
> org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
> at
> org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
> at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
> at
> org.apache.catalina.core.StandardWrapper.load(Unknown
> Source)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
> Source)
> at
> org.apache.catalina.core.StandardContext.start(Unknown
> Source)
> at
> org.apache.catalina.core.ContainerBase.addChild(Unknown
> Source)
> at
> org.apache.catalina.core.StandardHost.addChild(Unknown
> Source)
> at
> org.apache.catalina.core.StandardHost.install(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.deployApps(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.start(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
> Source)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> Source)
> at
> org.apache.catalina.core.ContainerBase.start(Unknown
> Source)
> at
> org.apache.catalina.core.ContainerBase.start(Unknown
> Source)
> at
> org.apache.catalina.core.StandardEngine.start(Unknown
> Source)
> at
> org.apache.catalina.core.StandardService.start(Unknown
> Source)
> at
> org.apache.catalina.core.StandardServer.start(Unknown
> Source)
> at org.apache.catalina.startup.Catalina.start(Unknown
> Source)
> at
> org.apache.catalina.startup.Catalina.execute(Unknown
> Source)
> at
> org.apache.catalina.startup.Catalina.process(Unknown
> Source)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.catalina.startup.Bootstrap.main(Unknown
> Source)
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
>http://im.yahoo.com
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>