MyEclipse2017CI加载struts2启动tomcat疯狂报错 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 50%
Bbs2
本版专家分:480
Bbs7
本版专家分:24361
版主
Blank
红花 2013年7月 Java大版内专家分月排行榜第一
学习struts2 tomcat启动的时候报错
May 23, 2011 12:40:27 PM org.apache.catalina.startup.HostConfig deployDirectoryrnINFO: Deploying web application directory strutsrnMay 23, 2011 12:40:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger infornINFO: Unable to locate configuration files of the name WEB-INF\classes\struts.xml, skippingrnMay 23, 2011 12:40:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger infornINFO: Parsing configuration file [WEB-INF\classes\struts.xml]rnMay 23, 2011 12:40:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger errorrnSEVERE: Dispatcher initialization failedrncom.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory).rn at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:144)rn .........rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory).rn at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:235)rn at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:225)rn at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.(ContainerImpl.java:287)rn at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:117)rn at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:114)rn at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:141)rn ... 48 morernMay 23, 2011 12:40:27 PM org.apache.catalina.core.StandardContext filterStartrnSEVERE: Exception starting filter strutsrncom.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory). - Class: com.opensymphony.xwork2.inject.ContainerImplrnFile: ContainerImpl.javarnMethod: addInjectorsForMembersrnLine: 144 - com/opensymphony/xwork2/inject/ContainerImpl.java:144:-1rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:437)rn .........(字数过多)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory).rn at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:144)rn ......rn at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:203)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:424)rn ... 29 morernCaused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory).rn at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:235)rn at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:225)rn at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.(ContainerImpl.java:287)rn at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:117)rn at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:114)rn at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:141)rn ... 48 morernMay 23, 2011 12:40:27 PM org.apache.catalina.core.StandardContext startrnSEVERE: Error filterStartrnMay 23, 2011 12:40:27 PM org.apache.catalina.core.StandardContext startrnSEVERE: Context [/struts] startup failed due to previous errorsrnMay 23, 2011 12:40:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprnSEVERE: The web application [/struts] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@d0c3d5]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1e8dd92]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rnMay 23, 2011 12:40:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprnSEVERE: The web application [/struts] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12adac5]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@80cf99]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rnMay 23, 2011 12:40:27 PM org.apache.coyote.http11.Http11AprProtocol startrnINFO: Starting Coyote HTTP/1.1 on http-8080rnMay 23, 2011 12:40:27 PM org.apache.coyote.ajp.AjpAprProtocol startrnINFO: Starting Coyote AJP/1.3 on ajp-8009rnMay 23, 2011 12:40:27 PM org.apache.catalina.startup.Catalina startrnINFO: Server startup in 2442 ms
Struts2在Tomcat中的报错
在web.xml和struts.xml后并写了java文件 rn在书写上看了很久没有错误,可以说是在书写上没有错了(自我感觉吧)rnrn可是在执行Tomcat的时候去报出了好多错误 rnrn错误如下: rnrn严重: Exception starting filter <em>struts2</em> rnjava.lang.ClassNotFoundException: org.apache.<em>struts2</em>.dispatcher.FilterDispatcher rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362) rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208) rnat org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:207) rnat org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) rnat org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78) rnat org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) rnat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) rnat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) rnat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) rnat org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) rnat org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) rnat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) rnat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:736) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) rnat org.apache.catalina.core.StandardService.start(StandardService.java:448) rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:700) rnat org.apache.catalina.startup.Catalina.start(Catalina.java:552) rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rnat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) rnat java.lang.reflect.Method.invoke(Unknown Source) rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnrn
struts2启动tomcat问题
错误信息如下rn[code=Java]rnrn rn <em>struts2</em>rn rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn rn rnrn rn <em>struts2</em>rn *.dorn rnrn rn rn index.jsprn rn rn[/code]rnweb.xml配置如下rn[code=Java]rnrnrn rn <em>struts2</em>rn rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn rn rnrn rn <em>struts2</em>rn *.dorn rnrn rn rn index.jsprn rn rnrn[/code]rn去掉fileter<em>启动</em>正常
Struts2和Tomcat启动问题
小弟自学java不久,最近在学<em>struts2</em>,建了一个strust2的web项目,用的是<em>tomcat</em>7.0,在<em>启动</em>服务器的时候控制台有很多信息,不知道怎么可以去掉这些信息(貌似是一个日志相关的信息),具体的信息如下:rn[code=java]十二月 19, 2012 1:39:10 下午 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.rn十二月 19, 2012 1:39:10 下午 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn十二月 19, 2012 1:39:11 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)rn十二月 19, 2012 1:39:12 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-80"]rn十二月 19, 2012 1:39:12 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn十二月 19, 2012 1:39:12 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 2203 msrn十二月 19, 2012 1:39:12 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn十二月 19, 2012 1:39:12 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.30rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts-plugin.xml, skippingrn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.<em>struts2</em>.dispatcher.mapper.ActionMapper)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (jakarta) for (org.apache.<em>struts2</em>.dispatcher.multipart.MultiPartRequest)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.<em>struts2</em>.views.freemarker.FreemarkerManager)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.<em>struts2</em>.components.UrlRenderer)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.<em>struts2</em>.dispatcher.StaticContentLoader)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.<em>struts2</em>.views.util.UrlHelper)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)rn十二月 19, 2012 1:39:14 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)rn十二月 19, 2012 1:39:14 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\docsrn十二月 19, 2012 1:39:14 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\examplesrn十二月 19, 2012 1:39:15 下午 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn十二月 19, 2012 1:39:15 下午 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn十二月 19, 2012 1:39:15 下午 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@266642e1')rn十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\host-managerrn十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\managerrn十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\Spring_Registration_1rn十二月 19, 2012 1:39:15 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\Spring_Registration_6rn十二月 19, 2012 1:39:17 下午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn十二月 19, 2012 1:39:22 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\Spring_Registration_7rn十二月 19, 2012 1:39:23 下午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn十二月 19, 2012 1:39:28 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\<em>tomcat</em>7.0.30\webapps\Struts2.3.7rn十二月 19, 2012 1:39:28 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts-plugin.xml, skippingrn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)rn十二月 19, 2012 1:39:29 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)rn[/code]
tomcat项目加载报错
项目<em>加载</em>到<em>tomcat</em>出先Redeploy错误的解决办法。
tomcat加载Spring报错
严重: action: nullrnjava.lang.ClassNotFoundException: org.springframework.web.struts.ContextLoaderPlugInrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn严重: Servlet /Benben threw load() exceptionrnjavax.servlet.UnavailableExceptionrn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)rnrn我的<em>tomcat</em><em>启动</em>的时候就报这两个错误,怎么回事呢?我的配置文件:rnapplicationContext.xmlrnrnrnrn rn rn rnrnstruts-config.xmlrnrnrnrnrnrn rn rnrn rnrn rn rn rn rn rn rn rnrn rnrn rn rn rn rn rn
tomcat 启动加载项目
Tomcat<em>启动</em>时<em>加载</em> 通过这个可以实现:程序在<em>启动</em>过程中<em>加载</em>缓存。 因为hibernate会自动缓存查询的内容,所以第一次查询会比较慢,但之后就会很快,通过在<em>tomcat</em><em>启动</em>时候用hibernate进行一次查询,之后用户就能直接从缓存拿到数据。 Web.xml配置 hibernate.init.StartUpServletContextListener ...
Tomcat启动加载过程
我 是在看jvm类<em>加载</em>机制时突然想到我们经常使用的<em>tomcat</em>是如何<em>启动</em>?如何<em>加载</em>类的?于是顺藤摸瓜找了找,和大家分享下,比较粗糙,不要介意。 1、start.bat是<em>启动</em><em>tomcat</em>的脚本,查看脚本可知其实是<em>启动</em>catalina.bat。 2、在catalina.bat中可以看到执行setclasspath.bat,setclasspath.bat是做一些变量参数设置,比如这里可以设置JVM
tomcat启动加载过程
 我 是在看jvm类<em>加载</em>机制时突然想到我们经常使用的<em>tomcat</em>是如何<em>启动</em>?如何<em>加载</em>类的?于是顺藤摸瓜找了找,和大家分享下,比较粗糙,不要介意。 1、start.bat是<em>启动</em><em>tomcat</em>的脚本,查看脚本可知其实是<em>启动</em>catalina.bat。 2、在catalina.bat中可以看到执行setclasspath.bat,setclasspath.bat是做一些变量参数设置,比如这里可以设置...
