AW: tomcat restart problem

2004-07-14 Thread Gunnar Pörschke
Delete the works folder (or backup it). then  start tomcat.
If the problem still exists the there must be an error in your jsp files
stored in wepapps folder...

Cheers,

gunnar

-Ursprüngliche Nachricht-
Von: Tomcat Cat [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. Juli 2004 04:46
An: [EMAIL PROTECTED]
Betreff: tomcat restart problem

Hello, all,

I got a weird problem with Tomcat 5 recently. It shutted down by itself, but
after I restarted it, I still can't connect to the server. The browser
complained that The requested URL can't be retrieved.
I know the tomcat process already started since I can see its java job in
the process list. But it's consuming almost 95% of the CPU resource which is
very strange. 

From Cataline.out, I got the log information below. 
Do you guys have any hints or suggestions about this?
Thank you!

-T.C.

===
===

Jul 13, 2004 9:27:14 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 9212 Jul 13, 2004 9:27:14 PM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2764 ms Jul 13, 2004 9:27:15 PM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 13, 2004 9:27:15 PM
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.12 Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 13, 2004
9:27:19 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:/usr/local/tomcat-instance/app/conf/Catalina/localhost/manager.xml
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Cannot find message associated with key
standardContext.resourcesStart
java.lang.IllegalArgumentException: Document base
/usr/local/tomcat-instance/app/webapps/../server/webapps/manager
does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:18
5)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:3753)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3933)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
66)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
..
..

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors Jul 13, 2004 9:27:19
PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException:  Container
StandardContext[/manager] has not been started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4236)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4139)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
66)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:831)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:/usr/local/tomcat-instance/app/conf/Catalina/localhost/admin.xml
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Cannot find message associated with key
standardContext.resourcesStart
java.lang.IllegalArgumentException: Document base
/usr/local/tomcat-instance/app/webapps/../server/webapps/admin
does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:18
5)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:3753)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3933)
at

RE: Is there such a beast ? (virtual directories)

2004-07-14 Thread David . Pawson
 Mike Curwen wrote:

 host ...
   context docBase=/path/to/web-app/root/ 
path=/foo-app ... /
   context docBase=/some/other/path path=/images / /host

 I think this syntax would confuse Tomcat. I thought only 
one context 
 tag is allowed ...? I could be wrong.

No, you can have as many contexts as you like...


What happens when the context element is root of a document
in conf/catalina/localhost (version 5) ?
3 files all relating to the same app?

regards DaveP

** snip here **

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



tomcat hangs

2004-07-14 Thread Stefan Burkard
hi tomcat-users
we use a tomcat-based application and it runs well and fast. but from 
time to time (this can be some hours but also some days) the application 
hangs.

if i have a look on the server, it's absolutely not busy (this would be 
surprising because only about 10 people use the application).
because of the many ajp13-log-entries, i thought the jk2-connector could 
be the problem. here are some log entries:

[Tue Jul 13 17:48:19 2004] [error] Error ajp_process_callback - write failed
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() ajpGetReply 
recoverable error 3
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8007 1 0
[Tue Jul 13 17:48:19 2004] [error] mod_jk.handler() Error connecting to 
tomcat 3
mod_jk: Error flushing

in most of all cases, the application (or tomcat or the connector) can 
recover itself after some minutes of hanging.

can anybody help me?
thanks and greetings
stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


log file problem

2004-07-14 Thread Jitesh Sinha
If the log files become full does it create problem with the application?
Like session parameters coming as null or request attributes coming as null
even though they exist there in the session and request respectively?

TIA,
-Jitesh


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



Exclude images from being logged

2004-07-14 Thread J . Fröber
Hi,

we have Tomcat5 running and are logging the accesses via the AccessLogValve.
To keep the size of the logfile small, I´d like to exclude the images from
being logged. All images are in one directory.
Is there a way to realize that?

Thanks in Advance,
Jörg Fröber


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



RE: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Ivan Jouikov
I tried to use table with CHARACTER SET UTF8, but it didn't change anything :(

Any other suggestions?

 -Original Message-
 From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 9:50 PM
 To: Tomcat Users List
 Subject: Re: Retrieveing Unicode stuff from MySQL 4.1.x ?
 
 http://dev.mysql.com/doc/mysql/en/Charset-defaults.html
 
 in your case, u just define everything as unicode, so just set the
 database encoding to unicode
 
 hopes this help
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


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



Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Andr Weidemann
Ivan Jouikov wrote:
I tried to use table with CHARACTER SET UTF8, but it didn't change anything :(
Any other suggestions?
I'm using a line like the one below to connect to the MySQL DB and it is 
working quite well here:

DBUrl=jdbc:mysql://+server+:+databaseport+/+database+?user=+login+password=+password+useUnicode=truecharacterEncoding=UTF-8;
You may want to specify characterSetResults as well.
http://dev.mysql.com/doc/connector/j/en/index.html

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


RE: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Ivan Jouikov
I tried using those URL parameters.  Doesn't change anything.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 2:30 AM
 To: Tomcat Users List
 Subject: Re: Retrieveing Unicode stuff from MySQL 4.1.x ?
 
 Ivan Jouikov wrote:
  I tried to use table with CHARACTER SET UTF8, but it didn't change
 anything :(
 
  Any other suggestions?
 
 I'm using a line like the one below to connect to the MySQL DB and it is
 working quite well here:
 
 DBUrl=jdbc:mysql://+server+:+databaseport+/+database+?user=+login+
 password=+password+useUnicode=truecharacterEncoding=UTF-8;
 
 You may want to specify characterSetResults as well.
 
 http://dev.mysql.com/doc/connector/j/en/index.html
 
 
 
   Andre.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


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



Properties.getProperty() ignores character \ in the value

2004-07-14 Thread Chris
Howdy,

Could someone please tell me why could this happen?

There is a  property file props including  a key-value pair logfiledir=
c:\hwebgod  , execute :

String logdir = props.getProperty(c:\logfiledir);

Then string logdir will be c:logfiledir ( the char \ is missing ! )

Any hint will be appreciated.
Zerol.


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



Re: log file problem

2004-07-14 Thread Tim Funk
I don't think so.
-Tim
Jitesh Sinha wrote:
If the log files become full does it create problem with the application?
Like session parameters coming as null or request attributes coming as null
even though they exist there in the session and request respectively?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Properties.getProperty() ignores character \ in the value

2004-07-14 Thread Tim Funk
You need \\
-Tim
Chris wrote:
Howdy,
Could someone please tell me why could this happen?
There is a  property file props including  a key-value pair logfiledir=
c:\hwebgod  , execute :
String logdir = props.getProperty(c:\logfiledir);
Then string logdir will be c:logfiledir ( the char \ is missing ! )
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


why only put resource file to $TC$\shared\classes, did TC found it?

2004-07-14 Thread Chris
Howdy,
I am developing webapp using TC4.1.27 , Eclipse 3.0 and Lomboz 3.0,
In one of my webapp's bean class, I want to get a resource file by :

URL u = t.getClass().getResource(/Application.properties);

my bean class  put to WEB-INF\classes\somepackage\,  and the webapp
was deployed by an xml file under directory  $TC$\webapps , It is strange
the only put resource file(Application.properties) to $TC$\shared\classes,
did TC found it.

I tried putting it to WEB-INF\classes,  it could not be found.
I tried putting it to WEB-INF\classes\somepackage,  it could not be found.
I tried putting it to Eclipse's project directory,  it could not be found.

Any idea?  Putting resource file to $TC$\shared\classes  is a bad idea
I think.:)

Best Regards
Chris


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



out of memory, GC doesn't cleaning up

2004-07-14 Thread Futchi
Hi all,
I am running an app. with several threads running in the
background; these threads are simply loading data into the servlet
context, and writing files out streams.
 
A thread updating 5 parameters in the servlet context
A thread writing each of these parameters to a new file
 
Both threads sleeps for only 1 second.
 
In each cycle I am closing and flushing the out streams, and assign null
to all objects
 
While monitoring the memory usage, I can see it just increasing, until
the JVM reach the max size of the memory
 
 
Catalina.bat JAVA_OPTS
 
set JAVA_OPTS=-server -Xms256m -Xmx256m -XX:NewSize=64m
-XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
-XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m -Xss128k
-XX:+DisableExplicitGC -verbose:gc  
 
 
I searched java.sun.com but did not find any indication or help docs to
this error, please help
 
 
 


RE: log file problem

2004-07-14 Thread Shapira, Yoav

Hi,
If you're out of disk space, stuff will break.  I'm not sure what, and
I'm not sure how the Tomcat Loggers will behave, but definitely things
will break as Tomcat and the JVM need temp space.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 3:44 AM
To: Tomcat Users List
Subject: log file problem

If the log files become full does it create problem with the
application?
Like session parameters coming as null or request attributes coming as
null
even though they exist there in the session and request respectively?

TIA,
-Jitesh


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Exclude images from being logged

2004-07-14 Thread Shapira, Yoav

Hi,
Yes, customize/extend the Valve to ignore requests for certain file types.  IMHO, not 
that good an idea, since you will be missing out on one of the main points of access 
logging, which is determining the level and quantity of traffic on your site.  Disk 
space is cheap, as are log file analysis programs.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: J. Fröber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 3:56 AM
To: Tomcat Users List
Subject: Exclude images from being logged

Hi,

we have Tomcat5 running and are logging the accesses via the
AccessLogValve.
To keep the size of the logfile small, I´d like to exclude the images from
being logged. All images are in one directory.
Is there a way to realize that?

Thanks in Advance,
Jörg Fröber


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Shapira, Yoav

Hi,
Because Log is not Serializable, you can't put it in the session.  So
making it transient is fine.  I also saw your reasoning for making it
dynamic rather than static.

Tomcat will save and restore your sessions across server restarts by
default.  That includes session attributes that are Serializable.  If
the Form was in the session, it will be deserialized: this is not the
same process as reconstruction.  So if you choose to stick with this
transient modifier, you will need to check for the log being null before
every time you use it.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 6:26 PM
To: Tomcat Users List
Subject: RE: NPE in ActionForm where it is not be possible

QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private transient
 Log log =
 LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default settings
 in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

I've had to look at higher priorities for a couple of days :)

Thanks for the idea. I changed as follows:
...
// private transient Log log =
LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE
}
...

