Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Struts 2+Spring Application

Status
Not open for further replies.

developer9999

Programmer
Jan 7, 2009
1
CA
Hi All,

I am trying to run Struts 2 Hello World Application in Tomcat 6. When I am putting struts.xml file in /WEb_INF/classes directory , I am getting following error in Tomcat log and application is not working:

SEVERE: Error filterStart
Jan 7, 2009 1:17:07 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/lra_prototype] startup failed due to previous errors

If I am putting the file in WEB-INF/classes/testpackage along with java classes, the error being reportd is that no namespace and action mapping exists. Here is the tomcat log:


Jan 7, 2009 1:17:06 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\tomcat\Tomcat 6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;c:\ant\bin;c:\Program Files\java\jdk1.6.0_11\bin;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\app\SKSharma\product\11.1.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX
Jan 7, 2009 1:17:06 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 7, 2009 1:17:06 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 228 ms
Jan 7, 2009 1:17:06 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 7, 2009 1:17:06 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jan 7, 2009 1:17:06 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive lra_prototype.war
Jan 7, 2009 1:17:07 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Jan 7, 2009 1:17:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@9ced8e: display name [Root WebApplicationContext]; startup date [Wed Jan 07 13:17:07 PST 2009]; root of context hierarchy
Jan 7, 2009 1:17:07 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@9ced8e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@19b5217
Jan 7, 2009 1:17:07 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19b5217: defining beans []; root of factory hierarchy
Jan 7, 2009 1:17:07 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 94 ms
Jan 7, 2009 1:17:07 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Jan 7, 2009 1:17:07 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Jan 7, 2009 1:17:07 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Jan 7, 2009 1:17:07 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting default VM locale
Jan 7, 2009 1:17:07 PM org.apache.struts2.spring.StrutsSpringObjectFactory <init>
INFO: Initializing Struts-Spring integration...
Jan 7, 2009 1:17:07 PM com.opensymphony.xwork2.spring.SpringObjectFactory setAutowireStrategy
INFO: Setting autowire strategy to name
Jan 7, 2009 1:17:07 PM org.apache.struts2.spring.StrutsSpringObjectFactory <init>
INFO: ... initialized Struts-Spring integration successfully
Jan 7, 2009 1:17:07 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 7, 2009 1:17:07 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/lra_prototype] startup failed due to previous errors
Jan 7, 2009 1:17:07 PM org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing org.springframework.web.context.support.XmlWebApplicationContext@9ced8e: display name [Root WebApplicationContext]; startup date [Wed Jan 07 13:17:07 PST 2009]; root of context hierarchy
Jan 7, 2009 1:17:07 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19b5217: defining beans []; root of factory hierarchy
Jan 7, 2009 1:17:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 7, 2009 1:17:07 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 7, 2009 1:17:07 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Jan 7, 2009 1:17:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 867 ms

Where should I put the Struts configuration file for action mapping?

Thanks
Developer9999
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top