changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

wro4j extensions not found #444

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. setup wro4j-common & wro4j-extensions dependencies in pom.xml
2. verify that the .jar files exist in WEB-INF/lib
3. try to use the lessCss processor (or anything in extensions) and receive an 
error that the processor is not available in the list of processors

What is the expected output? What do you see instead?

I'd expect the lessCss filter to work

What version of the product are you using? On what operating system?

1.4.6

Please provide any additional information below.

Original issue reported on code.google.com by todd.ken...@gmail.com on 22 May 2012 at 1:53

GoogleCodeExporter commented 9 years ago
What exactly is the exception you are using? The lessCssProcessor is available 
in wro4j-extensions module which depends on many other transitive dependencies 
which are resolved automatically if you use maven dependency management. 
Otherwise, you have to add all the transitive dependencies manually.

Original comment by alex.obj...@gmail.com on 22 May 2012 at 2:19

GoogleCodeExporter commented 9 years ago
14:23:07.019 [259650411@qtp-864950435-0] DEBUG 
r.i.w.m.r.p.f.ConfigurableProcessorsFactory -   tokenName: lessCss
14:23:07.019 [259650411@qtp-864950435-0] DEBUG 
r.i.w.m.r.p.f.ConfigurableProcessorsFactory - [FAIL] no processor found named: 
lessCss. Proceeding with extension check. 
14:23:07.019 [259650411@qtp-864950435-0] DEBUG ro.isdc.wro.WroRuntimeException 
- Unknown processor name: lessCss. Available processors are: 
[duplicateAwareCssDataUri, consoleStripper, cssUrlRewriting, cssCompressor, 
multilineStripper, semicolonAppender, cssImport, cssMin, cssMinJawr, jsMin, 
cssDataUri, variablizeColors, cssVariables, conformColors]
14:23:07.019 [259650411@qtp-864950435-0] ERROR ro.isdc.wro.WroRuntimeException 
- Unknown processor name: lessCss. Available processors are: 
[duplicateAwareCssDataUri, consoleStripper, cssUrlRewriting, cssCompressor, 
multilineStripper, semicolonAppender, cssImport, cssMin, cssMinJawr, jsMin, 
cssDataUri, variablizeColors, cssVariables, conformColors]
14:23:07.027 [259650411@qtp-864950435-0] DEBUG ro.isdc.wro.http.WroFilter - 
RuntimeException occured
ro.isdc.wro.WroRuntimeException: Unknown processor name: lessCss. Available 
processors are: [duplicateAwareCssDataUri, consoleStripper, cssUrlRewriting, 
cssCompressor, multilineStripper, semicolonAppender, cssImport, cssMin, 
cssMinJawr, jsMin, cssDataUri, variablizeColors, cssVariables, conformColors]
    at ro.isdc.wro.model.resource.processor.factory.ConfigurableProcessorsFactory.getListOfItems(ConfigurableProcessorsFactory.java:140) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.model.resource.processor.factory.ConfigurableProcessorsFactory.getPreProcessors(ConfigurableProcessorsFactory.java:97) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.model.resource.processor.factory.InjectorAwareProcessorsFactoryDecorator.getPreProcessors(InjectorAwareProcessorsFactoryDecorator.java:29) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.model.group.processor.PreProcessorExecutor.applyPreProcessors(PreProcessorExecutor.java:164) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.model.group.processor.PreProcessorExecutor.processAndMerge(PreProcessorExecutor.java:83) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.model.group.processor.GroupsProcessor.process(GroupsProcessor.java:74) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.cache.DefaultSynchronizedCacheStrategyDecorator.loadValue(DefaultSynchronizedCacheStrategyDecorator.java:40) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.cache.DefaultSynchronizedCacheStrategyDecorator.loadValue(DefaultSynchronizedCacheStrategyDecorator.java:22) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.cache.AbstractSynchronizedCacheStrategyDecorator.get(AbstractSynchronizedCacheStrategyDecorator.java:52) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.manager.WroManager.serveProcessedBundle(WroManager.java:182) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.manager.WroManager.process(WroManager.java:134) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.http.WroFilter.processRequest(WroFilter.java:374) ~[wro4j-core-1.4.6.jar:1.4.6]
    at ro.isdc.wro.http.WroFilter.doFilter(WroFilter.java:324) ~[wro4j-core-1.4.6.jar:1.4.6]
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) ~[na:na]
    at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35) ~[na:na]
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) ~[na:na]
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60) ~[na:na]
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) ~[na:na]
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) ~[appengine-api-1.0-sdk-1.6.5.jar:na]
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) ~[na:na]
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) ~[na:na]
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) ~[na:na]
    at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) ~[na:na]
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) ~[na:na]
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) ~[na:na]
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) ~[na:na]
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) ~[na:na]
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) ~[na:na]
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) ~[na:na]
    at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:78) ~[na:na]
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) ~[na:na]
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:369) ~[na:na]
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) ~[na:na]
    at org.mortbay.jetty.Server.handle(Server.java:326) ~[na:na]
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) ~[na:na]
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) ~[na:na]
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) ~[na:na]
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) ~[na:na]
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) ~[na:na]
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) ~[appengine-tools-sdk-1.6.5.jar:na]
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) ~[na:na]
14:23:07.028 [259650411@qtp-864950435-0] DEBUG ro.isdc.wro.http.WroFilter - 
Cannot process. Proceeding with chain execution.
14:23:07.028 [259650411@qtp-864950435-0] DEBUG ro.isdc.wro.config.Context - get 
Context for correlationId: 634c61f1-9f78-4f9e-9368-6537cfe7436e
May 22, 2012 2:23:07 PM 
com.google.appengine.tools.development.LocalResourceFileServlet doGet

Original comment by todd.ken...@gmail.com on 22 May 2012 at 2:23

GoogleCodeExporter commented 9 years ago
That is a sign that the wro4j-extensions.jar is not in the classpath. Please, 
double check that you have included it.

Original comment by alex.obj...@gmail.com on 22 May 2012 at 2:38

GoogleCodeExporter commented 9 years ago
From pom.xml:

    <dependencies>
        <!-- wro4j -->
        <dependency>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-core</artifactId>
            <version>1.4.6</version>
        </dependency>
        <dependency>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-extensions</artifactId>
            <version>1.4.6</version>
        </dependency> 
       ...
        <dependencies>

From target/webapp-3.0.1-TARGET/WEB-INF/lib:
(local)10:41:12 
(~/src/work/broadcastr/webapp/target/webapp-3.0.1-SNAPSHOT/WEB-INF/lib)
todd@greatape> ls *wro*
wro4j-core-1.4.6.jar        wro4j-extensions-1.4.6.jar

I'm not sure how else I can tell it to include the jar file as a dependency?

Original comment by todd.ken...@gmail.com on 22 May 2012 at 2:45

GoogleCodeExporter commented 9 years ago
I know the reason. This is related to an issue introduced in 1.4.6: 
http://code.google.com/p/wro4j/issues/detail?id=432

You have the following solutions:
1) Use 1.4.5 or earlier versions
2) Use custom managerFactory where the processorsFactory is built 
programmatically

Original comment by alex.obj...@gmail.com on 22 May 2012 at 2:48