Tomcat启动的时候报错内容如下所示?

我爱编程zc 发布于 2016/08/04 11:53
阅读 403
收藏 1
八月 04, 2016 11:37:12 上午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.7.0_80\bin;D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\bin
八月 04, 2016 11:37:12 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 04, 2016 11:37:12 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 04, 2016 11:37:12 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1251 ms
八月 04, 2016 11:37:12 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 04, 2016 11:37:12 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.23
八月 04, 2016 11:37:12 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\blue
八月 04, 2016 11:37:13 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://fckeditor.net/tags-fckeditor is already defined
八月 04, 2016 11:37:14 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
八月 04, 2016 11:37:15 上午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [368] milliseconds.
[dukai168.cn] 2016-08-04 11:37:17 ERROR com.opensymphony.xwork2.util.logging.commons.CommonsLogger.error(38) Dispatcher initialization failed
Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4624)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: Parent package is not defined: struts-mydefault - [unknown location]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:670)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:519)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:258)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 20 more
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4624)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
... 18 more
Caused by: Parent package is not defined: struts-mydefault - [unknown location]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:670)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:519)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:258)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 20 more
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/blue] startup failed due to previous errors
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
八月 04, 2016 11:37:17 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\docs
八月 04, 2016 11:37:17 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\examples
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 04, 2016 11:37:17 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@50c0df63')
八月 04, 2016 11:37:17 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\host-manager
八月 04, 2016 11:37:17 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\manager
八月 04, 2016 11:37:17 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\myweb
八月 04, 2016 11:37:18 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\ROOT
八月 04, 2016 11:37:18 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\ROOT下面的错误jar包
八月 04, 2016 11:37:18 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\SSH
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://www.springframework.org/tags/form is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://www.springframework.org/tags is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
八月 04, 2016 11:37:24 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).


log4j:WARN Please initialize the log4j system properly.
八月 04, 2016 11:37:32 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 04, 2016 11:37:32 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 04, 2016 11:37:32 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 19285 ms

struts-blue.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd">


<struts>
<package name="public" extends="struts-mydefault">
<action name="goindex" class="com.action.GoAction">
<param name="uid">1</param>
<result>/WEB-INF/jsp/main.jsp</result>
</action>
<action name="go*">
<result>/WEB-INF/jsp/{1}.jsp</result>
</action>
</package>

<package name="login_pack" extends="struts-mydefault">
<action name="logout" class="com.action.UserAction" method="logout">
<result type="redirectAction">goindex</result>
</action>
</package>
<package name="login_ajax_pack" extends="json-default">
<action name="login" class="com.action.UserAction" method="login">
<result type="json"/>
</action>
</package>

<package name="search" extends="struts-mydefault">
<action name="search" class="com.action.SearchAction">
<result>/WEB-INF/jsp/searchResult.jsp</result>
</action>
</package>

<package name="article_pack" extends="struts-mydefault">
<action name="go_new_article" class="com.action.GoAction" method="articleType">
<result>/fckeditor/new_article.jsp</result>
</action>
<action name="ArticleEdit" class="com.action.AdetailAction" method="aedit">
<result>/fckeditor/new_article.jsp</result>
</action>

<action name="*Article" class="com.action.ArticleAction" method="{1}Article">
<result>/fckeditor/new_article.jsp</result>
<result name="input">/fckeditor/new_article.jsp</result>
<result name="invalid.token">/fckeditor/new_article.jsp</result>
<interceptor-ref name="token"/>
<interceptor-ref name="defaultStack"/>
</action>
</package>
<package name="article_pack_ajax" extends="json-default">
<action name="addNewArticleType" class="com.action.ArticleAction" method="addNewArticleType">
<result type="json"/>
</action>
<action name="showArticleList" class="com.action.ArticleAction" method="showArticleList">
<param name="pageSize">10</param>
<param name="top">10</param>
<result>/WEB-INF/jsp/articleList.jsp</result>
</action>
<action name="ArticleDetail" class="com.action.AdetailAction" method="adetail">
<result>/WEB-INF/jsp/adetail.jsp</result>
</action>


<action name="delArticle" class="com.action.AdetailAction" method="adel">
<result type="json"/>
</action>
<action name="delComment" class="com.action.AdetailAction" method="cdel">
<result type="json"/>
</action>
<action name="ArticleComment" class="com.action.AdetailAction" method="acomment">
<result type="json"/>
</action>
<action name="CommentReply" class="com.action.AdetailAction" method="areply">
<result type="json"/>
</action>
<action name="renameArticleType" class="com.action.ArticleAction" method="renameArticleType">
<result type="json"/>
</action>
<action name="delArticleType" class="com.action.ArticleAction" method="delArticleType">
<result type="json"/>
</action>
</package>


