2 Replies Latest reply on Jan 9, 2009 8:34 PM by sanjay singh

    Error while starting JBoss

    sanjay singh Newbie

      Hi All,
      I am getting following error while starting jboss-5.0.0.GA server on Mac OSX 10.5.6:

      11:52:17,844 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create
      java.lang.NoSuchMethodError: org.apache.catalina.startup.Catalina.setCatalinaHome(Ljava/lang/String;)V
       at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:187)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
       at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.reflect.plugins.introspection.Re
      


      I tried with jboss-4.2.3.GA and jboss-4.2.2.GA also but getting the similar error related to catalina property:

      11:32:50,266 WARN [ServiceController] Problem starting service jboss.web:service=WebServer
      javax.management.AttributeNotFoundException: Cannot find attribute catalinaHome
       at org.apache.tomcat.util.modeler.ManagedBean.getSetter(ManagedBean.java:531)
       at org.apache.tomcat.util.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:407)
       at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:70)
       at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
       at org.jboss.web.tomcat.service.JBossWeb.startService(JBossWeb.java:423)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatche
      


      Can someone please help me to fix this issue. Thanks in advance.

      Thanks,
      Sanjay

        • 1. Re: Error while starting JBoss
          Peter Johnson Master

          I suspect that you have a stray catalina.jar file in your classpath, possibly from an installation of Tomcat. Try adding the "-verbose:class" JVM option to the JAVA_OPTS - this option will print out the location of the JAR file for each class loaded. This will help to determine if you do have a stray jar file somewhere.

          I don't have a Mac, so I do not know how env vars are set there, but on Windows and Linux I do NOT set a CLASSPATh environment variable. I find that doing so causes more problems than it solves.

          • 2. Re: Error while starting JBoss
            sanjay singh Newbie

            Thanks Peter for your suggestion. There was catalina.jar file present in /Library/Java/Extension (Mac OSX path for Java) which was creating problem. I removed it and it works fine.

            Thanks again for the idea.

            Regards,
            Sanjay Singh