Closed GoogleCodeExporter closed 9 years ago
Reported on the mailing list: https://groups.google.com/forum/?hl=en&fromgroups#!topic/wro4j/SFzEwhnvuMa8 I am currently using wro4j deployed into a Tomcat 6.0.35 container with Google Guice. Unfortunately, as soon as I enable JRebel, wro4j is no longer able to locate its resources (configured in wro4j.xml), but instead produces an aggregate .js file that is mostly empty (except for some boilerplate JavaScript [1] per resource). In the log I get messages like these: -- 8< -- 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.m.g.p.PreProcessorExecutor - merging resource: ro.isdc.wro.model.resource.Resource@76b1ec77[JS,/js/backbone/views/show_view.cof fee,true] 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.m.r.p.f.ConfigurableProcessorsFactory - itemsAsString: coffeeScript 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.m.r.p.f.ConfigurableProcessorsFactory - tokenName: coffeeScript 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.model.group.processor.Injector - processInjectAnnotation for: LazyProcessorDecorator 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.model.group.processor.Injector - processInjectAnnotation for: CoffeeScriptProcessor 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.m.g.p.PreProcessorExecutor - applying preProcessors: [ro.isdc.wro.model.resource.processor.impl.LazyProcessorDecorator@17689b33] 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.model.group.processor.Injector - processInjectAnnotation for: ServletContextUriLocator 08:32:58.294 [http-8081-2] txid= category= level=DEBUG ro.isdc.wro.config.Context - get Context for correlationId: aa692d27-cb58-4400-819e-f6283ac039b0 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.model.group.processor.Injector - [OK] Injected ro.isdc.wro.model.resource.locator.ServletContextUriLocator -> Context 08:32:58.294 [http-8081-2] txid= category= level=DEBUG r.i.w.m.r.l.ServletContextUriLocator - locate resource: /js/backbone/views/show_view.coffee 08:32:58.295 [http-8081-2] txid= category= level=DEBUG ro.isdc.wro.config.Context - get Context for correlationId: aa692d27-cb58-4400-819e-f6283ac039b0 08:32:58.295 [http-8081-2] txid= category= level=DEBUG r.i.w.m.r.l.DispatcherStreamLocator - dispatching request to location: /js/backbone/views/show_view.coffee 08:32:58.295 [http-8081-2] txid= category= level=DEBUG r.i.w.h.s.RedirectedStreamServletResponseWrapper - Error detected with code: 404 and message: 08:32:58.296 [http-8081-2] txid= category= level=WARN r.i.w.m.r.l.DispatcherStreamLocator - Wrong or empty resource with location: /js/backbone/views/show_view.coffee 08:32:58.296 [http-8081-2] txid= category= level=WARN r.i.w.m.g.p.PreProcessorExecutor - Invalid resource found: ro.isdc.wro.model.resource.Resource@76b1ec77[JS,/js/backbone/views/show_view.cof fee,true] -- 8< -- In the concurrently produced rebel.log I see that the class loader is actually attempting to locate /backbone/views/show_view.coffee instead of /js/backbone/views/show_view.coffee: -- 8< -- [2012-05-24 08:32:58.295] Getting servlet resource URL: /backbone/views/show_view.coffee -> null -- 8< -- I am setting up the WroFilter like this (in an JerseyServletModule): -- 8< -- bind(WroFilter.class).in(Singleton.class); filter("/js-min/*").through(WroFilter.class); -- 8< -- wro.properties: -- 8< -- managerFactoryClassName=ro.isdc.wro.extensions.manager.ExtensionsConfigurableWro ManagerFactory uriLocators=servletContext,classpath preProcessors=coffeeScript -- 8< -- Contributed by Thilo-Alexander Ginkel (https://github.com/ginkel) with a pull request: https://github.com/alexo/wro4j/pull/46
Original issue reported on code.google.com by alex.obj...@gmail.com on 24 May 2012 at 8:51
alex.obj...@gmail.com
Original comment by alex.obj...@gmail.com on 24 May 2012 at 9:01
Original issue reported on code.google.com by
alex.obj...@gmail.com
on 24 May 2012 at 8:51