<package name="album_pack" extends="struts-mydefault">
<action name="albumList" class="com.action.GoAction" method="eachImgType">
<result>/WEB-INF/jsp/albumList.jsp</result>
</action>
<action name="imgUpload" class="com.action.GoAction" method="imgUpload">
<result>/WEB-INF/jsp/imgUpload.jsp</result>
</action>
<action name="imgListShow" class="com.action.AlbumAction" method="imgListShow">
<param name="pageSize">10</param>
<param name="top">5</param>
<result>/WEB-INF/jsp/imgListShow.jsp</result>
</action>
<action name="imgShow" class="com.action.AlbumAction" method="imgShow">
<result>/WEB-INF/jsp/imgShow.jsp</result>
</action>
<action name="uploadImg" class="com.action.UploadImgAction">
<param name="compressType">1</param>
<param name="savePath">uploadimg</param>
<param name="new_width1">135</param>
<param name="new_height1">90</param>
<param name="new_width2">90</param>
<param name="new_height2">135</param>

<interceptor-ref name="fileUpload">
<param name="allowedTypes">image/bmp,image/png,image/x-png,image/gif,image/jpeg,image/pjpeg</param>
<param name="maximumSize">204800</param>
</interceptor-ref>
<interceptor-ref name="token"/>
<interceptor-ref name="defaultStack"/>


<result>/WEB-INF/jsp/imgUpload.jsp</result>
<result name="input">/WEB-INF/jsp/imgUpload.jsp</result>
<result name="invalid.token">/WEB-INF/jsp/imgUpload.jsp</result>
</action>

</package>
<package name="album_pack_ajax" extends="json-default">
<action name="alb*" class="com.action.AlbumAjaxAction" method="{1}">
<result type="json"/>
</action>
<action name="imgShowAjax" class="com.action.AlbumAjaxAction" method="showImgAjax">
<result type="json"/>
</action>
</package>

<package name="profile_pack" extends="struts-mydefault">
<action name="profile" class="com.action.ProfileAction" method="showProfile">
<param name="uid">1</param>
<param name="type">1</param>
<param name="article_top">5</param>
<param name="msg_top">3</param>
<param name="img_top">6</param>
<result>/WEB-INF/jsp/profile.jsp</result>
</action>
<action name="uploadImg2" class="com.action.UploadImgAction">
<param name="compressType">2</param>
<param name="savePath">uploadpicshow</param>
<param name="new_width1">270</param>
<param name="new_height1">178</param>
<param name="new_width2">270</param>
<param name="new_height2">178</param>

<interceptor-ref name="fileUpload">
<param name="allowedTypes">image/bmp,image/png,image/x-png,image/gif,image/jpeg,image/pjpeg</param>
<param name="maximumSize">204800</param>
</interceptor-ref>
<interceptor-ref name="token"/>
<interceptor-ref name="defaultStack"/>


<result>/WEB-INF/jsp/imgUpload.jsp</result>
<result name="input">/WEB-INF/jsp/imgUpload.jsp</result>
<result name="invalid.token">/WEB-INF/jsp/imgUpload.jsp</result>
</action>
<action name="leavemsgShow" class="com.action.LeavemsgAction" method="showmsg">
<param name="pageSize">15</param>
<result>/WEB-INF/jsp/leavemsgShow.jsp</result>
</action>
<action name="userinfoOp" class="com.action.ProfileAction" method="userinfoOp">
<param name="uid">1</param>
<result>/WEB-INF/jsp/userinfoOp.jsp</result>
</action>
</package>
<package name="profile_pack_ajax" extends="json-default">
<action name="msg*" class="com.action.LeavemsgAction" method="{1}msg">
<result type="json"/>
</action>
<action name="*UserInfo" class="com.action.UserInfoAction" method="{1}UserInfo">
<result type="json"/>
</action>
</package>

</struts>
struts-default.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd">


<struts>
 <constant name="struts.devMode" value="true" />
<package name="struts-mydefault" extends="struts-default">

<global-results>
            <result name="error">/WEB-INF/error/error.jsp</result>
        </global-results>


        <global-exception-mappings>
            <exception-mapping
                    result="error"
                    exception="java.lang.Throwable"/>
        </global-exception-mappings>
</package>
</struts>
struts.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd">


<struts>
<include file="struts-mydefault.xml"/>
<include file="struts-blue.xml"/>
</struts>

加载中
0
我爱编程zc
我爱编程zc
各位大神,求助了
0
丶KKdo
丶KKdo

Parent package is not defined: struts-mydefault - [unknown location]

配置文件位置错了?

我爱编程zc
我爱编程zc
struts的配置文件,我已经添加了在上面~~不知道是什么原因?
0
峰清扬
<struts>
<include file="struts-mydefault.xml"/>
<include file="struts-blue.xml"/>

</struts>


这个换一下顺序吧

<struts>

<include file="struts-blue.xml"/>
<include file="struts-mydefault.xml"/>

</struts>


我爱编程zc
我爱编程zc
我试试看看哈
0
pantrick
pantrick

Caused by: Parent package is not defined: struts-mydefault 


返回顶部
顶部