3 Replies Latest reply on Feb 13, 2002 10:38 AM by Adrian Brock

    Jboss-2.44 with Tomcat-4.0.1

    kalaiselvan Newbie

      I'm a new one for JBOSS,Tomcat,Apache.. I want jboss embedded with tomcat service. Where i uncomment the file jboss.jcml"

      <!-- Uncomment to add embedded tomcat service
      <mbean code="org.jboss.tomcat.EmbeddedTomcatServiceSX" name="DefaultDomain:service=Jetty" />
      -->

      But i have get the error like that....

      [ERROR,ConfigurationService] Could not create MBean DefaultDomain:service=EmbeddedTomcat(org.jboss
      .tomcat.EmbeddedTomcatServiceSX)
      java.lang.ClassNotFoundException: org.jboss.tomcat.EmbeddedTomcatServiceSX
      at javax.management.loading.MLet.findClass(MLet.java:800)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      at com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:751)
      at org.jboss.configuration.ConfigurationService.create(ConfigurationService.java:683)
      at org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.jav
      a:461)
      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.<init>(Main.java:200)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)

      How can i rectify that problem.

      Thanx in Advance
      Kalasielvan.

        • 1. Re: Jboss-2.44 with Tomcat-4.0.1
          Jerome Moliere Newbie

          > I'm a new one for JBOSS,Tomcat,Apache.. I want jboss
          > embedded with tomcat service. Where i uncomment the
          > file jboss.jcml"
          >
          > <!-- Uncomment to add embedded tomcat service
          > n code="org.jboss.tomcat.EmbeddedTomcatServiceSX"
          > name="DefaultDomain:service=Jetty" />
          > -->
          >
          > But i have get the error like that....
          >
          > [ERROR,ConfigurationService] Could not create MBean
          > DefaultDomain:service=EmbeddedTomcat(org.jboss
          > .tomcat.EmbeddedTomcatServiceSX)
          > java.lang.ClassNotFoundException:
          > org.jboss.tomcat.EmbeddedTomcatServiceSX
          > at
          > at
          > at
          > t
          > javax.management.loading.MLet.findClass(MLet.java:800)
          >
          > at
          > at
          > at
          > t
          > java.lang.ClassLoader.loadClass(ClassLoader.java:297)
          > at
          > at
          > at
          > t
          > java.lang.ClassLoader.loadClass(ClassLoader.java:253)
          > at
          > at
          > at
          > t
          > com.sun.management.jmx.MBeanServerImpl.findClass(MBean
          > erverImpl.java:2466)
          > at
          > at
          > at
          > t
          > com.sun.management.jmx.MBeanServerImpl.createMBean(MBe
          > nServerImpl.java:751)
          > at
          > at
          > at
          > t
          > org.jboss.configuration.ConfigurationService.create(Co
          > figurationService.java:683)
          > at
          > at
          > at
          > t
          > org.jboss.configuration.ConfigurationService.loadConfi
          > uration(ConfigurationService.jav
          > a:461)
          > at java.lang.reflect.Method.invoke(Native
          > (Native Method)
          > at
          > at
          > at
          > t
          > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSer
          > erImpl.java:1628)
          > at
          > at
          > at
          > t
          > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSer
          > erImpl.java:1523)
          > at
          > at org.jboss.Main.(Main.java:200)
          > at org.jboss.Main$1.run(Main.java:110)
          > at
          > at
          > at
          > t java.security.AccessController.doPrivileged(Native
          > Method)
          > at org.jboss.Main.main(Main.java:106)
          >
          > How can i rectify that problem.
          I think that the most simple way is to use the bundle while launching Jboss using the script run_with_catalina... You must ensure that you DataSource & other stuff is properly configured in the conf/catalina directory (you can put the jboss.jcml & other files from the default directory to this one if you configured them before)...

          Jerome

          • 2. Re: Jboss-2.44 with Tomcat-4.0.1
            kalaiselvan Newbie

            Hii all,

            i couldnt find the classes

            org.jboss.tomcat.EmbeddedTomcatServiceSX
            and
            org.jboss.web.catalina.EmbeddedCatalinaServicesSX


            That's y i got the problem when embadded with tomcat..

            Also i got the message like when run the run.bat in jboss

            org.jboss.deployment.J2eeDeploymentException: application contains war files but no web container
            available
            at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:496)
            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.j
            ava: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)

            But didnt get any error message when run the run_with_jetty.bat.

            How can i solve these problem..

            -Kalaiselvan.S

            • 3. Re: Jboss-2.44 with Tomcat-4.0.1
              Adrian Brock Master

              run.bat is for jboss without a webcontainer

              You get the error because it is trying to deploy
              web content.

              Use run_with_catalina.bat if you have web content to
              deploy.

              Note: tomcat-test.ear in jboss/deploy (default config)
              has web content

              Regards,
              Adrian