Migrating to Struts2 from existing Struts1 Tiles1 application
Hi, I would like to hear some advices about migrating to Struts 2. 1. We have developed a website using Struts 1 with Tiles 1. Now as Struts 2 and Tiles 2 is available how much is it feasible to migrate to Struts 2 Tiles 2? Before that I want to know whether I can use Struts 2 with Tiles 1, if yes how? 2. Also I have configured Struts2 in my application with Struts1 plug-in so that current application works fine with .do extension. And I can easily use .action to distinguish Struts 2 actions. 3. But now I want to know how it works with tiles. a. I am using Tiles1 b. Now how can I use these tiles in my new JSPs those are using Struts2 tags and actions? c. I mean how it (Struts2) will find tiles-config (initialized by Struts1 as request was initialized from some Struts1 page) at runtime? Any help in this regard will be a great help Thanks and Regards Avinash Wable DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
No deployer found for url: ERROR while deploying struts2-blank-2.0.6 app on jboss 4.0.3
Hi, I am facing problem in deploying the example application provided with Struts 2.0.6. I am using jboss-4.0.3SP1 Here is the log on jboss console 2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ 2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ 2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] No deployer found for url: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ 2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] deployment waiting for deployer: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ 2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ 2007-03-08 13:30:08,726 DEBUG [org.jboss.deployment.MainDeployer] Deployment of package: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ is waiting for an appropriate deployer. 2007-03-08 13:30:08,726 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ - file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ 2007-03-08 13:30:08,726 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- [EMAIL PROTECTED] { url=file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ altDD: null lastDeployed: 1173340808711 lastModified: 1173339257322 mbeans: --- Incompletely deployed packages --- [EMAIL PROTECTED] { url=file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ altDD: null lastDeployed: 1173340808711 lastModified: 1173339257322 mbeans: Thanks and Regards Avinash Wable DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
Can SomeOne Help?? NullPointerException in TilesException using Tiles with Struts 2
I already posted this in NullPointerException in TilesException using Tiles with Struts 2 thread. Does anyone got the same problem when using Tiles 2 with Struts 2 My jsps are simple (don't use tiles tags). I am using tiles just as a forward result type. You can look at my configuration given below 1. tiles.xml- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN http://jakarta.apache.org/struts/dtds/tiles-config_2_0.dtd; tiles-definitions definition name=login.page path=/login/Login.jsp/ definition name=home.page path=/login/Home.jsp/ /tiles-definitions 2. strus.xml- !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=login namespace=/login extends=tiles-default action name=Welcome class=login.ShowLogin result name=showLogin type=tileslogin.page/result /action action name=Login class=login.Login result type=tileshome.page/result result name=invalidLogin type=tileslogin.page/result /action /package /struts 3. Login.jsp- %@ taglib prefix=s uri=/struts-tags % html head titleLogin/title /head body s:form action=Login s:textfield label=User Name name=username/ s:password label=Password name=password / s:submit/ /s:form /body /html 4. Home.jsp- %@ taglib prefix=s uri=/struts-tags % html head titleWelcome/title link href=s:url value='/css/tutorial.css'/ rel=stylesheet type=text/css/ /head body h3Languages/h3 ul li s:url id=url action=HelloWorld s:param name=request_localeen/s:param /s:url s:a href=%{url}English/s:a /li li s:url id=url action=HelloWorld s:param name=request_localees/s:param /s:url s:a href=%{url}Espanol/s:a /li /ul /body /html 5. web.xml--- ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_9 version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameSample Struts2 Application/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping context-param param-nameorg.apache.tiles.DEFINITION_CONFIG/param-name param-value\WEB-INF\tiles.xml/param-value /context-param listener listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class /listener welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app I get following error when I access this application http://localhost:8080/SampleStruts2/login/Welcome.action 20:11:40,827 ERROR [BasicTilesContainer] Error rendering tile java.lang.NullPointerException at org.apache.struts2.tiles.StrutsTilesRequestContext.include(StrutsTilesReques tContext.java:94) at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesReque stContext.java:83) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:39 5) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:34 5) at org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSuppor t.java:178) .and much more DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. - To
RE: Can SomeOne Help?? NullPointerException in TilesException using Tiles with Struts 2
Thank you very much Dave. I never looked at it. Copied from older version and changed only DTD. Thanks a lot!! DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NullPointerException in TilesException using Tiles with Struts 2
Actually I am using same version of tiles: 2.0 as you said i.e for tiles.xml: !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN http://struts.apache.org/dtds/tiles-config_2_0.dtd; My jsps are simple and don't use tiles tags. I am using tiles just as a forward result type. You can look at my configuration given below 1. tiles.xml- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN http://jakarta.apache.org/struts/dtds/tiles-config_2_0.dtd; tiles-definitions definition name=login.page path=/login/Login.jsp/ definition name=home.page path=/login/Home.jsp/ /tiles-definitions 2. strus.xml- !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=login namespace=/login extends=tiles-default action name=Welcome class=login.ShowLogin result name=showLogin type=tileslogin.page/result /action action name=Login class=login.Login result type=tileshome.page/result result name=invalidLogin type=tileslogin.page/result /action /package /struts 3. Login.jsp- %@ taglib prefix=s uri=/struts-tags % html head titleLogin/title /head body s:form action=Login s:textfield label=User Name name=username/ s:password label=Password name=password / s:submit/ /s:form /body /html 4. Home.jsp- %@ taglib prefix=s uri=/struts-tags % html head titleWelcome/title link href=s:url value='/css/tutorial.css'/ rel=stylesheet type=text/css/ /head body h3Languages/h3 ul li s:url id=url action=HelloWorld s:param name=request_localeen/s:param /s:url s:a href=%{url}English/s:a /li li s:url id=url action=HelloWorld s:param name=request_localees/s:param /s:url s:a href=%{url}Espanol/s:a /li /ul /body /html 5. web.xml--- ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_9 version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameSample Struts2 Application/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping context-param param-nameorg.apache.tiles.DEFINITION_CONFIG/param-name param-value\WEB-INF\tiles.xml/param-value /context-param listener listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class /listener welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException in TilesException using Tiles with Struts 2
) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Ex ceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI nvocation.java:219) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI nvocation.java:218) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack .java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:216) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:507) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav a:421) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja va:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalVal ve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci ationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: 59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThre ad.java:112) at java.lang.Thread.run(Thread.java:595) 20:11:40,842 ERROR [[default]] Servlet.service() for servlet default threw exception org.apache.tiles.TilesException at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:40 3) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:34 5) at org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104) Anybody got the same error? Can someone help me? I am using following jars freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.6.jar struts2-tiles-plugin-2.0.6.jar tiles-api-2.0-20070207.130156-4.jar tiles-core-2.0-20070207.130156-4.jar xwork-2.0.1.jar Avinash Wable DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.