But, still get the NPE :(

I'm defininig the instance variable as transient because Tomcat
complains about saving sessions that contain a private instance
variable
(non-transient) of type Log. I was trying to get my sessions to persist
across restarts. Does that suggest anything?

Thank you again - Richard


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: out of memory, GC doesn't cleaning up

2004-07-14 Thread Shapira, Yoav

Hi,
Use a Profiler to see what objects keep references to data you think
should be garbage-collected.

I'd also suggest scrapping most your extensive memory tuning settings
for now, unless you're absolutely sure they're perfect.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Futchi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 9:44 AM
To: Tomcat Users List
Subject: out of memory, GC doesn't cleaning up

Hi all,
I am running an app. with several threads running in the
background; these threads are simply loading data into the servlet
context, and writing files out streams.

A thread updating 5 parameters in the servlet context
A thread writing each of these parameters to a new file

Both threads sleeps for only 1 second.

In each cycle I am closing and flushing the out streams, and assign
null
to all objects

While monitoring the memory usage, I can see it just increasing, until
the JVM reach the max size of the memory


Catalina.bat JAVA_OPTS

set JAVA_OPTS=-server -Xms256m -Xmx256m -XX:NewSize=64m
-XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
-XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m
-Xss128k
-XX:+DisableExplicitGC -verbose:gc


I searched java.sun.com but did not find any indication or help docs to
this error, please help






This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: tomcat hangs

2004-07-14 Thread Shapira, Yoav

Hi,
Does it happen if you run tomcat stand-alone, i.e. without the connector
and Apache in front?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard
Sent: Wednesday, July 14, 2004 3:25 AM
To: [EMAIL PROTECTED]
Subject: tomcat hangs

hi tomcat-users

we use a tomcat-based application and it runs well and fast. but from
time to time (this can be some hours but also some days) the
application
hangs.

if i have a look on the server, it's absolutely not busy (this would be
surprising because only about 10 people use the application).
because of the many ajp13-log-entries, i thought the jk2-connector
could
be the problem. here are some log entries:

[Tue Jul 13 17:48:19 2004] [error] Error ajp_process_callback - write
failed
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() ajpGetReply
recoverable error 3
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8007 1 0
[Tue Jul 13 17:48:19 2004] [error] mod_jk.handler() Error connecting to
tomcat 3
mod_jk: Error flushing

in most of all cases, the application (or tomcat or the connector) can
recover itself after some minutes of hanging.

can anybody help me?

thanks and greetings
stefan


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: tomcat restart problem

2004-07-14 Thread Shapira, Yoav

Hi,
Umm, maybe ;)  But more likely, do this:
- Send a SIGQUIT to the tomcat process so that it generates a thread dump.
- Kill the process using the kill command.
- Inspect the thread dump to look for deadlocks, etc.
- Back up your logs
- Start tomcat.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Gunnar Pörschke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 3:11 AM
To: 'Tomcat Users List'
Subject: AW: tomcat restart problem

Delete the works folder (or backup it). then  start tomcat.
If the problem still exists the there must be an error in your jsp files
stored in wepapps folder...

Cheers,

gunnar

-Ursprüngliche Nachricht-
Von: Tomcat Cat [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 14. Juli 2004 04:46
An: [EMAIL PROTECTED]
Betreff: tomcat restart problem

Hello, all,

I got a weird problem with Tomcat 5 recently. It shutted down by itself,
but
after I restarted it, I still can't connect to the server. The browser
complained that The requested URL can't be retrieved.
I know the tomcat process already started since I can see its java job in
the process list. But it's consuming almost 95% of the CPU resource which
is
very strange.

From Cataline.out, I got the log information below.
Do you guys have any hints or suggestions about this?
Thank you!

-T.C.

===
===

Jul 13, 2004 9:27:14 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 9212 Jul 13, 2004 9:27:14 PM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2764 ms Jul 13, 2004 9:27:15 PM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 13, 2004 9:27:15 PM
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.12 Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 13, 2004
9:27:19 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:/usr/local/tomcat-instance/app/conf/Catalina/localhost/manager.xml
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Cannot find message associated with key
standardContext.resourcesStart
java.lang.IllegalArgumentException: Document base
/usr/local/tomcat-instance/app/webapps/../server/webapps/manager
does not exist or is not a readable directory
   at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:1
8
5)
   at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.jav
a
:3753)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3933)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
8
66)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
   ..
   ..

   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors Jul 13, 2004 9:27:19
PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException:  Container
StandardContext[/manager] has not been started
   at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4236)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4139)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
8
66)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)
   at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer
.
java:831)
   at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:/usr/local/tomcat-instance/app/conf/Catalina/localhost/admin.xml
Jul 13, 2004 9:27:19 PM
org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Cannot find message associated with key
standardContext.resourcesStart

Problem in deploying application on Tomcat 4 and 5

2004-07-14 Thread Arnab Chakravarty
Hi,

I have migrated an existing application from tomcat 3.3 to tomcat 4.0
and 5.0. When I started the tomcat, I was thrown a lot of errors related
to the tags in the tld file.

I corrected those errors and finally got this error thrown: (Pasted
below)

Stack Trace --

HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp.
java:11: class org.apache.jsp.Login$jsp must be declared abstract. It
does not define java.util.List getIncludes() from class
org.apache.jasper.runtime.HttpJspBase.
public class Login$jsp extends HttpJspBase {
 ^

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp.
java:21: Class org.apache.jasper.runtime.JspException not found in
throws.
public final void _jspx_init() throws
org.apache.jasper.runtime.JspException {
  ^

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp.
java:35: Class org.apache.jasper.runtime.JspException not found in try.
try {
^
3 errors, 1 warning

org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)

org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spServlet.java:177)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:189)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.25 logs.

-- End of StackTrace

Now, while browsing the source code for both tomcat 4.0 and 5.0, I could
not find the  JspException.java  file, although they are supposed to
be part of it. The jar files also do not contain the file.

I need some pointers about fixing the problem. Importantly, where is
this file anyways?

Thanks in advance,
Arnab

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



RE: Problem in deploying application on Tomcat 4 and 5

2004-07-14 Thread Shapira, Yoav

Hi,
See the packageless links at
http://jakarta.apache.org/tomcat/faq/classnotfound.html.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 9:34 AM
To: Tomcat Users List
Subject: Problem in deploying application on Tomcat 4 and 5

Hi,

I have migrated an existing application from tomcat 3.3 to tomcat 4.0
and 5.0. When I started the tomcat, I was thrown a lot of errors
related
to the tags in the tld file.

I corrected those errors and finally got this error thrown: (Pasted
below)

Stack Trace --

HTTP Status 500 -

---
-


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp
.
java:11: class org.apache.jsp.Login$jsp must be declared abstract. It
does not define java.util.List getIncludes() from class
org.apache.jasper.runtime.HttpJspBase.
public class Login$jsp extends HttpJspBase {
 ^

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp
.
java:21: Class org.apache.jasper.runtime.JspException not found in
throws.
public final void _jspx_init() throws
org.apache.jasper.runtime.JspException {
  ^

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp
.
java:35: Class org.apache.jasper.runtime.JspException not found in try.
try {
^
3 errors, 1 warning

   org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)

org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
J
spServlet.java:177)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl
e
t.java:189)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382
)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.25 logs.

-- End of StackTrace

Now, while browsing the source code for both tomcat 4.0 and 5.0, I
could
not find the  JspException.java  file, although they are supposed to
be part of it. The jar files also do not contain the file.

I need some pointers about fixing the problem. Importantly, where is
this file anyways?

Thanks in advance,
Arnab

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: why only put resource file to $TC$\shared\classes, did TC found it?

2004-07-14 Thread Mike Curwen
what is 't' ?


 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 14, 2004 6:24 AM
 To: Tomcat Users List
 Subject: why only put resource file to $TC$\shared\classes, 
 did TC found it?
 
 
 Howdy,
 I am developing webapp using TC4.1.27 , Eclipse 3.0 and 
 Lomboz 3.0, In one of my webapp's bean class, I want to get a 
 resource file by :
 
 URL u = t.getClass().getResource(/Application.properties);
 
 my bean class  put to WEB-INF\classes\somepackage\,  and the 
 webapp was deployed by an xml file under directory  
 $TC$\webapps , It is strange the only put resource 
 file(Application.properties) to $TC$\shared\classes, did TC 
 found it.
 
 I tried putting it to WEB-INF\classes,  it could not be 
 found. I tried putting it to WEB-INF\classes\somepackage,  it 
 could not be found. I tried putting it to Eclipse's project 
 directory,  it could not be found.
 
 Any idea?  Putting resource file to $TC$\shared\classes  is 
 a bad idea I think.:)
 
 Best Regards
 Chris
 
 
 -
 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: Problem in deploying application on Tomcat 4 and 5

2004-07-14 Thread Arnab Chakravarty
Hi,

The link was helpful and did get the much awaited login page. Now there
are some other problems with the rendering of jsp pages, but yes, the
problem did resolve.

Thanks,
Arnab

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 7:12 PM
To: Tomcat Users List
Subject: RE: Problem in deploying application on Tomcat 4 and 5


Hi,
See the packageless links at
http://jakarta.apache.org/tomcat/faq/classnotfound.html.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 9:34 AM
To: Tomcat Users List
Subject: Problem in deploying application on Tomcat 4 and 5

Hi,

I have migrated an existing application from tomcat 3.3 to tomcat 4.0
and 5.0. When I started the tomcat, I was thrown a lot of errors
related
to the tags in the tld file.

I corrected those errors and finally got this error thrown: (Pasted
below)

Stack Trace --

HTTP Status 500 -

---
-


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp
.
java:11: class org.apache.jsp.Login$jsp must be declared abstract. It
does not define java.util.List getIncludes() from class
org.apache.jasper.runtime.HttpJspBase.
public class Login$jsp extends HttpJspBase {
 ^

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp
.
java:21: Class org.apache.jasper.runtime.JspException not found in
throws.
public final void _jspx_init() throws
org.apache.jasper.runtime.JspException {
  ^

D:\jakarta-tomcat-5.0.25\work\Catalina\localhost\cnams\public\Login$jsp
.
java:35: Class org.apache.jasper.runtime.JspException not found in try.
try {
^
3 errors, 1 warning

   org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)

org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
J
spServlet.java:177)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl
e
t.java:189)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382
)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.25 logs.

-- End of StackTrace

Now, while browsing the source code for both tomcat 4.0 and 5.0, I
could
not find the  JspException.java  file, although they are supposed to
be part of it. The jar files also do not contain the file.

I need some pointers about fixing the problem. Importantly, where is
this file anyways?

Thanks in advance,
Arnab

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
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]



JDBC config under globalnamingresource

2004-07-14 Thread Malai
Hi.,
   I'm trying to configure my JDBC setup under Global JNDI Resources in server.xml.It 
is not working in while accessing my web-app.
But i can able to do it under my web-app context.
Please advise me resolve this one.

Thanks.,
MALAI



RE: log file problem

2004-07-14 Thread Jitesh Sinha
Ok so how do I find out definitively which of the stuffs is going to
break?
Actually in my application sometimes some parameter becomes null which
creates problems with the flow of the application
Sometimes user is not able to open the application itself.we restart the
web server which clears the logs and everything comes on track
Any ideas are welcomeI am kinda becoming despo now ... :)




