Jahia Dev Forum > Struts2 Portlet...

0 (0 Good)
0 (0 Bad)

Struts2 Portlet deployement issue in Jahia_v6(EE)

by  hemanta »  2011/06/07 20:35

Hi

I have successfully deployed jsp portlet in jahia v6 . I?��m trying for struts2 portlet . It ?��s giving me the NoClassDefFoundError.
The following is the error log and also attching the sample code.
I ?��m using the following Library files

1. struts2-core-2.1.6.jar
2. xwork-2.1.2.jar
3. ognl-2.6.11.jar
4. spring-test-2.5.6.jar
5. commons-logging-1.1.1.jar
6. junit-3.8.1.jar
7. freemarker-2.3.13.jar
8. commons-fileupload-1.2.1.jar
9. commons-io-1.3.2.jar
10 . struts2-portlet-plugin-2.1.6.jar
11. portlet-api-2.0.jar12. jahia-bridges-6.5-SNAPSHOT.jar
13. portals-bridges-struts-1.2.7-1.0.jar


ERROR [MainDeployer] - Could not create deployment: file:/C:/jboss-4.2.3.GA/server/default/deploy/Struts2Test.war
java.lang.NoClassDefFoundError: org/apache/pluto/container/driver/PortletServlet

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.getEndpointBeans(JAXWSDeployerHookPreJSE.java:145)
at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.isWebServiceDeployment(JAXWSDeployerHookPreJSE.java:104)
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:87)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
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 $Proxy45.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
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.apache.pluto.container.driver.PortletServlet
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:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 42 more
  • Struts2 Portlet deployement issue in Jahia_v6(EE)
    2011/06/07 20:35

    hemanta Hi <br/><br/> I have successfully deployed jsp portlet in jahia v6 . I?��m trying for struts2 portlet . It ?��s giving me the NoClassDefFoundError.<br/> The following is the error log and also attching the sample code.<br/>I ?��m using the following Library files<br/><br/>1. struts2-core-2.1.6.jar<br/>2. xwork-2.1.2.jar <br/>3. ognl-2.6.11.jar <br/>4. spring-test-2.5.6.jar <br/>5. commons-logging-1.1.1.jar <br/>6. junit-3.8.1.jar<br/>7. freemarker-2.3.13.jar <br/>8. commons-fileupload-1.2.1.jar <br/>9. commons-io-1.3.2.jar<br/>10 . struts2-portlet-plugin-2.1.6.jar<br/>11. portlet-api-2.0.jar12. jahia-bridges-6.5-SNAPSHOT.jar<br/>13. portals-bridges-struts-1.2.7-1.0.jar<br/><br/><br/>ERROR [MainDeployer] - Could not create deployment: file:/C:/jboss-4.2.3.GA/server/default/deploy/Struts2Test.war<br/>java.lang.NoClassDefFoundError: org/apache/pluto/container/driver/PortletServlet<br/><br/> at java.lang.ClassLoader.defineClass1(Native Method)<br/> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)<br/> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)<br/> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)<br/> at java.net.URLClassLoader.access$000(URLClassLoader.java:56)<br/> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)<br/> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br/> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)<br/> at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.getEndpointBeans(JAXWSDeployerHookPreJSE.java:145)<br/> at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.isWebServiceDeployment(JAXWSDeployerHookPreJSE.java:104)<br/> at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:87)<br/> at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)<br/> at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)<br/> at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)<br/> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br/> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br/> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br/> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br/> at $Proxy45.create(Unknown Source)<br/> at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)<br/> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)<br/> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)<br/> at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)<br/> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/> at java.lang.reflect.Method.invoke(Method.java:597)<br/> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br/> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br/> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)<br/> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br/> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)<br/> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br/> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br/> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br/> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br/> at $Proxy9.deploy(Unknown Source)<br/> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)<br/> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)<br/> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)<br/> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)<br/> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)<br/>Caused by: java.lang.ClassNotFoundException: org.apache.pluto.container.driver.PortletServlet<br/> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)<br/> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br/> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)<br/> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)<br/> ... 42 more

  • Number of messages  9
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Struts2 Portlet deployement issue in Jahia_v6(EE)

    by  ktlili »  2011/06/07 20:35

    Hi,

    In your Porltlet, you should have something like that:
    [code:15rvom8e]
    lt;servlet
  • Re: Struts2 Portlet deployement issue in Jahia_v6(EE)
    2011/06/07 20:35

    ktlili Hi,<br/><br/>In your Porltlet, you should have something like that:<br/>[code:15rvom8e]<br/>lt;servlet

  • Number of messages  14
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Struts2 Portlet deployement issue in Jahia_v6(EE)

    by  hemanta »  2011/06/07 20:35

    Hi KT

    Thanks for quick reply . The error for pluto container has been solve.
    But it comes with another error while deploying in jahia-tomcat.
    The error is
    org.apache.tomcat.util.digester.Digester endElement
    SEVERE: End event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    ..............

    I'm sure that the error is in the web.xml or portlet.xml. If you can share me some sample example for struts2-portlet it well be very helpful to me.

    thanks
    Hemanta
  • Re: Struts2 Portlet deployement issue in Jahia_v6(EE)
    2011/06/07 20:35

    hemanta Hi KT<br/><br/> Thanks for quick reply . The error for pluto container has been solve. <br/>But it comes with another error while deploying in jahia-tomcat.<br/>The error is <br/>org.apache.tomcat.util.digester.Digester endElement<br/>SEVERE: End event threw exception<br/>java.lang.reflect.InvocationTargetException<br/> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)<br/> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>..............<br/><br/> I'm sure that the error is in the web.xml or portlet.xml. If you can share me some sample example for struts2-portlet it well be very helpful to me.<br/><br/>thanks<br/> Hemanta

  • Number of messages  9
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Struts2 Portlet deployement issue in Jahia_v6(EE)

    by  ktlili »  2011/06/07 20:35

    Hi,

    You'll find in attachment a war of a struts-2 portlet. You have only to put it in tomcat/webapp directory

    Hope that will help you.

    Regards.
    KT
  • Re: Struts2 Portlet deployement issue in Jahia_v6(EE)
    2011/06/07 20:35

    ktlili Hi,<br/><br/>You'll find in attachment a war of a struts-2 portlet. You have only to put it in tomcat/webapp directory<br/><br/>Hope that will help you.<br/><br/>Regards.<br/>KT

  • Number of messages  14
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Struts2 Portlet deployement issue in Jahia_v6(EE)

    by  hemanta »  2011/06/07 20:35

    Hi KT

    It is realy great. Now bookmark-portlet.war is working. It will be helpfull to developed my Struts2 portlet .
    Sorry for late reply.


    Regards.
    KT
  • Re: Struts2 Portlet deployement issue in Jahia_v6(EE)
    2011/06/07 20:35

    hemanta Hi KT<br/><br/> It is realy great. Now bookmark-portlet.war is working. It will be helpfull to developed my Struts2 portlet .<br/>Sorry for late reply.<br/> <br/><br/>Regards.<br/>KT

  • Number of messages  9
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page