RE: Force Logon after X minutes

2001-06-13 Thread cybermaster

%
if (session != null) {
session.invalidate();
}

%

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Smith Jason
Sent: Wednesday, June 13, 2001 6:38 AM
To: Orion-Interest
Subject: Force Logon after X minutes

I am custom user-authentication.

The user and groups are in a database and I am using BASIC authentication.

How can I allow users to logoff w/o them closing their browser?

How can I force them to logon again after x minutes?

Thxs,

Jason







RE: Security bug with application clients?

2001-06-12 Thread cybermaster

Web Application Authentication seems to work fine - a client of mine is
using FORM based authentication for a simple app. I don't know what you mean
by dynamic identities - we store userid info in a relational db.

I have not checked the j2ee specs for required behaviour of non-Web
application clients - what do the specs say? However, I suspect the problem
may have to do with the RoleManager, which to my knowledge isn't
configurable at this time in Orion and relies on *.xml (non-dynamic as in
rel. db?) role definitions. You may want to try to use RoleManager.login
(instead of setting the JNDI properties) on your application client - I have
not tried it, so don't know wether this works. You may have noticed there is
no logout method specified - I don't know how a Web Session does that
internally (but it sure works)

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres
Sent: Tuesday, June 12, 2001 10:51 AM
To: Orion-Interest
Subject: Re: Security bug with application clients?

 I think maybe I didn't make something clear.  I am using a java
application client, NOT a web client.  As such, I cannot invalidate
sessions, make posts, etc.


I will repeat that we have seen that Orion's InitialContext and Principal
identity
features do not work. They do not work in servlets, they do not work in
client apps.
They do not work for JMS. They do not work, Sam I am. We have given up on
using any
container authentication short of guest. This is only for dynamic
identities.
It appears that static identity via the 'jndi.properties' file works ok.

 Orion seems to be written primarily as a web app server, and I have seen
very little information on using it as a direct application server (in Orion
literature or in the Oracle OC4J docs.)  Since very few people are using
Orion in this way, I guess I should expect to see a few bugs here and there.
(I'm guessing that this is an application-client specific issue.)


We use Orion with standalone Java client applications. They work fine.
Except for authentication, which does not work.






RE: Can't get taglibs to work in orion

2001-06-12 Thread cybermaster









Your setup
looks fine  same works for me. I assume some typo somewhere else  e.g. within
the tag.

Turn off the
nice error messages or whatever it is called in IE, to find out whats going
on.



 --peter



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Tim Pouyer
Sent: Tuesday, June 12, 2001 4:30
PM
To: Orion-Interest
Subject: Can't get taglibs to work
in orion



I downloaded the custom tags provided on
orion's site and installed them on my orion 1.5.2 server. But when I try
to go to the jsp page that uses them I get a 'page cannot be displayed
error'. I can run jsp's that do not utilize orion's taglibs so I think it
might have something to do with my deployment descriptors. In my web.xml
file in web-inf directory i have the following tags:



?xml version=1.0?

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD
Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd

web-app

display-nameHolder Project/display-name

login-config

auth-methodBASIC/auth-method

/login-config

taglib 

taglib-uriutiltags/taglib-uri

taglib-location/WEB-INF/lib/utiltags.jar/taglib-location


/taglib 

/web-app

and I put %@ taglib uri=utiltags
prefix=util % at the top of my jsp.With all subsequent
code referenced like this util:sometag

if someone could please explain what I am doing
wrong I would greatly appreciate it.








RE: Util taglibrary bug? util:sendMail

2001-05-31 Thread cybermaster

Harrie, no cutpaste problem - the tags are in different class files. Since
they work for me both in 1.4.5 and 1.4.7, it has to be assumed somehing is
going on with your utiltags.jar file. Maybe download it again, and put it in
WEB-INF/lib. Don't know what else could cause the error - you use an SMTP
protocol on the server you specify and not a different protocol?

There is no reference in SendMailTag.java to IfInRole whatsoever ...

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Harrie van
Barneveld
Sent: Thursday, May 31, 2001 8:14 AM
To: Orion-Interest
Subject: RE: Util taglibrary bug? util:sendMail

Dear Cybermaster,

Thanks for the help.

I had indeed not done that setup.  But it doesn't solve my COMPILE-time
error.

It doesn't even get so far as to check any of the code you suggested (I did
put it in).  I've tried it under both Orion release 1.4.7. and under
1.5.1...

I'm especially puzzled by the reference to the IFINROLE-tag.  Which is
not in my JSP file, but of course is another tag in the same utiltags
library.  Is this maybe a cut-and-past problem in the Utltags lib?

Any other suggestions ?

Harrie







RE: Util taglibrary bug? util:sendMail

2001-05-30 Thread cybermaster

util:sendMail works fine for me. Did you set your mail.smtp.host property?

e.g.

%@ taglib uri=utiltags prefix=util %
%@ page language=java import=java.util.*, javax.mail.*,
javax.mail.internet.* %
%
String smtpHost = x.x.x.x ;   // your 
servers IP
String date = new Date().toLocaleString();
%

!--Send email(s)   --
%
Properties properties = System.getProperties();
properties.put(mail.smtp.host, smtpHost);
Session mailSession = Session.getDefaultInstance(properties, null);
%
!--
REM: above should _not_ use getDefaultInstance, only quick fix; better put
instance into JNDI,
or create new tag that takes instance directly
--
util:sendMail from=vipeWebApplication to= [EMAIL PROTECTED] 
subject=Enquete
date:   %= date %
user:   %= request.getRemoteUser() %
/util:sendMail

Cheers

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Harrie van
Barneveld
Sent: Wednesday, May 30, 2001 4:00 AM
To: Orion-Interest
Subject: Util taglibrary bug? util:sendMail

I'm trying to use sendMail-tag from the Orion Utiltags library and I am
having no success, anyone who has solved this problem?

If I use the subject-attribute, like this:
util:sendMail to=[EMAIL PROTECTED] subject=Enquete

I get the compile-time error:
Error parsing JSP page /vipe/main.jsp line 280
subject is not a valid attribute for tag util:sendMail


If I leave the subject out, like this:
util:sendMail to=[EMAIL PROTECTED]

I get the compile-time error:
Error parsing JSP page /vipe/main.jsp line 280
Property to not found in bean/tag
com.evermind.taglib.util.IfInRoleTag

which seems way out-of-line.
Any help is appreciated.

Harrie






RE: Orin cpu usage ??? - HANGS - please some help!!

2001-05-21 Thread cybermaster

Did max-instances solve the problem? Anyway, in some applications on
Linux/Unix you have to change

#DEFAULT_THREADS_FLAG=green to:
DEFAULT_THREADS_FLAG=native

