jfinal weixin 1.7 使用 tomcat8 部署报错

半城繁华 发布于 2016/01/14 15:00
阅读 1K+
收藏 0

@JFinal 你好,想跟你请教个问题:

jfinal weixin 1.7 使用 tomcat8 部署报错

控制台信息如下:

一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.30
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Dec 1 2015 22:30:46 UTC
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.30.0
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 8
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.2
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             D:\MyEclipse Professional 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\jre
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.7.0_45-b18
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\apache-tomcat-8.0.30
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\apache-tomcat-8.0.30
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:63319
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-8.0.30
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\apache-tomcat-8.0.30
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-8.0.30/common/endorsed
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-8.0.30\temp
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.library.path=D:\MyEclipse Professional 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\bin;D:\apache-tomcat-8.0.30\bin
一月 14, 2016 2:51:05 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dsun.io.useCanonCaches=false
一月 14, 2016 2:51:05 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
一月 14, 2016 2:51:05 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
一月 14, 2016 2:51:06 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
一月 14, 2016 2:51:07 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
一月 14, 2016 2:51:07 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
一月 14, 2016 2:51:07 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1755 ms
一月 14, 2016 2:51:07 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 14, 2016 2:51:07 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.30
一月 14, 2016 2:51:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-8.0.30\webapps\docs
一月 14, 2016 2:51:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\docs has finished in 466 ms
一月 14, 2016 2:51:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-8.0.30\webapps\examples
一月 14, 2016 2:51:08 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
一月 14, 2016 2:51:08 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\examples has finished in 501 ms
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-8.0.30\webapps\host-manager
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\host-manager has finished in 52 ms
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-8.0.30\webapps\jfinal_weixin
一月 14, 2016 2:51:08 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter jfinal
java.lang.ClassNotFoundException: com.jfinal.core.JFinalFilter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4659)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1813)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
一月 14, 2016 2:51:08 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
一月 14, 2016 2:51:08 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/jfinal_weixin] startup failed due to previous errors
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\jfinal_weixin has finished in 221 ms
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-8.0.30\webapps\manager
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\manager has finished in 89 ms
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-8.0.30\webapps\ROOT
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\ROOT has finished in 74 ms
一月 14, 2016 2:51:08 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
一月 14, 2016 2:51:08 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
一月 14, 2016 2:51:08 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1509 ms


jar包截图如下:

最近需要用 jfinal weixin 开发一个微信平台,这个问题困扰我蛮久了,希望老大能够给点意见。

加载中
0
JFinal
JFinal

    关键在这一行:java.lang.ClassNotFoundException: com.jfinal.core.JFinalFilter,应该是配置有问题,tomcat 下的部署的正确姿势见这里:http://my.oschina.net/jfinal/blog/353062

    另外,开发时建议使用 jfinal 手册中的方式启动项目,上面链接博客中提到的部署只在生成环境时用一下

返回顶部
顶部