Spring3+struts2+hibernate3 integration problems arise, No mapping found for dependency [type=java.lang.string, Name= ' Struts.objectFactory.spring.enableAopSupport ']

Source: Internet
Author: User
Tags session id apache tomcat

July 11, 2016 3:49:24 pm Org.apache.tomcat.util.digester.SetPropertiesRule begin
Warning: [Setpropertiesrule]{server/service/engine/host/context} Setting Property ' source ' to ' org.eclipse.jst.jee.server : EBook ' did not ' find a matching property.
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Server Version:apache tomcat/7.0.64
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: Server Built:aug 17:18:06 UTC
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Server number:7.0.64.0
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: OS name:windows 7
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: OS version:6.1
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: architecture:x86
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Java home:d:\java\jdk1.8.0_45
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: JVM version:1.8.0_45-b15
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: JVM vendor:oracle Corporation
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: catalina_base:d:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: catalina_home:d:\apache-tomcat-7.0.64
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Command line argument:-dcatalina.base=d:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Command line argument:-dcatalina.home=d:\apache-tomcat-7.0.64
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Command line argument:-dwtp.deploy=d:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\ Wtpwebapps
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Command line argument:-djava.endorsed.dirs=d:\apache-tomcat-7.0.64\endorsed
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Command line argument:-DFILE.ENCODING=GBK
July 11, 2016 3:49:24 pm Org.apache.catalina.core.AprLifecycleListener lifecycleevent
Info: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found O n the Java.library.path:d:\java\jdk1.8.0_45\bin; C:\Windows\Sun\Java\bin; C:\Windows\system32; C:\windows;d:/java/jdk1.8.0_45/bin/client;d:/java/jdk1.8.0_45/bin;d:/java/jdk1.8.0_45/lib/i386;d:\oracle11g\ Product\11.2.0\dbhome_1\bin; C:\ProgramData\Oracle\Java\javapath; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\;D: \java\jdk1.8.0_45\bin; C:\Program Files\Microsoft SQL Server\100\tools\binn\; C:\Program Files\Microsoft SQL Server\100\dts\binn\; C:\Program Files\Microsoft Visual Studio\common\tools\winnt; C:\Program Files\Microsoft Visual Studio\common\msdev98\bin; C:\Program Files\Microsoft Visual Studio\Common\Tools; C:\Program Files\Microsoft Visual Studio\vc98\bin;d:\drivergenius;d:\drivergenius\ksoft;d:\eclipse;;.
July 11, 2016 3:49:24 pm Org.apache.coyote.AbstractProtocol Init
Info: Initializing protocolhandler ["http-bio-8080"]
July 11, 2016 3:49:24 pm Org.apache.coyote.AbstractProtocol Init
Info: Initializing protocolhandler ["ajp-bio-8009"]
July 11, 2016 3:49:24 pm Org.apache.catalina.startup.Catalina load
Info: Initialization processed in 1193 MS
July 11, 2016 3:49:24 pm Org.apache.catalina.core.StandardService startinternal
Information: Starting service Catalina
July 11, 2016 3:49:24 pm Org.apache.catalina.core.StandardEngine startinternal
Info: Starting Servlet engine:apache tomcat/7.0.64
July 11, 2016 3:49:31 pm Org.apache.catalina.util.SessionIdGeneratorBase createsecurerandom
Information: Creation of SecureRandom instance for session ID generation using [Sha1prng] took [6,059] milliseconds.
July 11, 2016 3:49:34 pm Org.apache.catalina.startup.TldConfig Execute
Info: At least one JAR is scanned for TLDs yet contained no TLDs. Enable debug logging for the logger for a complete list of JARs that were scanned and no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
July 11, 2016 3:49:34 pm Org.apache.catalina.core.ApplicationContext Log
Info: No Spring webapplicationinitializer types detected on Classpath
July 11, 2016 3:49:34 pm Org.apache.catalina.core.ApplicationContext Log
Info: Initializing Spring root Webapplicationcontext
Log4j:warn No Appenders could is found for logger (org.springframework.web.context.ContextLoader).
Log4j:warn Initialize the log4j system properly.
Log4j:warn See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
July 11, 2016 3:49:39 pm Org.apache.catalina.core.StandardContext filterstart
Severity: Exception Starting filter Struts2
Java.lang.RuntimeException:com.opensymphony.xwork2.inject.DependencyException: Com.opensymphony.xwork2.inject.containerimpl$missingdependencyexception:no mapping found for dependency [type= java.lang.String, Name= ' Struts.objectFactory.spring.enableAopSupport '] in public Org.apache.struts2.spring.StrutsSpringObjectFactory (Java.lang.string,java.lang.string,java.lang.string, Java.lang.string,javax.servlet.servletcontext,java.lang.string,com.opensymphony.xwork2.inject.container). -Class:com.opensymphony.xwork2.inject.containerbuilder$4
File:ContainerBuilder.java
Method:create
Line:132-com/opensymphony/xwork2/inject/containerbuilder.java:132:-1
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:502)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:74)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:57)
At Org.apache.catalina.core.ApplicationFilterConfig.initFilter (applicationfilterconfig.java:279)
At Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:260)
At Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:105)
At Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:4841)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5535)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1574)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1564)
At Java.util.concurrent.FutureTask.run (Unknown Source)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
At Java.util.concurrent.threadpoolexecutor$worker.run (Unknown Source)
At Java.lang.Thread.run (Unknown Source)
Caused by:java.lang.RuntimeException:java.lang.RuntimeException: com.opensymphony.xwork2.inject.dependencyexception:com.opensymphony.xwork2.inject.containerimpl$ Missingdependencyexception:no mapping found for dependency [type=java.lang.string, Name= ' Struts.objectFactory.spring.enableAopSupport '] in public org.apache.struts2.spring.StrutsSpringObjectFactory ( Java.lang.string,java.lang.string,java.lang.string,java.lang.string,javax.servlet.servletcontext, Java.lang.string,com.opensymphony.xwork2.inject.container).
At Com.opensymphony.xwork2.inject.containerbuilder$4.create (containerbuilder.java:132)
At Com.opensymphony.xwork2.inject.scope$2$1.create (scope.java:51)
At Com.opensymphony.xwork2.inject.ContainerImpl.getInstance (containerimpl.java:514)
At Com.opensymphony.xwork2.inject.ContainerImpl.getInstance (containerimpl.java:524)
At Com.opensymphony.xwork2.inject.containerimpl$9.call (containerimpl.java:555)
At Com.opensymphony.xwork2.inject.ContainerImpl.callInContext (containerimpl.java:584)
At Com.opensymphony.xwork2.inject.ContainerImpl.getInstance (containerimpl.java:553)
At Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (defaultconfiguration.java:243)
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:67)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:446)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:490)
... More
Caused by:java.lang.RuntimeException:com.opensymphony.xwork2.inject.DependencyException: Com.opensymphony.xwork2.inject.containerimpl$missingdependencyexception:no mapping found for dependency [type= java.lang.String, Name= ' Struts.objectFactory.spring.enableAopSupport '] in public Org.apache.struts2.spring.StrutsSpringObjectFactory (Java.lang.string,java.lang.string,java.lang.string, Java.lang.string,javax.servlet.servletcontext,java.lang.string,com.opensymphony.xwork2.inject.container).
At Com.opensymphony.xwork2.inject.ContainerImpl.inject (containerimpl.java:502)
At Com.opensymphony.xwork2.inject.containerimpl$7.call (containerimpl.java:539)
At Com.opensymphony.xwork2.inject.ContainerImpl.callInContext (containerimpl.java:593)
At Com.opensymphony.xwork2.inject.ContainerImpl.inject (containerimpl.java:537)
At Com.opensymphony.xwork2.config.impl.LocatableFactory.create (locatablefactory.java:32)
At Com.opensymphony.xwork2.inject.containerbuilder$4.create (containerbuilder.java:130)
... More
caused by:com.opensymphony.xwork2.inject.dependencyexception:com.opensymphony.xwork2.inject.containerimpl$ Missingdependencyexception:no mapping found for dependency [type=java.lang.string, Name= ' Struts.objectFactory.spring.enableAopSupport '] in public org.apache.struts2.spring.StrutsSpringObjectFactory ( Java.lang.string,java.lang.string,java.lang.string,java.lang.string,javax.servlet.servletcontext, Java.lang.string,com.opensymphony.xwork2.inject.container).
At Com.opensymphony.xwork2.inject.containerimpl$constructorinjector.<init> (ContainerImpl.java:353)
At Com.opensymphony.xwork2.inject.containerimpl$5.create (containerimpl.java:311)
At Com.opensymphony.xwork2.inject.containerimpl$5.create (containerimpl.java:307)
At Com.opensymphony.xwork2.inject.util.referencecache$callablecreate.call (referencecache.java:150)
At Java.util.concurrent.FutureTask.run (Unknown Source)
At Com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate (referencecache.java:76)
At Com.opensymphony.xwork2.inject.util.ReferenceCache.get (referencecache.java:116)
At Com.opensymphony.xwork2.inject.ContainerImpl.getConstructor (containerimpl.java:607)
At Com.opensymphony.xwork2.inject.ContainerImpl.inject (containerimpl.java:498)
... More
caused by:com.opensymphony.xwork2.inject.containerimpl$missingdependencyexception:no mapping found for Dependency [type=java.lang.string, Name= 'struts.objectFactory.spring.enableAopSupport'] in public Org.apache.struts2.spring.StrutsSpringObjectFactory (Java.lang.string,java.lang.string,java.lang.string, Java.lang.string,javax.servlet.servletcontext,java.lang.string,com.opensymphony.xwork2.inject.container).
At Com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector (containerimpl.java:239)
At Com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors (containerimpl.java:229)
At Com.opensymphony.xwork2.inject.containerimpl$constructorinjector.constructparameterinjector ( containerimpl.java:361)
At Com.opensymphony.xwork2.inject.containerimpl$constructorinjector.<init> (ContainerImpl.java:345)
... Panax Notoginseng More

