Re: https session-timeout problem

2002-04-11 Thread Jose Mena

I had the same problem and I fixed it putting shared=true in the web-app
line of the secure-web-site.xml config file.
- Original Message -
From: Orion Newsgroup @[EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 1:25 PM
Subject: https session-timeout problem


 Subject: https session-timeout problem
 From: Emil Birgersson [EMAIL PROTECTED]
  ===
 Hello!
 I have a strange problem. I use a couple of session variables (shopping
 cart, username) and I changed the session-timeout propertie to let's say
60
 minutes. This worked fine until I made my site secure, the session is
timing
 out after ten minutes or less, it seems like the session-timeout propertie
 has no effect at all after I added my SSL cert to the site. What can I
do,
 I really need to increase the session-timeout propertie. Thanks.

  /Emil








error-page tag in web-xml question

2002-04-10 Thread Jose Mena

Hi,
I'm trying to set an error page in one of my web applications. To do this i
have put this tag in the web.xml file:
error-page
error-code500/error-code
location/error.html/location
/error-page
to catch all the 500 errors and redirect the user to an error page. It works
when i put a plain html page but it doesn't when i put a jsp.
is it possible to get a jsp instead of an html file?
thanks.






[no subject]

2002-04-09 Thread Jose Mena

Hi,
I'm trying to set an error page in one of my web applications. To do this i
have put this tag in the web.xml file:
error-page
error-code500/error-code
location/error.html/location
/error-page
to catch all the 500 errors and redirect the user to an error page. It works
when i put a plain html page but it doesn't when i put a jsp.
is it possible to get a jsp instead of an html file?
thanks.





JSP comment tag.

2002-03-15 Thread Jose Mena

Hi, I have a problem when putting comments in JSP code. Orion doesn't
process the code inside a comment, but if i look at the sun's jsp
reference(http://java.sun.com/products/jsp/tags/11/syntaxref11.fm1.html) it
says that the server must process it when it's put inside a comment.
Here you are an example extracted from the browser's source code(Explorer):

!--
tr
td% if (modem) { % img src=../images/ok.gif % }else{ % img
src=../images/notok.gif % } %/td
  tdimg src=../../images/blank.gif width=8/td
tdfont face=verdana size=1bModem pitican + Tarjeta
Ethernet:/bfont/td
tdimg src=../../images/blank.gif width=8/td
tdfont face=verdana size=1b400.00 euro;/bfont/td
tdimg src=../../images/blank.gif width=8/td
% if (tipprod == 3) { %
td% if (maskwan) { % img src=../images/ok.gif % }else{ % img
src=../images/notok.gif % } %/td
tdimg src=../../images/blank.gif width=8/td
td font face=verdana size=1bMask WAN:/b/font/td
tdimg src=../../images/blank.gif width=8/td
td nowrapfont face=verdana size=1b40.08 euro;/bfont/td
% } else { %
td% if (inst_mod) { % img src=../images/ok.gif % }else{ % img
src=../images/notok.gif % } %/td
tdimg src=../../images/blank.gif width=8/td
tdfont face=verdana size=1bInstalación y configuración de
Modem:/b/font/td
tdimg src=../../images/blank.gif width=8/td
td nowrapfont face=verdana size=1b40.08 euro;/bfont/td
% } %
/tr

--

as you can see it shows my code to the end user's browser without processing
it.
Do you know if there is a setting that controls the comment processing
behaviour in orion?
Thank you.





shutdown problem

2002-02-27 Thread Jose Mena

Hi, i 'm having problems when shuting down my orion server. It's an orion
1.5.2 under debian linux(2.2.17 kernel version).
this is the command i launch to stop it:
$JAVARUN -jar admin.jar ormi://localhost/ admin OptiPlex -shutdown force
but sometimes it doesn't stop the server.
do you know another way to stop it?
thanks.





Re: Update container without redeploy?

2002-02-22 Thread Jose Mena

You can use jakarta's ant to make a project that builds an ear. whenever you
make a change it will be easy to build the entire ear and deploy it, just
with one command line.
- Original Message -
From: Phil Rice [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 12:30 PM
Subject: RE: Update container without redeploy?


 If you are developing, you don't need to use an EAR file: you can just
 reference a directory with the same structure. In that case you can change
 the JSP file, and orion will notice the change.

 Good luck:-) Phil Rice

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Carlos Roberto
 da Silva Junior
 Sent: 21 February 2002 18:28
 To: Orion-Interest
 Subject: Update container without redeploy?


 I´m using orion with JBuilder6. When I need modify a JSP, I need rebuild
my
 .ear e redeploy. It´s bad.

 Can I set up my container to update itself always I modify my JSP without
 need to rebuild and redeploy .EAR?

 Carlos Roberto da Silva Júnior
 Engenheiro de Software
 Ramal - 4631

 Qualiti Software Processes - CESAR
 Soluções para o processo de construção de software
 http://www.qualiti.com.br
 +55 81 3272.4700







problem with database connection

2002-01-31 Thread Jose Mena

Hi you all,
i have a question. I have an oracle data-source configured on a 1.5.2 orion
server. Here you are:
data-sources
data-source class=com.evermind.sql.DriverManagerDataSource
name=IMS
location=jdbc/IMSCoreDS
xa-location=jdbc/xa/IMSXADS
ejb-location=jdbc/IMSDS
schema=database-schemas/oracle.xml
connection-driver=oracle.jdbc.driver.OracleDriver
username=user
password=password
url=jdbc:oracle:thin:@10.3.1.6:port:SID
inactivity-timeout=30
/
/data-sources
It works fine. But the problem comes when i have a network problem to
connect to the data-base. Then orion isn't able to make a connection and
instead of giving up connecting after 3 attemps(as i read this is the
default value for the max-connect-attempts) it gets hanged up trying to
connect. is there any way to tell orion a connection timeout for oracle
connections?
Thank u.





Re: hot redeployment - how to preserve session state?

2002-01-30 Thread Jose Mena



Hi you all,
i have a question. I have an oracle data-source 
configured on a 1.5.2 orion server. Here you are:
data-sourcesdata-source 
class="com.evermind.sql.DriverManagerDataSource" 
name="IMS" 
location="jdbc/IMSCoreDS" 
xa-location="jdbc/xa/IMSXADS" 
ejb-location="jdbc/IMSDS" 
schema="database-schemas/oracle.xml" 
connection-driver="oracle.jdbc.driver.OracleDriver" 
username="user" 
password="password" 
url="jdbc:oracle:thin:@10.3.1.6:port:SID" 
inactivity-timeout="30" 
//data-sources
It works fine. But the problem comes when i have a 
network problem to connect to the data-base. Then orion isn't able to make a 
connection and instead of giving up connecting after 3 attemps(as i read this is 
the default value for the max-connect-attempts) itgetshanged up 
trying toconnect. is there any way to tell orion a connection 
timeoutfor oracle connections?
Thank u.
- Original Message - 
From: "Daniel López" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 1:10 
PM
Subject: Re: hot redeployment - how to preserve 
session state?
 Hi Peter, We use hot-deployment in production, to be able to 
update the  application without losing all the sessions. But you have to 
configure  Orion explicitly to keep the session state, as it is disabled 
by  default. On the other hand, we also us it during development, but if 
you  update the ear file very often, you usually ends up complaining 
with an  OutOfMemoryException or some sort of decompression problems. So 
it is  not very stable when used very often in a short period of time. 
That's  why we try no to hot-deploy the ears in production very often, 
as it  might cause a kaa-boum. I hope it helps, 
D.  Peter Beck wrote:   I tried to use the 
hot-deploy just for development to not always have to   restart 
Orion and log in.  To only have to restart the server when classes 
change which are stored   in the session would be better than on 
every little change during bug   fixing...   
 On this list I read about people using this, and the problem they were 
  talking about most of the time was that classes have to be 
serializable...  Now I tried that with a few objects in the session, 
and all of them were   lost after touching application.xml. 
   PeterAaron Tavistock 
wrote:I'm not currently doing hot-deploy, but 
I've always wonder how it could  posibly work given that a 
serialized class might have the underlying base  class changed 
during hot-deploy (e.g. the classic 'run instance' is  different 
than a 'new instance' problem that java throws a  
ClassCastException from). Its also theoretically problematic (I'm not 
  sure  if instanceof or reflection will work 
properly).   Since this is a very low-level 
issue (e.g. Java simply doesn't have the  facilities to really 
handle this), how does hot-deply work? The only  reliable 
strategy would appear to be to preserver primatives (since they  
don't change), maybe preserve 'well-defined' objects (java.util.* is 
 unlikely to change), and discard all the rest.  
 Any thoughts?  AT   
-Original Message-  From: Peter Beck 
[mailto:[EMAIL PROTECTED]]  Sent: Tuesday, January 29, 
2002 7:41 AM  To: Orion-Interest  Subject: hot 
redeployment - how to preserve session state?  
  After a forced redeployment of an application on Orion 
1.5.3 by   touching application.xml  my session 
state seemst to be completely lost.   I have set 
development=true in my global-web-application.xml, and the   
switch is present in the orion-web.xml in the application- deployment  
 directory.  The variables I try to serialize implement 
the Serializable interface.   Some of them are simple JavaBeans, 
others just Strings.   For testing I use a JSP 
which prints the variables in the session.   Before the 
redeployment everything is there.  and when a user is logged in, 
request.getRemoteUser() gives me the   correct user 
name.  After the redeployment session.toString() still gives me 
the same ID   as before, but all variables in the session are 
gone.  Even request.getRemoteUser() == null. 
  What am I missing?   
Peter   


Re: how does Orion finds classes ?

2001-12-19 Thread Jose Mena

Hi,
I'm using the default application with a jar and some war files. When i make
a deploy on the applications directory it doesn't it automaticaly. Instead
of it i got to restart the server(taking in account that the restart option
from admin.jar DOESN'T WORK).
What do i have to do to get it automaticaly deployed?
thank you all.
- Original Message -
From: The elephantwalker [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, December 19, 2001 9:12 AM
Subject: RE: how does Orion finds classes ?


 Each application has its own class loader...so these are used first, after
 these classes and jar's are searched, the parent class loader is used, and
 so on.

 Same with the unloading.

 So its not so wasteful.


 regards,

 the elephantwalker
 www.elephantwalker.com

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Yekesa Kosuru
 Sent: Tuesday, December 18, 2001 4:19 PM
 To: Orion-Interest
 Subject: how does Orion finds classes ?


 Hi,

 When a class needs to be loaded, how does Orion find
 the class ?.

 My guess is it goes through all the jars file it is
 configured with (manifest file, server.xml,
 application.xml etc). But then isn't this expensive,
 because for every single class, it has to go through
 all the jars it knows about.

 Another questions is, once loaded, when will jars be
 unloaded ?. The reason I am asking is if the server is
 configured with bunch of jars, but then a given app
 only needs few of them, if class finding ends up
 loading all the jars, then they are taking up memory
 (which is what I am seeing) for quite sometime until
 they get unloaded.

 Can someone shed some light on this. Please cc me on
 the reply.

 Thanks

 Vissu





 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for all of
 your unique holiday gifts! Buy at http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com







Re: deployment tool

2001-11-20 Thread Jose Mena

does orion support the new ejb 2.0 version?
- Original Message - 
From: DeVincentiis Giustino [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 8:50 AM
Subject: RE: deployment tool


 Hi,
 you can try Ant (http://jakarta.apache.org/ant/)
 
 Giustino
 
   -Original Message-
   From: kamsky@yahoo [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, November 20, 2001 6:54 AM
   To: Orion-Interest
   Subject: deployment tool
   
   
   Hi,
   
   Is there a deployment tool that is easier than j2sdkee1.3?
   What is it?
   
   Thanks
   
   
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com