RE: Loadbalancer.jar HOWTO?
OK, I have find out how to do this You have to edit a loadbalance.xml, like -= load-balancer host="[ALL]" port="80" selection-type="random" use-ip="false" use-session-id="true" island backend-server host="localhost" port="8080"/ /island island backend-server host="localhost" port="8081"/ /island /load-balancer then run clusters and loadbalancer( by java -jar loadbalancer.jar) but I found the follwing bugs and weakness 1. -config parameter not work, loadbalancer will always use config/loadbalance.xml and not the default config file config/load-balance.xml it says. 2 use-ip can't be "true" , I don't know why , just can't 3. if island is down, then loadbalancer will remove it , but loadbalancer will never know it has recover, and the island will remove forever the report was tested on Orion 1.3.1 with Win2k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Avedal Sent: Wednesday, September 06, 2000 3:29 PM To: Orion-Interest Subject: Re: Loadbalancer.jar HOWTO? Hello, I'm currently preparing this. The whole clustering document was delayed to include the new load balancer but it will be available shortly. Regards, Karl Avedal Jason von Nieda wrote: I would also love to know at least SOMETHING about this. It sounds like somethingI could really use but I have been trying to get it do something for a few days to noavail. - Original Message - From: Jen Hsien Huang To: Orion-Interest Sent: Tuesday, September 05, 2000 10:40 PM Subject: Loadbalancer.jar HOWTO? How to use the loadbalancer.jar , I can't find any document about it.Can anybody explain how to use it in short?Regards., Jen Hsien Huang
Loadbalancer.jar HOWTO?
How to use the loadbalancer.jar , I can't find any document about it. Can anybody explain how to use it in short? Regards.,Jen Hsien Huang
Different Web module shares session
My application has many web module , I can I share session? I have set web-app to share="true" , but it doesn't work at all, they are still different session. Regards., Jen Hsien Huang
Conflict between ejb-link and ejb-ref-mapping
I don't understand why orion deployment descript need ejb-ref-mapping ? The ejb-link in J2EE DD just has the same function as ejb-ref-mapping in Orion DD. I found the ejb-link broken, just only ejb-ref-mapping works. I really cant understand why ejb-ref-mapping is needed? and why ejb-link borken? THIS MY SECOND TIME ASK THIS QUESTION. NOBODY HAS THE SAME QUESTION? Regards., Jen Hsien Huang
Declare variable using Taglib TEI
While I am tring to declare variable in TEI I return the VariableInfo array in TEI class like this == return new VariableInfo[] { new VariableInfo[]{ data.getAttributeString("errorId"), , "java.lang.String[]" , true , VariableInfo.AT_END } { Orion just told me that No such bean type "java.lang.String[]" It's terrible that I can't delcare array type. Now I use Collection instead, but this is not a good way. Is this a bug? Regards., Jen Hsien Huang
RE: Declare variable using Taglib TEI
So, there is no way to declare array of any type? I don't understand and hardly to believe TEI has such limitation. Regards., Jen Hsien Huang -Original Message- From: Dave Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 20, 2000 7:37 AM To: 'Jen Hsien Huang'; Orion-Interest Subject: RE: Declare variable using Taglib TEI Well its not a bug because VariableInfo takes a class name as a parameter and java.lang.String[] is not a class name. Dave Smith Senior Team Leader Aristocrat Technologies Australia Pty Ltd mailto:[EMAIL PROTECTED] -Original Message- From: Jen Hsien Huang [mailto:[EMAIL PROTECTED]] Sent: Thursday, 20 July 2000 8:32 To: Orion-Interest Subject: Declare variable using Taglib TEI While I am tring to declare variable in TEI I return the VariableInfo array in TEI class like this == return new VariableInfo[] { new VariableInfo[]{ data.getAttributeString("errorId"), , "java.lang.String[]" , true , VariableInfo.AT_END } { Orion just told me that No such bean type "java.lang.String[]" It's terrible that I can't delcare array type. Now I use Collection instead, but this is not a good way. Is this a bug? Regards., Jen Hsien Huang
RE: Thanks ! RMI default username password
Try to setup RMI cluster. It "seems" works with cluters well. I not sure this is ejb cluster support in orion or not. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom MAK Sent: Wednesday, July 19, 2000 12:17 PM To: Orion-Interest Subject: Thanks ! RMI default "username" "password" Thanks all, Fianlly I understand how important the principals.xml file is. I took away the 'deactivate="true"' value pair in the administartor's role and everything is working fine now. I think Orion is good, but they really need to improve the documentation, especially about the config XML files. By the way, looks like Orion 1.03 is not supporting EJB server clustering and Dist Tran yet, does it support crash recovery? What I mean is stateful bean can recover to their running state after the EJB server crash and then restart. Please let me know how to config if Orion already support the above. Best regards, Tom MAK From: Christophe Hartwig [EMAIL PROTECTED] To: 'Tom MAK' [EMAIL PROTECTED] Subject: RE: Help ! RMI default "username" "password" Date: Tue, 18 Jul 2000 13:58:01 +0200 try admin / admin password you entered during java -jar orion.jar -install Otherwise, set up a new user in your principals.xml file, associated with the right role, etc... Bye, Christophe -Original Message- From: Tom MAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 18, 2000 12:39 PM To: Orion-Interest Subject: Help ! RMI default "username" "password" Hi All, I install the orion server demo and the "news" example, looks like its working okay. However, when I try to run the NewsClient, there is always a java app asking me to input the "usename" and "password" of the ORMI server, which I can't find a clue in the docs. Then I try to modify rmi.xml and edit the entry about "username" and "password". NO luck again, the orion won't start. By the way, besides the RMI server, is there any default "username" and "password" for the EJB server ? Please tell me kindly! One more thing, I use hypersonicSQL, and there is minor error in the URL for the news example. In the hypersonicSQL, the end of URL should be ":defaultdb" rather than ":database/defaultdb". The later one cause some JDBC error. Many thanks for any kind of help!!! Regards, Tom MAK Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
RE: useage of context-param in web.xml
Sorry , I have tried this too, none of them work. = out.println("param:"+getServletConfig().getInitParameter("Webmaster")); or public void init(ServletConfig config) throws ServletException{ super.init(config); System.out.println("param:"+config.getInitParameter("Webmaster")); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: Friday, July 14, 2000 4:33 PM To: Orion-Interest Subject: Re: useage of context-param in web.xml read carefully: !-- The context-param element contains the declaration of a web application's servlet context initialization parameters= -- and then try context.getInitParameter(). Done it before. -----Original Message- From: Jen Hsien Huang [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Freitag, 14. Juli 2000 10:16 Subject: RE: useage of context-param in web.xml I have try to use it in this way , but it donest work context-param param-nameWebmaster/param-name param-value[EMAIL PROTECTED]/param-value /context-param out.println("param:"+getServletConfig().getServletContext().getAttribute("W ebmaster")); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 14, 2000 12:41 AM To: Jen Hsien Huang; Orion-Interest Subject: Re: useage of context-param in web.xm Hi Jen, --From the dtd !-- The context-param element contains the declaration of a web application's servlet context initialization parameters. -- !ELEMENT context-param (param-name, param-value, description?) --this are parameters that apply to the application scope it looks like to me !-- The web-app element is the root of the deployment descriptor for a web application -- !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*) in your app grab the values from the application scope. Let us know if it works for you. eric :-) Jen Hsien Huang wrote: what is "context-param" in web.xml? how to use it ? can anybody give me a code snip for example. Regards., Jen Hsien Huang
Bug of Tag library
When I try to create a Tag with TEI, like this x:mytag id="list" ... % String list = .. % /x:mytag This tag will use TEI declare a vairable in scripting with AT_END scope. but Orion will alter a translation error says that you duplicate declare "list", It's very strang, the AT_END scope should allow you to do this, isn't it? Regards Brend
useage of context-param in web.xml
what is "context-param" in web.xml? how to use it ? can anybody give me a code snip for example. Regards., Jen Hsien Huang
Taglib TEI and array type
While I am tring to declare variable in TEI I return the VariableInfo array in TEI class like this == return new VariableInfo[] { new VariableInfo[]{ data.getAttributeString("errorId"), , "java.lang.String[]" , true , VariableInfo.AT_END } { Orion just told me that No such bean type "java.lang.String[]" It's terrible that I can't delcare array type. Now I use Collection instead, but this is not a good way. Is this a bug? Regards., Jen Hsien Huang
EJB 2.0 Depend Objects
How Orion works in OR Mapping of dependent objects? Can someone give me a example. I can't make it work, even a simple one-to-one relation Regards., Jen Hsien Huang
RE: Clustering
Set the RMI to clustering , than the EJB can be clustering, like this cluster password="123" name="admin" / You need the username and password to let clusters to talk, so admin would be OK. Since no official document mention about ejb clustering, I am not sure this is right. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Causer Sent: Wednesday, June 28, 2000 10:21 PM To: Orion-Interest Subject: Clustering Have been looking at using Orion for Clustering and I am getting very confused. Some Questions: 1. Ive looked at the example quoted in http://www.orionserver.com/docs/http-clustering-howto.html - Why do I have to pass the sessionid to the second server ? Shouldn't the clustering keep that data in sync ? - 2. EJB Clustering. Is this supported in Orion ? If so how do I set it up ? 3. Why is there a cluster id in server.xml and rmi.xml ?? 4. What is the server host="the.remote.server.com" password="123" port="23791" username="admin" / tag in rmi.xml used for ? Sorry if I appear dense, but if anyone could explain this I would be very grateful Thanks Mark Causer
Bug of RC2? - About Javac instantiating
I have try the newest orion, but Javac seem can't work, under the same configuration, it works fine. So, this should be a bug Orion/1.0rc2 initialized Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar " / and restart
Orion behavior of getWriter() in JSP
Orion JSP seems take getWriter() method as illegal, but it works fine on JSWDK, Tomcat, JRun, WebShpere, or Resin. So, I think this is a mis-behavior of Orion JSP. Did JSP Spec descript about this ?
RE: Bug of RC2? - About Javac instantiating
Sorry for my unclear Bug report, but the error message is very odd, of cause, I have copy tool.jar to orion lib directory, in fact the same configuration works fine just under RC1, so this should not my fault, this should be a strange bug. The error message just report on auto-recompile servlet not report on JSP complie and just show Internal error 500. Now, I use jikes instead sun javac, it works, but jikes don't support i18n. Although the new version of Jikes support i18n, but you have to give the encoding, but because Orion configuration can't set any parameter to jikes, so it still cant support i18n. Can Orion team enhance this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B. Ottinger Sent: Wednesday, May 31, 2000 2:14 AM To: Orion-Interest Cc: Orion-Interest Subject: Re: Bug of RC2? - About Javac instantiating -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 31 May 2000, Jen Hsien Huang wrote: I have try the newest orion, but Javac seem can't work, under the same configuration, it works fine. So, this should be a bug Orion/1.0rc2 initialized Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar " / and restart This MIGHT be a bug except it's documented behavior, and the error message is pretty clear (i.e., "copy tools.jar from your JDK lib dir to the orion dir or...") Hint; reading error messages once you find them is always a good idea... take it from one who's been known to screw that up from time to time. - --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer -BEGIN PGP SIGNATURE- Version: PGP 6.5.1i iQA/AwUBOTQE8QhcVZKknQwGEQJ7gwCgxdUZJB3i3PvTJerRaWJcBMqm4bcAn3Mp GdDi5vYIR9Bz9Xxt2fvjkAdE =CodT -END PGP SIGNATURE-
Primary Key and OR-mapping - use String
Can somebody give sugesstion in EJB how to use String as primary key and cmp-field? Some database dont' allow too larg varchar type to be primary key but if I set the String OR-Mapping to small, the String langth will be limit on other EJB cmp-field, I know build my table by hand, by is there any better idea? Or orion can provide a more smart database-schema configuration? I want to limit the String cmp-field size in primary key but not in other cmp-field
Display large data by index and EJB finder method
If I want to display a large rows of a table , How can I use the finder method to do so? If I use findAll, it may be very slow? Is it ? Can any body give me a exprience about find a large ejb objects by index
BUG: Taglib dont support double byte character set
the taglib seems can't handle i18n correctly, for ex: test:loop count="10" ¤¤¤å /test:loop it works fine, but if the body of taglib is a dynamic body, ex test:loop count="10" %="¤¤¤å"% /test:loop it works incorrect.
behavior of encodeRedirectURL()
the encodeRedirectURL() is used when you generate a dynamic url without cookie support. encodeRedirectURL() in Orion will always generate session id , but I think it should be use only when the cookie is disable.
Bug of Taglib and many i18n issue of Orion JSP
Taglib can handle i18n correctly. If I want use Big5 for my JSP page enocoding, according I have to set %@page contentType="text/html;charset=Big5" otherwise the dynamic string, ex %="¤¤¤å"% won't be correct. I find Orion handle it fine, but if in taglib body , it goes wrong. This perhapers the taglib out put stream use the io stream that don't support i18n. NOW I have serveral suggestion to orion, hopes the orion team can look the JSP i18n issue otherwise the orion can't deploy to the double byte enviroment. 1. use the system default encoding (file.encoding)be the JSP content-type encoding to ease development. So I dont need to type %@page contentType="text/html;charset=Big5" on every JSP page. 2. use the content-type to parsing the JSP to let JSP support multi-language 3. allow user to set JSP encoding in the orion web config 4. fix the TagLib and POST/GET value i18n problem
POST value encoding problem
Orion JSP/servlet has the POST problem, that many JSP/servlet engine have already fix long time ago. I am amazing that Orion havent found this bug. If Orion use the java.net.URLDecoder to parse the Form data, the post valuse won't support i18n. Make a new URLDecoder and parse data according the contentType of JSP page, replace the java.net.URLDecoder could fix this bug. The best jsp engine support i18n that I have seem is Resin of caucho.com, hope Orion can be as good as it.
Does Orion really support clustering?
the document says orion support jsp/servlet clustering. but I cant figureout how to setup a clustering server. Doest orion really support clustering or just going to ? Please give me a clear answer, thanx.