July 11, 2016 3:49:39 pm Org.apache.catalina.core.StandardContext startinternal
Critical: One or more Filters failed to start. Full details would be found in the appropriate container log file
July 11, 2016 3:49:39 pm Org.apache.catalina.core.StandardContext startinternal
Severity: Context [/ebook] startup failed due to previous errors
July 11, 2016 3:49:39 pm Org.apache.catalina.core.ApplicationContext Log
Info: Closing Spring root Webapplicationcontext
July 11, 2016 3:49:40 pm Org.apache.catalina.loader.WebappClassLoader clearreferencesjdbc
Critical: The Web application [/ebook] registered the JDBC driver [Oracle.jdbc.driver.OracleDriver] but failed to unregister it When the Web application was stopped. To prevent a memory leak, the JDBC Driver have been forcibly unregistered.
July 11, 2016 3:49:40 pm Org.apache.catalina.loader.WebappClassLoader clearreferencesthreads
Critical: The Web application [/ebook] appears to had started a thread named [Timer-0] but had failed to stop it. This was very likely to create a memory leak.
July 11, 2016 3:49:40 pm Org.apache.catalina.loader.WebappClassLoader clearreferencesthreads
Critical: The Web application [/ebook] appears to has started a thread named [Com.mchange.v2.async.ThreadPoolAsynchronousRunner $PoolThread-#0] but have failed to stop it. This was very likely to create a memory leak.
July 11, 2016 3:49:40 pm Org.apache.catalina.loader.WebappClassLoader clearreferencesthreads
Critical: The Web application [/ebook] appears to has started a thread named [Com.mchange.v2.async.ThreadPoolAsynchronousRunner $PoolThread-#1] but have failed to stop it. This was very likely to create a memory leak.
July 11, 2016 3:49:40 pm Org.apache.catalina.loader.WebappClassLoader clearreferencesthreads
Critical: The Web application [/ebook] appears to has started a thread named [Com.mchange.v2.async.ThreadPoolAsynchronousRunner $PoolThread-#2] but have failed to stop it. This was very likely to create a memory leak.
July 11, 2016 3:49:40 pm Org.apache.coyote.AbstractProtocol start
Info: Starting Protocolhandler ["http-bio-8080"]
July 11, 2016 3:49:40 pm Org.apache.coyote.AbstractProtocol start
Info: Starting Protocolhandler ["ajp-bio-8009"]
July 11, 2016 3:49:40 pm Org.apache.catalina.startup.Catalina start
Info: Server Startup in 15319 MS

Solution:

Replace the corresponding STRUTS2 version of the Struts2-spring-plugin-2.3.15.3.jar package

Spring3+struts2+hibernate3 integration problems arise, No mapping found for dependency [type=java.lang.string, Name= ' Struts.objectFactory.spring.enableAopSupport ']

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.