java - only one error: No Spring WebApplicationInitializer types detected on classpath -


may 21, 2013 3:44:07 pm org.apache.catalina.core.aprlifecyclelistener init info: loaded apr based apache tomcat native library 1.1.27 using apr version 1.4.6. may 21, 2013 3:44:07 pm org.apache.catalina.core.aprlifecyclelistener init info: apr capabilities: ipv6 [true], sendfile [true], accept filters [false], random [true]. may 21, 2013 3:44:08 pm org.apache.catalina.core.aprlifecyclelistener initializessl info: openssl initialized (openssl 1.0.1d 5 feb 2013) may 21, 2013 3:44:08 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["http-apr-8080"] may 21, 2013 3:44:08 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["ajp-apr-8009"] may 21, 2013 3:44:08 pm org.apache.catalina.startup.catalina load info: initialization processed in 1591 ms may 21, 2013 3:44:08 pm org.apache.catalina.core.standardservice startinternal info: starting service catalina may 21, 2013 3:44:08 pm org.apache.catalina.core.standardengine startinternal info: starting servlet engine: apache tomcat/7.0.39 may 21, 2013 3:44:08 pm org.apache.catalina.startup.hostconfig deploydirectory info: deploying web application directory d:\tomcat\webapps\docs may 21, 2013 3:44:08 pm org.apache.catalina.startup.hostconfig deploydirectory info: deploying web application directory d:\tomcat\webapps\examples may 21, 2013 3:44:08 pm org.apache.catalina.core.applicationcontext log info: contextlistener: contextinitialized() may 21, 2013 3:44:08 pm org.apache.catalina.core.applicationcontext log info: sessionlistener: contextinitialized() may 21, 2013 3:44:08 pm org.apache.catalina.core.applicationcontext log info: contextlistener: attributeadded('org.apache.jasper.compiler.tldlocationscache', 'org.apache.jasper.compiler.tldlocationscache@1ce3a26') may 21, 2013 3:44:08 pm org.apache.catalina.startup.hostconfig deploydirectory info: deploying web application directory d:\tomcat\webapps\host-manager may 21, 2013 3:44:08 pm org.apache.catalina.startup.hostconfig deploydirectory info: deploying web application directory d:\tomcat\webapps\lmsportal-admin may 21, 2013 3:44:14 pm org.apache.catalina.core.applicationcontext log info: **no spring webapplicationinitializer types detected on classpath** may 21, 2013 3:44:14 pm org.apache.catalina.startup.hostconfig deploydirectory info: deploying web application directory d:\tomcat\webapps\manager may 21, 2013 3:44:14 pm org.apache.catalina.startup.hostconfig deploydirectory info: deploying web application directory d:\tomcat\webapps\root may 21, 2013 3:44:14 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-apr-8080"] may 21, 2013 3:44:14 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["ajp-apr-8009"] may 21, 2013 3:44:14 pm org.apache.catalina.startup.catalina start info: server startup in 6429 ms 

when browsed localhost jsp files on chrome, showed "directory listing for/",sometimes did show file tree. got error when ran tomcat server on myeclipse, information how error happened appreciated.

here web.xml

http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

