|
With or without (by comment out in pom.xml) yui-compressor, getting the following minimizing exception.
Application 'app' (version 1.0-SNAPSHOT) startup time: 274 ms to build IoC Regis try, 862 ms overall. ______ __ ____ /_ __/__ ____ ___ ___ / /_______ __ / __/ / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \ /_/ \_,_/ .__/\__/___/\__/_/ \_, / /____/ /_/ /___/ 5.3.2 [INFO] AppModule.TimingFilter Request time: 1352 ms [INFO] AppModule.TimingFilter Request time: 87 ms [ERROR] AssetsModule.ResourceMinimizer Exception minimizing context:js/addCheckBoxLabelToKeywords.js: String index out of range: 351 java.lang.StringIndexOutOfBoundsException: String index out of range: 351 at java.lang.String.substring(String.java:1934) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceString(JavaScriptCompressor.java:267) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:330) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533) at org.apache.tapestry5.internal.yuicompressor.JavaScriptResourceMinimizer.doMinimize(JavaScriptResourceMinimizer.java:98) at org.apache.tapestry5.internal.yuicompressor.AbstractMinimizer$1.perform(AbstractMinimizer.java:67) at org.apache.tapestry5.internal.TapestryInternalUtils$5.run(TapestryInternalUtils.java:582) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:51) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:48) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:47) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:76) at org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java:1116) at org.apache.tapestry5.internal.TapestryInternalUtils.performIO(TapestryInternalUtils.java:576) at org.apache.tapestry5.internal.yuicompressor.AbstractMinimizer.minimize(AbstractMinimizer.java:61) at org.apache.tapestry5.internal.services.assets.MasterResourceMinimizer.minimize(MasterResourceMinimizer.java:44) at $ResourceMinimizer_1addddc2e7b3.minimize(Unknown Source) at org.apache.tapestry5.internal.services.assets.SRSMinimizingInterceptor.getStreamableResource(SRSMinimizingInterceptor.java:44) at org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor.getStreamableResource(SRSCachingInterceptor.java:56) at org.apache.tapestry5.internal.services.assets.SRSCompressingInterceptor.getStreamableResource(SRSCompressingInterceptor.java:40) at org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor.getStreamableResource(SRSCachingInterceptor.java:56) at $StreamableResourceSource_1addddc2e7b1.getStreamableResource(Unknown Source) at org.apache.tapestry5.internal.services.ResourceStreamerImpl$1.perform (ResourceStreamerImpl.java:93) at org.apache.tapestry5.internal.TapestryInternalUtils$5.run(TapestryInt ernalUtils.java:582) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(Opera tionTrackerImpl.java:51) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(Opera tionTrackerImpl.java:48) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(Operati onTrackerImpl.java:74) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationT rackerImpl.java:47) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerTh readOperationTracker.java:76) at org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java: 1116) at org.apache.tapestry5.internal.TapestryInternalUtils.performIO(Tapestr yInternalUtils.java:576) at org.apache.tapestry5.internal.services.ResourceStreamerImpl.streamRes ource(ResourceStreamerImpl.java:86) at $ResourceStreamer_1addddc2e7af.streamResource(Unknown Source) at org.apache.tapestry5.internal.services.assets.ContextAssetRequestHand ler.handleAssetRequest(ContextAssetRequestHandler.java:53) at org.apache.tapestry5.internal.services.AssetDispatcher.dispatch(Asset Dispatcher.java:114) at $Dispatcher_1addddc2e7a8.dispatch(Unknown Source) at $Dispatcher_1addddc2e7ac.dispatch(Unknown Source) at $Dispatcher_1addddc2e7a6.dispatch(Unknown Source) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator .service(TapestryModule.java:302) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(Req uestErrorFilter.java:26) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule .java:902) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule .java:892) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(Stat icFilesFilter.java:90) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.ideademo.piko.services.AppModule$1.service(AppModule.java:98) at $RequestFilter_1addddc2e7a2.service(Unknown Source) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at $RequestHandler_1addddc2e79b.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandle rTerminator.service(TapestryModule.java:253) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java :53) at $HttpServletRequestHandler_1addddc2e79d.service(Unknown Source) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(Ign oredPathsFilter.java:62) at $HttpServletRequestFilter_1addddc2e799.service(Unknown Source) at $HttpServletRequestHandler_1addddc2e79d.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule .java:852) at $HttpServletRequestHandler_1addddc2e79d.service(Unknown Source) at $HttpServletRequestHandler_1addddc2e798.service(Unknown Source) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:242) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:203) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:562) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:108) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 558) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:379) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :242) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:259) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:237) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:281) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:662) [INFO] AppModule.TimingFilter Request time: 188 ms [ERROR] AssetsModule.ResourceMinimizer Exception minimizing context:js/jquery-1. 7.2.min.js: java.lang.RuntimeException java.lang.RuntimeException at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNum ber(JavaScriptCompressor.java:299) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScri ptCompressor.java:336) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScr iptCompressor.java:533) at org.apache.tapestry5.internal.yuicompressor.JavaScriptResourceMinimiz er.doMinimize(JavaScriptResourceMinimizer.java:98) at org.apache.tapestry5.internal.yuicompressor.AbstractMinimizer$1.perfo rm(AbstractMinimizer.java:67) at org.apache.tapestry5.internal.TapestryInternalUtils$5.run(TapestryInt ernalUtils.java:582) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(Opera tionTrackerImpl.java:51) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(Opera tionTrackerImpl.java:48) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(Operati onTrackerImpl.java:74) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationT rackerImpl.java:47) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerTh readOperationTracker.java:76) at org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java: 1116) at org.apache.tapestry5.internal.TapestryInternalUtils.performIO(Tapestr yInternalUtils.java:576) at org.apache.tapestry5.internal.yuicompressor.AbstractMinimizer.minimiz e(AbstractMinimizer.java:61) at org.apache.tapestry5.internal.services.assets.MasterResourceMinimizer .minimize(MasterResourceMinimizer.java:44) at $ResourceMinimizer_1addddc2e7b3.minimize(Unknown Source) at org.apache.tapestry5.internal.services.assets.SRSMinimizingIntercepto r.getStreamableResource(SRSMinimizingInterceptor.java:44) at org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor.g etStreamableResource(SRSCachingInterceptor.java:56) at org.apache.tapestry5.internal.services.assets.SRSCompressingIntercept or.getStreamableResource(SRSCompressingInterceptor.java:40) at org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor.g etStreamableResource(SRSCachingInterceptor.java:56) at $StreamableResourceSource_1addddc2e7b1.getStreamableResource(Unknown Source) at org.apache.tapestry5.internal.services.ResourceStreamerImpl$1.perform (ResourceStreamerImpl.java:93) at org.apache.tapestry5.internal.TapestryInternalUtils$5.run(TapestryInt ernalUtils.java:582) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(Opera tionTrackerImpl.java:51) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(Opera tionTrackerImpl.java:48) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(Operati onTrackerImpl.java:74) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationT rackerImpl.java:47) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerTh readOperationTracker.java:76) at org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java: 1116) at org.apache.tapestry5.internal.TapestryInternalUtils.performIO(Tapestr yInternalUtils.java:576) at org.apache.tapestry5.internal.services.ResourceStreamerImpl.streamRes ource(ResourceStreamerImpl.java:86) at $ResourceStreamer_1addddc2e7af.streamResource(Unknown Source) at org.apache.tapestry5.internal.services.assets.ContextAssetRequestHand ler.handleAssetRequest(ContextAssetRequestHandler.java:53) at org.apache.tapestry5.internal.services.AssetDispatcher.dispatch(Asset Dispatcher.java:114) at $Dispatcher_1addddc2e7a8.dispatch(Unknown Source) at $Dispatcher_1addddc2e7ac.dispatch(Unknown Source) at $Dispatcher_1addddc2e7a6.dispatch(Unknown Source) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator .service(TapestryModule.java:302) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(Req uestErrorFilter.java:26) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule .java:902) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule .java:892) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(Stat icFilesFilter.java:90) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at org.ideademo.piko.services.AppModule$1.service(AppModule.java:98) at $RequestFilter_1addddc2e7a2.service(Unknown Source) at $RequestHandler_1addddc2e7a7.service(Unknown Source) at $RequestHandler_1addddc2e79b.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandle rTerminator.service(TapestryModule.java:253) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java :53) at $HttpServletRequestHandler_1addddc2e79d.service(Unknown Source) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(Ign oredPathsFilter.java:62) at $HttpServletRequestFilter_1addddc2e799.service(Unknown Source) at $HttpServletRequestHandler_1addddc2e79d.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule .java:852) at $HttpServletRequestHandler_1addddc2e79d.service(Unknown Source) at $HttpServletRequestHandler_1addddc2e798.service(Unknown Source) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:242) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:203) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:562) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:108) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 558) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:379) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :242) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:259) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:281) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:662) [INFO] AppModule.TimingFilter Request time: 330 ms [INFO] AppModule.TimingFilter Request time: 1 ms [INFO] AppModule.TimingFilter Request time: 1 ms [INFO] AppModule.TimingFilter Request time: 2 ms [INFO] AppModule.TimingFilter Request time: 2 ms [INFO] AppModule.TimingFilter Request time: 2 ms |
|
Tried compressing it...
java -jar yuicompressor-2.4.7.jar addCheckBoxLabelToKeywords.js -o addCheckBoxLabelToKeywords-min.js Still same failure. Works in Jetty. Tomcat is failing on this... |
|
ah dude, there was a resolution to this last week i think.
check back through the last 10 days of this list. IIRC, if you can remove yui from your dependencies, you should be right On 23/04/2012, at 7:47 PM, netdawg wrote: > Tried compressing it... > > java -jar yuicompressor-2.4.7.jar addCheckBoxLabelToKeywords.js -o > addCheckBoxLabelToKeywords-min.js > > Still same failure. > > > Works in Jetty. Tomcat is failing on this... > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658831.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Thanks, Chris. Yes, I whacked yui from pom. Still same issue. I put the script into my tml. But it is failing on jquery-1.7.2.min.js as well.
|
|
The only way I could fix this when I came across this problem was to repackage the whole yui jar to contain most of rhino.
http://stackoverflow.com/questions/6652550/yui-compressor-stringindexoutofboundsexception-on-jboss Let me know if you need the package and I'll see if I can send it to you. Luke On 23 Apr 2012, at 11:06, netdawg wrote: > Thanks, Chris. Yes, I whacked yui from pom. Still same issue. I put the > script into my tml. But it is failing on jquery-1.7.2.min.js as well. > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5658865.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Thanks, Luke. Yes, please...
net.dawg at yahoo Did I have to install into maven repository (would appreciate version etc)? And/Or do I use it to compress? BTW, this is a fatal issue for me...copying the script, yes all 10K lines of jquery into tml within <script> tags gives... An unexpected application exception has occurred. Exception assembling root component of page assessment/Edit: Failure parsing template classpath:...: The content of elements must consist of well-formed character data or markup. Seems like the only way to include is by file reference...but then we have this minimizer issue... |
|
On 23 Apr 2012, at 11:25, netdawg wrote:
> Thanks, Luke. Yes, please... I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar > > net.dawg at yahoo > > Did I have to install into maven repository (would appreciate version etc)? > And/Or do I use it to compress? <groupId>yuicompressorbugfix</groupId> <artifactId>yuicompressor-rhino-bugfix</artifactId> <version>5.0</version> If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html You'll also need to exclude the yuicompressor version that tapestry pulls in: <dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-yuicompressor</artifactId> <version>5.3.2</version> <exclusions> <exclusion> <groupId>com.yahoo.platform.yui</groupId> <artifactId>yuicompressor</artifactId> </exclusion> </exclusions> </dependency> This should work, Luke --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Indeed that fixed the issue.
Much Thanks, Luke. This community is simply great! |
|
Specifically, install the jar into repository as follows:
mvn install:install-file -Dfile=yuicompressor-rhino-bugfix-5.0.jar -DgroupId=yuicompressorbugfix -DartifactId=yuicompressor-rhino-bugfix -Dversion=5.0 -Dpackaging=jar Added/replaced the following in pom.xml <dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-yuicompressor</artifactId> <version>${tapestry-release-version}</version> <exclusions> <exclusion> <groupId>com.yahoo.platform.yui</groupId> <artifactId>yuicompressor</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>yuicompressorbugfix</groupId> <artifactId>yuicompressor-rhino-bugfix</artifactId> <version>5.0</version> </dependency> |
|
In reply to this post by netdawg
Pleased it worked.
Luke On 23 Apr 2012, at 17:23, netdawg wrote: > Indeed that fixed the issue. > > Much Thanks, Luke. > > This community is simply great! > > > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/AssetsModule-ResourceMinimizer-Exception-yui-compressor-tp5658826p5659834.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
In reply to this post by Luke Wilson
On Mon, Apr 23, 2012 at 4:37 AM, Luke Wilson <[hidden email]> wrote:
> On 23 Apr 2012, at 11:25, netdawg wrote: >> Thanks, Luke. Yes, please... > I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar Did you actually change any of the code or you just included the same version of rhino in the same jar? >> Did I have to install into maven repository (would appreciate version etc)? >> And/Or do I use it to compress? > <groupId>yuicompressorbugfix</groupId> > <artifactId>yuicompressor-rhino-bugfix</artifactId> > <version>5.0</version> > If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html > You'll also need to exclude the yuicompressor version that tapestry pulls in: > <dependency> > <groupId>org.apache.tapestry</groupId> > <artifactId>tapestry-yuicompressor</artifactId> > <version>5.3.2</version> > <exclusions> > <exclusion> > <groupId>com.yahoo.platform.yui</groupId> > <artifactId>yuicompressor</artifactId> > </exclusion> > </exclusions> > </dependency> Just FYI, the usual way of doing this is by adding a suffix to the version (such 1.2.3-mycompanyfixes) and leaving GA coordinates intact. That way you don't have to exclude other versions of the same library. Kalle --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
On 23 Apr 2012, at 17:58, Kalle Korhonen wrote:
> On Mon, Apr 23, 2012 at 4:37 AM, Luke Wilson <[hidden email]> wrote: >> On 23 Apr 2012, at 11:25, netdawg wrote: >>> Thanks, Luke. Yes, please... >> I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar > > Did you actually change any of the code or you just included the same > version of rhino in the same jar? I pretty much just included most of rhino (since it's all pretty inextricably linked together) into the same jar, although I might have missed some classes that aren't involved in minifying CSS or JavaScript. > >>> Did I have to install into maven repository (would appreciate version etc)? >>> And/Or do I use it to compress? >> <groupId>yuicompressorbugfix</groupId> >> <artifactId>yuicompressor-rhino-bugfix</artifactId> >> <version>5.0</version> >> If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html >> You'll also need to exclude the yuicompressor version that tapestry pulls in: >> <dependency> >> <groupId>org.apache.tapestry</groupId> >> <artifactId>tapestry-yuicompressor</artifactId> >> <version>5.3.2</version> >> <exclusions> >> <exclusion> >> <groupId>com.yahoo.platform.yui</groupId> >> <artifactId>yuicompressor</artifactId> >> </exclusion> >> </exclusions> >> </dependency> > > Just FYI, the usual way of doing this is by adding a suffix to the > version (such 1.2.3-mycompanyfixes) and leaving GA coordinates intact. > That way you don't have to exclude other versions of the same library. That's good to know, thanks. > > Kalle > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Best I can tell, this issue melted away after I fixed my jQuery dependent scripts. Specifically to replace $ with jQuery as advised below:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries My application is no longer dependent on yuicompressor-rhino-bugfix. I also whacked the yuicompressor dependency from my pom, without suffering the index out of bounds problem. Now, I just use yui to compress my script by command line (instead of pom). That works fine whether I do it or not. Not sure if this will help anyone...but just a possibility...since yui seems to creating quite a bit of mischief. |
|
In reply to this post by Luke Wilson
Hi,
The URL is not available any more. Can somebody send me Luck's package kindly? Thanks in advance. 于 2012/4/23 19:37, Luke Wilson 写道: > On 23 Apr 2012, at 11:25, netdawg wrote: > >> Thanks, Luke. Yes, please... > I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar > >> net.dawg at yahoo >> >> Did I have to install into maven repository (would appreciate version etc)? >> And/Or do I use it to compress? > <groupId>yuicompressorbugfix</groupId> > <artifactId>yuicompressor-rhino-bugfix</artifactId> > <version>5.0</version> > > If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html > > You'll also need to exclude the yuicompressor version that tapestry pulls in: > > <dependency> > <groupId>org.apache.tapestry</groupId> > <artifactId>tapestry-yuicompressor</artifactId> > <version>5.3.2</version> > <exclusions> > <exclusion> > <groupId>com.yahoo.platform.yui</groupId> > <artifactId>yuicompressor</artifactId> > </exclusion> > </exclusions> > </dependency> > > This should work, > > Luke > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Here is something that may help you:
This loads a replacement of tapestry-yuicompressor that bundles in the yuicompressor library and rhino in such a way that it doesn't conflict with any other version of rhino you are using. I.e. don't include stock tapestry-yuicompressor or yuicompressor from yahoo. Excerpts of POM file: <properties> <yuicompressor.version>2.4.7-cust-tap-5.3.6</yuicompressor.version> </properties> <dependency> <groupId>com.yahoo.platform.yui</groupId> <artifactId>yuicompressor</artifactId> <version>${yuicompressor.version}</version> <scope>${war-deps.scope}</scope> </dependency> <repositories> <repository> <id>flowlogix-maven2</id> <url>http://flowlogix-m2.googlecode.com/svn/trunk</url> </repository> </repositories> </project> On Apr 1, 2013, at 8:46 PM, Rural Hunter <[hidden email]> wrote: > Hi, > > The URL is not available any more. Can somebody send me Luck's package kindly? Thanks in advance. > > 于 2012/4/23 19:37, Luke Wilson 写道: >> On 23 Apr 2012, at 11:25, netdawg wrote: >> >>> Thanks, Luke. Yes, please... >> I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar >> >>> net.dawg at yahoo >>> >>> Did I have to install into maven repository (would appreciate version etc)? >>> And/Or do I use it to compress? >> <groupId>yuicompressorbugfix</groupId> >> <artifactId>yuicompressor-rhino-bugfix</artifactId> >> <version>5.0</version> >> >> If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html >> >> You'll also need to exclude the yuicompressor version that tapestry pulls in: >> >> <dependency> >> <groupId>org.apache.tapestry</groupId> >> <artifactId>tapestry-yuicompressor</artifactId> >> <version>5.3.2</version> >> <exclusions> >> <exclusion> >> <groupId>com.yahoo.platform.yui</groupId> >> <artifactId>yuicompressor</artifactId> >> </exclusion> >> </exclusions> >> </dependency> >> >> This should work, >> >> Luke >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
thanks. this works though I need to include a rhino dependency specifically.
于 2013/4/4 2:06, Lenny Primak 写道: > Here is something that may help you: > This loads a replacement of tapestry-yuicompressor that bundles in the yuicompressor library and rhino in such a way that it doesn't conflict with any other version of rhino you are using. > I.e. don't include stock tapestry-yuicompressor or yuicompressor from yahoo. > Excerpts of POM file: > > <properties> > <yuicompressor.version>2.4.7-cust-tap-5.3.6</yuicompressor.version> > </properties> > > <dependency> > <groupId>com.yahoo.platform.yui</groupId> > <artifactId>yuicompressor</artifactId> > <version>${yuicompressor.version}</version> > <scope>${war-deps.scope}</scope> > </dependency> > > <repositories> > <repository> > <id>flowlogix-maven2</id> > <url>http://flowlogix-m2.googlecode.com/svn/trunk</url> > </repository> > </repositories> > </project> > > On Apr 1, 2013, at 8:46 PM, Rural Hunter <[hidden email]> wrote: > >> Hi, >> >> The URL is not available any more. Can somebody send me Luck's package kindly? Thanks in advance. >> >> 于 2012/4/23 19:37, Luke Wilson 写道: >>> On 23 Apr 2012, at 11:25, netdawg wrote: >>> >>>> Thanks, Luke. Yes, please... >>> I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar >>> >>>> net.dawg at yahoo >>>> >>>> Did I have to install into maven repository (would appreciate version etc)? >>>> And/Or do I use it to compress? >>> <groupId>yuicompressorbugfix</groupId> >>> <artifactId>yuicompressor-rhino-bugfix</artifactId> >>> <version>5.0</version> >>> >>> If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html >>> >>> You'll also need to exclude the yuicompressor version that tapestry pulls in: >>> >>> <dependency> >>> <groupId>org.apache.tapestry</groupId> >>> <artifactId>tapestry-yuicompressor</artifactId> >>> <version>5.3.2</version> >>> <exclusions> >>> <exclusion> >>> <groupId>com.yahoo.platform.yui</groupId> >>> <artifactId>yuicompressor</artifactId> >>> </exclusion> >>> </exclusions> >>> </dependency> >>> >>> This should work, >>> >>> Luke >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [hidden email] >>> For additional commands, e-mail: [hidden email] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Good to hear. Yes you are correct. You need to include the rhino version you want.
On Apr 8, 2013, at 3:27 AM, Rural Hunter <[hidden email]> wrote: > thanks. this works though I need to include a rhino dependency specifically. > > 于 2013/4/4 2:06, Lenny Primak 写道: >> Here is something that may help you: >> This loads a replacement of tapestry-yuicompressor that bundles in the yuicompressor library and rhino in such a way that it doesn't conflict with any other version of rhino you are using. >> I.e. don't include stock tapestry-yuicompressor or yuicompressor from yahoo. >> Excerpts of POM file: >> <properties> >> <yuicompressor.version>2.4.7-cust-tap-5.3.6</yuicompressor.version> >> </properties> >> >> <dependency> >> <groupId>com.yahoo.platform.yui</groupId> >> <artifactId>yuicompressor</artifactId> >> <version>${yuicompressor.version}</version> >> <scope>${war-deps.scope}</scope> >> </dependency> >> >> <repositories> >> <repository> >> <id>flowlogix-maven2</id> >> <url>http://flowlogix-m2.googlecode.com/svn/trunk</url> >> </repository> >> </repositories> >> </project> >> >> On Apr 1, 2013, at 8:46 PM, Rural Hunter <[hidden email]> wrote: >> >>> Hi, >>> >>> The URL is not available any more. Can somebody send me Luck's package kindly? Thanks in advance. >>> >>> 于 2012/4/23 19:37, Luke Wilson 写道: >>>> On 23 Apr 2012, at 11:25, netdawg wrote: >>>> >>>>> Thanks, Luke. Yes, please... >>>> I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuicompressor-rhino-bugfix-5.0.jar >>>> >>>>> net.dawg at yahoo >>>>> >>>>> Did I have to install into maven repository (would appreciate version etc)? >>>>> And/Or do I use it to compress? >>>> <groupId>yuicompressorbugfix</groupId> >>>> <artifactId>yuicompressor-rhino-bugfix</artifactId> >>>> <version>5.0</version> >>>> >>>> If you don't run your own version of nexus, you'll have to install it on the machine that you want to build on. This is the command you need I think: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html >>>> >>>> You'll also need to exclude the yuicompressor version that tapestry pulls in: >>>> >>>> <dependency> >>>> <groupId>org.apache.tapestry</groupId> >>>> <artifactId>tapestry-yuicompressor</artifactId> >>>> <version>5.3.2</version> >>>> <exclusions> >>>> <exclusion> >>>> <groupId>com.yahoo.platform.yui</groupId> >>>> <artifactId>yuicompressor</artifactId> >>>> </exclusion> >>>> </exclusions> >>>> </dependency> >>>> >>>> This should work, >>>> >>>> Luke >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [hidden email] >>>> For additional commands, e-mail: [hidden email] >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [hidden email] >>> For additional commands, e-mail: [hidden email] >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
| Powered by Nabble | Edit this page |
