|
First of all, I'm Spanish so I apologize for my English.
I am using DWR with Struts J2EE application that runs on a server OC4J. Leaving the default setting, DWR works perfectly, but when dwr.xml separate file as shown in the tutorials, fails, and the log4j says: ERROR : Missing config file: WEB-INF/dwr.xml [uk.ltd.getahead.dwr.util.CommonsLoggingOutput.error:75]. This is part of the web.xml of the application I try to deploy: <servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class> <init-param> <param-name>config-default</param-name> <param-value>WEB-INF/dwr.xml</param-value> </init-param> </servlet> <servlet> <servlet-name>dwr-sns-invoker</servlet-name> <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class> <init-param> <param-name>config-default</param-name> <param-value>WEB-INF/dwr-sns.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>dwr-sns-invoker</servlet-name> <url-pattern>/dwrsns/*</url-pattern> </servlet-mapping> Could anyone help me? I do not know if I'm missing a configuration setting. |
|
What version of DWR are you using?
On Tue, Jan 31, 2012 at 7:37 AM, [hidden email] <[hidden email]> wrote: First of all, I'm Spanish so I apologize for my English. |
|
Try prefixing WEB-INF with a forward slash so /WEB-INF/dwr.xml.
Please note, you can always search our mailing lists which is how I found this answer: http://dwr.2114559.n2.nabble.com/multiple-dwr-xml-files-in-websphere-td3275426.html On Tue, Jan 31, 2012 at 7:45 AM, David Marginian <[hidden email]> wrote: What version of DWR are you using? |
|
This post was updated on .
In reply to this post by david@butterdev.com
DWR 1.0
Struts 1.2 JDK 1.5.22 |
|
Try my previous recommendation (adding the /). If that doesn't work it is quite possible this is not even supported in 1.0 which is quite old. At the very least you should update to 2.0.8.
On Tue, Jan 31, 2012 at 8:31 AM, [hidden email] <[hidden email]> wrote: DWR 1.0 |
|
Solved!!
Just adding "/" before "WEB-INF". Thank you very much David. |
|
In reply to this post by david@butterdev.com
Is there a way to implement caching of generated .js files on browser? can i find a sample if possible?
I have following configured in dwr.xml <create creator="new" javascript="SampleAjaxAction"> <param name="class" value="com.org.ajax.SampleAjaxAction"/> </create> It has generated SampleAjaxAction.js file, question is for each request this SampleAjaxAction.js file is getting loaded into browser, instead is there a caching mechanism so its once loaded into browser cache and doesn't reload upon subsequent requests. Thanks, Satish |
|
The interface scripts are static and should be cached by your
browser. You can see this by going to our examples and using the
Network tab in Firebug. Here is a screenshot, note the 138.6 from
cache, if you do this and then select the interface script and then
go to the cache tab you will see that it has been cached:
On 02/02/2012 07:02 PM, peddi satish wrote:
|
| Powered by Nabble | See how NAML generates this page |
