How to read environment entry?

2007-06-27 Thread Bachler, Elisabeth \(Elisabeth\)
Hi,
I have an application and I need to specify a string (that will be
different in each site), so the header I am using in each jsp page will
be able to read it and show it. I could do it using web.xml but I
was wondering if it was possible to do it using, in the Tomcat server
tool (context (application) == Resources == Environment entries) to
add a new envt entry such headerApp... And read it in each jsp file ...
How?

Thanks
Elisabeth

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to read environment entry?

2007-06-27 Thread Bachler, Elisabeth \(Elisabeth\)
Thank you I will have a look at it.
 

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 27 de junio de 2007 12:44
To: Tomcat Users List
Subject: Re: How to read environment entry?

Read doc on environment entries in tomcat context documentation:

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

En l'instant précis du 27/06/07 12:28, Bachler, Elisabeth (Elisabeth) 
s'exprimait en ces termes:
 Hi,
 I have an application and I need to specify a string (that will be 
 different in each site), so the header I am using in each jsp page 
 will be able to read it and show it. I could do it using web.xml 
 but I was wondering if it was possible to do it using, in the Tomcat 
 server tool (context (application) == Resources == Environment 
 entries) to add a new envt entry such headerApp... And read it in each jsp 
 file ...
 How?

 Thanks
 Elisabeth

 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

   



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: I would like a new session each time I start my application

2007-06-04 Thread Bachler, Elisabeth \(Elisabeth\)
Hi,
Thanks for your quick answer When I say each time I run my application, I 
mean each time I start my application.
Let's say my application is : $TOMCAT_HOME/webapps/my_app/index.html 
Each time I execute: $TOMCAT_HOME/webapps/my_app/index.html, I would like a new 
sessionID to be generated.
You tell me to disable the session persistence in my app's context I 
suppose you mean the conf/server.xml, the conf/context.xml file?
I had a look at the server.xml file  And I have no Context tag?
The context.xml file does not have a docBase mentioned in the context tag.

What should I put in the docBase variable? docBase=$TOMCAT_HOME/webapps/my_app?

Thanks
Elisabeth


-Original Message-
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] 
Sent: sábado, 02 de junio de 2007 15:53
To: Tomcat Users List
Subject: Re: I would like a new session each time I start my application

On 6/1/07, Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED] wrote:
 Hi,
 I have an application that works under tomcat.
 Each time I run my application I have the same sessionID. Is there a 
 way

I guess you mean each time you (re)start Tomcat when you say Each time I run 
my application...

You might be seeing the same sessionID because the session persistence.

 to generate a differente sessionID each time I start my application?

Try disabling the session persistence in your app's Context.

Context docBase=... 

Manager className=org.apache.catalina.session.PersistentManager
saveOnRestart=false/

/Context


 Thanks

I don't know if the above will work in all versions of Tomcat, but it should 
work on Tomcat 5.5.x or higher. Next time please mention the version of Tomcat 
and other relevant details.

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: I would like a new session each time I start my application

2007-06-04 Thread Bachler, Elisabeth \(Elisabeth\)
The thing is that my application access a database. When the user wants
to modify the db, I lock the access to this particular action (and let
the user only view the data) using the sessionID.
Now, if the user is bad... He can log on once and get the modify
action... Then he can open a new screen and modify things again... Which
is not what I need. Everytime a new screen is open to execute the
application I need a different sessionID. Do you see what my problem is
? I don't know another way of doing it.
 

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
Sent: lunes, 04 de junio de 2007 11:07
To: Tomcat Users List
Subject: Re: I would like a new session each time I start my application

Liz, please tell us what you actually doing and why you need this?
I think there is a conceptual problem...

- Original Message -
From: Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, June 01, 2007 6:57 PM
Subject: I would like a new session each time I start my application


Hi,
I have an application that works under tomcat.
Each time I run my application I have the same sessionID. Is there a way
to generate a differente sessionID each time I start my application?

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: I would like a new session each time I start my application

2007-06-04 Thread Bachler, Elisabeth \(Elisabeth\)
Thanks for your response Are you saying that everytime the
index.html is executed, I should generate a random number and send it to
the other files. Then compare it with the one I have in the stack ?
 

Elisabeth


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: lunes, 04 de junio de 2007 14:10
To: Tomcat Users List
Subject: Re: I would like a new session each time I start my application

As an alternative, you could incorporate one time tokens.  Generate on
every page request, stored in both session and request parameters and
compare on every submission.  If they go out of sync (ie and old one
shows up) you know they spawned a new window.  In that case the old
window should be considered abandon.  Post a polite error message and
otherwise ignore the request.

The tokens don't have to be complex -- a simple 16 bit random number
should be more than sufficient.  You could build it as a filter to help
validate the request before it get's to your action code.

--David

