google-code-export / wro4j

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

Problem when including dwr generated resources #719

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by a user (more details on mailing list thread: 
https://groups.google.com/forum/?fromgroups=#!topic/wro4j/ulPZRqk0nkY): 

I have a problem when trying to include .js files generated by dwr to wro4j 
groups. 
When i trying to access the result group i have next message in console "Page 
not found. pathInfo='/dwr/util.js' requestUrl='/workload/dwr/util.js'"
I'm running wro4j using runtime solution. uriLocators defined in wro.properties 
are: servletContext.DISPATCHER_FIRST,uri,classpath.
Here the code of group defining:

<group name="dwrGlobalGroup">
        <js>/dwr/engine.js</js>
        <js>/dwr/util.js</js>
</group>

But when i include dwr files like this:

<group name="dwrGlobalGroup">
        <js>http://localhost:8080/myapp/dwr/engine.js</js>
        <js>http://localhost:8080/myapp/dwr/util.js</js>
</group>

After debuging dwr code i found that it expects to receive from request path 
without strippedServletPath ('/dwr') as pathInfo. ie /engine.js, /util.js and 
so on.
But overridden by DispatcherStreamLocator inner class getPathInfo method 
returns '/dwr/engine.js'.

I wonder if that bug of wro4j, dwr or my application? or it just my 
incomprehension of some details how web application works?

Original issue reported on code.google.com by alex.obj...@gmail.com on 13 May 2013 at 6:57