RE: Potential JRun 4 getPathInfo Migration Issue
Hi Ben, I have been trying to reproduce this behavior and have come to the following assumption - your TestServlet servlet mapping uses the url pattern /TestServlet. Am I correct? I set up a mapping for my SnoopServlet using url pattern /snoop and requested http://localhost:8100/snoop/more/path/info and see the same results that you do - 404. However, when I use the url pattern /snoop/* I get the servlet path= /snoop and path info=/more/path/info as expected. While this may differ from JRun 3.x it is in compliance with the Servlet 2.3 spec (and matches the RI's behavior) and is touched upon in the example below from the spec. Hope this helps, Tom Ruggles JRun QA Table SRV.1: Example Context Set Up ContextPath /catalog Servlet Mapping Pattern: /lawn/* Servlet: LawnServlet Servlet Mapping Pattern: /garden/* Servlet: GardenServlet Servlet Mapping Pattern: *.jsp Servlet: JSPServlet Table SRV.2: Observed Path Element Behavior Request Path Path Elements /catalog/lawn/index.html ContextPath: /catalog ServletPath: /lawn PathInfo: /index.html -Original Message- From: Ben Groeneveld [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 3:08 PM To: JRun-Talk Subject: Potential JRun 4 getPathInfo Migration Issue I am having trouble migrating a servlet that uses request.getPathInfo(). We use a URL like: http://127.0.0.1:8100/tJRun4/TestServlet/extraParams?misc=stuffmore=NotEnough I developed a little testcase which presents the above as follows on JRun 3.0: doGet logRequestParameters request.getPathInfo(): /extraParams logRequestParameters request.getQueryString(): misc=stuffmore=NotEnough logRequestParameters request.getPathTranslated(): C:\usr\local\jrun-3.0\servers\default\tJRun4\extraParams logRequestParameters request.getRequestURL(): /tJRun4/TestServlet/extraParams logRequestParameters request.getParameterValues(): misc:[stuff] logRequestParameters request.getParameterValues(): more:[NotEnough] On JRun 4 I just get in the log: error Requested resource /tJRun4/TestServlet/extraParams not found Anyone have a clue as to what's up or what we're doing wrong? Thanks, BenG. -- Ben Groeneveld Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701 Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488 __ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: configuring jrun4
Might want to check that your ports are set to the expected defaults in the jrun.xml files for each server. If the ports happened to still be in use during the reinstall then new ones would have been chosen (I'm don't know how the uninstaller works when there are servers still running for example). service CLASS=jrun.servlet.http.WebService name=WebService .. attribute name=port8100/attribute .. /service -Original Message- From: Wayne Davies [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 3:40 AM To: JRun-Talk Subject: configuring jrun4 After having to reinstall jrun4 I cannot find any servers after launching, nor can localhost:8000 find the JMC. Everything seems fine in the installed /JRun/ files. Does anyone know where I should look? Wayne Davies = Sydney Real Tennis Club Phone: 02 9850 9495 Email: [EMAIL PROTECTED] Web: http://www.yeti.com.au/srtc __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com __ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Querystrings - Fustrated Newbie Question, Please Help
Slight correction - missing parenthesis. if (request.getParameter(loc).equals(clipArtManager)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 2:45 PM To: JRun-Talk Subject: Re: Querystrings - Fustrated Newbie Question, Please Help You have to use } if (request.getParameter(loc.equals(clipArtManager)) { When you use ==, you are comparing objects, and in your case, they are not the same. What you want to use is equals(), which just compares the content. Boogie Brown boogie_brown@hoTo: Jrun-Talk [EMAIL PROTECTED] tmail.com cc: Subject: Querystrings - Fustrated Newbie Question, Please Help 07/12/2002 02:38 PM Please respond to jrun-talk I am an ASP programmer moving to JSP. I am trying to run my first script and capture a Querystring however it seem so dificult in JSP. This is my code: % } if (request.getParameter(loc) == clipArtManager) { % Clip Art % } else { % No Go % } % It is always returning No go. Why is this? My other problem is that when I print out request.getParameter(loc) I het 500 Null printed on the screen, with no other data shown. What is happening? Please ANY help would be much appreciated. MTB __ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Deploying web apps not seeing app folders
Hi, The war file is automatically unpacked into /servers/(your server)/SERVER-INF/temp. It is not recommended that you touch these files though. Tom Ruggles JRun QA -Original Message- From: Rosa, Issac [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 8:57 AM To: JRun-Talk Subject: Deploying web apps not seeing app folders I am trying to deploy a .war file by placing the file in the server directory. I restart the server and the application is deployed, but I don't see the web app folders. Is there anything special that I need to do to automatically unpack the .war file when deploying? Thanks, Issac __ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: How To Configure JBuilder 6.0 for JRun Server 4.0
Looks like the problem is your server parameter (c:/JRun4/servers/default). Try the following instead. ' -start default jrun.rootDir=c:/JRun4 ' Tom Ruggles JRun QA -Original Message- From: jamesguan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 6:37 PM To: JRun-Talk Subject: Re: How To Configure JBuilder 6.0 for JRun Server 4.0 Hi John, I have checked the servers.xml file, the default server section seems all correct. and I can start the default server from the command line, C:\JRun4\bin but when I run the servlet from JBuilder6, it still gives me the same messages JRun server c:/JRun4/servers/default does not exist, the server root null was not found. Please verify that the C:\JRun4\lib\servers.xml file contains valid data for this server. under the Project Properties, under the Run, under the Application Parameter, I put in ' -start c:/JRun4/servers/default jrun.rootDir=c:/JRun4 ' do you think that would be the problem? thanks again regards James - Original Message - From: John Zhao [EMAIL PROTECTED] To: JRun-Talk [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 2:42 PM Subject: RE: How To Configure JBuilder 6.0 for JRun Server 4.0 Are you able to start the default server from the command line? Such as from jrun4_home jrun -start default If you can't do that, it means there is something wrong with your servers.xml file. Please open that file and see if the default server section is correct as below. server namedefault/name directory{jrun.home}/servers/default/directory /server Make sure the xml file is in the correct format. -Original Message- From: jamesguan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 5:39 PM To: JRun-Talk Subject: Re: How To Configure JBuilder 6.0 for JRun Server 4.0 Dear John, Thanks for the link! I still have some problems to start the JRun server within JBuilder6. I got the message like JRun server c:/JRun4/servers/default does not exist, the server root null was not found. Please verify that the C:\JRun4\lib\servers.xml file contains valid data for this server please give me more information on this thanks regards James - Original Message - From: John Zhao [EMAIL PROTECTED] To: JRun-Talk [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 11:54 AM Subject: RE: How To Configure JBuilder 6.0 for JRun Server 4.0 Getting Started with JRun 4.0 provides the instruction as to how to integrate your IDE with JRun 4.0. Please refer to the link below. http://livedocs.macromedia.com/jrun4docs/Getting_Started_with_JRun/intro6.js p#1120471 You may follow the same instruction with JBuilder 6.0. If you have further questions, please feel free to let me know. Regards, John -Original Message- From: jamesguan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 2:42 PM To: JRun-Talk Subject: How To Configure JBuilder 6.0 for JRun Server 4.0 Could anyone there give me some suggestion on How To Configure JBuilder 6.0 for JRun Server 4.0 James - Original Message - From: André_Schneider [EMAIL PROTECTED] To: JRun-Talk [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 9:47 AM Subject: AW: Java hi there, try it with jdring you can get the package under http://webtools.dyade.fr/jdring/ sample_code : import fr.dyade.jdring.*; public class CLASS extends HttpServlet { public void init() { AlarmManager mgr = new AlarmManager(); try { // every day at 4:40 AM // miute houre day month day_of_week year //mgr.addAlarm( 30,4 , -1 , -1,-1 ,-1 , new AlarmListener() //or //for every 60 minutes mgr.addAlarm(60, true, new AlarmListener() { public void handleAlarm(AlarmEntry entry) { try { CLASS_TO_RUN CLASS_TO_RUN = new CLASS_TO_RUN(); CLASS_TO_RUN.doSomething(); } catch(Exception ex) {} } }); } catch(fr.dyade.jdring.PastDateException pE) {} } protected doGet( ... ) {...} } cu Andre -Ursprüngliche Nachricht- Von: Kannaiyan P [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. Juli 2002 18:24 An: JRun-Talk Betreff: Java Hi I have java application running on jrun application server 3.1 . java program is a Singleton(instance)class on the server. it always running on the server. my question is i want to call to run(call) one of the method on the java program automatically at particular time. please give some suggestion or if you have any sample code that would be very helpful for me. Thanks kans From: Haseltine, Celeste [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: JRun-Talk [EMAIL PROTECTED] Subject: RE: Jrun 3.1 Cache HELP!!! Date: Fri, 28 Jun 2002 11:57:45 -0500 Michael, You have restart