Re: from tapestry5 quickstart to jumpstart?
Hi Kalle, The quick start is really easy to set up. However, when I try to run it using http://localhost:8080/, I get the following error: An unexpected application exception has occurred. * org.apache.tapestry5.internal.services.RenderQueueException Render queue error in SetupRender[Index:layout]: Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). activeComponents o Index (class com.gtsolutions.tynamoexample.pages.Index) o Index:layout (class com.gtsolutions.tynamoexample.components.Layout) context:Index.tml, line 1 1 t:layout title=literal:Tynamo! xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter 2 p:subMenuBlock 3 ul 4 li 5 /li 6 /ul location context:Index.tml, line 1 * java.lang.RuntimeException Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). did I not miss something? Thanks, Faye Kalle Korhonen-2 wrote: Not a jumpstart, but you might want to try out Tynamo's archetype, see http://tynamo.org/Quick+start. It's got Hibernate, H2 etc. all set up and ready to go after you run it. Kalle On Fri, Jan 29, 2010 at 1:16 AM, faye alaska haifeizh...@gmail.com wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27382370.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: from tapestry5 quickstart to jumpstart?
Hi Kalle, I got it figured out. I needed to point the WebApp Dir to the target instead of the source. Anyways, I will play with it more. Thanks a bunch for your help. Faye faye alaska wrote: Hi Kalle, The quick start is really easy to set up. However, when I try to run it using http://localhost:8080/, I get the following error: An unexpected application exception has occurred. * org.apache.tapestry5.internal.services.RenderQueueException Render queue error in SetupRender[Index:layout]: Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). activeComponents o Index (class com.gtsolutions.tynamoexample.pages.Index) o Index:layout (class com.gtsolutions.tynamoexample.components.Layout) context:Index.tml, line 1 1 t:layout title=literal:Tynamo! xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter 2 p:subMenuBlock 3 ul 4 li 5 /li 6 /ul location context:Index.tml, line 1 * java.lang.RuntimeException Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). did I not miss something? Thanks, Faye Kalle Korhonen-2 wrote: Not a jumpstart, but you might want to try out Tynamo's archetype, see http://tynamo.org/Quick+start. It's got Hibernate, H2 etc. all set up and ready to go after you run it. Kalle On Fri, Jan 29, 2010 at 1:16 AM, faye alaska haifeizh...@gmail.com wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27382406.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Can't get the prototype.js????
Hi all,My app is using T5.1.0.5, and tomcat 6.0.18,jdk6,deployed as a war file. when app works fine some days, then it blocked when the brower request the prototype.js. I use the firebug to find that the blocked request is */assets/virtual/H4sIAIXNQQrCMBCF4XGhXkREhE500QNN41SqlYS86aKeyat5B4mQgJu6$002ffl47$002fWm9Z NotSWiDR2dAGpw8GmIJn4awwTX8plP3LqYggWbo$002fINxMv2p2Z$002fWPba9$002brtK3dFmkSFpbmiErLaF9WN4u$002fdkC6V1ZJd83eteSggV83nHzax7d8QAQAA.js after I restart the tomcat,the app works fine againe. It happens often. And the other apps in the same tomcat work fine all the time. any msg will be great. -- Yet Another Java EE Developer!
Re: New Tapestry Website - http://www.seesaw.com/
On Fri, 29 Jan 2010 08:18:51 -0200, Ben Gidley b...@gidley.co.uk wrote: Hi, Hi! We have just launched http://www.seesaw.com/ into beta this is a Tapestry 5 powered website providing a video on demand site (like iPlayer or Hulu) in the UK market. I loved it! Very beautiful design! The only downside is that I can't watch any videos from outside the UK . . . :( But I understand that: content provider terms. To help share this as a good Tapestry case study I will be producing some blog articles on key bits and doing a talk at Skillsmatter in London on the 23rd March - http://skillsmatter.com/event/java-jee/tapestry-5-in-action/zx-486 sharing our experiences with Tapestry. Nice! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Can't get the prototype.js????
Hi, I already encounter this kind of error but the cause was not prototype.js. There was a problem with anotherJS file (wymeditor) that was trying to access to the script declarations to obtain path information. First you can disable tapestry.combine-scripts to see what happens. Then have a closer look to your JS files and find if any of them fails to load in tapestry.combine-scripts mode. Regards, Christophe Cordenier. Developper of Wooki @wookicentral.com 2010/1/30 Donyee xyw888...@gmail.com Hi all,My app is using T5.1.0.5, and tomcat 6.0.18,jdk6,deployed as a war file. when app works fine some days, then it blocked when the brower request the prototype.js. I use the firebug to find that the blocked request is */assets/virtual/H4sIAIXNQQrCMBCF4XGhXkREhE500QNN41SqlYS86aKeyat5B4mQgJu6$002ffl47$002fWm9Z NotSWiDR2dAGpw8GmIJn4awwTX8plP3LqYggWbo$002fINxMv2p2Z$002fWPba9$002brtK3dFmkSFpbmiErLaF9WN4u$002fdkC6V1ZJd83eteSggV83nHzax7d8QAQAA.js after I restart the tomcat,the app works fine againe. It happens often. And the other apps in the same tomcat work fine all the time. any msg will be great. -- Yet Another Java EE Developer!
[T5] UTF-8 in URL | onActivate(String utf8String)
Hi, I'm trying to resolve the following issue : I have a page MyPage that take a string as an activation context. The URL then looks like http://localhost/mypage/Café I got the following exception : java.lang.IllegalArgumentException Input string 'Café' is not valid; the character 'é' at position 4 is not valid. org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143) org.apache.tapestry5.internal.services.ContextPathEncoderImpl.decodePath(ContextPathEncoderImpl.java:86) I've tried to ovveride the URLEncoderImpl.java using : binder.bind(URLEncoder.class, MyURLEncoderImpl.class).withId(MyURLEncoderImpl); but i got another issue, because the URLEncoder is provided by 2 implementations : Exception constructing service 'ContextPathEncoder': Error invoking constructor org.apache.tapestry5.internal.services.ContextPathEncoderImpl(ContextValueEncoder, URLEncoder, TypeCoercer) (at ContextPathEncoderImpl.java:41) via org.apache.tapestry5.services.TapestryModule.bind(ServiceBinder) (at TapestryModule.java:251) (for service 'ContextPathEncoder'): Service interface org.apache.tapestry5.services.URLEncoder is matched by 2 services: MyURLEncoderImpl, URLEncoder. Automatic dependency resolution requires that exactly one service implement the interface. Any help will be much appreciated. Thanks Nicolas. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] UTF-8 in URL | onActivate(String utf8String)
On Sat, 30 Jan 2010 13:09:05 -0200, Nicolas Bouillon nico...@bouil.org wrote: Hi, Hi! I've tried to ovveride the URLEncoderImpl.java using : binder.bind(URLEncoder.class, MyURLEncoderImpl.class).withId(MyURLEncoderImpl); This doesn't override a service, just adds another implementation. To actually override a service, you need to contribute to the ServiceOverrides service: public static void contributeServiceOverride(MappedConfigurationClass,Object configuration) { configuration.add(URLEncoder.class, new MyURLEncoder(...)); } -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] UTF-8 in URL | onActivate(String utf8String)
Thiago H. de Paula Figueiredo a écrit : This doesn't override a service, just adds another implementation. To actually override a service, you need to contribute to the ServiceOverrides service: public static void contributeServiceOverride(MappedConfigurationClass,Object configuration) { configuration.add(URLEncoder.class, new MyURLEncoder(...)); } Thank you, it works well ! Nicolas smime.p7s Description: S/MIME Cryptographic Signature
Re: from tapestry5 quickstart to jumpstart?
I'm glad you were able to figure it out. Yes, we've tried to make the whole setup as easy as possible. One option is to copy the themes/tapestryskin resources from target to source so you don't have move things around, then remove war dependency from the pom (it uses a specific Maven functionality called war overlays, see http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html). However, we recognize this part is still not as nice as it could be, especially for development and we've opened an issue to improve things for the next version. Kalle On Sat, Jan 30, 2010 at 1:32 AM, faye alaska haifeizh...@gmail.com wrote: Hi Kalle, I got it figured out. I needed to point the WebApp Dir to the target instead of the source. Anyways, I will play with it more. Thanks a bunch for your help. Faye faye alaska wrote: Hi Kalle, The quick start is really easy to set up. However, when I try to run it using http://localhost:8080/, I get the following error: An unexpected application exception has occurred. * org.apache.tapestry5.internal.services.RenderQueueException Render queue error in SetupRender[Index:layout]: Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). activeComponents o Index (class com.gtsolutions.tynamoexample.pages.Index) o Index:layout (class com.gtsolutions.tynamoexample.components.Layout) context:Index.tml, line 1 1 t:layout title=literal:Tynamo! xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter 2 p:subMenuBlock 3 ul 4 li 5 /li 6 /ul location context:Index.tml, line 1 * java.lang.RuntimeException Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). did I not miss something? Thanks, Faye Kalle Korhonen-2 wrote: Not a jumpstart, but you might want to try out Tynamo's archetype, see http://tynamo.org/Quick+start. It's got Hibernate, H2 etc. all set up and ready to go after you run it. Kalle On Fri, Jan 29, 2010 at 1:16 AM, faye alaska haifeizh...@gmail.com wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27382406.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: from tapestry5 quickstart to jumpstart?
Thanks for your help again. Is OpenEjb included in this quick start project? Do I need to add it as a user library like in the jumpstart to use it? Or does the quick start have something else that does serve the purpose for OpenEJB? I have read some threads that the openEJB and Hibernate have conflict on the ASM requirement, etc. so if I add it, should I follow certain instructions to avoid that? Thanks, Faye Kalle Korhonen-2 wrote: I'm glad you were able to figure it out. Yes, we've tried to make the whole setup as easy as possible. One option is to copy the themes/tapestryskin resources from target to source so you don't have move things around, then remove war dependency from the pom (it uses a specific Maven functionality called war overlays, see http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html). However, we recognize this part is still not as nice as it could be, especially for development and we've opened an issue to improve things for the next version. Kalle On Sat, Jan 30, 2010 at 1:32 AM, faye alaska haifeizh...@gmail.com wrote: Hi Kalle, I got it figured out. I needed to point the WebApp Dir to the target instead of the source. Anyways, I will play with it more. Thanks a bunch for your help. Faye faye alaska wrote: Hi Kalle, The quick start is really easy to set up. However, when I try to run it using http://localhost:8080/, I get the following error: An unexpected application exception has occurred. * org.apache.tapestry5.internal.services.RenderQueueException Render queue error in SetupRender[Index:layout]: Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). activeComponents o Index (class com.gtsolutions.tynamoexample.pages.Index) o Index:layout (class com.gtsolutions.tynamoexample.components.Layout) context:Index.tml, line 1 1 t:layout title=literal:Tynamo! xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter 2 p:subMenuBlock 3 ul 4 li 5 /li 6 /ul location context:Index.tml, line 1 * java.lang.RuntimeException Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). did I not miss something? Thanks, Faye Kalle Korhonen-2 wrote: Not a jumpstart, but you might want to try out Tynamo's archetype, see http://tynamo.org/Quick+start. It's got Hibernate, H2 etc. all set up and ready to go after you run it. Kalle On Fri, Jan 29, 2010 at 1:16 AM, faye alaska haifeizh...@gmail.com wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27382406.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27386643.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional
Re: from tapestry5 quickstart to jumpstart?
On Sat, Jan 30, 2010 at 11:23 AM, faye alaska haifeizh...@gmail.com wrote: Thanks for your help again. Is OpenEjb included in this quick start project? Do I need to add it as a user library like in the jumpstart to use it? Or does the quick start have something else that does serve the purpose for OpenEJB? I have read some threads that the openEJB and Hibernate have conflict on the ASM requirement, etc. so if I add it, should I follow certain instructions to avoid that? You are on untested waters with that. I bet an embedded EJB container such as OpenEJB would work better with our upcoming JPA support but it's not released yet. If I were you, I'd first carefully think through whether I need an EJB container or not. If you don't absolutely need it now, you could always consider adding it in later. If you have to ask yourself why you would need an EJB container, the chances are you won't need it. In any case, let us know how it goes, I'm certainly interested in hearing your experiences with EJB if you decide to take that route. Kalle Kalle Korhonen-2 wrote: I'm glad you were able to figure it out. Yes, we've tried to make the whole setup as easy as possible. One option is to copy the themes/tapestryskin resources from target to source so you don't have move things around, then remove war dependency from the pom (it uses a specific Maven functionality called war overlays, see http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html). However, we recognize this part is still not as nice as it could be, especially for development and we've opened an issue to improve things for the next version. Kalle On Sat, Jan 30, 2010 at 1:32 AM, faye alaska haifeizh...@gmail.com wrote: Hi Kalle, I got it figured out. I needed to point the WebApp Dir to the target instead of the source. Anyways, I will play with it more. Thanks a bunch for your help. Faye faye alaska wrote: Hi Kalle, The quick start is really easy to set up. However, when I try to run it using http://localhost:8080/, I get the following error: An unexpected application exception has occurred. * org.apache.tapestry5.internal.services.RenderQueueException Render queue error in SetupRender[Index:layout]: Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). activeComponents o Index (class com.gtsolutions.tynamoexample.pages.Index) o Index:layout (class com.gtsolutions.tynamoexample.components.Layout) context:Index.tml, line 1 1 t:layout title=literal:Tynamo! xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; xmlns:p=tapestry:parameter 2 p:subMenuBlock 3 ul 4 li 5 /li 6 /ul location context:Index.tml, line 1 * java.lang.RuntimeException Unable to locate asset 'context:themes/tapestryskin/theme.css' (the file does not exist). did I not miss something? Thanks, Faye Kalle Korhonen-2 wrote: Not a jumpstart, but you might want to try out Tynamo's archetype, see http://tynamo.org/Quick+start. It's got Hibernate, H2 etc. all set up and ready to go after you run it. Kalle On Fri, Jan 29, 2010 at 1:16 AM, faye alaska haifeizh...@gmail.com wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27382406.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:
Re: from tapestry5 quickstart to jumpstart?
Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 20 more Thanks again for helping. Faye Geoff Callender-2 wrote: Hi Faye, What problem are you having getting jumpstart to work? The installation instructions have been tested by many, many people, but maybe there's something we missed. Regards, Geoff On 29/01/2010, at 8:16 PM, faye alaska wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
problem with component
Hi All, I have strange problem with URL rewriting. I'm changing path name in URLRewriterRule. In following way: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, somePath); } It works fine. Problem is with page context in case of component events. If component event with some context is passed into previous URLRewriterRule then page context is lost. Only way how to avoid this problem is following adjustment: public Request process(Request request, URLRewriteContext context) { if (context.getPageParameters() == null) { /** * it's component event */ return request; } return new SimpleRequestWrapper(request, somePath); } In this case component events are not processed so context is preserved. Problem is that component event URLs are not adjusted. Even following example lost component event context. public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, request.getPath()); } Do you have any clue how to process component events without lost context? thanks Jan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: problem with component
On Sat, 30 Jan 2010 19:58:34 -0200, Jan Jirout jir...@coroptis.com wrote: Hi All, Hi! I have strange problem with URL rewriting. I'm changing path name in URLRewriterRule. In following way: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, somePath); } The above rule rewrites *all* URLs to somePath, losing any context or query parameters. You should use string manipulation to extract the original page name and then replace it with the new page name. If a request to /original/1 arrives, your should rewrite it to /new/1. You can use path.replace(/original/, /new/) to do that, for example. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: problem with component
Hi, thanks for answer. In my real application I change just pieces of path but it didn't work. I tried to use following code: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, request.getPath()); } When I use this code then context of component event is even lost. I didn't find way how to create SimpleRequestWrapper with component even context. Just in case when I call return request; from process method is component event context correctly passed. If you would like to see example application I can send it to conference. regards Jan Thiago H. de Paula Figueiredo wrote: On Sat, 30 Jan 2010 19:58:34 -0200, Jan Jirout jir...@coroptis.com wrote: Hi All, Hi! I have strange problem with URL rewriting. I'm changing path name in URLRewriterRule. In following way: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, somePath); } The above rule rewrites *all* URLs to somePath, losing any context or query parameters. You should use string manipulation to extract the original page name and then replace it with the new page name. If a request to /original/1 arrives, your should rewrite it to /new/1. You can use path.replace(/original/, /new/) to do that, for example. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: from tapestry5 quickstart to jumpstart?
That's good news. After step 8 there is a section titled Populate the database. That will do it. Regards, Geoff On 31/01/2010, at 8:17 AM, faye alaska wrote: Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 20 more Thanks again for helping. Faye Geoff Callender-2 wrote: Hi Faye, What problem are you having getting jumpstart to work? The installation instructions have been tested by many, many people, but maybe there's something we missed. Regards, Geoff On 29/01/2010, at 8:16 PM, faye alaska wrote: Hello, I am new to tapestry5 and I followed http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29, which was an awesome direction to get tapestry5 quickstart working. I also downloaded jumpstart, but unfortunately could not successfully get it to work. The examples in jumpstart are very cool, now I am wondering if there is a tutorial or some information on how to start from the tapestry quickstart to get openejb, hibernate, with hsqldb set up to try some of the examples in the jumpstart. -- that would certainly help me a lot to get going using tapestry5 for my project. Thanks a lot. I am really excited about learning/using tapestry... Thanks a bunch! -- View this message in context: http://old.nabble.com/from-tapestry5-quickstart-to-jumpstart--tp27367758p27367758.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:
Re: [ANNOUNCEMENT] Introducing Tynamo!
Nice project. Since there is conversational scope already, is there any plan to include application scope to Tynamo future roadmap as well? Kalle Korhonen-2 wrote: We are pleased to officially introduce Tynamo project and announce our first releases and immediate availability of tapestry-model, tapestry-hibernate-seedentity, tapestry-conversations and tynamo-archetype modules. Tynamo is a continuation of Trails framework and is based on Tapestry 5. Tynamo features: * tapestry-model provides a model-driven development and a CRUD framework for Tapestry 5 * tapestry-hibernate-seedentity allows you to seed your database in an object-oriented manner * tapestry-conversations provide a conversational scope Get your hands dirty now and try out Tynamo's archetype, following our Quick start (http://tynamo.org/Quick+start). Tynamo project home is at http://tynamo.org. Welcome! Feel free to link to us, we are just getting started and we have many other modules, such as security and REST, waiting under our wings so stay tuned for more releases! Meet us via IRC at #tynamo on irc.codehaus.org or subscribe to u...@tynamo.codehaus.org at http://xircles.codehaus.org/my/email/subscriptions to stay up-to-date. Enjoy, Tynamo team - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/-ANNOUNCEMENT--Introducing-Tynamo%21-tp27096020p27388743.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: from tapestry5 quickstart to jumpstart?
Hi Geoff, I read in several threads about conflicts of OpenEJB and Hibernate on ASM. I am wondering how you got around it or was it an old issue to worry about. I did follow the populate the database Drag the data_util.xml file to the Ant view and run its target reset-database-hsqldb-prompted. It will prompt you to confirm., I got no errors but still get there is not data in the web application. I will dig more to see where I miss again... Buildfile: C:\1jumpstart\jumpstart-4.5.2\data_util.xml reset-database-hsqldb-prompted: reset-database-hsqldb: replace-hsqldb-files-unless-for-jboss: [copy] Copying 1 file to C:\1jumpstart\openejb-3.1.1\data\hsqldb [echo] hsqldb has been reset in ../openejb-3.1.1/data/hsqldb/. replace-jumpstartdb-files-if-for-jboss: BUILD SUCCESSFUL Total time: 4 seconds Jumpstart is great project and teaching tool. Thank you! Regards, Faye Geoff Callender-2 wrote: That's good news. After step 8 there is a section titled Populate the database. That will do it. Regards, Geoff On 31/01/2010, at 8:17 AM, faye alaska wrote: Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 20 more Thanks again for helping. Faye Geoff Callender-2 wrote: Hi Faye, What problem are you having getting jumpstart to work? The installation instructions have been tested by many, many people, but maybe there's something we missed. Regards, Geoff On 29/01/2010, at 8:16 PM, faye alaska wrote: Hello, I am new to tapestry5 and I followed
Re: from tapestry5 quickstart to jumpstart?
another observation is that, In the installation, it says: In Eclipse, open the data_util.properties file and modify the properties hsqldb.data.dir and hsqldb.jar.dir. Use relative paths eg. ../openejb-3.1.1/data/hsqldb and ../openejb-3.1.1/lib I didn't see a hsqldb directory under ../openejb-3.1.1/data/, so I created an hsqldb directory, but executing the reset-database-hsqldb-prompted still didn't copy anything into this directory even though it reports that a file was copied over. I am wondering what I did wrong... Buildfile: C:\1jumpstart\jumpstart-4.5.2\data_util.xml reset-database-hsqldb-prompted: reset-database-hsqldb: replace-hsqldb-files-unless-for-jboss: [copy] Copying 1 file to C:\1jumpstart\openejb-3.1.1\data\hsqldb [echo] hsqldb has been reset in ../openejb-3.1.1/data/hsqldb/. replace-jumpstartdb-files-if-for-jboss: BUILD SUCCESSFUL Total time: 4 seconds Geoff Callender-2 wrote: That's good news. After step 8 there is a section titled Populate the database. That will do it. Regards, Geoff On 31/01/2010, at 8:17 AM, faye alaska wrote: Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 20 more Thanks again for helping. Faye Geoff Callender-2 wrote: Hi Faye, What problem are you having getting jumpstart to work? The installation instructions have been tested by many, many people, but maybe there's something we missed. Regards, Geoff On 29/01/2010, at 8:16 PM, faye alaska wrote: Hello, I am new to tapestry5 and I followed
Re: [ANNOUNCEMENT] Introducing Tynamo!
Application scope? Why not just use a static property? Kalle On Sat, Jan 30, 2010 at 3:53 PM, sodium sodiu...@yahoo.com wrote: Nice project. Since there is conversational scope already, is there any plan to include application scope to Tynamo future roadmap as well? Kalle Korhonen-2 wrote: We are pleased to officially introduce Tynamo project and announce our first releases and immediate availability of tapestry-model, tapestry-hibernate-seedentity, tapestry-conversations and tynamo-archetype modules. Tynamo is a continuation of Trails framework and is based on Tapestry 5. Tynamo features: * tapestry-model provides a model-driven development and a CRUD framework for Tapestry 5 * tapestry-hibernate-seedentity allows you to seed your database in an object-oriented manner * tapestry-conversations provide a conversational scope Get your hands dirty now and try out Tynamo's archetype, following our Quick start (http://tynamo.org/Quick+start). Tynamo project home is at http://tynamo.org. Welcome! Feel free to link to us, we are just getting started and we have many other modules, such as security and REST, waiting under our wings so stay tuned for more releases! Meet us via IRC at #tynamo on irc.codehaus.org or subscribe to u...@tynamo.codehaus.org at http://xircles.codehaus.org/my/email/subscriptions to stay up-to-date. Enjoy, Tynamo team - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://old.nabble.com/-ANNOUNCEMENT--Introducing-Tynamo%21-tp27096020p27388743.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: from tapestry5 quickstart to jumpstart?
Now I finally fixed my jumpstart as well, and it is working with database... I think I had a mismatch of where the openejb is -- I originally had the /openejb-3.1.1 directory under the jumpstart directory and tried to modify some of the files and the VM arguments, but the database could not get populated. I finally decided to follow exactly the installation instructions and put it in the same level as the jumstart project folder, and then the database got populated, and it is fully functional. Thanks everyone, for your help. Regards, Faye faye alaska wrote: another observation is that, In the installation, it says: In Eclipse, open the data_util.properties file and modify the properties hsqldb.data.dir and hsqldb.jar.dir. Use relative paths eg. ../openejb-3.1.1/data/hsqldb and ../openejb-3.1.1/lib I didn't see a hsqldb directory under ../openejb-3.1.1/data/, so I created an hsqldb directory, but executing the reset-database-hsqldb-prompted still didn't copy anything into this directory even though it reports that a file was copied over. I am wondering what I did wrong... Buildfile: C:\1jumpstart\jumpstart-4.5.2\data_util.xml reset-database-hsqldb-prompted: reset-database-hsqldb: replace-hsqldb-files-unless-for-jboss: [copy] Copying 1 file to C:\1jumpstart\openejb-3.1.1\data\hsqldb [echo] hsqldb has been reset in ../openejb-3.1.1/data/hsqldb/. replace-jumpstartdb-files-if-for-jboss: BUILD SUCCESSFUL Total time: 4 seconds Geoff Callender-2 wrote: That's good news. After step 8 there is a section titled Populate the database. That will do it. Regards, Geoff On 31/01/2010, at 8:17 AM, faye alaska wrote: Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at
Re: from tapestry5 quickstart to jumpstart?
Sorry but I have no idea! I've just tried installation from scratch and it worked, but I noticed a couple of things... * openejb-3.1.1 is no longer available, so I used openejb-3.1.2. i will have to upgrade the instructions. * You are right that initially there is no directory openejb-3.1.2/data/hsqldb/, but it's not a problem because the data_util.xml Ant script creates one if it's not there. To see exactly what Ant did, right-click on the target reset-database-hsqldb-prompted and choose Run As Ant Build..., then choose Main and put -v in Arguments Click Run. Ant will give verbose output. Cheers, Geoff On 31/01/2010, at 1:11 PM, faye alaska wrote: another observation is that, In the installation, it says: In Eclipse, open the data_util.properties file and modify the properties hsqldb.data.dir and hsqldb.jar.dir. Use relative paths eg. ../openejb-3.1.1/data/hsqldb and ../openejb-3.1.1/lib I didn't see a hsqldb directory under ../openejb-3.1.1/data/, so I created an hsqldb directory, but executing the reset-database-hsqldb-prompted still didn't copy anything into this directory even though it reports that a file was copied over. I am wondering what I did wrong... Buildfile: C:\1jumpstart\jumpstart-4.5.2\data_util.xml reset-database-hsqldb-prompted: reset-database-hsqldb: replace-hsqldb-files-unless-for-jboss: [copy] Copying 1 file to C:\1jumpstart\openejb-3.1.1\data\hsqldb [echo] hsqldb has been reset in ../openejb-3.1.1/data/hsqldb/. replace-jumpstartdb-files-if-for-jboss: BUILD SUCCESSFUL Total time: 4 seconds Geoff Callender-2 wrote: That's good news. After step 8 there is a section titled Populate the database. That will do it. Regards, Geoff On 31/01/2010, at 8:17 AM, faye alaska wrote: Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at
Re: from tapestry5 quickstart to jumpstart?
Cool. On 31/01/2010, at 3:23 PM, faye alaska wrote: Now I finally fixed my jumpstart as well, and it is working with database... I think I had a mismatch of where the openejb is -- I originally had the /openejb-3.1.1 directory under the jumpstart directory and tried to modify some of the files and the VM arguments, but the database could not get populated. I finally decided to follow exactly the installation instructions and put it in the same level as the jumstart project folder, and then the database got populated, and it is fully functional. Thanks everyone, for your help. Regards, Faye faye alaska wrote: another observation is that, In the installation, it says: In Eclipse, open the data_util.properties file and modify the properties hsqldb.data.dir and hsqldb.jar.dir. Use relative paths eg. ../openejb-3.1.1/data/hsqldb and ../openejb-3.1.1/lib I didn't see a hsqldb directory under ../openejb-3.1.1/data/, so I created an hsqldb directory, but executing the reset-database-hsqldb-prompted still didn't copy anything into this directory even though it reports that a file was copied over. I am wondering what I did wrong... Buildfile: C:\1jumpstart\jumpstart-4.5.2\data_util.xml reset-database-hsqldb-prompted: reset-database-hsqldb: replace-hsqldb-files-unless-for-jboss: [copy] Copying 1 file to C:\1jumpstart\openejb-3.1.1\data\hsqldb [echo] hsqldb has been reset in ../openejb-3.1.1/data/hsqldb/. replace-jumpstartdb-files-if-for-jboss: BUILD SUCCESSFUL Total time: 4 seconds Geoff Callender-2 wrote: That's good news. After step 8 there is a section titled Populate the database. That will do it. Regards, Geoff On 31/01/2010, at 8:17 AM, faye alaska wrote: Hi Geoff, I did get jumpstart to work. The instruction is definitely accurate. My error was indeed with step 8, Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library. my mistake was that I added the Jars to the build path rather than to the new user library which is openejb-3.1.1-lib. It is working -- thank you very much! I want to emphasize here: The installation instruction is accurate, the error is on my part when I execute it. :-) When I went to the Grid, though, it says there is no data. what do I need to do to populate the database? Thanks, Faye Geoff Callender-2 wrote: On 30/01/2010, at 9:50 AM, faye alaska wrote: Hi Geoff, Thanks for the reply! I am stuck at the very end of jumpstar -- everything worked very well till this point and technically, the instruction was still correct, maybe I am just so new to all this that I was not able to do any effective debugging... If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above. I kept checking and my arguments which I copied and pasted into the argument area, and the jar files added, and could not see where the problem is. and the following was my error message. Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Level Class Level is in openejb-3.1.1/lib/log4j-1.2.12.jar, so I suspect you need to go back to step 8 and make sure your openejb User Library contains that jar and every other jar. HTH, Geoff at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:64) at org.mortbay.log.Slf4jLog.init(Slf4jLog.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.log.Log.clinit(Log.java:53) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.addConnector(Server.java:132) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
Re: problem with component
I tried to use following code: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, request.getPath()); } When I use this code then context of component event is even lost. I didn't find way how to create SimpleRequestWrapper with component even context. This is surprising. I hate to ask, but are you really sure this is the code that is running? What you have here should be the equivalent to doing nothing. What version of tapestry are you using? Josh On Sat, Jan 30, 2010 at 2:56 PM, Jan Jirout jir...@coroptis.com wrote: Hi, thanks for answer. In my real application I change just pieces of path but it didn't work. I tried to use following code: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, request.getPath()); } When I use this code then context of component event is even lost. I didn't find way how to create SimpleRequestWrapper with component even context. Just in case when I call return request; from process method is component event context correctly passed. If you would like to see example application I can send it to conference. regards Jan Thiago H. de Paula Figueiredo wrote: On Sat, 30 Jan 2010 19:58:34 -0200, Jan Jirout jir...@coroptis.com wrote: Hi All, Hi! I have strange problem with URL rewriting. I'm changing path name in URLRewriterRule. In following way: public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, somePath); } The above rule rewrites *all* URLs to somePath, losing any context or query parameters. You should use string manipulation to extract the original page name and then replace it with the new page name. If a request to /original/1 arrives, your should rewrite it to /new/1. You can use path.replace(/original/, /new/) to do that, for example. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org