RE: load balancer setup?

2000-12-06 Thread Terence Kwan

On a some what unrelated question, anybody know how to setup Linux clustering?

Thanks

TK

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike Fontenot
Sent: Thursday, December 07, 2000 4:00 AM
To: Orion-Interest
Subject: load balancer setup?

To clustered/load balanced Orion users,

I was wondering if anyone has configured the Orion loadbalancer with non-SSL
and SSL websites within the same server? We've got this configuration on our
ecom apps and I'm not sure how to proceed with load balancer configs for
this. I've looked in the archives for these areas but could find no details.

1. Since my website has SSL, I'm not sure how to configure this for use with
the load balancer? Do I need to register the SSL webserver ports in the load
balancer.xml too? Some clarification here would help.

2. My applications have a configuration file that tells my web apps/system
things like: what is the base HREF for both non-SSL and SSL pages. Should I
be reconfiguring these values to point back to the loadbalancer host/port or
should these stay pointed to the actual instance of the application itself?

Thanks in advance,
Mike


Mike Fontenot - Object Systems Architect
BrandMatrix, Ltd.
Golden, Colorado





more question for xml,xsl in orion

2000-11-01 Thread Terence Kwan

I have a XML with data and XSL with the layout information AND JSP Java code in it. 
How can I tell orion to:
1. Put XML and XSL together and output JSP.
2. Then compile the JSP output to html.

I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP 
output. For example, here is the code.

Thanks

- car.xml -



<%  // Query database to get car information
   String sCarName="Toyota";
%>


<%=sCarName%>

 car.xsl 

http://www.w3.org/1999/XSL/Transform
 " version="1.0">


 
  
  
   




   
 






RE: accessing javamail provider

2000-10-31 Thread Terence Kwan

See enclosed mail

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
> Sent: Monday, October 30, 2000 5:04 PM
> To: Orion-Interest
> Subject: accessing javamail provider
> 
> 
> Hello,
> 
> I've posted this before on orion-interest:
> 
> I am using JavaMail to access a pop3 mailbox. No matter where I place the
> pop3.jar file (from sun, or poppers.jar) in the system, I always get a
> NoSuchProviderException saying thath no pop3 provider was 
> available. I have
> tried the following locations for the pop3.jar:
> 
> ,
> /lib
> WEB-INF/lib
> any other path referenced through  in orion-application.xml
> 
> The problem happens even though I am able to load classes from the jar via
> Class.forName().
> 
> To verify this problem further, I deployed the same application 
> on JRun 3.0.
> With JRun, I have to place the jar file in /lib/ext 
> (actually
> thats where the one that comes with JRun is located), and everything works
> fine.
> 
> thanks,
> Christian Sell
> 
> 
> 


I had the same problem with ldap.jar & providerutil.jar (providers for
JNDI).

The problem is that due to the way Orion does its classloading mail.jar
classes
are loaded by an Orion classloader (via the manifest in the orion.jar) at a
*lower*
level than the classloader that handles orion/lib.  The ways you can fix
this (which
are both kind of hacks IMO) are to put pop3.jar in your jre/lib/ext
directory, or run
orion as "java -classpath orion.jar:pop3.jar;etc
com.evermind.server.ApplicationServer"

To make this a little simpler I have written a shell script to include all
jars in
my own "lib" dir, all orion jars, etc into a CLASSPATH var, and then run
Orion
as above - so, you can start/stop orion w/  "orion start", "orion stop",
"orion run",
etc.   If there is any interest I could send this script out...

I think the problem is really with Orion including some of the J2EE jars as
standard
in the orion.jar manifest.  It's a nice idea, but based on the above problem
it would
be easier just NOT to include them.

So, to the Orion developers out there, please:

1) don't bother to include mail.jar/jndi.jar/etc (or put them in orion/lib
instead of the
orion.jar manifest)
or
2) fix Orion classloading to work with the provider mechanisms of JavaMail
and JNDI
because
3) get Sun to change the provider mechanism to use different
classlaoders/etc is
not very likely...

