4 Replies Latest reply on Nov 6, 2008 4:59 AM by Nguyen Thanh

    Jboss Tools 3.0.0 Beta 1 - do not compile java class when pu

    Nguyen Thanh Newbie

      I use Jboss Tools 3 Beta 1 in Eclipse 3.4
      I create new Dynamic Web Project, chose Dynamic Web Module Version and Jboss Seam Portlet Project v2.0, but when I publish project to Jboss version 4.2.3, it not compile java class, only copy it (e.x: only copy MyHelloWorldPortlet.java to MyHelloWorldPortlet.war/WEB-INF/classes)

      What did I do wrong ?

        • 1. Re: Jboss Tools 3.0.0 Beta 1 - do not compile java class whe
          Max Rydahl Andersen Master

          are you using our JBoss Adapter or WTP's adapter ?

          Are the classes maybe in /WEB-INF/dev instead ? (to allow seam hot deploy?)

          • 2. Re: Jboss Tools 3.0.0 Beta 1 - do not compile java class whe
            Nguyen Thanh Newbie

            I use Jboss Adapter.
            Yes, you are right. It is in dev directory.
            But I still can't deploy that portlet: Firt, I create new Dynamic Web Project as I described, then I add new "Java Portlet", but when I publish to Jboss, it raise error:

            09:12:35,671 ERROR [LifeCycle] Cannot start object
            org.jboss.portal.portlet.container.PortletInitializationException: Portlet class
            not found org.domain.firstHelloWorldPortlet.session.MyFirstHelloWorldPortlet
            at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(Portl
            etContainerImpl.java:276)
            at org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle.inv
            okeStart(PortletContainerLifeCycle.java:76)
            at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCy
            cle.java:92)
            at org.jboss.portal.portlet.impl.container.PortletApplicationLifeCycle.s
            tartDependents(PortletApplicationLifeCycle.java:351)
            at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCy
            cle.java:128)
            at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(
            PortletAppDeployment.java:225)
            at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(Por
            tletAppDeployment.java:94)
            at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(Depl
            oymentContext.java:99)
            at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.
            start(PortalDeploymentInfoContext.java:220)
            at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerD
            eployer.java:217)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
            at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy227.deploy(Unknown Source)
            at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(Server
            Deployer.java:259)
            at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter
            .java:53)
            at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotificati
            on(WebAppIntercepter.java:159)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
            onListenerProxy.java:153)
            at $Proxy229.handleNotification(Unknown Source)
            at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
            ion(JBossNotificationBroadcasterSupport.java:127)
            at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
            n(JBossNotificationBroadcasterSupport.java:108)
            at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerS
            upport.java:340)
            at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java
            :308)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:48
            2)
            at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:142)
            at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
            .java:97)
            at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
            rServiceMBeanSupport.java:238)
            at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
            erceptor.java:87)
            at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
            start(SubDeployerInterceptorSupport.java:188)
            at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
            ptor.java:95)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy204.start(Unknown Source)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy9.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
            tScanner.java:421)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
            canner.java:610)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            doScan(AbstractDeploymentScanner.java:263)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            loop(AbstractDeploymentScanner.java:274)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            run(AbstractDeploymentScanner.java:225)
            Caused by: java.lang.ClassNotFoundException: org.domain.firstHelloWorldPortlet.s
            ession.MyFirstHelloWorldPortlet
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(Portl
            etContainerImpl.java:252)
            ... 76 more
            09:12:35,906 WARN [PortletAppDeployment] Failed to create instance MyFirstHello
            WorldPortletInstance of portlet /firstHelloWorldPortlet.MyFirstHelloWorldPortlet
            because portlet /firstHelloWorldPortlet.MyFirstHelloWorldPortlet is not availab
            le

            • 3. Re: Jboss Tools 3.0.0 Beta 1 - do not compile java class whe
              Max Rydahl Andersen Master

              don't put your portlet in the "action" src directory.
              Put it in "model"

              Yes, the folders have bad names and that is also why it is changed in Seam 2.1 ;)

              • 4. Re: Jboss Tools 3.0.0 Beta 1 - do not compile java class whe
                Nguyen Thanh Newbie

                Yes, it works.
                Thanks for your great help !