spring加载很久No Spring WebApplicationInitializer types detected on classpath

topbasemaster 2014-04-29 11:26:58


2014-04-29 11:24:03.400:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2014-04-29 11:25:12.857:INFO:/:No Spring WebApplicationInitializer types detected on classpath
2014-04-29 11:25:14.582:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guida


请问这个是什么原因引起?
...全文
49814 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
咸zzz鱼 2016-11-21
  • 打赏
  • 举报
回复
信息: No Spring WebApplicationInitializer types detected on classpath 十一月 21, 2016 11:56:00 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 十一月 21, 2016 11:56:00 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 十一月 21, 2016 11:56:00 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 10566 ms <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"> type Status report message /ssh01/loging.do description The requested resource is not available 这错误是没法加载action类,我用的是struts1
来到我身边 2016-08-11
  • 打赏
  • 举报
回复
引用 9 楼 RoxLiu 的回复:
[quote=引用 8 楼 u011761806 的回复:] 你好,请问你的这个问题解决了吗?我遇到了同样的问题No Spring WebApplicationInitializer types detected on classpath。如果解决了,求拉一把
你用的Spring版本是多少?从3.1.0开始在加载前就会先扫描,查找WebApplicationInitializer实现类。可以通过配置关闭这个功能: <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true">[/quote] 还是报同样的错误
厉害哥哥吖 2016-07-15
  • 打赏
  • 举报
回复
在web.xml中配置即可!
qq_28656163 2016-03-27
  • 打赏
  • 举报
回复
大师们,我是spring4.o为什么也不行
煤石油 2015-12-29
  • 打赏
  • 举报
回复
本人是因为在web.xml中的配置文件为空,所以会出现上述问题。在配合文件web.xml中,会配置spring自动加载的路径。
shanjunmei 2015-11-13
  • 打赏
  • 举报
回复
这玩意没什么影响,只是没加载到自定义的WebApplicationInitializer 而已
topbasemaster 2015-04-26
  • 打赏
  • 举报
回复
更换CPU 和主板 升级到 I5 快了许多,唉
1024之旅 2015-04-21
  • 打赏
  • 举报
回复
你好 我好想也遇到了同样的问题,急用求教!!!! 2015-4-21 9:35:23 org.apache.tomcat.websocket.server.WsSci onStartup 信息: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 2015-4-21 9:35:26 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 2015-4-21 9:35:26 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.mhy.action.IndexAction javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFactory.java:117) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) at org.apache.naming.NamingContext.lookup(NamingContext.java:843) at org.apache.naming.NamingContext.lookup(NamingContext.java:154) at org.apache.naming.NamingContext.lookup(NamingContext.java:831) at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
flzdc 2015-01-27
  • 打赏
  • 举报
回复
和楼主同样的问题,Spring 2.5,但是无论怎么在借鉴网上的办法,终究还是“No Spring WebApplicationInitializer types detected on classpath”
roxliu 2014-08-26
  • 打赏
  • 举报
回复
引用 8 楼 u011761806 的回复:
你好,请问你的这个问题解决了吗?我遇到了同样的问题No Spring WebApplicationInitializer types detected on classpath。如果解决了,求拉一把
你用的Spring版本是多少?从3.1.0开始在加载前就会先扫描,查找WebApplicationInitializer实现类。可以通过配置关闭这个功能: <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true">
尘土飞一号 2014-08-17
  • 打赏
  • 举报
回复
你好,请问你的这个问题解决了吗?我遇到了同样的问题No Spring WebApplicationInitializer types detected on classpath。如果解决了,求拉一把
topbasemaster 2014-04-30
  • 打赏
  • 举报
回复

2014-04-30 11:43:29.756:INFO:oejs.Server:jetty-8.1.0.v20120127
2014-04-30 11:43:32.440:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2014-04-30 11:44:38.323:INFO:/:No Spring WebApplicationInitializer types detected on classpath
2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/
2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/
2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/
[INFO] Started Jetty Server
2014-04-30 11:44:39.745:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:80

我将 web.xml 所有配置的东西 屏蔽了, 但还是 要启动很久。。。。。 /:No Spring WebApplicationInitializer types detected on classpath 和 oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one. 这里 停留了 很久。。。。
topbasemaster 2014-04-29
  • 打赏
  • 举报
回复
但 我工程可以启动噢 Spring WebApplicationInitializer 这个东西是做什么的》?
tony4geek 2014-04-29
  • 打赏
  • 举报
回复
恩, 是的。是的。
topbasemaster 2014-04-29
  • 打赏
  • 举报
回复
引用 3 楼 rui888 的回复:
spring 文档没有加载到。
是 spring 的配置文件么?
tony4geek 2014-04-29
  • 打赏
  • 举报
回复
spring 文档没有加载到。
topbasemaster 2014-04-29
  • 打赏
  • 举报
回复

    <bean id="transactionManager"
		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource" ref="dataSource" />
	</bean>

	<!-- 使用annotation定义事务 -->

	<tx:annotation-driven transaction-manager="transactionManager" />
有这个东西在咯
tony4geek 2014-04-29
  • 打赏
  • 举报
回复
No Transaction manager found 你没有配置 Transaction 吗?

67,535

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