-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 6:31 PM
To: Tomcat Users List
Subject: RE: log file problem



Hi,
If you're out of disk space, stuff will break.  I'm not sure what, and
I'm not sure how the Tomcat Loggers will behave, but definitely things
will break as Tomcat and the JVM need temp space.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 3:44 AM
To: Tomcat Users List
Subject: log file problem

If the log files become full does it create problem with the
application?
Like session parameters coming as null or request attributes coming as
null
even though they exist there in the session and request respectively?

TIA,
-Jitesh


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: log file problem

2004-07-14 Thread Shapira, Yoav

Hi,

Ok so how do I find out definitively which of the stuffs is going to
break?

You can't.  It'll be the first thing executed that requires disk space
after the disk is full.

You're thinking about this the wrong way: you must prevent the disk from
becoming full.  Either buy a bigger hard-drive or control/configure your
system to not log as much.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: log file problem

2004-07-14 Thread Sternbergh, Cornell
Could you rotate the log files

Like, on a daily basis, rename whatever.log to
yesterdaysdateWhatever.log?  I assume that Tomcate would then create a
new whatever.log when it was needed.

You'd still have to watch your diskspace of course.  But you could move
off or delete logs that were old.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 10:53
To: Tomcat Users List
Subject: RE: log file problem


Ok so how do I find out definitively which of the stuffs is going to
break?
Actually in my application sometimes some parameter becomes null which
creates problems with the flow of the application
Sometimes user is not able to open the application itself.we restart
the
web server which clears the logs and everything comes on track
Any ideas are welcomeI am kinda becoming despo now ... :)




-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 6:31 PM
To: Tomcat Users List
Subject: RE: log file problem



Hi,
If you're out of disk space, stuff will break.  I'm not sure what, and
I'm not sure how the Tomcat Loggers will behave, but definitely things
will break as Tomcat and the JVM need temp space.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 3:44 AM
To: Tomcat Users List
Subject: log file problem

If the log files become full does it create problem with the
application?
Like session parameters coming as null or request attributes coming as
null
even though they exist there in the session and request respectively?

TIA,
-Jitesh


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary
and/or privileged.  This e-mail is intended only for the individual(s)
to
whom it is addressed, and may not be saved, copied, printed, disclosed
or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



Re: log file problem

2004-07-14 Thread QM
On Wed, Jul 14, 2004 at 08:23:10PM +0530, Jitesh Sinha wrote:
: Ok so how do I find out definitively which of the stuffs is going to
: break?
: Actually in my application sometimes some parameter becomes null which
: creates problems with the flow of the application
: Sometimes user is not able to open the application itself.we restart the
: web server which clears the logs and everything comes on track
: Any ideas are welcomeI am kinda becoming despo now ... :)


How?  Load-test to fill the logs, and watch the fireworks. ;)

If your OS supports volume management (Veritas VxVM, Linux or HP LVM,
etc.) then you can quickly setup a very small, dedicated filesystem to
do the test.  That should fill up quickly.

Yoav hit the nail on the head, though: when filesystem space is low,
things can get crazy.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: log file problem

2004-07-14 Thread Mike Curwen
The other thing said was 'restart the web server which clears the logs'
 
huh?
 
Who here has a web server that keeps logs in memory or entirely in some
type of swap space that is cleared on a server restart? (do you mean a
tomcat restart, or a server hardware reboot ?)