Johnny Kewl wrote:

 Cant say I do understand...
 Session ID's are almost untouchables... they used by too many things, 
 authentication, SSO, load balancing, and I'm worried that when the 
 user does something as simple as a right click and opens a new page, 
 the app breaks.

 I'm not sure what you saying but I would rather go for something like 
 change credits.
 So, user does something that allows them one change... you store that 
 in session ID, as an attribute, something like, 
 setAttribute(ChangeCredit, 1); Now they can open 20 pages but on 
 page 5 they make the change
 the attribute is set back to 0;
 None of the other pages will allow it something like that.

 All I think that is happening is you trying to store state in the 
 browser page, instead of the Session. ie you give them page, they 
 change, you present them with page that is one state further on... ie 
 thank you for change, cant change anymore, but user just has to open 
 new page and they back to the beginning.
 But if you store the state in the session that wont happen.
 Irony is I think you actually need that Session.

 Good Luck

 - Original Message - From: Bachler, Elisabeth (Elisabeth) 
 [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, June 04, 2007 12:32 PM
 Subject: RE: I would like a new session each time I start my 
 application


 The thing is that my application access a database. When the user 
 wants to modify the db, I lock the access to this particular action 
 (and let the user only view the data) using the sessionID.
 Now, if the user is bad... He can log on once and get the modify 
 action... Then he can open a new screen and modify things again... 
 Which is not what I need. Everytime a new screen is open to execute 
 the application I need a different sessionID. Do you see what my 
 problem is ? I don't know another way of doing it.


 -Original Message-
 From: Johnny Kewl [mailto:[EMAIL PROTECTED]
 Sent: lunes, 04 de junio de 2007 11:07
 To: Tomcat Users List
 Subject: Re: I would like a new session each time I start my 
 application

 Liz, please tell us what you actually doing and why you need this?
 I think there is a conceptual problem...

 - Original Message -
 From: Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Friday, June 01, 2007 6:57 PM
 Subject: I would like a new session each time I start my application


 Hi,
 I have an application that works under tomcat.
 Each time I run my application I have the same sessionID. Is there a 
 way to generate a differente sessionID each time I start my
application?

 Thanks

 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e

RE: I would like a new session each time I start my application

2007-06-04 Thread Bachler, Elisabeth \(Elisabeth\)
Thank you so much!
 

-Original Message-
From: kempo bob [mailto:[EMAIL PROTECTED] 
Sent: lunes, 04 de junio de 2007 16:40
To: users@tomcat.apache.org
Subject: RE: I would like a new session each time I start my application


Elisabeth,

1) To see what the context tag looks like, see the server-example.xml file that 
ships with the Tomcat distribution. You're probably running under a minimal 
configuration that lets most items default.
2) That being said, I don't think its going to fix your problem to turn off 
session persistence. Even if you turn persistence off, you're not going to get 
a new session every time a user goes to index.html. Once a session is created, 
it remains in effect until it expires as a result of a configured 
inactivity-timeout or as a result of being deliberately invalidated by servlet 
code. You could use HttpSession.invalidate() to force it to expire, but I agree 
with Johnny and David - this really doesn't sound like a good way to accomplish 
the goal. I'd use one of the methods they described.

Bobby


celia05es wrote:
 
 Hi,
 Thanks for your quick answer When I say each time I run my 
 application, I mean each time I start my application.
 Let's say my application is : $TOMCAT_HOME/webapps/my_app/index.html
 Each time I execute: $TOMCAT_HOME/webapps/my_app/index.html, I would 
 like a new sessionID to be generated.
 You tell me to disable the session persistence in my app's context 
 I suppose you mean the conf/server.xml, the conf/context.xml file?
 I had a look at the server.xml file  And I have no Context tag?
 The context.xml file does not have a docBase mentioned in the context tag.
 
 What should I put in the docBase variable?
 docBase=$TOMCAT_HOME/webapps/my_app?
 
 Thanks
 Elisabeth
 
 
 -Original Message-
 From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
 Sent: sábado, 02 de junio de 2007 15:53
 To: Tomcat Users List
 Subject: Re: I would like a new session each time I start my 
 application
 
 On 6/1/07, Bachler, Elisabeth (Elisabeth) 
 [EMAIL PROTECTED]
 wrote:
 Hi,
 I have an application that works under tomcat.
 Each time I run my application I have the same sessionID. Is there a 
 way
 
 I guess you mean each time you (re)start Tomcat when you say Each 
 time I run my application...
 
 You might be seeing the same sessionID because the session persistence.
 
 to generate a differente sessionID each time I start my application?
 
 Try disabling the session persistence in your app's Context.
 
 Context docBase=... 
 
 Manager className=org.apache.catalina.session.PersistentManager
 saveOnRestart=false/
 
 /Context
 
 
 Thanks
 
 I don't know if the above will work in all versions of Tomcat, but it 
 should work on Tomcat 5.5.x or higher. Next time please mention the 
 version of Tomcat and other relevant details.
 
 -Rashmi
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context: 
http://www.nabble.com/I-would-like-a-new-session-each-time-I-start-my-application-tf3853422.html#a10951048
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I would like a new session each time I start my application

2007-06-01 Thread Bachler, Elisabeth \(Elisabeth\)
Hi,
I have an application that works under tomcat.
Each time I run my application I have the same sessionID. Is there a way
to generate a differente sessionID each time I start my application?

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to modify the log4j log filename during runtime?

2007-01-19 Thread Bachler, Elisabeth \(Elisabeth\)
Thank you.
Elisabeth
 

-Original Message-
From: Noah White [mailto:[EMAIL PROTECTED] 
Sent: jueves, 18 de enero de 2007 17:53
To: Tomcat Users List
Subject: Re: How to modify the log4j log filename during runtime?

 First off this is a log4j question not a Tomcat question and should be
directed to the log4j list. You should begin by looking at the log4j
java docs. Log4j can be completely (re)configured pragmatically with its
APIs which is what you are trying to do. See
org.apache.log4j.PropertyConfigurator.

-Noah

On 1/18/07, Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED]
wrote:


 Hello,
 I have an application that uses log4j.
 In the application, I would like the user to choose the log file 
 directory and the logfile name (using fileChooser).
 Now, how can I pass this information to log4j so it uses this filename

 as logfile?

 For the moment, I use as default: C:\App\log.html

 Here is the log4j.properties file I am using:
 ===
 log4j.rootLogger=debug, R

 log4j.appender.R=org.apache.log4j.RollingFileAppender
 log4j.appender.R.File=C:\App\log.html
 log4j.appender.R.MaxFileSize=10MB
 log4j.appender.R.MaxBackupIndex=10

 log4j.appender.R.layout=org.apache.log4j.PatternLayout

 log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  
 %-5p (%C:%M:%
 L) - %m%n
 =
 Thanks



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to parameter the logfilename with log4j?

2007-01-18 Thread Bachler, Elisabeth \(Elisabeth\)
I am really sorry about that. I didn't know it. It won't happen again.
Should I start a new thread with the question i asked?

 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: jueves, 18 de enero de 2007 1:30
To: Tomcat Users List
Subject: Re: How to parameter the logfilename with log4j?

When starting a new thread (ie sending a message to the list about a new
topic) please do not reply to an existing message and change the subject
line. To many of the list archiving services and mail clients used by
list subscribers this  makes your new message appear as part of the old
thread. This makes it harder for other users to find relevant
information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned upon
on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically ignore
any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to modify the log4j log filename during runtime?

2007-01-18 Thread Bachler, Elisabeth \(Elisabeth\)
 
Hello,
I have an application that uses log4j.
In the application, I would like the user to choose the log file directory and 
the logfile name (using fileChooser).
Now, how can I pass this information to log4j so it uses this filename as 
logfile?

For the moment, I use as default: C:\App\log.html

Here is the log4j.properties file I am using:
===
log4j.rootLogger=debug, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:\App\log.html
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  %-5p (%C:%M:%
L) - %m%n
=
Thanks
 


-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: miércoles, 17 de enero de 2007 11:24
To: Tomcat Users List
Subject: Re: HTTP response code 200 - in access log

Andreas Deller wrote:
 Hi
 
 A typical entry looks like this:
 192.168.11.11 - - [05/Jan/2007:11:23:59 +0100] GET 
 /ebanking/css/custom.css HTTP/1.1 200 - 
 https://some.bank.ch/ebanking/login; Mozilla/4.0 (compatible; MSIE 
 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
 
 This results in the client getting back a 200, but no contents for 
 that specific request.
 With 'static files' I mean that this only happens when the client 
 requests a static file like JPG or CSS. If it calls a servlet, that 
 response is always returned correctly; just the embedded static files 
 sporadically show this '200 -' problem.

The 200 status code simply means that the server thinks the file is correctly 
delivered.  (All HTTP requests, regardless of success or failure have a numeric 
status code associated with the result. You should not have any custom error 
pages configured for this code.)

What is your setup? Tomcat alone, or Tomcat + Apache HTTPD?

Can you request the CSS or image independently of the servlet in which it is 
referenced?

Have you sanity checked all of the files to make sure they're where you expect 
them to be?


 Regards
 Andy
 
 Pid wrote:
 Andreas Deller wrote:
 Hi

 I posted this unsuccessfully a week ago under 'Tomcat 4.1.30/5.0.28 
 empty responses - return code 200 -', so I rephrase and shorten my 
 question.

 OS: Solaris  Debian, Tomcat version 4.1.30 and 5.0.28.

 In the access logs, there are a number of entries with the HTTP 
 status code 200 -. So the client never sees the contents of these 
 files, resulting in incorrect layout (the problem just turns up with 
 static files).

 I've tried the Tomcat doc, Google, FAQ, mailing lists to no avail.
 What am I doing wrong?

 Thanks
 Andy Deller

 Can't see your original message in the list i'm afraid.

 I don't understand your question either - you're saying that you see 
 a 200 in the logs, the server returns a static file (do you mean an 
 empty file?).

 Can you, perhaps, explain in more detail?


 p


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to parameter the logfilename with log4j?

2007-01-17 Thread Bachler, Elisabeth \(Elisabeth\)
Hello,
I have an application that uses log4j.
In the application, I would like the user to choose the log file directory and 
the logfile name (using fileChooser).
Now, how can I pass this information to log4j so it uses this filename as 
logfile?
For the moment, I use as default: C:\App\log.html

Here is the log4j.properties file I am using:
===
log4j.rootLogger=debug, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:\App\log.html
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  %-5p (%C:%M:%
L) - %m%n
=
Thanks
 


-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 17 de enero de 2007 11:24
To: Tomcat Users List
Subject: Re: HTTP response code 200 - in access log

Andreas Deller wrote:
 Hi
 
 A typical entry looks like this:
 192.168.11.11 - - [05/Jan/2007:11:23:59 +0100] GET 
 /ebanking/css/custom.css HTTP/1.1 200 - 
 https://some.bank.ch/ebanking/login; Mozilla/4.0 (compatible; MSIE 
 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
 
 This results in the client getting back a 200, but no contents for 
 that specific request.
 With 'static files' I mean that this only happens when the client 
 requests a static file like JPG or CSS. If it calls a servlet, that 
 response is always returned correctly; just the embedded static files 
 sporadically show this '200 -' problem.

The 200 status code simply means that the server thinks the file is correctly 
delivered.  (All HTTP requests, regardless of success or failure have a numeric 
status code associated with the result. You should not have any custom error 
pages configured for this code.)

What is your setup? Tomcat alone, or Tomcat + Apache HTTPD?

Can you request the CSS or image independently of the servlet in which it is 
referenced?

Have you sanity checked all of the files to make sure they're where you expect 
them to be?


 Regards
 Andy
 
 Pid wrote:
 Andreas Deller wrote:
 Hi

 I posted this unsuccessfully a week ago under
 'Tomcat 4.1.30/5.0.28 empty responses - return code 200 -',
 so I rephrase and shorten my question.

 OS: Solaris  Debian, Tomcat version 4.1.30 and 5.0.28.

 In the access logs, there are a number of entries with the HTTP
 status code 200 -. So the client never sees the contents of
 these files, resulting in incorrect layout (the problem just
 turns up with static files).

 I've tried the Tomcat doc, Google, FAQ, mailing lists to no avail.
 What am I doing wrong?

 Thanks
 Andy Deller

 Can't see your original message in the list i'm afraid.

 I don't understand your question either - you're saying that you see a 
 200 in the logs, the server returns a static file (do you mean an 
 empty file?).

 Can you, perhaps, explain in more detail?


 p


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to parameter the logfilename with log4j?

2007-01-17 Thread Bachler, Elisabeth \(Elisabeth\)
Actually, what I want to do is being able to modify the logfilename during 
runtime.
 

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 17 de enero de 2007 11:40
To: Tomcat Users List
Subject: How to parameter the logfilename with log4j?

Hello,
I have an application that uses log4j.
In the application, I would like the user to choose the log file directory and 
the logfile name (using fileChooser).
Now, how can I pass this information to log4j so it uses this filename as 
logfile?
For the moment, I use as default: C:\App\log.html

Here is the log4j.properties file I am using:
===
log4j.rootLogger=debug, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:\App\log.html
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  %-5p (%C:%M:%
L) - %m%n
=
Thanks
 


-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: miércoles, 17 de enero de 2007 11:24
To: Tomcat Users List
Subject: Re: HTTP response code 200 - in access log

Andreas Deller wrote:
 Hi
 
 A typical entry looks like this:
 192.168.11.11 - - [05/Jan/2007:11:23:59 +0100] GET 
 /ebanking/css/custom.css HTTP/1.1 200 - 
 https://some.bank.ch/ebanking/login; Mozilla/4.0 (compatible; MSIE 
 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
 
 This results in the client getting back a 200, but no contents for 
 that specific request.
 With 'static files' I mean that this only happens when the client 
 requests a static file like JPG or CSS. If it calls a servlet, that 
 response is always returned correctly; just the embedded static files 
 sporadically show this '200 -' problem.

The 200 status code simply means that the server thinks the file is correctly 
delivered.  (All HTTP requests, regardless of success or failure have a numeric 
status code associated with the result. You should not have any custom error 
pages configured for this code.)

What is your setup? Tomcat alone, or Tomcat + Apache HTTPD?

Can you request the CSS or image independently of the servlet in which it is 
referenced?

Have you sanity checked all of the files to make sure they're where you expect 
them to be?


 Regards
 Andy
 
 Pid wrote:
 Andreas Deller wrote:
 Hi

 I posted this unsuccessfully a week ago under 'Tomcat 4.1.30/5.0.28 
 empty responses - return code 200 -', so I rephrase and shorten my 
 question.

 OS: Solaris  Debian, Tomcat version 4.1.30 and 5.0.28.

 In the access logs, there are a number of entries with the HTTP 
 status code 200 -. So the client never sees the contents of these 
 files, resulting in incorrect layout (the problem just turns up with 
 static files).

 I've tried the Tomcat doc, Google, FAQ, mailing lists to no avail.
 What am I doing wrong?

 Thanks
 Andy Deller

 Can't see your original message in the list i'm afraid.

 I don't understand your question either - you're saying that you see 
 a 200 in the logs, the server returns a static file (do you mean an 
 empty file?).

 Can you, perhaps, explain in more detail?


 p


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Several instancias of Tomcat on a same machine

2006-12-20 Thread Bachler, Elisabeth \(Elisabeth\)
 
 Hello,
I have never done that before and I am affraid of making a mistake so
please help me with this.
I would like to download tomcat (5 times). I need 5 instances of tomcat
on the same machine (tomcat1, tomcat2, etc).
What do I have to configure in order to work I seem to remember I
need to modify the port but I cannot remember where!

Thanks
Elisabeth

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Several instancias of Tomcat on a same machine

2006-12-20 Thread Bachler, Elisabeth \(Elisabeth\)

Thanks for your quick answer. 
I want to run the 5 instances of tomcat  on Solaris. 
Let's have a look at the server.xml and let's make sure I have understood 
correctly what needs to be done:

Server port=8004

Connector acceptCount=100 connectionTimeout=2 
disableUploadTimeout=true port=8081 redirectPort=8443
/Connector
Connector port=8009 protocol=AJP/1.3 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
redirectPort=8443
/Connector
.
- The shutdown port (in this case ... 8004) has to be unique... 
   ===  I can start with 8001 - 8002 ... Till 8005
- The http connector port (in this case  8081) has to be unique... == I 
can start with 8080 - 8081 - ... Till 8084

 === What about the redirectPort??? Should it change?  =

 - The ajp connector (in this case  8009) has to be unique ..
   == I can start with 8009 -8010  till 8013 

 == Do I need to modify other procedures? ==

Thanks
Elisabeth


-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 20 de diciembre de 2006 17:49
To: Tomcat Users List
Subject: RE: Several instancias of Tomcat on a same machine

 From: Bachler, Elisabeth (Elisabeth)
 [mailto:[EMAIL PROTECTED]
 I would like to download tomcat (5 times).

You'll only need to download it once.

Are you wanting to run this on Windows or Linux, and do you want to start the 
instances as daemons/services or from the command line?

 I need 5 instances of tomcat
 on the same machine (tomcat1, tomcat2, etc).
 What do I have to configure in order to work I seem to remember I 
 need to modify the port but I cannot remember where!

The simple way:

- Get one Tomcat installed and working.

- Copy the installation.  Just once for now.

- Edit conf/server.xml.  Change the shutdown port (that's the one most people 
forget) and the port in any Connectors that aren't commented out.

- Start this second installation using its startup.{bat,sh} and check it works.

- Now repeat the process for the other 3 now that you're sure what you want to 
change!

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Several instancias of Tomcat on a same machine

2006-12-20 Thread Bachler, Elisabeth \(Elisabeth\)
I must admit that I don't know what AJP is ... So I guess I am not using it. No 
need to change it right?
Thank you so much!
 

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 20 de diciembre de 2006 18:22
To: Tomcat Users List
Subject: RE: Several instancias of Tomcat on a same machine

 From: Bachler, Elisabeth (Elisabeth)
 - The shutdown port (in this case ... 8004) has to be unique... 
===  I can start with 8001 - 8002 ... Till 8005

Yes.

 - The http connector port (in this case  8081) has to be unique... 
 == I can start with 8080 - 8081 - ... Till 8084

Yes.

  === What about the redirectPort??? Should it change?  =

Only if you're using https: - in which case you should be changing the https 
ports as well.

  - The ajp connector (in this case  8009) has to be unique ..
== I can start with 8009 -8010  till 8013

Only true if you're using AJP - i.e. front-ending with Apache.  Are you?
If so, are you using it exclusively (in which case you can knock out the http 
connector)?

  == Do I need to modify other procedures? ==

Not that I'm aware of.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Several instancias of Tomcat on a same machine

2006-12-20 Thread Bachler, Elisabeth \(Elisabeth\)
Thanks!
Elisabeth
 

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 20 de diciembre de 2006 18:26
To: Tomcat Users List
Subject: RE: Several instancias of Tomcat on a same machine

 From: Peter Crowther
   - The ajp connector (in this case  8009) has to be unique ..
 == I can start with 8009 -8010  till 8013
 
 Only true if you're using AJP - i.e. front-ending with Apache.  Are 
 you?
 If so, are you using it exclusively (in which case you can knock out 
 the http connector)?

That could have been misinterpreted.  If you're not using AJP, comment the 
connector or change the ports as you suggest.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A way to know if file download has ended

2006-06-06 Thread Bachler, Elisabeth (Elisabeth)
THanks for your answer... I will keep all you said in mind. You are
certainly right.

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: lunes, 05 de junio de 2006 17:08
To: Tomcat Users List
Subject: Re: A way to know if file download has ended


--- Darryl Miles [EMAIL PROTECTED]
wrote:

 Bachler, Elisabeth (Elisabeth) wrote:
  Thank you to everyone. I will investigate further.
  Elisabeth
 
 Maybe this thread is related (excuse the horid
 apache web interface) :
 

http://mail-archives.apache.org/mod_mbox/tomcat-users/200604.mbox/%3c444FA1E
[EMAIL PROTECTED]
 
 
 Darryl
 
Just remember there are so many other issues.  I say
that not to be pessimistic, but to be realistic to
maybe keep you from spending too much time on it.  For
instance, when you download a file using Firefox,
firefox will be downloading the bytes from the server
even while you are deciding to cancel or save and will
be storing this information into another buffer.  This
is why when you finally hit save if the box has been
up a while you'll notice a jump in the downloaded
bytes then the status of the download speed jumps back
down to the real value.  I mention that because I
don't know how much you are wanting to rely on
successfully downloaded which you mentioned in your
first email.  The user might hit cancel even after the
file has technically been successfully downloaded even
if only to temp space they can't retrieve in any easy
manner.  

There is also the issue of HTTP proxies and caching
and read ahead, all of these things affect HTTP and
the ability to be able to tell what actually happened
at the byte level between the client and server. 
Also, even if the user closes the browser ... you can
still write to the servlet API output with no error
being raised.  This is also true in Microsoft ISAPI
dlls.  I don't even think if you got at the low level
where the server is if you could reliably do this
because of the proxies and caches I talked about. 
Your proxies and caches and even the users may not be
the only ones in the pipeline, so you always have to
keep that in mind.  

We had an issue one time where bytes were getting cut
out of an https connection, but not an http
connection, and later we found an ISP in between us
and a client had some software in between that was
dropping bytes out of https when too much information
passed through and we finally figured that out and
they fixed it, but not just the fact that they didn't
pass the information back wouldn't affect you, but
also the fact that the software in between could be
reading more bytes than you request at a time to help
speed up users of the ISPs connections over HTTP and
keep doing this even when the TCP connection is
severed.

Wade

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A way to know if file download has ended

2006-06-05 Thread Bachler, Elisabeth (Elisabeth)
Thank you to everyone. I will investigate further.
Elisabeth


-Original Message-
From: Nicolas Schwartz [mailto:[EMAIL PROTECTED]
Sent: lunes, 05 de junio de 2006 10:48
To: Tomcat Users List
Subject: Re: A way to know if file download has ended



 This is one of those issues that just can't be solved
 with simple HTTP and HTML.  There isn't a response
 sent to the server to tell it every single download
 was successful (or at least not sent back to the web
 application ... TCP makes sure the last bytes get to
 the other side successfully or an error occurs, but
 the applications on the server side can't tell this or
 at least I don't know how).  Then to make the
 situation more difficult there is no defined event for
 tying into the HTTP process for when a certain
 download has occurred successfully.  So, one has to
 use a download manager of some kind to more easily
 manage things like this.  This could be a signed java
 applet or shockwave file or a COM object (not cross
 platform so I wouldn't recommend that, but you might
 think it's ok if you force IE and windows).  One could
 more easily tell if an upload had finished because you
 at least have a defined form element you can access
 through DOM, get the name, and then monitor the upload
 progress.
 
 Wade
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Hi,

I agree with Wade about not knowing in Tomcat whether download succeeded or
not.
I tried many code and discussed about it in the forum and came to the
conclusion it is not possible.
(subject was Last Byte Detection, conclusion was: HTTP is not the good
level to detect that.)

Good luck,
Nicolas

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A way to know if file download has ended

2006-06-05 Thread Bachler, Elisabeth (Elisabeth)
Thanks
Elisabeth


-Original Message-
From: Darryl Miles [mailto:[EMAIL PROTECTED]
Sent: lunes, 05 de junio de 2006 13:07
To: Tomcat Users List
Subject: Re: A way to know if file download has ended


Bachler, Elisabeth (Elisabeth) wrote:
 Thank you to everyone. I will investigate further.
 Elisabeth

Maybe this thread is related (excuse the horid apache web interface) :

http://mail-archives.apache.org/mod_mbox/tomcat-users/200604.mbox/%3c444FA1E
[EMAIL PROTECTED]


Darryl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A way to know if file download has ended

2006-06-02 Thread Bachler, Elisabeth (Elisabeth)
Hello,

I have an application that uses tomcat 5.0.19. At one point in my
application, the user has the possibility to click on a certain link in
order to download a file.
Once the file is downloaded, I would like the application to go to a certain
jsp page is there a way to configure tomcat to do such a thing? I mean,
to redirect to a page only if the download has been successfully ended?

Thanks



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Log4J output to SYSLOG

2006-02-06 Thread Bachler, Elisabeth (Elisabeth)
It looks more or less like mine.
My properties file is:
log4j.rootLogger=debug, SYSLOG

log4j.logger.lucent.com.bean.UtilBean=DEBUG,SYSLOG


log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.syslogHost=localhost
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  %-5p
(%C
:%M:%L) - %m%n
log4j.appender.SYSLOG.Facility=LOCAL1

Hope it helps
Elisabeth

-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent: lunes, 06 de febrero de 2006 16:06
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Log4J output to SYSLOG


Bachler, Elisabeth (Elisabeth) wrote:
 I have modified the log4j.properties file  to send the output to SYSLOG
and
 I think it is working
 Thank you for your help

Could you explain how it was that you accomplished this?

I'm trying to do much the same thing with Tomcat 5.0.30.

So far I have:

1.  commons-logging.jar and log4j.jar are in the classpath and found by 
tomcat (CATALINA_HOME/bin)

2. Written (borrowed mostly) a script to start Tomcat via jsvc as user 
tomcat.

3. Configured log4j.properties file and placed in 
CATALINA_HOME/common/classes

log4j.rootLogger=INFO, A1
log4j.appender.A1=org.apache.log4j.net.SyslogAppender
log4j.appender.A1.SyslogHost=127.0.0.1
log4j.appender.A1.facility=LOCAL7
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n

It does not seem to be sending anything to syslog

Thanks,
-Mark






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log4J output to SYSLOG

2006-01-24 Thread Bachler, Elisabeth (Elisabeth)
Hello,
I am using Apache Tomcat Version 5.5.12. I  have designed a web
application. I am using log4j to output messages in a log. But now, I would
like to output the log4j message to the SYSLOG. 
What should I do?
THanks


The log4j.properties file is as follows:

log4j.rootLogger=debug, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  %-5p
(%C:%M:%L) - %m%n

log4j.logger.lucent.com.bean.UtilBean=DEBUG,R


-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Log4J output to SYSLOG

2006-01-24 Thread Bachler, Elisabeth (Elisabeth)
I have modified the log4j.properties file  to send the output to SYSLOG and
I think it is working
Thank you for your help


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 24 de enero de 2006 16:28
To: 'Tomcat Users List'
Subject: RE: Log4J output to SYSLOG


I am sorry I am a newbee in this sort of thing. I looked at the html
file but I still don't really know where/how I am supposed to put the
SyslogAppender. I don't want to change (if I can) the source files I would
only like to modify the log4j.properties file COuld you be so kind to
tell me how? Is it enough if I substitute the RollingFileAppender by
SyslogAppender?... I guess not!


-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: martes, 24 de enero de 2006 16:14
To: 'Tomcat Users List'
Subject: RE: Log4J output to SYSLOG


http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender
.html 

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 24, 2006 10:04 AM
To: 'Tomcat Users List'
Subject: Log4J output to SYSLOG

Hello,
I am using Apache Tomcat Version 5.5.12. I  have designed a web
application. I am using log4j to output messages in a log. But now, I would
like to output the log4j message to the SYSLOG. 
What should I do?
THanks


The log4j.properties file is as follows:

log4j.rootLogger=debug, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss}  %-5p
(%C:%M:%L) - %m%n

log4j.logger.lucent.com.bean.UtilBean=DEBUG,R


-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Until which Apache-Tomcat version can I use the JVM 1.4.2_10?

2005-11-30 Thread Bachler, Elisabeth (Elisabeth)
Hello again,

I need to use the JVM 1.4.2_10 (I think the name is correct)... I am using
at the moment Apache-Tomcat 5.5.9. Can I use this Tomcat version with the
JVM 1.4.2_10?

SO my question is: Until which version can I use the JVM 1.4.2_10?

THank you
ELisabeth

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Vedr.: Until which Apache-Tomcat version can I use the JVM 1. 4.2_10?

2005-11-30 Thread Bachler, Elisabeth (Elisabeth)
Thanks
Elisabeth

-Original Message-
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED]
Sent: miercoles, 30 de noviembre de 2005 11:34
To: Tomcat Users List
Subject: Vedr.: Until which Apache-Tomcat version can I use the JVM
1.4.2_10?


Any version of Tomcat will do - just download the JDK 1.4 Compability 
Package from http://tomcat.apache.org/download-55.cgi

/Thomas







Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED]
30-11-2005 09:48
Besvar venligst til Tomcat Users List

 
Til:'Tomcat Users List' users@tomcat.apache.org
cc: 
Vedr.:  Until which Apache-Tomcat version can I use the JVM
1.4.2_10?



Hello again,

I need to use the JVM 1.4.2_10 (I think the name is correct)... I am using
at the moment Apache-Tomcat 5.5.9. Can I use this Tomcat version with the
JVM 1.4.2_10?

SO my question is: Until which version can I use the JVM 1.4.2_10?

THank you
ELisabeth

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information.
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst
informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi
dig slette e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er
fri for virus og andre fejl, som kan paavirke computeren eller it-systemet,
hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi
paatager os ikke noget ansvar for tab og skade, som er opstaaet i
forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you
have received this message by mistake, please inform the sender of the
mistake by sending a reply, then delete the message from your system without
making, distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from
viruses and other errors that might affect the computer or IT system where
it is received and read, the recipient opens the message at his or her own
risk. We assume no responsibility for any loss or damage arising from the
receipt or use of this message.
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Until which Apache-Tomcat version can I use the JVM 1.4.2_10?

2005-11-30 Thread Bachler, Elisabeth (Elisabeth)
SOrry for the certainly stupid question but what is the core distribution?

Elisabeth


-Original Message-
From: Markus Schönhaber [mailto:[EMAIL PROTECTED]
Sent: miércoles, 30 de noviembre de 2005 12:08
To: Tomcat Users List
Subject: Re: Until which Apache-Tomcat version can I use the JVM
1.4.2_10?


Bachler, Elisabeth (Elisabeth) wrote:
 I need to use the JVM 1.4.2_10 (I think the name is correct)... I am using
 at the moment Apache-Tomcat 5.5.9. Can I use this Tomcat version with the
 JVM 1.4.2_10?

Yes, but besides the core distibution, you'll need the JDK 1.4 Compatability

Package.

 SO my question is: Until which version can I use the JVM 1.4.2_10?

Until the latest and greatest. As stated above, you'll need the JDK 1.4 
Compatability Package to make Tomcat 5.5.x work with JDK 1.4.

Regards
  mks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Until which Apache-Tomcat version can I use the JVM 1.4.2_10?

2005-11-30 Thread Bachler, Elisabeth (Elisabeth)
 Thank you very much


-Original Message-
From: Markus Schönhaber [mailto:[EMAIL PROTECTED]
Sent: miércoles, 30 de noviembre de 2005 12:19
To: Tomcat Users List
Subject: Re: Until which Apache-Tomcat version can I use the JVM
1.4.2_10?


Bachler, Elisabeth (Elisabeth) wrote:
 SOrry for the certainly stupid question but what is the core distribution?

Well, Tomcat itself. In other words, for the latest Tomcat 5.5.x this would
be 
the file apache-tomcat-5.5.12.(zip|tar.gz|exe) you can download from
http://tomcat.apache.org/download-55.cgi
when you click on one of the links this page below
5.5.12
  Binary Distibutions
- Core:

Regards
  mks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a ps -ef| grep i tomcat
I get:
 tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Let me add more info:
Tomcat version: 5.5.9
JVM Version 1.5.0-04-b05
OS Name = SunOS
OS Version = 5.9

 I must have done something but I have no idea what!! 
Please help me!

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:50
To: 'Tomcat Users List'
Subject: Tomcat suddenly not working


Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a ps -ef| grep i tomcat
I get:
 tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
The JAVA_HOME variable points to /usr/java that seems to be the correct
thing.
How can I be sure?


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 22:22
To: Tomcat Users List
Subject: Re: Tomcat suddenly not working


On 11/29/05, Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED] wrote:
 Let me add more info:
 Tomcat version: 5.5.9
 JVM Version 1.5.0-04-b05
 OS Name = SunOS
 OS Version = 5.9

  I must have done something but I have no idea what!!
 Please help me!

You may think you're using JDK 1.5, but Tomcat doesn't seem to. :)

Check the docs and make sure (I think) JAVA_HOME is pointed to the right
place.

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Thank you to everyone for your great help. Someone from my team, without
telling me, updated the jdk. Now, JAVA_HOME is pointing to the correct
directory and everything is working.
Once again, thank you


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 23:27
To: 'Tomcat Users List'
Cc: Tomcat Users List
Subject: RE: Tomcat suddenly not working


Actually, under /usr/java there is a readme file that says that the version
is 1.4.2!!
I have just found out that may be someone from my team has been changing
things
How can I find out if there is a new sdk version... and where it is? (can't
ask someone now!)


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 23:21
To: 'Tomcat Users List'
Cc: Tomcat Users List
Subject: RE: Tomcat suddenly not working


The JAVA_HOME seems to be correct /usr/java since I haven't touched it...and
previously it was working. I have deployed a whole web stuff and I have been
testing it for months!!!

How can I know this is correct? 

-Original Message-
From: Robert Palmer [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 22:59
To: Tomcat Users List
Cc: Tomcat Users List
Subject: Re: Tomcat suddenly not working


Are you sure you have your Java path's correct? This will occur if 
JAVA_HOME is set to, say a 1.4.2 release.

Larry Meadors wrote:

Have you cleared the tomcat work directory?

LArry


On 11/29/05, Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED] wrote:
  

I just had a look in the catalina.out and I have an error with log4j:
log4j:WARN Failed to set property [maxBackupIndex] to value 10  // Keep
10
backup file maximum.
and then:
log4j:WARN Failed to set property [maxBackupIndex] to value 10  // Keep
10
backup file maximum.
Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions:
java.io.InvalidClassException: lucent.com.bean.UtilBea
n; local class incompatible: stream classdesc serialVersionUID =
5090820210408318777, local class serialVers
ionUID = 4263214301996391941
java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
incompatible: stream classdesc serialVe
rsionUID = 5090820210408318777, local class serialVersionUID =
4263214301996391941
..

What does it mean??



-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:58
To: 'Tomcat Users List'; 'Tomcat Users List'
Subject: RE: Tomcat suddenly not working


Let me add more info:
Tomcat version: 5.5.9
JVM Version 1.5.0-04-b05
OS Name = SunOS
OS Version = 5.9

 I must have done something but I have no idea what!!
Please help me!

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:50
To: 'Tomcat Users List'
Subject: Tomcat suddenly not working


Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a ps -ef| grep i tomcat
I get:
 tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL