Re: tapestry-wro4j errors
It would mean we have to upgrade our libraries to Hibernate 4+ and our other Tapestry applications to 5.4. Which we will eventually, but can't at this moment. But I have been playing with 5.4 and it looks promising :) On 28/03/14 16:55, Kalle Korhonen wrote: On Fri, Mar 28, 2014 at 8:24 AM, Nathan Quirynen nat...@pensionarchitects.be wrote: I wish I could use Tapestry 5.4 already with built in features like Less, Bootstrap, ...! What prevents you from doing so? Kalle On 28/03/14 16:09, Andreas Fink wrote: Hi. This is probably just a missing dependency to commons-io http://search.maven.org/#artifactdetails|org.apache.commons|commons-io|1.3.2|jar I used tapestry-wro4j before, just for combining and minifying, without issues. Cheers, Andi. On 28 Mar 2014, at 15:59 , Nathan Quirynen nat...@pensionarchitects.be wrote: Hi, Is someone using tapestry-wro4j (0.9.8) with Tapestry 5.3.7 ? I just wanted to use it for Less transformer. I added the dependency in pom.xml: dependency groupIdcom.github.lltyk/groupId artifactIdtapestry-wro4j/artifactId version0.9.8/version /dependency Then I added a file named main.less at location src/main/webapp/css/ and added following to my page class: @Import(stylesheet = { context:css/main.less }) But get the following error: Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.input.BOMInputStream at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363) ... 110 more Someone who's using this library sucessfully and sees what I am doing wrong here? - 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 - 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: tapestry-wro4j errors
Yep, also found that, but doesn't seem to be the problem here, at least I can't find it... When I run mvn dependency:tree I only see 1 occurence for rhino: +- org.mozilla:rhino:jar:1.7R3:compile which is in the tapestry-wro4j branch On 28/03/14 17:51, Michael Gentry wrote: A quick Google search found this, which might help: https://groups.google.com/forum/#!msg/wro4j/LYmnDGEgyLI/5ibuL33Scp0J On Fri, Mar 28, 2014 at 11:24 AM, Nathan Quirynen nat...@pensionarchitects.be wrote: Thanks for the hint Apparently another dependency was pulling in commons-io:commons-io:1.4, while tapestry-wro4j needs 2.2. So I added following to my pom: dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version2.2/version /dependency Which made the error disappear, but gave me the next error: Caused by: java.lang.IllegalArgumentException: Bad language version: 180 at org.mozilla.javascript.Context.checkLanguageVersion(Context.java:772) at org.mozilla.javascript.Context.setLanguageVersion(Context.java:741) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.createContext(RhinoScriptBuilder.java:66) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.init(RhinoScriptBuilder.java:41) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.init(RhinoScriptBuilder.java:36) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.newClientSideAwareChain(RhinoScriptBuilder.java:221) at ro.isdc.wro.extensions.processor.support.less.LessCss.initScriptBuilder(LessCss.java:46) ... 113 more Guess I'll have to dig deeper in the dependency tree... I wish I could use Tapestry 5.4 already with built in features like Less, Bootstrap, ...! On 28/03/14 16:09, Andreas Fink wrote: Hi. This is probably just a missing dependency to commons-io http://search.maven.org/#artifactdetails|org.apache.commons|commons-io|1.3.2|jar I used tapestry-wro4j before, just for combining and minifying, without issues. Cheers, Andi. On 28 Mar 2014, at 15:59 , Nathan Quirynen nat...@pensionarchitects.be wrote: Hi, Is someone using tapestry-wro4j (0.9.8) with Tapestry 5.3.7 ? I just wanted to use it for Less transformer. I added the dependency in pom.xml: dependency groupIdcom.github.lltyk/groupId artifactIdtapestry-wro4j/artifactId version0.9.8/version /dependency Then I added a file named main.less at location src/main/webapp/css/ and added following to my page class: @Import(stylesheet = { context:css/main.less }) But get the following error: Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.input.BOMInputStream at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363) ... 110 more Someone who's using this library sucessfully and sees what I am doing wrong here? - 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 - 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: Package private interface loading problem
On 28/03/14 21:16, Thiago H de Paula Figueiredo wrote: On Fri, 28 Mar 2014 13:03:52 -0300, Jay Bowers j...@multicom.co.uk wrote: When I investigated I found that an exception was being thrown but never reported, basically I had an interface that was package private and that was causing an exception that was never getting reported. In this case, it seems your public interface is a subinterface of a package private one, so I'd guess your superinteface isn't that private to begin with. Tapestry-IoC creates proxies for services defined on interfaces so, so you'll run on problems when the service interface has a superinterface the proxy, which isn't created in the same package as the service interface, is created. Here is the interface that was causing the problem: /* package private - makes things go bang */ interface Bang { void whatEver(); } And here is where the Bang interface is being used (in the same package that its declared) that causes the previous exception: public class SomeOtherPojoImpl implements SomeOtherPojo { private static Logger logger = Logger.getLogger( SomeOtherPojoImpl.class ); public void dontCallMe() { logger.info( Let's create a bang... ); *Bang bang = new Bang()* { public void whatEver() { // TODO Auto-generated method stub } }; logger.info( You will never see me! ); } } Creating this instance should be (as far as I am aware) independent of the Tapestry IOC framework, although obviously its not because of classloading. Maybe this is a known limitation of the tapestry framework but I could not find reference to it in the documentation. Jay -- Multicom Products Limited is a company registered in England and Wales (Registered Number 2447353 Wales) with its registered office at 33 Victoria Street, Bristol, BS1 6AS. This email is confidential to the addressee and may contain privileged information. If you have reason to believe that you are not the intended recipient of this communication, please delete it from your system and contact the sender immediately. You are not permitted to use or copy this email or its attachments nor may you disclose the same to any third party. Unauthorised use or disclosure of this email is prohibited and may be unlawful. We reserve the right to intercept and read emails sent or received by our employees. This is to ensure compliance with our internal policies and to protect our business. If you do not wish for your communications to be subjected to such scrutiny, you should not communicate via this email system. We endeavour to exclude viruses and other malware from our data but it is the responsibility of the recipient to scan all emails and attachments for viruses before opening them. We accept no liability for any damage caused by any virus transmitted by this email. Email may not be completely secure or error free, can be intercepted or corrupted and may arrive late or not at all. Anyone who communicates with us by email accepts these risks.
Re: Package private interface loading problem
On Mon, 31 Mar 2014 05:05:29 -0300, Jay Bowers j...@multicom.co.uk wrote: Creating this instance should be (as far as I am aware) independent of the Tapestry IOC framework, although obviously its not because of classloading. That's not correct. SomeOtherPojoImpl is instantiated successfully. What fails is the creation of the service proxy, as a superinterface of the service interface is not visible for Tapestry-IoC code nor the created proxy class, which should implement the service interface, which is partly defined by a package-private interface. You're right about Tapestry-IoC not doing classloading transormations. Tapestry-core, the web framework, does classloading that, but Tapestry-IoC doesn't. Maybe this is a known limitation of the tapestry framework but I could not find reference to it in the documentation. Yep, this is a known limitation. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry-wro4j errors
Ok I got it working. After some research I found it is the tapestry-yuicompressor dependency that was causing the problems with rhino. So I solved it by just removing this dependency. On 31/03/14 09:29, Nathan Quirynen wrote: Yep, also found that, but doesn't seem to be the problem here, at least I can't find it... When I run mvn dependency:tree I only see 1 occurence for rhino: +- org.mozilla:rhino:jar:1.7R3:compile which is in the tapestry-wro4j branch On 28/03/14 17:51, Michael Gentry wrote: A quick Google search found this, which might help: https://groups.google.com/forum/#!msg/wro4j/LYmnDGEgyLI/5ibuL33Scp0J On Fri, Mar 28, 2014 at 11:24 AM, Nathan Quirynen nat...@pensionarchitects.be wrote: Thanks for the hint Apparently another dependency was pulling in commons-io:commons-io:1.4, while tapestry-wro4j needs 2.2. So I added following to my pom: dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version2.2/version /dependency Which made the error disappear, but gave me the next error: Caused by: java.lang.IllegalArgumentException: Bad language version: 180 at org.mozilla.javascript.Context.checkLanguageVersion(Context.java:772) at org.mozilla.javascript.Context.setLanguageVersion(Context.java:741) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.createContext(RhinoScriptBuilder.java:66) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.init(RhinoScriptBuilder.java:41) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.init(RhinoScriptBuilder.java:36) at ro.isdc.wro.extensions.script.RhinoScriptBuilder.newClientSideAwareChain(RhinoScriptBuilder.java:221) at ro.isdc.wro.extensions.processor.support.less.LessCss.initScriptBuilder(LessCss.java:46) ... 113 more Guess I'll have to dig deeper in the dependency tree... I wish I could use Tapestry 5.4 already with built in features like Less, Bootstrap, ...! On 28/03/14 16:09, Andreas Fink wrote: Hi. This is probably just a missing dependency to commons-io http://search.maven.org/#artifactdetails|org.apache.commons|commons-io|1.3.2|jar I used tapestry-wro4j before, just for combining and minifying, without issues. Cheers, Andi. On 28 Mar 2014, at 15:59 , Nathan Quirynen nat...@pensionarchitects.be wrote: Hi, Is someone using tapestry-wro4j (0.9.8) with Tapestry 5.3.7 ? I just wanted to use it for Less transformer. I added the dependency in pom.xml: dependency groupIdcom.github.lltyk/groupId artifactIdtapestry-wro4j/artifactId version0.9.8/version /dependency Then I added a file named main.less at location src/main/webapp/css/ and added following to my page class: @Import(stylesheet = { context:css/main.less }) But get the following error: Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.input.BOMInputStream at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363) ... 110 more Someone who's using this library sucessfully and sees what I am doing wrong here? - 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 - 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