Re: Starting Orion as a service in Solaris 8
Did you start the service as root? And did you remember to copy tools.jar to the /usr/local/orion ? - Original Message - From: Vu Le Hung [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 03, 2002 9:44 AM Subject: Starting Orion as a service in Solaris 8 Hi all, I've been trying to start Orion as a service in SunOS 5.8 as follow but it failed: - Create an executable script file /etc/rc.d/init.d/orion containing following lines #!/bin/sh #Change to orion directory cd /usr/local/orion #Start orion application server java -jar orion.jar After booting up the system, I can goto Orion welcome page by typing http://myhost/ but I cannot get any JSP pages displayed properly. Any ideas ? Maybe the servlet engine did not start ? Thanks for your help in advance. Yours, Vu
Re: Orion user management
session.invalidate(); ? - Original Message - From: Randahl Fink Isaksen To: Orion-Interest Cc: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 11:08 AM Subject: Orion user management Hi Peter I was just wondering: In your search for user management methods have you ever come across a logout() method? It seems odd to me, that there is only a login method on the role-manager interface if you are dealing with an application client (e.g. a Swing client) instead of a regular web client you log the user in using the role-manager login() method, but there seems to be no means for logging the user out again. Thanks for your time Randahl
Re: default.jsp bug (duplicate requests)
This sounds like it could have something to do with IE's lazy update feature. I suppose many of your pages does not cause a problem if run multiple times. For those pages that can only be run once, make sure to handle this by using some sort of cookie or session variable. % if (session.get(isRun).equals(true) ) return; //end processing. //should probably use a redirect to reloadable page. % I agree that this is not what you want to do, this should not occur in the first place. Write microsoft and complain :) You could probably solve it by using transactions, involving a set of pages. Accessing a page outside of the transaction-context should throw a not so nice No current transaction and thus letting the container work for you. I have not tried this approach on Orion, but it works well on Intershops - Enfinity platform. //Johan - Original Message - From: Robert Johnson [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 8:26 PM Subject: RE: default.jsp bug (duplicate requests) I removed all the caching code in the jsp files and now the jsp's look like the following: DEFAULT.JSP: %! static int x = 0; % % System.out.println(EXECUTING DEFAULT.JSP: x= + x);% %=This is default.jsp: x= + x++% TEST.JSP: %! static int y = 0; % % System.out.println(EXECUTING TEST.JSP: y= + y);% %=This is test.jsp: y= + y++% I am still getting duplicate requests coming from default.jsp on every invocation of a jsp file. Here is what I am seeing in the console window after running first accessing http://localhost/ and then issuing a request for http://localhost/test.jsp . After each request you can see the duplicate request coming from default.jsp C:\Prog\java\orion1_5_2java -jar orion.jar Orion/1.5.2 initialized EXECUTING DEFAULT.JSP: x=0 EXECUTING DEFAULT.JSP: x=1 -- Duplicate request EXECUTING TEST2.JSP: y=0 EXECUTING DEFAULT.JSP: x=2 -- Duplicate request
Re: timed events
Perhaps via a croned java client? //Johan - Original Message - From: Casper Højstrup [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 10:20 AM Subject: timed events This more of a regular EJB question, I suppose. I need to initiate some specific tasks and specific times in my application, since the application server aren't multithreaded(so to speak), and the usage of threads is not recommended, I cannot make a simple timer, that will initiate the appropriate procedures at a given time. How do one solve such problems in an EJB application ? Regards .
Re: connection pipe problems
Make sure you flush the buffer in the servlet before it finishes. //Johan - Original Message - From: Aaron Tavistock [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 3:37 AM Subject: RE: connection pipe problems You can't really tell everyone on the internet to set back their browsers to HTTP 1.0. Is there someotherway to control this? FYI - I've seen the same problem but only from some browsers (specifically Windows IE 6), but not other browsers (Opera on Redhat, Netscape 4 on Windows). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 4:25 PM To: Orion-Interest Subject: RE: connection pipe problems HI It may be from your browser using HTTP1.1. When Orion sees HTTP 1.1 it may send stuff back: Transfer-Encoding: chunked If you switch your browser to use HTTP1.0 only, the problem may dissapear, worth a try. -Original Message- From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 2:24 PM To: Orion-Interest Subject: connection pipe problems -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello to all, I seem to have run into a bit of a riddle here with the Orion server (version 1.5.3 currently but 1.5.2 did this too, both running on Solaris though the problem is also exhibited on Linux) It seems that the http connection pipe doesn't complete and close whenever a page is loaded (Meaning the browser thinks there is more info coming its way and just sits there and spins), further it sometimes seems like everything loads except some of the images on the page, yet when someone hits reload on a page they get everything, then the connection to the browser is closed and all is fine and dandy. This happens with files coming from a servlet mostly, we don't have any flat html or jsp pages which we use, so I don't know if they would behave the same way. Has anyone else seen this, what is the possible solution to this issue? is there some kind of setting in Orion which I missed which will help this cause? Many thanks R -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use http://www.pgp.com iQA/AwUBPEXvcFIHAfF2BMfREQIc1QCg7jtkS9LtTwprKJRdSh+ETBFYM30AoIli f1+9UxEvADYbDI0pOX85Qi43 =PsKx -END PGP SIGNATURE- ** THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE, IT MAY CONTAIN PRIVILEGED OR CONFIDENTIAL INFORMATION. ANY UNAUTHORISED DISCLOSURE IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT OUR INTERNAL RECORDS. PLEASE THEN DELETE THE ORIGINAL EMAIL. THANK YOU **
RE: Problem using custom tags.
inline -Original Message- From: E Stones [mailto:[EMAIL PROTECTED]] Sent: den 8 oktober 2001 14:01 To: Orion-Interest Subject: Problem using custom tags. The following example is taken from Chapter 2 of Advanced Java Server Pages by David M. Geary I'm getting this error when I try to implement to code sample below: -- 500 Internal Server Error: Error parsing JSP page /test1.jsp line 13 Bean 'item' already defined -- Has anyone any ideas what might be the problem? *** test.jsp code: *** htmlheadtitleAn Iterator/title/head %@ taglib uri='/WEB-INF/tlds/iterator.tld' prefix='it' % body % java.util.Vector vector = new java.util.Vector(); vector.addElement(one); vector.addElement(two); vector.addElement(three); vector.addElement(four); % Iterating over %= vector % ...p --- declaration of item it:iterate id='item' collection='%= vector %' --- declaration 2 of item !--jsp:useBean id='item' scope='page' class='java.lang.String'/-- //above should not be necessary. Item: %= item %br /it:iterate /p /body /html Iterator.tld ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN web-jsptaglib_1_1.dtd taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnamesmp/shortname infoSun Microsystems Press Tag Library/info tag nameiterate/name tagclasstags.IteratorTag/tagclass teiclasstags.IteratorTagInfo/teiclass bodycontentJSP/bodycontent attribute nameid/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute attribute namecollection/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute infoIterates over a collection/info /tag /taglib *** IteratorTag.java *** import java.util.Collection; import java.util.Iterator; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.BodyTagSupport; public class IteratorTag extends BodyTagSupport { private Collection collection; private Iterator iterator; public void setCollection(Collection collection) { this.collection = collection; } public int doStartTag() throws JspException { return collection.size() 0 ? EVAL_BODY_TAG : SKIP_BODY; } public void doInitBody() throws JspException { iterator = collection.iterator(); pageContext.setAttribute(getId(), iterator.next()); } public int doAfterBody() throws JspException { if(iterator.hasNext()) { pageContext.setAttribute(getId(), iterator.next()); return EVAL_BODY_TAG; } else { try { getBodyContent().writeOut(getPreviousOut()); } catch(java.io.IOException e) { throw new JspException(e.getMessage()); } return SKIP_BODY; } } } * IteratorTagInfo.java * package tags; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class IteratorTagInfo extends TagExtraInfo { public VariableInfo[] getVariableInfo(TagData data) { return new VariableInfo[] { new VariableInfo(data.getId(), // scripting var's name java.lang.Object, // variable's type true, // whether variable is created VariableInfo.NESTED) // scope }; } } _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: QUESTIONS ABOUT MANAGING SECURITY
Try setting up an errorpage for the error com.evermind.server.rmi.OrionRemoteException //Johan -Original Message-From: David Bonilla [mailto:[EMAIL PROTECTED]]Sent: den 27 september 2001 12:56To: Orion-InterestSubject: QUESTIONS ABOUT MANAGING SECURITY I have implemented security on my application and I´m a newbie with these questions. My apply catch the exceptions and show it via JSP. When I try to access a method that I don't have permission for, I get a com.evermind.server.rmi.OrionRemoteException: dave is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml). This a Orion propietary Exception and my question is... Wich is the Exception that throws every ApplicationServer ? a generic RemoteException ? and how can I manage it to control if it´s a security exception and show, for example, a "You´re not allowed to do that" text in my JSP ? Thank you very much, mates __David Bonilla FuertesTHE BIT BANG NETWORKhttp://www.bit-bang.comProfesor Waksman, 8, 6º B28036 MadridSPAINTel.: (+34) 914 577 747Móvil: 656 62 83 92Fax: (+34) 914 586 176__
Orion on Macintosh
Anyone tried to run Orion on a Mac OS X machine? And if anyone have, I'd like to know about problems you had. Any porting problems from Microsoft development to production Mac...? Thanks in advance Johan
Re: Orion and properties (Anyone used a CORBA client within Orion?)
Have you tried the -Xms64m -Xmx128m options to java? Type java -X for help Johan - Original Message - From: Adam Cassar [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, September 10, 2001 5:54 AM Subject: Orion and properties (Anyone used a CORBA client within Orion?) Guys! I hope some of you can shed some light on this problem. I am (attempting) to use a stateless session bean as a corba client. I place (openORB or JacORB) inside orion/lib and set up its properties file. All I get when I attempt to use it in a session bean (however it works in a plain class) is 9/10/01 1:49 PM Error in bean SomeBean java.lang.StackOverflowError at java.util.Properties.getProperty(Properties.java:478) at com.evermind.server.ApplicationServerSystemProperties._grc(Unknown Source) at com.evermind._ck._xpb(Unknown Source) at com.evermind._ck._xpb(Unknown Source) at com.evermind.server.ApplicationServerSystemProperties.getProperty(Unknown Source) at java.lang.System.getProperty(System.java:562) at com.evermind.server.ApplicationServer._xh(Unknown Source) at com.evermind._ck._xpb(Unknown Source) at com.evermind._ck._xpb(Unknown Source) at com.evermind.server.ApplicationServerSystemProperties.getProperty(Unknown Source) at java.lang.System.getProperty(System.java:562) at com.evermind.server.ApplicationServer._xh(Unknown Source) at com.evermind._ck._xpb(Unknown Source) at com.evermind._ck._xpb(Unknown Source) at com.evermind.server.ApplicationServerSystemProperties.getProperty(Unknown Source) this goes on and on and on. Obviously orion doesn't like this, the thing is, how can I make it work? Ideas, suggestions ANYTHING? :) TIA
Re: Orion and Sax/JDom
Title: Message If you're using Windows you might want to check your registry. If you can type java -server -jar orion.jar the settings should be ok. Look for anything in the registry that says javasoft and make sure it points to your jdk installation dir. If it is not pointing to your jdk install dir but to program files\JavaSoft\JRE1.3 or 1.3.1 that might be your problem. Johan - Original Message - From: Bryant Bunderson To: Orion-Interest Sent: Wednesday, September 05, 2001 5:22 PM Subject: RE: Orion and Sax/JDom I use this command to run Orion Server. It solved my Xerces and JDOM problems. java -classpath xerces.jar;orion.jar com.evermind.server.ApplicationServer -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Michael LaccettiSent: Tuesday, September 04, 2001 1:10 PMTo: Orion-InterestSubject: RE: Orion and Sax/JDom I did a fresh install, downloaded the latest zip and installed it. I've tried downloading the latest version of xerces and replacing the version with 1.5.2 with that. Again, still getting the SAX2 not found exception. Is there a specific order to setin the classpath? -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of The elephantwalkerSent: Tuesday, September 04, 2001 12:04To: Orion-InterestSubject: RE: Orion and Sax/JDom Michael, We use jdom b7 and orion 1.5.2 all of the timewith no problems.We use jdom with crimson, which is the default parser with jdom and orion version 1.5.2.Orion 1.4.6 used an old version of xerces. Did you use autoupdate.jar to install 1.5.2 or did you use a fresh install? Autoupdate.jar is a little unreliable, so I would do a fresh install. regards, the elephantwalker -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael LaccettiSent: Tuesday, September 04, 2001 8:33 AMTo: Orion-InterestSubject: Orion and Sax/JDom I've recently installed Orion 1.5.2 on a linux test machine, and installed our app on it. It worked fine under 1.4.6, but for some reason, when I dump it under 1.5.2 I keep getting a SAX2 exception: SAX2 driver class not found. Has anybody seen this before, and better yet, fixed it? I've tried everything that I can think of. I even grabbed the latest version of JDom and installed that. Please help! -Michael LaccettiDeveloper, Eldan Software[EMAIL PROTECTED]
Re: response.sendRedirect(response.encodeRedirectURL(path));
Thanks, that was it! Johan - Original Message - From: James Fairbairn [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, September 04, 2001 2:46 PM Subject: Re: response.sendRedirect(response.encodeRedirectURL(path)); Hi Johan Are you using Apache as a reverse proxy to provide external web access to internal hosts? This may help then: If you are using Apache with the ProxyPass directive for your external proxy, you also need to include a ProxyPassReverse directive for each virtual host in httpd.conf. i.e. VirtualHost 1.2.3.4 ServerName vhost4.foo.bar ...etc... ProxyPass / http://10.0.0.4/ ProxyPassReverse http://10.0.0.4/ /VirtualHost VirtualHost 1.2.3.4 ServerName vhost5.foo.bar ...etc... ProxyPass / http://10.0.0.5/ ProxyPassReverse / http://10.0.0.5/ /VirtualHost Do this for each virtual host you are exposing to the outside world via your proxy. This way, Apache knows to translate any 302 redirect hostnames to the outside world vhost's name. Hope this helps. James
Re: response.sendRedirect(response.encodeRedirectURL(path));
The session id is appended correctly. However a response sendredirect creates a relative url from where I am, that is behind the proxy. This causes the browser to search the private network for that server, which does not exist. So, is it my Apache that is FUBAR or is it me ( or Orion )? Johan - Original Message - From: yeo sze wee [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, September 04, 2001 4:29 AM Subject: Re: response.sendRedirect(response.encodeRedirectURL(path)); hi the encodeRedirectURL method in response object doesn't seem to work. What I did is to encode the session id in the url in my code. i.e. response.sendRedirect(path+;jsessionid=+session.getId()); regards sze wee From: Johan Fredriksson [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: response.sendRedirect(response.encodeRedirectURL(path)); Date: Mon, 3 Sep 2001 13:16:37 +0200 I cannot get the response.sendRedirect(response.encodeRedirectURL(path)); method call to include the frontend host name!! Architechture like this internetprivate netw layerlayer proxy---oriondb whenever surfing via the proxy and a response sendredirect is called I end up in the private network ( ip 192.168.1.123) instead of the proxy address. My web.xml looks like this: web-site host=[ALL] port=80 display-name=Aller WebSite virtual-hosts=aller.localhost !-- The default web-app for this site, bound to the root -- frontend host=proxy.flowinteractive.se port=80/ default-web-app application=default name=defaultWebApp / !-- Uncomment this to activate the news app -- !-- web-app application=news name=news-web root=/news / -- !-- Access Log, where requests are logged to -- access-log path=../log/aller-web-access.log / !-- web-app application=admin name=admin-web root=/admin / -- web-app application=aller name=aller-web root=/aller / /web-site I would greatly appreciate if anyone who has solved this can give me some insight other than using absolute urls. Thanks in advance Johan Fredriksson _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
response.sendRedirect(response.encodeRedirectURL(path));
I cannot get the response.sendRedirect(response.encodeRedirectURL(path)); method call to include the frontend host name!! Architechture like this internet private netw layer layer proxy---oriondb whenever surfing via the proxy and a response sendredirect is called I end up in the private network ( ip 192.168.1.123) instead of the proxy address. My web.xml looks like this: web-site host="[ALL]" port="80" display-name="Aller WebSite" virtual-hosts="aller.localhost"!-- The default web-app for this site, bound to the root --frontend host="proxy.flowinteractive.se" port="80"/default-web-app application="default" name="defaultWebApp" / !-- Uncomment this to activate the news app --!-- web-app application="news" name="news-web" root="/news" / -- !-- Access Log, where requests are logged to --access-log path="../log/aller-web-access.log" /!--web-app application="admin" name="admin-web" root="/admin" / --web-app application="aller" name="aller-web" root="/aller" / /web-site I would greatly appreciate if anyone who has solved this can give me some insight other than using absolute urls. Thanks in advance Johan Fredriksson
Re: NullPointerException npe
Hmmm, that is not what it looked like when I tried to send it, I guess the fault is the listserver;) Resending... I keep getting this errormessage. It seems to happen on pages with the jsp:getProperty name=".." property="..."/ tag.I have no idea what is causing this. Pressing reload on the page makes the error go away. NE1 have a clue? Johan 500 Internal Server Errorjava.lang.NullPointerExceptionat com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPBeanInfo._edb(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPPage._ckc(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._ah._bfe(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) - Original Message ----- From: Johan Fredriksson To: Orion-Interest Sent: Monday, August 27, 2001 3:56 PM Subject: NullPointerException npe I 500 Internal Server Errorjava.lang.NullPointerException at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPBeanInfo._edb(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPPage._ckc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._bfe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
NullPointerException npe
I 500 Internal Server Errorjava.lang.NullPointerException at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPBeanInfo._edb(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPPage._ckc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._bfe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
Re: Question about filestoring.
It will normally store your files relative to your application root. Johan - Original Message - From: Jens Frank To: Orion-Interest Sent: Wednesday, July 25, 2001 8:10 PM Subject: Question about filestoring. I have this servlet which works with a database. All files are in the WEB-INF/classes directory. When I run the servlet and it tells the database to store a file of the database in the same direcotry as all files are in (WEB-INF/classes) it instead stores the file in c:\orion How come? Can I change this behaviour? Best regards Jens Frank
Re: Orion Performance Tuning
inline - Original Message - From: Robert S. Sfeir [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 11:09 PM Subject: RE: Orion Performance Tuning At 12:49 PM 7/25/2001, Duffey, Kevin wrote: I am interested in your two fixes. Have you (or anyone) noticed that Orion actually requires 175MB of RAM? I think it's mainly our Servlet that uses this up. I think it depends on how many servlets you load. Is there a definite need to use both memory switches, or perhaps one over the other? What is the use and/or meaning of each switch? -Xms = minimum amount of memory the JVM will use -Xmx = mazimum amount of memory the JVM will use What I find funny is I just installed JDK 1.3.1 and noticed the /server, /classic and /hotspot dirs under bin which contain the jvm.dll that Windows uses. I was actually going to post an email to this and JSP interest list asking what the benefits and differences are between the 3 jvms. BIG benefits, just try it. The hotspot IS included in JDK1.3.1, so the -hotspot switch is not needed. Anyhow, the difference between -client and -server switches is the 80-20 model and a more dynamic OSR ( on stack replacement ). The client option uses a static 80-20 model to determine which methods are to be marked as HOT and therefore subject to OSR. The server option however determines OSR at runtime marking methods over a period of time, doing statistics whatever to truly determine how and why and when to do OSR. The client starts immediately and is used for programs that run from a couple of minutes to a day approx, and the 80-20 approach is applicable and enough for client needs. The server on the other hand requires at least a few hours uptime to determine which methods are HOT. This information is lost on System.exit(int), so, at every restart it has to do all statistics again. But then, a server jvm should not be restarted. For development I would (and do) use -client so I can stop and start the server more often without wait for statistics. The difference is the internal compiler. They are completely different. The server compiler was written from scratch. And for all I know the compiler is not completely finished, and use the client compiler where it does not know how to handle something. So SUN has only released the safe compiler and there should not be a need to use -server on development since behaviour will be the same, only time wont. Johan I haven't been able to find anything on the sun site that details how they are different. Can you fill me in if you know, what makes the server jvm better? From what I understand, it uses memory and processors more efficiently, more driven for background apps rather than a client JVM driven with foreground apps in mind. Is it better overall for all use (other than client-side SWING apps)? I thought the hotspot was the best because of the inline JIT that converts code to native..and thus should speed it up greatly. Is the server better just for production use, or for anyone running Orion locally for web development as well? Ideally, I would think we want our development, qa, staging and live servers to all run the same JVM to make sure we all see any problems that arise. I use it for everything here now. No harm, just benefits, you just gotta have the RAM. R Robert S. Sfeir Director of Software Development PERCEPTICON corporation, in Joint Venture With JTransit San Francisco, CA 94123 pw - http://www.percepticon.com/ jw - http://jtransit.com e- [EMAIL PROTECTED]
Re: JMS TopicSubscriber blocks on receive()
It is quite obvious it is waiting for a message. So my advice is that you write a client / jsp page / whatever with a TopicBrowser(?) to make sure your message really is there. Johan - Original Message - From: Greg Matthews To: Orion-Interest Sent: Wednesday, July 25, 2001 2:49 AM Subject: JMS TopicSubscriber blocks on receive() dear all, i've having trouble with a subscriber blocking on a receive message call. for the time being i can use a Queue instead of a Topic but would like to know if anyone can spot any stupid error i'm making. --- code for publisher Topic t = (Topic)ServerUtil.get( "jms/configTopic" );TopicConnectionFactory tcf = (TopicConnectionFactory)ServerUtil.get( "jms/TopicConnectionFactory" );TopicConnection tc = tcf.createTopicConnection();TopicSession ts = tc.createTopicSession(false,TopicSession.AUTO_ACKNOWLEDGE); TopicPublisher tp = ts.createPublisher(t); Message m = ts.createTextMessage("hello world"); tp.publish(m); // create subscriber in a new thread. new Thread( new Listener(tc,ts,t)).start(); code for subscriber class Listener implements Runnable {TopicConnection tc;TopicSession ts;Topic t; Listener(TopicConnection tc, TopicSession ts, Topic t) throws Exception {this.tc= tc;this.ts = ts;this.t = t;}public void run() {try {TopicSubscriber sub = ts.createSubscriber(t,null,true);System.out.println("receiving message..." );tc.start();synchronized(this) {wait(5000);}System.out.println(sub.receive()); // this line blocks. why? } catch( Exception e ) { e.printStackTrace();}System.out.println("end");}} thanks, greg.
Re: Orion's JSP generated code
Why don't you write a bodyTag that you use like myTag:removeAllStupidWhiteSpaceThatIDontLike % foo(); %% bar(); % /myTag:removeAllStupidWhiteSpaceThatIDontLike And in your code, analyse bodycontent before it is written...? ie bodyContent.toString().indexOf("\r\n"); or something like that. I agree this will be difficult when including different pages. Johan - Original Message - From: Sergei Batiuk To: Orion-Interest Sent: Tuesday, July 24, 2001 3:32 PM Subject: Re: Orion's JSP generated code % foo(); %% bar(); % This looks like a nice idea!However: IfI have several jsp's to include into one page, each will add the \r\n. My opinion is that this is not a philsophical difference, but something that orion server developers or JSP specification developers missed. I can always add as many \r\n's to my page as I wish. But there is no way to remove unnecessary ones. Best regards, Sergei. - Original Message - From: Aaron Tavistock To: Orion-Interest Sent: Monday, July 23, 2001 10:00 PM Subject: RE: Orion's JSP generated code Umm, the \r\n is probably something you are including inadvertently. I'm going to speculate that you have a construct that looks like this... % foo(); % % bar(); % between the first close and next open, you have a \r\n. While it looks uglier on the JSP page it should clear your line break if you did this... % foo(); %% bar(); % Now why JSP doesn't clean this up for you an PHP does probably boils down to a philosophical difference. PHP is cleaning it up for you, where JSP is giving you exactly what you asked for. I'd guess this is because PHP is pretty much pure web, where JSP is intended to be portable into other formats that may think whitespace is important. -Original Message-From: Sergei Batiuk [mailto:[EMAIL PROTECTED]]Sent: Friday, July 20, 2001 3:25 AMTo: Orion-InterestSubject: Orion's JSP generated code Hi forum, I have noticed that when I use scriplets or tags in my JSPs, orion puts "\r\n" into the outputstream code for each tag. This results in many blank lines in the generated HTML code. In comparison,PHPscripletsdo not produce these blank lines. Does anyone know how to "beautify" the generated code? Thanks in advance, Sergei.
Re: Servlets
Compile it and put the java/class files in /web-inf/classes then access it as http://hostname/appname/servlet/my.package.name.ClassName (or if you put it in your default webb app the url is http://hostname/servlet/my.package.name.ClassName ) So if your SimpleServlet resides in a default package on yourlocalmachine and in the default appthe url would be http://localhost/servlet/SimpleServlet as for editing web.xml it is easy. XML is textbased. just add a block like the following : servletservlet-nameUserLogin/servlet-namedisplay-nameUserLogin/display-nameservlet-classmy.very.long.packagename.UserLoginServlet/servlet-classload-on-startup2/load-on-startup/servlet and of course change all values. The nice thing about web.xml is that it lets you alias your servlets. In the above example the url would be http://localhost/servlet/UserLogin (servlet-name) Johan - Original Message - From: Jens Frank To: Orion-Interest Sent: Tuesday, July 24, 2001 9:37 PM Subject: Servlets Hello, I am newbie on this. I have a schoolaccount on a computer running Orion-server. I want to try out a clean java servlet, no JSP or anything else.. On my account there is a folder called WEB-INF and that folder contains 2 folders. classes and lib. In WEB-INF there also is a file called web.xml. What do I have to do to be able to run my servlet called SimpleServlet? Someone told me to change web.xml but I do not how to handle xml. Also, where should my servlet-file go? Should I complie it and send the .class file or send the .java file? Where should I put it? In the classes folder? Many thanx for answears.. Best Regards, Jens Frank
Re: Properties survice auto-deploy
I would really hate the fact if orion/applications/myapp was swiped on the next deployment, since my htdocs are mounted under that directory. And we have customers who uses fileupload for images that are to be displayed. And if the directory is to be swiped everytime we update the application, all images would be lost every time and we would have to move the images to the database instead, which is slower. Johan - Original Message - From: Bill Winspur To: Orion-Interest Sent: Monday, July 09, 2001 12:35 AM Subject: Properties survice auto-deploy I use a frontservlet.properties file in my web-inf directory which is pickedup by my front servlet (naturally). While testing the servlet, I renamed thefile to backServlet.properties, just to exercise the diagnostic code. To mygreat surprise it made not difference: the servlet continued to find a filecalled frontservlet.properties.Digging deeper revealed that both frontServlet.properties andbackServlet.properties were present in orion/applications/myapp. It seemsthat when I auto-deployed my myapp.ear into applications/, the orignal file,frontservlet.properties was not replaced, and the new filebackservlet.properties was added alongside it.I deleted the old file to get my test over with, but does anybody know whyauto-deploy of myapp.ear does not discard everythng that was inorion/applications/myapp ?TIA Bill.
Re: Bug??? Orion/SSL + IE loses sessions
It is also a known problem that IE forces a user to relogin every 2 minutes by default. Strongly suggest that you go to a site with online banking and see how they solved the problem. Usually there's a patch to download that increases the expiring idle time, which is annoying when IE is using lazy update and uses cached pages instead of updating immediately. Lazy cache is when the browser for now uses the cached version, and in the background sends a new request. I couldn't find a url for the patch, but I know it exists somewhere on http://www.handelsbanken.se under the menuoption Installation. The site is in swedish so you might have difficulties navigating :) Johan - Original Message - From: Noah Nordrum [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:46 PM Subject: Re: Bug??? Orion/SSL + IE loses sessions are you using a really long GET query string? I've found (on an older version, 1.3.8 if I recall correcty) that if you send a very long, don't know exactly how long, query string, it would cause you to loose your session. I couldn't explain why, I just switched to POST, and everything worked great. This may not be your problem, but just thought you might want to know. Noah - Original Message - From: Klaus Thiele [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:20 AM Subject: Re: Bug??? Orion/SSL + IE loses sessions Hi, in your secure-web-site.xml try: web-app application=appname name=webapp root=/blabla shared=true/ ^ hope that helps klaus Am Dienstag, 3. Juli 2001 15:11 schrieben Sie: There is definitely a problem or bug with using IE in front of Orion with SSL turned on. I lose sessions every 2 minutes or so. When I use Netscape, this problem doesn't occur. If I use Weblogic with SSL, I don't lose any sessions even though I am using the same browsers. Has anyone run into this problem? Is this bug recorded? Thanks, Ozzie Gurkan Manheim Interactive 404-269-8776 Content-Type: text/html; charset=iso-8859-1; name=Anhang: 1 Content-Transfer-Encoding: quoted-printable Content-Description: -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] Your mouse has moved. Windows must be restarted for the change to take effect. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Debug JSP - how to?
Try uncommenting the error-page thing in web.xml, this would let you see what is actually going on. Johan - Original Message - From: Henrik Skafsgaard Larsen [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, June 29, 2001 8:07 AM Subject: Re: Debug JSP - how to? I AM using IE and that thingy for *user friendly* messages has been disabled. Both Netscape and IE attempts to save the file instead of displaying it. What I do not understand is, how can I actually make an instance of the class but not use a method in it? Seems odd to me. mvh / best regards Henrik Skafsgaard Larsen - Original Message - From: Scot Weber [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 5:21 PM Subject: Re: Debug JSP - how to? Henrik, Are you by chance using IE? If you are, go to the advanced properties and disable the beautified error page display, this will give you the actual jsp error information from things like 500 Server Errors. If you're using nutscrape and not getting meaningful error messages, then something is radically wrong. - peace - scot weber / [EMAIL PROTECTED] [ this space reserved for something really clever ] Henrik Skafsgaard Larsen wrote: Hello I have this servlet, which actually doesn't do much except write html, so for testing purpose I decided to change it to JSP. I want to use some methods defined in our homegrown packages and imported the package with: %@ page import=com.mypacke.util.* % I then wrote the following: . . % Cleo c = new Cleo(); out.println(Howdy from Cleo: + c.getDate()); % . . the result was, that my page could not be displayed. Removing the reference: c.getDate() helped but I cannot find any hints ind the logfiles as to WHY it doesn't work. med venlig hilsen / best regards Henrik Skafsgaard Larsen
Re: Newbie - using EJB and databases
Well, I only use JSP/Beans right now... And the location is pooled-location=jdbc/MyPooledDS I assume this should be sufficient if no transactions are used. However if there is a performance penalty using this pooled-location compared to ejb-location I would like to know. Johan - Original Message - From: Jens Stutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 5:16 PM Subject: AW: Newbie - using EJB and databases Hi all, the code seems correct, however the jdbc/MyPooledDS location name does not explain, which of the names specified in datasources.xml you should lookup (this may have dramatic consequences both for performance and integrity). In datasources.xml, you can specify names for three locations, like: location=jdbc/BaseDB xa-location=jdbc/xa/BaseXADB ejb-location=jdbc/BaseEJBDB From within a servlet and/or a JSP page, you normally use the location. From within a session- or BMP-entity-bean, you must use the ejb-location, to ensure the proper function of container managed transactions (BTW, this also works much faster than using the normal location). I never used the xa-location, i don't know where it may be usefull. Best regards, Jens Stutte -Ursprüngliche Nachricht- Von: Johan Fredriksson [mailto:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 20. Juni 2001 13:52 An: Orion-Interest Betreff: Re: Newbie - using EJB and databases This is how I always do import java.sql.*; public class DB { private static javax.sql.DataSource ds = null; //Initieringsblock static { String dbsource = jdbc/MyPooledDS; try { javax.naming.Context ctx = new javax.naming.InitialContext(); if (ctx == null) { System.out.println(No context!); } ds = (javax.sql.DataSource)ctx.lookup(dbsource); } catch(javax.naming.NamingException namExc) { ds = null; namExc.printStackTrace(); throw new java.lang.RuntimeException(Failed to get datasource!!); } } public DB() {} public static java.sql.Connection getConnection() throws java.sql.SQLException { return ds.getConnection(); } } then I just call Connection conn = DB.getConnection(); from my apps/beans/whatever Johan - Original Message - From: kevin1 [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 2:06 AM Subject: Newbie - using EJB and databases Hello all, I am still new to the whole EJB thing, but I have a grasp on it. However, the one thing I am foggy on is how to use a database. I know that I set up the db connection in the data-sources.xml file, but what is the syntax to use that in an application? Where could I find an example of that?
Re: Servlet and CSS
Use Netscape to develop this for the first time, since Netscape complains more ( Netscape 6 is worst / best ). the file blaf.css as you have now written the code is assumed to be in the /servlet dir, which probably is not the case. Use something like request.getContextPath()+/css/blaf.css which assumes your css is in the appname-web/css/ directory. ( The app can be mounted anywhere, request.getContextPath() handles that. ) Johan - Original Message - From: Holden Glova [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 3:57 AM Subject: Re: Servlet and CSS Brynolf Andersson wrote: Hi all gurus, I am trying to include a CSS in my servlet: out.println(html); out.println(head); out.println(titleUntitled Document/title); out.println(meta http-equiv=\Content-Type\ content=\text/html; charset=iso-8859-1\); out.println(link rel=\StyleSheet\ href=\blaf.css\ type=\text/css\); out.println(/head); But it won't work for me. So where should I put the blaf.css in my Web application structure to get it working, or is there something wrong with my HTML ??? Thanks a lot I'll start with the obvious? is blaf.css located there? Remember that they are relative paths. Kind regards, +---+ | Holden GlovaAlchemy Group Limited | | [EMAIL PROTECTED] P: +64 3 962-0396 | | Software Engineer F: +64 3 962-0388 | | http://www.alchemy.co.nz | +---+
Re: LIST ADMINISTRATOR
That wont help, since the bouncing mails are bouncing back to the mailing list and therefore are sent to all of us. A filter at the mailserver would help, but then somebody would start to yell something about IronFlare and censorship. And we don't need that thread again... Johan - Original Message - From: John McGowan [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, June 18, 2001 3:58 PM Subject: TO: LIST ADMINISTRATOR Would the list administrator PLEASE reconfigure the list so we don't all have to see messages about undeliverable mail. Also, it would be nice if the subject of all mails had some sort of prefix. I don't have any problem checking my mail at the office, I've got a filter set up, but when i check it while i'm away, It would be nice to very quickly look at the subject and determine that it comes from the orion list. Thanks, John
Re: NEWBIE: Default HTTP Content-Type
Well, you could probably use a filter to just that... Have the filter trigger a servlet which reads the file and sets the content type. Johan - Original Message - From: Norbert Papke [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, June 04, 2001 7:03 PM Subject: NEWBIE: Default HTTP Content-Type I have just started to play around with the Orion server and am very impressed by it. Installation and configuration was a snap, performance and footprint are great. I have, however, noticed one ideosyncracy that I hope somebody will be able to help me with. I have some text files on my site that are part of a knowledge base. These files contain only ASCII characters, the excute permissions are not set, and the files do not have an extension. The Orion server delivers these files with an HTTP content type set to application/octet-stream. Apache delivers these same files with a content type of text/plain. The latter is preferable to me as it allows browsers to render the files. Is there any way to change the content type that Orion uses to deliver these files? Please note that changing the files (either by converting them to html or adding a file extension) is not really an option. Best regard, -- Norbert Papke. [EMAIL PROTECTED]
Re: Oracle deal gag
Wrong, it is not CIA, but the Borg who have intercepted and censored some messages. That also explains the delay on this list, since a subspace call takes a while to travel. RESISTANCE IS FUTILE. Johan - Original Message - From: Jeff Schnitzer [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 11:30 PM Subject: RE: Oracle deal gag From: Jay Armstrong [mailto:[EMAIL PROTECTED]] [...paranoia...] Have you ever considered that maybe your communications are being intercepted and preprocessed by a CIA computer? Do you hear clicking noises every time you pick up the phone? You have accidentally sumbled across The Swedish Conspiracy. Ironflare is actually a front company for arms smuggling: It is a little known fact that Larry Ellison converted to a radical reactionary Islamic sect recently. Oracle purchases app servers from Ironflare, Ironflare uses the money to purchase Kalishnakov rifles from nearby Russia, and a renegade CIA group smuggles them into Afghanistan to support the Taliban. Magnus and Karl are ficticious identities; in fact their names are acronyms for Make Arms Gifts Neglecting Upgrading Software and Keep Armstrong's Replies Limited. Now that you have now exposed yourself and your knowledge, the Men In Black will be coming for you soon. Good luck! Jeff Schnitzer
Re: Unitialized Register
Hmmm, sounds like a VM bug... - Original Message - From: James Hill [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, June 07, 2001 9:34 PM I have a really odd problem with jikes/orion (1.5.2 orion, 1.14 jikes). I have a particular JSP page that will give the following error: Error parsing JSP page /hunting/today/article.jsp Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage0_hunting_today_article_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Accessing value from uninitialized register 24 It only gives me this error if have jikes turned on and I have development mode (orion-web.xml) turned off. Any other combination seems to work fine (but slower). Thanks! James Hill
Re: How do i cache a JSP on the proxy?
Title: RE: How do i cache a JSP on the proxy? what about % if ( (System.currentTimeMillis()/1000) % 15 ) counter = 0 ; % That is, you first make sure that the time is rounded down to closest second and see if that is divisable by 15, and then resetting counter Or did I completely misunderstand you? Johan From: Kesav Kumar To: Orion-Interest Sent: Saturday, June 09, 2001 12:03 AM Subject: RE: How do i cache a JSP on the proxy? Yes. Oscache provides a proxy independent caching solution. This is nice and once can have programtically control over the caching. The only drawback(or good for some one) in the current implementation is all caching is memory based. All the caching is done in memory and optionally file. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Stan Ng [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 12:15 PM To: Orion-Interest Subject: Re: How do i cache a JSP on the proxy? This is slightly off-topic, but you may want to look into OpenSymphony's OSCache module. It provides a variety of caching options for JSP and it's been working great for us here. - Original Message - From: "Eduard Witteveen" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, June 08, 2001 7:22 AM Subject: How do i cache a JSP on the proxy? Hello, I want to cache a jsp page on the proxy (apache). My current setup is that i have apache running on port 80, with following config: VirtualHost 145.58.67.8 ServerName eduard.omroep.nl ServerAlias eduard ErrorLog /var/proxy/logs/errors CustomLog /var/proxy/logs/access common ProxyPass / http://localhost:8080/ CacheRoot "/tmp/proxy" /VirtualHost Furthermore the orionserver is running on port 8080, and has the following 'special' settings: frontend host="eduard.omroep.nl" port="80" / For the testing purposes i have the following jsp page: %@ page session="false" % %! int counter = 0; % %! // return a time back, which is +15 seconds.. public long getLastModified(HttpServletRequest request) { System.out.println("in last modified"); // return 15 seconds.. return System.currentTimeMillis() * (15 * 1000) ; } % % long seconds = 15; long now = System.currentTimeMillis(); long expires = now + (seconds * 1000); response.setDateHeader("Expires", expires); System.out.println("in source.." + now + "-" + expires); % html body pThis page was generated on time:%= now %br / Will expire at:%= expires %br / Expire time in seconds:%= seconds %br / Count:%= counter++ %/p /body /html Everytime i request the page, the counter is increased, but this is not what i want. I want to increased at an maximum of 1 time in the 15 seconds. Can somebody help me how to accomplish this, or possible otherways to cache the jsp pages on the front proxy? greatings, -- Eduard Witteveen Systeem Ontwikkelaar NOS Internet, Mediacentrum Kamer 203 +31(0)356773059 http://www.omroep.nl/ Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal
Re: java.lang.OutOfMemoryError;
instead of typing java -jar orion.jar at the command line to start orion, you could experiment with java -Xms128m -Xmx256m -jar orion.jar This increases the heap size. The 128 is the initial size, the 256 is the maximum size. The first number could be something like current free memory, and the second one could be something like total memory. - Original Message - From: Puthezhath, Rajeev (TWII Boston) [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, June 08, 2001 11:28 PM Subject: RE: java.lang.OutOfMemoryError; Sorry.I didnt get what you meant.could you please explain Thanks Rajeev -Original Message- From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 4:26 PM To: Orion-Interest Subject: RE: java.lang.OutOfMemoryError; inline -Original Message- From: Puthezhath, Rajeev (TWII Boston) [mailto:[EMAIL PROTECTED]] Sent: Viernes, 08 de Junio de 2001 14:42 To: Orion-Interest Subject: java.lang.OutOfMemoryError; Hi , We get java.lang.OutOfMemoryError; on production server frequetly.I know this problem was discussed in this list before. I implemented all the sugestions in this mailing list but still the error keeps on coming .I would like to know the following 1) As an answer to the above mentioned problem I saw a sugestion in this mailing list to limit the # of instances by adding max-instances attribute to orion-ejb-jar.xml which would force orion to passivate less used beans.I downloaded orion 1.5.2 and set the same.But observed that passivation is never called. Is there a way to make sure that orion passivates beans which are not used . 2) Some people have mentioned increasing the memory. Has any body tried this solution and i would like to know whether the problem got solved.How can I increase the memory ? first, by hardware (buy some chips), secondly, by specifying a minimun/maximun heap size of the JVM when you invoke it these are the ones I use (W2K, Sun's JVM 1.3.0) -Xms128m (minimun heap size 128 MB) -Xmx320m (maximun heap size 320 MB) 3)Has anybody solved this problem ? No. There´s always a limit to the amount of memory available on any given system ;-) Let's hope that(buggy orion code) gets fixed soon- don't forget to cast your vote on Bugzilla, that is, if vote casting is finally enabled Any sugestions Thanks in advance Regards Rajeev
Re: Orion on Solaris 8
inline - Original Message - From: Joerg Weishaupt [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, June 11, 2001 10:54 AM Subject: Orion on Solaris 8 Hi, I'm having two problems with Orion (1.4.5) on Solaris 8 with JDK 1.3.1 a) I'm unable to set the process into the background. As soon as I log off from the SSH session the Orion process gets killed. Startup is done by calling: nohup java -server -jar -Xconcurrentio -Xms128m -Xmx384m orion.jar -out $ORION_SERVER/log/server-out.log -err $ORION_SERVER/log/server-err.log Check orionsupport.com, or use bash. b) All German specific vocales (Umlaute) are shown as a ? only. The shell you are running orion under has to have german language enabled. If you can type a double s at the prompt, then it should be set up correctly. Maybe someone has some ideas ? TIA Joerg Weishaupt Johan
Re: Oracle deal gag
What is your point? Johan - Original Message - From: Jay Armstrong [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, June 11, 2001 3:51 PM Subject: RE: Oracle deal gag We've all tried presenting the facts to you regarding the Oracle deal, but all we seem to be getting in respose is a descent into your own personal madness. How about summing up the problems you have in a few short lines that won't cause cynics like me to laugh or respond so unpleasantly? Hani In spite of your personal attacks on my mental condition, I will try one more time to deal with facts and give yet another summary. Before doing so, let me state that yesterday I made a third attempt to post my response to Karl. I also sent it directly to Mike Cannon-Brookes asking him to post it. So, three times now I've tried. Let me ask you and the group, how many times must I try and fail to post that message before you will believe that it's getting blocked? Seriously, just pick a number and I'll try that many times. Here's the summary: - 6 months ago (Dec 7), Karl stated, resources will initially be spent more on building the organization and hiring the right people than would be necessary if we didn't make the expansion. - Since then, there have been several threads about lack of support: www.orionserver.com down again (Dec 13), What's going on with Orion? (Jan 4), Is the List alive? (Jan 4), Any news from Orion yet?? (Jan 15), Orion Team Needs New List Software (Mar 14), Impossible getting the attention of the orion (support) team. Are they still around? (Mar 19), Is the list dead? (Apr 25) - Since then, hiring the right people has not occurred. - On Apr 18, Randy Kemp suggested Ironflare contact MySQL, which is also in Sweden (A Swedish Idea). Like me, Randy was ridiculed by people, like Hani, who used terms such as bizarre, this whole ridiculous discussion and fairy tale. - On Apr 23, I reported a production licensing violation directly to Karl. He did not respond. - On Apr 24, I reported the production licensing violation to [EMAIL PROTECTED] Karl responded, stating, We'll check into it. - On May 8, I asked Karl for a status on the licensing violation, but to date, have gotten no response. - On Jun 6, Bryan Young posted the following to this group: I just read about Orion being used as the base code for their 9i app server. - On Jun 6, I responded, refering to the A Swedish Idea thread and stating, I TOLD YOU SO. I also stated, I admire the way they've managed to build a decent product without having to hire testers. - On Jun 7, the day after my post, Karl responded via orion-interest, stating, We've never been in it for the money, but that doesn't mean that you can survive in this society forever without having any money. - On Jun 7, I tried to respond to Karl via orion-interest. - On Jun 8, I made my second attempt to respond to Karl via orion-interest. - On Jun 10, I made my third attempt to respond to Karl via orion-interest. - I have tried three times to post my response to Karl, and been called mentally unstable for suggesting that they might be blocking negative comments. - Neither Ironflare nor Oracle have ever really announced their relationship. It's not announced at www.orionserver.com. Go to http://www.oracle.com and look at their JavaOne pages and search for Orion. It's buried in the user manual, but not announced. So, my conclusions are: - Ironflare/Evermind has not hired testers or other staff as promised 6 months ago. They don't have to, because the user community does all of that (and more) for them. - Ironflare is in it, at least in part, for big money; otherwise, they would have collected from the production license violator. - Ironflare will leave you hanging if you report license violations. - Ironflare may be censoring messages. I can't lay it out much better than that. So, attack one of these facts and quit challenging my mental condition. From the asylum, Jay
Re: 1.5.1 vs 1.4.7 RequestDispatcher
response.sendRedirect() is sent to the browser after loading is complete, forward continues execution on the new page directly. I suppose this is expected behaviour. Why would a code stop executing just because of a method call? response.sendRedirect(...) whould be something like Browser.setNextPage(...); and that method call would not cause this function not to complete. I'm sorry for sounding like a monday morning programmer who haven't even got his first cup of coffee yet. Even though it is thursday... P.S. Moving the return statement is the only way to stop execution. D.S. Johan - Original Message - From: Greg Stickley [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 31, 2001 12:19 AM Subject: Re: 1.5.1 vs 1.4.7 RequestDispatcher I had a problem with request.sendRedirect where orion would continue processing the jsp or servlet below the sendRedirect. It's like it ignored the redirect intirely. I had to put a return; statement imediately following the sendRedirect statement. Maybe this is related. --- Kit Cragin [EMAIL PROTECTED] wrote: Is there something that changed between 1.5.1 and 1.4.7 that broke my forward() requests? I have a servlet mapped to /start and protected by a role, user, in web.xml. The servlet obtains a RequestDispatcher to /roles/user/index.jsp. This JSP has an iframe that loads /roles/user/content.html. Under 1.4.7 when I do http://localhost/webapp/start I got a login prompt as expected and everything shows up correctly. Under 1.5.1, the same URL causes 3 login prompts. On the last one, I get a 401 unauthorized on content.html. Anyone know why this could be occuring? Thanks, Kit Cragin VP of Product Development Mongoose Technology, Inc. www.mongoosetech.com __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: My Orion does not want to run the jsp and the servlets
Title: SV: ATM example -> deployment error -> PLEASE some HELP Did you copy tools.jar to your orion directory? Johan - Original Message - From: Hasan To: Orion-Interest Sent: Wednesday, May 30, 2001 10:55 AM Subject: My Orion does not want to run the jsp and the servlets Hi, I have created a web application using JBuilder. I have followed the specification Orion made. I have tried to run the html files and they work fine. However, when I tried to run the jsps and servlets, Orion did not want to run them. What other files/jars I should copy or CLASSPATH, PATH, etc I should change? Please help me!! Thanks
Internal server error
I get this message every now and then... 500 Internal Server Errorjava.lang.NullPointerException at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPBeanInfo._djb(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPPage._bec(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._ybd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) And I have no idea what is causing it. If I reload the page the error message goes away.Anyone have a clue of where to look for the error and where should I put my try catch so the users don't get this ugly errormessage?Maybe I'll just have to create an errorpage that handles this specific error.Johan
Re: Orion 1.5.0? Where do you download it from?
Sounds like your proxy provides an automatic configuration file. Try to open that file and read what it says. The file should be plain text. Or you can always ask your network administrator for the details. Johan - Original Message - From: Ganasen Gounden [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 1:58 PM Subject: Re: Orion 1.5.0? Where do you download it from? Thanks for all many response. What a great community!!! Unfortunately for me java -jar autoupdate.jar does not work because I am behind a firewall. Orionsupport.com says that if you're behind a proxy, as many users are, you'll need to specify some extra parameters, as so: java -DproxyHost=[proxy name] -DproxyPort=[proxy port] -jar autoupdate.jar My firewall address in ie5.5 is http://firewall:8000/proxy.pac. However I am not quite sure of how to specify the [proxname] and [proxy port]. I tried a few commands as follows but failed. java -DproxyHost=http://firewall:8000/proxy.pac -DproxyPort=8000 -jar autoupdate.jar java -DproxyHost=[http://firewall:8000/proxy.pac] -DproxyPort=[8000] -jar autoupdate.jar java -DproxyHost=[http://firewall:8000/proxy.pac] -DproxyPort=[80] -jar autoupdate.jar java -DproxyHost=http:firewall -DproxyPort=8000 -jar autoupdate.jar java -DproxyHost=firewall -DproxyPort=80 -jar autoupdate.jar etc Could someone please give me the correct format. Many thanks Gan Gounden City of Cape Town Ph (021) 400-2174 Fax (021) 425-1096 Cell 083-63-59-268 e-mail: [EMAIL PROTECTED] ** Any unauthorized use and interception of this e-mail is illegal. If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon the City of Cape Town unless the City of Cape Town subsequently confirms the content in writing non-electronically. This e-mail may be confidential, legally privileged or otherwise protected by law. Unauthorised disclosure or copying of any or all of it may be unlawful. If you receive this e-mail in error please notify the sender and delete the message **
Re: Orion 1.5.0? Where do you download it from?
java -jar autoupdate.jar search the list for updating to the latest version, there have been some issues about upgradeing from previous versions to this version. look at www.orionserver.com for mail archive, there is an online search tool which is pretty good. Johan - Original Message - From: Ganasen Gounden [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 1:12 PM Subject: Re: Orion 1.5.0? Where do you download it from? Where do you get Orion 1.5.0 from? When I do a download from Orionserver, I get 1.4.5zip for stable and latest binaries? ** Any unauthorized use and interception of this e-mail is illegal. If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon the City of Cape Town unless the City of Cape Town subsequently confirms the content in writing non-electronically. This e-mail may be confidential, legally privileged or otherwise protected by law. Unauthorised disclosure or copying of any or all of it may be unlawful. If you receive this e-mail in error please notify the sender and delete the message **
Re: java.util.ConcurrentModificationException
I suppose you use session.invalidate(); and then try to remove any values from the session? Well, you can't. The session is marked for deletion and therefore you get the ConcurrentModificationException. session.invalidate() should be enough... Johan - Original Message - From: Arun Jayaprakash [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 21, 2001 9:56 AM Subject: java.util.ConcurrentModificationException Hello everybody, I recently switched over from Apache Tomcat v3.2.1 to Orion v1.4.5. I deployed an application (that I had developed with Tomcat) using Orion and did the necessary configuring. The application works fine until the point when I logout. Tomcat never gave any trouble, but Orion keeps throwing a java.util.ConcurrentModificationException. This exception occurs when I remove all the attributes in my session object. Can anybody tell me why this happens and how to remove it? Thanks and regards, Arun Jayaprakash. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Orion and Security
Singleton pattern in orion.lib should do this for you. Johan - Original Message - From: Doug Pham [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 9:26 PM Subject: Orion and Security Hi All, Customer security is the question here. Has anyone develop a security system where all the information is located in the relational database. I would like the security to be held at the application server but as we go into each restricted page, it will send the page info to the securityManager which will send back the response privileges where the page can determine from there. Basically the secuityManager is at the server level and will hold all the security information for a particular user for all the applications available for that server. Thanks Doug Pham
Re: Setting Up News Application on Orion
My guess this could be fixed in oracle.xml under orion/config/database-schemas/ Johan - Original Message - From: Max To: Orion-Interest Sent: Friday, May 18, 2001 8:15 AM Subject: Re: Setting Up News Application on Orion Hi, Brandy Try the next: Stop your orion server Edit persistence-name in cmp-field-mapping tag in orion-ejb-jar.xml file to fit your needs. Persistence-name is a column name corresponding to EJB field. Start server Probably,stopping orion isnot even required - Original Message - From: B. Dawkins To: Orion-Interest Sent: Thursday, May 17, 2001 9:59 PM Subject: Setting Up News Application on Orion Hi, I am trying to set up the News Application Demo on Orion and I get the following information: Auto-creating table: create table com_evermind_ejb_NewsItem (id Number not null primary key, submitter VARCHAR2(255) null, text VARCHAR2(255) null, subject VARCHAR2(255) null, parent NUMBER null) Warning:Error creating table: ORA-00904:invalid column name. I know why the error is occurring (Date is a reserve word in Oracle) but where is this SQL file located so I could change the column name? Thanks, Brandy Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Spam alert: unsolicited commercial e-mail
I have successfully added this rule to my outlook... Apply this rule after the message arrives Where the From line contains '[EMAIL PROTECTED]' Delete it So I'm not unsubscribing. - Original Message - From: Randahl Fink Isaksen [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 12:24 PM Subject: RE: Spam alert: unsolicited commercial e-mail Hmmm... it makes you wonder if [EMAIL PROTECTED] and [EMAIL PROTECTED] work for BEA - they sure are doing a great job of ruining the Orion user mailing list. I wonder how many more people are going to unsubscribe today... R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bar Orion Barak Sent: 17. maj 2001 12:44 To: Orion-Interest Subject: Spam alert: unsolicited commercial e-mail Recently, I have received an Unsolicited Commercial E-mail from you. I do not like UCE's and I would like to inform you that sending unsolicited messages to someone while he or she may have to pay for reading your message may be illegal. Anyway, it is highly annoying and not welcome by anyone. It is rude, after all. If you think that this is a good way to advertise your products or services you are mistaken. Spamming will only make people hate you, not buy from you. If you have any list of people you send unsolicited commercial emails to, REMOVE me from such list immediately. I suggest that you make this list just empty. If you are not an administrator of any site and still have received this message then your email address is being abused by some spammer. They fake your address in From: or Reply-To: header. In this case, you might want to show this message to your system administrator, and ask him/her to investigate this matter. Note to the postmaster(s): I append the text of UCE in question to this message; I would like to hear from you about action(s) taken. This message has been sent to postmasters at the host that is mentioned as original sender's host (I do realize that it may be faked, but I think that if your domain name is being abused this way you might want to learn about it, and take actions) and to the postmaster whose host was used as mail relay for this message. If message was sent not by your user, could you please compare time when this message was sent (use time in Received: field of the envelope rather than Date: field) with your sendmail logs and see what host was using your sendmail at this moment of time. Thank you. -- - - original unsolicited commercial email follows - - Return-Path: [EMAIL PROTECTED] Received: from localhost (IDENT:[EMAIL PROTECTED] [127.0.0.1]) by gandalf.gefen.co.il (8.9.3/8.8.7) with ESMTP id GAA23492 for barak@localhost; Wed, 16 May 2001 06:33:12 -0200 Received: from indigo.cs.bgu.ac.il by localhost with IMAP (fetchmail-5.3.1) for barak@localhost (single-drop); Wed, 16 May 2001 06:33:12 -0200 (GMT+2) Received: from druid.evermind.net (IDENT:root@[195.58.126.196]) by indigo.cs.bgu.ac.il (8.11.0/8.11.0) with ESMTP id f4G4Qq116065 for [EMAIL PROTECTED]; Wed, 16 May 2001 07:26:52 +0300 (IDT) Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED] [195.58.126.196]) by druid.evermind.net (8.9.3/8.9.3) with SMTP id EAA14446; Wed, 16 May 2001 04:38:31 -0100 Received: from naver336.naver.com ([211.218.150.16]) by paladin.evermind.net (8.9.3/8.9.3) with SMTP id EAA00831 for [EMAIL PROTECTED]; Wed, 16 May 2001 04:37:46 -0400 Message-Id: [EMAIL PROTECTED] Received: (qmail 5311 invoked by uid 0); 16 May 2001 01:41:38 - Received: from unknown (HELO naver332) (211.218.150.12) by naver336.naver.com with SMTP; 16 May 2001 01:41:38 - MIME-Version: 1.0 Content-Id: [EMAIL PROTECTED] Content-Type: Multipart/Mixed; boundary=Boundary-00=_FDNEPWYXFQQMYJ0CCJD0 X-Mailer: Orion ListServer Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: =?ks_c_5601-1987?B?uN7AzyDA/LzbIL3HxtAgvsu4siA8a29uZ2Jva0BuYXZlci5jb20+?Date : Wed, 16 May 2001 10:41:39 +0900 (KST) Reply-To: Orion-Interest [EMAIL PROTECTED] --Boundary-00=_FDNEPWYXFQQMYJ0CCJD0 Content-Type: Multipart/Alternative; boundary=Boundary-00=_FDNEZBQXFQQMYJ0CCJD0 --Boundary-00=_FDNEZBQXFQQMYJ0CCJD0 Content-Type: Text/Plain; charset=euc-kr Content-Transfer-Encoding: base64 Ck5BVkVSIC0gaHR0cDovL3d3dy5uYXZlci5jb20vCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tCgrAzLD4urkgKGtvbmdib2spILTUsrIgurizu73FILjewM8gPENh biB3ZSBnZXQgcmlkIG9mIHRoZXNlIG1lc3NhZ2VzIGZyb20gbmF2ZXIuY29tPz4gwMwgtNnAvbD6 ILCwwLogwMzAr7fOIMD8vNsgvcfG0MffvcC0z7TZLgoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
Re: JMS or just function ??
It is also the only correct way to write asynch functions in a j2ee applications since threads are not allowed. Right? Johan - Original Message - From: John Hogan [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 11, 2001 7:19 PM Subject: Re: JMS or just function ?? A benefit is that your app can send messages and can forget about them. It doesn't need to wait for anything to complete. This means you don't have to keep your user waiting, who may be on the other end of something like an http request. Users don't like to wait. It's not appropriate for everything, but in certain circumstances it is the only way to go. _ Get your free E-mail at http://www.ireland.com
Re: DeadLock with 25 users
Or decreasing the inactivity-timeout=10 so the resource is more quickly released back to the container ? Johan - Original Message - From: KirkYarina [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Cc: PHiL [EMAIL PROTECTED] Sent: Friday, May 11, 2001 9:10 PM Subject: Re: DeadLock with 25 users I believe this is discussed in past; see the archives ( http://www.mail-archive.com/orion-interest%40orionserver.com/ ). Try increasing max-connections in data-sources.xml Kirk Yarina At 09:13 AM 5/11/01 +0200, you wrote: Hello, we just start some benchs with 25 fake users, here is the exeption: Those 25 users try to access the same EJB. Any idears, or points to check in our code to fix this kind of errors ??? Thanks. Philippe. ERROR | 09/05/2001 15:59:01:46 | NodeBmEJB : findNode(NodePK pk) | pk = (id = 0, space = WA17, componentName = news35) | Exception message: Transaction was rolled back: timed out, while waiting for (id = 0, space = WA17, componentName = news35) (started at Wed May 09 15:58:25 GMT+01:00 2001, terminated at Wed May 09 15:59:01 GMT+01:00 2001) com.evermind.server.DeadlockException: Transaction was rolled back: timed out, while waiting for (id = 0, space = WA17, componentName = news35) (started at Wed May 09 15:58:25 GMT+01:00 2001, terminated at Wed May 09 15:59:01 GMT+01:00 2001) at com.evermind.server.ejb.AbstractEJBObject.startCall(JAX) at NodeHome_EntityHomeWrapper3.findByPrimaryKey(NodeHome_EntityHomeWrapper3.ja v a:195) at com.stratelia.webactiv.util.node.control.NodeBmEJB.findNode(NodeBmEJB.java: 5 0) at com.stratelia.webactiv.util.node.control.NodeBmEJB.getFrequentlyAskedChildr e nDetails(NodeBmEJB.java:252) at NodeBm_StatelessSessionBeanWrapper1.getFrequentlyAskedChildrenDetails(NodeB m _StatelessSessionBeanWrapper1.java:1677) at com.stratelia.webactiv.news.control.NewsSessionControl.getArchiveList(NewsS e ssionControl.java:315) at __jspPage1_news_jsp_news_jsp._jspService(__jspPage1_news_jsp_news_jsp.java: 4 73) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xu(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d4.s3(JAX) at com.evermind.server.http.d4.s1(JAX) at com.evermind.server.http.d4.forward(JAX) at com.evermind.server.http.ew.forward(JAX) at com.stratelia.webactiv.servlets.ComponentRequestRooter.doPost(ComponentRequ e stRooter.java:153) at com.stratelia.webactiv.servlets.ComponentRequestRooter.doGet(ComponentReque s tRooter.java:172) at javax.servlet.http.HttpServlet.service(HttpServlet.java:190) at javax.servlet.http.HttpServlet.service(HttpServlet.java:302) at javax.servlet.http.HttpServlet.service(HttpServlet.java:329) at com.evermind.server.http.d4.s3(JAX) at com.evermind.server.http.d4.s1(JAX) at com.evermind.server.http.eg.s9(JAX) at com.evermind.server.http.eg.dr(JAX) at com.evermind.util.f.run(JAX)
Re: How to tell when a user first log's in?
with javascript... ( on the first page the user receives after login... ) try something like if (parent.frame[framename].location=notyetloggedin.html) parent.frame[framename].location=nowtheuserisloggedin.jsp); Johan - Original Message - From: Jeremy C [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, May 13, 2001 11:47 PM Subject: RE: How to tell when a user first log's in? Peter, Thanks, however I do have 1 more question for you. I do have the top frame saying request.getRemoteUser, but how do I automatically cause that frame to get refreshed when a user first log's in? On logout, I can do that because it accesses logout.jsp (just issue a JavaScript Refresh command.) Thanks! Jeremy - [EMAIL PROTECTED] At 10:23 AM 5/12/2001 -0600, you wrote: Ad 1) %=request.getRemoteUser()% (obviously you'll have to reload the top frame) Ad 2) You will need to subclass DataSourceUerManager and add that functionality It would be possible to add that functionality on a page that the logged-in User is guaranteeed to go to, bad that would be bad design --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C Sent: Saturday, May 12, 2001 7:44 PM To: Orion-Interest Subject: How to tell when a user first log's in? Is it possible to attach a hook, or some means of detemining when a user first log's in? I use DataSourceUserManager... What I would like to do is two things, 1. In my top frame, indicate who you are logged in as 2. Check the last time you have changed your password, and prompt for a password change if it's past 3 months. Thanks! Jeremy - [EMAIL PROTECTED]
Re: OFFTOPIC: Homepage ===beware of virus......
Wonder if you could disable the email function and just get a random pornsite function... - Original Message - From: PHiL [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 14, 2001 9:48 AM Subject: OFFTOPIC: Homepage ===beware of virus.. Hi, This virus do not damage anything, on first time execution it spread itselft to all the adress book and remove the sent email with subject homepage from the outlook's sent email folder, then it randomize a number from 1 to 4 and redirect to the selected porn site... You can safe run it again and again to see the different porn site :-) It afraid me that a so stupid .VBS file can do such job!!! PHiL. -Message d'origine- De : waheed rahuman [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 13 mai 2001 12:51 À : Orion-Interest Objet : Re: Homepage ===beware of virus.. Hello all in this mail there is an VBscript virus beware of that regards waheed From: Erich Eichinger [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Homepage Date: Sun, 13 May 2001 11:59:02 +0200 Hi! You've got to see this page! It's really cool ;O) homepage.HTML.vbs __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Share sessions????
Suppose you could try to make your own session object and then issue the session object as a multipartrequest to the other app via POST method. But that is not what you want, but it might work. Just make sure the class file you use for datapassing is serializable and resides in orion/lib Johan - Original Message - From: Daniel Lopez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 8:23 AM Subject: Re: Share sessions Hi Tomas, AFAIK, you can't do what you want to do, as sessions are not shared between different applications. When you try... disp=context.getRequestDispatcher(/app2/app2.jsp); disp.forward(request,response); from inside your app1 application, you are really forwarding to /app1/app2/app2.jsp, hence the 404 not found. And when you try sendRedirect(), you are asking the BROWSER to issue a call to the second page, and the browser knows nothing about server side sessions so that's why your attribute doesn't get through. Unless both jsp pertain to the same application, I don't know of any standard way of directly sharing objects between webapps. You might have to use something external. I guess the philosophy behind that is if they have to share, they should be part of the same webapp which can be seen, IMO, as a security feature and a limitation. As a non standard way of doing it, you might be able to use the parent attribute in the orion server.xml configuration (http://www.orionserver.com/docs/server.xml.html), but I'm not sure it allows you to do what you want to, as I have never used it. Does anyone know if there is a standard solution for this? regards, Dan Tomas Anderson wrote: Hello. I hope someone can help me with this basic question. I have 2 separate applications, app1 and app2. One jsp and one servlet in each. From the jsp I send some parameters to the servlet. I prosess them and put the answer in a session variable like this: servlet1.java: String strP1 = request.getParameter(param1); String strP2 = request.getParameter(param2); ... procsess them String strAnswer = strP1 + strP2; Get the session. session = request.getSession(true); Put a session variable. session.setAttribute(result, strAnswer); ... Now I want to send the session to the other application, app2, where the jsp file reads the session variable and displays it. jsp2.jsp: % String str = (String)session.getAttribute(result); out.println(result: + str); % I have put shared=true in both web-app tags. web-app application=App1 name=App1-web root=/app1 shared=true / web-app application=App2 name=App2-web root=/app2 shared=true / Ok. If I do in sevlet1.java: disp=context.getRequestDispatcher(/app2/app2.jsp); disp.forward(request,response); I get a: 404 Not Found... If I use sendRedirect(..,..) the session is not shared, it is empty. How can I connect the 2 applications? Did I miss andy configuration setting? And how to send the session to the other application. It seem setting shared=true means something else than I thought. Greatfull for any hint. Tomas
Re: Re: RE: Simple Java Doubts
Resistance is futile, you will be assimilated. Johan - Original Message - From: John Hogan [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 9:55 PM Subject: Re: Re: RE: Simple Java Doubts Santosh, Is the original disclaimer a secret plot to own all content on the orion list? Somehow doesn't seem appropriate. *** Disclaimer : The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of the company. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance. ** Begin Original Message From: John Hogan [EMAIL PROTECTED] Sent: Wed, 9 May 2001 08:03:18 -0400 To: Orion-Interest [EMAIL PROTECTED] Subject: Re: RE: Simple Java Doubts On response 2, if the remote client is actually a web server, the scheme will work nicely. No polling would be necessary, an http request would only be issued on event. John Hogan _ Get your free E-mail at http://www.ireland.com End Original Message _ Get your free E-mail at http://www.ireland.com
Truncated data
Why does MsSQL server complain about truncating data? com.jnetdirect.jsql.m: String or binary data would be truncated.at com.jnetdirect.jsql.af.a(Unknown Source)at com.jnetdirect.jsql.w.a(Unknown Source)at com.jnetdirect.jsql.w.a(Unknown Source)at com.jnetdirect.jsql.w.executeQuery(Unknown Source)at com.jnetdirect.jsql.z.executeQuery(Unknown Source)at com.evermind._oj.executeQuery(Unknown Source)at se.flowinteractive.aller.bean.ImageHandler.saveImage(ImageHandler.java:528)at __jspPage6_test_imgadmin_image_save_jsp._jspService(__jspPage6_test_imgadmin_image_save_jsp.java:74)at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)at com.evermind._aj._nxd(Unknown Source)at com.evermind.server.http.JSPServlet.service(Unknown Source)at com.evermind._iib._vfd(Unknown Source)at com.evermind._iib._qjc(Unknown Source)at com.evermind._kj._qbc(Unknown Source)at com.evermind._kj._oa(Unknown Source)at com.evermind._jw.run(Unknown Source) I'm using a setString on a varchar(5) Is this not legal? (yes I know this is not orionspecific, and therefore I should not ask this question here, but there are a lot of bright people out there who might have ran into this before and can give me a quick solution.) Johan
Fw: Truncated data
My question is of course, is there a way to tell MsSQLserver that it is ok to truncate...? That was NOT clear in my email... Sorry about that. Johan - Original Message - From: Johan Fredriksson To: Orion-Interest Sent: Thursday, May 10, 2001 4:20 PM Subject: Truncated data Why does MsSQL server complain about truncating data? com.jnetdirect.jsql.m: String or binary data would be truncated.at com.jnetdirect.jsql.af.a(Unknown Source)at com.jnetdirect.jsql.w.a(Unknown Source)at com.jnetdirect.jsql.w.a(Unknown Source)at com.jnetdirect.jsql.w.executeQuery(Unknown Source)at com.jnetdirect.jsql.z.executeQuery(Unknown Source)at com.evermind._oj.executeQuery(Unknown Source)at se.flowinteractive.aller.bean.ImageHandler.saveImage(ImageHandler.java:528)at __jspPage6_test_imgadmin_image_save_jsp._jspService(__jspPage6_test_imgadmin_image_save_jsp.java:74)at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)at com.evermind._aj._nxd(Unknown Source)at com.evermind.server.http.JSPServlet.service(Unknown Source)at com.evermind._iib._vfd(Unknown Source)at com.evermind._iib._qjc(Unknown Source)at com.evermind._kj._qbc(Unknown Source)at com.evermind._kj._oa(Unknown Source)at com.evermind._jw.run(Unknown Source) I'm using a setString on a varchar(5) Is this not legal? (yes I know this is not orionspecific, and therefore I should not ask this question here, but there are a lot of bright people out there who might have ran into this before and can give me a quick solution.) Johan
problems with iterating tag
I wrote a small tag that represents an faq mt:getFAQ mt:getQuestion/ mt:getAnswer/ /mt:getFAQ the GetFAQTag is of type BodySupportTag. the execution goes like this getFAQTag::init() pointer = 0; getFAQTag::doStartTag() pointer++ ( to load the first QA object in pageScope, only called once.) ..question ..answer getFAQTag::doAfterBody() pointer++ if pointer=size EVAL_BODY_TAG else SKIP_BODY my problem is that in getFAQTag::doAfterBody the pointer is still 0, and I cannot figure out why. Can anyone shed some light on this? Johan
Re: Updateing to 1.4.8
Ok, I'll correct you The document is found at http://www.orionsupport.com/articles/update.html and you're supposed to type java -jar autoupdate.jar Johan - Original Message - From: Kemp Randy-W18971 [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 07, 2001 7:05 PM Subject: RE: Updateing to 1.4.8 Hi Mark. The fault lies with Orion, since I just looked over their FAQ and documentation, and I couldn't find the information. Maybe I am just too groggy from lack of sleep. The command is executed from the directory orion.jar is in, and I believe this is the format (correct me if I am wrong folks. Orion or Orion support: Can we add this to FAQ or something? java orion.jar -autoupdate (folks: Correct me if I am wrong, but memory may be faulty). -Original Message- From: Mark Kettner [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 9:10 AM To: Orion-Interest Subject: Updateing to 1.4.8 Hi All, Sorry for this very stupid message: can somebody please tell me where to download the newer releases or aren't they public domain anymore. Was looking at orionserver for an update for some time, but after 1.4.5 I couldn't update anymore. However, after looking at this mailinglist I saw that people were already using 1.4.8. I'm curious for a new version, because struts library didn't work under 1.4.5. Again, sorry to bother you all about this. -- Mark --o-o-- Mark Kettner http://www.fredhopper.com Amsterdam, The Netherlands Phone: +31 20 3206203 Mobile: +31 620 209 817 fax:+31 20 8848747 E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
Re: Using admin.jar
java -jar orion.jar -install lets you set the username and password, which can be found in principals.xml. Johan - Original Message - From: Adrian Yau [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 12:58 AM Subject: Using admin.jar I'm brand new to orion. I understand that I have to use the command: java -jar admin.jar ormi://host-name username password -shutdown But I'm not sure what the default username/password is for default-web-app. Do I have to specify it in one of the xml files? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
jsp:useBean with a runtime attribute
I'm tired of writing admin interfaces and thought I'd be able to do something like this to speed up development %Field[] fields = Image.class.getDeclaredFields(); for (int i = 0; i fields.length ; i++){%input type="text" name="%=fields[i].getName()%" value="jsp:getProperty name="img" property="%=fields[i].getName()%"%}% which results in Property '%=fields[i].getName()%' in the 'se.flowinteractive.aller.bean.Image' type bean not foundAnyone have a solution to this? Or a suggestion which does the same thing?thanks in advanceJohan
Re: Running 2 Orions on the Same Machine
make sure the rmi part of orion uses different ports in the two instances... See http://www.orionserver.com/docs/rmi.xml.html - Original Message - From: B. Dawkins [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 07, 2001 8:30 AM Subject: Running 2 Orions on the Same Machine Hi, I am trying to run 2 Orions on the same machine. Everything seems to be ok but when I start the 2nd Orion, I get the following message, even thou it still starts: Error Starting RMI-Server:IO -Error: Address in use JVM_Bind. How can I get rid of this Error? Thanks, Brandy _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: www.orionsupport.com / JMS
I know how the dns works, but we are experiencing problems with our dns, just wanted to make sure that I didn't hold an old record to orionsupport.com. Thank you Fredrik! That is what I will be doing soon. Johan - Original Message - From: KirkYarina [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 4:41 PM Subject: Re: www.orionsupport.com / JMS Your nslookup output is normal. All this means is that your name server has, properly, cached the lookup - and since the cached copy comes from an NS that's not authoritative for the domain it's flaged as non-authoritative. This is completely normal; nothing to worry about. Go snag a copy O'Reilly's DNS and Bind and look at the nslookup chapter; page 268 in the third edition. The web site could be up or down; all you can tell from nslookup is that their name service is working correctly. BTW, orionsupport.com's owner (not IronFlare...) has said several times that the web site is his development machine, and goes down occasionally when he needs it for other purposes. Here's an example - I used a machine that hasn't looked up orionsupport.com recently, and did two nsllookups. The first lookup came from orionsupport.com's name server, the second from our name server's cache. Try it yourself on some random domain, like pigsareflying.com . $ nslookup www.orionsupport.com Server: localhost Address: 127.0.0.1 Name:www.orionsupport.com Address: 64.31.131.243 $ nslookup www.orionsupport.com Server: localhost Address: 127.0.0.1 Non-authoritative answer: Name:www.orionsupport.com Address: 64.31.131.243 Kirk Yarina At 11:41 AM 5/3/01 +0200, you wrote: Is it down or is my dns screwed up? Non-authoritative answer: Name:orionsupport.com Address: 64.31.131.243 I'm looking for a jms-tutorial ( for orion ), NE1 know where to find one? Johan
Re: broken default web app - not found
If you want I can send you a clean installation where I have set up two applications. They are also configured for virtual hosting. The only thing you need to get it up and running is some messing around with hosts file ( under windows or winnt /system32/drivers/etc/ or /etc/ under unix ) Mapping like appname.localhost 127.0.0.1 Only index.html is included in both apps. Its a rar archive ~3.9Mb Tell me if you'd like to look at it. I created it so I can use it whenever I start a new project, and as a template for creating new apps. Johan - Original Message - From: joey sark [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 5:02 PM Subject: Re: broken default web app - not found Thanks Johan, Scott, and Tim I did try to reconcile and follow all of your advice; I did learn something, but basically it's all gummed up now. what's missing here for me is: a fundamental understanding of the relationships between server, website, web app, web module, --and-- global application, default web app ,what files these should be defined in, and where these file go. for expample, is the default web app just another app, or is it a special thing that must be there untampered-with. It's all pretty bewildering to a newbie, and nowhere on orion site do i see a straightforward explanation/primer of the above. AFTER I grasp this, i'm less likely to ask dumb config questions or make things worse. thanks to anyone who can point me in the right direction. j Johan Fredriksson [EMAIL PROTECTED] wrote: That is because your application.xml is not found. Should be C:\orion\applications\pussycat\META-INF\application.xml - Original Message - From: joey sark [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:21 AM Subject: Re: broken default web app - not found That did bring back the default Orion Web App, and as the default site/app my other app is dead now: Error instantiating application at file:/C:/orion/applications/pussycat/: Unable to find/read assembly info for C:\orion\applications\pussycat (META-INF/application.xml) Error initializing site Pussycat Web Study: No application named 'pussycat' found in the server Orion/1.4.5 initialized I guess the real trouble is that I'm not sure of the distinct meanings between server web site web appliction default web site default web appliction global... i have not found these defined on the orion site. j. Tim Endres [EMAIL PROTECTED] wrote: In my server.xml file, I have the following line: global-application name=default path=application.xml / Looks to me like you've replaced the default web-app with your own 'pussycat'. You application should be defined by a separate app line, such as: application name=pussycat path=/path/to/app/dir auto-start=true / Note how the path is a path, not an xml file. It could also be your EAR file if you have deployed that way. tim. I managed to deploy a website/app but in so doing, broke the default website with all the nice jsp examples. I would like to use that default app to test and learn about jsp and plug modified versions into my app. now i get this error from orion: Error initializing site Default Orion WebSite: No application named 'default' found in the server how do i unbreak the default web app and keep it working alongside my app - and KISS? thanks in advance. Joey, newbie in distress relevent config files: orion/config/server.xml: ... global-application name=pussycat path=application.xml / !-- global-application name=default path=application.xml / can't do this-- global-web-app-config path=global-web-application.xml / web-site path=./pussycat-web-site.xml / web-site path=./default-web-site.xml / ... orion/config/application.xml: ... orion-application web-module id=pussycat path=../applications/pussycat / web-module id=defaultWebApp path=../applications/default-web-app / ... orion/config/default-web-site.xml: ... web-site host=[all] port=80 display-name=Default Orion WebSite default-web-app application=default name=defaultWebApp / /web-site orion/config/pussycat-web-site.xml: ... web-site host=[all] port=80 display-name=Pussycat Web Study virtual-hosts=localhost default-web-app application=pussycat name=pussycat / !-- default-web-app application=pussycat name=defaultWebApp / can't do this-- ... /web-site server.xml: ... application-server application-directory=../applications deployment-directory=../application-deployments
Re: Newbie Question.
Which is located in orion/application-deployments/appname/appname-web/orion-web.xml Johan - Original Message - From: Earl Marwil To: Orion-Interest Sent: Thursday, May 03, 2001 6:27 PM Subject: Re: Newbie Question. One possible cause is that directory browsing is disabled by default. Are you pointing to the jsp in your request on just the directory that contains it? If the latter, you may set a welcome file in the web.xml configuration file. Another possibility on Linux systems is that the file persmissions are not correct.To enable directory browsing, set the attribute directory-browsing="allow" for the tag orion-web-app in the orion-web.xml file.Regards,EarlAt 10:06 5/3/2001 -0400, you wrote: Hi,I'm new to the group, and orion, so I hope that you'll put up with what may be stupid simple questions for a bit.I've installed Orion, and am trying to port a very simple proof of concept app to it, just to get it running.( the total app is 2 jsps, one servlet, and one tag). I followed directions, to the best that I can, followed threads here, picking up hints and tips that have helped. The BEST that I can get is a 403(forbidden) error on http://127.0.0.1/ ( and I was HAPPY when I got that instead of 404's :). ) Can anyone point me on the right direction from here? ( FAQ, docs, hey stupiddo THIS!! ...)ThanksGreg Earl Marwil SCIENTECH, Inc. 1690 International Way Idaho Falls, ID 83402208.525.3717
Re: Howto on MessageDriven Beans
I was sent this url for messageDrivenBeans http://www.sys-con.com/java/archives/0601/westra/index.html - Original Message - From: Frank Eggink [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 04, 2001 8:11 AM Subject: RE: Howto on MessageDriven Beans There is an example of it in the ATM (see orion/applications directory) On Thursday, May 03, 2001 9:35 PM, Kesav Kumar [SMTP:[EMAIL PROTECTED]] wrote: Do any one have howto for MessageDrivenBeans. A sample app or some kind of notes on how to deploy them. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information File: ATT0.html
Re: broken default web app - not found
That is because your application.xml is not found. Should be C:\orion\applications\pussycat\META-INF\application.xml - Original Message - From: joey sark [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:21 AM Subject: Re: broken default web app - not found That did bring back the default Orion Web App, and as the default site/app my other app is dead now: Error instantiating application at file:/C:/orion/applications/pussycat/: Unable to find/read assembly info for C:\orion\applications\pussycat (META-INF/application.xml) Error initializing site Pussycat Web Study: No application named 'pussycat' found in the server Orion/1.4.5 initialized I guess the real trouble is that I'm not sure of the distinct meanings between server web site web appliction default web site default web appliction global... i have not found these defined on the orion site. j. Tim Endres [EMAIL PROTECTED] wrote: In my server.xml file, I have the following line: global-application name=default path=application.xml / Looks to me like you've replaced the default web-app with your own 'pussycat'. You application should be defined by a separate app line, such as: application name=pussycat path=/path/to/app/dir auto-start=true / Note how the path is a path, not an xml file. It could also be your EAR file if you have deployed that way. tim. I managed to deploy a website/app but in so doing, broke the default website with all the nice jsp examples. I would like to use that default app to test and learn about jsp and plug modified versions into my app. now i get this error from orion: Error initializing site Default Orion WebSite: No application named 'default' found in the server how do i unbreak the default web app and keep it working alongside my app - and KISS? thanks in advance. Joey, newbie in distress relevent config files: orion/config/server.xml: ... global-application name=pussycat path=application.xml / !-- global-application name=default path=application.xml / can't do this-- global-web-app-config path=global-web-application.xml / web-site path=./pussycat-web-site.xml / web-site path=./default-web-site.xml / ... orion/config/application.xml: ... orion-application web-module id=pussycat path=../applications/pussycat / web-module id=defaultWebApp path=../applications/default-web-app / ... orion/config/default-web-site.xml: ... web-site host=[all] port=80 display-name=Default Orion WebSite default-web-app application=default name=defaultWebApp / /web-site orion/config/pussycat-web-site.xml: ... web-site host=[all] port=80 display-name=Pussycat Web Study virtual-hosts=localhost default-web-app application=pussycat name=pussycat / !-- default-web-app application=pussycat name=defaultWebApp / can't do this-- ... /web-site server.xml: ... application-server application-directory=../applications deployment-directory=../application-deployments ... global-application name=pussycat path=application.xml / !-- global-application name=default path=application.xml / can't do this-- global-web-app-config path=global-web-application.xml / web-site path=./pussycat-web-site.xml / web-site path=./default-web-site.xml / ... end Get free email and a permanent address at http://www.netaddress.com/?N=1 end Get free email and a permanent address at http://www.netaddress.com/?N=1
Re: Interests sake
Development on win2k and production on Solaris. Johan - Original Message - From: Adam Cassar [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:53 AM Subject: Interests sake Hi all, For interests sake, what OS is everyone on the list running orion on? Windows 2000? WinNT Linux? I would of thought that most people would be using Linux but I think from postings on this list that I might be mistaken -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia
www.orionsupport.com / JMS
Is it down or is my dns screwed up? Non-authoritative answer:Name: orionsupport.comAddress: 64.31.131.243 I'm looking for a jms-tutorial ( for orion ), NE1 know where to find one? Johan
Re: install issues
We use : UnZip 5.32 of 3 November 1997, by Info-ZIP. Maintained by Greg Roelofs. Send bug reports to the authors at [EMAIL PROTECTED]; see README for details. which works fine. - Original Message - From: elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, April 30, 2001 3:39 AM Subject: install issues Every now and then I do something that reminds me I am human. I am trying to use 1.4.8 with the autoupdate. This usually works fine, but I have been working on a machine which I unzip from win98 onto a samba directory in linux. This is great, because all of the permissions expecially the X for the directories is preserved, as well as the time stamp. But on a straight linux box, an unzip -X orion1.4.5.zip will not give you X on the directories, which of course makes them useless. I want to use unzip, since it preservse the timestamp...which is necessary for autoupdate to work. What am I doing wrong? regards, the elephantwalker .ps I am running as j2ee user, since I am useing ipchains to redirect my 80 packets to another port.
Re: jsp:setProperty tag
I should go with int instead of Integer. Or even better with a String representing a number on the jsp page and in the setter method do a Integer.parseInt(number); //to get what I need. This way I do not have to trust javascripts and stuff to do the checking, if a numberformatexception is thrown I know something was wrong. Johan - Original Message - From: Nicola Folino To: Orion-Interest Sent: Thursday, April 26, 2001 3:19 PM Subject: jsp:setProperty tag In a jsp page I use: jsp:useBean id="personaFisicaNP" class="it.unical.anagrafiche.np.PersonaFisicaNP" /jsp:setProperty name="personaFisicaNP" property="*" / This page is called from another form jsp page with a certain number of form fields... Well, some fields of my bean are String, some other are Integer. I get that the setProperty tag works well with String type fileds, but Integer ones return nulls... I got jsp specification from Sun and I saw that Integer, String, Byte and so on should be returned well from a form containing this kind of objects. I tryed my code on JRun 3.1 and it goes with no problem. Is this an Orion problem or am I missing something? Thanks in advance, Nicola
Re: Orion support company
Well, you started it!! http://www.geocities.com/connorbd/varaq/ Enjoy! Johan - Original Message - From: Thomas Pridham [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 3:12 PM Subject: RE: Orion support company What truly happened is that the Klingons have purchased IronFlare / Orion. Starting with version 1.5.0, you will have the option of servering web pages while the web server is cloaked. The serving-pages-while-cloaked will prove to be a threat to the United Federation of J2EE Servers (made up or BEA, IBM, HP, iPlanet). :-) (yes I am a nerd, yes I couldn't resist some Star Trek humor, and yes this post serves only to be a distraction from the real work at hand) Regards, Tom Pridham -Original Message- From: Dan North [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 4:33 AM To: Orion-Interest Subject: RE: Orion support company BEA made an offer, but IBM beat them to it. As of version 1.5.0, Orion will become known as OrionSphere Application Server (TM) At 14:48 26/04/2001 +1000, you wrote: Okok everyone - for those confused. Orion did NOT get bought by BEA. JoeO was just making a joke, which obviously quite a few people missed. Call it a late April fools prank ;) REPEATING: Orion has not been bought by BEA. -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. Sfeir Sent: Thursday, April 26, 2001 4:33 AM To: Orion-Interest Subject: RE: Orion support company At 11:37 AM 4/25/2001 -0400, you wrote: Orion's web site is still up? Every time I go to www.orionserver.bea.com, it comes back with an error. What's orionserver.bea.com? Dude how about www.orionserver.com, I didn't know BEA bought Orion... or did I miss some crazy post somewhere? R Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205 -- Dan North VP Development - Cadrion Technologies - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
Re: orion not replicating session state - relatively urgent
And all the stuff you shove up the session are Serializable? Doublecheck that. If they are Serializable, your problem sounds like a bug. Johan - Original Message - From: Mike N. Christoff [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 10:25 PM Subject: Re: orion not replicating session state - relatively urgent Thanks for the advice, however after adding this our session data is still being lost when the server we initially connected to goes down. We are currently testing with two servers, both of which belong to the same cluster island. What still boggles us here is that the sample applications (like servlets/SessionServlet) work perfectly. We even moved our web application into the orion\default-web-app directory and in this directory they also work. In summary: only the default web application is replicating state properly. Our other applications must be missing a setting somewhere that specifies that their session data should be shared with servers in the cluster island as is the case with the default application. Michael N. Christoff Developer, Eldan Software, Ltd. Toronto, Canada www.eldan.com - Original Message - From: Rafael Alvarez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 2:55 PM Subject: Re: orion not replicating session state - relatively urgent Hello Mike, Try using this orion-web.xml. The persistence-path is not specified by default, so you need to declare it. This is the place where sessions are persisted across server restarts. orion-web-app deployment-version=1.4.5 persistence-path=session /orion-web-app Thursday, April 26, 2001, 12:20:39 PM, you wrote:
Re: freetds.org
Ok, thanks.,.. - Original Message - From: Paul Kofon [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 5:51 PM Subject: Re: freetds.org Hi, The database driver for MSSQL from freetds.org is, according to the documention, work in progress more or less. I had been looking for a cheap/free driver for MSSQL. When I found it, I thought my search was over. But I wrong, since I just couldn't use it. I kept getting SQLExceptions (which were to be expected according to the documentation because most things are not implemented yet). Finally, I had to stop using it. Currently, I use two drivers and they both work flawlessly for my apps: one from http://www.inetsoftware.de and the other from http://www.j-netdirect.com. Though they cost money. Regards, Paul From: Johan Fredriksson [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: freetds.org Date: Thu, 26 Apr 2001 17:36:15 +0200 Has anyone got their driver to work with ms sql server 7? I just get an error message all the time : java.sql.SQLException: The database driver (com.internetcds.jdbc.tds.Driver@ff3a fe9f) returned refusing to connect to the URL jdbc:freetds:sqlserver://192.168.1 .123/ at com.evermind.sql.DriverManagerDataSource.getConnection(Unknown Source ) Does anyone know what I'm doing wrong? I'll include my datasource.xml also...: data-source class=com.evermind.sql.DriverManagerDataSource name=MyDataSource location=jdbc/BB xa-location=jdbc/xa/BBXADS ejb-location=jdbc/MyDataSource connection-driver=com.internetcds.jdbc.tds.Driver pooled-location=jdbc/MyPooledDS username=my password=password url=jdbc:freetds:sqlserver://192.168.1.123/ max-connect-attempts=3 max-connections=1 connection-retry-interval=1 inactivity-timeout=30 / thanks in advance. Johan _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: freetds.org
Maybe I wasn't clear enough, but I ment the free driver from freetds.org. That one I had some problems with to get to work, later I figured out that it had to do with the URL I sent... You had to specify the db-name when connecting, it was not enough to log in and then get redirected to the database ( as with com.jnetdirect.jsql.JSQLDriver ). My next questions on this subject are of course: Has anyone tested this driver? And what were the results of those tests? I'm currently not developing a J2EE app, so I don't need ejb or entity beans, and therefore I haven't tested that. Johan - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 6:23 PM Subject: Re: freetds.org Yes, I have the driver from www.inetsoftware.de working flawlessly. Just stay away from the jdbc-odbc driver and you should be fine. Hani On Thu, 26 Apr 2001, Johan Fredriksson wrote: Has anyone got their driver to work with ms sql server 7? I just get an error message all the time : java.sql.SQLException: The database driver (com.internetcds.jdbc.tds.Driver@ff3a fe9f) returned refusing to connect to the URL jdbc:freetds:sqlserver://192.168.1 .123/ at com.evermind.sql.DriverManagerDataSource.getConnection(Unknown Source ) Does anyone know what I'm doing wrong? I'll include my datasource.xml also...: data-source class=com.evermind.sql.DriverManagerDataSource name=MyDataSource location=jdbc/BB xa-location=jdbc/xa/BBXADS ejb-location=jdbc/MyDataSource connection-driver=com.internetcds.jdbc.tds.Driver pooled-location=jdbc/MyPooledDS username=my password=password url=jdbc:freetds:sqlserver://192.168.1.123/ max-connect-attempts=3 max-connections=1 connection-retry-interval=1 inactivity-timeout=30 / thanks in advance. Johan
Re: Orion performance meassures ?
Title: RE: Orion performance meassures ? Most likely, although I have no clue how this is done... Try the class com.evermind.client.orion.OrionConsoleAdmin And see if you can get something out of that. If you do, feel free to post the results on the list :) Johan - Original Message - From: Larry Velez To: Orion-Interest Sent: Thursday, April 26, 2001 7:22 PM Subject: RE: Orion performance meassures ? Is there any way these statistics can be queried and exported either locally or remotely. I would like to create performance reports based on Memory usage, Average hits, load, etc. thanx, Larry (Running Orion on NT) -Original Message- From: Johan Fredriksson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 4:59 AM To: Orion-Interest Subject: Re: Orion performance meassures ? Yes there are some statistics... java -jar orionconsole.jar - Original Message - From: "Tony Fonager" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 11:19 PM Subject: Orion performance meassures ? We are experimenting with Orion as an alternative to IIS on Windows 2000. But how do I meassure such things as "hits pr. second", "errors pr. seconds" and so on, like I am used to under Windows 2000 and IIS, using the performance monitor ? Is there ANY statistics in Orion, which you can retrieve during runtime ? Thanks in advance! - Regards, Tony Fonager Netcoders ApS - http://www.netcoders.dk Copenhagen, Denmark
In 1.4.8
I get this errormessage when starting orion : A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation target' has occurred in : 'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi Warning: Error reading transaction-log file (/D:/orion/persistence/transaction.state) for recovery: premature end of fileForced or abrubt (crash etc) server shutdown detected, starting recovery process...Recovery completed, 0 connections committed and 0 rolled back...Orion/1.4.8 initialized D:\orionjava -jar orion.jar -versionOrion/1.4.8 (build 10374) Is the error mine or someone else's? Johan
Re: Orion performance meassures ?
Yes there are some statistics... java -jar orionconsole.jar - Original Message - From: Tony Fonager [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 11:19 PM Subject: Orion performance meassures ? We are experimenting with Orion as an alternative to IIS on Windows 2000. But how do I meassure such things as hits pr. second, errors pr. seconds and so on, like I am used to under Windows 2000 and IIS, using the performance monitor ? Is there ANY statistics in Orion, which you can retrieve during runtime ? Thanks in advance! - Regards, Tony Fonager Netcoders ApS - http://www.netcoders.dk Copenhagen, Denmark
Re: Orion on AIX
You might experience problems with the driver for the db2 database, otherwise it should be fine. The orionteam knows how to solve that problem though,. Johan - Original Message - From: denis despinoy [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 9:01 PM Subject: Orion on AIX Anyone using orion on AIX ? Are there any issues We should be aware off prior going this route ? denis __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Taglibs - a newbie question
I solved it... - Original Message - From: Johan Fredriksson To: Orion-Interest Sent: Thursday, April 26, 2001 11:22 AM Subject: Taglibs - a newbie question I'm new to taglibs, and so far it really seems like a great idea. But I cannot get the collaborating tags to work the way I want them to. I want to create a html file like this %@ taglib uri="mytags" prefix="mt" % htmlbodytablemt:getFAQ trtdDatum 2001-01-01/td/trtrtdmt:getQuestion//td/trtrtdmt:getAnswer//td/tr/mt:getFAQ/table/body/html I cannot get the GetFAQTag to iterate...! From the GetQuestionTag ( and answer) I call GetFAQTag faqparent = (GetFAQTag) findAncestorWithClass(this, GetFAQTag.class); and then I call a method called faqparent.getNext(); which returns me the question or the answer. I suppose I have figured out what types of tags I should use when doing this kind of tag interaction. Did the tutorials on the orionserver.com but my inferior brain cannot figure out how to combine these things to do what I want, so if anyone could give me a hint I would be very grateful! Thnx in advance Johan
Re: remote shutdown of orion 1.4.8
I upgraded from 1.4.7 to 1.4.8 and for me it works... D:\orionjava -jar admin.jar ormi://localhost/ admin pwd -shutdown Error: com.evermind.server.rmi.OrionRemoteException: Disconnected: Server shutdo wn D:\orionjava -jar orion.jar -version Orion/1.4.8 (build 10374) ( at the same time... stdout ) Shutting down... So for me it works - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 1:10 PM Subject: Re: remote shutdown of orion 1.4.8 I am not sure if it is his problem as I have about the same problem, also on the localhost. In the STDOUT of orion.jar there appears: shutting down .. after a half an hour it is still up and running and the same message appears. Neither does the force option at the end doesn't work. BTW: I am using Linux Redhat 7.0 and orion 1.4.7 (almost 1.4.8 :) ) Ed - Original Message - From: Stephen Kuo [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 8:31 AM Subject: Re: remote shutdown of orion 1.4.8 Hi Chris That might be your problem, it works just fine in my machine. Stephen Kuo WJsoft Inc. TEL: 886-4-23509525 ext.510 FAX: 886-4-23509522 19F-2, No.123, Sec.3, Chungkung Rd. Taichung Taiwan - Original Message - From: [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 10:46 PM Subject: remote shutdown of orion 1.4.8 Folks, The following remote shutdown command does not work anymore in 1.4.8 (it works fine in 1.4.7), any ideas? bug? java -jar admin.jar ormi://localhost admin password -shutdown P.S. already verified the password is correct in [orion-home]/config/principals.xml Thanks in advance! Chris
freetds.org
Has anyone got their driver to work with ms sql server 7? I just get an error message all the time : java.sql.SQLException: The database driver (com.internetcds.jdbc.tds.Driver@ff3afe9f) returned refusing to connect to the URL jdbc:freetds:sqlserver://192.168.1.123/ at com.evermind.sql.DriverManagerDataSource.getConnection(Unknown Source) Does anyone know what I'm doing wrong? I'll include my datasource.xml also...: data-sourceclass="com.evermind.sql.DriverManagerDataSource"name="MyDataSource"location="jdbc/BB"xa-location="jdbc/xa/BBXADS"ejb-location="jdbc/MyDataSource"connection-driver="com.internetcds.jdbc.tds.Driver"pooled-location="jdbc/MyPooledDS"username="my"password="password"url="jdbc:freetds:sqlserver://192.168.1.123/"max-connect-attempts="3" max-connections="1"connection-retry-interval="1"inactivity-timeout="30"/ thanks in advance. Johan
Re: .zip files and solaris
Yes there is, but I'm not sure of the name of it... I used to zip the app in the prev project I was working on, and gunzipped it on the production server running solaris. Regrettably I cannot remember the version of gunzip, but I'll try to find out during the day. Johan - Original Message - From: Kemp Randy [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 4:30 PM Subject: .zip files and solaris In development, I work with Orion on both Solaris and Windows 2000. But there must be an easier way of dealing with Orion and Jboss zip files. I use winzip to unzip them in Windows, and FTP the unzipped version to Solaris. Is there any third party software to unzip a zip file on solaris? Tar and tar.gz are easy. What does everyone use for Orion on solaris? I haven't addressed this question to my Unix administration folks yet, and I thought I would try here first. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: .zip files and solaris
On the other hand it works the other way around... Use jar to compress and ftp that, jar to uncompress... It's really not the filesize that is a problem, but the amount of files. - Original Message - From: Angshuman Dasgupta [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 8:32 PM Subject: RE: .zip files and solaris That'll NEVER work for a zip -Original Message- From: Tim Endres [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 21, 2001 10:17 PM To: Orion-Interest Cc: Kemp Randy Subject: Re: .zip files and solaris jar xvf file.jar In development, I work with Orion on both Solaris and Windows 2000. But there must be an easier way of dealing with Orion and Jboss zip files. I use winzip to unzip them in Windows, and FTP the unzipped version to Solaris. Is there any third party software to unzip a zip file on solaris? Tar and tar.gz are easy. What does everyone use for Orion on solaris? I haven't addressed this question to my Unix administration folks yet, and I thought I would try here first. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: JSP server configuration
Thats a matter of your isp to map the jsp/servlet to another directory not accessible from http://websiteurl/. There are probably two apps running on the same server, whereas your .jsp files should be run under http://websiteurl:8080/ and your other content under the standard server. Use a index.html that opens default.jsp under websiteurl:8080. Johan - Original Message - From: Alby Peter Panikulangara [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, April 23, 2001 2:43 PM Subject: JSP server configuration Hi, I am new to jsp. recently i tried to put my website with as isp in US, they offers jsp servlet support in NT server with IIS Netscape Server.For jsp they advised me to use the url like http://websiteurl:8080/test.jsp, in this case the file executes fine, but if i type http://websiteurl/test.jsp the file is getting dowloaded to the pc. This is the case same with servlets. i would like to know how to rectify this configuration problem. with regards Alby
JSP tags
I'm trying to do a login check from within a tag. Checking the session for a userid and then checking the required permits to that page. If it is a match my doEndTag returns EVAL_PAGE, if required permission is missing, SKIP_PAGE is returned. This works, ie the user gets a blank page when not sufficient rights is assoc with the user for that page. But I'd like to throw a NoAccessException instead and let Orion handle that one with an errorpage. Tag newbie as I am, I cannot figure out how to throw that exception from the tag and still be a correct tag. Just complains about not being compatible with doEndTag() (TagSupport) Is there a way to get around this? Johan
Re: A Swedish Idea
And Micro$oft programmers are from...? I suppose that the country they're from produce the shittiest code of em all :) Johan - Original Message - From: "Joseph B. Ottinger" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 4:20 PM Subject: Re: A Swedish Idea Personally, I'm becoming more and more convinced that not only is Sweden full of lousy programmers, but they're all lousy in congruent ways just to make the rest of the world's jobs harder. I say we all start using Bavarian products, if only because Bavarian names seem to have a better vowel/consonant ratio. Say, Randy... what country are YOU from? (That's the leading indicator for quality of code...) On Wed, Apr 18, 2001 at 08:49:24AM -0500, Kemp Randy-W18971 wrote: Now this may be a dumb idea, and I am just thinking up brainstorms to promote Orion, but it occurred to me that both Mysql and Orion are in Sweden. Now I don't know how big Sweden is, but perhaps a meeting between the two teams could find ways to mutually promote or bridge the two products. Just a thought. Speaking of Sweden, since Rickard O. from Jboss lives there, does anyone know of Magnus or Karl have meet him? In once sense, but Jboss and Orion are trying to make this EJB technology available to more people. -- --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
Re: Orion as a service on Windows NT 4
I suppose I can copy paste the message... It's about using jnt on win2k, but I guess the same thing would apply to nt4... Hope it helps Johan! Thanks..This worked. Rajeev -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 4:08 PM To: Orion-Interest Subject: RE: Orion as Win2000 service using jnt ! I have successfully used this tool to install Orion as a service on Win2K. Here is the correct command to issue using jnt, with orion at c:\orion and jnt at c:\jnt, assuming you are in the c:\jnt directory or jnt is in your path: jnt "/InstallAsService: Orion Service" "/SDc:\orion" -jar c:\orion\orion. jar On Wed, 18 Apr 2001, Mac Ferguson wrote: I don't think you need the "" around the startup dir... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Puthezhath, Rajeev (TWII Boston) Sent: Tuesday, April 17, 2001 5:08 PM To: Orion-Interest Subject: Orion as Win2000 service using jnt ! Hi Friends I am trying to set up Orion as a Win2000 Service. First I tried to set it up using RunExecSvc.exe as explained in orionsupport.com. But I was not successful in getting this exe run as it always exited suddenly. Then taking a hint from this mailing list I tried with jnt. D:\jntd:\jnt\jnt "/InstallAsService: Orion" "/SDD:\orion" java -jar d:\orion \orion.jar I get the following statements. Java Service Launcher V1.0.1 beta Copyright (C) 2000 by eWorkSmart, LLC 04/17/01 17:04:40 - Installing as service "Orion" (Orion). 04/17/01 17:04:40 - This has been installed as "Orion". This service is set to automatically start when the system boots. To start the service now, use the "Services" icon found in the control panel. 04/17/01 17:04:40 - NT Service options: Use /InstallAsService:ServiceName[:dependent1,dependent2,...] to install. Use /RemoveAsService:ServiceName to remove (uninstall) as a service. Use /SetServiceParams:ServiceName to change the startup parameters for this serv ice. Note: Any additional parameters on the command line will be setup as the startup parameters for the service when using the /InstallAsService or /SetServiceParams options. But after starting the Orion Service from Services, When I try to access the application then it throws an error saying web server can not be found. Any idea why this is happening ? Thanks and Regards Rajeev - Original Message - From: "George Mardale" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 2:29 PM Subject: Orion as a service on Windows NT 4 Hello everybody! I want to install Orion as a service on Windows NT 4. Can anyone give me an idea how to do it? Thanks in advance, George.
Re: Application mapping - how do I know it from within the app?
My point is that the method IS included in servlet 2.3, but Orion seems to be running servlet 2.2 where the method does not exist... Correct me if I'm wrong or tell me how to update orion to run servlet 2.3 spec. Johan - Original Message - From: "Hani Suleiman" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 3:45 PM Subject: Re: Application mapping - how do I know it from within the app? Oops, a check of the API would have shown that it is request.getContextPath() anyways. PS All this is in the API, my suggestion was hastily written but should have pointed you in the right direction... On Tue, 17 Apr 2001, Johan Fredriksson wrote: Nope, when doing just that I get... 500 Internal Server Error Error parsing JSP page /aller/Allas/subscriber.jsp Syntax error in source/Allas/subscriber.jsp.java:32: Method getContextPath() not found in interface javax.servlet.ServletContext. (JSP page line 8) String servletPath = pageContext.getServletContext().getContextPath(); ^ 1 error - Original Message - From: "Hani Suleiman" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 5:30 PM Subject: Re: Application mapping - how do I know it from within the app? pageContext.getServletContext().getContextPath() On Wed, 11 Apr 2001, Johan Fredriksson wrote: I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Re: The translated Swedish interview
haha, thats really funny reading... =) Direct translations are always funny... They say swedish is one of the most difficult languages one can learn. I do not agree... =) for those who don't get all the words I'll try to translate them for you. - Original Message - From: "Kemp Randy" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 1:59 AM Subject: The translated Swedish interview Yesterday, I brought information on the founders being interviewed in a Swedish newspaper. Today, with the help of Tolken99, a Swedish English translation software, I bring the interview in English (translation software being what it is). 001010 Young gains over IT-jttar jttar = giants Of Inger Sundelin ESKILSTUNA. For a good half of it two year then decided himself Magnus Stenman and Chap Avedal in Chap = Karl, karl however is translated to man, or chap. order to start a own programutvecklingsfretag. program... = softwaredevelopment company The first ordern took the in vras and today have the vras = this spring customers all over the world. Unlike many other it-fretagare is it not miljonerna that entices most - fretagare = businessmen without that get be with that actuate front a programutveckling with open standards there also the big mjukvarufretagen tvingas cooperate. mjukvaru = software fretagen = companies We hits Magnus Stenman and Chap Avedal over a cup coffee in the kitchen at home at Magnus in Eskilstuna there he live along with flickvnnen Elin Bjllhage, flickvnnen = the girlfriend that also is part-owner in the company and ansvarar ansvarar = is responsible for for ekonomin. Something office have the not without all skts from home. skts = is done from 24-rige Chap, that last the datavetenskapliga the rige = year old datavetenskapliga = computer science ed education in Linkping, and 22-rige Magnus, that is entirely self taught, trffades by a diskussionsgrupp trffades = met on The internet for programmer. Magnus had begun develop a webserver entirely in Java - a gathering grundverktyg that programmer use in order to build grundverktyg = unified platform? e-handelsplatser and other advanced webblsningar - e-handel = e-trade webblsningar = web solutions and bid in Chap that be with. After uppskattningsvis 14.000 hours of uppskattningsvis = approx. programmeringsslit could the in vras teckna the first programmeringsslit = programming effort ordern and now have the a 60-tal customers. Dutch tal = number ( meaning 60-70 customers ) tevebolaget VPRO, the australiensiska sajten The tevebolaget = television company internet.com, dryckestillverkaren Rode Bull and dryckestillverkaren = beverage manufactor norwegian Telenors Wap-tjnst in order to just take tjnst - service some example. And it without that the really satsat a sole crown on satsat = bet ( or used ) marketing. Kunderna have actua sought up them. Kunderna = the customers - This is a thin market and all know to which that exists there, says Chap. Furthermore lies all program out on The internet as that being customers can testkra them before the decides himself. testkra = testrun But how dares kunderna chose a small unknown tvpersonersbolag in front of multinationella company tvpersonserbolag = two people business...? that IBM or Oracle with loads of personnel? - It's too really none that know that there just is we two that stands behind Orionservern, says Magnus. Furthermore builds our program on the same standard that all other Javaapplikationsservrar as would the become dissatisfied can the simple swap to a other program. Chap supplements: - In the first hand receives we customers on ours technical merits, but we gains also sympati in order to we is small and holds flame prices, says Chap. We takes 1.500 dollars per license while BEA that is marknadsledande with her program Weblogic takes about 30.000 dollars per license. But why as a little? You would why be able to take ten times so much paid and yet be half as expensive that yours strste competitor. strste = largest - We think not that there shall cost more than as, says Magnus and Chap with a mouth. It's some of our philosophy that all shall have ability to use the program, not just the with very money. We want to do programvarumarknaden public for all and force the big programvarumarknaden = software market companies that follow after. Now can the at last begin take out wages for her work and next step becomes that employ a or two duktiga duktiga = good programmer. Then must the obtain a truly office - and on sikt maybe also a vd. All this want to Chap and sikt = sight, but more correct here later Magnus pay with own average. Some money utifrn is the utifrn = outside, from others not intresserade of, all the same not in nulget. intresserade = interested (in) nulget = as of now - We has got several offerings if riskkapital but we riskkapital = joint venture ? have pervading thanked no, says
Re: Application mapping - how do I know it from within the app?
Nope, when doing just that I get... 500 Internal Server Error Error parsing JSP page /aller/Allas/subscriber.jsp Syntax error in source/Allas/subscriber.jsp.java:32: Method getContextPath() not found in interface javax.servlet.ServletContext. (JSP page line 8) String servletPath = pageContext.getServletContext().getContextPath(); ^ 1 error - Original Message - From: "Hani Suleiman" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 5:30 PM Subject: Re: Application mapping - how do I know it from within the app? pageContext.getServletContext().getContextPath() On Wed, 11 Apr 2001, Johan Fredriksson wrote: I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Re: Re: ORION RISE FROM THE DEAD!
As I mentioned before in a previous posting, the Orion team will continue their work on the Orion product, partners will do the support. Support will in the future be the "milking cow" ( don't know if that one translates well into english, where you get the money...), and there you have the business modell. At least that's how I interpreted Karl Avedals speech. Johan - Original Message - From: [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, April 13, 2001 12:53 AM Subject: Re: Re: ORION RISE FROM THE DEAD! I really hope that Orion is released into the open-source community if they're going to tank as a business. I never thought of that. I guess the real question may be: "What is Orion's/Ironflare's business model?" Taking a wild guess, not based on any first hand knowledge/contact/experience, the 'problem' may be that orion's developer's want to continue programming and not become consultants, support technicians, etc... Which would be great to have quality developers on the project full time, but this seems contrary to a lot of the service models that are out there now. A lot of companies now repackage open source and get paid on service/consulting. Perhaps they need a quality partner or need to be bought out (maybe macromedia should have bought them out instead of buying allaire)...who knows...I'm not an expert in this field as I'm sure my views have proved. So I may be way off base. I'm just an avid java developer with a small, nimble company that likes to develop and utilize small, quick, and well-written software. (did you also ever notice that orion seems to be at most h! ! ! alf the size of other major app servers?) By the way, if some help is needed to host (or provide an alternative to) orionsupport, please let me know. I know the boss here; I'm sure we could work something out. I think a lot of people would help out in this department (including myself), especially if it was open source. I already have a kind of how-to in the works for SSL using chained certificates from Entrust.net. David
Re: Is this the Orion Team?
Yes - Original Message - From: "Kemp Randy" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 2:32 AM Subject: Is this the Orion Team? Some digging though the.serverside.com, at the link http://www2.theserverside.com/reviews/thread.jsp?thread_id=165, uncovered this. Posted By: Per Norrman on November 3, 2000 in response to this message. A couple of weeks ago, the Orion team was featured in Dagens Nyheter, the largest swedish newspaper. Learn swedish, then read this article: http://www.dn.se/DNet/dyn/Crosslink.dyn?d=408a=135807f=huvudtext.htmlt=2; v=0 In short, the Orion team consists of two guys, 22 and 24 years old, working from an apartment in Eskilstuna, Sweden. The article mentiones that they spent about two years and approx 14 000 programming hours before their first order. However, that implies constantly working more than 19 hours a day for two years Also, they have refused venture capital and and other offers, on the grounds that it would limit their freedom of doing things their own way. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
war and ear
I got the script working to build an ear file. Now I'd like to use the D:\orionjava -jar admin.jar ormi://192.168.1.123/ admin utv -deploy -file d:\orion\deployment\aller.ear -deploymentName aller deploy.txt command line to deploy the updated application but I get D:\orionmore deploy.txtjava.lang.StackOverflowError at com.evermind.server.ThreadState.getCurrentState(JAX) at com.evermind.server.ApplicationServerSystemProperties.getProperty(JAX) and an eternal loop. I'm using D:\orionjava -jar orion.jar -versionOrion/1.4.7 (build 10011) What do I do wrong? Or is it a bug in 1.4.7? Saw in the archives that it was indeed a bug in 1.3.8, but was solved with 1.4.5. Is the bug back in 1.4.7? Johan
Application mapping - how do I know it from within the app?
I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Re: request.getParameter() not working under solaris?
The problem is that the instance running orion has to have correct tables installed. I had the same problem when loading data from the database ( swedish language ). They got messed up on the way. So the resolution in my case was to make sure that the shell running orion supported swedish chars. Hope this helps. Johan - Original Message - From: "Taavi Tiirik" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 2:51 PM Subject: RE: request.getParameter() not working under solaris? probably you have to mention the char-set. I am not sure how you do this Specifying char-set does not help. At least, when I add meta tag like this: head meta http-equiv="Content-Type" content="text/html; charset=utf-8" /head It does not really matter what charset I use. Whenever I ask (int)request.getParameter( "text" ).charAt( 0 ) It gives me the very same character code 65533. Please, any ideas? with best regards, Taavi I am experiencing strange behaviour of Orion 1.4.5 running on PC Solaris 8 with jdk1.3. I do not get expected results when calling request.getParameter() on a jsp page. If I submit certain characters like "" for example (ie auml;) then request.getParameter() returns character with a code 65533. The same jsp page works with following configurations: Orion1.4.5, Win2000, jdk 1.3 Tomcat3.2.1, the very same Solaris, jdk 1.3 Tomcat3.2.1, Win2000, jdk 1.3 Start of jsp page htmlbody text="%= request.getParameter( "text" ) %" form input type="text" name="text" input type="submit" /form /body/html End of jsp page -- Please, I could really use your help to solve this. If I cannot get orion working under Solaris I will have to change application server ASAP. Any thoughts are welcome. with best regards, Taavi
Re: Management Console...
- Original Message - From: "Chaya Ramanujam" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 4:58 PM Subject: Management Console... Hi, I am new to Orion. I am using the Management Console to deploy an EJB archive and a WAR file. Quick question about the console - when I first launch the console, I get three entries in the tree - local, ormi://localhost and ormi:// Why are there three servers listed when I only have one running? localhost and local seem to be the same - why are they listed twice in the console and what does ormi imply in this context? I can't even seem to connect to the ormi:// -I get an error "Invalid username/password for default()" What does this mean?? Did you do a java -jar orion.jar -install prior to trying to connect? Make sure to uncheck save password from the menu and try again. In the same vein, there's a menu item to add a server. Does this imply adding another application server? Another Orion server? Yes, you can manage multiple app servers from one tool. Thanks for any help. --CR. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Application mapping - how do I know it from within the app?
okey, I fígured it out... With a little help. I hope this function will appear in servlet 2.3 version ( and why isn't orion running 2.3?? ) anyways, if anyone else runs into this copy paste this line : String servletPath = request.getRequestURI().substring(0, request.getRequestURI().indexOf(request.getServletPath())); Which will return the mapping to the root of your application. Johan - Original Message - From: Johan Fredriksson To: Orion-Interest Sent: Wednesday, April 11, 2001 4:59 PM Subject: Application mapping - how do I know it from within the app? I'm using virtual hosts in my development to make sure that all links are correctly set, that is I can access the same app in two ways, either via appname.localhost or localhost/appname . The problem is that I'm not sure how to figure out on a jsp page which entry point was used, and this causes problem when I'm trying to map my servlet, since relative paths to servlets does not seem to work... String parsing of request.getRequestURI() seems like a way to start, but I'm not sure what how to write it, since in the future the app might be moved again to appname.serviceprovider.localhost vs localhost/serviceprovider/appname . Is there a way to get pageContext return application context? Johan
Re: WE NEED NEWS! We need to know Orion is alive well!
Since I had a problem with the mailserver at our new location this mail got sent a little late, yesterday refers to April 5. Johan - Original Message - From: "Johan Fredriksson" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, April 09, 2001 5:19 PM Subject: Re: WE NEED NEWS! We need to know Orion is alive well! I met Karl Avedal yesterday at a Java forum in Stockholm. They're 3 employees as of today, and probably two more joining up shortly. He spoke of an organic expansion of Ironflare AB. The main effort is to build partner ships with other companies regarding support of the product, and to start selling support packs. The license fee for Orion will remain the same. The support pack is of course another issue. The reason for partners is that the employees of Ironflare today are technicians and like to keep doing what they do - programming on the server. Keeping the license fee low will enable developers to bundle the AS, keeping the costs low. regards Johan - Original Message - From: "Dan North" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, April 06, 2001 11:11 AM Subject: RE: WE NEED NEWS! We need to know Orion is alive well! Nice analogy :o) And one day I'll be able to say that I had all their early albums before they became famous... Dan/tastapod At 13:02 05/04/2001 -0500, you wrote: How many people are actually working on Orion, and what is their forte? Most likely, it is probably developed and maintain by a small number (maybe under six). Sure, they are successful, and sell, but they could sell more. Think up them as an up and coming rock group. Add a good manager (CEO with a good business plan) and a promoter (a great technical writer working the documentation), and suddenly you have U2. -Original Message- From: Matthew E. Porter [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:57 AM To: Orion-Interest Subject: Re: WE NEED NEWS! We need to know Orion is alive well! I also would like to here from someone at Ironflare/Orion concerning the status of the company. My company is currently planning to build our internal infrastructure on the Orion server. -matthew porter elephantwalker wrote: I have tried to schedule phone calls with Orion by sending emails and faxes to ironflare, nothing seems to work. We are going to deploy soon, but if I can't talk to these guys at least once, there's no way we are forking over any money. We need that "nice fuzzy feeling" that you get by talking to a warm body. Are there any paying customers on the news service that are getting prompt and reliable service for Orion, either by email or phone? Regards, Elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neville Burnell Sent: Wednesday, April 04, 2001 7:27 PM To: Orion-Interest Subject: WE NEED NEWS! We need to know Orion is alive well! Its been around 4 months since Orion went on "life-support" - ie - the website went on hold ... - Karl Magnus went silent on company futures except for rare emails promising news soon - the software development slowed to a crawl [by comparison to last year's "rush"] - bug fixes slowed to a crawl - my email to [EMAIL PROTECTED] went unanswered Please Karl, Magnus, give us some news, even if its only to understand whats happened in the last 4 months -Original Message- From: Aaron Tavistock [mailto:[EMAIL PROTECTED]] Sent: Thursday, 5 April 2001 11:48 AM To: Orion-Interest Subject: RE: Any news from Orion yet?? Wasn't this from *WAY* back in January... I know that Orion 1.4.5 was released around January 22nd, there has been the updates to 1.4.7, *AND* there were rumors about 1.4.8. But, there really hasn't been any news about the goings on of Evermind/IronFlare. How are you guys doing? Whats the state of IronFlare? It would be nice to hear whats going on... -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
Re: Virtual Hosts - root directory setting.
hmmm, sounds like you missed something in your application xml snip moduleweb web-urimy-web.war/web-uricontext-root//context-root /web /module snip see context-root, I copy pasted from somewhere on orionserver.com documentation this morning... Hope this helps. Johan - Original Message - From: Dominic Hanlan To: Orion-Interest Sent: Tuesday, April 10, 2001 5:29 PM Subject: Virtual Hosts - root directory setting. Hi, Ihave just configured Orion (1.3.8) to handle virtual hosts. Currently Ihave 2. Ihave a really basic problem though, which Ihave had all along, but now I need to fix it. if I have www.mysite.com, currently the URL I have to enter is http://www.mysite.com/my-web. The my-web seems to come from the fact that my .war file is called my-web.war . How do I re-map the URL so I have just http://www.mysite.com Regards /Dominic Hanlan
Re: WE NEED NEWS! We need to know Orion is alive well!
I met Karl Avedal yesterday at a Java forum in Stockholm. They're 3 employees as of today, and probably two more joining up shortly. He spoke of an organic expansion of Ironflare AB. The main effort is to build partner ships with other companies regarding support of the product, and to start selling support packs. The license fee for Orion will remain the same. The support pack is of course another issue. The reason for partners is that the employees of Ironflare today are technicians and like to keep doing what they do - programming on the server. Keeping the license fee low will enable developers to bundle the AS, keeping the costs low. regards Johan - Original Message - From: Dan North [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, April 06, 2001 11:11 AM Subject: RE: WE NEED NEWS! We need to know Orion is alive well! Nice analogy :o) And one day I'll be able to say that I had all their early albums before they became famous... Dan/tastapod At 13:02 05/04/2001 -0500, you wrote: How many people are actually working on Orion, and what is their forte? Most likely, it is probably developed and maintain by a small number (maybe under six). Sure, they are successful, and sell, but they could sell more. Think up them as an up and coming rock group. Add a good manager (CEO with a good business plan) and a promoter (a great technical writer working the documentation), and suddenly you have U2. -Original Message- From: Matthew E. Porter [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:57 AM To: Orion-Interest Subject: Re: WE NEED NEWS! We need to know Orion is alive well! I also would like to here from someone at Ironflare/Orion concerning the status of the company. My company is currently planning to build our internal infrastructure on the Orion server. -matthew porter elephantwalker wrote: I have tried to schedule phone calls with Orion by sending emails and faxes to ironflare, nothing seems to work. We are going to deploy soon, but if I can't talk to these guys at least once, there's no way we are forking over any money. We need that nice fuzzy feeling that you get by talking to a warm body. Are there any paying customers on the news service that are getting prompt and reliable service for Orion, either by email or phone? Regards, Elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neville Burnell Sent: Wednesday, April 04, 2001 7:27 PM To: Orion-Interest Subject: WE NEED NEWS! We need to know Orion is alive well! Its been around 4 months since Orion went on life-support - ie - the website went on hold ... - Karl Magnus went silent on company futures except for rare emails promising news soon - the software development slowed to a crawl [by comparison to last year's rush] - bug fixes slowed to a crawl - my email to [EMAIL PROTECTED] went unanswered Please Karl, Magnus, give us some news, even if its only to understand whats happened in the last 4 months -Original Message- From: Aaron Tavistock [mailto:[EMAIL PROTECTED]] Sent: Thursday, 5 April 2001 11:48 AM To: Orion-Interest Subject: RE: Any news from Orion yet?? Wasn't this from *WAY* back in January... I know that Orion 1.4.5 was released around January 22nd, there has been the updates to 1.4.7, *AND* there were rumors about 1.4.8. But, there really hasn't been any news about the goings on of Evermind/IronFlare. How are you guys doing? Whats the state of IronFlare? It would be nice to hear whats going on... -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
Re: Friendly error messages from Microsoft get in the way (was Er ror pages defined in web.xml not found / activated)
Are you sure? I set my browser to show friendly http error messages and went to a page which does not exist. And I get the errorpage as defined in my web.xml Visit this page to test : http://www.batborsen.com/bb/se/this_page_does_not_exist.html the errorpage tag in web.xml looks like this error-page error-code404/error-code !-- exception-typejavax.servlet.jsp.JspException/exception-type-- locationse/batborsen_error.html/location /error-page error-page error-code500/error-code !--exception-typejavax.servlet.jsp.JspException/exception-type-- locationse/batborsen_error.html/location /error-page take an extra look at the location tag... I am using IE6 Johan - Original Message - From: "Frank Eggink" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, April 02, 2001 8:51 PM Subject: RE: Friendly error messages from Microsoft get in the way (was Er ror pages defined in web.xml not found / activated) At least for development I can switch them off. Users (and helpdesk) will have to live with it. I never knew people could think of developing error message obfuscators :-( On Monday, April 02, 2001 7:14 PM, Juan Lorandi (Chile) [SMTP:[EMAIL PROTECTED]] wrote: the error code is sent on the very first line of the response header-- and orion doesn't allow you to control that -Original Message- From: Frank Eggink [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 3:56 AM To: Orion-Interest Subject: Friendly error messages from Microsoft get in the way (was Error pages defined in web.xml not found / activated) Well ... How can you spend your weekend?!? The problem I described looks to be caused by wat's called 'friendly error messages' from the Internet Explorer. All runs fine with Netscape. Microsoft replaces standard 404 'can not find page' errors with their own page, which is considered (by them) to be more user friendly. Still I do not understand how the Explorer gets the information there is a 404 error. Could this be somewhat less wanted feature of Orion? I certainly would like to have control over this error message. FE On Friday, March 30, 2001 5:48 PM, Frank Eggink [SMTP:[EMAIL PROTECTED]] wrote: Hi, I'm having a problem. I have defined error pages in my web.xml I've defined: error-page error-code404/error-code location/errors/error404.jsp/location /error-page Now I expect to see the error page when I request a non existing page like http://localhost/my-app/non-existing-page.html, which does not happen. I'm obviously overlooking something, but what?? [When I define the error page in a jsp page with %@ errorpage=/errors/error404.jsp % it does work. So it can find the page, which gives me the impression I've setup something wrong. What?? FE Frank Eggink Swift Applications [EMAIL PROTECTED] +31 6 28847325 (voice) +31 33 4532464 (fax)
Shared session
I'm kind of stuck on this one, been experimenting all this morning :) What I want to do is to share a session between several applications. Preferredly, I'd like to share the objects between those applications and the code. I want to use virtualhosts, and I confed my hosts file like this 127.0.0.1 company.localhost 127.0.0.1 admin.company.localhost 127.0.0.1 subdomain1.company.localhost 127.0.0.1 subdomain2.company.localhost The mapping to those work. But how do I access a session created in company.localhost at subdomain1.company.localhost? Is it possible or impossible? Can I create a "parent" application which handles the sessions and how do I configure it? And for sharing code, I'd like to have a single point of distribution, is there a way to tell in the web.xml where the classes dir is? Thanks in advance Johan Fredriksson
Re: Internal Server Error
I use this command line for starting orion on a windows machine java -jar -Djdbc.connection.debug=true orion.jar 1 \orionlog\systemout.txt 2 \orionlog\systemerr.txt Johan - Original Message - From: "Toth [@HOTMAIL], Adam (E-mail)" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 12:23 PM Subject: Internal Server Error Hi, We're testing our web project (JSPs, Servlets and MS SQL 2000 DB). Orion app server version is v1.4.0. The test tool is MSWeb Application Stress v1.1. It's cool and free anyway, take a look: http://webtool.rte.microsoft.com/ The problem is minor, but it would be nice to clarify. During a 10 hour reliability test, some error appears, but only for POST methods. (The testing is replaying a recorded "browsing" by sending the POST and GET requests to the server, so it's like an average user, just no delay between the requests. FYI: Number of hits: 10798682 Requests per Second: 299.88, so it's quite busy). We have two problematic POSTs: Problem#1: URI: POST /login?action=dologout Hit Count:42018 Result Codes Code Description Count -- 200 OK42001 500 Internal Server Error 17 Problem#2: URI: POST /login?action=login-frommain Hit Count:42018 Result Codes Code Description Count -- 200 OK42010 500 Internal Server Error 8 What is interesting that there are no other POSTs in the test, just GETs, so it's somehow seems to be related to the type of the request. We're doing heavy logs during the test using log4j, so we have the complete log in a file. There is no detected problem in the log. The possible System.outs from Orion are lost, since the window it's running has only 999 line buffer. As you probably noticed, these POST methods are going to a servlet, mapped to /login. Other mappings are used of course, so the problem is not related to servlet mapping. Unfortunately I don't know when those logs coming (at once or in random intervals) My questions: - how to store orion logs? - any ideas what is this problem? - is there any way to catch these kind of errors? Any help would be very nice. Thank you in advance, Adam
Re: Please help me figure out this....
Yes, you should not use return (name=="abc" passwd=="123 "); but return (name.equals("abc") passwd.equals("123")); This will probably fix your problem. Johan - Original Message - From: "Roland Dong" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Sunday, April 01, 2001 11:42 AM Subject: Please help me figure out this I have login.html calling a servlet (loginHander) which handles authorization. If user is validated, the servlet will redirect the user to Welcome.jsp My problem is I could not pass the value of user and password from login.html to loginHandler. I set the boolean method loggedIn so that when user name is abc and password is 123 the user should log in. However, this somehow can not be accomplished. Even I entered abc as name and 123 as password, I was bounced back to login.html page. I am using Orion 1.47. Please help! RB //Here is loginHander.java import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class LoginHandler extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); // Get the user's name and password String name = req.getParameter("name"); String passwd = req.getParameter("passwd"); // Check the name and password for validity if (!loggedIn(name, passwd)) { out.println("HTMLHEADTITLEAccess Denied/TITLE/HEAD"); out.println("BODYYour login and password are invalid.BR"); out.println("You may want to A HREF=\"/jsp/testing/login.html\"try again/A"); out.println("/BODY/HTML"); } else { // Valid login. Make a note in the session object. HttpSession session = req.getSession(true); session.setAttribute("logon.isDone", name); // just a marker object // Try redirecting the client to the page he first tried to access try { res.sendRedirect("/jsp/testing/Welcome.jsp"); return; } catch (Exception ignored) { } // Couldn't redirect to the target. Redirect to the site's home page. res.sendRedirect(req.getScheme() + "://" + req.getServerName() + ":" + req.getServerPort()); } } protected boolean loggedIn(String name, String passwd) { return (name=="abc" passwd=="123 "); } } // //Here is the login.html HTML TITLELogin/TITLE BODY FORM ACTION=/servlet/LoginHandler METHOD=POST CENTER TABLE BORDER=0 TRTD COLSPAN=2 P ALIGN=CENTER Welcome! Please enter your NnnnNamebr and Password to log in. /TD/TR TRTD P ALIGN=RIGHTBName:/B /TD TD PINPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15 /TD/TR TRTD P ALIGN=RIGHTBPassword:/B /TD TD PINPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15 /TD/TR TRTD COLSPAN=2 CENTER INPUT TYPE=SUBMIT VALUE=" OK " /CENTER /TD/TR /TABLE /BODY/HTML //* //Here is the Welcom.jsp % if ( session.getValue("userName") == null) { % B hello...it is a nullB % // here we can give some error message % % } else {% !--- so this is the authorized user let's display the welcome message --- HTML HEAD B Welcome %= session.getValue("userName")% /B /HEAD BODY !--- all the other stuff -- /BODY / HTML % } %
Re: Localhost and IP Yield Different Pages
For development I should say it is not a good idea to reset your browsers cache since all your users wont. Better to set it to automatic and make sure to use all sorts of meta tags and use the response tag to clear cache. response.setHeader("Cache-Control","no-store"); //HTTP 1.1response.setHeader("Pragma","no-cache"); //HTTP 1.0response.setDateHeader("Expires", 0); These above lines usually takes care of cacheproblems. They're better than meta tags since the meta tags are not read by network proxies which also can cache a page you don't want it to cache, iea certain users address info. Hope this helps Johan - Original Message - From: Bill Winspur To: Orion-Interest Sent: Sunday, April 01, 2001 10:14 PM Subject: Localhost and IP Yield Different Pages I've just wasted an hour or so debugging a non-existent problem with my default-app configuration that was caused by IE's page cache ! It had locked onto a page for http://localhostwhich it presented instead of the page I'd confugured. Short of persuading MS to get out of the html page-caching business (and the filesystem caching busines while they're at it), does anybody know how to flush all of IE's 'performance-boosting' (hah!), caches ?
Re: Errorpage
Gees, why didn't I think of that? Sometimes you can't see the forrest for all the trees... Thanks, its working now! Johan - Original Message - From: [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, March 29, 2001 9:22 PM Subject: Re: Errorpage I believe the error-page tag takes either an error-code OR an exception-type, but not both. Kent Kvarfordt I don't get it to work!! this is what my webxml looks like... error-page error-code404/error-code exception-typejavax.servlet.jsp.JspException/exception-type location/bb/se/batborsen_error.html/location /error-page error-page error-code500/error-code exception-typejavax.servlet.jsp.JspException/exception-type location/bb/se/batborsen_error.html/location /error-page the file is referring to http://www.batborsen.com/bb/se/batborsen_error.html which works... but whenever I get an exception on the site I get the file download dialog and IE says it cannot download the file. If I request a non existing html resource, I get a blank page. See http://www.batborsen.com/bb/se/imtolame.html And if I force a nullpointerexception in a servlet http://www.batborsen.com/bb/servlet/Search1? (this causes a nullpointer don't forget question mark!) I get the file download dialog. Someone mentioned the file has to be larger than 512b, it is currently (1 626 bytes). Please help me! Johan Fredriksson