cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Mu" <...@softtracks.com>
Subject Problems in running Cocoon on JBoss
Date Wed, 20 Mar 2002 00:13:51 GMT
Hi all,

I've already installed JBoss-2.2.2-Tomcat-3.2.2 ans Cocoon-2.0.1, and make
the changes exatly like the instructions as below:

============================================================================
========
Installing on JBoss 2.2.2 with Tomcat 3.2.2

In order to get Cocoon running you have to install Xerces as default XML
parser for JBoss.

Stop the server if it is running.
Remove the following files from the jboss/lib directory
crimson.jar
jaxp.jar
xml.jar
Remove the following files from the tomcat/lib directory
jaxp.jar
parser.jar
Copy xerces-XXX.jar from cocoon/lib to jboss/lib
Change jboss/bin/run.sh

 [...]
# Add the XML parser jars and set the JAXP factory names
# Crimson parser JAXP setup(default)
# Change it to Xerces for C2
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xerces-XXX.jar
# Remove the following two lines
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
mentBuilderFactoryImpl
JAXP="$JAXP -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAX
ParserFactoryImpl"
[...]

=========================================================================

But I still got the exception while I started JBoss using run_with_tomcat as
below:
========================================================================
[Service Control] Registered with server
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
        at java.lang.Class.getConstructors0(Native Method)
        at java.lang.Class.getConstructors(Unknown Source)
        at
com.sun.management.jmx.Introspector.testCompliance(Introspector.java:95)
        at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
        at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:507)
        at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
        at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
        at org.jboss.Main.<init>(Main.java:187)
        at org.jboss.Main$1.run(Main.java:121)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.Main.main(Main.java:117)
Exception in thread "main" [Default] java.lang.NoClassDefFoundError:
javax/xml/parsers/DocumentBuilderFactory
============================================================================
=====

The xerces-XXX.jar in Cocoon-2.0.1 is xerces-1.4.4.jar, and I checked this
file and found there is no "org/xml/sax/SAXException" class. However,
another jar file in cocoon-2.0.1\lib\core\xml-apis.jar has SAXException
class, so I added this jar into classpath. Unfortunatly, I got another error
as below:

[Container factory]
Deploying:file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/tomcat-
test.ear
[Container factory] The encoding "Cp1252" is not supported.:0:0
[Container factory] org.xml.sax.SAXParseException: The encoding "Cp1252" is
not supported.
[Container factory]     at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
[Container factory]     at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.
java:546)
[Container factory]     at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
[Container factory]     at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
[Container factory]     at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:19
5)
[Container factory]     at javax.xml.parsers.DocumentBuilder.parse(Unknown
Source)
[Container factory]     at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)
[Container factory]     at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)
[Container factory]     at
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:117)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
[Container factory]     at org.jboss.ejb.ContainerFactory.deploy(ContainerFa
ctory.java:275)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:415)
[Container factory]     at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory]     at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory]     at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Container factory]     at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at org.jboss.Main.<init>(Main.java:217)
[Container factory]     at org.jboss.Main$1.run(Main.java:121)
[Container factory]     at
java.security.AccessController.doPrivileged(Native Method)
[Container factory]     at org.jboss.Main.main(Main.java:117)
[Container factory] org.jboss.ejb.DeploymentException: The encoding "Cp1252"
is not supported., Cause:org.xml.sax.SAXPar
seException: The encoding "Cp1252" is not supported.
[Container factory]     at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:153)
[Container factory]     at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)
[Container factory]     at
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:117)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:415)
[Container factory]     at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory]     at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory]     at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Container factory]     at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at org.jboss.Main.<init>(Main.java:217)
[Container factory]     at org.jboss.Main$1.run(Main.java:121)
[Container factory]     at
java.security.AccessController.doPrivileged(Native Method)
[Container factory]     at org.jboss.Main.main(Main.java:117)
[J2EE Deployer Default] Starting tomcat-test.ear failed!
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Def
ault/tomcat-test.ear, Cause:org.jboss.ejb.DeploymentException: The encoding
"Cp1252" is not supported., Cause:org.xml.sa
x.SAXParseException: The encoding "Cp1252" is not supported.
[Auto deploy]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:365)
[Auto deploy]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:415)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Auto deploy]   at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.Main.<init>(Main.java:217)
[Auto deploy]   at org.jboss.Main$1.run(Main.java:121)
[Auto deploy]   at java.security.AccessController.doPrivileged(Native
Method)
[Auto deploy]   at org.jboss.Main.main(Main.java:117)
[J2EE Deployer Default] Module tomcat-test.war is not running
[J2EE Deployer Default] Module tomcat-test.ear is not running
[J2EE Deployer Default] Destroying application tomcat-test.ear
[Auto deploy] Deployment
failed:file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/tomcat-test.ear
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while
starting tomcat-test.ear: Could not deploy file:
/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/tomcat-test.ear
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:442)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Auto deploy]   at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.Main.<init>(Main.java:217)
[Auto deploy]   at org.jboss.Main$1.run(Main.java:121)
[Auto deploy]   at java.security.AccessController.doPrivileged(Native
Method)
[Auto deploy]   at org.jboss.Main.main(Main.java:117)
[Auto deploy] Started


Can anybody help me what's happend here?


Thanks,

George Mu


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message