jahaziel17 / wro4j

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

Runtime solution : 404 Not found #857

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, i try to use wro4j in my maven project.

I get a 404 Not found when i use this in my xhtml page :
<script type="text/javascript" src="/wro/core.js"></script>

My wro.xml :

<?xml version="1.0" encoding="UTF-8"?>
<groups xmlns="http://www.isdc.ro/wro">
  <group name='core'>
    <js>http://code.jquery.com/jquery-1.11.0.min.js</js>
  </group>
</groups>

part of my web.xml :

<filter>
  <filter-name>wroContextFilter</filter-name>
  <filter-class>ro.isdc.wro.http.WroContextFilter</filter-class>
</filter>
<filter>
  <filter-name>WebResourceOptimizer</filter-name>
  <filter-class>ro.isdc.wro.http.WroFilter</filter-class>
</filter>

<filter-mapping>
  <filter-name>wroContextFilter</filter-name>
  <url-pattern>/*</url-pattern>
  <dispatcher>REQUEST</dispatcher>
  <dispatcher>ERROR</dispatcher>
</filter-mapping>
<filter-mapping>
  <filter-name>WebResourceOptimizer</filter-name>
  <url-pattern>/wro/*</url-pattern>
</filter-mapping>

I use Glassfish 3 on Ubuntu 12.04 and i add this in my pom.xml :

<dependency>
  <groupId>ro.isdc.wro4j</groupId>
  <artifactId>wro4j-core</artifactId>
  <version>1.7.0</version>
</dependency>

<dependency>
  <groupId>ro.isdc.wro4j</groupId>
  <artifactId>wro4j-extensions</artifactId>
  <version>1.7.0</version>
</dependency>

Thanks.

Original issue reported on code.google.com by calabres...@gmail.com on 11 Mar 2014 at 10:14

GoogleCodeExporter commented 8 years ago
The latest version is 1.7.3. Anyway, it should work with 1.7.0 as well. Don't 
you see anything relevant in logs? To reproduce the issue, I need a quick-start 
project. You can use this one as a starting point: 
https://github.com/wro4j/wro4j-examples/tree/master/custom-processors

If you can fork the project and provide an example which proves the problem, 
I'll be able to fix it or at least help with identifying the cause of the 
problem.

Original comment by alex.obj...@gmail.com on 11 Mar 2014 at 11:11

GoogleCodeExporter commented 8 years ago
Discussed here: https://github.com/alexo/wro4j/issues/172

Closing as invalid.

Original comment by alex.obj...@gmail.com on 11 Mar 2014 at 1:22