【T5】who can explain the usage of @Marker(some.class)?
hi,all i am studying tapestry-ioc currently,i encounter an annotation @Marker,but i cant undersand what does it is used for? can explain to me ?thank you very much!! Oliver Lee 2008-07-17
question about recursion in a component.
Hallo everybody. My question is about how could I implement a recursion in tapestry 5? exactly in a tree component. I have a collection of nodes with a Node father and a Collection children, then in the tml I have a loop and check if the actual node is father or not, but I want execute again the same control for each children. t:loop t:source=source t:value=item t:if t:test=father tr td width=1% valign=top style=cursor:pointer img src=images/plus.gif border=0 onclick=javascript:UTILS_Change_Display('${item.identifier}')/ /td td width=1% valign=top img src=images/folder.gif border=0 alt=${item.identifier}/ /td td width=1% nowrap=true valign=top onClick=javascript:UTILS_Change_Color('name_${item.identifier}', 'black', '#ff'); span id=name_${item.identifier} style=cursor:pointer ${item.name} /span /td td width=* valign=top div id=${item.identifier} name=${item.identifier} style=display:none table border=0 cellspacing=0 cellpadding=0 Here I want implements the recursion (at the momment I have another loop): t:loop t:source=item.children t:value=item tr td width=1% /td td width=1% valign=top style=padding-right:1mm img src=images/folder.gif border=0/ /td td valign=top ${item.name} /td /tr /t:loop /table /div #160; /td /tr /t:if /t:loop I'm new in tapestry and I don't know if is possible or not. Thank you very much in advanced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] crating component libraries
Is there a description somewhere on how to create component libraries in tapestry5? I had a look at the users guide an the into the wiki but did not find a suitable description. Thnaks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] crating component libraries
create a project following the t5 package name conventions eg. my.package.structure my.package.structure.pages my.package.structure.components my.package.structure.mixins create a MyModule class that is referenced by the MANIFEST.MF file and contains a LibraryMapping contribution public void contributeComponentClassResolver(ConfigurationLibraryMapping configuration) { configuration.add(new LibraryMapping(somePrefix, my.package.structure)); } done :) g, kris Andy Pahne [EMAIL PROTECTED] 17.07.2008 11:28 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema [T5] crating component libraries Is there a description somewhere on how to create component libraries in tapestry5? I had a look at the users guide an the into the wiki but did not find a suitable description. Thnaks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 【T5】who can explain the usage of @ Marker(some.class)?
have your read http://tapestry.apache.org/tapestry5/tapestry-ioc/cookbook/basics.html ? Oliver Lee [EMAIL PROTECTED] 17.07.2008 09:05 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users@tapestry.apache.org Kopie Thema 【T5】who can explain the usage of @Marker(some.class)? hi,all i am studying tapestry-ioc currently,i encounter an annotation @Marker,but i cant undersand what does it is used for? can explain to me ?thank you very much!! Oliver Lee 2008-07-17
Re: [T5] crating component libraries
yes, that worked, now that you helped me out, I found a wiki page: http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourOwnComponentLibrary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Class not found exception
I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. *
Re: server hangs with parallel requests
This problem still persists with jetty 6.1.11. I have noticed that there is a FAIL onLoad postcon.erp.modules.pages.AddressDetail1BeanInfo Message from org.apache.tapestry5.internal.services.InternalModule.ComponentInstantiatorSource in the log, which refers to a Tapestry-derived class of my app. Any ideas on how to circumvent this loading problem? Thanks, Udo. Original-Nachricht Datum: Fri, 4 Jul 2008 11:22:11 +0200 Von: Sven Homburg [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: server hangs with parallel requests i had a similar problem after updating my environment to linux/java-1.6.0_6/jetty-6.1.11 it works for me 2008/7/4 Udo Abel [EMAIL PROTECTED]: Hi, I have a page with 4 iframes loading 4 different pages from a tapestry 5 application. In 2 of 3 cases, th server hangs and does not return any page. When I first load 1 page, subsequent loading of the 4-page frame succeeds. Is there a possible synchronization problem? The stacks of the for page load tasks btpool0-1 to -4 and the system tasks in eclipse is appended here. Im using eclipse 3.3.2 woth java 1.6.0_6and jetty 6.1.6. Thread [btpool0-0 - Acceptor0 [EMAIL PROTECTED]:8080] (Suspended) EPollArrayWrapper.epollWait(long, int, long, int) line: not available [native method] EPollArrayWrapper.poll(long) line: 215 EPollSelectorImpl.doSelect(long) line: 65 EPollSelectorImpl(SelectorImpl).lockAndDoSelect(long) line: 69 EPollSelectorImpl(SelectorImpl).select(long) line: 80 SelectorManager$SelectSet.doSelect() line: 406 SelectChannelConnector$1(SelectorManager).doSelect(int) line: 166 SelectChannelConnector.accept(int) line: 124 AbstractConnector$Acceptor.run() line: 515 BoundedThreadPool$PoolThread.run() line: 450 Daemon Thread [Timer-0] (Suspended) Object.wait(long) line: not available [native method] TimerThread.mainLoop() line: 509 [local variables unavailable] TimerThread.run() line: 462 [local variables unavailable] Thread [btpool0-1] (Suspended) ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).checkCerts(String, CodeSource) line: 751 ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).preDefineClass(String, ProtectionDomain) line: 487 ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 614 GeneratedMethodAccessor3.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 ClassPool.toClass2(Method, ClassLoader, Object[]) line: 965 ClassFactoryClassPool(ClassPool).toClass(CtClass, ClassLoader, ProtectionDomain) line: 947 CtClassSourceImpl.createClass(CtClass) line: 92 ClassFabImpl(AbstractFab).createClass() line: 89 InternalClassTransformationImpl.createInstantiator() line: 1448 ComponentClassTransformerImpl.createInstantiator(String) line: 181 $ComponentClassTransformer_11aed3dc4bb.createInstantiator(String) line: not available ComponentInstantiatorSourceImpl.findInstantiator(String) line: 240 $ComponentInstantiatorSource_11aed3dc4ae.findInstantiator(String) line: not available PageElementFactoryImpl.newComponentElement(Page, ComponentPageElement, String, String, String, String, Location) line: 211 $PageElementFactory_11aed3dc4e5.newComponentElement(Page, ComponentPageElement, String, String, String, String, Location) line: not available PageLoaderProcessor.startComponent(StartComponentToken) line: 656 PageLoaderProcessor.loadTemplateForComponent(ComponentPageElement) line: 501 PageLoaderProcessor.workComponentQueue() line: 808 PageLoaderProcessor.loadPage(String, String, Locale) line: 393 PageLoaderImpl.loadPage(String, Locale) line: 59 $PageLoader_11aed3dc4e3.loadPage(String, Locale) line: not available PagePoolCache.checkout() line: 210 PagePoolImpl.checkout(String) line: 107 $PagePool_11aed3dc4e2.checkout(String) line: not available RequestPageCacheImpl.get(String) line: 43 $RequestPageCache_11aed3dc4e1.get(String) line: not available $RequestPageCache_11aed3dc4d9.get(String) line: not available RequestSecurityManagerImpl.checkForInsecureRequest(String) line: 59 $RequestSecurityManager_11aed3dc4d8.checkForInsecureRequest(String) line: not available TapestryModule$28.handle(PageRenderRequestParameters, PageRenderRequestHandler) line: 1670 $PageRenderRequestHandler_11aed3dc4dc.handle(PageRenderRequestParameters) line: not available $PageRenderRequestHandler_11aed3dc4d0.handle(PageRenderRequestParameters)
[T5] OnActivate methods order call with super classes
Hello, With 5.13 and 5.14, I have a strange behavior when I add an onActivate method in a super class. The methods are not called in the same order in my child class. public class ParentPage { } public class ChildPage extends ParentPage { public void onActivate(Entity e) { System.out.print(Hello ); } public void onActivate() { System.out.print(World ); } } Like this, I get Hello World. Now, if I had a onActivate() method to my ParentPage, I get World Hello. Tapestry doesn't call the methods in the same order. Is it a bug or did I misunderstand documentation ? Thanks, Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class not found exception
Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {-org.mortbay.jetty.plus.jaas., org.mortbay.jetty.}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5]Could not load org.apache.tapestry5.ioc.internal.services.ServiceMessages when run the JumpStart example!
hi,all i do everything following the instruction of http://files.doublenegative.com.au/jumpstart/installation.html i got following error message: 008-07-17 22:31:36,609 INFO [org.apache.catalina.loader.WebappClassLoader] Illegal access: this web application instance has been stopped already. Could not load org.apache.tapestry5.ioc.internal.services.ServiceMessages. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:59) at $InternalRequestGlobals_11b316ea383._delegate($InternalRequestGlobals_11b316ea383.java) at $InternalRequestGlobals_11b316ea383.storeClassLoaderException($InternalRequestGlobals_11b316ea383.java) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:179) at javassist.Loader.findClass(Loader.java:340) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:78) at javassist.Loader.loadClass(Loader.java:311) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:252) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.forceSuperclassTransform(ComponentInstantiatorSourceImpl.java:220) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:167) at javassist.Loader.findClass(Loader.java:340) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:78) at javassist.Loader.loadClass(Loader.java:311) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:252) at org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findInstantiator(ComponentInstantiatorSourceImpl.java:238) at $ComponentInstantiatorSource_11b316ea375.findInstantiator($ComponentInstantiatorSource_11b316ea375.java) at org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:211) at $PageElementFactory_11b316ea3a5.newComponentElement($PageElementFactory_11b316ea3a5.java) at org.apache.tapestry5.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:656) at org.apache.tapestry5.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:501) at org.apache.tapestry5.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:808) at org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:393) at org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59) at $PageLoader_11b316ea3a3.loadPage($PageLoader_11b316ea3a3.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107) at $PagePool_11b316ea3a2.checkout($PagePool_11b316ea3a2.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43) at $RequestPageCache_11b316ea3a1.get($RequestPageCache_11b316ea3a1.java) at $RequestPageCache_11b316ea3a0.get($RequestPageCache_11b316ea3a0.java) at org.apache.tapestry5.internal.services.LinkFactoryImpl.createPageLink(LinkFactoryImpl.java:273) at $LinkFactory_11b316ea3a6.createPageLink($LinkFactory_11b316ea3a6.java) at org.apache.tapestry5.internal.structure.PageImpl.createPageLink(PageImpl.java:161) at org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.createPageLink(InternalComponentResourcesImpl.java:133) at org.apache.tapestry5.corelib.components.PageLink.beginRender(PageLink.java:61) at org.apache.tapestry5.corelib.components.PageLink.beginRender(PageLink.java) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11$1.run(ComponentPageElementImpl.java:334) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:895) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:50) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11.render(ComponentPageElementImpl.java:338) at
RE: Class not found exception
Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a run class. Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {-org.mortbay.jetty.plus.jaas., org.mortbay.jetty.}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. - 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]
RE: Class not found exception
I'm not sure how you run jetty from eclipse with jetty runner. Is it an eclipse plugin? -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:10 To: Tapestry users Subject: RE: Class not found exception Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a run class. Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {-org.mortbay.jetty.plus.jaas., org.mortbay.jetty.}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class not found exception
See: http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun Martijn On Thu, 2008-07-17 at 14:13 +0100, Newham, Cameron wrote: I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class not found exception
Typo on my part. I meant Run Jetty Run: http://code.google.com/p/run-jetty-run/ which is an Eclipse plugin. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:23 To: Tapestry users Subject: RE: Class not found exception I'm not sure how you run jetty from eclipse with jetty runner. Is it an eclipse plugin? -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:10 To: Tapestry users Subject: RE: Class not found exception Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a run class. Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {-org.mortbay.jetty.plus.jaas., org.mortbay.jetty.}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT
RE: Class not found exception
Perfect. Thanks Martijn. -Original Message- From: Martijn Brinkers (List) [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:29 To: Tapestry users Subject: Re: Class not found exception See: http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun Martijn On Thu, 2008-07-17 at 14:13 +0100, Newham, Cameron wrote: I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * - 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]
RE: Class not found exception
I don't think run jetty run supports configuration by a jetty.xml. The author says in his Usage instructions There aren't many options, just the web application directory, the context and the port. I intentionally keep it basic so that it will be easy to use and maintain; if you need anything more fancy, use one of the other Eclipse app server plugins, or do what I often do: create a start up class in your project. Not sure where that leaves you. Sorry I can't be more help. The basic problem is the same. You need to tell Jetty that you don't want it to hide the slf4j server classes. One way of doing that is setting the ServerClasses property as Ben did below. How you set that property with run-jetty-run is beyond me. Sorry. If you look at the wiki post linked to in my post you can just cut and paste the code into a run class and you will be up and running very quickly indeed. I agree with your shoulds...but maybe ditching run-jetty-run would help. Cheers Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:30 To: Tapestry users Subject: RE: Class not found exception Typo on my part. I meant Run Jetty Run: http://code.google.com/p/run-jetty-run/ which is an Eclipse plugin. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:23 To: Tapestry users Subject: RE: Class not found exception I'm not sure how you run jetty from eclipse with jetty runner. Is it an eclipse plugin? -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:10 To: Tapestry users Subject: RE: Class not found exception Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a run class. Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {-org.mortbay.jetty.plus.jaas., org.mortbay.jetty.}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a Jetty Error. Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: Set name=parentLoaderPrioritytrue/Set I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you
Re: T5: Stop Receiving Request
This is interesting, is there a way to know before the file is sent the size of coming upload? From the client side you do not have access to the file that is going to be uploaded, all you can do is inspect the POST on the server side. I believe that most modern browsers will send the content-length along with the file so that it can be rejected before much data has been read off the wire. Tapestry is using http://commons.apache.org/fileupload, you can read up on what's possible with this library. Josh On Wed, Jul 16, 2008 at 5:25 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Josh, This is interesting, is there a way to know before the file is sent the size of coming upload? this will be very handy to warn the user for a long file uploading operation or just simply rejects the upload as the file size is beyond the allowable size. Angelo joshcanfield wrote: By the time you are checking the file size the whole stream has already been read in by the MultipartServletRequestFilter. The default is to have unlimited upload size. You can add configuration to change the limit. I believe this will work, but I have not tested it. public static void contributeApplicationDefaults(MappedConfigurationString, String configuration) { configuration.add(UploadSymbols.FILESIZE_MAX, 1); } If you want to have a different max upload size per form, then I'd guess you'd want to replace/supplement the MultiServletRequestFilter. Josh On Wed, Jul 16, 2008 at 3:58 AM, Martin Kersten [EMAIL PROTECTED] wrote: Hi User-Group, I expirence the following Problem: Using Tapestry + GWT I send a UploadRequest to a Tapestry Page. Once the Upload is processed the HTTP-Page containing 'OK' is returned, otherwise the Name of the Exception/Reason. On the server side the T5-page checks the size of the request-payload and response with a OversizedException. This exception is send to the client. This works very well with a single problem: Sending 300MB of Data the browser blocks until all 300MB are Transmitted but the page/server immediatly (used sysout to ensure) Rejects the transmittion by writing the OversizedException to response (MarkupWriter). I tried several things to stop the request upload from browser. I tried to open the content-input-stream of the request and Immediatly close this stream. With virtually no effect. Is there anyway to stop/break/destroy an request-upload of that size? Since all three major browsers (Opera, FireFox, IE) behave in the same way I guess the problem lies on Server-Side. So who is to blame for? Tapestry? (Dont think so), Tomcat?, Browsers? (In Short: You want to upload 300MB? I just read 10K and Say No To you!) Cheers, Martin (Kersten) PS: This is the Ajax way of doing things. The form (upload) is send to the server and the target of the response is an 'hidden' Iframe. PSS: If it is the browser I just would use the Upload Progress Listener- Mechanis I use to get the progress of the current upload. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. -- View this message in context: http://www.nabble.com/tapestry-hibernate-problem-tp18483952p18499364.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
T5: Only one decorateRequestExceptionHandler is used even though I have defined more than one
I have two submodules and in each submodule I have defined a decorateRequestExceptionHandler. The problem is that only one is used. For only the first submodule that defines the decorateRequestExceptionHandler method the decorate method is called. If I add decorateRequestExceptionHandler to the 'main' module only the decorateRequestExceptionHandler method of the main module is called. I thought it was possible to have multiple decorators for the same service. From the Tapestry docs It is also common to have multiple decorations on a single service. In this case, a whole stack of interceptor objects will be created, each delegating to the next. Tapestry IoC provides control over the order in which such decorations occur. So is this a bug? Thanks, Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: server hangs with parallel requests
try to use java 1.5 - it helps -- View this message in context: http://www.nabble.com/server-hangs-with-parallel-requests-tp18275656p18522909.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]