RE: autoreload of jsp files failed while working hard on a single jsp
I agree. I havent had a problem till date of Orion not auto re-loading my jsp files. I do this all the time and in fact quite a few JSP files get updated on our production system all the time without having to restart orion. Aniket At 07:12 PM 4/12/2001, you wrote: I think you all have more problems than Orion. I'd suggest looking at the dates on your multiple machines (usually this happens when one is behind another so the save does not come up as a modified file on the server). I've NEVER had to restart Orion to load a JSP before - and it's been working like that since pre 0.7 ;) -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Santosh Kumar Sent: Thursday, April 12, 2001 10:35 PM To: Orion-Interest Subject: Re: autoreload of jsp files failed while working hard on a single jsp That is a major source of concern and wastage of time for our dev. project. But we got used to it. ;-) -Original Message- From: Norman Timmler [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Thursday, April 12, 2001 5:58 PM Subject: AW: autoreload of jsp files failed while working hard on a single jsp it is a bug, isn't it? really anoying if you work with 3 or more people on one project. you have to restart the orion server every 10 minutes and it takes a while to come up again. :-(( -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Santosh Kumar Gesendet: Donnerstag, 12. April 2001 10:23 An: Orion-Interest Betreff: Re: autoreload of jsp files failed while working hard on a single jsp you have to restart orion..no other option. santosh -Original Message- From: Norman Timmler [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Thursday, April 12, 2001 1:48 PM Subject: autoreload of jsp files failed while working hard on a single jsp hi, usally the autoreload function of jsp's works fine, but after some savings on a single jsp or some time passes (something between 10 minutes and half a day) orion does not reload the jsp correctly. if you press reload in your browser the old page is shown without changes actually made in the jsp. deleting the cache files did not help. we use orion 1.4.7 on window 2000 with jdk 1.3 any ideas or similar problems? norman ._ neteye GmbH [EMAIL PROTECTED] http://net-eye.de _.
Re: SV: load-on-startup is not working
Hi Dan, try putting in a load-on-startup tag for the application itself. I have noticed that making a servlet load-on-startup causes it to get invoked on the first request but making the application itself load-on-startup causes the servlet to get invoked on initialization itself. To make the application load-on-startup just put load-on-startup="true" in the web-app node of the application defined in the web-site.xml. Hope this helps Aniket At 05:58 PM 3/30/2001, you wrote: Hi Patrick, My problem is not that my servlet doesn't work. The servlet works but it is initialised when I perform the first request. It has to open database connections, parse a couple of xml files... at init time so I'd like to have it pre-loaded so the first request doesn't take too long. Orion doesn't have to compile my servlet as the servlet is already compiled and packed in a war file. Thanks anyway, Dan Patrik Andersson wrote: Check your error log for compile time errors. is development="true" in orion-web.xml so that Orion even tries to compile the servlet? regards, Patrik Andersson -Ursprungligt meddelande- Frn: Daniel Lopez [mailto:[EMAIL PROTECTED]] Skickat: den 30 mars 2001 10:54 Till: Orion-Interest mne: load-on-startup is not working Hi, I don't seem to find how to get the load-on-startup attribute to work. This is the web.xml snippet where I use it: ... servlet servlet-nameGuiaController/servlet-name servlet-classorg.leaf.LEAFManager/servlet-class load-on-startup1/load-on-startup /servlet ... I've also tried with load-on-startup/, but to no avail. This has been working for me with Resin and other containers but it doesn't work with Orion. What I am doing wrong? Notes: .- I'm pretty sure web.xml os being read as the application works fine after the first request, and if I add a typo to the web.xml file, I get an error message. The strange thing is that I don't get the error message through the logs or the standard output, but when I try to access for the first time. Any hints? TIA, Dan
Re: multiple apps
Hi, I seem to be having similar problems. I have 2 application which use a common set of JSP's. For one JSP page, I have a problem wherein if I try to access that particular page in one application it will work, but will fail if used in the second application. The worst part is that both the JSP pages are identical. I dont even have different web-site.xml files. All the applications are defined in the default-web-site.xml Any insights would be appreciated Thanks 'n Regards Aniket At 06:57 AM 2/28/2001, you wrote: Dear all, I'm having some trouble getting multiple copies of an app to run where i use different appname-web-site.xml files. I don't have a problem where i configure all the information within server.xml and default-web-site.xml, but i want to use different web-site.xml files so that i can do clustering. I do the following: 1. copy/paste the application within \orion\applications. e.g.\orion\applications\copy1 \orion\applications\copy2 2. create 2 web-site.xml files e.g.\orion\config\copy1-web-site.xml \orion\config\copy2-web-site.xml 3. put a reference to the web-site files in server.xml web-site path="./copy1-web-site.xml" / web-site path="./copy2-web-site.xml" / 4. put a reference to the 2 applications in server.xml application name="copy1" path="..\applications\copy1"/ application name="copy2" path="..\applications\copy2"/ Questions a) I can run the copy1 app in my browser, but not copy2. b) If i comment out copy1, then for some reason i can run copy2. c) If i uncomment copy1, then copy1 starts working, and copy2 is not accessible. d) I don't get any error messages relating to not being able to access copy1 or copy2. Does anyone know what i might be doing wrong? Thanks, Greg
Re: Mixing secure non-secure pages in the same application
hi, The solution we are using in our application is to have two instances of the application running, on in secure mode and another in unsecure mode. Whenever we want to access the secure pages, we simply redirect to the secure application and vice versa. There is no session problem either since the session is shared between the applications. Regards -- Aniket Upganlawar CTO Verchaska Tel: +91-22-6559920 Mobile : 98202 15601 -- Verchaska - Helping your business succeed -- At 06:56 AM 2/20/2001, you wrote: That solution doesn't get around having multiple pages secure and some non secure though. Ibelieve you need to use URL redirection within your servlets and that should work. It would be good if we could do something similar to Apache with the .htaccess files as that is how I have worked this solution (only for static web site though). Mark In ${orion_home}/default-web-app make an index.html that redirect to port 443 that should do it. Matt Thomas Pridham wrote: I have jumped through the Verisign hoops and have installed my certificate. Here is my issue: How do you serve both secure and non-secure pages from the same application Right now, my entire application is secure and served from port 443. If someone types in the URL, the server does not respond because I am not running anything on port 80. For a VERY temporary fix, I turned on IIS on the same box, and do a redirect from IIS:80 to Orion:443. My goal is to have one application, serve the splash screen in non-secure mode, and serve the rest of the screens in secure mode. I searched the documentation / mailing list, but did not find anything. Thanks, Tom Pridham Software Engineer Computer Management Consultants 6951 Pistol Range Road Tampa, FL 33536 813-935-7332 ext. 165 813-854-4538 - Fax http://www.cmctpa.com http://www.oakscape.com
Global Directories
Hi, I was wondering if I can define a global Virtual directory i.e a directory that can be accessed from any application deployed in Orion?? I tried setting the Virtual Directory in Global-Web-Application.xml but i couldnt access the directory. The virtual directories work fine if I define them at each application level in orion-web.xml. Im using orion 1.4.5, jdk 1.3, W2K. Any pointers would be much appreciated. Thanks and Regards Aniket
Offtopic:Ant Build scripts
Hi folks, can somebody please send me a sample ANT build file for making ears for orion. Thanks Aniket
Changing Orion Generated SQL
Hi folks, Is there any way I can change the SQL code generated by Orion for CMP beans?? The J2EE RI allows this by editing one of the deployment config files but i wasnt able to find anything anywhere??? Thanks in advance Aniket
RE: Changing Orion Generated SQL
well, i wanted to change the SQL used in the ejbStore method due to some problems that i was having. orion-ejb-jar.xml seems to have the SQL only for finder methods other than the findByPrimary key methods. is there any way to change that??? Thanks Aniket At 06:36 PM 12/8/2000, you wrote: Take a look at the documentation for orion-ejb-jar.xml. It's a lot easier if you have a few samples to look at alongside. http://www.orionserver.com/docs/orion-ejb-jar.xml.html What changes you have in mind? Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Aniket V U [mailto:[EMAIL PROTECTED]] Sent: Friday, December 08, 2000 3:59 AM To: Orion-Interest Subject: Changing Orion Generated SQL Hi folks, Is there any way I can change the SQL code generated by Orion for CMP beans?? The J2EE RI allows this by editing one of the deployment config files but i wasnt able to find anything anywhere??? Thanks in advance Aniket
Re: Newbie Q: Can't find bean?
hi sean, take a look at the EJB tag library available with orion. its exactly what you are looking for. The URL is http://www.orionserver.com/tags/ejbtags/ regards Aniket At 05:44 AM 11/12/2000, you wrote: Thanks for your reply Robert, however I don't really feel it's fair for you to have judged me ignorant of both Java and the J2EE in general. I've done quite a bit of development with session beans, but very little front-end (read JSP) development, and no EntityBean work, as it wasn't supported by the EJB (1.0) containers we were working with. I've been through the JSP specification, and don't see anything in there pertaining to how EJB are expected to be referenced. There is section 2.13 describing the jsp:useBean tag, and unfortunately thought it would perhaps provide the needed functionality to automate the bean lookup process. In addition to the specification, I have a copy of the Monson-Haefel book on Enterprise JavaBeans, but there is virtually no mention of JSP-EJB interaction. I also spent some time earlier today browsing JSP-centric books in the local bookstore, and found little mention (usually about 1 paragraph) regarding EJB's. Obviously, using the same method that is used in a Servlet allows me to do what I need to do. I was simply looking for a way to skip that step. I've seen some code posted to the list using tags in the ejb: namespace, but haven't located any documentation for that particular taglib. Perhaps you could be so good as to provide a link? I'm in the process of downloading the Romans book, so perhaps that will have the details I'm looking for. Thanks for the pointer. -- Aniket Upganlawar CTO Office : +91-22-6559920 Mobile : 9820215601 -- Verchaska - Helping your business succeed --
Re: Get the web uploaded file
take a look at http://www.orionsupport.com/articles/fileupload.html Aniket At 01:13 AM 11/13/2000, you wrote: At 15:00 12.11.00 , you wrote: It's not form commercial use. It's for my research project for getting my master's degree in Electrical Engineering ... I'm not concered about securety right now. then hack right on. will be fun. the security aspects of this could easily fill a chapter of your thesis if it fits your topic ;-). Thanks, Robert. The problem is that I'm not able to get the file that I uploaded using a HTML form like: form method="post" action="my_servlet" input type="file" name="my_class_file" input type="submit" /form How do I get the file in the servlet and make an object of it? I've tried: File f = (File)request.getAttribute("my_class_file"); But it does not work. It compiles if I change to: Object obj = request.getAttribute("my_class_file"); But then, how do I transform an Object to a File, and then, as the file is a compiled class, how do I create an instantiate this class to call some methods of it? Thanks again! []s Guilherme Ceschiatti [EMAIL PROTECTED]
JBuilder + Orion
hi folks, could somebody help me out in integrating Orion with JBuilder for debugging. I've seen plenty of mails on this list that say it can be done but none detailing it. would really appreciate it if somebody could give me the details Regards Aniket