Wro4j filter works locally but not on Weblogic

9 views
Skip to first unread message

Paul Kelly

unread,
Apr 29, 2019, 11:47:58 AM4/29/19
to wro4j
I have configured wro4j in my Spring web app

pom.xml
<dependency>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-core</artifactId>
<version>1.8.0</version>
</dependency>

web.xml
<filter>
<filter-name>WebResourceOptimizer</filter-name>
<filter-class>ro.isdc.wro.http.WroFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>WebResourceOptimizer</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

It works when I'm launching locally on my machine but not when I deploy it to a remote Weblogic server. I get the following types of errors

"ro.isdc.wro.WroRuntimeException: Cannot build valid CacheKey from request: /shop/logo.png"
"ro.isdc.wro.WroRuntimeException: No such group available in the model: headerView"

Seems that weblogic can't pick up the paths of the resource files defined in my wro.xml or something

<?xml version="1.0" encoding="UTF-8"?>
<groups xmlns="http://www.isdc.ro/wro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.isdc.ro/wro wro.xsd">

<group name="main">
<css>/resources/css/example/example.css</css>
</group>

</groups>

Anyone have any idea what could be happening here?


Reply all
Reply to author
Forward
0 new messages