
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hi,
I am new to DWR and JBoss. I installed JBoss 4.2.1. Then I tried to follow the instructions in "Getting Started with DWR".
1) I went to "D:\jboss-4.2.1.GA\server\all\deploy\management\console-mgr.sar\web-console.war\WEB-INF
" directory. I thought I would find a lib directory. However I did not get one. Hence I created one and added "dwr.jar" file (2.0.1 version) to the newly created lib directory.
2) Next I went back to "D:\jboss-
4.2.1.GA\server\all\deploy\management\console-mgr.sar\web-console.war\WEB-INF\web.xml" and added the sections for servlet and servlet mapping.
3) Next it states "If you are using DWR 2.x then the servlet-class line should properly contain the following:
org.directwebremoting.servlet.DwrServlet". I could not figure out how I could do that.
4) Finally I created a dwr.xml file with the contents listed below in "D:\jboss-4.2.1.GA\server\all\deploy\management\console-mgr.sar\web-console.war\WEB-INF
".
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN"
"
http://www.getahead.ltd.uk/dwr/dwr10.dtd">
<dwr>
<allow>
<create creator="new" javascript="JDate">
<param name="class" value="java.util.Date"/>
</create>
<create creator="new" javascript="Demo">
<param name="class" value="your.java.Bean"/>
</create>
</allow>
</dwr>
5) After all this I tried to run "
http://localhost:8080/[YOUR-WEBAPP]/dwr/" , using jboss instead of [YOUR-WEBAPP]
, but nothing happens. It gives a "Page not found error".
Can you please provide me with some hint so that I can configure DWR with JBoss and start my development using DWR.
Thanks,
Amit.