问题描述
?我自己有个项目,是对的,在自己的TOMCAT上跑都是对的,现在我放别人的TOMCAT下去跑,但是就出现问题了,我在想可能是他TOMCAT上少什么或者哪儿设置了,你帮我看看,怎么解决哈2008-6-26 9:42:32 org.apache.catalina.core.StandardHostDeployer install信息: Processing Context configuration file URL file:C:ahmahmWebconfCatalinalocalhostnjproject.xml2008-06-26 09:42:33,265 INFO [org.apache.myfaces.config.FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml2008-06-26 09:42:33,375 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/ahm/ahmWeb/webapps/njproject/WEB-INF b/facestrace-0.8.1.jar!/META-INF/faces-config.xml2008-06-26 09:42:33,390 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/ahm/ahmWeb/webapps/njproject/WEB-INF b/tomahawk-1.1.5-SNAPSHOT.jar!/META-INF/faces-config.xml2008-06-26 09:42:33,453 INFO [org.apache.myfaces.config.FacesConfigurator] Starting up MyFaces-package : myfaces-api in version : 1.1.5-SNAPSHOT from path : file:/C:/ahm/ahmWeb/webapps/njproject/WEB-INF b/myfaces-api-1.1.5-SNAPSHOT.jar2008-06-26 09:42:33,453 INFO [org.apache.myfaces.config.FacesConfigurator] Starting up MyFaces-package : myfaces-impl in version : 1.1.5-SNAPSHOT from path : file:/C:/ahm/ahmWeb/webapps/njproject/WEB-INF b/myfaces-impl-1.1.5-SNAPSHOT.jar2008-06-26 09:42:33,453 INFO [org.apache.myfaces.config.FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.2008-06-26 09:42:33,453 INFO [org.apache.myfaces.config.FacesConfigurator] Starting up MyFaces-package : tomahawk in version : 1.1.5-SNAPSHOT from path : file:/C:/ahm/ahmWeb/webapps/njproject/WEB-INF b/tomahawk-1.1.5-SNAPSHOT.jar2008-06-26 09:42:33,531 WARN [org.apache.myfaces.shared_impl.util.LocaleUtils]Locale name in faces-config.xml null or empty, setting locale to default locale: zh_CN2008-06-26 09:42:34,328 INFO [org.apache.myfaces.config.FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory2008-06-26 09:42:34,359 INFO [org.apache.myfaces.webapp.StartupServletContextListener] ServletContext 'C:ahmahmWebwebappsnjproject' initialized.2008-6-26 9:42:34 org.apache.catalina.core.StandardContext start严重: Error filterStart2008-6-26 9:42:34 org.apache.catalina.core.StandardContext start严重: Context startup failed due to previous errors2008-6-26 9:42:34 org.apache.catalina.core.StandardHostDeployer install 这就是报的那个错, 服务启动哦,这个项目都访问不到啊 HTTP Status 404 - /njproject/njhomepage/crbtdinggeinfopage.html--------------------------------------------------------------------------------type Status reportmessage /njproject/njhomepage/crbtdinggeinfopage.htmldescription The requested resource (/njproject/njhomepage/crbtdinggeinfopage.html) is not available.-------------------------------------------------------------------------------- 根本就找不到这个项目 但是服务下他原来的项目是对的,我们现在的TOMCAT与JDK的版本都一致了,但是他的TOMCAT应该是像发布产品那样,发布出来的,之前可能有过改动,哪位给看看...问题补充:嗯,TOMCAT下相应的包我都看了,都一样的....这个是就是LOGS文件内容2008-06-26 09:23:28 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1f88f7b')2008-06-26 09:23:28 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@193f50c')2008-06-26 09:23:28 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@bd13bf')2008-06-26 09:23:28 StandardContext[/servlets-examples]SessionListener: contextDestroyed()2008-06-26 09:23:28 StandardContext[/servlets-examples]ContextListener: contextDestroyed()2008-06-26 09:24:04 StandardContext[/balancer]Exception starting filter BalancerFilterjava.lang.NoClassDefFoundError: org/apache/commons/digester/Digesterat org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65)at org.apache.webapp.balancer.RulesParser.<init>(RulesParser.java:43)at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:79)at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)at org.apache.catalina.core.StandardService.start(StandardService.java:480)at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)at org.apache.catalina.startup.Catalina.start(Catalina.java:556)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:324)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)2008-06-26 09:24:04 StandardContext[/jsp-examples]ContextListener: contextInitialized()2008-06-26 09:24:04 StandardContext[/jsp-examples]SessionListener: contextInitialized()2008-06-26 09:24:05 StandardContext[/servlets-examples]ContextListener: contextInitialized()2008-06-26 09:24:05 StandardContext[/servlets-examples]SessionListener: contextInitialized()2008-06-26 09:26:33 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1650cea')2008-06-26 09:26:33 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@132ece7')2008-06-26 09:26:33 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@5f6ed4')2008-06-26 09:26:33 StandardContext[/servlets-examples]SessionListener: contextDestroyed()2008-06-26 09:26:33 StandardContext[/servlets-examples]ContextListener: contextDestroyed()2008-06-26 09:26:35 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1ba3c1f')2008-06-26 09:26:35 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1c12050')2008-06-26 09:26:35 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@309239')2008-06-26 09:26:35 StandardContext[/jsp-examples]SessionListener: contextDestroyed()2008-06-26 09:26:35 StandardContext[/jsp-examples]ContextListener: contextDestroyed()问题补充:唯一觉得有点不一样的就他的server.xml<?xml version='1.0' encoding='utf-8'?><Server> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> <GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30"/> <Resource auth="Container" description="User database that can be updated and saved" name="UserDatabase" type="org.apache.catalina.UserDatabase"/> <ResourceParams name="UserDatabase"> <parameter> <name>factory</name> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> </parameter> <parameter> <name>pathname</name> <value>conf/tomcat-users.xml</value> </parameter> </ResourceParams> </GlobalNamingResources> <Service name="Catalina"> <Connector URIEncoding="GBK" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8080" redirectPort="8443" maxSpareThreads="75" maxThreads="150" minSpareThreads="25"> </Connector> <Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443" URIEncoding="GBK"> </Connector> <Engine defaultHost="localhost" name="Catalina" jvmRoute="tomcat1"> <Host appBase="webapps" name="localhost"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/> </Host> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/> </Engine> </Service></Server>少了一些东西问题补充:版本一样哈问题补充:我把包放在了 commer/lib 还是不行哈 。那个包也有
解决方案
先看看你的webapp目录下面有没有其它项目,有的话把别的不相关的项目移出去,然后重启看看。看看你的webapp项目的web-inflib目录有没有commons-digester包。没有的话可以先把下载的commons-digester.jar拷贝进去看看能不能启动,如果还不行,就拷贝到tomcatlib目录下面试试。如果还不行,这里有个参考,你可以看看:http://topic.csdn.net/t/20041202/17/3610034.html一步一步来,希望有所帮助。
解决方案二:
最后的不是办法的办法:重装TOMCAT. .下载一个Tomcat no-install的。解压到某个目录,把你那个项目拷贝到那个tomcat看看行不行,还有就是你那个有问题的tomcat,你把你那个项目删除,看看那个tomcat能不能跑?tomcat坏掉了,没办法就只能换一个啦。
解决方案三:
http://commons.apache.org/digester/这个网站可以下到这个jar包
解决方案四:
引用java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester至少从这行可以看出是你少包。commons-digester包。[url url=http://commons.apache.org/digester/]http://commons.apache.org/digester/[/url]
解决方案五:
你们TOMCAT版本相同吗?可能是TOMCAT版本不一样!
解决方案六:
看看%TOMCAT_HOME%loglocalhost开头的log文件吧。会有信息出来的。还不好下结论。
解决方案七:
严重: Error filterStart 应该是你的web.xml或者struts、spring、hibernate之类的配置文件出问题了,如果你在你的机器上可以,而换机子就出问题,有可能是jar包有问题。看一下commons下面lib中的包和你的一样吗