Thanks,
Jake

- Original Message -
From: "Terence Kwan" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, April 08, 2000 5:36 PM
Subject: where to put pop3.jar


> I am trying to use java mail API and pop3.jar provider. Where should I put
the pop3.jar file? I try to put it in: orion directory and orion/lib
directory. However, none of them work. It keeps saying:
> error:javax.mail.NoSuchProviderException: No provider for pop3
>
> I think the problem is that the Java Beam Activation Framework cannot find
the pop3.jar file.
>
> Where should I put the pop3.jar in order for the orion server to find it?
>
> Thanks
>
> TK
>
>
>
>
>
>
>




xml,xsl in orion

2000-10-31 Thread Terence Kwan



I am trying out the 
examples/xsl/data.xml demo. However, the browser think the returned stream is 
xml instead of html.  How can I set the return stream type to html for xml 
file? So the browser will display the result in html instead of 
xml. 
 
Basically, I want to 
do the following:
 
Thanks
 
TK
 
- car.xml 
-


 
<%  // Query 
database to get car information
   String sCarName="Toyota";
 %>
 

    <%=sCarName%>

 car.xsl 

http://www.w3.org/1999/XSL/Transform" 
version="1.0">
 
    
 
Car    

    
   
 
 

 


RE: URGENT: accidental stops

2000-09-28 Thread Terence Kwan

Try to use the Sun VM. We have similar problem with IBM JDK 1.3

TK

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of 
> Stanislav Maximov
> Sent: Thursday, September 28, 2000 7:10 PM
> To: Orion-Interest
> Subject: URGENT: accidental stops
> 
> 
> Hello,
> 
> I've very urgent and annoying problem: Orion's web-service (or maybe whole
> app)just stops responding in less than 10-20 hours of not very 
> intensive use
> (development, testing), but the "java -jar orion.jar" process 
> still resides
> in memory. Today I've found that even process died.
> I'm having Intel 2xPIII 512M, Linux Debian, IBM JDK 1.3 and Orion 1.3.7
> installed.
> 
> Thanks in advance.
> 
> PS: There is no info in logs. Just "Server started" entries.
> 
> stas@
> 




SSL and non SSL within the same instance of the web application

2000-09-08 Thread Terence Kwan



Hello, we can setup 
SSL on the application without problem. However, can we setup SSL enable part of 
the web application? For example, I just want to setup SSL enable on the member 
area of the web site but not the whole web application. Or do we need to setup 2 
applications - one for SSL enable and one for non SSL 
enable.
 
Thanks
 
TK


url rewrite parameter

2000-08-18 Thread Terence Kwan

anybody know how to turn on the URL rewrite option in the orion server?

Thanks

TK




Multiple developers with Orion and mailing list about web architecture

2000-07-28 Thread Terence Kwan

We are also using separate instance of orion servers for different developers on the 
same machine. However, people need to restart the server every time they upload the 
classes to the testing machine and they always kill the wrong instance of orion 
server. They are using "ps-Af|grep orion" and kill all the orion process. 

Is there any better way to kill the orion server? If you have different instance of 
orion servers on the same machine?


