I am trying to get a servlet working that uses the DWR jar to provide easy AJAX support for some web pages - this is delivered in a file - services.war.
I have tested the war file on my own local Apache/tomcat and it works fine.
The war file seems to have exploded OK on the eUKHost machine and I can view in a browser an html file from the war.
The problem occurs with the autogenerated javascript files that the DWR servlet produces. The index.html file has script includes for two files dwr/engine.js and one particular to my servlet dwr/interface/ServiceCtrl.js. When I look at the contents of these files in FireBug they're showing a HTTP 404 error and 'The requested URL /services/dwr/engine.js was not found on this server.'
Looking at the http://<website url>/services/dwr should also list the Java interfaces that I can call onto but that gives a 404 too.
The servlet mapping is as follows
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/services/dwr/*</url-pattern>
</servlet-mapping>
So I would expect the urls above to be passed to the servlet.
Has anyone else any experience of getting DWR to work? Or how to fix the above.
Many thanks
Tony P


Reply With Quote
