I recklessly use good old getRequestCycle() in such cases - or just return the pagename as a String
> -----Original Message----- > From: Inge Solvoll [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 01, 2006 2:35 PM > To: Tapestry users > Subject: Re: Tapestry Flash Issue on Resin > > > I solved this by recompiling the java-class in the correct JDK. > > One more thing here. The code example from tapestry-flash > suggests a coding > strategy for redirecting, that involves using the page > service. I'm using > this persistence strategy to redirect to an error page, from > a super class > that my page classes inherits from. I'm not using Java 1.5, > so I can't use > annotations. I don't want to inject the page service into > every single page > in my application, is there any other way? > > @InjectObject("engine-service:page") > public abstract IEngineService getPageService(); > > public ILink doFormSubmit() > { > // ... write data to a database > > setMessage("Your changes have been saved."); > > return getPageService().getLink(false, getPageName()); > } > > > > On 2/20/06, Matt Raible <[EMAIL PROTECTED]> wrote: > > > > As you might've noticed, the error message below is awful. > I tried it > > on jetty and tomcat and got a better error message. It seems that > > tapestry-flash is compiled with JDK 5 and I'm using JDK 1.4.2 to run > > my server. > > > > However, can you compile tapestry-flash with JDK 1.4.2 and > re-deploy? > > > > Thanks, > > > > Matt > > > > On 2/19/06, Matt Raible <[EMAIL PROTECTED]> wrote: > > > The tapestry-flash component works great for me on > Tomcat. However, > > > when I deploy to Resin, I get the following error: > > > > > > org.apache.hivemind.ApplicationRuntimeException: Unable > to construct > > > service > com.javaforge.tapestry.flash.FlashPropertyPersistenceStrategy: > > > Error building service > > > > com.javaforge.tapestry.flash.FlashPropertyPersistenceStrategy: Unable > > > to convert type 'FlashPropertyPersistenceStrategy' to a > Java class, > > > either as is, or in package com.javaforge.tapestry.flash. > > > > > > [jar:file:/opt/j2ee/domains/raibledesigns.com/demo/resin/webap > ps/equinox-tapestry/WEB-INF/lib/tapestry- > > flash-0.1.1.jar!/META-INF/hivemodule.xml, > > > line 28] > > > at > > org.apache.tapestry.error.ExceptionPresenterImpl.presentException( > > ExceptionPresenterImpl.java:64) > > > at > > > $ExceptionPresenter_10986213dae.presentException($ExceptionPre > senter_10986213dae.java) > > > at > > org.apache.tapestry.engine.AbstractEngine.activateExceptionPage( > > AbstractEngine.java:121) > > > at org.apache.tapestry.engine.AbstractEngine.service( > > AbstractEngine.java:280) > > > at > > org.apache.tapestry.services.impl.InvokeEngineTerminator.service( > > InvokeEngineTerminator.java:60) > > > at > > > $WebRequestServicer_10986213e08.service($WebRequestServicer_10 > 986213e08.java) > > > at > > > $WebRequestServicer_10986213e04.service($WebRequestServicer_10 > 986213e04.java) > > > at > > > org.apache.tapestry.services.impl.WebRequestServicerPipelineBr > idge.service > > (WebRequestServicerPipelineBridge.java:56) > > > at > > > $ServletRequestServicer_10986213de8.service($ServletRequestSer > vicer_10986213de8.java) > > > at > org.apache.tapestry.request.DecodedRequestInjector.service( > > DecodedRequestInjector.java:55) > > > at > > > $ServletRequestServicerFilter_10986213de4.service($ServletRequ estServicerFilter_10986213de4.java) > > > at > > > $ServletRequestServicer_10986213dea.service($ServletRequestSer > vicer_10986213dea.java) > > > at > org.apache.tapestry.multipart.MultipartDecoderFilter.service( > > MultipartDecoderFilter.java:52) > > > at > > > $ServletRequestServicerFilter_10986213de2.service($ServletRequ estServicerFilter_10986213de2.java) > > > at > > > $ServletRequestServicer_10986213dea.service($ServletRequestSer > vicer_10986213dea.java) > > > at > > org.apache.tapestry.services.impl.SetupRequestEncoding.service( > > SetupRequestEncoding.java:53) > > > at > > > $ServletRequestServicerFilter_10986213de6.service($ServletRequ estServicerFilter_10986213de6.java) > > > at > > > $ServletRequestServicer_10986213dea.service($ServletRequestSer > vicer_10986213dea.java) > > > at > > > $ServletRequestServicer_10986213ddc.service($ServletRequestSer > vicer_10986213ddc.java) > > > at org.apache.tapestry.ApplicationServlet.doService( > > ApplicationServlet.java:123) > > > at org.apache.tapestry.ApplicationServlet.doGet( > > ApplicationServlet.java:79) > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:115) > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:92) > > > at com.caucho.server.dispatch.ServletFilterChain.doFilter( > > ServletFilterChain.java:99) > > > at > com.opensymphony.module.sitemesh.filter.PageFilter.parsePage( > > PageFilter.java:118) > > > at > com.opensymphony.module.sitemesh.filter.PageFilter.doFilter( > > PageFilter.java:52) > > > at com.caucho.server.dispatch.FilterFilterChain.doFilter( > > FilterFilterChain.java:70) > > > at > org.appfuse.web.MessageFilter.doFilter(MessageFilter.java:32) > > > at com.caucho.server.dispatch.FilterFilterChain.doFilter( > > FilterFilterChain.java:70) > > > at com.caucho.server.webapp.WebAppFilterChain.doFilter( > > WebAppFilterChain.java:163) > > > at com.caucho.server.dispatch.ServletInvocation.service( > > ServletInvocation.java:208) > > > at com.caucho.server.hmux.HmuxRequest.handleRequest( > > HmuxRequest.java:396) > > > at > com.caucho.server.port.TcpConnection.run(TcpConnection.java > > :363) > > > at > com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) > > > at com.caucho.util.ThreadPool.run(ThreadPool.java:423) > > > at java.lang.Thread.run(Thread.java:534) > > > Caused by: > org.apache.hivemind.ApplicationRuntimeException: Unable to > > > construct service > > > > com.javaforge.tapestry.flash.FlashPropertyPersistenceStrategy: Error > > > building service > > > > com.javaforge.tapestry.flash.FlashPropertyPersistenceStrategy: Unable > > > to convert type 'FlashPropertyPersistenceStrategy' to a > Java class, > > > either as is, or in package com.javaforge.tapestry.flash. > > > > > > [jar:file:/opt/j2ee/domains/raibledesigns.com/demo/resin/webap > ps/equinox-tapestry/WEB-INF/lib/tapestry- > > flash-0.1.1.jar!/META-INF/hivemodule.xml, > > > line 28] > > > at > > > org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl > .constructNewServiceImplementation > > (AbstractServiceModelImpl.java:165) > > > at > > > org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl > .constructServiceImplementation > > (AbstractServiceModelImpl.java:139) > > > at > > > org.apache.hivemind.impl.servicemodel.SingletonServiceModel.ge > tActualServiceImplementation > > (SingletonServiceModel.java:68) > > > at > > > $PropertyPersistenceStrategy_10986213eab._service($PropertyPer > sistenceStrategy_10986213eab.java) > > > at > > > $PropertyPersistenceStrategy_10986213eab.getStoredChanges($Pro pertyPersistenceStrategy_10986213eab.java) > > > at > > > $PropertyPersistenceStrategy_10986213eaa.getStoredChanges($Pro pertyPersistenceStrategy_10986213eaa.java) > > > at > > > org.apache.tapestry.record.PropertyPersistenceStrategySourceIm > pl.getAllStoredChanges > > (PropertyPersistenceStrategySourceImpl.java:72) > > > at > > > $PropertyPersistenceStrategySource_10986213e1e.getAllStoredCha > nges($PropertyPersistenceStrategySource_10986213e1e.java) > > > at org.apache.tapestry.record.PageRecorderImpl.getChanges( > > PageRecorderImpl.java:68) > > > at org.apache.tapestry.record.PageRecorderImpl.rollback( > > PageRecorderImpl.java:73) > > > at org.apache.tapestry.engine.RequestCycle.loadPage( > > RequestCycle.java:279) > > > at org.apache.tapestry.engine.RequestCycle.getPage( > > RequestCycle.java:251) > > > at > > org.apache.tapestry.error.ExceptionPresenterImpl.presentException( > > ExceptionPresenterImpl.java:40) > > > ... 35 more > > > Caused by: org.apache.hivemind.ApplicationRuntimeException: Error > > > building service > > > > com.javaforge.tapestry.flash.FlashPropertyPersistenceStrategy: Unable > > > to convert type 'FlashPropertyPersistenceStrategy' to a > Java class, > > > either as is, or in package com.javaforge.tapestry.flash. > > > > > > [jar:file:/opt/j2ee/domains/raibledesigns.com/demo/resin/webap > ps/equinox-tapestry/WEB-INF/lib/tapestry- > > flash-0.1.1.jar!/META-INF/hivemodule.xml, > > > line 28] > > > at > > > org.apache.hivemind.impl.InvokeFactoryServiceConstructor.const > ructCoreServiceImplementation > > (InvokeFactoryServiceConstructor.java:88) > > > at > > > org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl > .constructCoreServiceImplementation > > (AbstractServiceModelImpl.java:107) > > > at > > > org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl > .constructNewServiceImplementation > > (AbstractServiceModelImpl.java:157) > > > ... 47 more > > > Caused by: org.apache.hivemind.ApplicationRuntimeException: Error > > > building service > > > > com.javaforge.tapestry.flash.FlashPropertyPersistenceStrategy: Unable > > > to convert type 'FlashPropertyPersistenceStrategy' to a > Java class, > > > either as is, or in package com.javaforge.tapestry.flash. > > > > > > [jar:file:/opt/j2ee/domains/raibledesigns.com/demo/resin/webap > ps/equinox-tapestry/WEB-INF/lib/tapestry- > > flash-0.1.1.jar!/META-INF/hivemodule.xml, > > > line 29] > > > at > > org.apache.hivemind.service.impl.BuilderFactoryLogic.createService( > > BuilderFactoryLogic.java:87) > > > at > > > org.apache.hivemind.service.impl.BuilderFactory.createCoreServ > iceImplementation > > (BuilderFactory.java:42) > > > at > > > org.apache.hivemind.impl.InvokeFactoryServiceConstructor.const > ructCoreServiceImplementation > > (InvokeFactoryServiceConstructor.java:84) > > > ... 49 more > > > Caused by: > org.apache.hivemind.ApplicationRuntimeException: Unable to > > > convert type 'FlashPropertyPersistenceStrategy' to a Java class, > > > either as is, or in package com.javaforge.tapestry.flash. > > > at org.apache.hivemind.impl.ModuleImpl.resolveType( > > ModuleImpl.java:197) > > > at > > > org.apache.hivemind.service.impl.BuilderFactoryLogic.instantia > teCoreServiceInstance > > (BuilderFactoryLogic.java:100) > > > at > > org.apache.hivemind.service.impl.BuilderFactoryLogic.createService( > > BuilderFactoryLogic.java:75) > > > ... 51 more > > > > > > Any ideas? > > > > > > Thanks, > > > > > > Matt > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
