1 Reply Latest reply on May 7, 2014 3:53 AM by jerome110011

    JBoss 7.1.1 - java.lang.NoClassDefFoundError: org/jboss/resteasy/client/ClientRequest

    jerome110011

      Hi friends,

       

      while deploying my portlet I get this error. I try to use ClientRequest to open an url.

      I added to my jboss-deployment-structure.xml:

      <module name="org.jboss.resteasy.resteasy-jaxrs" />

        <module name="javax.ws.rs.api" />

      but I always get this error.

      If I look into "jboss-7.1.1\modules\org\jboss\resteasy\resteasy-jaxrs\main" I see a "resteasy-jaxrs-2.3.2.Final.jar" and a "async-http-servlet-3.0-2.3.2.Final.jar". But there is no jaxrs ... client.jar. Is this a problem of JBoss? How do I fix this? Am I wrong?

       

      I would be very thankful if someone could give me an idea or a tip! Thanks!

       

      Jerome.

       

       

      Full errorlog:

      11:44:51,409 INFO  [stdout] (MSC service thread 1-4) 11:44:51,409 ERROR [MSC service thread 1-4][HotDeployImpl:211] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for Auftragsbestaetigung_Portlet-portletAuftragsbestaetigung_Portlet-portlet

       

       

      11:44:51,410 INFO  [stdout] (MSC service thread 1-4) com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for Auftragsbestaetigung_Portlet-portletAuftragsbestaetigung_Portlet-portlet

       

       

      11:44:51,411 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)

       

       

      11:44:51,411 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127)

       

       

      11:44:51,412 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:208)

       

       

      11:44:51,412 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:95)

       

       

      11:44:51,413 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)

       

       

      11:44:51,413 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)

       

       

      11:44:51,413 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)

       

       

      11:44:51,414 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)

       

       

      11:44:51,414 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)

       

       

      11:44:51,415 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)

       

       

      11:44:51,415 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)

       

       

      11:44:51,416 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)

       

       

      11:44:51,416 INFO  [stdout] (MSC service thread 1-4) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

       

       

      11:44:51,417 INFO  [stdout] (MSC service thread 1-4) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

       

       

      11:44:51,417 INFO  [stdout] (MSC service thread 1-4) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

       

       

      11:44:51,417 INFO  [stdout] (MSC service thread 1-4) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

       

       

      11:44:51,418 INFO  [stdout] (MSC service thread 1-4) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

       

       

      11:44:51,418 INFO  [stdout] (MSC service thread 1-4) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

       

       

      11:44:51,418 INFO  [stdout] (MSC service thread 1-4) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

       

       

      11:44:51,419 INFO  [stdout] (MSC service thread 1-4) at java.lang.Thread.run(Unknown Source)

       

       

      11:44:51,419 INFO  [stdout] (MSC service thread 1-4) Caused by: java.lang.NoClassDefFoundError: org/jboss/resteasy/client/ClientRequest

       

       

      11:44:51,419 INFO  [stdout] (MSC service thread 1-4) at de.pax.liferay.ab.persistence.Account.sendGet(Account.java:38)

       

       

      11:44:51,419 INFO  [stdout] (MSC service thread 1-4) at de.pax.liferay.ab.persistence.Account.getUserName(Account.java:29)

       

       

      11:44:51,420 INFO  [stdout] (MSC service thread 1-4) at de.pax.liferay.ab.portlet.logic.ABLogic.getUserName(ABLogic.java:18)

       

       

      11:44:51,420 INFO  [stdout] (MSC service thread 1-4) at de.pax.liferay.ab.portlet.view.ABPortlet.<init>(ABPortlet.java:30)

       

       

      11:44:51,420 INFO  [stdout] (MSC service thread 1-4) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       

       

      11:44:51,420 INFO  [stdout] (MSC service thread 1-4) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

       

       

      11:44:51,420 INFO  [stdout] (MSC service thread 1-4) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

       

       

      11:44:51,421 INFO  [stdout] (MSC service thread 1-4) at java.lang.reflect.Constructor.newInstance(Unknown Source)

       

       

      11:44:51,421 INFO  [stdout] (MSC service thread 1-4) at java.lang.Class.newInstance(Unknown Source)

       

       

      11:44:51,421 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portlet.PortletBagFactory.getPortletInstance(PortletBagFactory.java:418)

       

       

      11:44:51,421 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:121)

       

       

      11:44:51,422 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369)

       

       

      11:44:51,422 INFO  [stdout] (MSC service thread 1-4) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)

       

       

      11:44:51,422 INFO  [stdout] (MSC service thread 1-4) ... 18 more