java.lang.NoClassDefFoundError:javax / wsdl / OperationType

时间:2016-02-11 08:20:48

标签: soap

2016年2月11日下午1:43:17 org.apache.axis.utils.JavaUtils isAttachmentSupported 警告:无法找到所需的类(javax.activation.DataHandler和javax.mail.internet.MimeMultipart)。附件支持已禁用。 2016年2月11日下午1:43:17 org.springframework.scheduling.support.TaskUtils $ LoggingErrorHandler handleError 严重:计划任务中发生意外错误。 java.lang.NoClassDefFoundError:javax / wsdl / OperationType     在org.apache.axis.description.OperationDesc。(OperationDesc.java:59)     在in.gov.sadmapi.tempuri.Dept_AuthenticationSoapStub._initOperationDesc1(Dept_AuthenticationSoapStub.java:26)     在in.gov.sadmapi.tempuri.Dept_AuthenticationSoapStub。(Dept_AuthenticationSoapStub.java:20)     在in.gov.sadmapi.tempuri.Dept_AuthenticationLocator.getDept_AuthenticationSoap(Dept_AuthenticationLocator.java:55)     在in.gov.sadmapi.tempuri.Dept_AuthenticationLocator.getDept_AuthenticationSoap(Dept_AuthenticationLocator.java:50)     在in.gov.sadmapi.tempuri.Dept_AuthenticationSoapProxy._initDept_AuthenticationSoapProxy(Dept_AuthenticationSoapProxy.java:18)     在in.gov.sadmapi.tempuri.Dept_AuthenticationSoapProxy。(Dept_AuthenticationSoapProxy.java:8)     在in.gov.sadmapi.service.TransactionSyncServiceImpl.processSyncService(TransactionSyncServiceImpl.java:89)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)     在org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)     在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)     at org.springframework.transaction.interceptor.TransactionInterceptor $ 1.proceedWithInvocation(TransactionInterceptor.java:99)     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)     在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)     在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)     在com.sun.proxy。$ Proxy27.processSyncService(未知来源)     在in.gov.sadmapi.service.SyncScheduler.processSync(SyncScheduler.java:19)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)     在org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)     at java.util.concurrent.Executors $ RunnableAdapter.call(Unknown Source)     at java.util.concurrent.FutureTask.runAndReset(Unknown Source)     at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301(Unknown Source)     at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)     在java.lang.Thread.run(未知来源) 引起:java.lang.ClassNotFoundException:javax.wsdl.OperationType     在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)     在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)     ......还有35个

1 个答案:

答案 0 :(得分:19)

执行时项目类路径中缺少指定的类。 将以下依赖项添加到您的pom:

<dependency>
    <groupId>wsdl4j</groupId>
    <artifactId>wsdl4j</artifactId>
    <version>1.6.2</version>
</dependency>