Topic: struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? |
Print this page |
1.struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? | Copy to clipboard |
Posted by: returner Posted on: 2005-06-23 22:24 信息: Installing web application at context path /webRoot from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/webRoot 2005-06-23 22:11:43,750 DEBUG commons.digester.Digester:1657 -> addRuleSet() with no namespace URI 2005-06-23 22:11:43,750 DEBUG digester.Digester.sax:1171 -> setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@3e96cf) 2005-06-23 22:11:43,765 DEBUG digester.Digester.sax:1205 -> startDocument() 2005-06-23 22:11:43,765 DEBUG digester.Digester.sax:1234 -> startElement(,,taglib) 2005-06-23 22:11:43,781 DEBUG commons.digester.Digester:1241 -> Pushing body text '' 2005-06-23 22:11:43,781 DEBUG commons.digester.Digester:1260 -> New match='taglib' 2005-06-23 22:11:43,781 DEBUG commons.digester.Digester:1284 -> No rules found matching 'taglib'. 2005-06-23 22:11:43,781 DEBUG digester.Digester.sax:1123 -> ignorableWhitespace( ) 2005-06-23 22:11:43,781 DEBUG digester.Digester.sax:1234 -> startElement(,,tlibversion) 2005-06-23 22:11:43,781 DEBUG commons.digester.Digester:1241 -> Pushing body text '' 2005-06-23 22:11:43,781 DEBUG commons.digester.Digester:1260 -> New match='taglib/tlibversion' 2005-06-23 22:11:43,781 DEBUG commons.digester.Digester:1284 -> No rules found matching 'taglib/tlibversion'. 2005-06-23 22:11:43,796 DEBUG digester.Digester.sax:936 -> characters(1.2) 2005-06-23 22:11:43,796 DEBUG digester.Digester.sax:1004 -> endElement(,,tlibversion) 2005-06-23 22:11:43,812 DEBUG commons.digester.Digester:1007 -> match='taglib/tlibversion' 2005-06-23 22:11:43,812 DEBUG commons.digester.Digester:1008 -> bodyText='1.2' 2005-06-23 22:11:43,812 DEBUG commons.digester.Digester:1039 -> No rules found matching 'taglib/tlibversion'. 2005-06-23 22:11:43,812 DEBUG commons.digester.Digester:1046 -> Popping body text '' 2005-06-23 22:11:43,812 DEBUG digester.Digester.sax:1123 -> ignorableWhitespace( ) 2005-06-23 22:11:43,812 DEBUG digester.Digester.sax:1234 -> startElement(,,jspversion) 2005-06-23 22:11:43,812 DEBUG commons.digester.Digester:1241 -> Pushing body text '' 2005-06-23 22:11:43,828 DEBUG commons.digester.Digester:1260 -> New match='taglib/jspversion' 2005-06-23 22:11:43,828 DEBUG commons.digester.Digester:1284 -> No rules found matching 'taglib/jspversion'. 2005-06-23 22:11:43,828 DEBUG digester.Digester.sax:936 -> characters(1.1) 2005-06-23 22:11:43,828 DEBUG digester.Digester.sax:1004 -> endElement(,,jspversion) 2005-06-23 22:11:43,828 DEBUG commons.digester.Digester:1007 -> match='taglib/jspversion' 2005-06-23 22:11:43,828 DEBUG commons.digester.Digester:1008 -> bodyText='1.1' 2005-06-23 22:11:43,828 DEBUG commons.digester.Digester:1039 -> No rules found matching 'taglib/jspversion'. 2005-06-23 22:11:43,828 DEBUG commons.digester.Digester:1046 -> Popping body text '' 2005-06-23 22:11:43,843 DEBUG digester.Digester.sax:1123 -> ignorableWhitespace( ) 2005-06-23 22:11:43,843 DEBUG digester.Digester.sax:1234 -> startElement(,,shortname) 2005-06-23 22:11:43,843 DEBUG commons.digester.Digester:1241 -> Pushing body text '' 2005-06-23 22:11:43,843 DEBUG commons.digester.Digester:1260 -> New match='taglib/shortname' 2005-06-23 22:11:43,843 DEBUG commons.digester.Digester:1284 -> No rules found matching 'taglib/shortname'. 2005-06-23 22:11:43,843 DEBUG digester.Digester.sax:936 -> characters(logic) 2005-06-23 22:11:43,859 DEBUG digester.Digester.sax:1004 -> endElement(,,shortname) 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1007 -> match='taglib/shortname' 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1008 -> bodyText='logic' 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1039 -> No rules found matching 'taglib/shortname'. 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1046 -> Popping body text '' 2005-06-23 22:11:43,859 DEBUG digester.Digester.sax:1123 -> ignorableWhitespace( ) 2005-06-23 22:11:43,859 DEBUG digester.Digester.sax:1234 -> startElement(,,uri) 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1241 -> Pushing body text '' 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1260 -> New match='taglib/uri' 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1284 -> No rules found matching 'taglib/uri'. 2005-06-23 22:11:43,859 DEBUG digester.Digester.sax:936 -> characters(http://struts.apache.org/tags-logic) 2005-06-23 22:11:43,859 DEBUG digester.Digester.sax:1004 -> endElement(,,uri) 2005-06-23 22:11:43,859 DEBUG commons.digester.Digester:1007 -> match='taglib/uri' 2005-06-23 22:11:43,875 DEBUG commons.digester.Digester:1008 -> bodyText='http://struts.apache.org/tags-logic' 2005-06-23 22:11:43,875 DEBUG commons.digester.Digester:1039 -> No rules found matching 'taglib/uri'. 2005-06-23 22:11:43,875 DEBUG commons.digester.Digester:1046 -> Popping body text '' 2005-06-23 22:11:43,875 DEBUG digester.Digester.sax:1123 -> ignorableWhitespace( ) 2005-06-23 22:11:43,875 DEBUG digester.Digester.sax:1234 -> startElement(,,tag) 2005-06-23 22:11:43,875 DEBUG commons.digester.Digester:1241 -> Pushing body text '' 2005-06-23 22:11:43,921 DEBUG commons.digester.Digester:1260 -> New match='taglib/tag' 2005-06-23 22:11:43,921 DEBUG commons.digester.Digester:1284 -> No rules found matching 'taglib/tag'. 2005-06-23 22:11:43,921 DEBUG digester.Digester.sax:1123 -> ignorableWhitespace( |
2.Re:struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? [Re: returner] | Copy to clipboard |
Posted by: IncredibleBoy Posted on: 2005-06-24 10:12 你贴的都是些Debug级别的信息,没有Error 级别的 ,,请把错误信息贴出 |
3.Re:struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? [Re: returner] | Copy to clipboard |
Posted by: wes109 Posted on: 2005-06-24 10:57 不要将tomcat安装在有空格的目录下 |
4.Re:struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? [Re: returner] | Copy to clipboard |
Posted by: returner Posted on: 2005-06-26 14:44 经过332938 ms,终于启动完毕,前面就是不停的出现一楼所贴的信息 到最后出现下面的错: Parsing error processing resource path /WEB-INF/struts-config.xml java.lang.ClassCastException at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4335) 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.deployWARs(HostConfig.java:613) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) 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:476) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298) 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:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) 这个信息说是strtus-config.xml出错,但是我用xml spy检查过是正确的. 我已经把tomcat安装到了没有空格的路径下了,但是还是这样。 |
5.Re:struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? [Re: returner] | Copy to clipboard |
Posted by: returner Posted on: 2005-06-26 14:48 这是我的struts-config.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> <struts-config> <!-- Data Sources --> <data-sources/> <!-- Form Beans --> <form-beans> <form-bean name="UserActionForm" type="com.webex.user.actionform.UserActionForm"/> </form-beans> <global-exceptions> <exception key="global.data.access.exception" path="/QueryOrder.jsp" scope="request" type="org.springframework.dao.DataAccessException"/> </global-exceptions> <global-forwards/> <action-mappings> <action path="/userAction" type="com.webex.user.action.UserAction" name="UserActionForm"> <display-name>Save New Order</display-name> <forward name="success" path="/index.jsp"/> <forward name="failure" path="/error.jsp"/> </action> </action-mappings> <!--set locale by using this element property locale --> <controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor" debug="0"/> <!-- Message Resources --> <!--<message-resources parameter="com.meagle.resources.ApplicationResources"/>--> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="applicationContext.xml"/> </plug-in> </struts-config> |
6.Re:struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? [Re: returner] | Copy to clipboard |
Posted by: IncredibleBoy Posted on: 2005-06-27 09:18 类反射错误. 检查一下struts-config.xml中涉及的类路径是否是正确地 |
7.Re:struts+tomcat启动时,不停的出现错,而且没有终止,不知道什么原因???? [Re: returner] | Copy to clipboard |
Posted by: seril Posted on: 2005-07-29 16:24 是不是用了log4j?把log4j.properties文件放到classes文件夹中,我的问题就是这么解决的 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |