开发者社区> 问答> 正文

支付宝java SDK 是不是只支持在tomcat 下使用,不能再jboss w?报错

支付宝java SDK 是不是只支持在tomcat 下使用,不能再jboss wildfly 下使用,放到 wildfly 下应用起不来,

报错:

at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_20]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_20]
Caused by: java.lang.NoClassDefFoundError: com/alipay/api/response/AlipayTradePrecreateResponse
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_20]
at java.lang.Class.privateGetDeclaredMethods(Unknown Source) [rt.jar:1.8.0_20]
at java.lang.Class.privateGetPublicMethods(Unknown Source) [rt.jar:1.8.0_20]
at java.lang.Class.getMethods(Unknown Source) [rt.jar:1.8.0_20]
at org.jboss.resteasy.spi.metadata.ResourceBuilder.fromAnnotations(ResourceBuilder.java:747)
at org.jboss.resteasy.spi.metadata.ResourceBuilder.rootResourceFromAnnotations(ResourceBuilder.java:700)
at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.<init>(POJOResourceFactory.java:29)
at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:75)
at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:400)
at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:241)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:79)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:220)
at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:125)
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:508)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.Service

展开
收起
爱吃鱼的程序员 2020-06-12 15:38:36 725 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    参考一下BeeCloud开源的JavaSDK?接入支付宝支付也很方便的,jboss的支持应该也没问题  https://github.com/beecloud/beecloud-java

    看看那个beecloud那个RESTAPI,,,我就无语了。不知道你们看过Fielding的博士论文没?还有Rechardson成熟度模型?

    引用来自“Jim-BeeCloud”的评论

    参考一下BeeCloud开源的JavaSDK?接入支付宝支付也很方便的,jboss的支持应该也没问题  https://github.com/beecloud/beecloud-java

    2020-06-12 15:38:53
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载