Of course. I didn't see that test.class wasn't a servlet. Automatic reloading is only for servlets and JSP pages, so you have to restart JRun to get the updated version of test.class. Refer to page 54 of the Developing Applications with JRun manual for a description of reloadable and nonreloadable classpaths. Randy Nielsen Allaire Corp. -----Original Message----- From: Raj Kumar Jha [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 19, 2000 5:44 AM To: JRun-Talk Subject: Re: My class file is not reloading without restarting JRun Hi, I tried the code that you sent on my m/c and it gave the same results. But when I restarted my JRun Server, the results were as expected. Try the same. I suppose the JRun server caches the Test.class and doesnt reload it automatically though it compiles the jsp again. Regards, Raj ----- Original Message ----- From: Sean Lim To: JRun-Talk Sent: Thursday, October 19, 2000 2:56 PM Subject: My class file is not reloading without restarting JRun Hi all, I made a class file and JSP file called Test.class and test.jsp. The Test.class has a method and the test.jsp uses a instance of the class to return result of the method. After I added another method to the class file, I also added a line into the test.jsp which calls the second method. Then I execute the jsp file and I got the 500 Internal server error, which says that there is not the second method. I tried many other ways, but the results are same without restarting JRun. The files are located in /default-app and /default-app/WEB-INF/classes. There are no files with same name anywhere. Whenever I save again the files to be updated and execute the jsp file, I can see the class file is also recompiled. But it does never apply. My files are shown below; Test.java ------------------------------------------- public class Test{ public Test(){ } public String hi(){ String result = new String("HI!"); return result; } } ------------------------------------------- test.jsp ------------------------------------------- <html> <body> <% Test test = new Test(); String result = test.hi(); %> <h1><%=result%></h1> </body> </html> ------------------------------------------- After I succeeded with the files above, and I added another method like below; Test.java ------------------------------------------- public class Test{ public Test(){ } public String hi(){ String result = new String("HI!"); return result; } public String hello(){ String res = new String("Hello!!!!"); return res; } } ------------------------------------------- test.jsp ------------------------------------------- <html> <body> <% Test test = new Test(); String result = test.hi(); String result2 = test.hello(); %> <h1><%=result%></h1> <br> <h1><%=result2%></h1> </body> </html> ------------------------------------------- This test.jsp can not be loaded without restarting JRun. I see other simple JSP file and Servlet files are dynamically loaded. I don't think this case is special, but I am getting confused. This is so serious problem for our team play. Any help will save me. Thanks in advance. Sean Lim ---------------------------------------------------------------------------- -- Archives: http://www.egroups.com/group/jrun-interest/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. ---------------------------------------------------------------------------- -- Archives: http://www.egroups.com/group/jrun-interest/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. ------------------------------------------------------------------------------ Archives: http://www.egroups.com/group/jrun-interest/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
