Community
 
 
 

CloudPortal Business Manager 2.x

팔로워 324명
 
Avatar
Pankaj Paliwal

Add new jar throw exception:NoClassDefFoundError: org/apache/commons/httpclient/HttpException

Avatar

Add new jar throw exception:NoClassDefFoundError: org/apache/commons/httpclient/HttpException

Hi, everyone

     I have added the new  jar on the pom.xml, and maven clean install to build the project, bulid successful. But when ran on the cpbm project. It threw the following exception NoClassDefFoundError. Is there any config need to update?

 

ERROR catalina-exec-19 o.a.c.c.C.[Catalina].[localhost].[/portal].[vmops-portal] Servlet.service() for servlet [vmops-portal] in context with path [/portal] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpException] with root cause java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpException
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.citrix.cpbm.custom.service.impl.CustomReportServiceImpl.generateCustomReport(CustomReportServiceImpl.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 

And I also found the system use commons-httpclient-3.1.jar, when I tested my codes in local environment, sometimes it conflicts each other. Could you tell me where is the commons-httpclient-3.1.jar config?

 

Thanks.

 

 

<dependency>
       <groupId>httpclient</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.3.1</version>
</dependency>

 


Yiqiang Xiao MEMBERS
댓글 0개
0

댓글을 남기려면 로그인하세요.

 
 

Previous 댓글 0개

Top Contributors