JBoss / Tomcat / Cocoon 2
petersen Oct 4, 2001 7:44 AMI have unsuccessfully tried to get the above mentioned products to working together. The exception thrown when trying to access Cocoon is shown at the bottom of this mail.
I have used various combinations of products versions as described below, every time resulting in the same exception.
Help would be much appreciated. It is not of importence wich version of Tomcat and JBoss I end up using, so if you have instructions of how to accomplish this, I would like to know.
It is no requirement for me that the tree products runs in the same VM, but I have been unable to access JBoss from Tomcat when the two are running i different VM's. If you have been able to do this, I would very much like to know how.
Regards
KP
--------------------------------------------------------------------------------
Versions:
J2SDK1.4beta2 (also tried with J2SDK1.3.1)
JBoss 2.4.1+Tomcat 3.2.3
Xerces 1.3.0 (also tried with Xerces 1.4.3)
Install notes:
I have placed cocoon.war in %TOMCAT_HOME%\webapps and replaced jaxp.jar and parser.jar
in %TOMCAT_HOME%\lib by xerces.jar (renamed as parser.jar) as described in the
cocoon installation instructions.
Execution and Exception:
run_with_tomcat.bat
http://localhost:8080/cocoon/
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
exception
org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations
request-uri
/cocoon
stacktrace
org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations
at org.apache.cocoon.Cocoon.configure(Cocoon.java:275)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:198)
at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:727)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:204)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:144)
at org.jboss.tomcat.EmbeddedTomcatServiceSX.performDeploy(EmbeddedTomcatServiceSX.java:134)
at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:509)
at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.Main.(Main.java:210)
at org.jboss.Main$1.run(Main.java:116)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:112)
Caused by: org.xml.sax.SAXNotSupportedException: Property: http://xml.org/sax/properties/lexical-handler
at org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:94)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:271)
... 48 more