tdi120 Posted January 6, 2010 Share Posted January 6, 2010 Hi all,i have been trying to patch the 3.5.0 installation of my JasperServer community edition, in order to use the cascading input controls. The documentation is very straightforward, thank you for putting the effort into it. Unfortunately, i cannot get it running, and there is nothing on the forum regarding my problem.After creating the report, parameters, etc., when running the report, i get the following javascript error reported in IE: 'dwr' is undefined at line 195 of cascade.js'RemoteCascadeDirector' is undefined at line 105 of cascade.jsI can see that FillParams.jsp, ReportTopParametersForm.jsp and ViewReport.jsp all have a reference to dwr/interface/RemoteCascadeDirector.jsThe applicationcontext-cascade.xml also points to <dwr:remote javascript="RemoteCascadeDirector">Yet, i cannot find the js file in my jasperserver installation. Running out of ideas...Can anybody help? Or do i have to upgrade to 3.7.0 (not an option right now)Thank you,AkexAll good things come to those who waitqants.wordpress.com Link to comment Share on other sites More sharing options...
swood Posted January 7, 2010 Share Posted January 7, 2010 Just grasping at straws here: does it work in Firefox? It looks like an install issue. Is DWR set up in the web.xml and the DWR jar in WEB-INF/lib? ShermanJaspersoft Link to comment Share on other sites More sharing options...
tdi120 Posted January 7, 2010 Author Share Posted January 7, 2010 Hi Sherman,firefox was the first browser to try with. It did not work, nor returned any error message. So i switched to IE supposing a Java Script error (which was the case) I have double checked the installation, and once again this morning. As soon as i copy the three scripts over (ajax,cascade,view-report), the error message shows up. I am running JasperServer 3.5.0 Release, on a Glassfish 2.1 server. Any other ideas ? Seems that i am the only one with this problem arround :(Thanks Alex All good things come to those who waitqants.wordpress.com Link to comment Share on other sites More sharing options...
swood Posted January 15, 2010 Share Posted January 15, 2010 Did you check the web.xml for DWR and ensure the DWR jar was in WEB-INF/lib ShermanJaspersoft Link to comment Share on other sites More sharing options...
tdi120 Posted January 15, 2010 Author Share Posted January 15, 2010 Hi Sherman,getting your message today made me try it once more before the week-endI am pretty sure i know the cause of the problem nowAll patched files are in place, double checked and triple checked. The problem still resides in calling the RemoteCascadeDirector.js, which should be part of the dwr.jar package. Well, it is not. This is the output of my report (code1). As you can see, the RemoteCascadeDirector is being refered from this location. When checking the contents of the dwr package, while engine and util.js are in, RemoteCascadeDirector.js is missing. I redownloaded the latest patch, just to make sure. Still, the file is not there. Now, as i see it , this is the source of my problems. But then...how did it work for other people? Or isn't this the problem? Thanks for trying to solve this with me. Looking forward to finding a solution Cheers,Alex All good things come to those who waitqants.wordpress.comCode: <script type="text/javascript" src="dwr/interface/RemoteCascadeDirector.js"> </script> <script type="text/javascript" src="dwr/engine.js"> </script> <script type="text/javascript" src="dwr/util.js"> </script> Link to comment Share on other sites More sharing options...
swood Posted January 27, 2010 Share Posted January 27, 2010 That Javascript is defined dynamically by DWR when the server starts. It is defined by the following config in WEB-INF/applicationContext-cascade.xml: <dwr:remote javascript="RemoteCascadeDirector"> <dwr:include method="initialize" /> <dwr:include method="handleEvents" /> <dwr:include method="autoPopulate" /> </dwr:remote> So it looks like something is failing to start properly. It looks like a Glassfish issue. Maybe look at http://weblogs.java.net/blog/kalali/archive/2006/04/testing_some_fr_5.html for some advice? ShermanJaspersoft Link to comment Share on other sites More sharing options...
adrikr73 Posted January 11, 2011 Share Posted January 11, 2011 And how can I do to edit the methods of RemoteCascadeDirector.js?? I need to disable the auto-selection of the first values of the secondaries input controls. Thanks a lot, Adri. Link to comment Share on other sites More sharing options...
antonfomin Posted January 12, 2011 Share Posted January 12, 2011 Hi Adri, It seems I answered this question here http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=82212, please check whether it works for you. Thanks,Anton. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now