11 Replies Latest reply on Apr 21, 2002 11:45 AM by len

    JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K

    YJ Newbie

      Hello.
      I got a problem in running jboss2.4.4/tomcat4.0.1 with cocoon2.

      On Win2k Professional, suceeded running jboss with above combination,but on Linux I got a segmentaion-fault when starting run_with_catalina.sh.(tried on same machine.I use lilo)

      Here is my conf and run.sh & run.bat
      Xerces : xerces-1_4_3
      Win2k professional: JDK 1.3.1 ( build 1.3.1_01 )
      Linux 2.2.19: JDK 1.3.1 ( build 1.3.1_b24 ) glibc 2.1.3
      -- run.sh --
      JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar:../lib/xerces.jar
      echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
      java -classpath $JBOSS_CLASSPATH org.jboss.Main $@
      -- run.bat --
      set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;run.jar;../lib/xerces.jar
      echo JBOSS_CLASSPATH=%JBOSS_CLASSPATH%
      java -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
      pause

      thanks for reading.
      -- Auditd

        • 1. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
          Gasper Newbie

          Hello

          I don't know the answer to your question but I didn't manage to install coocon2 on win2000 I get an

          java.lang.NoClassDefFoundError: org/xml/sax/SAXException

          and jboss won't even start. This happens when I delete crimson.jar as written in the docs. I have xerces-1.4.4.jar in the lib/ dir and included in run.bat .

          What is your secret :) on how to install cocoon2?

          Thanks

          Gasper

          • 2. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
            YJ Newbie

            I just traced steps descibed in Cocoon2 install manual.
            step 1. delete crimson.jar, jaxp.jar in $JBOSS_DIST/lib
            step 2. delete parser.jar,jaxp.jar in $TOMCAT_HOME/lib for Tomcat ver. < 4.0. in case of TOMCAT 4.0, do nothing.
            step 3. edit your $JBOSS_DIST/bin/run.bat referring to above thread.

            > Hello
            >
            > I don't know the answer to your question but I didn't
            > manage to install coocon2 on win2000 I get an
            >
            > java.lang.NoClassDefFoundError:
            > org/xml/sax/SAXException
            >
            > and jboss won't even start. This happens when I
            > delete crimson.jar as written in the docs. I have
            > xerces-1.4.4.jar in the lib/ dir and included in
            > run.bat .
            >
            > What is your secret :) on how to install cocoon2?
            >
            > Thanks
            >
            > Gasper

            • 3. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
              YJ Newbie

              I forgot step4. sorry.

              step 4. download xerces package here(http://xml.apache.org/dist/xerces-j/). After unzip, copy xerces_X_X_X.jar to $JBOSS_DIST/lib.

              • 4. Re: JBoss2.4.4/Tomcat4.0.1/cocoon 2 on linux,win2K
                YJ Newbie

                found remedy in this forum's threads.

                1. segmentation fault
                add follow line in run.sh.(thanks for who answered segmentation-fault problem in this forum)
                >> ulimit -s 2048

                2. can't find sitemap.xmap error
                also found remedy in cocoon2 FAQ.
                according to FAQ, cocoon2 needs Xserver to run properly. so after starting X in linux box, above error disappeared.

                thanks for all and Happy New Year!!
                -- Auditd

                • 5. Re: JBoss2.4.4/Tomcat4.0.1/cocoon 2 on linux,win2K
                  Christopher Jozsa Newbie

                  It's usually easier not to replace jaxp/crimson with xerces, then rather include both; and put xerces in the front of the JBoss classpath. Even JBoss3 can run Cocoon2 this way - I have a working setup of these.

                  Christopher

                  • 6. Re: JBoss2.4.4/Tomcat4.0.1/cocoon 2 on linux,win2K
                    Markus Hammarsten Newbie

                    I could not get cocoon2 working

                    Could you provide exact scripts
                    for specially for W2000

                    • 7. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
                      Gasper Newbie

                      Hi

                      My cocoon2 deploys with JBoss2.4.4/Tomcat4.0.1/cocoon2 setup, but with an exception - below.

                      I've tried both your auditd, and your Cristopher, setups.

                      I found out that the jsp example does not work, all other examples do (except sql). I'm in pain because I need the jsp transformation - I'm building my app on it.

                      Did anyone get the jsp example to work??

                      Please help me out.

                      Gasper

                      Exception:

                      [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cocoon]: Servlet /cocoon threw load() exception
                      javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
                      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
                      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
                      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
                      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
                      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
                      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:282)
                      at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:191)
                      at java.lang.reflect.Method.invoke(Native Method)
                      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:505)
                      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
                      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
                      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
                      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
                      at java.lang.reflect.Method.invoke(Native Method)
                      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:967)
                      at $Proxy0.start(Unknown Source)
                      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
                      at java.lang.reflect.Method.invoke(Native Method)
                      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:208)
                      at org.jboss.Main$1.run(Main.java:110)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.Main.main(Main.java:106)
                      [ERROR,EmbeddedCatalinaServiceSX] ----- Root Cause -----
                      java.lang.Error: Unable to setup SAX parserjava.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl
                      at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:42)
                      at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:433)
                      at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
                      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
                      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
                      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
                      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
                      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
                      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:282)
                      at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:191)
                      at java.lang.reflect.Method.invoke(Native Method)
                      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:505)
                      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
                      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
                      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
                      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
                      at java.lang.reflect.Method.invoke(Native Method)
                      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:967)
                      at $Proxy0.start(Unknown Source)
                      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
                      at java.lang.reflect.Method.invoke(Native Method)
                      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:208)
                      at org.jboss.Main$1.run(Main.java:110)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.Main.main(Main.java:106)

                      • 8. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
                        Gasper Newbie

                        Ups

                        I didn't put up the right trace of the exception - above.
                        Please ignore it!

                        Sorry.

                        Gasper

                        The right exception is:

                        [INFO,EmbeddedCatalinaServiceSX] jsp: init
                        [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cocoon]: Servlet /cocoon threw load() exception
                        javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
                        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
                        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
                        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
                        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
                        at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
                        at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:282)
                        at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:191)
                        at java.lang.reflect.Method.invoke(Native Method)
                        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:505)
                        at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                        at java.lang.reflect.Method.invoke(Native Method)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
                        at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
                        at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
                        at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
                        at java.lang.reflect.Method.invoke(Native Method)
                        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:967)
                        at $Proxy0.start(Unknown Source)
                        at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
                        at java.lang.reflect.Method.invoke(Native Method)
                        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:208)
                        at org.jboss.Main$1.run(Main.java:110)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at org.jboss.Main.main(Main.java:106)
                        [ERROR,EmbeddedCatalinaServiceSX] ----- Root Cause -----
                        java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
                        at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
                        at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
                        at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)
                        at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
                        at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
                        at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
                        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
                        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
                        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
                        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
                        at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
                        at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:282)
                        at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:191)
                        at java.lang.reflect.Method.invoke(Native Method)
                        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:505)
                        at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                        at java.lang.reflect.Method.invoke(Native Method)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
                        at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
                        at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
                        at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
                        at java.lang.reflect.Method.invoke(Native Method)
                        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:967)
                        at $Proxy0.start(Unknown Source)
                        at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
                        at java.lang.reflect.Method.invoke(Native Method)
                        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:208)
                        at org.jboss.Main$1.run(Main.java:110)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at org.jboss.Main.main(Main.java:106)

                        • 9. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
                          Markus Hammarsten Newbie

                          This is the same exception which I get
                          help please !

                          • 10. Re: JBoss2.4.4/Tomcat4.0.1/cocoon2 on linux,win2K
                            marc fleury Master

                            Sorry I can't help here, but when you guys sort out the right setup for coocoon (the classpath and classes stuff is a mess) can you post this to the FAQ? (ADD YOU OWN FAQ entry) so others can find this easily?

                            thanks and good luck

                            • 11. Re: JBoss2.4.4/Tomcat4.0.1/cocoon 2 on linux,win2K
                              len Newbie

                              Dear Christopher!

                              You had successful attempt to execute JBoss/Tomcat/cocoon 2 on linux?
                              Please, I search for the help from you.
                              Describe your environment of performance.
                              I have made many unsuccessful tests.
                              Also studied a lot of documentation
                              Help me, please, with successful attempt

                              Elena