小弟,最近在做个汽车服务连锁店项目:采用技术:spring,struts,hibernate.
我使用的Tomcat6.0 解压版,启动Tomcat的时候现象如下:[framework] 2008-05-22 16:16:30[/color],781 - org.springframework.orm.hibernate3.Hiberna....[framework] 2008-05-22 16:16:30,843 - org.springframework.web.context.ContextLoa
信息: The listener "listeners.ContextListener" is already configured for this co
ntext. The duplicate definition has been ignored.
2008-5-22 16:20:36 org.apache.catalina.core.StandardContext addApplicationListen
er
信息: The listener "listeners.SessionListener" is already configured for this co
ntext. The duplicate definition has been ignored.
2008-5-22 16:20:36 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-5-22 16:20:36 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-5-22 16:20:36 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/15 config=null
2008-5-22 16:20:36 org.apache.catalina.startup.Catalina start
信息: Server startup in 247997 ms
大家比较一下时间.超长,将近四分钟,我检查了原因,是由这个引起的: <servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts/employee-struts-config.xml,
/WEB-INF/struts/login-struts-config.xml,
/WEB-INF/struts/youtian-struts-config.xml
</param-value>
</init-param>
我删掉配置文件,发现执行仅仅需要3s.我不明白这个到底是为什么,请教高人解决.谢谢.
我使用的Tomcat6.0 解压版,启动Tomcat的时候现象如下:[framework] 2008-05-22 16:16:30[/color],781 - org.springframework.orm.hibernate3.Hiberna....[framework] 2008-05-22 16:16:30,843 - org.springframework.web.context.ContextLoa
信息: The listener "listeners.ContextListener" is already configured for this co
ntext. The duplicate definition has been ignored.
2008-5-22 16:20:36 org.apache.catalina.core.StandardContext addApplicationListen
er
信息: The listener "listeners.SessionListener" is already configured for this co
ntext. The duplicate definition has been ignored.
2008-5-22 16:20:36 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-5-22 16:20:36 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-5-22 16:20:36 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/15 config=null
2008-5-22 16:20:36 org.apache.catalina.startup.Catalina start
信息: Server startup in 247997 ms
大家比较一下时间.超长,将近四分钟,我检查了原因,是由这个引起的: <servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts/employee-struts-config.xml,
/WEB-INF/struts/login-struts-config.xml,
/WEB-INF/struts/youtian-struts-config.xml
</param-value>
</init-param>
我删掉配置文件,发现执行仅仅需要3s.我不明白这个到底是为什么,请教高人解决.谢谢.
你不用写在web.xml里面,你可以在web.xml里加载一个struts-config.xml
然后把不同模块的加到struts-config.xml里!
这样加: <include file=""/>
而且你的主文件struts-config.xml怎么没了