2 u011971492 u011971492 于 2016.03.17 14:27 提问

微信开发,将微信官网源码(java版)导入,用tomcat发布时报错,求解答?

2016-3-17 14:19:13 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin
2016-3-17 14:19:17 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8081"]
2016-3-17 14:19:17 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8010"]
2016-3-17 14:19:17 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 5026 ms
2016-3-17 14:19:18 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2016-3-17 14:19:18 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.32
2016-3-17 14:19:18 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\db_threeteam
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2016-3-17 14:19:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs
2016-3-17 14:19:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jeeweixin
2016-3-17 14:19:22 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextException
at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 16 more
2016-3-17 14:19:22 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
2016-3-17 14:19:22 org.apache.catalina.core.StandardContext startInternal
严重: Context [/jeeweixin] startup failed due to previous errors
2016-3-17 14:19:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager
2016-3-17 14:19:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
2016-3-17 14:19:23 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\wuxiMusic
2016-3-17 14:19:24 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8081"]
2016-3-17 14:19:24 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8010"]
2016-3-17 14:19:24 org.apache.catalina.startup.Catalina start
信息: Server startup in 6166 ms

1个回答

mianbaohebg
mianbaohebg   2016.12.17 22:59

PHP上层接口的封装。别人底层接口做的是单一的增删改。我需要调用多个不同服务器上的接口来处理我需要的数据。进行更新到相应的接口里面。但是如果有的数据更改不成功了。需要事务的回滚。现在我知道的是同一个数据库里面的话,操作数据库的事务是可以实现的。但是不同的服务器不同的数据库,我需要事务处理的话。需要怎么做。我百度了分布式事务。但是没看懂。百度说的是JAVA的。我写PHP的跟他不一样。求大神指点

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!