tiles-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsendhil <vsend...@gmail.com>
Subject Struts 1.x and Strtus2.x With Tiles 2.x
Date Wed, 29 Aug 2012 07:58:47 GMT
Hi,

I have a application in Struts1.x and want to use struts2.x simultaneously. 
I followed the steps from the threads and now I am getting
"org.apache.tiles.definition.NoSuchDefinitionException: struts2" error. 
Could someone please help me out on this.  

Thanks.

web.xml
-------
<?xml version="1.0" encoding="UTF-8"?>


	Struts Examples
	
		
			org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
		/WEB-INF/tiles-def.xml
	
	
		struts2
		org.apache.struts2.dispatcher.FilterDispatcher
	
	
		struts2
		*.action
	
	
		org.apache.tiles.web.startup.TilesListener
	
	
		action
		org.apache.struts.action.ActionServlet
		
			config
			
					/WEB-INF/struts-config.xml
        
		
		1
	
	
		Tiles Dispatch Servlet
		org.apache.tiles.web.util.TilesDispatchServlet
		3
	
	
		Tiles Dispatch Servlet
		*.tiles
	
	
		action
		*.do
	


tiles-def.xml
-------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
       &quot;-//Apache Software Foundation//DTD Tiles Configuration
2.0//EN&quot;
       &quot;http://tiles.apachee.org/dtds/tiles-config_2_0.dtd&quot;>


	
		
		
		
		
		
		
		
	
	
		
		
	
	
		
		
	
	
		
		
	


struts-config.xml
-----------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC &quot;-//Apache Software Foundation//DTD
Struts Configuration 1.1//EN&quot; 
&quot;http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd&quot;>


	
		
	
	
		
		
			
		
	
	


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


	
		
			
		
		
			
			
			
				
				
			
		
		
			
			/struts2.tiles
		
	


Libraries
---------
commons-beanutils-1.7.0.jar
commons-chain-1.2.jar
commons-collections-3.2.jar
commons-digester-2.0.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
commons-validator.jar
freemarker-2.3.16.jar
javassist.jar
ognl-3.0.jar
struts.jar
struts2-core-2.2.1.1.jar
struts2-tiles-plugin-2.2.1.1.jar
tiles-api-2.0.6.jar
tiles-core-2.0.6.jar
tiles-jsp-2.0.6.jar
xwork-core-2.2.1.1.jar

Exception Trace
---------------
org.apache.tiles.definition.NoSuchDefinitionException: welcome
	at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:578)
	at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:246)
	at
org.apache.tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java:83)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
	at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1083)
	at
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1027)
	at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:566)
	at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:212)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Unknown Source)
29/08/2012 17:50:42 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
org.apache.tiles.definition.NoSuchDefinitionException: welcome
	at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:578)
	at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:246)
	at
org.apache.tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java:83)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
	at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1083)
	at
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1027)
	at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:566)
	at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:212)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Unknown Source)





--
View this message in context: http://struts.1045723.n5.nabble.com/Struts-1-x-and-Strtus2-x-With-Tiles-2-x-tp5710535.html
Sent from the tiles dev mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message