0 Replies Latest reply on Aug 14, 2002 11:57 AM by SD

    Problems with JBoss 3.0/Tomcat 4.1.8

    SD Newbie

      Hi
      We have been partially successful in integrating JBoss 3.0 with Tomcat 4.1.8. Basically, we opted to do this in order to take advantage of Tomcat 4.1.8's excellent User Admin application.

      In order to do this, we changed the ENTITY entry in Tomcat4-service.xml file to point to the Tomcat 4.1.8 install directory and added some classpath entries after it for the Catalina.jar for Tomcat4.0. that came bundled with JBoss3.0 because it needed the XmlAction.class file (which is not availalbe in the Catalina.jar file that came with Tomcat4.1.8)

      Anyway, the net of it is, we are able to use this combination up to a point, but it is flaky. In order to run the Admin App that came with 4.1.8, we created a war file from the admin directory of webapps in Tomcat4.1.8 and deployed it to the <JBoss3.0_Install>/server/default/deploy directory. It seems to deploy successfully, but when we log in to the app, it says the the following message. Can anyone tell us what to do to make it work ?

      Thanks in advance,
      S.D

      Here is the file containing the messages we get
      09:52:19,749 INFO [MainDeployer] Starting deployment of package: file:/home/sdeo/apps/webservers/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/admin.war
      09:52:20,018 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/admin, warUrl=file:/home/sdeo/apps/webservers/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/admin.war/101.admin.war
      09:52:20,508 INFO [Engine] WebappLoader[/admin]: Deploying class repositories to work directory /home/sdeo/apps/webservers/jakarta-tomcat-4.1.8/work/localhost/admin
      09:52:20,508 INFO [Engine] WebappLoader[/admin]: Deploy class files /WEB-INF/classes to /home/sdeo/apps/webservers/jakarta-tomcat-4.1.8/work/localhost/admin/WEB-INF/classes
      09:52:20,659 INFO [Engine] WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /home/sdeo/apps/webservers/jakarta-tomcat-4.1.8/work/localhost/admin/WEB-INF/lib/struts.jar
      09:52:20,725 INFO [Engine] StandardManager[/admin]: Seeding random number generator class java.security.SecureRandom
      09:52:20,726 INFO [Engine] StandardManager[/admin]: Seeding of random number generator has been completed
      09:52:21,809 INFO [Engine] ContextConfig[/admin]: Added certificates -> request attribute Valve
      09:52:22,186 INFO [Engine] ContextConfig[/admin]: Configured an authenticator for method FORM
      09:52:22,296 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
      09:52:22,297 INFO [Engine] StandardWrapper[/admin:default]: Loading container servlet default
      09:52:22,297 INFO [Engine] default: init
      09:52:22,298 INFO [Engine] StandardWrapper[/admin:invoker]: Loading container servlet invoker
      09:52:22,298 INFO [Engine] invoker: init
      09:52:22,754 INFO [Engine] action: init
      09:52:35,308 INFO [Engine] jsp: init
      09:52:35,311 INFO [MainDeployer] Successfully completed deployment of package: file:/home/sdeo/apps/webservers/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/admin.war
      09:52:35,317 INFO [URLDeploymentScanner] Started
      09:52:35,317 INFO [MainDeployer] Successfully completed deployment of package: file:/home/sdeo/apps/webservers/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xml
      09:52:35,318 INFO [Server] JBoss (MX MicroKernel) [3.0.0 Date:200205311035] Started in 0m:33s:772ms
      09:53:06,885 INFO [Engine] jsp: init
      09:53:19,316 INFO [Engine] jsp: init
      09:53:19,640 INFO [STDOUT] javax.servlet.UnavailableException: MBeanServer is not available
      09:53:19,641 INFO [STDOUT] at org.apache.webapp.admin.ApplicationServlet.initServer(ApplicationServlet.java:206)
      09:53:19,641 INFO [STDOUT] at org.apache.webapp.admin.ApplicationServlet.getServer(ApplicationServlet.java:138)
      09:53:19,642 INFO [STDOUT] at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(TomcatTreeBuilder.java:127)
      09:53:19,642 INFO [STDOUT] at org.apache.webapp.admin.SetUpTreeAction.perform(SetUpTreeAction.java:165)
      09:53:19,643 INFO [STDOUT] at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
      09:53:19,643 INFO [STDOUT] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
      09:53:19,643 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
      09:53:19,644 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      09:53:19,644 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      09:53:19,644 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      09:53:19,645 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      09:53:19,645 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      09:53:19,646 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      09:53:19,646 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      09:53:19,646 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      09:53:19,647 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
      09:53:19,647 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      09:53:19,648 INFO [STDOUT] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
      09:53:19,648 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      09:53:19,648 INFO [STDOUT] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      09:53:19,649 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      09:53:19,649 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      09:53:19,650 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      09:53:19,650 INFO [STDOUT] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
      09:53:19,650 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      09:53:19,651 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      09:53:19,651 INFO [STDOUT] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      09:53:19,652 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      09:53:19,652 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      09:53:19,652 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      09:53:19,653 INFO [STDOUT] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
      09:53:19,653 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      09:53:19,653 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      09:53:19,654 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      09:53:19,654 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      09:53:19,655 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      09:53:19,655 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      09:53:19,659 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      09:53:19,659 INFO [STDOUT] at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
      09:53:19,660 INFO [STDOUT] at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
      09:53:19,660 INFO [STDOUT] at java.lang.Thread.run(Thread.java:479)
      09:53:19,820 INFO [Engine] Ajp13Processor[8009][5] Starting background thread
      09:53:19,921 INFO [Engine] jsp: init
      09:53:20,174 INFO [Engine] jsp: init
      09:53:20,213 INFO [Engine] Ajp13Processor[8009][6] Starting background thread
      09:53:20,892 INFO [Engine] Ajp13Processor[8009][7] Starting background thread
      09:53:20,905 INFO [Engine] Ajp13Processor[8009][8] Starting background thread
      09:53:21,054 INFO [Engine] jsp: init
      09:53:35,664 INFO [Engine] Ajp13Processor[8009][9] Starting background thread
      09:53:35,895 INFO [Engine] action: Entered TreeControlTestAction:perform()
      09:53:35,895 INFO [Engine] action: tree param is null
      09:53:35,896 INFO [Engine] action: Select event on Global Administer Users
      09:53:36,323 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
      javax.servlet.UnavailableException: MBeanServer is not available
      at org.apache.webapp.admin.ApplicationServlet.initServer(ApplicationServlet.java:206)
      at org.apache.webapp.admin.ApplicationServlet.getServer(ApplicationServlet.java:138)
      at org.apache.webapp.admin.users.ListUsersAction.perform(ListUsersAction.java:144)
      at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
      at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
      at java.lang.Thread.run(Thread.java:479)
      09:53:36,334 INFO [Engine] StandardWrapper[/admin:action]: Marking servlet action as unavailable