<welcome-file-list>     <welcome-file>/web-inf/page/index.jsp</welcome-file> </welcome-file-list>  <error-page>     <error-code>404</error-code>     <location>/web-inf/page/error/404.jsp</location> </error-page> <error-page>     <error-code>500</error-code>     <location>/web-inf/page/error/404.jsp</location> </error-page>  <!-- <context-param> <param-name>contextconfiglocation</param-name> <param-value>classpath:applicationcontext-security.xml</param-value>      </context-param> -->  <servlet>     <servlet-name>lmsadmin</servlet-name>     <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class>     <init-param>         <param-name>contextconfiglocation</param-name>         <param-value>classpath:lms-admin.xml </param-value>     </init-param>     <load-on-startup>1</load-on-startup> </servlet>  <servlet>     <servlet-name>loadrun</servlet-name>     <servlet-class>com.telecom.lms.portal.admin.service.loadrunservlet</servlet-class>     <load-on-startup>3</load-on-startup> </servlet>  <servlet>     <servlet-name>ctu-resource-agent</servlet-name>     <servlet-class>com.myctu.platform.resource.agent.cturesourceagentservlet</servlet-class>     <!-- &#19979;载地址 -->     <init-param>         <param-name>resource_proxy</param-name>         <param-value>http://180.168.60.15:15320/resource-proxy</param-value>     </init-param>     <!-- &#21830;户标识 -->     <init-param>         <param-name>domain</param-name>         <param-value>telecom</param-value>     </init-param>     <!-- &#31614;名过期时间,单位毫秒 -->     <init-param>         <param-name>expire</param-name>         <param-value>86400000</param-value>     </init-param> </servlet>  <servlet-mapping>     <servlet-name>ctu-resource-agent</servlet-name>     <url-pattern>/ctu-resource-agent</url-pattern> </servlet-mapping>  <servlet-mapping>     <servlet-name>lmsadmin</servlet-name>     <url-pattern>*.html</url-pattern> </servlet-mapping>  <filter>     <filter-name>encoding</filter-name>     <filter-class>org.springframework.web.filter.characterencodingfilter</filter-class>     <init-param>         <param-name>encoding</param-name>         <param-value>utf-8</param-value>     </init-param> </filter>  <filter-mapping>     <filter-name>encoding</filter-name>     <url-pattern>*.html</url-pattern> </filter-mapping>  <!-- 单点登录 start --> <filter>     <filter-name>cas filter</filter-name>     <filter-class>edu.yale.its.tp.cas.client.filter.casfilter1</filter-class>     <init-param>         <param-name>edu.yale.its.tp.cas.client.filter.loginurl</param-name>         <param-value>https://cas.demo.myctu.cn/cas/login</param-value>     </init-param>     <init-param>         <param-name>edu.yale.its.tp.cas.client.filter.validateurl</param-name>         <param-value>https://cas.demo.myctu.cn/cas/servicevalidate</param-value>     </init-param>     <init-param>         <param-name>edu.yale.its.tp.cas.client.filter.servername</param-name>         <param-value>localhost:8080</param-value>     </init-param>     <init-param>         <param-name>excludes</param-name>         <param-value>*.jpg,*.png,*.js,*.css</param-value>     </init-param> </filter>  <filter-mapping>     <filter-name>cas filter</filter-name>     <url-pattern>*.html</url-pattern> </filter-mapping>  <servlet>     <servlet-name>logoutservlet</servlet-name>     <servlet-class>com.telecom.ctu.platform.cas.logoutservlet</servlet-class>     <init-param>         <param-name>edu.yale.its.tp.cas.client.servlet.logout</param-name>         <param-value> https://cas.demo.myctu.cn/cas/logout </param-value>     </init-param>     <init-param>         <param-name>service</param-name>         <param-value>http://localhost:8089/lmscore-service</param-value>     </init-param> </servlet>  <servlet-mapping>     <servlet-name>logoutservlet</servlet-name>     <url-pattern>/logout</url-pattern> </servlet-mapping>    <!-- 单点登录 end -->  <!-- wabacus start --> <filter>     <filter-name>encoding</filter-name>     <filter-class>com.wabacusdemo.util.setcharacterencodingfilter</filter-class> </filter> <filter-mapping>     <filter-name>encoding</filter-name>     <url-pattern>*.jsp</url-pattern> </filter-mapping> <filter-mapping>     <filter-name>encoding</filter-name>     <url-pattern>*.wx</url-pattern> </filter-mapping>  <listener>     <listener-class>com.wabacus.wabacusservlet</listener-class> </listener>  <servlet>     <servlet-name>reportservlet</servlet-name>     <servlet-class>com.wabacus.wabacusservlet</servlet-class>     <init-param>         <param-name>configpath</param-name>         <param-value>classpath{/reportconfig}</param-value>     </init-param>     <load-on-startup>20</load-on-startup> </servlet>  <servlet-mapping>     <servlet-name>reportservlet</servlet-name>     <url-pattern>/showreport.wx</url-pattern> </servlet-mapping> <jsp-config>     <taglib>         <taglib-uri>wabacus</taglib-uri>         <taglib-location>/web-inf/wabacus.tld</taglib-location>     </taglib> </jsp-config>  <mime-mapping>       <extension>xls</extension>       <mime-type>application/vnd.ms-excel</mime-type>   </mime-mapping>  <mime-mapping>       <extension>xlsx</extension>       <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>   </mime-mapping> <!-- wabacus end -->  <filter>     <!-- 此名字需要在应用内保证唯一,名字作为产出的监控报表的唯一标识,每一个监控表唯一对应一个名字 -->     <!-- 请将此fileter至于其他filter的最前面,保证监控数据的有效性 -->     <filter-name>webappstatistics</filter-name>     <filter-class>com.telecom.ctu.platform.common.monitor.webappstatistics</filter-class>     <init-param>         <param-name>name</param-name>         <param-value>controller.statistics</param-value>     </init-param> </filter>  <filter-mapping>     <filter-name>webappstatistics</filter-name>     <url-pattern>*.html</url-pattern> </filter-mapping> 

i added webroot file directory default directory, problems solved.

properties->myeclipse->deployment assembly->add


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -