8 Replies Latest reply on Jan 31, 2003 9:53 AM by jcordes

    XDoclet and JBoss startup

    jcordes

      Hi all !

      I'm experiencing some difficulties using JBoss-IDE. Here's my configuration:

      Windows XP
      JDK 1.4.1_01
      Eclipse M4
      JBoss-3.0.4_tomcat-4.0.6

      1. After hitting @ in a javadoc-comment I get a list of javadoc-tags and XDoclet tags. Now I select ejb put no proposals are shown. In the documentation it's mentioned that this may be the result of conflicting xtags.xml definitions, but I do not know how to resolve this.

      2. After configuring the server-navigator and starting jboss I get the following error:

      13:19:59,214 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@476ae3a{ url=file:/F:/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/tomcat4-service.xml, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context; - nested throwable: (RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      Cause: java.lang.NoClassDefFoundError: org/apache/catalina/Context)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:155)
      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:209)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      Cause: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBeanServerImpl.java:883)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:816)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:293)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:167)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:130)
      ... 55 more

      Somebody may help me out with these ?

      TIA,

      Jochen.

        • 1. Re: XDoclet and JBoss startup
          hansd

          1. After hitting @ in a javadoc-comment I get a list of javadoc-tags and XDoclet tags. Now I select ejb put no proposals are shown. In the documentation it's mentioned that this may be the result of conflicting xtags.xml definitions, but I do not know how to resolve this.

          The proposals depend on the context. To get ejb proposals you have to be in a class that implement some EJB bean interface.

          The xtags.xml for the ejb module is not the reason for this.

          • 2. Re: XDoclet and JBoss startup
            hansd

            1. After hitting @ in a javadoc-comment I get a list of javadoc-tags and XDoclet tags. Now I select ejb put no proposals are shown. In the documentation it's mentioned that this may be the result of conflicting xtags.xml definitions, but I do not know how to resolve this.

            The proposals depend on the context. For @ejb you get proposals if you are in a class the implement some EJB bean interface.

            The xtags.xml for the ejb module is not the problem.

            2. After configuring the server-navigator and starting jboss I get the following error:

            I'm debugging a couple of launching problems and eventually I will also come to this one but I don't know when.

            • 3. Re: XDoclet and JBoss startup
              hansd

              1. After hitting @ in a javadoc-comment I get a list of javadoc-tags and XDoclet tags. Now I select ejb put no proposals are shown. In the documentation it's mentioned that this may be the result of conflicting xtags.xml definitions, but I do not know how to resolve this.

              The proposals depend on the context. For @ejb you get proposals if you are in a class the implement some EJB bean interface.

              The xtags.xml for the ejb module is not the problem.

              2. After configuring the server-navigator and starting

              • 4. Re: XDoclet and JBoss startup
                hansd

                1. After hitting @ in a javadoc-comment I get a list of javadoc-tags and XDoclet tags. Now I select ejb put no proposals are shown. In the documentation it's mentioned that this may be the result of conflicting xtags.xml definitions, but I do not know how to resolve this.

                The proposals depend on the context. For @ejb you get proposals if you are in a class the implement some EJB bean interface.

                The xtags.xml for the ejb module is not the problem.

                2. After configuring the server-navigator and starting

                • 5. Re: XDoclet and JBoss startup
                  jcordes

                  Hi Hans !

                  Now the reply works ;-). I have written an adapter for EntityBeans and I'm extending it, but even implementing javax.ejb.EntityBean directly doesn't help. The proposals are still not shown. What am I doing wrong ? Did I miss some configuration step? Also no luck using the struts-tags (action-classes)!

                  Bye,

                  Jochen.

                  • 6. Re: XDoclet and JBoss startup
                    hansd

                    import javax.ejb.EntityBean;

                    /**
                    * @ejb.bean cmp-version = "1.x"
                    */
                    public class Test implements EntityBean {

                    }

                    From the @ on I get proposals to set up this structure.

                    • 7. Re: XDoclet and JBoss startup
                      jcordes

                      Hi Hans!

                      Finally I got it working. It behaves strange, though. After pressing @ I get a list of JavaDoc- and XDoclet-Tags, but for ejb, there's nothing else shown. Then I select ejb and on screen it says @ejb. . I type in @ behind @ejb. and hit backspace, voila there's the list with class-level tags. Is this the way it's intended to work ? The same is happening with attributes ...

                      TIA,

                      Jochen.

                      • 8. Re: XDoclet and JBoss startup
                        jcordes

                        I must have been deaf, dumb and blind in all this. It works all right, just had to press ctrl-space as mentioned in the docs :-(.

                        Sorry for the inconvinience ...

                        Bye,

                        Jochen.