OMG快到碗里来
2017-09-05 13:38
2017-09-05 13:25:54,376 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-09-05 13:25:54,381 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor' 2017-09-05 13:25:54,388 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Found following implementations of FileManager interface: [system, jboss] 2017-09-05 13:25:54,388 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - No user defined FileManager, looking up for internal implementations! 2017-09-05 13:25:54,389 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-09-05 13:25:54,389 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Loaded [BUILDER] PackageConfig: [convention-default] for namespace [] with parents [[PackageConfig: [struts-default] for namespace [] with parents [[]]]] 2017-09-05 13:25:54,389 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Loaded [BUILDER] PackageConfig: [spring-default] for namespace [] with parents [[]] 2017-09-05 13:25:54,389 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Found following implementations of FileManager interface: [system, jboss] 2017-09-05 13:25:54,389 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - No user defined FileManager, looking up for internal implementations! 2017-09-05 13:25:54,390 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-09-05 13:25:54,390 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Loaded [BUILDER] PackageConfig: [default] for namespace [/] with parents [[PackageConfig: [struts-default] for namespace [] with parents [[]]]] 2017-09-05 13:25:54,395 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Loaded //product_* in 'default' package:{ActionConfig product_* (productAction.{1}()) - action - file:/D:/workspaces/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SSH/WEB-INF/classes/struts.xml:13:69} 2017-09-05 13:25:54,406 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Found following implementations of FileManager interface: [system, jboss] 2017-09-05 13:25:54,406 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - No user defined FileManager, looking up for internal implementations! 2017-09-05 13:25:54,407 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-09-05 13:25:54,426 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Found following implementations of FileManager interface: [system, jboss] 2017-09-05 13:25:54,426 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - No user defined FileManager, looking up for internal implementations! 2017-09-05 13:25:54,427 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory] - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-09-05 13:25:54,472 [localhost-startStop-1] DEBUG [com.opensymphony.xwork2.config.impl.AbstractMatcher] - Compiling pattern 'product_*' 2017-09-05 13:25:54,538 [localhost-startStop-1] DEBUG [freemarker.cache] - Couldn't find template in cache for "org/apache/struts2/dispatcher/error.ftl"("zh_CN", UTF-8, parsed); will try to load it. 2017-09-05 13:25:54,540 [localhost-startStop-1] DEBUG [freemarker.cache] - TemplateLoader.findTemplateSource("org/apache/struts2/dispatcher/error.ftl"): Found 2017-09-05 13:25:54,541 [localhost-startStop-1] DEBUG [freemarker.cache] - Loading template for "org/apache/struts2/dispatcher/error.ftl"("zh_CN", UTF-8, parsed) from "jar:file:/D:/workspaces/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SSH/WEB-INF/lib/struts2-core-2.3.32.jar!/org/apache/struts2/dispatcher/error.ftl" 九月 05, 2017 1:25:54 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 九月 05, 2017 1:25:54 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 九月 05, 2017 1:25:54 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 13731 ms 2017-09-05 13:26:02,910 [C3P0PooledConnectionPoolManager[identityToken->1hge1d99qmc40pm1puzhu5|3ae421c0]-AdminTaskTimer] DEBUG [com.mchange.v2.async.ThreadPoolAsynchronousRunner] - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2ccbb00 -- Running DeadlockDetector[Exiting. No pending tasks.]
大家看看是神马情况?我完全是按着视频敲的,但是建表不成功!
我也出现这样的问题了有几个错误点可以供你参考:
2个web项目指向同一个数据库,一个web项目出错会在另外一个项目启动时报错,影响另外一个项目
spring.xml 名字是否正确(我的就是名字前面有个空格一直没找到)
jdbc.properties 是否正确
对了,你试试index.jsp有错误吗?如果报404 那就是你hibernate和数据库方面有错误
*.hbm.xml 中值的名字是否正确。
这就是我遇到的错误,哈哈哈哈可能是我太菜了出现这样的错误。但我知道找错误贼j8难受。希望对你有帮助
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!-- 引入外部属性文件 --> <context:property-placeholder location="classpath:jdbc.properties"/> <!-- 连接池配置 --> <!-- com.alibaba.druid.pool.DruidDataSource --> <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource"> <property name="driverClass" value="${jdbc.driverClass}"></property> <property name="jdbcUrl" value="${jdbc.url}"></property> <property name="user" value="${jdbc.username}"></property> <property name="password" value="${jdbc.password}"></property> </bean> <!-- 配置hibernate的相关属性 --> <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <!-- 注入连接池 --> <property name="dataSource" ref="dataSource"></property> <!-- 配置hibernate的属性 --> <property name="hibernateProperties"> <!-- hibernate方言 --> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> <prop key="hibernate.hbm2ddl.auto">update</prop> </props> </property> <!-- 加载hibernate中的映射文件 --> <property name="mappingResources"> <list> <value>com/mine/ssh/domain/Department.hbm.xml</value> <value>com/mine/ssh/domain/Employee.hbm.xml</value> </list> </property> </bean> <!-- 配置Action的类 --> <!-- 配置业务层的类 --> <!-- 配置dao类 --> <!-- 配置事务管理器 --> <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"></property> </bean> <!-- 开启注解事务 --> <tx:annotation-driven transaction-manager="transactionManager"/> </beans>
看看你的applicationContext.xml
基于SSH实现员工管理系统之案例实现篇
50212 学习 · 323 问题
相似问题