启动 tomcat报错!!!
Servlet /pctest threw load() exceptionrnjava.lang.Error: Unresolved compilation problems: rn The import java.io cannot be resolvedrn The import java.io cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn HttpServlet cannot be resolved to a typern The constructor Object() is undefinedrn The method destroy() is undefined for the type Objectrn HttpServletRequest cannot be resolved to a typern HttpServletResponse cannot be resolved to a typern ServletException cannot be resolved to a typern IOException cannot be resolved to a typern PrintWriter cannot be resolved to a typern The method getClass() is undefined for the type InitServletrn HttpServletRequest cannot be resolved to a typern HttpServletResponse cannot be resolved to a typern ServletException cannot be resolved to a typern IOException cannot be resolved to a typern PrintWriter cannot be resolved to a typern The method getClass() is undefined for the type InitServletrn ServletException cannot be resolved to a typern ServletConfig cannot be resolved to a typern The method getServletConfig() is undefined for the type InitServletrn String cannot be resolved to a typern String cannot be resolved to a typern String cannot be resolved to a typern JinghuaConn.USERNAME cannot be resolvedrn JinghuaConn.PASSWORD cannot be resolvedrn JinghuaConn.PHYPATH cannot be resolvedrn JinghuaConn.rootpath cannot be resolvedrn JinghuaConn.chartPath cannot be resolvedrnrn at sys.InitServlet.(InitServlet.java:3)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn[color=#FF0000]我翻译过来 就是:[/color]rn服务器/ pctest扔负荷( )例外 rnjava.lang.Error :未汇编的问题: rn进口java.io不能得到解决 rn进口java.io不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rnHttpServlet解决不了的类型 rn该构造函数对象( )是未定义 rn销毁的方法( )是未定义的类型对象 rnHttpServletRequest解决不了的类型 rnHttpServletResponse解决不了的类型 rnServletException解决不了的类型 rnIOException解决不了的类型 rnPrintWriter解决不了的类型 rn该方法getClass ( )是未定义类型InitServlet rnHttpServletRequest解决不了的类型 rnHttpServletResponse解决不了的类型 rnServletException解决不了的类型 rnIOException解决不了的类型 rnPrintWriter解决不了的类型 rn该方法getClass ( )是未定义类型InitServlet rnServletException解决不了的类型 rnServletConfig解决不了的类型 rn该方法getServletConfig ( )是未定义类型InitServlet rn字符串不能得到解决的类型 rn字符串不能得到解决的类型 rn字符串不能得到解决,以一种类型 rnJinghuaConn.USERNAME不能得到解决 rnJinghuaConn.PASSWORD不能得到解决 rnJinghuaConn.PHYPATH不能得到解决 rnJinghuaConn.rootpath不能得到解决 rnJinghuaConn.chartPath不能得到解决 rnrn在sys.InitServlet 。 ( InitServlet.java : 3 ) rn在sun.reflect.NativeConstructorAccessorImpl.newInstance0 (本地方法) rn在sun.reflect.NativeConstructorAccessorImpl.newInstance ( NativeConstructorAccessorImpl.java : 39 ) rn在sun.reflect.DelegatingConstructorAccessorImpl.newInstance ( DelegatingConstructorAccessorImpl.java : 27 ) rn在java.lang.reflect.Constructor.newInstance ( Constructor.java : 513 ) rn在java.lang.Class.newInstance0 ( Class.java : 355 ) rn在java.lang.Class.newInstance ( Class.java : 308 ) rn在org.apache.catalina.core.StandardWrapper.loadServlet ( StandardWrapper.java : 1104 ) rn在org.apache.catalina.core.StandardWrapper.load ( StandardWrapper.java : 981 ) rn在org.apache.catalina.core.StandardContext.loadOnStartup ( StandardContext.java : 4058 ) rn在org.apache.catalina.core.StandardContext.start ( StandardContext.java : 4364 ) rn在org.apache.catalina.core.ContainerBase.addChildInternal ( ContainerBase.java : 791 ) rn在org.apache.catalina.core.ContainerBase.addChild ( ContainerBase.java : 771 ) rn在org.apache.catalina.core.StandardHost.addChild ( StandardHost.java : 525 ) rn在org.apache.catalina.startup.HostConfig.deployDirectory ( HostConfig.java : 924 ) rn在org.apache.catalina.startup.HostConfig.deployDirectories ( HostConfig.java : 887 ) rn在org.apache.catalina.startup.HostConfig.deployApps ( HostConfig.java : 492 ) rn在org.apache.catalina.startup.HostConfig.start ( HostConfig.java : 1147 ) rn在org.apache.catalina.startup.HostConfig.lifecycleEvent ( HostConfig.java : 311 ) rn在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent ( LifecycleSupport.java : 117 ) rn在org.apache.catalina.core.ContainerBase.start ( ContainerBase.java : 1053 ) rn在org.apache.catalina.core.StandardHost.start ( StandardHost.java : 719 ) rn在org.apache.catalina.core.ContainerBase.start ( ContainerBase.java : 1045 ) rn在org.apache.catalina.core.StandardEngine.start ( StandardEngine.java : 443 ) rn在org.apache.catalina.core.StandardService.start ( StandardService.java : 516 ) rn在org.apache.catalina.core.StandardServer.start ( StandardServer.java : 710 ) rn在org.apache.catalina.startup.Catalina.start ( Catalina.java : 578 ) rn在sun.reflect.NativeMethodAccessorImpl.invoke0 (本地方法) rn在sun.reflect.NativeMethodAccessorImpl.invoke ( NativeMethodAccessorImpl.java : 39 ) rn在sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java : 25 ) rn在java.lang.reflect.Method.invoke ( Method.java : 597 ) rn在org.apache.catalina.startup.Bootstrap.start ( Bootstrap.java : 288 ) rn在org.apache.catalina.startup.Bootstrap.main ( Bootstrap.java : 413 )
tomcat启动闪退报错
首先在<em>启动</em><em>tomcat</em>时出现闪退而造成看不到<em>报错</em>信息,就通过文本文档文件修改<em>tomcat</em>的bin目录下的startup.bat文件的最后一段内容 图中的倒数第二行中原本是start现在将其修改为run 的作用就是在控制台<em>启动</em><em>tomcat</em>时不会新开一个窗口,这样我们就能看到<em>tomcat</em> 的日志信息. 几天我的问题是&quot;java.lang.IllegalArgumentException: D...
启动Tomcat时报错
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy foundrnCaused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy foundrnCaused by: java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy foundrn at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)rn at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)rn at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1112)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-10-18 7:55:27 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-10-18 7:55:27 org.apache.catalina.core.StandardContext startrn严重: Context [/guest] startup failed due to previous errorsrn2011-10-18 7:55:27 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).rnlog4j:WARN Please initialize the log4j system properly.rn2011-10-18 7:55:32 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-10-18 7:55:32 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-10-18 7:55:32 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/30 config=nullrn2011-10-18 7:55:32 org.apache.catalina.startup.Catalina startrn信息: Server startup in 16786 msrn
启动TOMCAT的时候报错
严重: action: nullrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)VrnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
启动TOMCAT时报错
./startup.sh时,提示:The JAVA_HOME environment variable is not defined correctlyrnThis environment variable is needed to run this programrnNB: JAVA_HOME should point to a JDK not a JRErnrn我在/etc/profile加了一下语句:rnexport JAVA_HOME=/usr/local/<em>tomcat</em>rnexport JAVA_HOME=/usr/local/jdkrnexport PATH=$PATH:/usr/local/jdk/bin:/usr/local/jdk/jre/binrnexport CLASSPATH=="./:/usr/local/jdk/lib:/usr/local/jdk/jre/lib"rnexport CATALINA_HOME=/usr/local/<em>tomcat</em>rn怎么解决呀!
启动tomcat启动失败报错
原因:端口被占用 解决:1、输入netstat -anp|grep 80查看80端口占用情况 kill 掉被占用的端口进程 再重启<em>tomcat</em>服务 2、若权限允许,可使用root用户安装<em>tomcat</em>...
启动Tomcat环境报错
<em>启动</em>Tomcat一直<em>报错</em>The JRE_HOME environment variable is not defined correctly,根据网上的说法就才知道<em>启动</em>Tomcat后startup.bat脚本调用了catalina.bat,然后catalina.bat调用了setclasspath.bat,setclasspath.bat的头部定义了JAVA_HOME和JER_HOME,所以只要在
tomcat 启动一直报错
[code=html]五月 20, 2014 9:17:21 上午 org.apache.catalina.core.StandardContext filterStartrnSEVERE: Exception starting filter StrutsrnUnable to load configuration. - [unknown location]rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:450)rn at org.apache.<em>struts2</em>.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)rn at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:437)rn ... 19 morernCaused by: Unable to load file:/D:/apache-<em>tomcat</em>-7.0.47/webapps/lookweb/WEB-INF/classes/struts.xml - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:954)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:163)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:130)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:209)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 21 morernCaused by: struts.apache.org - [unknown location]rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:949)rn ... 25 morernCaused by: java.net.UnknownHostException: struts.apache.orgrn at java.net.AbstractPlainSocketImpl.connect(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.SocksSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at sun.net.NetworkClient.doConnect(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)rn ... 26 morernrn五月 20, 2014 9:17:21 上午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Error filterStart[/code]rn有人说是架包版本冲突,但还是解决不了。这个错有时候会报,有时候不会<em>报错</em>。郁闷~~~rn[img=https://img-bbs.csdn.net/upload/201405/20/1400549073_383928.jpg][/img]
TOMCAT启动报错
[code=java]rnCaused by: org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/tx/spring-tx-3.1.xsd; lineNumber: 1; columnNumber: 9; s4s-elt-schema-ns: 元素 'html' 的名称空间必须来自方案名称空间 'http://www.w3.org/2001/XMLSchema'。rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4124)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4107)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.reportSchemaError(XSAttributeChecker.java:1567)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAttributeChecker.java:993)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAttributeChecker.java:961)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDocumentInfo.(XSDocumentInfo.java:106)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:771)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:609)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:588)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2448)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1767)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:761)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2717)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:237)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)rn at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)rn ... 28 morern六月 08, 2013 4:51:57 下午 org.apache.catalina.core.StandardContext loadOnStartuprnSEVERE: Servlet /myspace threw load() exceptionrnorg.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/tx/spring-tx-3.1.xsd; lineNumber: 1; columnNumber: 9; s4s-elt-schema-ns: 元素 'html' 的名称空间必须来自方案名称空间 'http://www.w3.org/2001/XMLSchema'。rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4124)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4107)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.reportSchemaError(XSAttributeChecker.java:1567)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAttributeChecker.java:993)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAttributeChecker.java:961)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDocumentInfo.(XSDocumentInfo.java:106)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:771)rn at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:609)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:588)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2448)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1767)rn at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:761)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2717)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:237)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)rn at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)rn at javax.servlet.GenericServlet.init(GenericServlet.java:160)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1189)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1010)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4915)rn at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5242)rn at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5237)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:722)rn[/code]rnrn有70%的几率会报这个··clear或重新部署一次<em>启动</em>正常·然后再次<em>启动</em>又会错··
启动tomcat总是报错
sr/lib64:/lib64:/lib:/usr/librn17-Nov-2017 09:38:59.156 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]rn17-Nov-2017 09:38:59.187 严重 [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-nio-80"]rn java.net.BindException: 地址已在使用rn at sun.nio.ch.Net.bind0(Native Method)rn at sun.nio.ch.Net.bind(Net.java:463)rn at sun.nio.ch.Net.bind(Net.java:455)rn at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)rn at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)rn at org.apache.<em>tomcat</em>.util.net.NioEndpoint.bind(NioEndpoint.java:229)rn at org.apache.<em>tomcat</em>.util.net.AbstractEndpoint.init(AbstractEndpoint.java:875)rn at org.apache.<em>tomcat</em>.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:213)rn at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)rn at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:65)rn at org.apache.catalina.connector.Connector.initInternal(Connector.java:968)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:606)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:629)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)rnrn17-Nov-2017 09:38:59.193 严重 [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-80]]rn org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-80]]rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)rn at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:606)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:629)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)rnCaused by: org.apache.catalina.LifecycleException: Protocol handler initialization failedrn at org.apache.catalina.connector.Connector.initInternal(Connector.java:970)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn ... 12 morernCaused by: java.net.BindException: 地址已在使用rn at sun.nio.ch.Net.bind0(Native Method)rn at sun.nio.ch.Net.bind(Net.java:463)rn at sun.nio.ch.Net.bind(Net.java:455)rn at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)rn at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)rn at org.apache.<em>tomcat</em>.util.net.NioEndpoint.bind(NioEndpoint.java:229)rn at org.apache.<em>tomcat</em>.util.net.AbstractEndpoint.init(AbstractEndpoint.java:875)rn at org.apache.<em>tomcat</em>.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:213)rn at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)rn at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:65)rn at org.apache.catalina.connector.Connector.initInternal(Connector.java:968)rn ... 13 morernrn17-Nov-2017 09:38:59.200 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]rn17-Nov-2017 09:38:59.202 严重 [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["ajp-nio-8009"]rn java.net.BindException: 地址已在使用rn at sun.nio.ch.Net.bind0(Native Method)rn at sun.nio.ch.Net.bind(Net.java:463)rn at sun.nio.ch.Net.bind(Net.java:455)rn at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)rn at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)rn at org.apache.<em>tomcat</em>.util.net.NioEndpoint.bind(NioEndpoint.java:229)rn at org.apache.<em>tomcat</em>.util.net.AbstractEndpoint.init(AbstractEndpoint.java:875)rn at org.apache.<em>tomcat</em>.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:213)rn at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)rn at org.apache.catalina.connector.Connector.initInternal(Connector.java:968)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:606)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:629)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)rnrn17-Nov-2017 09:38:59.218 严重 [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[AJP/1.3-8009]]rn org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)rn at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:606)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:629)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)rnCaused by: org.apache.catalina.LifecycleException: Protocol handler initialization failedrn at org.apache.catalina.connector.Connector.initInternal(Connector.java:970)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn ... 12 morernCaused by: java.net.BindException: 地址已在使用rn at sun.nio.ch.Net.bind0(Native Method)rn at sun.nio.ch.Net.bind(Net.java:463)rn at sun.nio.ch.Net.bind(Net.java:455)rn at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)rn at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)rn at org.apache.<em>tomcat</em>.util.net.NioEndpoint.bind(NioEndpoint.java:229)rn at org.apache.<em>tomcat</em>.util.net.AbstractEndpoint.init(AbstractEndpoint.java:875)rn at org.apache.<em>tomcat</em>.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:213)rn at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)rn at org.apache.catalina.connector.Connector.initInternal(Connector.java:968)rn ... 13 morernrn17-Nov-2017 09:38:59.218 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1164 msrn17-Nov-2017 09:38:59.284 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalinarn17-Nov-2017 09:38:59.290 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.8rn17-Nov-2017 09:39:05.186 信息 [www.godiandan.com-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.rn17-Nov-2017 09:39:05.384 信息 [www.godiandan.com-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContextrn
启动tomcat报错
[img]http://dl.iteye.com/upload/attachment/171524/221a321a-3abf-331d-811e-0d6eaada2734.jpg[/img]
启动tomcat报错
<em>启动</em><em>tomcat</em>时<em>报错</em>。用的是commons-digester-1.7.jar这个版本rn错误信息:rn2007-1-24 9:22:28 org.apache.commons.digester.Digester fatalErrorrn严重: Parse Fatal Error at line -1 column -1: Premature end of file.rnorg.xml.sax.SAXParseException: Premature end of file.rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1548)rn at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)rn2007-1-24 9:22:28 org.apache.catalina.startup.ContextConfig applicationConfigrn严重: Parse error in application web.xmlrnorg.xml.sax.SAXParseException: Premature end of file.rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1548)rn at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)rn2007-1-24 9:22:28 org.apache.catalina.startup.ContextConfig applicationConfigrn严重: Occurred at line -1 column -1rn2007-1-24 9:22:28 org.apache.catalina.startup.ContextConfig startrn严重: Marking this application unavailable due to previous error(s)rn2007-1-24 9:22:28 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2007-1-24 9:22:28 org.apache.catalina.core.StandardContext startrn严重: Context startup failed due to previous errors
启动tomcat报错
我<em>启动</em><em>tomcat</em>时有警告: [SetAllPropertiesRule]Server/Service/Connector Setting property 'URLEncoding' to 'GBK' did not find a matching property.rn程序倒是可以执行不过,我获得的参数如果是汉字就显示乱码!rn请问是怎么回事,我应该怎么解决!
Struts2在Tomcat容器中的加载过程
NULL 博文链接:https://caizhenyao.iteye.com/blog/1850375
启动Struts2报错:Exception starting filter struts2
[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rnrn这是目录结构:rn[img=https://img-bbs.csdn.net/upload/201312/03/1386038315_923480.jpg][/img]rnrn这是WebContent/WEB-INF下web.xmlrn[code=text]rnrn 02_02_Struts 2rn rn login.jsprn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rn rn rn <em>struts2</em>rn org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn <em>struts2</em>rn /*rn rn[/code]rnrn这是TOMCAT<em>启动</em>时<em>报错</em>:rn[img=https://img-bbs.csdn.net/upload/201312/03/1386038521_221639.jpg][/img]rnrn在web.xml中,无论中填任何包中所含的.class文件<em>启动</em>均会<em>报错</em>。。。
Tomcat启动报错 struts2错误
[code=java]rn十一月 26, 2013 9:04:41 上午 org.apache.catalina.core.StandardContext filterStartrnSEVERE: Exception starting filter <em>struts2</em>rnjava.lang.NullPointerExceptionrn at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:203)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:511)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:482)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:438)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:265)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:189)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:403)rn at org.apache.<em>struts2</em>.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:104)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rn十一月 26, 2013 9:04:41 上午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Error filterStartrn十一月 26, 2013 9:04:41 上午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Context [/CExamSysSSH] startup failed due to previous errorsrn十一月 26, 2013 9:04:41 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrnSEVERE: The web application [/CExamSysSSH] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@c0c534]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1d30257]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.rn十一月 26, 2013 9:04:41 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrnSEVERE: The web application [/CExamSysSSH] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@3eae13]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1168da1]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.rn十一月 26, 2013 9:04:41 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrnSEVERE: The web application [/CExamSysSSH] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@1ac5c27]) and a value of type [java.util.HashMap] (value [com.sun.faces.patternCache= = ]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.rn十一月 26, 2013 9:04:41 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn[/code]
struts2启动tomcat发现的异常
在学习<em>struts2</em> action的时候,部署到<em>tomcat</em>的时候发现<em>启动</em>信息有一段异常信息rnrn2010-11-19 10:40:29 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter <em>struts2</em>rnjava.lang.NullPointerExceptionrn at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)rn at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)rn at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)rn at org.apache.<em>struts2</em>.dispatcher.ng.InitOperations.initStaticContentLoader(InitOperations.java:77)rn at org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:49)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2010-11-19 10:40:29 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2010-11-19 10:40:29 org.apache.catalina.core.StandardContext startrn严重: Context [/Struts2_0300_Action] startup failed due to previous errorsrnrn我是选项目,右键,debug as--》MyEclipse server application,然后选<em>tomcat</em>6.0<em>启动</em>,就发现就这样异常,接着我在MyEclipse Web Browser输入http://localhost:8080,能连过去。但输入http://localhost:8080/Struts2_0300_Action/index(这是小项目里面的一个页面)就出现HTTP 404错误,这个究竟是什么回事呢?rn
Struts2在Tomcat下启动不起来
严重: Dispatcher initialization failedrnUnable to load configuration. - bean - jar:file:/L:/test/Mytest/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:415)rn at org.apache.<em>struts2</em>.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnCaused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/L:/ENESYS/MyEensys/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 21 morernCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/L:/apache-<em>tomcat</em>-5.5.27/common/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72 - bean - jar:file:/L:/ENESYS/MyEensys/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)rn ... 24 morern2010-11-24 11:50:37 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter <em>struts2</em>rnUnable to load configuration. - bean - jar:file:/L:/test/Mytest/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:428)rn at org.apache.<em>struts2</em>.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnCaused by: Unable to load configuration. - bean - jar:file:/L:/test/Mytest/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:415)rn ... 19 morernCaused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/L:/test/Mytest/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 21 morernCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/L:/apache-<em>tomcat</em>-5.5.27/common/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72 - bean - jar:file:/L:/test/Mytest/WebRoot/WEB-INF/lib/<em>struts2</em>-core-2.2.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)rn ... 24 morern2010-11-24 11:50:37 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrnweb.xmlrn[code=XML]rnrnrnrn rn rn <em>struts2</em>rn rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn rn rn rn <em>struts2</em>rn /*rn rn rnrnrn[/code]rnstruts.xmlrn[code=XML]rnrnrnrnrn rnrn[/code]rnstruts-Other_by_zby.xmlrn[code=XML]rnrnrnrn rn rn rn /Welcome.jsprn rn rn /login.jsprn rn rn rnrn[/code]rnrn引用的包rncommons-fileupload-1.2.1.jarrncommons-io-1.3.2.jarrncommons-logging-api-1.1.jarrnfreemarker-2.3.16.jarrnjavassist-3.7.ga.jarrnlog4j-1.2.15.jarrnognl-3.0.jarrnojdbc14.jarrn<em>struts2</em>-core-2.2.1.jarrnxwork-core-2.2.1.jarrn到底是咋个错了 我就郁闷了 , 工作有半年了,因为公司的框架封装的较好,平时工作根本接触不到SSHrn自己想做个练习 刚来个Struts2 就起不来,,求高人们给解决
struts2项目 ,启动tomcat错误
<em>启动</em><em>tomcat</em>时,显示 source not found ---- the source attachement does not contain the file properties.class.You can change the source attachment by clicing Change Attached Source below.rn点击【Change Attached Source]按钮后,弹出一个窗口,‘Select the location (floder,JAR or zip)containing the source for 'rt.jar'。rnrn谢谢!!!
log4j -启动struts2 filter报错
请问下面这个问题怎处理啊,今天找了一天都没解决。很简单的代码,里面没明确调用log4j的东西。<em>启动</em><em>报错</em>。rneclipse+maven+<em>tomcat</em>,jdk7.0rnrn九月 28, 2016 5:54:16 下午 org.apache.catalina.startup.Embedded startrn信息: Starting <em>tomcat</em> serverrn九月 28, 2016 5:54:16 下午 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.29rn九月 28, 2016 5:54:17 下午 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter <em>struts2</em>rnjava.lang.NoSuchMethodError: org.apache.logging.log4j.status.StatusLogger.debug(Ljava/lang/String;Ljava/lang/Object;)Vrn at org.apache.logging.log4j.core.impl.Log4jContextFactory.(Log4jContextFactory.java:91)rn at org.apache.logging.log4j.core.impl.Log4jContextFactory.(Log4jContextFactory.java:58)rnrn---------------------------rnweb.xml配置:rnrn Archetype Created Web Applicationrnrn rn <em>struts2</em>rn rnorg.apache.<em>struts2</em>.dispatcher.filter.StrutsPrepareAndExecuteFilterrn rn rn <em>struts2</em>rn /*rn rn rn HelloWorld.jsprn rnrn--------------------------------------------rn
Tomcat启动加载两次项目
Tomcat<em>加载</em>项目时运行两次,这是为什么呢?分析一下Tomcat下的server.xml配置文件 &amp;lt;Host appBase=&quot;webapps&quot; autoDeploy=&quot;true&quot; name=&quot;localhost&quot; unpackWARs=&quot;true&quot;&amp;gt; &amp;lt;!-- SingleSignOn valve, share authentication betwee...
tomcat启动加载web项目内存溢出
今天用<em>tomcat</em><em>启动</em>项目后当我访问项目<em>报错</em>:java.lang.OutOfMemoryError: PermGen space(非堆溢出/永久保存区域溢出) 通过百度知道了报这个错误的原因是:web app下面用了大量的第三方jar, 其大小超过了jvm默认的大小(4M)那么就会产生此错误信息了; 另外从网上看到还有其他两种内存溢出异常: 1.OutOfMemoryError: Java he...
tomcat启动加载项目????????
九月 29, 2016 6:30:05 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn九月 29, 2016 6:30:05 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/8.0.0-RC1rn九月 29, 2016 6:30:05 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\java\apache-<em>tomcat</em>-8.0.0-RC1\webapps\docsrn九月 29, 2016 6:30:05 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\java\apache-<em>tomcat</em>-8.0.0-RC1\webapps\examplesrn九月 29, 2016 6:30:05 下午 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn九月 29, 2016 6:30:05 下午 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn九月 29, 2016 6:30:05 下午 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5c40e481')rn九月 29, 2016 6:30:05 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\java\apache-<em>tomcat</em>-8.0.0-RC1\webapps\host-managerrn九月 29, 2016 6:30:05 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\java\apache-<em>tomcat</em>-8.0.0-RC1\webapps\managerrn九月 29, 2016 6:30:05 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\java\apache-<em>tomcat</em>-8.0.0-RC1\webapps\ROOTrn九月 29, 2016 6:30:05 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-nio-8080"]rn九月 29, 2016 6:30:05 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-nio-8009"]rn九月 29, 2016 6:30:05 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 944 msrn
MyEclipse2017CI破解版
MyEclipse2017版本安装包、MyEclipse2017版本安装教程、MyEclipse破解文件、MyEclipse破解教程
Struts2一配置web.xml启动tomcat报错
详细情况:rnrn严重: Exception starting filter <em>struts2</em>rnUnable to load configuration. - bean - jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/web_0500/WEB-INF/lib/<em>struts2</em>-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:403)rn at org.apache.<em>struts2</em>.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1173)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1271)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.<em>struts2</em>.spring.StrutsSpringObjectFactory - bean - jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/web_0500/WEB-INF/lib/<em>struts2</em>-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 18 morernCaused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAwarern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:138)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:193)rn ... 21 morernCaused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextAwarern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 38 morernrn我的web.xml配置rn[code=HTML]rnrn rn rn index.jsprn rn rn <em>struts2</em>rn org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rnrn rn <em>struts2</em>rn /*rn rn[/code]rnrn把web.xml文件删除,在<em>tomcat</em>中reload不会出错,一把web.xml放进去就报上面的错误。刚开始不知道是web.xml引起的,找了很多种方法没有解决,刚刚再试的时候才发现是web.xml问题。我就觉得奇怪,我导入以前一些没问题的项目,依然<em>报错</em>,我就觉得挺纳闷的,这个web.xml文件本身应该没问题才对的,也还没有写什么东西去。<em>tomcat</em>、MyEclips都重装过,还是有问题。Jar包试过两组,一组是struts 2.1.6,一组是2.2.1的,不过这个问题应该不大,以前都可以用的rn这问题整了我好长时间了,求指点求解…………
MyEclipse启动Tomcat正常,Tomcat自启动报错
今天碰到一个很抓狂的问题,在MyEclipse里<em>启动</em>Tomcat不<em>报错</em>,项目正常运行,但是部署到服务器端时莫名奇妙的出现了Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type错误。     起初以为是Tomcat的问题,测试了半天,发现不
eclipse启动项目tomcat 报错
Errors occurred during the build.Errors running builder 'Integrated External Tool Builder' on project 'new52'.The builder launch configuration could not be found.The builder launch configuration could...
启动Tomcat时报错,急需解决
<em>启动</em>Tomcat时,<em>报错</em>:rnloading shared libraries:libstdc++-libc6.1-1.so.2:cannot openrnshared object file:No such file or directoryrnrn为什么?是<em>tomcat</em>配置的问题还是linux安装的问题?
tomcat启动web程序报错
我是新手,自己建了一个web项目,<em>启动</em><em>tomcat</em>的时候<em>报错</em>,希望大神指点rnrnorg.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Type filter class not found: .controller.user; nested exception is java.lang.ClassNotFoundException: .controller.userrnOffending resource: class path resource [spring/springContext.xml]; nested exception is java.lang.ClassNotFoundException: .controller.userrn at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)rn at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)rn at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)rn at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parseTypeFilters(ComponentScanBean
tomcat启动时候报错java.lang.ClassCastException
<em>tomcat</em><em>启动</em>时候<em>报错</em>如下,各位指点指点rnrnrn2012-8-29 10:30:28 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter encodingFilterrnjava.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filterrn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4038)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4692)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn10:30:28,307 DEBUG StandardServletEnvironment:104 - Adding [systemEnvironment] PropertySource with lowest search precedencern10:30:28,307 DEBUG StandardServletEnvironment:120 - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]rn10:30:28,338 DEBUG StandardServletEnvironment:114 - Initializing new StandardServletEnvironmentrn10:30:28,338 DEBUG StandardServletEnvironment:104 - Adding [servletConfigInitParams] PropertySource with lowest search precedencern10:30:28,338 DEBUG StandardServletEnvironment:104 - Adding [servletContextInitParams] PropertySource with lowest search precedencern10:30:28,354 DEBUG StandardServletEnvironment:104 - Adding [jndiProperties] PropertySource with lowest search precedencern10:30:28,354 DEBUG StandardServletEnvironment:104 - Adding [systemProperties] PropertySource with lowest search precedencern10:30:28,354 DEBUG StandardServletEnvironment:104 - Adding [systemEnvironment] PropertySource with lowest search precedencern10:30:28,354 DEBUG StandardServletEnvironment:120 - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]rn2012-8-29 10:30:28 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter hibernateOpenSessionInViewFilterrnjava.lang.ClassCastException: org.springframework.orm.hibernate4.support.OpenSessionInViewFilter cannot be cast to javax.servlet.Filterrn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4038)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4692)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2012-8-29 10:30:28 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2012-8-29 10:30:28 org.apache.catalina.core.StandardContext startrn严重: Context [/auditapp] startup failed due to previous errorsrn2012-8-29 10:30:28 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: The web application [/auditapp] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
启动Tomcat就报错,求解
2010-08-05 09:41:44,439 [main] ERROR ContextLoader - Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class cn.com.hnisi.fb.models.ShopBaseData)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class cn.com.hnisi.fb.models.ShopBaseData)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1851)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)rn at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:122)rn at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:191)rn at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:67)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:136)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:475)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:133)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:297)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)rn ... 36 morern2010-8-5 9:41:44 org.apache.catalina.core.StandardContext startrnrn本人使用的工具是MyEclipse8.0,JDK 是1.6,集成的是<em>struts2</em>,spring3,hibernate3rn在web.xml文件的配置是这样的:rnrn contextConfigLocationrn classpath:applicationContext.xmlrnrnrnrn org.springframework.web.context.ContextLoaderListenerrnrnrn<em>报错</em>的原因我个人认为是JDK版本的问题,但是我更换为MyEclipse自带的JDK也还是不行,请高手不吝赐教,多谢了
在Myecplise启动tomcat报错
问题:不管我新建什么WEB项目,服务器<em>启动</em>起来后就会报下面这个错,jms以前有个项目配置过的,但现在又不用,开启服务器时怎么还是会去连接呢?希望大家指点下,谢谢。rnrn<em>报错</em>如下:rn javax.jms.JMSException: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connectrn at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)rn at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:278)rn at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:222)rn at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:170)rn at com.htsoft.stockol.toolbox.jms.TransactionNotificationConsumer.getConnection(TransactionNotificationConsumer.java:64)rn at com.htsoft.stockol.toolbox.jms.TransactionNotificationConsumer.getSession(TransactionNotificationConsumer.java:49)rn at com.htsoft.stockol.toolbox.jms.TransactionNotificationConsumer.getConsumer(TransactionNotificationConsumer.java:91)rn at com.htsoft.stockol.toolbox.jms.TransactionNotificationConsumer.beginConsumer(TransactionNotificationConsumer.java:125)rn at com.htsoft.stockol.jmsServlet.OSTSbeginJMS.init(OSTSbeginJMS.java:30)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:623)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)rn at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)rn at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)rn at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:154)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:380)rn at java.net.Socket.connect(Socket.java:568)rn at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:414)rn at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:380)rn at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:50)rn at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)rn at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)rn at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)rn at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)rn at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)rn at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258)
启动Tomcat时报错,请教
[code=Java]严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:323)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:433)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:231)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 39 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107)rn ... 52 morernCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:188)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:128)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:78)rn ... 57 more[/code]rnrnjar包rncommons-fileupload-1.2.1.jarrncommons-io-1.3.2.jarrnfreemarker-2.3.13.jarrnognl-2.6.11.jarrn<em>struts2</em>-core-2.1.6.jarrn<em>struts2</em>-spring-plugin-2.1.6.jarrnxwork-2.1.2.jarrnantlr-2.7.6.jarrnasm-attrs.jarrnasm.jarrncglib-2.1.3.jarrncommons-collections-2.1.1.jarrncommons-logging-1.0.4.jarrndom4j-1.6.1.jarrnehcache-1.2.3.jarrnhibernate3.jarrnjaas.jarrnjavassist.jarrnjaxen-1.1-beta-7.jarrnjta.jarrnlog4j-1.2.11.jarrnojdbc6.jarrnxml-apis.jarrnaopalliance.jarrnasm-2.2.3.jarrnasm-commons-2.2.3.jarrnasm-util-2.2.3.jarrnaspectjlib.jarrnaspectjrt.jarrnaspectjweaver.jarrncglib-nodep-2.1_3.jarrncommons-attributes-api.jarrncommons-attributes-compiler.jarrncommons-codec.jarrncommons-fileupload.jarrncommons-httpclient.jarrncommons-io.jarrncommons-logging.jarrnfreemarker.jarrniText-2.1.3.jarrnjasperreports-2.0.5.jarrnjxl.jarrnlog4j-1.2.15.jarrnpersistence.jarrnpoi-3.0.1.jarrnportlet-api.jarrnspring-agent.jarrnspring-aop.jarrnspring-aspects.jarrnspring-beans.jarrnspring-context.jarrnspring-core.jarrnspring-jdbc.jarrnspring-orm.jarrnspring-<em>tomcat</em>-weaver.jarrnspring-tx.jarrnspring-web.jarrnspring-webmvc-portlet.jarrnspring-webmvc-struts.jarrnspring-webmvc.jarrnstruts.jarrnvelocity-1.5.jarrnvelocity-tools-view-1.4.jarrnxerces-2.6.2.jarrnrn<em>struts2</em>是自己导进去的,一共7个包,是2.1.6版rnhibernate是由MyEclipse生成的,Spring也是,hibernate是3.2版,spring是2.5版rnrn我大致分析出了问题是在Hibernate映射文件上,我把hibernate的rn去掉就一点问题都没有了rn但是对应的映射文件也没问题啊,并且是自动生成的,而且我换其他的映射也出现这样的问题,我想会不会是jar包冲突,我在网上找了好多方法,都没用,不管是说什么缺少javassist.jar(这个我有),还是说asm有问题,我都试过了,无效,请大家帮帮忙啊。这个问题太纠结了
mybatis+spring启动tomcat报错
mybatis+spring<em>启动</em><em>tomcat</em>时<em>报错</em>,错误如下所示:rn Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [apc.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\麦路\reservicenew\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\analysis.fxb.cn\WEB-INF\classes\com\fxb\analysis\entity\Website.xml]'; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.fxb.analysis.exml.Update_Websitern at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\麦路\reservicenew\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\analysis.fxb.cn\WEB-INF\classes\com\fxb\analysis\entity\Website.xml]'; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.fxb.analysis.exml.Update_Websitern at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:410)rn at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:293)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 27 morernCaused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.fxb.analysis.exml.Update_Websitern at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:115)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:90)rn at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:408)rn ... 30 morernCaused by: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.fxb.analysis.exml.Update_Websitern at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:677)rn at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:649)rn at org.apache.ibatis.session.Configuration.addMappedStatement(Configuration.java:478)rn at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:269)rn at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:100)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:123)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:113)rn ... 32 more
MyEclipse启动Tomcat时报错
错误信息如下:rnrn#rn# A fatal error has been detected by the Java Runtime Environment:rn#rn# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d957545, pid=4908, tid=5396rn#rn# JRE version: 6.0_21-b07rn# Java VM: Java HotSpot(TM) Client VM (17.0-b17 mixed mode windows-x86 )rn# Problematic frame:rn# V [jvm.dll+0xa7545]rn#rn# An error report file with more information is saved as:rn# D:\Tomcat6\bin\hs_err_pid4908.logrn#rn# If you would like to submit a bug report, please visit:rn# http://java.sun.com/webapps/bugreport/crash.jsprn#rn不知道这是怎么情况呀?是内存不足吗?
crontab 启动tomcat程序报错
命令<em>启动</em><em>tomcat</em> 正常rnrn放在crontab 中定时<em>启动</em>,<em>报错</em>,程序中有一段中文的文件路径 找不到rnrn好像是<em>启动</em>时编码的问题rnrnrn请教解决
eclipse启动tomcat报错
Server Apache-<em>tomcat</em>7 failed to start. <em>tomcat</em>运行<em>报错</em>Server “<em>tomcat</em>名称”failed to start.我这边最简单的方法就是把项目先Remove 然后Publish一下 然后再把项目加进去 然后重新再Publish一下,就可以正常<em>启动</em>了 ...
启动Tomcat时报错,急需解决!!!!
<em>启动</em>Tomcat时:rn/usr/local/jdk1.3.1/bin/i386/native_threads/java:Error while loading shared libraries:libstdc++-libc6.1-1.so.2:cannot openrnshared object file:No such file or directoryrnrn是jdk的问题吗?rnrn如果是,应如何解决?
tomcat启动web应用时候报错
[size=large] 这是在<em>启动</em><em>tomcat</em>的web应用的时候就<em>报错</em>,因为这个错误是不定期出现的,所以很难扑捉到。在网上搜索了一下相关的解决方案,但是也没有解决问题。大侠们,给帮忙解决一下吧!!!小女,谢过哦!!!!!rnrn2011-11-04 16:40:23,304 WARN [org.hibernate.util.JDBCExceptionReporter-logExceptions] - rn2011-11-04 16:40:23,330 ERROR [org.hibernate.util.JDBCExceptionReporter-logExceptions] - rn2011-11-04 16:40:23,344 WARN [org.hibernate.cfg.SettingsFactory-buildSettings] - rnjava.sql.SQLException: An attempt by a client to checkout a Connection has timed out.rn at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)rn at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:527)rn at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1143)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1110)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:431)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:271)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:271)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@199dcfe -- timeout at awaitAvailable()rn at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317)rn at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)rn at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)rn ... 62 morern[/size]
启动tomcat服务报错,求救?
13-Mar-2015 16:15:03.300 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing log4j from [classpath:log4j.xml]rn13-Mar-2015 16:15:03.456 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContextrn13-Mar-2015 16:15:06.357 SEVERE [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log SafeContextLoaderListener: rnThe Spring ContextLoaderListener we wrap threw on contextInitialized.rnBut for our having caught this error, the web application context would not have initialized.rn org.springframework.beans.factory.BeanCreationException:[size=13px][color=#FF0000] Error creating bean with name 'org.springframework.security.filterChainProxy': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.http.HttpConfigurationBuilder] while setting bean property 'filterChainMap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#10': Initialization of bean failed; nested exception is org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java.lang.CharSequence': Invalid byte tag in constant pool: 15[/color][/size]rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:125)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:377)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:161)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:62)rn at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:44)rn at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.beans.factory.BeanCreationException:[color=#FF0000] Error creating bean with name '(inner bean)#10': Initialization of bean failed; nested exception is org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java.lang.CharSequence': Invalid byte tag in constant pool: 15[/color][size=14px][/size]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)rn ... 33 morernrnrnrnrnrnrn以上是<em>启动</em><em>tomcat</em>服务时,提示的错误,红色标记部分,始终找不到原因?
Tomcat启动相关报错.IllegalStateException
严重: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListenerrnjava.lang.IllegalStateException: Web app root system property already set to different value: 'portal.root' = [D:\Program Files\java\Tomcat\apache-<em>tomcat</em>-7.0.53\webapps\portal\] instead of [D:\Program Files\java\Tomcat\apache-<em>tomcat</em>-7.0.53\webapps\portal01\] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!rn at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:150)rn at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)rn at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrnrn之前因为两个项目路径冲突更改了其中一个的war包名称和路径
tomcat启动不起来 报错...
信息: Starting Servlet Engine: Apache Tomcat/7.0.23rn2012-4-25 20:13:15 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/shop]]rn at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)rn at java.util.concurrent.FutureTask.get(FutureTask.java:83)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1100)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/shop]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn ... 7 morernCaused by: java.lang.NoClassDefFoundError: org/apache/<em>tomcat</em>/JarScannerrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:616)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)rn at java.net.URLClassLoader.access$000(URLClassLoader.java:58)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:197)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:296)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at org.apache.catalina.core.StandardContext.getJarScanner(StandardContext.java:1022)rn at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:249)rn at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:540)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5148)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: java.lang.ClassNotFoundException: org.apache.<em>tomcat</em>.JarScannerrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn ... 27 morern2012-4-25 20:13:15 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)rn at java.util.concurrent.FutureTask.get(FutureTask.java:83)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1100)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:624)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1108)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morern2012-4-25 20:13:15 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:624)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 9 morernCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1108)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 11 morern2012-4-25 20:13:15 org.apache.catalina.startup.Catalina startrn信息: Server startup in 250 msrnrn这该怎么解决?
tomcat启动报错
[color=#FF0000]我的<em>tomcat</em> 已<em>启动</em>就<em>报错</em> 说明在<em>tomcat</em> 被修改了 但是我最近的只在<em>tomcat</em> 下 修改了 server.xml 中添加了URIENcoding=UTF-8 但是<em>报错</em>信息却指向了我程序中filter的路径 不明所以[/color]rn[code=XML]严重: Exception starting filter SetEncodingFilterrnjava.lang.ClassNotFoundException: org.zero.space.common.SetEncodingFilterrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-1-19 20:38:42 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2009-1-19 20:38:42 org.apache.catalina.core.StandardContext startrn严重: Context [/gkhMVCDemo1] startup failed due to previous errorsrn2009-1-19 20:38:44 org.apache.catalina.loader.WebappClassLoader validateJarFile[/code]
tomcat启动成功,访问报错
org.apache.jasper.JasperException: /tspweb/jsp/index.jsp (line: 9, column: 2) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV at org.apache.jasper...
eclipse3.4启动web应用报错tomcat启动超时
<em>tomcat</em> 45m内未<em>启动</em>,eclipse<em>报错</em>rnrn以前的版本在windows-preference-server里有地方可以改timeout值,我的3.4找不到改的地方,rn不知道换到哪里了,请大家指教。rnrneclipse用的是for EE的,没装myeclipse
启动tomcat的时候出现报错!!!
2011-3-23 8:48:42 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.20.rn2011-3-23 8:48:42 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2011-3-23 8:48:42 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'debug' to '0' did not find a matching property.rn2011-3-23 8:48:42 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'debug' to '0' did not find a matching property.rn2011-3-23 8:48:42 org.apache.<em>tomcat</em>.util.digester.Digester endElementrn严重: End event threw exceptionrnjava.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.<em>tomcat</em>.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:804)rn at org.apache.<em>tomcat</em>.util.digester.SetNextRule.end(SetNextRule.java:201)rn at org.apache.<em>tomcat</em>.util.digester.Digester.endElement(Digester.java:1057)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)rn at org.apache.<em>tomcat</em>.util.digester.Digester.parse(Digester.java:1543)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:554)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)rnCaused by: java.lang.IllegalArgumentException: addChild: Child name '' is not uniquern at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:797)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)rn ... 27 morern2011-3-23 8:48:42 org.apache.catalina.startup.Catalina loadrn警告: Catalina.start using conf/server.xml: Error at (139, 109) : addChild: Child name '' is not uniquern2011-3-23 8:48:42 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'debug' to '0' did not find a matching property.rn2011-3-23 8:48:42 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'debug' to '0' did not find a matching property.rn2011-3-23 8:48:42 org.apache.<em>tomcat</em>.util.digester.Digester endElementrn严重: End event threw exceptionrnjava.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.<em>tomcat</em>.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:804)rn at org.apache.<em>tomcat</em>.util.digester.SetNextRule.end(SetNextRule.java:201)rn at org.apache.<em>tomcat</em>.util.digester.Digester.endElement(Digester.java:1057)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)rn at org.apache.<em>tomcat</em>.util.digester.Digester.parse(Digester.java:1543)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:554)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:608)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)rnCaused by: java.lang.IllegalArgumentException: addChild: Child name '' is not uniquern at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:797)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)rn ... 27 morern2011-3-23 8:48:42 org.apache.catalina.startup.Catalina loadrn警告: Catalina.start using conf/server.xml: Error at (139, 109) : addChild: Child name '' is not uniquern2011-3-23 8:48:42 org.apache.catalina.startup.Catalina startrn严重: Cannot start server. Server instance is not configured.rn
tomcat启动出现严重报错:...?
严重: Error starting static Resources java.lang.IllegalArgumentException: Document base F:\yiyuan\Tomcat\webapps\balancer does not exist or is not a readable direct...
eclipse启动tomcat时的报错
作为刚学习jsp的小菜鸟,在这几天遇到一个eclipse<em>启动</em><em>tomcat</em>时的问题,遇到下面的异常: Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory at java.lang.Class.getDeclaredFields0(Native Method) at
idea启动tomcat报错
<em>报错</em>内容为:rn信息: Starting ProtocolHandler ["http-bio-8888"]rn二月 25, 2018 11:08:32 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn二月 25, 2018 11:08:32 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 104 msrnConnected to serverrn[2018-02-25 11:08:33,186] Artifact work-attendance:war exploded: Artifact is being deployed, please wait...rn二月 25, 2018 11:08:34 下午 org.apache.catalina.startup.TldConfig executern信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.rnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rn二月 25, 2018 11:08:35 下午 org.apache.catalina.core.StandardContext startInternalrn严重: One or more listeners failed to start. Full details will be found in the appropriate container log filern二月 25, 2018 11:08:35 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [] startup failed due to previous errorsrn[2018-02-25 11:08:35,525] Artifact work-attendance:war exploded: Error during artifact deployment. See server log for details.rn二月 25, 2018 11:08:42 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\Program Files\apache-<em>tomcat</em>-7.0.73\webapps\managerrn二月 25, 2018 11:08:43 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\Program Files\apache-<em>tomcat</em>-7.0.73\webapps\manager has finished in 108 msrnrn我将<em>tomcat</em>重新装了一下,直接<em>启动</em><em>tomcat</em>可以。但是使用idea还是不行,在<em>tomcat</em> log文件夹中也没有找到使用idea<em>启动</em><em>tomcat</em>的日志文件。
使用SSH框架开发,启动tomcat加载项目时报错org.springframework.beans.factory.BeanCreationException
使用SSH框架开发项目,在家里机器正常运行,在公司机器<em>启动</em><em>tomcat</em><em>加载</em>项目时<em>报错</em>如下,spring.jar和spring-hibernate3.jar都已包含在项目中,各位大牛帮忙看下:rnrn2011-10-11 14:57:19 org.springframework.web.context.ContextLoader initWebApplicationContextrn严重: Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundErrorrnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rnat java.security.AccessController.doPrivileged(Native Method)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rnat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rnat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rnat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rnat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rnat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rnat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rnat org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rnat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rnat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rnat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rnat org.apache.catalina.core.StandardService.start(StandardService.java:525)rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rnat org.apache.catalina.startup.Catalina.start(Catalina.java:595)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rnat java.lang.reflect.Method.invoke(Method.java:597)rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
tomcat启动web时classloader加载el实现类报错
<em>报错</em>信息java.lang.LinkageError: loader constraint violation: when resolving interface method &quot;javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;&quot; the class loader ...
【急】tomcat启动报错,但是不加载Spring的配置文件!!
[code=text]十二月 30, 2016 2:24:46 下午 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_77\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.8.0_77\jre\bin;C:/Program Files/Java/jre1.8.0_77/bin/server;C:/Program Files/Java/jre1.8.0_77/bin;C:/Program Files/Java/jre1.8.0_77/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_77\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Autodesk\Backburner\;E:\mysql\bin;C:\Program Files (x86)\VanDyke Software\Clients\;G:\迅雷下载\UltraCompare;E:\;estination\bin;E:\Subversion\bin;E:\apache-maven-3.3.9\bin;E:\VisualSVN\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\VanDyke Software\Clients\;E:\dshlEclipse\eclipse;;.rn十二月 30, 2016 2:24:47 下午 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.j2ee.server:numen' did not find a matching property.rn十二月 30, 2016 2:24:47 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-bio-80"]rn十二月 30, 2016 2:24:47 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-bio-8009"]rn十二月 30, 2016 2:24:47 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 453 msrn十二月 30, 2016 2:24:47 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn十二月 30, 2016 2:24:47 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.52rn十二月 30, 2016 2:24:50 下午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrnlog4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.rnlog4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.rnlog4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by rnlog4j:ERROR [org.apache.catalina.loader.StandardClassLoader@6cc4c815] whereas object of type rnlog4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [WebappClassLoaderrn context: /numenrn delegate: falsern repositories:rn /WEB-INF/classes/rn-------- Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@6cc4c815rn].rnlog4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].rn十二月 30, 2016 2:24:51 下午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rntry to load 'net/contentobjects/jnotify/lib/jnotify_win_64.dll' from classpathrnload finished![/code]rnrnrn下面是web.xmlrn[code=text]rnrnrn elfrn elf Systemrn rn rn rn rn contextConfigLocationrn classpath*:core.xmlrn rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rnrn rn org.springframework.web.util.Log4jConfigListenerrn rnrn rn org.springframework.web.util.IntrospectorCleanupListenerrn rn rn rn com.netease.numen.core.web.listener.InitListener rn rn rnrn rn rn numenPlatformrn org.springframework.web.servlet.DispatcherServletrn rn contextConfigLocationrn classpath*:views.xmlrn rn 1rn rn rn rn numenPlatformrn *.dorn rn rn rn rn MemcachedSessionFilter rn com.netease.numen.base.web.filter.MemcachedSessionFilter rn rn rn MemcachedSessionFilter rn /* rn rnrn rn rn CharacterEncodingFilterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn UTF-8rn rn rn rn CharacterEncodingFilterrn /*rn rn rn rn VisitFilterrn com.netease.numen.base.web.filter.VisitFilterrn rn rn VisitFilterrn *.dorn rn rn VisitFilterrn *.prn rn rn rn rn SessionTimeoutFilter rn com.netease.numen.base.web.filter.SessionTimeoutFilter rn rn rn excludeUrirn /api/*rn rn rn rn SessionTimeoutFilter rn *.dorn rn rn SessionTimeoutFilter rn *.prn rn rn rn rn PrivateApiFilterrn com.netease.numen.base.web.filter.PrivateApiFilterrn rn rn PrivateApiFilterrn /api/private/*rn rn rn rn Log4jMDCFilter rn com.netease.numen.base.web.filter.Log4jMDCFilter rn rn rn Log4jMDCFilter rn /* rn rn rn rn log4jConfigLocationrn classpath:log4j.xmlrn rnrn rn webAppRootKeyrn elfrn rn rn rn rn rn pillowConfigLocationrn rn classpath*:com/netease/numen/*/pillow-*.xml rn rn rn rn com.netease.pillow.listener.DefaultLoaderListenerrn rn rn rn dispatcherControllerrn com.netease.pillow.dispatcher.PillowDispatchControllerrn rn contextConfigLocationrn classpath*:pillow-views.xmlrn rn 3rn rn rn dispatcherControllerrn *.prn rn rn rn rn 120rn rnrn rn /index.jsprn rn rn rn 404rn /error/404.dorn rn rn rn 500rn /500.dorn rnrn[/code]rnrn什么原因???
Myeclipse2017CI破解工具
Myeclipse2017CI破解工具 破解后可用时间为3年,亲测可用,希望各位试用
myeclipse2017ci core备份
<em>myeclipse2017ci</em> core备份 com.genuitec.eclipse.core_15.0.0.201707031119.jar
STRUTS2 基本知识(疯狂书)
Action类里的属性可以封装请求参数与处理结果。 比如action类里有String tip; jsp可以用 输出Action访问servletAPI利用ActionContext类,其中有几个方法 Object get Map getApplication Static ActionContext getContext Map g
Struts2初次配置启动tomcat出错
Tomcat log:rn[code=JScript]rn2011-1-6 0:04:30 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:Struts2Demo' did not find a matching property.rn2011-1-6 0:04:30 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_02\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.6.0_02/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_02/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_02/bin/../jre/lib/i386;C:\Program Files\PC Connectivity Solution\;C:\Program Files\Java\jdk1.6.0_02\bin;C:\Program Files\Java\jre1.6.0_02;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\EmEditor;C:\Program Files\TortoiseSVN\binrn2011-1-6 0:04:30 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-1-6 0:04:30 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 759 msrn2011-1-6 0:04:30 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-1-6 0:04:30 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.16rn2011-1-6 0:04:30 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter <em>struts2</em>rnjava.lang.ClassNotFoundException: org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-1-6 0:04:30 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-1-6 0:04:30 org.apache.catalina.core.StandardContext startrn严重: Context [/Struts2Demo] startup failed due to previous errorsrn2011-1-6 0:04:30 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-1-6 0:04:30 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-1-6 0:04:30 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/31 config=nullrn2011-1-6 0:04:30 org.apache.catalina.startup.Catalina startrn信息: Server startup in 622 msrn[/code]rnEclipse: rnEclipse Java EE IDE for Web Developers. rnrnVersion: Helios Service Release 1 rnBuild id: 20100917-0705 rnTomcat:apache-<em>tomcat</em>-6.0.16 rnStruts:struts-2.2.1.1 rn以上均官网下载,附工程文件以及bug重现的过程截图。rnBug重现截图:[url=http://dl.javaeye.com/topics/download/9b03c1fa-d4c4-3125-a3cd-ca29b090fb44][/url]rn重现工程:[url=http://dl.javaeye.com/topics/download/a41c6fb3-f2f7-33d1-b60f-122546d61fde][/url]rn原帖地址:[url=http://www.javaeye.com/problems/56930][/url]rn我手动建立了文件org.apache.<em>struts2</em>.dispatcher.FilterDispatcher,再次发布,<em>tomcat</em><em>启动</em>错误变化了,说明之前肯定是此包含此类的包没有被<em>加载</em>,可是。。。。你还想让我咋<em>加载</em>啊。原帖提到的问题我都验证过了,哎,两天了。rn
Struts2 Tomcat 执行Action 报错 struts.valueStack
2008-04-11 14:04:47 -- WARN Could not find property [org.apache.catalina.jsp_file]rn2008-04-11 14:04:47 -- WARN Could not find property [struts.valueStack]
Tomcat启动 The requested resource (/Struts2/) is not available.
我配置SSH2框架。。<em>启动</em><em>tomcat</em>一切正常。。http://localhost:8080/也正常显示。。rn只是加入项目后就总显示The requested resource (/Struts2/) is not available.了。。。rnrn我已经在C:\Tomcat 5.5\conf\Catalina\localhost下添加了部署文件:rn rn rnrn我写过测试文件。。SSH框架应该算是OK的。。rnrn这个是web.xmlrnrnrn Struts2rn rn index.htmlrn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rnrn Struts2rnrn rn index.htmlrn rnrn rn contextConfigLocationrn /WEB-INF/classes/applicationContext.xmlrn rnrn rn <em>struts2</em>rn rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn rn rn rn <em>struts2</em>rn /*rn rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rnrnrnrn请问大侠我应该是哪里出错了呢。。rn
配置struts2怎么tomcat启动鸟了
一个入门的<em>struts2</em>程序 。rn 在D:\<em>tomcat</em>\Tomcat 6.0\conf 的server.xmlrn 写上 就连 Tomcat 都<em>启动</em>不鸟 ,是怎么回事 ?
Struts2,Hibernate整合,tomcat启动出错
2011-4-12 17:51:23 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Myeclipse\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Program Files\Myeclipse\plugins\com.genuitec.eclipse.easie.<em>tomcat</em>.myeclipse_7.9.100.zmyeclipse80020090924a\<em>tomcat</em>\binrn2011-4-12 17:51:23 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-4-12 17:51:23 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 609 msrn2011-4-12 17:51:23 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-4-12 17:51:23 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn17:51:26,607 FATAL org.apache.<em>struts2</em>.spring.StrutsSpringObjectFactory:89 - ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********rnLooks like the Spring listener was not configured for your web app! rnNothing will work until WebApplicationContextUtils returns a valid ApplicationContext.rnYou might need to add the following to web.xml: rn rn org.springframework.web.context.ContextLoaderListenerrn rn17:51:26,633 ERROR org.apache.<em>struts2</em>.dispatcher.Dispatcher:38 - Dispatcher initialization failedrnjava.lang.NullPointerExceptionrn at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:220)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:530)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:501)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:457)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:415)rn at org.apache.<em>struts2</em>.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-4-12 17:51:26 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter <em>struts2</em>rnClass: com.opensymphony.xwork2.spring.SpringObjectFactoryrnFile: SpringObjectFactory.javarnMethod: getClassInstancernLine: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:428)rn at org.apache.<em>struts2</em>.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NullPointerExceptionrn at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:220)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:530)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:501)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:457)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)rn at org.apache.<em>struts2</em>.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init(Dispatcher.java:415)rn ... 29 morern2011-4-12 17:51:26 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-4-12 17:51:26 org.apache.catalina.core.StandardContext startrn严重: Context [/model4] startup failed due to previous errorsrn2011-4-12 17:51:27 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-4-12 17:51:27 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-4-12 17:51:27 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/24 config=nullrn2011-4-12 17:51:27 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3567 msrnrnrnrnrn什么问题啊?我用的myeclipse的<em>tomcat</em>;<em>struts2</em>包里面只有基本的6个jar包。
配置struts2启动tomcat遇到问题
正在练习一个网页系统,有用到<em>struts2</em>,但是配置好<em>struts2</em>之后,<em>启动</em><em>tomcat</em>就遇到了问题~rn我的web.xml文件如下:rn[code=java]rnrnrn rn <em>struts2</em>rn rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn rn rn rn <em>struts2</em>rn /*rn rn rn index.jsprn rnrn[/code]rnrn<em>struts2</em>.xml文件如下:rn[code=java]rnrnrnrn rn rn rn rn /login.jsprn /adminMain.jsprn /directorMain.jsprn /teacherMain.jsprn /studentMain.jsprn rn rnrn[/code]rn导入的包[img=https://img-bbs.csdn.net/upload/201306/15/1371310036_559014.jpg][/img]rn然后我在<em>启动</em><em>tomcat</em>后,停在这里就不动了[img=https://img-bbs.csdn.net/upload/201306/15/1371310096_72682.jpg][/img]rn然后会跳出一个JavaCharStream类,显示如下:rn[img=https://img-bbs.csdn.net/upload/201306/15/1371310204_316056.jpg][/img]rn琢磨了很久还是没有找到解决方法,希望有人能帮忙一下~谢谢~rn
struts2启动tomcat时报java.lang.ClassNotFoundException异常?
现有一Struts 2程序,struts.xml如下:rnrnrnrnrn rn rn rnrn /chapter7/result.jsprn /error.jsprn rn rn rnrn rnrn导入的jar包有:rncommons-logging-1.0.4.jar,freemarker-2.3.8.jar,ognl-2.6.11.jar,<em>struts2</em>-core-2.0.14.jar,xwork-2.0.7.jarrn当我写完程序,部署完,<em>启动</em><em>tomcat</em>服务器时,出现如下异常:rn2010-4-18 15:55:01 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter Struts 2rnjava.lang.ClassNotFoundException: org.apache.Struts 2.dispatcher.FilterDispatcherrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:248)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:396)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:451)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2010-4-18 15:55:01 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2010-4-18 15:55:01 org.apache.catalina.core.StandardContext startrn严重: Context [/MyBookTest] startup failed due to previous errorsrn2010-4-18 15:55:02 org.apache.catalina.core.StandardContext filterStartrn请问各位高手,我哪里出错了?
求解:tomcat启动异常(struts2项目)(急!!!)
配置<em>struts2</em>之前服务器<em>启动</em>正常,配置后<em>启动</em>出现下面的异常,求解答,谢谢!!! 以下是异常信息: 九月 13, 2015 11:56:02 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal
Struts2启动过程中报错java.lang.ClassNotFoundException完美解决方案
具体<em>报错</em>部分代码如下 严重: Exception starting filter <em>struts2</em> java.lang.ClassNotFoundException: org.apache.<em>struts2</em>.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter at org.apache.catalina.loader.WebappClassLoa
研究struts2源码时启动服务器报错
错误信息:rnrncom.opensymphony.xwork2.util.logging.commons.CommonsLogger errorrn严重: Dispatcher initialization failedrnUnable to load configuration. - Class: java.net.URLrnFile: URL.javarnMethod: rnLine: 601 - java/net/URL.java:601:-1rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.<em>struts2</em>.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at rnrn.....rnrn引用:rnasm-3.3.1.jarrncommons-lang-2.6-javadoc.jarrncommons-lang-2.6-sources.jarrncommons-lang-2.6.jarrnvelocity-1.5.jarrnvelocity-1.6.2-dep.jarrnvelocity-tools-1.3.jarrncommons-logging-api-1.1.jarrncommons-fileupload.jarrncommons-io.jarrnfreemarker-2.3.15.jarrnognl-3.0.4.jarrnasm-commons-3.1.jarrnspring.jarrntestng-5.8-jdk15.jarrnrnrnsrc下面除了<em>struts2</em>的源码外,还有rnstruts-default.xmlrnstruts.xmlrnrnstruts-default.xml是从别的项目中copy来的rnstruts.xmlrn
struts2加载
<em>struts2</em>的<em>加载</em>步骤,最基本的<em>struts2</em>的<em>加载</em>
myeclipse2017CI版下载
内含破解过程详解及相对应的myeclipse2017 安装包下载链接地址。网上有什么破解的工具、讲解,有些人试了可以很多人试却不可以。本资源破解和安装包都是真实可用的,自己正在使用的版本,童受无欺,主要是希望方便编程家族的伙计们不必在为这些琐事烦心。爱Java爱编程
MyEclipse2017CI 10 离线版
MyEclipse2017CI 10 离线版,下载后可直接进行安装,再配置破解,汉化
myeclipse2017CI完全破解版
myeclipse2017CI完全破解版,百度云下载,实测破解可用
tomcat加载工程时报错空指针异常
一个用hibernate整合<em>struts2</em>的操作数据库的程序,底层是用serviceFactory生成业务逻辑实现类对象,操作数据库的,下面还有DAO接口什么的,不过这些都没问题,我写过测试类,可以操作数据库了。然后又加上了<em>struts2</em>的表现层,再用MyEclipse运行程序时,<em>启动</em><em>tomcat</em><em>加载</em>后工程报出空指针异常,错误如下: rn警告: Error during context [/<em>struts2</em>+hibernate3.0] restart rnjava.lang.NullPointerException rnat org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1097) rnat org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203) rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) rnat org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1307) rnat org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1571) rnat org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580) rnat org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560) rnat java.lang.Thread.run(Thread.java:662) rn我用的是<em>tomcat</em>6.0编译的。配置文件如下: rnstruts.xml: rn rn rn rnrn rn rn rn /showAll.jsp rn rn rn showAll.action rn rn rn showAll.action rn rn rn showAll.action rn rn rn rnrnweb.xml: rn rn <em>struts2</em> rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcher rn rn rn <em>struts2</em> rn /* rn rn rn showAll.action rn rnAction程序如下: rn1)showAllAction: rnpackage action; rnimport java.util.List; rnimport com.opensymphony.xwork2.ActionSupport; rnimport org.apache.<em>struts2</em>.ServletActionContext; rnimport service.ServiceFactory; rnimport service.ProductService; rnpublic class ShowAllAction extends ActionSupport rn/** rn* rn*/ rnprivate static final long serialVersionUID = 1L; rnrn@SuppressWarnings("unchecked") rnpublic String execute()throws Exception rn rnrn ProductService ps=ServiceFactory.getServiceInstence(); rn List list=ps.queryAllProduct(); rn ServletActionContext.getRequest().setAttribute("all",list); rn return SUCCESS; rn rn rn2)AddAction: rnpackage action; rnimport java.util.List; rnimport com.opensymphony.xwork2.ActionSupport; rnimport org.apache.<em>struts2</em>.ServletActionContext; rnimport service.ServiceFactory; rnimport service.ProductService; rnpublic class ShowAllAction extends ActionSupport rn/** rn* rn*/ rnprivate static final long serialVersionUID = 1L; rnrn@SuppressWarnings("unchecked") rnpublic String execute()throws Exception rn rnrn ProductService ps=ServiceFactory.getServiceInstence(); rn List list=ps.queryAllProduct(); rn ServletActionContext.getRequest().setAttribute("all",list); rn return SUCCESS; rn rn rn3)UpdateAction: rnpackage action; rnimport service.ServiceFactory; rnimport service.ProductService; rnimport bean.Product; rnimport com.opensymphony.xwork2.ActionSupport; rnpublic class UpdateAction extends ActionSupport rn/** rn* rn*/ rnprivate static final long serialVersionUID = 1L; rnprivate String id; rnprivate String name; rnprivate Double price; rnpublic String getId() rnreturn id; rn rnpublic void setId(String id) rnthis.id = id; rn rnpublic String getName() rnreturn name; rn rnpublic void setName(String name) rnthis.name = name; rn rnpublic Double getPrice() rnreturn price; rn rnpublic void setPrice(Double price) rnthis.price = price; rn rnpublic String execute()throws Exception rn rnProductService ps=ServiceFactory.getServiceInstence(); rnProduct p=new Product(); rnp.setId(id); rnp.setName(name); rnp.setPrice(price); rnps.updateProduct(p); rnreturn SUCCESS; rn rn rn4)deleteAction: rnpackage action; rnimport com.opensymphony.xwork2.ActionSupport; rnimport service.ServiceFactory; rnimport service.ProductService; rn//import bean.Product; rnpublic class deleteAction extends ActionSupport rnrn/** rn* rn*/ rnprivate static final long serialVersionUID = 1L; rnprivate String id; rnrnpublic String getId() rnreturn id; rn rnpublic void setId(String id) rnthis.id = id; rn rnpublic String execute()throws Exception rn rnrnProductService ps=ServiceFactory.getServiceInstence(); rnps.deleteProduct(id); rnreturn SUCCESS; rn rn rn还有三个jsp文件: rn1)add.jsp rn rn rn rn rn rn 添加产品 rn rn 产品id rn 产品名 rn产品价格 rn rn rn rn rn rn rn2)showAll.jsp: rn rn rn rn rn 产品列表 rn rn rn rn 产品列表 rn rn rn rn 产品ID rn 产品名称 rn 产品价格 rn 是否删除 rn 是否更新 rn rn rn rn rn rn 是否删除 rn 更新 rn rn rn rn rn rn rn rn3)update.jsp: rn rn rn rn rn Insert title here rn rn rn rn 更新产品 rn rn rn rn rn rn rn rn rn rn rn请求各位哥哥伸出援助之手哈,下周天就要交作业了,55~ rn
eclipse启动tomcat后,不能加载项目
2012-6-27 16:17:55 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-6-27 16:17:55 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1031 msrn2012-6-27 16:17:55 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-6-27 16:17:55 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/5.0.28rn2012-6-27 16:17:55 org.apache.catalina.core.StandardHost startrn信息: XML validation disabledrn2012-6-27 16:17:56 org.apache.catalina.startup.ContextConfig applicationConfigrn信息: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ekp]rn2012-6-27 16:17:56 org.apache.catalina.core.StandardHost getDeployerrn信息: Create Host deployer for direct deployment ( non-jmx ) rn2012-6-27 16:17:56 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-6-27 16:17:57 org.apache.jk.common.ChannelSocket initrn信息: JK2: ajp13 listening on /0.0.0.0:8009rn2012-6-27 16:17:57 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/31 config=nullrn2012-6-27 16:17:57 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1547 msrnrn====================================================================================rn以上是<em>启动</em>后<em>加载</em>的消息,但是项目<em>加载</em>并没有,求大神解救,第一次用Eclipse+<em>tomcat</em>5.0+jdk1.5
Tomcat 启动正常,没有加载项目
1. 看控制台输出,看异常信息2. 确认<em>tomcat</em>的<em>启动</em>信息里包含这个项目的内容。3.项目放哪了    如果是war包的话放在webapps下边重启<em>tomcat</em>就能自动部署,其他的一般需要更改server.xml文件4.进入管理页面,一般是 http://localhost:8080,点击Tomcat Manager,<em>tomcat</em>6的用户是admin,密码是空;   如果你想设一个密码的话,...
关于weblogic和tomcat加载struts的启动问题
我在<em>启动</em>weblogic的时候<em>启动</em>到执行web.xml配置的servlet的时候,每次<em>加载</em> actionrn org.apache.struts.action.ActionServletrnrn系统就会<em>报错</em>:- Digester.getParser:rnjava.lang.ClassCastExceptionrn at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)rn at org.apache.commons.digester.Digester.getFactory(Digester.java:490)rn at org.apache.commons.digester.Digester.getParser(Digester.java:693)rnrn而使用<em>tomcat</em>却正常,请问怎么回事?
tomcat启动时候项目被加载了两次
写了一个servletcontext的监听器,监听他<em>启动</em>时候的我发现了servletcontext里面写的线程被<em>启动</em>了两次,再三检查了代码之后发现线程并没有在其他地方被<em>启动</em>,所以就开始怀疑项目是不是被servletcontext的监听器是否是执行两次,因为监听器是随着项目被<em>加载</em>被而开始监听,所以我在想是否是同一个项目被<em>加载</em>了两次。在 public void contextInitialize...
Tomcat正常启动,工程没加载怎么回事
2012-5-2 16:44:44 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\Program Files\apache-<em>tomcat</em>-6.0.33\binrn2012-5-2 16:44:45 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-5-2 16:44:45 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 766 msrn2012-5-2 16:44:45 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-5-2 16:44:45 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.33rn2012-5-2 16:44:45 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor host-manager.xmlrn2012-5-2 16:44:45 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor manager.xmlrn2012-5-2 16:44:45 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory docsrn2012-5-2 16:44:45 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2012-5-2 16:44:45 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-5-2 16:44:45 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-5-2 16:44:46 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/42 config=nullrn2012-5-2 16:44:46 org.apache.catalina.startup.Catalina startrn信息: Server startup in 747 msrn
eclipse启动tomcat时不能加载web项目
问题描述: eclipse<em>启动</em><em>tomcat</em>时,不能<em>加载</em>web项目,但是把war包丢进<em>tomcat</em>的webapps下是能正常运行的 解决方式: 右键项目——打开Properties——找到Deployment Assembly——将WebContent修改成你的项目webapp路径 ...
Eclipse 3.2启动tomcat 加载两次
如题 rnrn我的环境是Eclipse3.2(没装myeclipse) + <em>tomcat</em>5.5rn我的web应用程序是struts+hibernate 然后我把它发布到我同事的机器上没有出现问题!rn在我Eclipse3.2上<em>启动</em><em>tomcat</em>后就出现<em>加载</em>两次的情况rnrn我重装了<em>tomcat</em>也依然如此 怀疑是eclips映射<em>tomcat</em>的问题! 不知道哪位高人碰到过这种问题?rn
tomcat启动问题,struts2.0加载不了。
我的<em>tomcat</em> <em>启动</em>信息如下。rn其中[color=#FF0000]myroot[/color]是我在[color=#FF0000]webapps[/color]目录下自己配置的一个web应用rn[color=#FF00FF]ajhmis[/color] 是<em>tomcat</em>自带的文件。rnrnrnrn2008-12-11 18:24:25 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2008-12-11 18:24:25 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 3342 msrn2008-12-11 18:24:26 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2008-12-11 18:24:26 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rnD:\apache-<em>tomcat</em>-6.0.13\webapps\ajhmis.myeclipse.bak\rn[color=#FF0000]D:\apache-<em>tomcat</em>-6.0.13\webapps\ajhmis\[/color]rn2008-12-11 18:24:35 org.apache.<em>tomcat</em>.util.digester.Digester endElementrn严重: End event threw exceptionjava.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.<em>tomcat</em>.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:899)rn at org.apache.<em>tomcat</em>.util.digester.SetNextRule.end(SetNextRule.java:193)rnrn at org.apache.<em>tomcat</em>.util.digester.Rule.end(Rule.java:229)rn at org.apache.<em>tomcat</em>.util.digester.Digester.endElement(Digester.java:1058)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)rnrn[color=#FF0000]Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name Struts2[/color]rn at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2154)rn ... 46 morern2008-12-11 18:24:35 org.apache.catalina.startup.ContextConfig applicationWebConfigrn[color=#FF0000]严重: Parse error in application web.xml file at jndi:/localhost/myroot/WEB-INF/web.xml[/color]java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name Struts2rn at org.apache.<em>tomcat</em>.util.digester.Digester.createSAXException(Digester.java:2726)rn at org.apache.<em>tomcat</em>.util.digester.Digester.createSAXException(Digester.java:2752)rn at org.apache.<em>tomcat</em>.util.digester.Digester.endElement(Digester.java:1061)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at org.apache.<em>tomcat</em>.util.digester.Digester.parse(Digester.java:1562)rn at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rnrnrn rn2008-12-11 18:24:35 org.apache.catalina.startup.ContextConfig applicationWebConfigrn严重: Occurred at line 18 column 20rn2008-12-11 18:24:35 org.apache.catalina.startup.ContextConfig startrn严重: Marking this application unavailable due to previous error(s)rn2008-12-11 18:24:35 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2008-12-11 18:24:35 org.apache.catalina.core.StandardContext startrn严重: Context [/myroot] startup failed due to previous errorsrn2008-12-11 18:24:35 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2008-12-11 18:24:35 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2008-12-11 18:24:36 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/120 config=nullrn2008-12-11 18:24:36 org.apache.catalina.startup.Catalina startrn信息: Server startup in 10167 ms
Tomcat 启动的时候没有加载hibernate配置文件
[color=#FF0000][b]SysUser.hbm.xml文件[/b][/color]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[color=#FF0000][b]hibernate.cfg.xml文件[/b][/color]rnrnrnrnrnrnrn rn rn org.hibernate.dialect.SQLServerDialectrn jdbc:sqlserver://localhost:1433;databaseName=bjrn sarn sarn com.microsoft.sqlserver.jdbc.SQLServerDriverrn renaultrn rn 1rn updatern truern rn rn rnrnrn[color=#FF0000][b]SysUser.java文件[/b][/color]rnpackage com.model;rnrnpublic class SysUser rn private String username;rn private String password;rn private String id;rn private String name;rn private String sex;rn private String isadmin;rn private String ison;rn private String isdelete;rn rn public String getId() rn return id;rn rn public void setId(String id) rn this.id = id;rn rn public String getName() rn return name;rn rn public void setName(String name) rn this.name = name;rn rn public String getSex() rn return sex;rn rn public void setSex(String sex) rn this.sex = sex;rn rn public String getIsadmin() rn return isadmin;rn rn public void setIsadmin(String isadmin) rn this.isadmin = isadmin;rn rn public String getIson() rn return ison;rn rn public void setIson(String ison) rn this.ison = ison;rn rn public String getIsdelete() rn return isdelete;rn rn public void setIsdelete(String isdelete) rn this.isdelete = isdelete;rn rn public String getUsername() rn return username;rn rn public void setUsername(String username) rn this.username = username;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rnrn
Tomcat启动加载非常慢,求指导
最近突然发现<em>tomcat</em><em>启动</em>时非常慢,应用还没<em>启动</em>已经耗时40多秒,从日志中看,加粗部分耗时最严重,但不知道这段时间在做什么?求大神指导优化rn五月 01, 2018 11:11:06 上午 org.apache.<em>tomcat</em>.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:sense-web' did not find a matching property.rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/8.0.51rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Apr 9 2018 21:20:15 UTCrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 8.0.51.0rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 8.1rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.3rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: x86rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files\java\jdk1.7.0_60\jrern五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_60-b19rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: D:\Workspaces\MavenWorkspaces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: E:\Tomcat\apache-<em>tomcat</em>-8.0.51rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50065rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Xms512mrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Xmx512mrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -XX:PermSize=256Mrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -XX:MaxPermSize=512Mrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=D:\Workspaces\MavenWorkspaces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=E:\Tomcat\apache-<em>tomcat</em>-8.0.51rn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=D:\Workspaces\MavenWorkspaces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=E:\Tomcat\apache-<em>tomcat</em>-8.0.51\endorsedrn五月 01, 2018 11:11:06 上午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=UTF-8rn五月 01, 2018 11:11:06 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\java\jdk1.7.0_60\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\java\jdk1.7.0_60\jre\bin;C:/Program Files/java/jdk1.8/bin/../jre/bin/client;C:/Program Files/java/jdk1.8/bin/../jre/bin;C:/Program Files/java/jdk1.8/bin/../jre/lib/i386;C:\Program Files (x86)\Common Files\NetSarang;D:\oracle\oracle11g\product\11.2.0\dbhome_1\bin;D:\oracle\product\10.2.0\client_1;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\java\jdk1.7.0_60\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin;C:\Users\zhangqsg.DIGITALCHINA\AppData\Local\Microsoft\WindowsApps;C:\Program Files\java\ant-1.9.6\bin;C:\Program Files\java\apache-maven-3.5.0\bin;D:\Program Files\Fiddler2;D:\Program Files\eclipse;;.rn五月 01, 2018 11:11:07 上午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-nio-9001"]rn五月 01, 2018 11:11:07 上午 org.apache.<em>tomcat</em>.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn五月 01, 2018 11:11:07 上午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-nio-9009"]rn五月 01, 2018 11:11:07 上午 org.apache.<em>tomcat</em>.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn五月 01, 2018 11:11:07 上午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1952 msrn五月 01, 2018 11:11:07 上午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn五月 01, 2018 11:11:07 上午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/8.0.51rn[b]五月 01, 2018 11:11:09 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandomrn警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [996] milliseconds.rn五月 01, 2018 11:11:51 上午 org.apache.jasper.servlet.TldScanner scanJars[/b][color=#FF0000][/color]rn信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.rn五月 01, 2018 11:11:51 上午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrn五月 01, 2018 11:11:51 上午 org.apache.catalina.core.ApplicationContext logrn信息: Set web app root system property: 'SmartSense' = [D:\Workspaces\MavenWorkspaces\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sense-web\]rn五月 01, 2018 11:11:52 上午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing log4j from [classpath:log4j.properties]rn五月 01, 2018 11:11:52 上午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContext
Tomcat启动部分源代码分析(五) -- 应用程序加载
前面所叙述的<em>tomcat</em><em>启动</em>中并没有webapps下边应用程序载入的内容,今天花了些时间在源代码中找到了一些相关的内容。 1. webapps下的应用程序的载入,要从Digester的HostRuleSet说起了: Java代码 public void addRuleInstances(Digester digester) {        digester.addObj...
eclipse启动tomcat时不能加载项目
项目架构,与eclipse不匹配,eclipse生成的项目中页面部分是WebContent,而项目中是/src/main/webapp路径下。 更改配置: 在workspace下:/工程名/.settings/org.eclipse.wst.common.component,原配置如图: 更改为: 即可
tomcat可以启动,程序加载不了
新手,第一次发帖,接触JAVAWEB一个半月。eclipse用的够呛,基本是自学阶段。rn问题:<em>tomcat</em>可以<em>启动</em>,程序<em>加载</em>不了!rn我的操作:有一个搭好的SSH框架,我填完代码,<em>启动</em><em>tomcat</em>,运行工程,成功。关闭<em>tomcat</em>,关闭这个工程。然后我想实现另外的一个功能,就复制这个工程,在里面改代码,<em>启动</em><em>tomcat</em>,运行工程,出错。rnrn出错代码:rnrn2011-6-3 9:26:03 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'specimenManagerAction': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'specimenManagerService': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'specimenManagerDao': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/config/spring-main.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/config/spring-main.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: persistent class not known: jky.culicidae.specimen.pojo.Studentrnrn
Tomcat启动加载servlet导致的问题。
Servlet代码,这个我需要在<em>启动</em>时就被调用。rn[code=Java]rn public void init(ServletConfig servletConfig) throws ServletException rn super.init(servletConfig);rn rn ServletContext application;rn WebApplicationContext webApp;rn application = getServletContext();rn webApp = WebApplicationContextUtils.getWebApplicationContext(application);//获取spring的contextrn rn System.out.println(webApp);rn rn // PalService palService = (PalService) wabApp.getBean("palService");rnrn rn rn[/code]rnrnrnweb.xml里面的内容。。。rn[code=XML]rnrn ForumStartrn cn.pal.action.servlet.start.ForumStartrn 1rn rnrn rn ForumStartrn /ForumStartrn rn[/code]rnrnrn但是这个时候webApp得到的值总是为空~~~~~~~~~~~~~~~~~~~~~~~nullrn我晕。。。。请各位赐教
eclipse启动tomcat加载项目
原因1:为将项目添加到<em>tomcat</em>下 原因1解决方法:        打开Server(Window>show View>Server)窗口,添加Tomcat,右键Tomcat add项目,<em>启动</em> 原因2:项目架构,与eclipse不匹配,不同的eclipse生成的项目中页面部分有的是WebRoot有的是WebContent。 原因2解决方法: 新建一个web项目看看页面路径的文件夹是否和
linux中tomcat启动重复加载问题
<em>tomcat</em>的配置文件server.xml中,host节点配置多个时,每个节点的appBase如果相同将会重复<em>加载</em>该目录下的项目,&amp;lt;Context docBase=&quot;web-sys&quot; path=&quot;&quot;/&amp;gt;    content节点也会导致重复<em>加载</em>原因:根据server.xml里配置的,Tomcat首先根据Context的配置内容生成第一个StandardContext对象,<em>加载</em>一次项目。...
java面试的一道题目 交通灯管理系统下载
软件开发公司现在都越来越精明和狡猾了,他们把日后工作中要解决的问题、并且是他们自己都很难解决的问题拿出来让面试求职者去搞, 不管面试求职者的水平怎样,他们都说谁能搞定,谁就来上班,这样至少求职者在进公司之前就已经为公司做了贡献。 软件公司这招够狠、够高! 相关下载链接:[url=//download.csdn.net/download/naruto_515_tj/2531195?utm_source=bbsseo]//download.csdn.net/download/naruto_515_tj/2531195?utm_source=bbsseo[/url]
VBA 基础入门下载
非常详细的Excel VBA 基础入门知识,对于初学者来说是最好的选择。 相关下载链接:[url=//download.csdn.net/download/bjdljl/4891840?utm_source=bbsseo]//download.csdn.net/download/bjdljl/4891840?utm_source=bbsseo[/url]
客户管理系统毕业设计下载
这是一个使用SSH框架+MySql数据库完成的简单的客户管理系统毕业设计,里面有源码实现,数据库创建语句,毕业答辩PPT,毕业设计论文等,希望是你所需要的。 相关下载链接:[url=//download.csdn.net/download/sheheit/5454985?utm_source=bbsseo]//download.csdn.net/download/sheheit/5454985?utm_source=bbsseo[/url]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池
我们是很有底线的