3 Replies Latest reply on Jun 27, 2007 5:07 AM by David Hansson

    HelloWorldPortlet complications

    David Hansson Newbie

      We're currently trying out JBoss Portal, to perhaps use it in a project. We are running JBoss Portal + JBoss AS (version 2.6-CR3) on Solaris 10.

      Downloaded the HelloWorldPortlet from Portletswap.com and it works just fine out-of-the-box, but when we're compiling it ourselves, running ANT, we get the following errors.

      15:45:42,913 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet, warUrl=.../tmp/deploy/tmp2465helloworldportlet-exp.war/
      15:45:43,727 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet HelloWorldPortlet threw an error during init
      15:45:43,729 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:283)
      15:45:43,730 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:124)
      15:45:43,730 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:152)
      15:45:43,731 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:94)
      15:45:43,731 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
      15:45:43,731 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
      15:45:43,732 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
      15:45:43,732 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      15:45:43,732 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      15:45:43,732 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
      15:45:43,733 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:45:43,733 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:45:43,733 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      15:45:43,734 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      15:45:43,734 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      15:45:43,734 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      15:45:43,734 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      15:45:43,735 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      15:45:43,735 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      15:45:43,735 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      15:45:43,736 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      15:45:43,736 ERROR [STDERR] at $Proxy187.deploy(Unknown Source)
      15:45:43,736 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
      15:45:43,736 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
      15:45:43,737 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:45:43,737 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:45:43,737 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      15:45:43,739 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      15:45:43,739 ERROR [STDERR] at $Proxy153.deploy(Unknown Source)
      15:45:43,739 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
      15:45:43,740 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:160)
      15:45:43,740 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      15:45:43,741 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:45:43,741 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:45:43,741 ERROR [STDERR] at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
      15:45:43,742 ERROR [STDERR] at $Proxy190.handleNotification(Unknown Source)
      15:45:43,742 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
      15:45:43,742 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
      15:45:43,743 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
      15:45:43,743 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
      15:45:43,743 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
      15:45:43,743 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
      15:45:43,744 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:45:43,744 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:45:43,744 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      15:45:43,745 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      15:45:43,745 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      15:45:43,745 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      15:45:43,745 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      15:45:43,746 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      15:45:43,746 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      15:45:43,746 ERROR [STDERR] at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
      15:45:43,746 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      15:45:43,747 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      15:45:43,747 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      15:45:43,747 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      15:45:43,748 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      15:45:43,748 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      15:45:43,748 ERROR [STDERR] at $Proxy168.start(Unknown Source)
      15:45:43,748 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      15:45:43,749 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      15:45:43,749 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      15:45:43,750 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
      15:45:43,750 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:45:43,751 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      15:45:43,751 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      15:45:43,751 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      15:45:43,751 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      15:45:43,752 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      15:45:43,752 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      15:45:43,752 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      15:45:43,753 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      15:45:43,753 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      15:45:43,753 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      15:45:43,753 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
      15:45:43,754 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      15:45:43,754 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      15:45:43,754 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      15:45:43,755 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      15:45:43,755 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      15:45:43,757 ERROR [STDERR] Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
      15:45:43,757 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
      15:45:43,758 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      15:45:43,758 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      15:45:43,758 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
      15:45:43,759 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
      15:45:43,759 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
      15:45:43,759 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
      15:45:43,759 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:242)
      15:45:43,760 ERROR [STDERR] ... 83 more
      


      Bad version number in .class file is what puzzles us, why would it be any difference if we compile it ourselves?