Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-43493

WSRP on JBoss java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.description.OperationDesc

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.1.2 CE GA3
    • Fix Version/s: None
    • Component/s: WSRP
    • Labels:
      None

      Description

      I had a lot of classloading problems when i tried to deploy wsrp-portlet-6.1.1.3-ce-ga3-20130821151823748.war on JBoss EAP 6.1 under LINUX (under Windows there were no problems).

      E.g.:

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/wsrp-portlet].[1 Servlet]] (http-/0.0.0.0:80-6) JBWEB000236: Servlet.service() for servlet 1 Servlet threw exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.description.OperationDesc
      at oasis.names.tc.wsrp.v2.bind.WSRP_v2_ServiceDescription_Binding_SOAPStub._initOperationDesc1(WSRP_v2_ServiceDescription_Binding_SOAPStub.java:26) [oasis-wsrp.jar:]
      at oasis.names.tc.wsrp.v2.bind.WSRP_v2_ServiceDescription_Binding_SOAPStub.<clinit>(WSRP_v2_ServiceDescription_Binding_SOAPStub.java:20) [oasis-wsrp.jar:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_25]
      at org.apache.commons.beanutils.ConstructorUtils.invokeConstructor(ConstructorUtils.java:166) [commons-beanutils.jar:1.8.2]
      at org.apache.commons.beanutils.ConstructorUtils.invokeConstructor(ConstructorUtils.java:122) [commons-beanutils.jar:1.8.2]
      at com.liferay.wsrp.proxy.ServiceHandler.doInvoke(ServiceHandler.java:122) [classes:]
      at com.liferay.wsrp.proxy.ServiceHandler.invoke(ServiceHandler.java:171) [classes:]
      at com.sun.proxy.$Proxy810.getWSRP_v2_ServiceDescription_Service(Unknown Source)
      at com.liferay.wsrp.util.WSRPConsumerManager._readBindingElement(WSRPConsumerManager.java:297) [classes:]
      at com.liferay.wsrp.util.WSRPConsumerManager._readServiceElements(WSRPConsumerManager.java:310) [classes:]
      at com.liferay.wsrp.util.WSRPConsumerManager.<init>(WSRPConsumerManager.java:80) [classes:]
      at com.liferay.wsrp.util.WSRPConsumerManagerFactory._getWSRPConsumerManager(WSRPConsumerManagerFactory.java:135) [classes:]
      at com.liferay.wsrp.util.WSRPConsumerManagerFactory.getWSRPConsumerManager(WSRPConsumerManagerFactory.java:53) [classes:]
      at com.liferay.wsrp.service.impl.WSRPConsumerLocalServiceImpl.getWSDL(WSRPConsumerLocalServiceImpl.java:294) [classes:]
      at com.liferay.wsrp.service.impl.WSRPConsumerLocalServiceImpl.addWSRPConsumer(WSRPConsumerLocalServiceImpl.java:83) [classes:]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
      at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
      at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionInterceptor.invoke(DynamicDataSourceTransactionInterceptor.java:44)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:218)
      at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
      at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
      at com.sun.proxy.$Proxy698.addWSRPConsumer(Unknown Source)
      at com.liferay.wsrp.service.WSRPConsumerLocalServiceUtil.addWSRPConsumer(WSRPConsumerLocalServiceUtil.java:286) [wsrp-portlet-service.jar:]
      at com.liferay.wsrp.admin.portlet.AdminPortlet.doUpdateWSRPConsumer(AdminPortlet.java:210) [classes:]
      at com.liferay.wsrp.admin.portlet.AdminPortlet.updateWSRPConsumer(AdminPortlet.java:107) [classes:]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
      at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]

      To deploy wsrp-portlet-6.1.1.3-ce-ga3-20130821151823748.war on jboss eap 6.1 under linux without classloading errors, i had to
      provide the following files from liferay.war/web-inf/lib in wsrp-portlet/web-inf/lib:

      oasis-wsrp.jar
      portal-compat-shared.jar
      wsrp-portlet-service.jar
      wss4j.jar
      jars\log4j.jar
      xmlsec.jar
      wsdl4j.jar
      slf4j-api.jar
      saaj-impl.jar
      saaj-api.jar
      jstl-impl.jar
      jstl-api.jar
      jaxrpc.jar
      jabsorb.jar
      util-taglib.jar
      util-bridges.jar
      util-java.jar
      axis.jar
      axis-ant.jar
      commons-beanutils.jar
      commons-discovery.jar
      commons-logging.jar

        Attachments

          Activity

            People

            • Assignee:
              michael.saechang Michael Saechang
              Reporter:
              gerhard.karl@gmx.at Gerhard Karl (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 45 weeks, 1 day ago

                Packages

                Version Package