Also, is there any mailing list talking about web architecture? Like, 
1. is 2 P500 CPU is better than 1 P733 CPU
2. Should I use NT to host orion or linux to host orion? It is because NT has a faster 
VM (about 20-30% faster than linux VM??)
3. What is the deployment layout? Should I use RedHat LVS (Load balancing service) or 
should I use the orion load balancing service?
4. should I put the mysql database on the same machine as the orion server or should I 
put it in different machine?



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lorin 
> Kobashigawa
> Sent: Saturday, July 29, 2000 3:19 AM
> To: Orion-Interest
> Cc: Orion-Interest
> Subject: Re: Multiple developers with Orion
> 
> 
> Hey rick, 
> 
> We also have multiple developers working on the same box.  We have given
> everyone an instance of Orion for their home directories, and use CVS to
> manage the applications.  Our buildmaster/IS guy is in charge of managing
> the server.xml and default-web-site.xml files, and making they are all the
> same, and giving everyone unique ports.
> 
> It's working very well so far, we initially tried a bunch of complicated
> setups with virtual hosts, and everyone having different applications, but
> it got very confusing very quickly, and we realized that separate 
> instances
> were a lot better.
> 
> -Lkb
> 
> At 04:28 PM 7/28/00 +0200, Thomas Munro wrote:
> >Rick,
> >
> >Each of our developers has a seperate Orion instance running on their own
> >machine so they can bring it up and down whenever they want, and we are
> >using CVS to manage the sources. This seems to work reasonably well.  We
> >share the same Oracle database, which occasionally causes problems when
> >someone changes something too much there, but most of the time it works
> >well. 
> >
> >-- 
> >Thomas Munro <[EMAIL PROTECTED]>
> > http://www.gi-technology.com/
> > GI Technology (Paris)
> >
> >On Fri, 28 Jul 2000, Rick Bos wrote:
> >
> >> We have several developers working with Orion at the same time.
> >> 
> >> We currently have a single instance of Orion which must be
> >> restarted when changes are made.
> >> 
> >> Each user has a separate application that points to their working
> directory.
> >> 
> >> Each user has a separate web location:
> >> 
> >> 
> >> /server/user1/Intro.jsp
> >> /server/user2/Intro.jsp
> >> 
> >> 
> >> 
> >> 
> >> Would it be a good idea to have multiple instances or Orion ?
> >> What would be the best way to do this ?
> >> 
> >> Rick 
> >> 
> >> 
> >
> >
> >
> /**   
>  * @author: Lorin Kobashigawa-Bates <[EMAIL PROTECTED]>
>  * @title:  CodeMonkey / COO - Robot6 Inc. 
>  * @phone:  415.345.8872
>  * @addr:   1177 Polk St. San Francisco, CA 94109
>  */




RE: admin.jar only 441 bytes

2000-07-18 Thread Terence Kwan

The reason why I asked is because, when I did the following:

C:\java\orion1rc1\orion>java -jar admin.jar ormi://192.168.1.76/ admin 123 -shutdown
Error: com.evermind.server.rmi.OrionRemoteException: Invocation error: 
java.lang.ClassNotFoundException: 
com/evermind/server/administration/ApplicationServerAdministrator; nested exception is:
java.lang.ClassNotFoundException: 
com/evermind/server/administration/ApplicationServerAdministrator



> -Original Message-
> From: Dave Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 18, 2000 4:00 PM
> To: 'Terence Kwan'; Orion-Interest
> Subject: RE: admin.jar only 441 bytes
> 
> 
> Correct. It only contains a Manifest that says to use a class 
> from Orion.jar
>  
> 
> Dave Smith 
> Senior Team Leader 
> Aristocrat Technologies Australia Pty Ltd 
> 
> mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
> 
>  
> 
> -Original Message-
> From: Terence Kwan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 18 July 2000 16:32
> To: Orion-Interest
> Subject: admin.jar only 441 bytes
> 
> 
> I just did a "java -jar autoupdate.jar" and it downloaded 1.1.24 version.
> However, the admin.jar file is only 441 bytes big.
>  




admin.jar only 441 bytes

2000-07-17 Thread Terence Kwan



I just did a "java 
-jar autoupdate.jar" and it downloaded 1.1.24 version. However, the 
admin.jar file is only 441 bytes big.
 


RE: sendRedirect and WAP

2000-05-07 Thread Terence Kwan

However, getRequestDispatcher only work for URL within the same server. It does not 
work for outside servers. For example, I want to redirect to 
http://www.yahoo.com/mail, it will not work. Correct?

> -Original Message-
> 
> 
> getRequestDispatcher's forward must use buffer stream to avoid 
> content flush out before forwarding, do you take care of this?
> 
> -Original Message-
> From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Terence Kwan
Sent: Monday, May 08, 2000 2:44 AM
To: Orion-Interest
Subject: sendRedirect and WAP