I'm thinking there might be some other problem, not related to logs.
Like OOME.


 -Original Message-
 From: Jitesh Sinha [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 14, 2004 9:53 AM
 To: Tomcat Users List
 Subject: RE: log file problem
 
 
 Ok so how do I find out definitively which of the stuffs is 
 going to break? Actually in my application sometimes 
 some parameter becomes null which creates problems with the 
 flow of the application Sometimes user is not able to 
 open the application itself.we restart the web server 
 which clears the logs and everything comes on track Any 
 ideas are welcomeI am kinda becoming despo now ... :)
 


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



Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ivan Jouikov wrote:
| I tried using those URL parameters.  Doesn't change anything.
|
|
|-Original Message-
|From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, July 14, 2004 2:30 AM
|To: Tomcat Users List
|Subject: Re: Retrieveing Unicode stuff from MySQL 4.1.x ?
|
|Ivan Jouikov wrote:
|
|I tried to use table with CHARACTER SET UTF8, but it didn't change
|
|anything :(
|
|Any other suggestions?
|
|I'm using a line like the one below to connect to the MySQL DB and it is
|working quite well here:
|
|DBUrl=jdbc:mysql://+server+:+databaseport+/+database+?user=+login+
|password=+password+useUnicode=truecharacterEncoding=UTF-8;
|
|You may want to specify characterSetResults as well.
|
|http://dev.mysql.com/doc/connector/j/en/index.html
Ivan,
You're going to have to do a little testing to see _where_ the character
encoding is being lost.
You should first see if the strings that you are inserting into the
database are the same as being retrieved, either in your JSP, or in a
little testcase (I prefer JUnit myself), by using String's .equals()
method and not your 'eyes'.
The reason to do this is to isolate the different stages of
encoding/decoding from each other, because there's an encoding/decoding
between the JDBC driver and the database, there is one yet again between
your JSP and your browser, and there is many times one yet again between
your browser and your operating system.
You will need to check at _each_ stage to make sure that the characters
are encoded the way you think they are.
I can state from experience that _usually_ it's not at the database
level, however, it's usually a mismatch somewhere else that these
problems occur (but they are hard to debug sometimes :( )
Regards,
-Mark
- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com
MySQL Guide to Lower TCO
http://www.mysql.com/it-resources/white-papers/tco.php
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA9U22tvXNTca6JD8RAibYAKDHK+QwHHPXuwK8COGp1XhxRM1s7wCdFmIf
yxc3AlFTMt9LWvRxYdXwMoM=
=6oIc
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: why only put resource file to $TC$\shared\classes, did TC found it?

2004-07-14 Thread Chris
Sorry for not enough info.

 what is 't' ?
t is a Javabeans (in package somepackage) which uses the resource file
Application.properties

- Original Message - 
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 10:18 PM
Subject: RE: why only put resource file to $TC$\shared\classes, did TC
found it?


 what is 't' ?


  -Original Message-
  From: Chris [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 14, 2004 6:24 AM
  To: Tomcat Users List
  Subject: why only put resource file to $TC$\shared\classes,
  did TC found it?
 
 
  Howdy,
  I am developing webapp using TC4.1.27 , Eclipse 3.0 and
  Lomboz 3.0, In one of my webapp's bean class, I want to get a
  resource file by :
 
  URL u = t.getClass().getResource(/Application.properties);
 
  my bean class  put to WEB-INF\classes\somepackage\,  and the
  webapp was deployed by an xml file under directory
  $TC$\webapps , It is strange the only put resource
  file(Application.properties) to $TC$\shared\classes, did TC
  found it.
 
  I tried putting it to WEB-INF\classes,  it could not be
  found. I tried putting it to WEB-INF\classes\somepackage,  it
  could not be found. I tried putting it to Eclipse's project
  directory,  it could not be found.
 
  Any idea?  Putting resource file to $TC$\shared\classes  is
  a bad idea I think.:)
 
  Best Regards
  Chris
 
 
  -
  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]



Running Tomcat as service on Win2003 Server

2004-07-14 Thread Bui, Bao-Ha D
Hello,

I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with
IIS 6.

The service will start and stop right away.

Looking into the event viewer, the log indicated that Tomcat failed to
start.

Could anyone tell me what's wrong?  We have the same version of Tomcat
running fine on Win2K server.

Thanks very much.

Bao-Ha Dam Bui
 



* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*


Replace Internal Server Error Page with User Defined Page

2004-07-14 Thread Hugh Field-Richards
Hi
How do I restrict the amount of information that is given
on the Internal Server Error Page? For example I get the
standard page
Internal Server Error
Message: Unable to get transformer handler for file: file name here
	Description: org.apache.cocoon.ProcessingException: Unable to get 
transformer handler for file: xsl file name here: 
	org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
index-en.html
cause
		org.apache.xml.utils.WrappedRuntimeException: Could not find variable 
with the name of .

request-uri
uri given
full exception chain stacktrace
etc
I want to be able to put out the minimum amount of information
here on the working system from my own error page. For
example: the requesting URI, a simple message to say a
failure has happened, and please contact the webmaster etc etc.
Any help here would be much appreciated. My apologies if this
has already been discussed. I have looked in the archives and
nothing was immediately obvious.
TIA
Hugh F-R
Dr Hugh S. Field-Richards
QinetiQ, St Andrew's Road, Malvern, Worcs, WR14 3PS, UK
Tel: ++1684 895075   Fax: ++1684 896113
Email: [EMAIL PROTECTED]
The views expressed above area are entirely those of the writer and
do not represent the views, policy or understanding of any other
person or official body.


manager app: sessions

2004-07-14 Thread Stephen Charles Huey
I have read the Manager App HOW-TO at 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

So, I'm accessing the following URL just like the example shows:
https://www.(mydomain).com/manager/sessions?path=/ristmain

I'm trying to interpret these results:
OK - Session information for application at context path /ristmain
Default maximum session inactive interval 30 minutes
30 - 40 minutes:100 sessions
120 - 130 minutes:1071 sessions

My main question is, does Tomcat update these numbers in realtime, or
only once in a while (like every 10 minutes)?  I'm wondering why it says
30 - 40 minutes...?  I logged into the web app as another user and that
100 didn't increase.  It's hard for me to tell if my logging in was
counted later on just because real users are logging in and out all the
time.  I guess the most important thing I need to know here is how long
I should wait to take another sampling...wait 10 minutes each time, or
what?  If it says 100 sessions, then that means within the past half an
hour (or 40 minutes?), there have been a total of about 100 users logged
in, right?  

Are these the only statistics available about sessions?  Would I have to
customize Tomcat to find out more?  

Thanks,
Stephen

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



image redirect

2004-07-14 Thread Charles N. Harvey III
Hello.
I am used to using Apache Httpd in front of Tomcat to create Redirects for
images.  This way, I can re-route all calls to *.jpg to my image server.
But now I don't have Apache Httpd installed.  Can I do the same with Tomcat?
This is the setup in Httpd:
VirtualHost www.mysite.com
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /code/www/webapps/
   ServerName production
   RedirectMatch /images/(.*)$ http://images.mysite.com/images/$1
   JkMount /*.do tomcat
   JkMount /*.vm tomcat
   JkMount /*.jsp tomcat
/VirtualHost
So, with the RedirectMatch I can route all of my image calls to another
server.  Is there somewhere in the conf/server.xml where I can setup the 
same
feature?  Right now I have a servlet filter setup in my web.xml file for the
application.  But I was wondering if it could be done in Tomcat instead of
in my application.  If not, I guess I'll keep using my filter.

Thanks a lot.
Charlie

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


Re: Replace Internal Server Error Page with User Defined Page

2004-07-14 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#error
-Tim
Hugh Field-Richards wrote:
Hi
How do I restrict the amount of information that is given
on the Internal Server Error Page? For example I get the
standard page
Internal Server Error
Message: Unable to get transformer handler for file: file name here
Description: org.apache.cocoon.ProcessingException: Unable to get 
transformer handler for file: xsl file name here: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
index-en.html
cause
org.apache.xml.utils.WrappedRuntimeException: Could not find 
variable with the name of .

request-uri
uri given
full exception chain stacktrace
etc
I want to be able to put out the minimum amount of information
here on the working system from my own error page. For
example: the requesting URI, a simple message to say a
failure has happened, and please contact the webmaster etc etc.
Any help here would be much appreciated. My apologies if this
has already been discussed. I have looked in the archives and
nothing was immediately obvious.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Replace Internal Server Error Page with User Defined Page

2004-07-14 Thread Hugh Field-Richards
Hi
Thanks for the reply.
I had seen that. But what is the error number (or whatever) that 
generates the
Internal Error Page with the type of errors that I have given? Exactly 
what
do I write in the error-code field?

TIA
Hugh F-R
Dr Hugh S. Field-Richards
QinetiQ, St Andrew's Road, Malvern, Worcs, WR14 3PS, UK
Tel: ++1684 895075   Fax: ++1684 896113
Email: [EMAIL PROTECTED]
The views expressed above area are entirely those of the writer and
do not represent the views, policy or understanding of any other
person or official body.
On 14 Jul 2004, at 17:43, Tim Funk wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#error
-Tim
Hugh Field-Richards wrote:
Hi
How do I restrict the amount of information that is given
on the Internal Server Error Page? For example I get the
standard page
Internal Server Error
Message: Unable to get transformer handler for file: file name 
here
Description: org.apache.cocoon.ProcessingException: Unable to get 
transformer handler for file: xsl file name here: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
index-en.html
cause
org.apache.xml.utils.WrappedRuntimeException: Could not find 
variable with the name of .
request-uri
uri given
full exception chain stacktrace
etc
I want to be able to put out the minimum amount of information
here on the working system from my own error page. For
example: the requesting URI, a simple message to say a
failure has happened, and please contact the webmaster etc etc.
Any help here would be much appreciated. My apologies if this
has already been discussed. I have looked in the archives and
nothing was immediately obvious.

-
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: Replace Internal Server Error Page with User Defined Page

2004-07-14 Thread Tim Funk
Probably 500
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
-Tim
Hugh Field-Richards wrote:
Hi
Thanks for the reply.
I had seen that. But what is the error number (or whatever) that 
generates the
Internal Error Page with the type of errors that I have given? Exactly what
do I write in the error-code field?

TIA
Hugh F-R
Dr Hugh S. Field-Richards
QinetiQ, St Andrew's Road, Malvern, Worcs, WR14 3PS, UK
Tel: ++1684 895075   Fax: ++1684 896113
Email: [EMAIL PROTECTED]
The views expressed above area are entirely those of the writer and
do not represent the views, policy or understanding of any other
person or official body.
On 14 Jul 2004, at 17:43, Tim Funk wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#error
-Tim
Hugh Field-Richards wrote:
Hi
How do I restrict the amount of information that is given
on the Internal Server Error Page? For example I get the
standard page
Internal Server Error
Message: Unable to get transformer handler for file: file name 
here
Description: org.apache.cocoon.ProcessingException: Unable to get 
transformer handler for file: xsl file name here: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
index-en.html
cause
org.apache.xml.utils.WrappedRuntimeException: Could not find 
variable with the name of .
request-uri
uri given
full exception chain stacktrace
etc
I want to be able to put out the minimum amount of information
here on the working system from my own error page. For
example: the requesting URI, a simple message to say a
failure has happened, and please contact the webmaster etc etc.
Any help here would be much appreciated. My apologies if this
has already been discussed. I have looked in the archives and
nothing was immediately obvious.

-
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]


standard install produces 33 processes/forks!

2004-07-14 Thread Matthias Leonhardt
Hi,

how can I reduce the amount of processes started by the tomcat.
I tried to change the min_spare* options of the 2 Connectors 
in the standard config - so I got 29 processes instead of 33.

How can I reduce the large amount of processes?

I attached the server.xml to this mail - so you can have a look.
But its the standard-config as distributed in the tarball of
the tomcat 4.1 which I downloaded before.

thanks for Your help/hints
kind regards,
Matthias Leonhardt

--
Matthias Leonhardt
- Team Software Solutions - 
pro|business AG
Expo Plaza 1
30539 Hannover
Germany

phone 1+49-3641-776323
phone 2+49-511-60066-0
email  [EMAIL PROTECTED]
webhttp://www.probusiness.de

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



standard install produces 33 processes/forks!

2004-07-14 Thread Matthias Leonhardt
Hi,

how can I reduce the amount of processes started by the tomcat.
I tried to change the min_spare* options of the 2 Connectors in the standard
config - so I got 29 processes instead of 33.

How can I reduce the large amount of processes?

I attached the server.xml to this mail - so you can have a look.
But its the standard-config as distributed in the tarball of the tomcat 4.1
which I downloaded before.

thanks for Your help/hints
kind regards,
Matthias Leonhardt

--
Matthias Leonhardt
- Team Software Solutions - 
pro|business AG
Expo Plaza 1
30539 Hannover
Germany

phone 1+49-3641-776323
phone 2+49-511-60066-0
email  [EMAIL PROTECTED]
webhttp://www.probusiness.de


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

RE: Running Tomcat as service on Win2003 Server

2004-07-14 Thread Birt, Jeffrey
What version of Win2003 sever are you running, Standard, Web Edition?

Web edition is made only to serve web pages.  Some software won't even
LOAD on it.

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 

-Original Message-
From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 11:03 AM
To: 'Tomcat Users List'
Subject: Running Tomcat as service on Win2003 Server

Hello,

I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
with
IIS 6.

The service will start and stop right away.

Looking into the event viewer, the log indicated that Tomcat failed to
start.

Could anyone tell me what's wrong?  We have the same version of Tomcat
running fine on Win2K server.

Thanks very much.

Bao-Ha Dam Bui
 



* 
This communication may contain information that is proprietary,
privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of
the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*



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



Re: manager app: sessions

2004-07-14 Thread Robert Bateman
Stephen,

If I understand what your asking, you are looking at statistics generated by 
Tomcat that tells you how many *active* sessions are still laying around 
inside the server.  But the first row tells you about sessions that have been 
alive between 30 and 40 minutes.  You logged in but your session was active 
*way* under the 30 minute lower limit for the stats one line 1.

Bob


On Wednesday 14 July 2004 12:28 pm, Stephen Charles Huey wrote:
 I have read the Manager App HOW-TO at
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

 So, I'm accessing the following URL just like the example shows:
 https://www.(mydomain).com/manager/sessions?path=/ristmain

 I'm trying to interpret these results:
 OK - Session information for application at context path /ristmain
 Default maximum session inactive interval 30 minutes
 30 - 40 minutes:100 sessions
 120 - 130 minutes:1071 sessions

 My main question is, does Tomcat update these numbers in realtime, or
 only once in a while (like every 10 minutes)?  I'm wondering why it says
 30 - 40 minutes...?  I logged into the web app as another user and that
 100 didn't increase.  It's hard for me to tell if my logging in was
 counted later on just because real users are logging in and out all the
 time.  I guess the most important thing I need to know here is how long
 I should wait to take another sampling...wait 10 minutes each time, or
 what?  If it says 100 sessions, then that means within the past half an
 hour (or 40 minutes?), there have been a total of about 100 users logged
 in, right?

 Are these the only statistics available about sessions?  Would I have to
 customize Tomcat to find out more?

 Thanks,
 Stephen



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



RE: standard install produces 33 processes/forks!

2004-07-14 Thread Mike Curwen
What version of Linux ?

older kernels report each java thread as a separate process. 

 -Original Message-
 From: Matthias Leonhardt [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 14, 2004 12:18 PM
 To: [EMAIL PROTECTED]
 Subject: standard install produces 33 processes/forks!
 
 
 Hi,
 
 how can I reduce the amount of processes started by the 
 tomcat. I tried to change the min_spare* options of the 2 Connectors 
 in the standard config - so I got 29 processes instead of 33.
 
 How can I reduce the large amount of processes?
 
 I attached the server.xml to this mail - so you can have a 
 look. But its the standard-config as distributed in the 
 tarball of the tomcat 4.1 which I downloaded before.
 
 thanks for Your help/hints
 kind regards,
 Matthias Leonhardt
 
 --
 Matthias Leonhardt
 - Team Software Solutions - 
 pro|business AG
 Expo Plaza 1
 30539 Hannover
 Germany
 
 phone 1+49-3641-776323
 phone 2+49-511-60066-0
 email  [EMAIL PROTECTED]
 webhttp://www.probusiness.de
 
 -
 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: NPE in ActionForm where it is not be possible

2004-07-14 Thread Richard Mixon (qwest)
Yoav,

Wow, had not considered that. I'm going to sort of say this back to be
sure I understand though :)

So if we stop Tomcat then my session, with any stored attributes that
contain an ActionForm, will be serialized to persistent storage
(disk). Upon restart the sesson and its attributes are
deserialized(reconstituted so to speak). The CATCH is that for any
included ActionForms, standard object initialization does not occur -
either through static initializers or through the constructor. So I can
end up with a NPE when I reference the log instance variable.

OK, that definitely explains the problem. It is only after a restart
that this is occurring - consistently. So, how to fix this.

Ugh! I've got 127 classes that use this construct! The good news is that
the objects that are likely to be persisted to the session tend to be
either ActionForms or a limited number of domain objects - about 50 in
total. They mostly derive from common superclasses so I might get some
help by putting an inner class that wraps the Log type in the
superclass. But, I need access to the actual class name of the instance
so I can initialize the Log object with objectname.class.

Is there a more elegant way to do this? I know using AOP would offer
some much more elegant solutions, but do not think I'm ready to throw
this at a production system.

Any comments/ideas are welcome. And thanks again to Yoav for helping me
to see the light here.

 - Richard

Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 Because Log is not Serializable, you can't put it in the session.  So
 making it transient is fine.  I also saw your reasoning for making it
 dynamic rather than static.

 Tomcat will save and restore your sessions across server restarts by
 default.  That includes session attributes that are Serializable.  If
 the Form was in the session, it will be deserialized: this is not the
 same process as reconstruction.  So if you choose to stick with this
 transient modifier, you will need to check for the log being null
 before
 every time you use it.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 6:26 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
 wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private
 transient Log log = LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default
 settings in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

 I've had to look at higher priorities for a couple of days :)

 Thanks for the idea. I changed as follows:
...
// private transient Log log =
 LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
 ...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE }
...

 But, still get the NPE :(

 I'm defininig the instance variable as transient because Tomcat
 complains about saving sessions that contain a private instance
 variable (non-transient) of type Log. I was trying to get my
 sessions to persist across restarts. Does that suggest anything?

 Thank you again - Richard


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




 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.


 -
 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: manager app: sessions

2004-07-14 Thread Stephen Charles Huey
What?  I can only find out how many sessions have been active for 30 to
40 minutes and 120 to 130 minutes?  That doesn't seem to make sense. 
I understand if Tomcat doesn't want to update the stats too frequently,
but what about stats on sessions logged in more than 40 minutes and less
than 2 hours?  Why would it arbitrarily jump up to 2 hours?  And how
likely is it that I have only 100 users who have been active for a total
of exactly 30 to 40 minutes, but 1071 users who have been active for
over 2 hours?  If my timeout is set to 30 minutes, then that means they
have to keep browsing the site at least every 30 minutes to avoid
getting timed out.  So is what you're saying right?  

 30 - 40 minutes:100 sessions
 120 - 130 minutes:1071 sessions

I mainly need to know about how many sessions are currently open.  I
thought that first line meant that about 100 sessions have been opened
in the past half hour, give or take 10 minutes.  Is this not true?  
 

- Original message -
From: Robert Bateman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Wed, 14 Jul 2004 13:29:33 -0400
Subject: Re: manager app:  sessions

Stephen,

If I understand what your asking, you are looking at statistics
generated by 
Tomcat that tells you how many *active* sessions are still laying around 
inside the server.  But the first row tells you about sessions that have
been 
alive between 30 and 40 minutes.  You logged in but your session was
active 
*way* under the 30 minute lower limit for the stats one line 1.

Bob


On Wednesday 14 July 2004 12:28 pm, Stephen Charles Huey wrote:
 I have read the Manager App HOW-TO at
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

 So, I'm accessing the following URL just like the example shows:
 https://www.(mydomain).com/manager/sessions?path=/ristmain

 I'm trying to interpret these results:
 OK - Session information for application at context path /ristmain
 Default maximum session inactive interval 30 minutes
 30 - 40 minutes:100 sessions
 120 - 130 minutes:1071 sessions

 My main question is, does Tomcat update these numbers in realtime, or
 only once in a while (like every 10 minutes)?  I'm wondering why it says
 30 - 40 minutes...?  I logged into the web app as another user and that
 100 didn't increase.  It's hard for me to tell if my logging in was
 counted later on just because real users are logging in and out all the
 time.  I guess the most important thing I need to know here is how long
 I should wait to take another sampling...wait 10 minutes each time, or
 what?  If it says 100 sessions, then that means within the past half an
 hour (or 40 minutes?), there have been a total of about 100 users logged
 in, right?

 Are these the only statistics available about sessions?  Would I have to
 customize Tomcat to find out more?

 Thanks,
 Stephen



-
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: image redirect

2004-07-14 Thread Shapira, Yoav

Hi,
No, you have to do it yourself, and your filter is a good way to go, so
I'd suggest sticking with it.  Of course you have at least one other
good option, which is to just specify the image server name in the img
HTML tag ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 12:40 PM
To: Tomcat Users List
Subject: image redirect

Hello.
I am used to using Apache Httpd in front of Tomcat to create Redirects
for
images.  This way, I can re-route all calls to *.jpg to my image
server.
But now I don't have Apache Httpd installed.  Can I do the same with
Tomcat?

This is the setup in Httpd:

VirtualHost www.mysite.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /code/www/webapps/
ServerName production
RedirectMatch /images/(.*)$ http://images.mysite.com/images/$1
JkMount /*.do tomcat
JkMount /*.vm tomcat
JkMount /*.jsp tomcat
/VirtualHost


So, with the RedirectMatch I can route all of my image calls to
another
server.  Is there somewhere in the conf/server.xml where I can setup
the
same
feature?  Right now I have a servlet filter setup in my web.xml file
for
the
application.  But I was wondering if it could be done in Tomcat
instead
of
in my application.  If not, I guess I'll keep using my filter.

Thanks a lot.


Charlie



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Shapira, Yoav

Hi,
I just wanted to confirm your understanding is correct.  It's
unfortunate to discover this now, from your perspective, since you
already have many classes affected by this, but then again better late
than never ;)

I tend to agree about throwing AOP into a production system at this
point in time.

In production code I tend to use static loggers so this is not an issue
for me, and there are other workarounds of varying applicability, such
as checking for a null logger before using it (a tiny checkLogger method
in your superclass called by every method, or something like that: it's
slow and ugly, but it works and depending on other constraints you may
want this).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 1:43 PM
To: Tomcat Users List
Subject: RE: NPE in ActionForm where it is not be possible

Yoav,

Wow, had not considered that. I'm going to sort of say this back to be
sure I understand though :)

So if we stop Tomcat then my session, with any stored attributes that
contain an ActionForm, will be serialized to persistent storage
(disk). Upon restart the sesson and its attributes are
deserialized(reconstituted so to speak). The CATCH is that for any
included ActionForms, standard object initialization does not occur -
either through static initializers or through the constructor. So I can
end up with a NPE when I reference the log instance variable.

OK, that definitely explains the problem. It is only after a restart
that this is occurring - consistently. So, how to fix this.

Ugh! I've got 127 classes that use this construct! The good news is
that
the objects that are likely to be persisted to the session tend to be
either ActionForms or a limited number of domain objects - about 50 in
total. They mostly derive from common superclasses so I might get some
help by putting an inner class that wraps the Log type in the
superclass. But, I need access to the actual class name of the instance
so I can initialize the Log object with objectname.class.

Is there a more elegant way to do this? I know using AOP would offer
some much more elegant solutions, but do not think I'm ready to throw
this at a production system.

Any comments/ideas are welcome. And thanks again to Yoav for helping me
to see the light here.

 - Richard

Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 Because Log is not Serializable, you can't put it in the session.  So
 making it transient is fine.  I also saw your reasoning for making it
 dynamic rather than static.

 Tomcat will save and restore your sessions across server restarts by
 default.  That includes session attributes that are Serializable.  If
 the Form was in the session, it will be deserialized: this is not the
 same process as reconstruction.  So if you choose to stick with this
 transient modifier, you will need to check for the log being null
 before
 every time you use it.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 6:26 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
 wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private
 transient Log log = LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default
 settings in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

 I've had to look at higher priorities for a couple of days :)

 Thanks for the idea. I changed as follows:
...
// private transient Log log =
 LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
 ...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE }
...

 But, still get the NPE :(

 I'm defininig the instance variable as transient because Tomcat
 complains about saving sessions that contain a private instance
 variable (non-transient) of type Log. I was trying to get my
 sessions to persist across restarts. Does that suggest anything?

 Thank you again - Richard



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




 This e-mail, including any attachments, is a confidential business
 communication, and 

Re: manager app: sessions

2004-07-14 Thread Robert Bateman
Stephen,

I do not know if my interpretation of how TomCat tracks sessions is correct.  
Normally, I look at the number of sessions as listed on the /manager/html 
page.   But my interpretation could be *completely wrong...*

Bob

On Wednesday 14 July 2004 01:57 pm, Stephen Charles Huey wrote:
 What?  I can only find out how many sessions have been active for 30 to
 40 minutes and 120 to 130 minutes?  That doesn't seem to make sense.
 I understand if Tomcat doesn't want to update the stats too frequently,
 but what about stats on sessions logged in more than 40 minutes and less
 than 2 hours?  Why would it arbitrarily jump up to 2 hours?  And how
 likely is it that I have only 100 users who have been active for a total
 of exactly 30 to 40 minutes, but 1071 users who have been active for
 over 2 hours?  If my timeout is set to 30 minutes, then that means they
 have to keep browsing the site at least every 30 minutes to avoid
 getting timed out.  So is what you're saying right?

  30 - 40 minutes:100 sessions
  120 - 130 minutes:1071 sessions

 I mainly need to know about how many sessions are currently open.  I
 thought that first line meant that about 100 sessions have been opened
 in the past half hour, give or take 10 minutes.  Is this not true?


 - Original message -
 From: Robert Bateman [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Date: Wed, 14 Jul 2004 13:29:33 -0400
 Subject: Re: manager app:  sessions

 Stephen,

 If I understand what your asking, you are looking at statistics
 generated by
 Tomcat that tells you how many *active* sessions are still laying around
 inside the server.  But the first row tells you about sessions that have
 been
 alive between 30 and 40 minutes.  You logged in but your session was
 active
 *way* under the 30 minute lower limit for the stats one line 1.

 Bob



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



AW: standard install produces 33 processes/forks!

2004-07-14 Thread Matthias Leonhardt
Hi Mike,

Linux ipx10388 2.4.20-4GB #1 Mon Jun 28 16:21:04 UTC 2004 i686 unknown
unknown GNU/Linux

I think, these are separate processes - maybe I'm wrong?

regards,
Matthias

32115 ?S  0:07 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32116 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32118 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32119 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32120 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32121 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32122 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32123 ?S  0:01 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32124 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32128 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32129 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32133 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32137 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32138 ?S  0:00 /usr/lib/java/bin/java
-Djava.endorsed.dirs=/opt/jakarta/tomcat/common/endorsed -classpath
/usr/lib/java/lib/tools.jar:/opt/jakarta/tomcat/bin/bootstrap.jar
-Dcatalina.base=/opt/jakarta/tomcat -Dcatalina.home=/opt/jakarta/tomcat
-Djava.io.tmpdir=/opt/jakarta/tomcat/temp
org.apache.catalina.startup.Bootstrap start
32139 ?S  0:00 

Callback mechanism for Real

2004-07-14 Thread Michael Currie
I have integrate my web application with Active Directory and the JNDIRealm working 
fine.
However I need to create a workflow that detects when the Active Directory user must 
change their password at next logon is set and force them through a workflow to do 
so.  The problem I have is there doesn't seem to be a callback mechanism from within 
the REALM interface to extends/override the JNDIRealm and redirect the user to a 
different page to change their password.  Does anyone have a callback mechanism to do 
such a thing?  Or perphaps solved this problem in a different way?


Thanks

Mike Currie
Senior Web Developer
New Century Mortgage
Direct 949 743 7037
Mobile 949 279 4358
Fax 866 281 0360

 This electronic message transmission contains information from New Century which may 
 be confidential or privileged. This information is intended for the use of the 
 individuals or entity named in the message. If you are not the intended recipient, 
 be aware that any disclosure, copying, distribution or use of the contents of this 
 transmission is strictly prohibited. If you have received this electronic 
 transmission in error, please notify us immediately by telephone and delete the 
 message from your system. Thank you.
 


Re: out of memory, GC doesn't cleaning up

2004-07-14 Thread Robert Bateman
NOT a direct answer to your question...

The IBM Developer Works site has a wonderful set of tutorials on GC and Java.  
They can be found at 
http://www-106.ibm.com/developerworks/views/java/articles.jsp?sort_order=descexpand=sort_by=Dateshow_abstract=trueview_by=Searchsearch_by=performance%3A
  
They are written by the folks over at JavaPerformanceTuning.com (another 
wonderful site by the way.)

To date, I've only read 3 of the GC articles but I've already learned a LOT.

Hope this helps!

Bob


On Wednesday 14 July 2004 09:43 am, Futchi wrote:
 Hi all,
 I am running an app. with several threads running in the
 background; these threads are simply loading data into the servlet
 context, and writing files out streams.

 A thread updating 5 parameters in the servlet context
 A thread writing each of these parameters to a new file

 Both threads sleeps for only 1 second.

 In each cycle I am closing and flushing the out streams, and assign null
 to all objects

 While monitoring the memory usage, I can see it just increasing, until
 the JVM reach the max size of the memory


 Catalina.bat JAVA_OPTS

 set JAVA_OPTS=-server -Xms256m -Xmx256m -XX:NewSize=64m
 -XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
 -XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m -Xss128k
 -XX:+DisableExplicitGC -verbose:gc


 I searched java.sun.com but did not find any indication or help docs to
 this error, please help


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



Re: standard install produces 33 processes/forks!

2004-07-14 Thread QM
On Wed, Jul 14, 2004 at 08:49:10PM +0200, Matthias Leonhardt wrote:
: Linux ipx10388 2.4.20-4GB #1 Mon Jun 28 16:21:04 UTC 2004 i686 unknown
: unknown GNU/Linux
: 
: I think, these are separate processes - maybe I'm wrong?

No; they're threads of a single process.
This is described in the archives.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Tomcat 5 fails on serialized objects

2004-07-14 Thread Keshav Sarin
I have a  class that implements Serializable. This class is put in a web
app deployed under TC. when the webapp is accessed via a browser, an
instance of this class is placed in the web session by the webapp. 

If an active session contains an instance of this class and if TC is
restarted, when webapp tries to create an instance of this class, TC
throws a ClassNotFoundException for this class.

Everything works fine if the webapp cleans the session i.e. by calling
session.invalidate().

What is happening here? Does TC persist the session? 

Using TC 5.0.25, Win XP. 

Thanks
Keshav




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



RE: Tomcat 5 fails on serialized objects

2004-07-14 Thread Shapira, Yoav

Hi,
TC persists the session, yes, but that doesn't explain a
ClassNotFoundException.  Is the CNFE in your own code?  If so post the
relevant chunk.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Keshav Sarin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 3:25 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 fails on serialized objects

I have a  class that implements Serializable. This class is put in a
web
app deployed under TC. when the webapp is accessed via a browser, an
instance of this class is placed in the web session by the webapp.

If an active session contains an instance of this class and if TC is
restarted, when webapp tries to create an instance of this class, TC
throws a ClassNotFoundException for this class.

Everything works fine if the webapp cleans the session i.e. by calling
session.invalidate().

What is happening here? Does TC persist the session?

Using TC 5.0.25, Win XP.

Thanks
Keshav




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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat 5 fails on serialized objects

2004-07-14 Thread Keshav Sarin
The error is inside the webapp. The error message is following:

20040714 01:43:46 ERROR - Exception Message
[java.lang.NoClassDefFoundError
at com.xxx.Manager.getUser(Manager.java:525)

Line 525 in Manager.java has the following code:
User user = new User();

The class User is a java bean that implements Serializable. Later in a
servlet the user object is put under session as an attribute.

If the session is still active and TC is restarted, I get the above
exception. There are no problems if the session is cleaned in the
webapp.

Also, this started hapenning only after the User object was made to
implement serializable. There are no problems if the User object doesn't
implement Serializable.

Thanks
Keshav


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



Re: Running Tomcat as service on Win2003 Server

2004-07-14 Thread Ty Mercer
wha  The actual limitations are max number of cpu's, disk size and
memory, not applications.

I have no issues with any type of program not loading on a web edition
install of 2k3 over one of Standard or Enterprise 2k3.

The error log that Tomcat generates is going to provide more
information that the windows Event log.

I have tomcat running on several 2k3 web editon servers just fine, yet
they are running with apache and not IIS (they are running as services
though).

Can you provide some more info on your configuration to assist in
troubleshooting?

On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
 What version of Win2003 sever are you running, Standard, Web Edition?
 
 Web edition is made only to serve web pages.  Some software won't even
 LOAD on it.
 
 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058
 
 
 
 -Original Message-
 From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 11:03 AM
 To: 'Tomcat Users List'
 Subject: Running Tomcat as service on Win2003 Server
 
 Hello,
 
 I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
 with
 IIS 6.
 
 The service will start and stop right away.
 
 Looking into the event viewer, the log indicated that Tomcat failed to
 start.
 
 Could anyone tell me what's wrong?  We have the same version of Tomcat
 running fine on Win2K server.
 
 Thanks very much.
 
 Bao-Ha Dam Bui
 
 *
 This communication may contain information that is proprietary,
 privileged,
 confidential or legally exempt from disclosure.  If you are not a named
 addressee, you are notified that you are not authorized to read, print,
 retain, copy or disseminate this communication without the consent of
 the
 sender and that doing so may be unlawful. If you have received this
 communication in error, please notify the sender via return e-mail and
 delete it from your computer. Thank you. St. Jude Medical, Inc.
 *
 
 
 -
 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]



Overidding Tomcat error pages

2004-07-14 Thread EXT-Patel, Rajesh M
I would like to override tomcats' error messages for
all webapps.  I added the following to conf/web.xml:
error-page
error-code503/error-code
location/error/error.jsp/location
/error-page
error-page
error-code404/error-code
location/error/error.jsp/location
/error-page

Then I added /error/error.jsp to the ROOT application.
404 errors work fine, however 503 errors default
back to tomcats error page.

Am I doing something wrong?

Raj

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



RE: JMX tools survey

2004-07-14 Thread EXT-Patel, Rajesh M
There is mc4j, however I have not gotten it to work properly.


-Original Message-
From: Erik Earle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 1:23 PM
To: [EMAIL PROTECTED]
Subject: JMX tools survey



I'm just curious: what tools folks are using for monitoring / managing 
Tomcat through JMX?

_
MSN Life Events gives you the tips and tools to handle the turning points in 
your life. http://lifeevents.msn.com


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



Silent installation of Tomcat 5

2004-07-14 Thread Alexio Cassani
Hi all,
I need the switch parameters that can be passed to the win32 installer of
tomcat 5 in order to silent install it.

At now I've found the following:

- /S enable the silent installation
- /d which indicates the destination installation folder

any suggestion?

TIA
Alexio


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



Do servlets as welcome-files work in TC5?

2004-07-14 Thread K.C. Baltz
I'm having trouble using a servlet as a welcome file in Tomcat 5.  I 
haven't found any definitive documentation on how to do it (The Servlet 
2.4 spec doesn't even seem to be clear), but I've tried the following  
(taken from: 
http://www.onjava.com/pub/a/onjava/2004/02/11/jspcookbook.html):

|servlet
   servlet-nameMyServlet/servlet-name.
   servlet-classcom.jspservletcookbook.MyServlet/servlet-class
   /servlet
   !-- optionally map the 'MyServlet' servlet to a URL pattern --
   servlet-mapping
   servlet-nameMyServlet/servlet-name
   url-pattern/myservlet/url-pattern
   /servlet-mapping
   !-- rest of web.xml ... --|
|welcome-file-list
   welcome-fileMyServlet/welcome-file
   welcome-filedefault.jsp/welcome-file
   /welcome-file-list|
The names were changed to match my particular needs, but the 
functionality should have been the same.  I'm using the 2.4 xsd.   The 
servlet I'm trying to map is a Struts ActionServlet, so the URL pattern 
is actually *.do, not /myservlet, but my understanding is that it 
shouldn't matter.   With that all done, requests to 
http://mymachine/myWebapp/  should call MyServlet, but they don't.  
Either default.jsp is returned or a directory listing if default.jsp is 
missing. 

Does this work in TC5, and if so, how do I make it work?
K.C.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Running Tomcat as service on Win2003 Server

2004-07-14 Thread Birt, Jeffrey
Web Edition will not run any 'Enterprise' Applications (from MS at
least).  I've tried SQL 2000 with no luck.  

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Ty Mercer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 2:50 PM
To: Tomcat Users List
Subject: Re: Running Tomcat as service on Win2003 Server

wha  The actual limitations are max number of cpu's, disk size and
memory, not applications.

I have no issues with any type of program not loading on a web edition
install of 2k3 over one of Standard or Enterprise 2k3.

The error log that Tomcat generates is going to provide more
information that the windows Event log.

I have tomcat running on several 2k3 web editon servers just fine, yet
they are running with apache and not IIS (they are running as services
though).

Can you provide some more info on your configuration to assist in
troubleshooting?

On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
 What version of Win2003 sever are you running, Standard, Web Edition?
 
 Web edition is made only to serve web pages.  Some software won't even
 LOAD on it.
 
 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058
 
 
 
 -Original Message-
 From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 11:03 AM
 To: 'Tomcat Users List'
 Subject: Running Tomcat as service on Win2003 Server
 
 Hello,
 
 I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
 with
 IIS 6.
 
 The service will start and stop right away.
 
 Looking into the event viewer, the log indicated that Tomcat failed to
 start.
 
 Could anyone tell me what's wrong?  We have the same version of Tomcat
 running fine on Win2K server.
 
 Thanks very much.
 
 Bao-Ha Dam Bui
 
 *
 This communication may contain information that is proprietary,
 privileged,
 confidential or legally exempt from disclosure.  If you are not a
named
 addressee, you are notified that you are not authorized to read,
print,
 retain, copy or disseminate this communication without the consent of
 the
 sender and that doing so may be unlawful. If you have received this
 communication in error, please notify the sender via return e-mail and
 delete it from your computer. Thank you. St. Jude Medical, Inc.
 *
 
 
 -
 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]



Re: Do servlets as welcome-files work in TC5?

2004-07-14 Thread QM
On Wed, Jul 14, 2004 at 02:22:29PM -0700, K.C. Baltz wrote:
:  welcome-file-list
:welcome-fileMyServlet/welcome-file
:welcome-filedefault.jsp/welcome-file
:/welcome-file-list|
: 
: The names were changed to match my particular needs, but the 
: functionality should have been the same.  I'm using the 2.4 xsd.   The 
: servlet I'm trying to map is a Struts ActionServlet, so the URL pattern 
: is actually *.do, not /myservlet, but my understanding is that it 
: shouldn't matter.

Have you actually tried /myservlet.do, or whatever?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Do servlets as welcome-files work in TC5?

2004-07-14 Thread K.C. Baltz
Yes, I tried that first actually, but had no success with it either.
K.C.
QM wrote:
On Wed, Jul 14, 2004 at 02:22:29PM -0700, K.C. Baltz wrote:
:  welcome-file-list
:welcome-fileMyServlet/welcome-file
:welcome-filedefault.jsp/welcome-file
:/welcome-file-list|
: 
: The names were changed to match my particular needs, but the 
: functionality should have been the same.  I'm using the 2.4 xsd.   The 
: servlet I'm trying to map is a Struts ActionServlet, so the URL pattern 
: is actually *.do, not /myservlet, but my understanding is that it 
: shouldn't matter.

Have you actually tried /myservlet.do, or whatever?
-QM
 

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


lost session

2004-07-14 Thread dom
Hi

I don't know if this list is the right one, but I'd like to find some
information about my session problem :

I'm using tomcat 5.0.27 on win2000, j2sdk-1.4.2_04
My problem is that I have a jsp including custom tags, everything is fine
when the jsp shows in IE6.
But when I want to edit this page with MS-Word 2003 using the IE edit
button, Word reloads the page, and the custom tags are empty because the
session is lost. (in fact it' a new session, and Word loads the jsp twice).
Does anybody have a solution to this problem ?

Dom

Re: lost session

2004-07-14 Thread Robert Bateman
On Wednesday 14 July 2004 06:02 pm, dom wrote:
 I'm using tomcat 5.0.27 on win2000, j2sdk-1.4.2_04
 My problem is that I have a jsp including custom tags, everything is fine
 when the jsp shows in IE6.
 But when I want to edit this page with MS-Word 2003 using the IE edit
 button, Word reloads the page, and the custom tags are empty because the
 session is lost. (in fact it' a new session, and Word loads the jsp twice).
 Does anybody have a solution to this problem ?

Isn't that proper behaviour?  Word is a seperate app. loading a seperate 
session, etc.

Bob

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



RE: lost session

2004-07-14 Thread Dale, Matt

I'd guess that word was acting as another browser so new cookies and all that so there 
isnt really any way around it unless you recode your application to store session 
information elsewhere and perhaps access it using the host IP as a key or something 
like that.

-Original Message-
From: dom [mailto:[EMAIL PROTECTED]
Sent: 14 July 2004 23:03
To: Tomcat Users List
Subject: lost session


Hi

I don't know if this list is the right one, but I'd like to find some
information about my session problem :

I'm using tomcat 5.0.27 on win2000, j2sdk-1.4.2_04
My problem is that I have a jsp including custom tags, everything is fine
when the jsp shows in IE6.
But when I want to edit this page with MS-Word 2003 using the IE edit
button, Word reloads the page, and the custom tags are empty because the
session is lost. (in fact it' a new session, and Word loads the jsp twice).
Does anybody have a solution to this problem ?

Dom
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Multiple Tomcat Instance Administration

2004-07-14 Thread EXT-Patel, Rajesh M
Are there any tools that can Administer multiple tomcat instances?

I found this tool:
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview

But it is very basic and does not allow editing of
the server.xml.

Raj

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



re-deploy a webapp with new .properties files

2004-07-14 Thread Charles N. Harvey III
Hello again.
I push myapp.war file to my staging server.  Then I use the deploy
function in the manager app.
http://server/manager/deploy?war=jar:file:/wars/myapp/1.3/myapp.war!/update=true
Most of the app gets reloaded, which is great.  But some things do not.
Like anything in the /WEB-INF/classes/ directory.  Not sure yet about
the /WEB-INF/lib/ directory.
Am I doing something wrong?  Is there a different command?  After I deploy
I tried reloading.  Same result.
Seems like the only way to get Tomcat to reload things like .properties
files is to restart it.  I know this can't be the case, so I'm hoping 
someone
could point out to where I missed that in the documentation.

Thanks again.
Charlie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Richard Mixon (qwest)
Yoav - thanks for the confirmation. Its not that bad - 1) We do not
restart very often; 2) I've been wanting to clean up the logging in this
system for a while. This will provide that opportunity :) Peace -
Richard


Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 I just wanted to confirm your understanding is correct.  It's
 unfortunate to discover this now, from your perspective, since you
 already have many classes affected by this, but then again better late
 than never ;)

 I tend to agree about throwing AOP into a production system at this
 point in time.

 In production code I tend to use static loggers so this is not an
 issue
 for me, and there are other workarounds of varying applicability, such
 as checking for a null logger before using it (a tiny checkLogger
 method
 in your superclass called by every method, or something like that:
 it's
 slow and ugly, but it works and depending on other constraints you may
 want this).

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 1:43 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 Yoav,

 Wow, had not considered that. I'm going to sort of say this back to
 be sure I understand though :)

 So if we stop Tomcat then my session, with any stored attributes that
 contain an ActionForm, will be serialized to persistent storage
 (disk). Upon restart the sesson and its attributes are
 deserialized(reconstituted so to speak). The CATCH is that for any
 included ActionForms, standard object initialization does not
 occur - either through static initializers or through the
 constructor. So I can end up with a NPE when I reference the log
 instance variable.

 OK, that definitely explains the problem. It is only after a restart
 that this is occurring - consistently. So, how to fix this.

 Ugh! I've got 127 classes that use this construct! The good news is
 that the objects that are likely to be persisted to the session tend
 to be either ActionForms or a limited number of domain objects -
 about 50 in total. They mostly derive from common superclasses so I
 might get some help by putting an inner class that wraps the Log
 type in the superclass. But, I need access to the actual class name
 of the instance so I can initialize the Log object with
 objectname.class.

 Is there a more elegant way to do this? I know using AOP would offer
 some much more elegant solutions, but do not think I'm ready to
 throw this at a production system.

 Any comments/ideas are welcome. And thanks again to Yoav for helping
 me to see the light here.

 - Richard

 Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 Because Log is not Serializable, you can't put it in the session.
 So making it transient is fine.  I also saw your reasoning for
 making it dynamic rather than static.

 Tomcat will save and restore your sessions across server restarts by
 default.  That includes session attributes that are Serializable.
 If the Form was in the session, it will be deserialized: this is
 not the same process as reconstruction.  So if you choose to stick
 with this transient modifier, you will need to check for the log
 being null before every time you use it.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 6:26 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
 wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private
 transient Log log = LogFactory.getLog(ChartWizardForm.class);
 ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using
 a form instance across restarts? I've got pretty much default
 settings in Tomcat:

 I notice, you define/initialize the instance variable log at
 its declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

 I've had to look at higher priorities for a couple of days :)

 Thanks for the idea. I changed as follows:
...
// private transient Log log =
 LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
 ...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // --
ADDEDINITIALIZATION HERE } ...

 But, still get the NPE :(

 I'm defininig the instance variable as transient because Tomcat
 complains about saving sessions that contain a private instance
 variable (non-transient) of type Log. I was trying to get my
 sessions to persist across restarts. Does that 

RE: Tomcat 5 fails on serialized objects

2004-07-14 Thread Keshav Sarin
The error is inside the webapp. The error message is following:

20040714 01:43:46 ERROR - Exception Message
[java.lang.NoClassDefFoundError
at com.xxx.Manager.getUser(Manager.java:525)

Line 525 in Manager.java has the following code:
User user = new User();

The class User is a java bean that implements Serializable. Later in a
servlet the user object is put under session as an attribute.

If the session is still active and TC is restarted, I get the above
exception. There are no problems if the session is cleaned in the
webapp.

Also, this started hapenning only after the User object was made to
implement serializable. There are no problems if the User object
doesn't
implement Serializable.

Does TC behave different for serialized objects?

Thanks
Keshav



 [EMAIL PROTECTED] 07/14/04 01:34PM 

Hi,
TC persists the session, yes, but that doesn't explain a
ClassNotFoundException.  Is the CNFE in your own code?  If so post the
relevant chunk.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 3:25 PM
To: [EMAIL PROTECTED] 
Subject: Tomcat 5 fails on serialized objects

I have a  class that implements Serializable. This class is put in a
web
app deployed under TC. when the webapp is accessed via a browser, an
instance of this class is placed in the web session by the webapp.

If an active session contains an instance of this class and if TC is
restarted, when webapp tries to create an instance of this class, TC
throws a ClassNotFoundException for this class.

Everything works fine if the webapp cleans the session i.e. by
calling
session.invalidate().

What is happening here? Does TC persist the session?

Using TC 5.0.25, Win XP.

Thanks
Keshav




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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
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: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Koon Yue Lam
Yes, I can't agree with this more
u need to do sdome testing, use JUnit if u can
But I would prefer not only use String.equals, but actually print out
the HEX value of the string
u need to print out the HEX value in:
Just before the JSP form start submit
when the action start process the form
just before any database process
after that, goto Mysql console and print out the HEX value that u just
insert of update

and do the same when u retrieve that value from database

in any case, all the above HEX values should be the same

I know it is ignoring but many people go throught this, sometimes ago
I have the exact problem like this when I use Mysql + PHP + SQL Server
to do database sync.

Regards

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



Running Tomcat as service on Win2000 Server

2004-07-14 Thread Aris Javier
Hello!

Can anybody tell me how to run Tomcat 5.0.25 as a SERVICE on
windows 2000 server?

Please in step by step explanation... 

Thanks a lot!!!

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 5:28 AM
To: Tomcat Users List
Subject: RE: Running Tomcat as service on Win2003 Server


Web Edition will not run any 'Enterprise' Applications (from MS at
least).  I've tried SQL 2000 with no luck.  

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Ty Mercer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 2:50 PM
To: Tomcat Users List
Subject: Re: Running Tomcat as service on Win2003 Server

wha  The actual limitations are max number of cpu's, disk size and
memory, not applications.

I have no issues with any type of program not loading on a web edition
install of 2k3 over one of Standard or Enterprise 2k3.

The error log that Tomcat generates is going to provide more information
that the windows Event log.

I have tomcat running on several 2k3 web editon servers just fine, yet
they are running with apache and not IIS (they are running as services
though).

Can you provide some more info on your configuration to assist in
troubleshooting?

On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
 What version of Win2003 sever are you running, Standard, Web Edition?
 
 Web edition is made only to serve web pages.  Some software won't even

 LOAD on it.
 
 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058
 
 
 
 -Original Message-
 From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 11:03 AM
 To: 'Tomcat Users List'
 Subject: Running Tomcat as service on Win2003 Server
 
 Hello,
 
 I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server

 with IIS 6.
 
 The service will start and stop right away.
 
 Looking into the event viewer, the log indicated that Tomcat failed to

 start.
 
 Could anyone tell me what's wrong?  We have the same version of Tomcat

 running fine on Win2K server.
 
 Thanks very much.
 
 Bao-Ha Dam Bui
 
 *
 This communication may contain information that is proprietary, 
 privileged, confidential or legally exempt from disclosure.  If you 
 are not a
named
 addressee, you are notified that you are not authorized to read,
print,
 retain, copy or disseminate this communication without the consent of 
 the sender and that doing so may be unlawful. If you have received 
 this communication in error, please notify the sender via return 
 e-mail and delete it from your computer. Thank you. St. Jude Medical, 
 Inc.
 *
 
 
 -
 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]



Re: Running Tomcat as service on Win2003 Server

2004-07-14 Thread Ty Mercer
enterprise apps weren't being referred to.
But since you mention it, guess i'll try to install sql when i get to
the office in the morning

On Wed, 14 Jul 2004 16:28:18 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
 Web Edition will not run any 'Enterprise' Applications (from MS at
 least).  I've tried SQL 2000 with no luck.
 
 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058
 
 
 
 
 -Original Message-
 From: Ty Mercer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 2:50 PM
 To: Tomcat Users List
 Subject: Re: Running Tomcat as service on Win2003 Server
 
 wha  The actual limitations are max number of cpu's, disk size and
 memory, not applications.
 
 I have no issues with any type of program not loading on a web edition
 install of 2k3 over one of Standard or Enterprise 2k3.
 
 The error log that Tomcat generates is going to provide more
 information that the windows Event log.
 
 I have tomcat running on several 2k3 web editon servers just fine, yet
 they are running with apache and not IIS (they are running as services
 though).
 
 Can you provide some more info on your configuration to assist in
 troubleshooting?
 
 On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
  What version of Win2003 sever are you running, Standard, Web Edition?
 
  Web edition is made only to serve web pages.  Some software won't even
  LOAD on it.
 
  Jeff Birt
  Electronics Engineer
  Integrated Systems Facility
  University of Missouri - Rolla
  573.341.6058
 
 
 
  -Original Message-
  From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 14, 2004 11:03 AM
  To: 'Tomcat Users List'
  Subject: Running Tomcat as service on Win2003 Server
 
  Hello,
 
  I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
  with
  IIS 6.
 
  The service will start and stop right away.
 
  Looking into the event viewer, the log indicated that Tomcat failed to
  start.
 
  Could anyone tell me what's wrong?  We have the same version of Tomcat
  running fine on Win2K server.
 
  Thanks very much.
 
  Bao-Ha Dam Bui
 
  *
  This communication may contain information that is proprietary,
  privileged,
  confidential or legally exempt from disclosure.  If you are not a
 named
  addressee, you are notified that you are not authorized to read,
 print,
  retain, copy or disseminate this communication without the consent of
  the
  sender and that doing so may be unlawful. If you have received this
  communication in error, please notify the sender via return e-mail and
  delete it from your computer. Thank you. St. Jude Medical, Inc.
  *
 
 
  -
  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]



Re: Running Tomcat as service on Win2000 Server

2004-07-14 Thread Ty Mercer
tomcat 5 has an installer option to install as a service, although it
only sets it to auto instead of manual when you tick it.

From the docs located at this page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html


Introduction 
 
Windows 
Installing Tomcat on Windows can be done easily using the Windows
installer. Its interface and functionality is similar to other wizard
based installers, with only a few items of interest.


Installation as a service: Tomcat will be installed as a Windows
NT/2k/XP service no matter what setting is selected. Using the
checkbox on the component page sets the service as auto startup, so
that Tomcat is automatically startup when Windows starts. For optimal
security, the service should be affected a separate user, with reduced
permissions (see the Windows Services administration tool and its
documentation).
Java location: The installer will use the registry or the JAVA_HOME
environment variable to determine the base path of the JDK or a JRE.
If only a JRE (or an incorrect path) is specified, Tomcat will run but
will be unable to compile JSP pages at runtime. Either all webapps
will need to be precompiled (this can be easily done using the Tomcat
deployer), or the lib\tools.jar file from a JDK installation must be
copied to the common\lib path of the Tomcat installation.
Tray icon: When Tomcat is run as a service, there will not be any tray
icon present when Tomcat is running. Note that when choosing to run
Tomcat at the end of installation, the tray icon will be used even if
Tomcat was installed as a service.

The installer will create shortcuts allowing starting and configuring
Tomcat. It is important to note that Tomcat administration web
application can only be used when Tomcat is started.
 


On Thu, 15 Jul 2004 12:14:54 +0800, Aris Javier [EMAIL PROTECTED] wrote:
 Hello!
 
 Can anybody tell me how to run Tomcat 5.0.25 as a SERVICE on
 windows 2000 server?
 
 Please in step by step explanation...
 
 Thanks a lot!!!
 
 -Original Message-
 From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 15, 2004 5:28 AM
 To: Tomcat Users List
 Subject: RE: Running Tomcat as service on Win2003 Server
 
 Web Edition will not run any 'Enterprise' Applications (from MS at
 least).  I've tried SQL 2000 with no luck.
 
 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058
 
 -Original Message-
 From: Ty Mercer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 2:50 PM
 To: Tomcat Users List
 Subject: Re: Running Tomcat as service on Win2003 Server
 
 wha  The actual limitations are max number of cpu's, disk size and
 memory, not applications.
 
 I have no issues with any type of program not loading on a web edition
 install of 2k3 over one of Standard or Enterprise 2k3.
 
 The error log that Tomcat generates is going to provide more information
 that the windows Event log.
 
 I have tomcat running on several 2k3 web editon servers just fine, yet
 they are running with apache and not IIS (they are running as services
 though).
 
 Can you provide some more info on your configuration to assist in
 troubleshooting?
 
 On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
  What version of Win2003 sever are you running, Standard, Web Edition?
 
  Web edition is made only to serve web pages.  Some software won't even
 
  LOAD on it.
 
  Jeff Birt
  Electronics Engineer
  Integrated Systems Facility
  University of Missouri - Rolla
  573.341.6058
 
 
 
  -Original Message-
  From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 14, 2004 11:03 AM
  To: 'Tomcat Users List'
  Subject: Running Tomcat as service on Win2003 Server
 
  Hello,
 
  I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
 
  with IIS 6.
 
  The service will start and stop right away.
 
  Looking into the event viewer, the log indicated that Tomcat failed to
 
  start.
 
  Could anyone tell me what's wrong?  We have the same version of Tomcat
 
  running fine on Win2K server.
 
  Thanks very much.
 
  Bao-Ha Dam Bui
 
  *
  This communication may contain information that is proprietary,
  privileged, confidential or legally exempt from disclosure.  If you
  are not a
 named
  addressee, you are notified that you are not authorized to read,
 print,
  retain, copy or disseminate this communication without the consent of
  the sender and that doing so may be unlawful. If you have received
  this communication in error, please notify the sender via return
  e-mail and delete it from your computer. Thank you. St. Jude Medical,
  Inc.
  *
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: 

Re: Running Tomcat as service on Win2000 Server

2004-07-14 Thread Jacob Kjome
1.  Download Tomcat
2.  Unzip the archive to a directory
3.  Set CATALINA_HOME
4.  Open a command prompt and type...
%CATALINA_HOME%\bin\service.bat [install | remove]
5.  Open the services applet from the admin tools
6.  Start the Apache Tomcat service
Note that I've had to add JAVA_HOME/lib/tools.jar to the classpath (inside 
service.bat) in order for JSP compilation to work properly, but servlets 
should run fine with the stock service.bat.

Jake
At 12:14 PM 7/15/2004 +0800, you wrote:
Hello!
Can anybody tell me how to run Tomcat 5.0.25 as a SERVICE on
windows 2000 server?
Please in step by step explanation...
Thanks a lot!!!
-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 5:28 AM
To: Tomcat Users List
Subject: RE: Running Tomcat as service on Win2003 Server
Web Edition will not run any 'Enterprise' Applications (from MS at
least).  I've tried SQL 2000 with no luck.
Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058
-Original Message-
From: Ty Mercer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 2:50 PM
To: Tomcat Users List
Subject: Re: Running Tomcat as service on Win2003 Server
wha  The actual limitations are max number of cpu's, disk size and
memory, not applications.
I have no issues with any type of program not loading on a web edition
install of 2k3 over one of Standard or Enterprise 2k3.
The error log that Tomcat generates is going to provide more information
that the windows Event log.
I have tomcat running on several 2k3 web editon servers just fine, yet
they are running with apache and not IIS (they are running as services
though).
Can you provide some more info on your configuration to assist in
troubleshooting?
On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
 What version of Win2003 sever are you running, Standard, Web Edition?

 Web edition is made only to serve web pages.  Some software won't even
 LOAD on it.

 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058



 -Original Message-
 From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 11:03 AM
 To: 'Tomcat Users List'
 Subject: Running Tomcat as service on Win2003 Server

 Hello,

 I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
 with IIS 6.

 The service will start and stop right away.

 Looking into the event viewer, the log indicated that Tomcat failed to
 start.

 Could anyone tell me what's wrong?  We have the same version of Tomcat
 running fine on Win2K server.

 Thanks very much.

 Bao-Ha Dam Bui

 *
 This communication may contain information that is proprietary,
 privileged, confidential or legally exempt from disclosure.  If you
 are not a
named
 addressee, you are notified that you are not authorized to read,
print,
 retain, copy or disseminate this communication without the consent of
 the sender and that doing so may be unlawful. If you have received
 this communication in error, please notify the sender via return
 e-mail and delete it from your computer. Thank you. St. Jude Medical,
 Inc.
 *


 -
 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]


I need a pointer about persistent info for my servlet, please

2004-07-14 Thread Bret Waldow
We are deploying a servlet front end to an existing application.  When
the application is installed, the user picks some parameters, like the
install directory, that aren't known to us when we make the .WAR file we
deploy from.

 

However, our servlet needs to know this, and it needs to know it in a
way that survives redeployment of the servlet from the .WAR file - so I
can't put it into the WEB-INF/web.xml file, as this will be overwritten
when the servlet is redeployed in Tomcat.

 

During product installation, where can I write the information the user
chooses so that it will always be available to our servlet?  (And in
what form, please?)

 

I've read about a tomcat/conf/Catalina/localhost/servletname.xml file,
but I have only seen the examples for the built-in Tomcat apps, and
those don't show examples of param...something for me to use.

 

Can anyone point me to something that I can use for this?

 

Thanks,

Bret