in two places relative to JAVA_HOME: ./bin/.java_wrapper and
jre/bin/.java_wrapper.

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Monday, May 21, 2001 3:12 AM
To: Orion-Interest
Subject: Re: Orin cpu usage ??? - HANGS - please some help!!

Thanks peter.. again :) I looked at it and it gives some more information.
But I think I also have to play around witht he max-instances to control the
number of bean instances, as I notices that other people had the same
problem and solved it like that.

Eddie

- Original Message -
From: cybermaster [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, May 18, 2001 3:37 PM
Subject: RE: Orin cpu usage ??? - HANGS - please some help!!


 Use the -monitorResourceThreads flag when you start orion - (use java -jar
 orion.jar -help to see possible startup options)

 --peter

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
 Sent: Friday, May 18, 2001 3:52 AM
 To: Orion-Interest
 Subject: Re: Orin cpu usage ??? - HANGS - please some help!!

 Please tell me how I can see in Orion what's going wrong!!
 - About every hour Orion still runs, but doesn't do any servlets, beans,
 etc... it just hangs... and I can't figure out why... not completely
true...
 it writes:
 
 java.lang.OutOfMemoryError: max threads limit  being reached in VM
 at java.lang.Thread.start(Native Method)
 at com.evermind.util.ThreadPool.cb(JAX)
 at com.evermind.server.he.ap3(JAX)
 at com.evermind.server.http.eq.run(JAX)
 at com.evermind.util.f.run(JAX)
 -

 But I don't understand this as I start it with enough memory:
 --
/opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config
 /opt/Orion/config/server.xml  /opt/Orion/log/out.log 21 
 --

 And if I take a look with the orionconole the memory usage it always
around
 13-32 MB
 What ma I missing here.
 BTW: it's running on HP-UX 11 with jdk1.3

 Eddie



 - Original Message -
 From: cybermaster [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, May 17, 2001 4:07 PM
 Subject: RE: Orin cpu usage ???


  I have seen other instances where profiling doesn't work with the
HotSpot
  JVM - use the Classic, and it (may) work.
 
  --peter
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
  Sent: Thursday, May 17, 2001 6:04 AM
  To: Orion-Interest
  Subject: Re: Orin cpu usage ???
 
  Thanks Marcel,
 
  Indeed I get more information when I start with -Xprof, however when I
use
  the -Xrunhprof I get the following error (the total command is also
  included):
 
  Funny !!!,
  Eddie
  --
  #
  # HotSpot Virtual Machine Error, Internal Error
  # Please report this error at
  # http://java.sun.com/cgi-bin/bugreport.cgi
  #
  # Error ID: 4D555445583F4C494E55580E4350500104
  #
  # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable
  #
  --
  Start command:
  ---
  su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar
  /opt/Orion/orion.jar -config /opt/Orion/config/server.xml 
  /opt/Orion/log/out.log 21 
  
 
 
  - Original Message -
  From: Marcel Schutte [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Thursday, May 17, 2001 11:48 AM
  Subject: RE: Orin cpu usage ???
 
 
   Hi Eddie,
  
   You could try to use the JVM profiler (startup arguments -Xprof
   and -Xrunhprof). This is ofcourse not orion specific, but you can give
 it
  a
   try. You can also try leaving out parts of your application until you
 find
   the bit that's causing your problem.
  
   Marcel
  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Thursday, May 17, 2001 10:11 AM
To: Orion-Interest
Subject: Re: Orin cpu usage ???
   
   
Can someone please answer this question !!!???
The problem I am having is the Orion sometimes hangs, it uses
a lot of cpu
and I can't figure out why, so I need some advices on how I
can monitor
this.
   
Please... ??
   
Eddie
   
- Original Message -
From: Eddie [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 11:42 AM
Subject: Orin cpu usage ???
   
   
 Can someone please tell me how to monitor the cpu usage of
Orion in detail
 per component/item/application ?

 When I use orionconsole I can only view the overall memory
usage of all
 application, but that's it. With top I see it is using a
lot of cpu
time:
 about 50 percent.
 But I want more information, how do I get that ??

 Eddie



   
  
  
  
 
 
 








RE: Orin cpu usage ??? - HANGS - please some help!!

2001-05-21 Thread cybermaster

I'll attach the modified version of the wrapper file - a while ago I helped
a collegue to set this up to get a profiler and analyzer (OptimizeIt) to
work. So there may be some other changes in it  - hope this helps ...

In your example, ttype=green_threads and not 'native'

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Monday, May 21, 2001 1:43 PM
To: Orion-Interest
Subject: Re: Orin cpu usage ??? - HANGS - please some help!!

Hi cybermaster,

In both the wrapper files If find something like below. What shall I change
??
I suppose the _JMS_THREADS_TYPE=native.. !
---
if [ ${vmtype} = classic ]; then
ttype=green_threads
LD_BIND_NOW=yes
export LD_BIND_NOW
_JVM_THREADS_TYPE=green_threads
export _JVM_THREADS_TYPE
fi
---

But why ? and should I also change ttype ? If I only change the _JMS .. part
I do get the following:

[orion@ojo Orion]# java -classic -jar ./orion.jar
JVM Classic type
Could not create the Java virtual machine.
---

BTW: I haven't playes around with the max-instances yet, but I will do that
shorly but still don't know what the max value should be !!!

Eddie




if [ ${vmtype} = classic ]; then
ttype=green_threads
LD_BIND_NOW=yes
export LD_BIND_NOW
_JVM_THREADS_TYPE=green_threads
export _JVM_THREADS_TYPE
fi


- Original Message -
From: cybermaster [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 5:48 PM
Subject: RE: Orin cpu usage ??? - HANGS - please some help!!


 Did max-instances solve the problem? Anyway, in some applications on
 Linux/Unix you have to change

 #DEFAULT_THREADS_FLAG=green to:
 DEFAULT_THREADS_FLAG=native

 in two places relative to JAVA_HOME: ./bin/.java_wrapper and
 jre/bin/.java_wrapper.

 --peter

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
 Sent: Monday, May 21, 2001 3:12 AM
 To: Orion-Interest
 Subject: Re: Orin cpu usage ??? - HANGS - please some help!!

 Thanks peter.. again :) I looked at it and it gives some more information.
 But I think I also have to play around witht he max-instances to control
the
 number of bean instances, as I notices that other people had the same
 problem and solved it like that.

 Eddie

 - Original Message -
 From: cybermaster [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Friday, May 18, 2001 3:37 PM
 Subject: RE: Orin cpu usage ??? - HANGS - please some help!!


  Use the -monitorResourceThreads flag when you start orion - (use
java -jar
  orion.jar -help to see possible startup options)
 
  --peter
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
  Sent: Friday, May 18, 2001 3:52 AM
  To: Orion-Interest
  Subject: Re: Orin cpu usage ??? - HANGS - please some help!!
 
  Please tell me how I can see in Orion what's going wrong!!
  - About every hour Orion still runs, but doesn't do any servlets,
beans,
  etc... it just hangs... and I can't figure out why... not completely
 true...
  it writes:
  
  java.lang.OutOfMemoryError: max threads limit  being reached in VM
  at java.lang.Thread.start(Native Method)
  at com.evermind.util.ThreadPool.cb(JAX)
  at com.evermind.server.he.ap3(JAX)
  at com.evermind.server.http.eq.run(JAX)
  at com.evermind.util.f.run(JAX)
  -
 
  But I don't understand this as I start it with enough memory:
  --
 /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config
  /opt/Orion/config/server.xml  /opt/Orion/log/out.log 21 
  --
 
  And if I take a look with the orionconole the memory usage it always
 around
  13-32 MB
  What ma I missing here.
  BTW: it's running on HP-UX 11 with jdk1.3
 
  Eddie
 
 
 
  - Original Message -
  From: cybermaster [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Thursday, May 17, 2001 4:07 PM
  Subject: RE: Orin cpu usage ???
 
 
   I have seen other instances where profiling doesn't work with the
 HotSpot
   JVM - use the Classic, and it (may) work.
  
   --peter
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
   Sent: Thursday, May 17, 2001 6:04 AM
   To: Orion-Interest
   Subject: Re: Orin cpu usage ???
  
   Thanks Marcel,
  
   Indeed I get more information when I start with -Xprof, however when I
 use
   the -Xrunhprof I get the following error (the total command is also
   included):
  
   Funny !!!,
   Eddie
   --
   #
   # HotSpot Virtual Machine Error, Internal Error
   # Please report this error at
   # http://java.sun.com/cgi-bin/bugreport.cgi
   #
   # Error ID: 4D555445583F4C494E55580E4350500104
   #
   # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable
   #
   --
   Start command:
   ---
   su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar
   /opt/Orion

RE: Orin cpu usage ??? - HANGS - please some help!!

2001-05-18 Thread cybermaster

Use the -monitorResourceThreads flag when you start orion - (use java -jar
orion.jar -help to see possible startup options)

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Friday, May 18, 2001 3:52 AM
To: Orion-Interest
Subject: Re: Orin cpu usage ??? - HANGS - please some help!!

Please tell me how I can see in Orion what's going wrong!!
- About every hour Orion still runs, but doesn't do any servlets, beans,
etc... it just hangs... and I can't figure out why... not completely true...
it writes:

java.lang.OutOfMemoryError: max threads limit  being reached in VM
at java.lang.Thread.start(Native Method)
at com.evermind.util.ThreadPool.cb(JAX)
at com.evermind.server.he.ap3(JAX)
at com.evermind.server.http.eq.run(JAX)
at com.evermind.util.f.run(JAX)
-

But I don't understand this as I start it with enough memory:
--
   /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config
/opt/Orion/config/server.xml  /opt/Orion/log/out.log 21 
--

And if I take a look with the orionconole the memory usage it always around
13-32 MB
What ma I missing here.
BTW: it's running on HP-UX 11 with jdk1.3

Eddie



- Original Message -
From: cybermaster [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, May 17, 2001 4:07 PM
Subject: RE: Orin cpu usage ???


 I have seen other instances where profiling doesn't work with the HotSpot
 JVM - use the Classic, and it (may) work.

 --peter

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
 Sent: Thursday, May 17, 2001 6:04 AM
 To: Orion-Interest
 Subject: Re: Orin cpu usage ???

 Thanks Marcel,

 Indeed I get more information when I start with -Xprof, however when I use
 the -Xrunhprof I get the following error (the total command is also
 included):

 Funny !!!,
 Eddie
 --
 #
 # HotSpot Virtual Machine Error, Internal Error
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Error ID: 4D555445583F4C494E55580E4350500104
 #
 # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable
 #
 --
 Start command:
 ---
 su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar
 /opt/Orion/orion.jar -config /opt/Orion/config/server.xml 
 /opt/Orion/log/out.log 21 
 


 - Original Message -
 From: Marcel Schutte [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, May 17, 2001 11:48 AM
 Subject: RE: Orin cpu usage ???


  Hi Eddie,
 
  You could try to use the JVM profiler (startup arguments -Xprof
  and -Xrunhprof). This is ofcourse not orion specific, but you can give
it
 a
  try. You can also try leaving out parts of your application until you
find
  the bit that's causing your problem.
 
  Marcel
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
   Sent: Thursday, May 17, 2001 10:11 AM
   To: Orion-Interest
   Subject: Re: Orin cpu usage ???
  
  
   Can someone please answer this question !!!???
   The problem I am having is the Orion sometimes hangs, it uses
   a lot of cpu
   and I can't figure out why, so I need some advices on how I
   can monitor
   this.
  
   Please... ??
  
   Eddie
  
   - Original Message -
   From: Eddie [EMAIL PROTECTED]
   To: Orion-Interest [EMAIL PROTECTED]
   Sent: Wednesday, May 16, 2001 11:42 AM
   Subject: Orin cpu usage ???
  
  
Can someone please tell me how to monitor the cpu usage of
   Orion in detail
per component/item/application ?
   
When I use orionconsole I can only view the overall memory
   usage of all
application, but that's it. With top I see it is using a
   lot of cpu
   time:
about 50 percent.
But I want more information, how do I get that ??
   
Eddie
   
   
   
  
 
 
 








RE: Orin cpu usage ???

2001-05-18 Thread cybermaster

I am currently sitting on a w2k box, but I remember that under Unix many of
these files are links to a wrapper for either hotspot or classic JVM. You
may have to play around and change those.

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Friday, May 18, 2001 2:27 AM
To: Orion-Interest
Subject: Re: Orin cpu usage ???

Thanks peter,

I tried it as classic, but it doesn't work. It complains that it can't find
the JIT, wheras it is able find it, as the below, any idea why this is (I
haven't got much experience with running the jvm in different modes, any
idea where to find more info, as I can't find it in the man java ??) ??:
---
[orion@ojo Orion]# java -classic orion.jar
Warning: JIT compiler /usr/local/java/bin/javac not found. Will use
interpreter.
Exception in thread main java.lang.NoClassDefFoundError: orion/jar
[orion@ojo Orion]# ls /usr/local/java/bin/ja
jar   java  javac javah
jarsigner java-rmi.cgi  javadoc   javap
[orion@ojo Orion]# ls /usr/local/java/bin/javac
/usr/local/java/bin/javac
[orion@ojo Orion]#
--

Eddie


- Original Message -
From: cybermaster [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, May 17, 2001 4:07 PM
Subject: RE: Orin cpu usage ???


 I have seen other instances where profiling doesn't work with the HotSpot
 JVM - use the Classic, and it (may) work.

 --peter

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
 Sent: Thursday, May 17, 2001 6:04 AM
 To: Orion-Interest
 Subject: Re: Orin cpu usage ???

 Thanks Marcel,

 Indeed I get more information when I start with -Xprof, however when I use
 the -Xrunhprof I get the following error (the total command is also
 included):

 Funny !!!,
 Eddie
 --
 #
 # HotSpot Virtual Machine Error, Internal Error
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Error ID: 4D555445583F4C494E55580E4350500104
 #
 # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable
 #
 --
 Start command:
 ---
 su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar
 /opt/Orion/orion.jar -config /opt/Orion/config/server.xml 
 /opt/Orion/log/out.log 21 
 


 - Original Message -
 From: Marcel Schutte [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, May 17, 2001 11:48 AM
 Subject: RE: Orin cpu usage ???


  Hi Eddie,
 
  You could try to use the JVM profiler (startup arguments -Xprof
  and -Xrunhprof). This is ofcourse not orion specific, but you can give
it
 a
  try. You can also try leaving out parts of your application until you
find
  the bit that's causing your problem.
 
  Marcel
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
   Sent: Thursday, May 17, 2001 10:11 AM
   To: Orion-Interest
   Subject: Re: Orin cpu usage ???
  
  
   Can someone please answer this question !!!???
   The problem I am having is the Orion sometimes hangs, it uses
   a lot of cpu
   and I can't figure out why, so I need some advices on how I
   can monitor
   this.
  
   Please... ??
  
   Eddie
  
   - Original Message -
   From: Eddie [EMAIL PROTECTED]
   To: Orion-Interest [EMAIL PROTECTED]
   Sent: Wednesday, May 16, 2001 11:42 AM
   Subject: Orin cpu usage ???
  
  
Can someone please tell me how to monitor the cpu usage of
   Orion in detail
per component/item/application ?
   
When I use orionconsole I can only view the overall memory
   usage of all
application, but that's it. With top I see it is using a
   lot of cpu
   time:
about 50 percent.
But I want more information, how do I get that ??
   
Eddie
   
   
   
  
 
 
 








RE: Orin cpu usage ???

2001-05-17 Thread cybermaster

I have seen other instances where profiling doesn't work with the HotSpot
JVM - use the Classic, and it (may) work.

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Thursday, May 17, 2001 6:04 AM
To: Orion-Interest
Subject: Re: Orin cpu usage ???

Thanks Marcel,

Indeed I get more information when I start with -Xprof, however when I use
the -Xrunhprof I get the following error (the total command is also
included):

Funny !!!,
Eddie
--
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4D555445583F4C494E55580E4350500104
#
# Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable
#
--
Start command:
---
su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar
/opt/Orion/orion.jar -config /opt/Orion/config/server.xml 
/opt/Orion/log/out.log 21 



- Original Message -
From: Marcel Schutte [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, May 17, 2001 11:48 AM
Subject: RE: Orin cpu usage ???


 Hi Eddie,

 You could try to use the JVM profiler (startup arguments -Xprof
 and -Xrunhprof). This is ofcourse not orion specific, but you can give it
a
 try. You can also try leaving out parts of your application until you find
 the bit that's causing your problem.

 Marcel

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
  Sent: Thursday, May 17, 2001 10:11 AM
  To: Orion-Interest
  Subject: Re: Orin cpu usage ???
 
 
  Can someone please answer this question !!!???
  The problem I am having is the Orion sometimes hangs, it uses
  a lot of cpu
  and I can't figure out why, so I need some advices on how I
  can monitor
  this.
 
  Please... ??
 
  Eddie
 
  - Original Message -
  From: Eddie [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Wednesday, May 16, 2001 11:42 AM
  Subject: Orin cpu usage ???
 
 
   Can someone please tell me how to monitor the cpu usage of
  Orion in detail
   per component/item/application ?
  
   When I use orionconsole I can only view the overall memory
  usage of all
   application, but that's it. With top I see it is using a
  lot of cpu
  time:
   about 50 percent.
   But I want more information, how do I get that ??
  
   Eddie
  
  
  
 








RE: How to tell when a user first log's in?

2001-05-12 Thread cybermaster

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: init params

2001-05-12 Thread cybermaster

I used to have similar problems as Russ - IMHO the naming of ServletContext
is wrong - the context is the web-application and not the servlet that's
returned by getServletContext. Obviously the powers who created the API cut
the naming of the function short - getContextServletIsIn - is what they
meant.

The grammatical construct SomethingContext usually is considered to name
the Context - which to repeat myself is the web app. ServletConfig contains
the parameters in the Context of the Servlet

Wish Sun would reconsider the naming of some of these classes and methods
...

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Coward
Sent: Saturday, May 12, 2001 11:46 AM
To: Orion-Interest
Subject: RE: init params

Russ:

The first two methods...

 * getInitParameter(String):String
 * config.getInitParameter(String):String

both reference the ServletConfig.getInitParameter(String):String method.
This
returns configuration information specified by an init-param element
within a
servlet definition.

The other method...

 * getServletContext.getInitParameter(String):String

references ServletContext.getInitParameter(String):String. which retrieves
parameter values from the context-param element of a web-app definition.

Check out the Servlet API JavaDocs or specification docs for more info.

Jason Coward
Technical Relationship Manager
Mongoose Technology, Incorporated

| -Original Message-
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]On Behalf Of Russ White
| Sent: Saturday, May 12, 2001 9:08 AM
| To: Orion-Interest
| Subject: init params
|
|
| Found something unexpected.
|
| I have attached an ear to illustrate.
|
| In the servlet TestServlet (config provided for expediency).
|   servlet
|   servlet-nametest/servlet-name
|   display-nametest/display-name
|   servlet-classcom.sequenet.mvc.TestServlet/servlet-class
|   init-param
|   param-nameconfig/param-name
|   param-valuetest/param-value
|   /init-param
|   load-on-startup1/load-on-startup
|   /servlet
| I try to get an init-param three ways.
|
| System.err.println(param=+getInitParameter(config));
| System.err.println(param=+config.getInitParameter(config));
|
|
System.err.println(param=+getServletContext().getInitParameter(config));
|
| the first two print test as they should.
| the last one print null.
|
| why?
|
| Just for kicks I performed this test in both the init() method and a
service()
| method.
|
| Any thoughts?
|
| WR
| Russ White
|
|






RE: How to tell when a user first log's in?

2001-05-12 Thread cybermaster

OK, there's a couple of different ways of doing this, dependent on which
program flow you wish to implement. A fairly generic way is something like
this (DHTML of course, doesn't have anything to do with the server-side of
things):

!- index.htm   FRAMESET--
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titleFrameNav/title
script type=text/javascript
var mFrame = main.htm;
var redirectFrame = location.search.substr(1).split(=);
if (redirectFrame[1]) {
mFrame = redirectFrame[1];
}

document.write('frameset rows=200, * frameborder=1 frame name=top
src=top.htm /frame name=main src=' + mFrame + ' //frameset');
/script
/head

body

/body
/html
!-end of index.htm --


!-foo.htm The file to be redirected--
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titlefoo.htm/title
/head

body
This is foo!br/br/

script type=text/javascript

if (top == self) {
window.location.replace(index.htm?url= + location.pathname);
}
/script


/body
/html
!-end of foo.htm   --


I assume this does what you were looking for (by the way, this may require
IE5.5 and NS6.0; to make it more generic you need to implement the split()
function yourself)

--Peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C
Sent: Sunday, May 13, 2001 3:47 PM
To: Orion-Interest
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]






Authentication App Design

2001-05-11 Thread cybermaster








Hi list,



I am starting to design  write an Authentication App Server that
can be used by independent, distributed apps - e.g. by Orion Apps (e.g. a
servlet filter) for authentication/login. The app could run on Orion, but in itself be independent. For
each supported platform or application(server), a certain amount of specific
code (an integration adapter) is needed to interface with the server-specific
authentication module(s).



In order to make this work with Orion (as a client), I need to configure
UserManager  RoleManager [to use my integration adapter classes]. I can
see how to configure a UserManager to be used by Orion (orion-application.xml
user-manager), but have not come across info on how to configure the RoleManager
(I think I read a while ago that currently it cant be configured ?). Of
course, I could replace Orions com.evermind.security.RoleManager  although I
am not even sure wether thats the actual class doing the job  according to
the API, its an interface, but I couldnt find any other class named
appropriately which would implement the RoleManager interface (apart from this
being a nasty hack and shouldnt be done anyway).



The requirements include necessity to dynamically create/update/delete
roles, not only users and groups.



Any thoughts/experiences out there doing this? Thanks



 --peter








RE: Form-based authentication: original request URI...?

2001-05-03 Thread cybermaster









Hi Attila,



FORM based
authentication is somewhat limited with respect to the use-cases it supports. On
your error page include something like:



a
href="javascript:history.go(-1);Try" again/a





This works
fine for me. Cheers



 --peter



650-561-9273

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Attila Bodis
Sent: Thursday, May 03, 2001 6:25
PM
To: Orion-Interest
Subject: Form-based
authentication: original request URI...?



Hi,



I managed to get forms-based
authentication working (Orion 1.4.5/Win2K), but I have a question. Here
is what happens:



 1) user tries to access
protected resource protected.jsp



 2) Orion redirects user
to the login page login.jsp instead



 3) user enters
*incorrect* userid/password and submits the form



 4) Orion shows the
error page error.jsp, as it should



So far, so good, but on the error page I'd
like to say something like click here to retry, with a link to the
*original* page that triggered the authentication in the first place (in this
case protected.jsp). Note that if I put a link to
login.jsp on the error page, the user will be stuck in a loop as
successful authentication will just redisplay the login page itself.



The question is: is there a way
(either inside the login page or in the error page) of somehow determining what
the original request URI was that triggered the authentication to begin
with? I already tried request.getRequestURI() inside
login.jsp, but it evaluates to login.jsp, not
protected.jsp as I'd like. Clearly Orion stores the original
request URI somewhere (otherwise it wouldn't know where to go after a
successful login), but how can I get at this information???



 Any help would be
greatly appreciated!



 Attila





Attila Bodis

 Development Manager,
Mobile Hosting

 800 Bridge Pkwy #2068

 Redwood Shores, CA
94065

 (650) 506-4767 (w)

 (650) 346-6156 (m)

 [EMAIL PROTECTED]




 Visit the
OracleMobile Online Studio at http://studio.oraclemobile.com.











RE: META HTTP-EQUIV=\refresh\ in JSP with Orion 1.4.5

2001-05-01 Thread cybermaster

This really shouldn't have anything to do with Orion - this statement is
interrpreted and executed by the browser ...
According to W3C, the correct syntax is:

META http-equiv=refresh content=3,http://www.acme.com/intro.html;

Hope this works for you

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Debabrata Panda
Sent: Monday, April 30, 2001 9:20 PM
To: Orion-Interest
Subject: META HTTP-EQUIV=\refresh\ in JSP with Orion 1.4.5

We have some JSPs with META tags which work fine with Tomcat and
iPlanet. But this does not seem to be working with Orion. Am I missing
anything. This does not seem to call Launch.JSP when we deploy the
WAR with Orion.

out.println(META HTTP-EQUIV=\refresh\ CONTENT=\1; URL=Launch.jsp\ );

Any help will be appreciated ?

regards
Debu


Get free email and a permanent address at http://www.netaddress.com/?N=1





RE: IIS, Orion, virtual host

2001-04-28 Thread cybermaster

Thanks Jeff, see it now. Had my W2000 machine configured to obtain IP
address automatically, which disabled this option.

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Hubbach
Sent: Friday, April 27, 2001 2:23 PM
To: Orion-Interest
Subject: Re: IIS, Orion, virtual host

I'm on Linux, and you can configure your machine to listen to multiple IPs.
The
NIC is originally configured with one IP when you set it up, but then you
can
go in and tell it to listen to more IPs. You can do this in NT and 2000 as
well. In 2000, you just open up your network settings - TCP/IP
properties -
advanced. Now you can add multiple IPs to listen to. In Linux, I just use
linuxconf. There's a section called IP aliases for Virtual Hosts. In
solaris,
you just put all the IPs you want to listen to in a file that is named after
your interface and is located in /usr/local/if.setup.

Jeff Hubbach.







RE: Re: IIS, Orion, virtual host

2001-04-27 Thread cybermaster

Out of curiosity: Jeff, are you using a multi-homed machine? So far I have
not run across a network driver that filters all incoming packets from a
single network card to resolve them into various IPs, but I'm always open to
learn of new stuff.

One network adapter - one IPaddress (although I've heard of drivers which
send out fake IPs, but can't receive them)

--peter
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of olivier
  Sent: Wednesday, April 25, 2001 9:51 AM
  To: Orion-Interest
  Subject: IIS, Orion, virtual host
 
 
  Hi,
 
  For some reason, I have set 2 IP addresse to my machine (NT).
x.x.x.20 and
  x.x.x.21. (modification in the connection setting and the hosts file)
  I have configured IIs to use x.20, on port 80, and Orion x.21 on port
80.
  Is is because the port are the same that I can't start both of them
at the
  same time (they complain that the address is in use).
 
  Or is it possible and I don't know how to do it ???
 
  Thanks,
 
  olivier
 
 
 
 

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com

Sincerely,

paul
[EMAIL PROTECTED]



Sincerely,

paul
[EMAIL PROTECTED]







RE: RoleManager: how to log off?

2001-04-17 Thread cybermaster

You need to invalidate the session:

%
if (session != null) {
session.invalidate();
}

%

Cheers

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Taavi Tiirik
Sent: Tuesday, April 17, 2001 4:22 AM
To: Orion-Interest
Subject: RoleManager: how to log off?


It is possible to log into using RoleManager.login( user, password ).
Now, how can I log off?

thanks,
Taavi







RE: platform independent jsp code. how?

2001-04-13 Thread cybermaster

Hi Taavi,

I have encountered a problem that sounds related to yours. I tried to make
japanese characters ailable on a page (although I don't expect japanese
input), and set

META http-equiv=Content-Type content="text/html; charset=euc-jp"

before some unicode output - which I copied from a translation engine. All I
got was garbage (I have japanese support installed on that particular W2000
machine). Even after setting my editor to Unicode (I use EditPlus for much
of my work), copy/paste into my editor would fail  and not produce the
correct Unicode chars, and of course the jsp's output was garbage, too.

I got this to work only after copying a japanese page to my computer,
loading it into my editor, and voila - suddenly copy/paste worked correctly
and so does my output from my jsp's. Any new page I write I have to use an
exisitng working japanese page as a template in order for it to function
correctly.

I did *not* include the @page directive into my code - it works correctly
with just the META ... tag

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Taavi Tiirik
Sent: Friday, April 13, 2001 8:23 AM
To: Orion-Interest
Subject: platform independent jsp code. how?

Hello,

I have still problems getting orion to work with unicode
characters. Here is a jsp page that behaves differently
on different platforms. Could you please help me to find
a way to make it platform independent.

I know that unicode is not something most of you should
pay attention to right now. Still, soon... :-)

My original problem was that without specifing correct
locale information, request.getParameter() returned
something else than expected. So, on solaris platform
I added environment variable LANG=en_US.UTF-8 before
running orion. Good, got it working.

Then, the very same code did not run under win2000. For
some reason specifying character set with a % @page %
directive on top of jsp page does not work with win2000.
Why?

So in the meantime the best way I have found around this
problem is to have
%@ page contentType="text/html; charset=utf-8" %
on top of every jsp file on solaris platform and NOT
TO HAVE this line under win2000. Why? Is there something
wrong with this line? How should it be written under
win2000?

--- (start of 'utf-8test.jsp') ---
%@ page contentType="text/html; charset=utf-8" %
html
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8"
title/title
/head

body

% String q = request.getParameter( "q" ); %

query="%= q %"

form
input type="text" name="q" value="%= q %"
input type="submit"
/form

example 1
a href="utf-8test.jsp?q=asd"(asd)/a
- no wonder this one is workingbr

example 2
a href="utf-8test.jsp?q=%C3%B5%C3%A4%C3%B6%C3%BC%C5%A1%C5%BE"
(otilde;auml;ouml;uuml;#353;#382;)/a
- here I am having problemsbr

/body
/html
--- (end of 'utf-8test.jsp') -

On this page there is a text field. Place as complex
characters as you can think of into this field and submit
the form. You shuld see the very same text you entered
and not some garbage in your browser.

And I am speaking about 'solaris' and 'win2000' merely
because I really haven't tried this on other unix and nt
systems.

On both systems I am running jdk1.3 and orion 1.4.5.

Oh and one more thing. Tomcat 3.2.1 does not need
%@ page contentType="text/html; charset=utf-8" %
on top of a jsp page. In fact, it can not live with it.
It works without and even without specifying LANG
environment variable. So much about platform
idependency.

I really need to find a solution because I am using
win2000 on my development machine and deploying it
to solaris.

Any ideas?

thank you for your time,
Taavi







RE: autoreload of jsp files failed while working hard on a single jsp

2001-04-12 Thread cybermaster

Auto-reload works correctly for me only for files in the
applications/my-app/my-app-web directory. Files in subdirectories of
.../my-app-web, e.g. .../my-app-web/secure/*.jsp don't get automatically
reloaded ... so far couldn't find any deployment descriptor that would
change this behaviour.

--peter





RE: parsePostData

2001-04-12 Thread cybermaster

Maybe you can get what you want if you take a look at the File Upload Page
on www.orionsupport.com (at least when the site can be accessed - it's
great, but seems ot be too popular for it's own good, and can't be accessed
half of the time)

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Fyffe Carl
Sent: Thursday, April 12, 2001 6:22 AM
To: Orion-Interest
Subject: RE: parsePostData

Frank,

Did you figure this problem out?  I have been having the same problem and
hope you can shed some light on the subject.

Ernie,

Because it is nice to have all of the data in one variable that isn't a
request object.  Just my two cents.

Carl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Frank LaRosa
Sent: Monday, April 09, 2001 12:51 AM
To: Orion-Interest
Subject: parsePostData


I'm having some trouble parsing form data in a JSP page.

I'm using this code:

Hashtable ht = HttpUtils.parsePostData( request.getContentLength(),
request.getInputStream() );

The result is always a Hashtable with a size of zero, even though there
should be data in the form.

I posted the form with form method="POST" action="myPage.jsp". Can anyone
spot what I'm doing wrong? Thanks.







RE: JMS Temporary Topics, onMessage

2001-04-02 Thread cybermaster
Title: JMS Temporary Topics, onMessage









Hi Matt
 Colin,



It looks
like I will have to use JMS in an application Im working on. I am somewhat
bewildered at what version of
j2ee/orion/jms to use, and which broker/JMS provider. The orionsupport page
mentions OpenJMS, the Sun JMS docs j2eeadmin tool, and the WROX book mentions
the Progress SonicMQ JMS product. I am currently using Orion1.4.5, jdk1.3,
j2sdk1.2.1 (which does not contain e.g. the j2eeadmin tool). At this point, I
could upgrade to any more recent version without a problem (or so I hope).



Any
suggestions are greatly appreciated



 --peter



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Matt Simmerson
Sent: Monday, April 02, 2001 4:08
AM
To: Orion-Interest
Subject: RE: JMS Temporary Topics,
onMessage



I haven't tried yet, but I've submitted my
errors as bugs 384 and 385.

-Original Message-
From: colin harris
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:06
PM
To: Orion-Interest
Subject: Re: JMS Temporary Topics,
onMessage

hi,

i am using orion1.4.5 on windows 2000,
and have also noticed getJMSReplyTo() returning a null object, 



but also i can't create a subscriber to a
temporary topic, i get the javax.jms.InvalidDestinationException: Invalid
topic, i've submitted this as bug #371.



are you able to create a subscriber to
the temporary topic???



colin..



-
Original Message - 



From: Matt
Simmerson 



To: Orion-Interest 

Sent: Friday, March 30, 2001
9:58 AM

Subject: JMS
Temporary Topics, onMessage



Hi 

I need to set
the reply destination topic of a message. 

I created a
temporary topic (Topic tmp = session.createTemporaryTopic()) which did indeed
create a topic. 
I then created the message and then setJMSReplyTo(tmp), all
fine. When the message was received, the getJMSReplyTo() returns a null
object. Has anyone com across this before, know how to fix it etc.

Also, has
anyone else found that onMessage() does not get called automatically when you
set an object up as a message listener?

Cheers 

Matt 

Matt
Simmerson 
IT Consultant 
smart421 - Smart solutions for the 21st century 
 
http://www.smart421.com 
Wap Site: wap.smart421.com 
Tel: 01473 408720 
Fax: 01473 408753 
Mob: 07759 258083 
email: [EMAIL PROTECTED] 

Information
contained in this e-mail and any attachments is confidential 
and intended for the use of the addressee only.
Dissemination, 
distribution, copying or use of this communication without prior
permission 
of the addressee is strictly prohibited. If you have received this 
transmission in error, please advise the originator by reply
e-mail and 
delete it. Thank you. 










Multiple Sessions in multiple windows?

2001-04-02 Thread cybermaster

An application I am working on defines multiple roles, and communication
between users in these roles. There exist certain situations where a person
may want to access the application through more than one userID (e.g.
trader1 takes over trader2's clients while trader2 is on vacation etc.), or
has to act in usually mutually exclusive roles.

So this person opens more than one browser window and tries to log on as 2
(or n) different userIDs. Now we are getting into trouble - in general, the
session cookie is created per browser and not per window, causing the latest
session object to be used by all open windows into the application (and a
mess for the user). To quote Servlet2.2 spec:

7.7.3 Client Semantics
Due to the fact that cookies or SSL certificates are typically controlled by
the web browser process
and are not associated with any particular window of a the browser, requests
from all windows of a
client application to a servlet container might be part of the same session.
For maximum portability,
the Developer should always assume that all windows of a client are
participating in the same
session.

Is there a way to force a new session that is recognised as separate by the
browser window and the app, e.g. is

session = request.getSession(true) ;

when doing a new login in a different window doing the job? Do I have to
create a custom cookie and store all session related stuff in an object
referenced by this cookie?  Anybody struggled with /or solved this issue?

Thanks

--peter





RE: Localhost and IP Yield Different Pages

2001-04-01 Thread cybermaster









This has
been discussed before. In a browser window, select Tools-Internet
Options-General-Temporary Internet files-Settings



Choose Every
visit to the page 



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Bill Winspur
Sent: Sunday, April 01, 2001 2:14
PM
To: Orion-Interest
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: Paged search results

2001-03-28 Thread cybermaster

"application" is an instance of javax.servlet.ServletContext which is
available in JSPs; this object has application scope and therefore is a good
place to store objects [with:  application.setAttribute(name, object) ]
which you want to make available to servlets/JSPs throughout an application.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Chapman
Sent: Wednesday, March 28, 2001 2:39 AM
To: Orion-Interest
Subject: Re: Paged search results

Johan,

Please enlighten me - what is the application object that you refer to? Is
it just a single entity EJB that maintains common state - ie caches,
application settings etc? Is there some discussion of it anywhere as an
element of J2EE application design?

Thanks,
Andy

- Original Message -
From: "Johan Fredriksson" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 8:17 AM
Subject: Re: Paged search results


 My first thought is that a cache should not be stored in a session, since
 that would only be available in that session and "cannot" be shared...
 Better to store a searchresult in the application object ( if the result
is
 static and is the same for all users). If the searchresult is specific to
a
 certain user, then you could store it in a session.

 For multibrowser usage, there will be separate sessions for those. There
is
 probably a way to get them to use the same session, but I haven't tried
 this. In this case I suggest a hashtable in the application object and an
id
 string ( key in hashtable ) in the session.

 Hope this at least gives you a couple of ideas on how to get started.

 regards



 Johan






Deployment of principals.xml

2001-03-26 Thread cybermaster

Not a big deal, but I can't find a place from where principals.xml would be
deployed - I put it into applications/app, app/META-INF (where e.g.
application.xml resides, which *is* copied on deployment), app/app-web,
app/app-web/WEB-INF, but no go. Always need to replace the principals file
automatically created by Orions deployer in application-deployments/app

Maybe this is so on purpose - if not, I'd like to find out ...








RE: persistance - App Server level

2001-03-25 Thread cybermaster

It seems the granularity of re-use you describe is at the application or
web-application level. Obviously, such objects must exist internally to
Orion. There may be reasons why they are not public, but I certainly would
love to see something like HttpApplication or WebApplication or whatever it
may be called exposed in order to persist values while a web-app is running.

Just checked - yes there is a com.evermind.server.http.HttpApplication class
... but the class isn't in the API

I assume that resource-ref in web.xml can be used for this purpose at
WebApp level, but I have not tried it.

There may be other custom stuff to persist at the OrionServer level, too,
i.e. shared by all apps - orion.properties is the place to put them
according to http://www.orionsupport.com/articles/properties.html  -
com.evermind.server.ApplicationServer is the class, but how do I get the
props without an instance (or static method) - not in  the API either, but
maybe I am missing out on something obvious?

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker
Sent: Saturday, March 24, 2001 8:40 PM
To: Orion-Interest
Subject: persistance

I have this problem with session beans. I have certain objects which I want
to be persistant across all session beans. One approach is to use an entity
bean. But that's a little overkill. These are several xml files which I use
to setup some of the session beans properties, but they are not expected to
change.

Parsing the xml files each time a session is created is another approach.
But that gives me the *lag time* during the parsing, and slows down my
application.

Is there another alternative? Can I load a bean each time the server is
restarted, or when an event occurs (say, the *datetime* changes on the
file)?

Has anybody else faced this problem and solved it?

regards,

Elephantwalker






RE: com.evermind.server.rmi.RMIConnectionException: Object reference no longer valid (Disconnected)

2001-03-07 Thread cybermaster
Title: com.evermind.server.rmi.RMIConnectionException: Object reference no
longer valid (Disconnected)









Eyal,



I remember
something about a limitation on the size of strings you can pass through RMI;
if I recall correctly, sending a Vector will solve the problem.



 --peter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Eyal Litman (Kamoon IL)
Sent: Wednesday, March 07, 2001
2:27 AM
To: Orion-Interest
Subject:
com.evermind.server.rmi.RMIConnectionException: Object reference no longer
valid (Disconnected)



Hi, 

I'm getting this exception when trying to sent a 72k string from
my EJB(with orion) 
back to my client, using ORMI protocol (sun JDK 1.3, win 2000 and
also on linux): 
com.evermind.server.rmi.RMIConnectionException: Object reference
no longer valid (Disconnected) 
 at
com.evermind.server.rmi.a1.invoke(JAX) 
 at
__Proxy1.remove(Unknown Source) 
 at
kamoon.client.TestXmlTypesManager.main(TestXmlTypesManager.java:47) 

When i try to pass a smaller strings (i checked with 13k) it
worked ok. 
1. Does anybody had similar problems ? 
2. What is wrong ? 

Eyal Litman 
Server Side Team, Kamoon Ltd. 










RE: non-secure and secure site

2001-03-06 Thread cybermaster









Greg, all
can be in one app. You have to specify a security-constraint in
web.xml, best specified as a sub-directory e.g. /secure/*, where you put your
secure pages.



 --peter












RE: non-secure and secure site

2001-03-06 Thread cybermaster









Sorry, Greg, I was under the impression you were talking about
authentication/access security. To
set up https, look at the following (if you havent already done so):



http://www.orionserver.com/docs/#deploying



and follow the links there. Also, you might search for messages under
the title https problems and https second session problems by Geoff
Marshall, Jay Armstrong, Rafael Alvarez, and maybe others.



 --peter





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Greg Matthews
Sent: Tuesday, March 06, 2001 5:25
PM
To: Orion-Interest
Subject: Re: non-secure and secure
site



looking at the online documentation, it
seems (???) like this isn't really to do with SSL.



i gave it a try anyway and got the
windows dialog save or download appearing when i tried to open a
jsp in the /secure/ directory.



does this work? i.e. have to put pages in
the /secure/ directory, and when you try to open them it switches
to https ?



thanks,

greg.





-
Original Message - 



From: cybermaster




To: Orion-Interest 

Sent: Wednesday, March 07,
2001 1:14 AM

Subject: RE: non-secure
and secure site



Greg, all can be in one
app. You have to specify a security-constraint in web.xml, best
specified as a sub-directory e.g. /secure/*, where you put your secure pages.



 --peter














RE: Simple classpath prob

2001-03-05 Thread cybermaster

Did you set your source-directory in orion-web.xml?
Did you make sure your browser doesn't do any caching?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daryl Hall
Sent: Monday, March 05, 2001 4:47 AM
To: Orion-Interest
Subject: Simple classpath prob

Hi - pls someone help me before I go nuts!

I've written a servlet in development=true mode that implements an interface
class. How do I tell orion where to find this class?  The interface is in
the same package as the servlet and I've tried the following:

.





RE: Multiple CPUs

2001-02-28 Thread cybermaster

Is there an Orion option something like the -multiVM startup option in j2ee
RI ?

--peter





RE: Form based authentication problem

2001-02-28 Thread cybermaster









Post works
for me in my test code  what error do you get? --peter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Jonathan James
Sent: Tuesday, February 27, 2001
9:50 AM
To: Orion-Interest
Subject: Form based authentication
problem



I'm trying to get the Java Petstore 1.1.1
(the new one) working with Orion. I've read some previous posts and the docs
and everything is working except that on my login.jsp I have to use form
action=j_security_check method=GET instead of form
action=j_security_check method=POST as it is supposed to be.
This ends up putting the password in the URL. Why doesn't POST work with with
j_security_check?



Thanks



Jonathan








RE: Orion FORM based authentication Configuraton problem

2001-02-26 Thread cybermaster

I agree with Jeff the Servlet 2.2 Spec only specifies that an error page is
returned - so Orion's behaviour is up to spec. To allow continuation of the
login process from loginError page would be an add-on ... cerrtainly a
useful one, because it's more user friendly. But of course, it is Orion's
developers who call the shots.

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
Sent: Monday, February 26, 2001 8:06 AM
To: Orion-Interest
Subject: RE: Orion FORM based authentication Configuraton problem

If I'm reading the steps correctly, this behavior is actually fully
spec-compliant.  This is the reason I don't use FORM-based login.

j_security_check is only required to be valid immediately after an
attempt to visit a secured page.  There is no provision to be able to
re-enter credentials from the failure page, and the Orion implementation
doesn't allow it.  The user must hit the back button :-(

Also, Orion performs a forward() rather than a redirect() when a
successful login does occur.  Thus the ugly url in the user's browser.
I logged bug #126 against this issue but it was denied :-)

Jeff


 winmail.dat


RE: How do I map a .doc extension to a .jsp execution

2001-02-26 Thread cybermaster

Christian,

In your reponse object you have to set the MIME type (content type) to
"application/vnd.ms-word"

This might only work with MS Office 2000. You can find more (with some
digging) at msdn.microsoft.com

Peter





Orion FORM based authentication Configuraton problem

2001-02-25 Thread cybermaster

When I use % authentication (1.4.5, W2K Server, jdk1.3), I've got a couple
of problems:
(1) Basic setup is: /Home.jsp, link to /secure/loginDummy.jsp
(2) User tries to get to /secure/loginDummy.jsp - Orion redirects to
/login.jsp
(3) login correct works fine with /login.jsp - (browser shows
/secure/dummyLogin as URL)
(4a) browser displays /secure/loginDummy.jsp - OK, but: - (browser shows
/secure/j_security_check as URL)
BUT
(4b) if first login incorrect, Orion redirects to /loginError.jsp - (browser
shows /secure/j_security_check as URL)
(5a) error again, page stays at /loginError.jsp jsp - (browser shows
/secure/j_security_check as URL)
(5b) user enteres correct passwd - "ERROR 404 Not Found - Resource
/formAuth/secure/j_security_check not found on this server"
somehow Orion forgets the correct URL (it shouldn't show j_security_check in
the first place, I guess). The user is actually logged in, and can go to the
/secure/* pages at this time.
Peter Saurugger
Everest eCommerce
[EMAIL PROTECTED]






RE: Servlet Cache - How do I purge it

2001-02-25 Thread cybermaster

Paul, maybe this is the recurring problem in this discussion with browser
settings. E.g. in IE5.5 it may reload the cached page unless you set:

Tools|Internet Options|Temporary Internet Files|Settings|Check for ...

From the default ("Automatically") to: "Every visit to the page"
--peter