This problem cannot be solved in google! Ask God to

First posted questions:
In March 20, 2013 7:24:16 at org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/MySSH01] is completed
In March 20, 2013 7:31:26 at org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/MySSH01]
In March 20, 2013 7:31:26 at org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/MySSH01] has started
In March 20, 2013 7:31:27 at org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
In March 20, 2013 7:31:27 at org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/MySSH01] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@4fe69c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1ad110e]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
In March 20, 2013 7:31:27 at org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/MySSH01] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@13ab004]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
In March 20, 2013 7:31:27 at org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/MySSH01] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1fa0359]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@f1f00d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: is already defined
In March 20, 2013 7:31:32 at org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
In March 20, 2013 7:31:34 at com.sun.faces.config.ConfigureListener contextInitialized
'/MySSH01'Mojarra 2.0.3 INFO: initial context (FCS b03)
In March 20, 2013 7:31:34 at com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy comment. The ManagedBeans method with these comments will note has been processing.
In March 20, 2013 7:31:36 at org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/MySSH01] is completed
The configuration file
web.xml<?xml version="1.0" encoding="UTF-8"?>
<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">
<display-name></display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<listener>
<listener-class> org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>


<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>

applicationContext.xml
<?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:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans






">

<context:annotation-config />
<context:component-scan base-package="cn.huanglei_jmr"/>


<!-- ************************************************************** -->
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url"
value="jdbc:mysql://localhost:3306/jmr01?useUnicode=true&amp;characterEncoding=UTF-8">
</property>
<property name="username" value="root"></property>
<property name="password" value="hljmr"></property>

</bean>
<!-- <bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQL5Dialect
</prop>
</props>
</property>
</bean> -->

<!- class factory by spring management>
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/> <!-- into the data source bean to bean -- the entity management factory>
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml"/>
<!-- <property name="loadTimeWeaver">Run into
<bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver"/>
</property> -->
<property name="persistenceUnitName" value="huanglei_jmr"/>

</bean>

<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>

<!- registered parser on @Transactional:>
<tx:annotation-driven transaction-manager="txManager"/>



<!- action to spring - Management>
<!--forwardAction -->

<bean name="forwardAction" class="cn.huanglei_jmr.web.action.user.ForwardAction">

</bean>
<!-- always displayed in the buyerLogAction without buyerServiceBean injection was not write get/set method>
<bean name="buyerLogAction" class="cn.huanglei_jmr.web.action.user.BuyerLogAction">
<property name="buyerService" ref="buyerServiceBean"/>
</bean>
</beans>
The jar package

Started by Len at November 13, 2016 - 12:05 PM




My
struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>

<!-- <include file="struts_user.xml"/> -->
<!View topic - the default -->
<constant name="struts.ui.theme" value="simple" />
<constant name="struts.devMode" value="false" />
<constant name="struts.objectFactory" value="spring" />

<package name="user" extends="struts-default" namespace="/user">
<action name="buyerLogAction" class="cn.huanglei_jmr.web.action.user.BuyerLogAction" method="login" >
<result name="xxx">/WEB-INF/jsp/login_Success.jsp</result>
<result name="error">/WEB-INF/jsp/login.jsp</result>
</action>
<action name="forwardAction" class="cn.huanglei_jmr.web.action.user.ForwardAction" >
<result name="re">/WEB-INF/jsp/register.jsp</result>
<result name="lo">/WEB-INF/jsp/login.jsp</result>
</action>

</package>

</struts>


persistence,xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" >
<persistence-unit name="huanglei_jmr" transaction-type="RESOURCE_LOCAL">

<provider>org.hibernate.ejb.HibernatePersistence</provider> <!- JPA driver provider -->
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true"/>
</properties>
</persistence-unit>
</persistence>

Posted by Len at November 28, 2016 - 12:34 PM

And you the same question but cannot be resolved~

Posted by Shelby at December 05, 2016 - 1:00 PM