In my servlet program, I call:
response.sendRedirect("http://www.yahoo.com")
It works in html. However, it does not work in WAP. 

I believe that the problem is that sendRedirect creates a redirect "HTML" file (html 
file with the reference tag in it) and send it to client instead of directly redirect 
to the URL. Since the WAP cellphone cannot under html file. It cannot do redirect.

Anyway to fix it? (I tried to use getRequestDispatcher's forward, but it does not work 
neither...)

Thanks

TK




sendRedirect and WAP

2000-05-07 Thread Terence Kwan


In my servlet program, I call:
response.sendRedirect("http://www.yahoo.com")
It works in html. However, it does not work in WAP. 

I believe that the problem is that sendRedirect creates a redirect "HTML" file (html 
file with the reference tag in it) and send it to client instead of directly redirect 
to the URL. Since the WAP cellphone cannot under html file. It cannot do redirect.

Anyway to fix it? (I tried to use getRequestDispatcher's forward, but it does not work 
neither...)

Thanks

TK




sendRedirect and WAP

2000-05-07 Thread Terence Kwan

In my servlet program, I call:
response.sendRedirect("http://www.yahoo.com")
It works in html. However, it does not work in WAP. 

I believe that the problem is that sendRedirect creates a redirect "HTML" file (html 
file with the reference tag in it) and send it to client instead of directly redirect 
to the URL. Since the WAP cellphone cannot under html file. It cannot do redirect.

Anyway to fix it? (I tried to use getRequestDispatcher's forward, but it does not work 
neither...)

Thanks

TK




where to put pop3.jar

2000-04-08 Thread Terence Kwan

I am trying to use java mail API and pop3.jar provider. Where should I put the 
pop3.jar file? I try to put it in: orion directory and orion/lib directory. However, 
none of them work. It keeps saying:
error:javax.mail.NoSuchProviderException: No provider for pop3

I think the problem is that the Java Beam Activation Framework cannot find the 
pop3.jar file.

Where should I put the pop3.jar in order for the orion server to find it?

Thanks

TK









RE: orion 9.9.1b and news-app

2000-03-02 Thread Terence Kwan

I have the same problem but I cannot find the answer for it. I cannot even send email 
to: [EMAIL PROTECTED] Can you let me know the answer if you find out the 
solution.

Thank you very much

TK

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Philippe Renon
Sent: Wednesday, March 01, 2000 9:09 PM
To: Orion-Interest
Subject: orion 9.9.1b and news-app


Hi,

I managed to setup the news-app demo but ran into the following problems
when accessing http://local/hostnews (the border displays fine)
500 Internal Server Error
java.lang.SecurityException: guest is not allowed to call this method, check
your security settings.

at SessionHomeWrapper11.create(SessionHomeWrapper11.java:13)

at __jspPage0._jspService(__jspPage0.java:45)

at com.evermind.server.http.EvermindHttpJspPage.service(JAX)

at com.evermind.server.http.HttpApplication.oc(JAX)

at com.evermind.server.http.JSPServlet.service(JAX)

at cv.kt(JAX)

at cv.forward(JAX)

at c4.mu(JAX, Compiled Code)

at c.run(JAX, Compiled Code)

Thanks for any help,
Philippe.

 

Philippe Renon
décalog - 5, rue Bachaumont - 75002 PARIS
Voice   : +33 (0) 1 40 28 44 64
Fax : +33 (0) 1 40 28 24 54
E-mail  : mailto:[EMAIL PROTECTED]
 





security exception

2000-02-28 Thread Terence Kwan

I keep geting security exception even I set the following role information:


guests



*




The exception which i get is:

java.lang.SecurityException: guest is not allowed to call this method, check your 
security settings.
at SessionHomeWrapper1.create(SessionHomeWrapper1.java:13)
at __jspPage18._jspService(__jspPage18.java:45)
at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.oc(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at cv.kt(JAX)
at cv.forward(JAX)
at c4.mu(JAX, Compiled Code)
at c.run(JAX, Compiled Code)