SSH+proxool,启动tomcat6.0后控制台信息如下:2012-5-22 8:20:00 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\MyEclipse 6.0\bin;E:\Tomcat 6.0\bin
2012-5-22 8:20:01 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-5-22 8:20:01 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1230 ms
2012-5-22 8:20:01 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-5-22 8:20:01 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.10
2012-5-22 8:20:02 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2012-5-22 8:20:02 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
2012-5-22 8:20:02 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Tue May 22 08:20:02 CST 2012]; root of context hierarchy
2012-5-22 8:20:03 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
2012-5-22 8:20:04 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@bf053f: defining beans [dataSource,sessionFactory,userDao,userBiz,LoginAction]; root of factory hierarchy
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2012-5-22 8:20:07 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
信息: Building new Hibernate SessionFactory
之后一直就没有任何动静,也没有死机,不知是什么情况???
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\MyEclipse 6.0\bin;E:\Tomcat 6.0\bin
2012-5-22 8:20:01 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-5-22 8:20:01 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1230 ms
2012-5-22 8:20:01 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-5-22 8:20:01 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.10
2012-5-22 8:20:02 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2012-5-22 8:20:02 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
2012-5-22 8:20:02 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Tue May 22 08:20:02 CST 2012]; root of context hierarchy
2012-5-22 8:20:03 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
2012-5-22 8:20:04 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@bf053f: defining beans [dataSource,sessionFactory,userDao,userBiz,LoginAction]; root of factory hierarchy
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2012-5-22 8:20:07 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
信息: Building new Hibernate SessionFactory
之后一直就没有任何动静,也没有死机,不知是什么情况???
解决方案 »
- 关于Struts2配置两个Action直接跳转问题
- Eclipse + Tomcat 搭建Java Web开发环境问题
- 成都做JAVA开发的,看过来啊
- jsp页面中的table及其内容动态导入到word中,并且在点击导入按钮时,提示保存word的位置和名称
- 连接数据库的问题谢谢指点
- JSP自定义标签问题,急!!!!!!
- 没有读取到数据的网点清单 急!急!!!
- 求教!如何统计mysql中某字段中内容相同的数量
- 高分请教JTable
- 你们遇到这种情况了吗?!java.sql.ResultSet
- JavaSSH+mysql 不能实现抽象类
- 利用struts2标签如何动态判断某个字符串包含另外一个字符
applicationContext.xml:
<?xml version="1.0" encoding="gbk"?><beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="dataSource" class="org.logicalcobwebs.proxool.ProxoolDataSource">
<property name="alias" value="proxoolPool"></property>
<property name="delegateProperties">
<value>user="sa",password=""</value>
</property>
<property name="user" value="sa"/>
<property name="password" value=""/>
<property name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="driverUrl" value="jdbc:sqlserver://localhost:8080;databaseName=BBS"/>
<!-- 最少保持的空闲连接数 (默认5个)-->
<property name="prototypeCount" value="2" />
<!-- 设置连接池内生成的最小连接数/在连接池中所有数据库连接的最小数目 -->
<property name="minimumConnectionCount" value="1" />
<!-- 设置连接池内生成的最大连接数/在连接池中所有数据库连接的最大数目(默认15个) -->
<property name="maximumConnectionCount" value="100" />
<!-- 在Consonle中显示sql -->
<property name="trace" value="false" />
<property name="verbose" value="false" />
</bean>
<!-- 定义hibernate的sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<!-- 列出所有po的映射文件 -->
<list>
<value>com/mys2sh/entity/User.hbm.xml</value>
<value>com/mys2sh/entity/Business.hbm.xml</value>
</list>
</property>
<!-- 设置Hibernate属性 -->
<property name="hibernateProperties">
<value>
<!-- 在hibernate.jar包中找 -->
hibernate.dialect=org.hibernate.dialect.SQLServer2005Dialect
hibernate.hbm2ddl.auto=update
#开启二级缓存
hibernate.cache.use_second_level_cache=true
#二级缓存的提供者(实现类)
hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
</value>
</property>
</bean>
<!-- 配置dao -->
<bean id="userDao" class="com.mys2sh.dao.impl.UserDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<!-- 配置biz -->
<bean id="userBiz" class="com.mys2sh.biz.impl.UserBiz">
<property name="userDao" ref="userDao"></property>
</bean>
<!-- 配置Action -->
<bean id="LoginAction" class="com.mys2sh.action.LoginAction"
scope="prototype">
<property name="biz" ref="userBiz"/>
</bean>
</beans>
ehcache.xml:
<?xml version="1.0" encoding="GBK"?>
<ehcache>
<diskStoe path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="120"
timeToliveSeconds="120"
diskPersistent="false"/>
</ehcache>web.xml:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
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_2_5.xsd">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
上面有详细记录
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.是不是包有问题啊?