DWR.xml and Spring

F

faraz_mit

Hi,
Hope all is well.
As I was configuring our new server I ran into this weird issue using
DWR. The dwr.xml runs fine locally and all the paths are the same both
locally and on ther server. Here is the issue:
In dwr.xml I have the following to refer to the ajaxUtils bean in the
application-context.xml
......
<create creator="spring" javascript="ajaxUtils" >
<include method="getStateList"/>
<param name="beanName" value="ajaxUtils"/>
</create>
<create creator="new" javascript="JDate">
<param name="class" value="java.util.Date"/>
</create>

.....

DWR successfully recognizes the bean and shows the method in
ajaxUtils. However, once I put it online, it can't see my bean.
Do you have any idea on why this specific bean is recognized locally
and once the code is put online, it can't see it.
For example, when I go to /dwr/index.html I see the following:

Classes known to DWR:

* JDate (java.util.Date)


but on local:8080/dwr/index.html I get:
x.html I see the following:

Classes known to DWR:

* ajaxutils (com.realdevelopment.myproj.web.utils.AjaxUtils)
* JDate (java.util.Date)


I guess it's something minor and I am not noticing it.

Thanks for your help,
Ross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top