1 Reply Latest reply on Oct 8, 2012 9:37 AM by kenfinni

    Portletbridge portlet-class issue

    ssubbia

      Hi All,

       

      Is it possible to attach our own class to the portlet in portletbridge?

       

      in the portlet.xml i changed the below line to point to my class and  i got unsupported exception

       

      <portlet-class>org.portletbridge.portlet.PortletBridgePortlet</portlet-class>

       

      instead of this i put

       

      <portlet-class>org.portletbridge.portlet.GooglePortletBackingFile</portlet-class>  and i got the below exception. can any one please let me know how to attach our own file to the portlet?

       

      19:22:37,046 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deployment.portletbridge-portlet.war:main" from Service Module Loader

      19:22:37,897 WARN [org.jboss.modules] (MSC service thread 1-2) Failed to define class org.portletbridge.portlet.GooglePortletBackingFile in Module "deployment.portletbridge-portlet.war:main" from Service Module Loader: java.lang.UnsupportedClassVersionError: org/portletbridge/portlet/GooglePortletBackingFile : Unsupported major.minor version 51.0

            at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_21]

            at java.lang.ClassLoader.defineClassCond(Unknown Source) [rt.jar:1.6.0_21]

            at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.6.0_21]

            at java.security.SecureClassLoader.defineClass(Unknown Source) [rt.jar:1.6.0_21]

            at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.Module.loadModuleClass(Module.java:527) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.2.GA-redhat-1]

            at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:120)

            at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:524)

            at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:302)

            at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:115)

            at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:111) [portal-service.jar:]

            at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:188) [portal-service.jar:]

            at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:40) [portal-service.jar:]

            at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:101) [portal-service.jar:]

            at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42) [portal-service.jar:]

            at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61) [portal-service.jar:]

            at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53) [portal-service.jar:]

            at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52) [portal-service.jar:]

            at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55) [portal-service.jar:]

            at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.16.Final-redhat-1.jar:]

            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.16.Final-redhat-1.jar:]

            at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_21]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_21]

            at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_21]