JCO连接SAP时tomcat报错


xception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\WINDOWS\system32\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [E:\eplat\JDK1.6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;E:\eplat\JDK1.6\jre\bin;D:/Program Files/Java/jdk1.6.0_12/bin/../jre/bin/client;D:/Program Files/Java/jdk1.6.0_12/bin/../jre/bin;D:/Program Files/Java/jdk1.6.0_12/bin/../jre/lib/i386;D:\oracle\product\10.2.0\db_1\bin;D:\OraHome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\Program Files\SecureCRT\;D:\Program Files\Tcent\QQPCMgr\6.8.2385.401;.;D:\Program Files\Java\jdk1.6.0_12\bin;D:\Program Files\Java\jdk1.6.0_12\jre\bin;;D:\Program Files\Tcent\QQPCMgr\6.8.2385.401]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
at com.magicoo.sale.sap.SAPConnect.getSAPPoolConnection(SAPConnect.java:13)
at com.magicoo.sale.service.YdmerchanlayerjkService.findFromSap(YdmerchanlayerjkService.java:21)
at com.magicoo.sale.service.YdmerchanlayerjkService$$FastClassByCGLIB$$f845a752.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:696)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:631)
at com.magicoo.sale.service.YdmerchanlayerjkService$$EnhancerByCGLIB$$5d826ddb.findFromSap(<generated>)
at com.magicoo.sale.Test.main(Test.java:20)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值