Tomcat doesn't start inprocess

2003-12-07 Thread Tom Holmes Jr.
I have Apache 2.0.48 and Tomcat 4.1.29 and mod_jk2.dll running on Windows
2000.

I am sure that I have the Apache2 workers2.properties and httpd.conf
configured properly.
I am also sure that I have the tomcat jk2.properties and server.xml file
configured properly.

I started Apache2 and I got the following code in the Apache2 error log:

[Sat Dec 06 16:41:32 2003] [notice] Parent: Created child process 2720
[Sat Dec 06 16:41:32 2003] [notice] Child 2720: Child process is running
[Sat Dec 06 16:41:32 2003] [notice] jk2_init() Found child 2720 in
scoreboard slot 0
[Sat Dec 06 16:41:32 2003] [notice] vm.init(): Jni lib:
c:/j2sdk1.4.2_02/jre/bin/client/jvm.dll
[Sat Dec 06 16:41:33 2003] [notice] vm.open2() done
[Sat Dec 06 16:41:33 2003] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Sat Dec 06 16:41:33 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Dec 06 16:41:33 2003] [notice] jni.init() setting
stdout=c:/web/Apache2/logs/stdout.log...
[Sat Dec 06 16:41:33 2003] [notice] jni.init() setting
stderr=c:/web/Apache2/logs/stderr.log...
[Sat Dec 06 16:41:33 2003] [notice] jni.init() ARG start
[Sat Dec 06 16:41:33 2003] [notice] jni.init() calling main()...
[Sat Dec 06 16:41:33 2003] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Sat Dec 06 16:41:33 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Dec 06 16:41:33 2003] [notice] jni.init() disabling the non init hook
worker
[Sat Dec 06 16:41:33 2003] [notice] workerEnv.init() ok
C:/web/Apache2/conf/workers2.properties
[Sat Dec 06 16:41:33 2003] [error] mod_jk child init 1 0
[Sat Dec 06 16:41:33 2003] [notice] Child 2720: Acquired the start mutex.
[Sat Dec 06 16:41:33 2003] [notice] Child 2720: Starting 250 worker threads.

It all looks good, but it doesn't start Tomcat at all.   It looks like there
is an error in the stderr.log ... as follows ...

TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Try  org.apache.catalina.startup.Bootstrap
No class found

So, the first question is how do I generate more of a detailed error log,
and the second question is how do I fix this problem?

Any help would be much appreciated.Thanks.

Tom


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



Tomcat doesn't start

2003-11-05 Thread Didier Wiroth
Hi,
I've created a custom server.xml when I try to start tomcat, tomcat fails
with this output:

Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte
UTF-8 sequence.
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

What does that mean?
Thanks


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



Re: Tomcat doesn't start

2003-11-05 Thread Rodrigo Ruiz
It seems you have any non UTF-8 character in your server.xml. Check your 
file and search for accented or any other non ASCII characters.

You can also set the encoding of your xml file including the following 
statement at the beginning:

?xml  version=1.0 encoding=ISO-8859-1?

Changing ISO-8859-1 by the one you need. By default, if not included, 
the parser will suppose the encoding is UTF-8.

HTH,
Rodrigo Ruiz
Didier Wiroth wrote:

Hi,
I've created a custom server.xml when I try to start tomcat, tomcat fails
with this output:
Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte
UTF-8 sequence.
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
   at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
   at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
   at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
   at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
What does that mean?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: Tomcat doesn't start

2003-11-05 Thread Joaquin Corchero
Can you send a copy of the server.xml???

Anyway check that you didn't introduce any character at the begining of the
file


- Original Message - 
From: Didier Wiroth [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 9:48 AM
Subject: Tomcat doesn't start


 Hi,
 I've created a custom server.xml when I try to start tomcat, tomcat fails
 with this output:

 Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte
 UTF-8 sequence.
 java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
 at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
Source)
 at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
 at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
 at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
 Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

 What does that mean?
 Thanks


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



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



RE: Tomcat doesn't start

2003-11-05 Thread Didier Wiroth
It's ok now well I've opened the file, it didn't like the tabs characters.
I've removed them and now it works

 -Original Message-
 From: Joaquin Corchero [mailto:[EMAIL PROTECTED] 
 Sent: 05 November 2003 12:14
 To: Tomcat Users List
 Subject: Re: Tomcat doesn't start
 
 
 Can you send a copy of the server.xml???
 
 Anyway check that you didn't introduce any character at the 
 begining of the file
 
 
 - Original Message - 
 From: Didier Wiroth [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, November 05, 2003 9:48 AM
 Subject: Tomcat doesn't start
 
 
  Hi,
  I've created a custom server.xml when I try to start tomcat, tomcat 
  fails with this output:
 
  Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 
  1-byte UTF-8 sequence.
  java.io.UTFDataFormatException: Invalid byte 1 of 1-byte 
 UTF-8 sequence.
  at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
 Source)
  at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
  at 
 org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
  at 
 org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
  Source)
  at 
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unkn
  own
  Source)
  at
 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
 ContentDispatc
  her.dispatch(Unknown Source)
  at 
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk
  nown
  Source)
  at 
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown
  Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
 Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
  at 
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:449)
  at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39
  )
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl
  .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
  org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
  What does that mean?
  Thanks
 
 
  
 -
  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: Tomcat doesn't start under Windows XP

2003-10-26 Thread Giselle Dazzi
Sure, sorry.

My JAVA_HOME variable was not set correctly, I had included \bin where I
shouldnt have ...

Incorrect:
 F:\j2sdk1.4.1_02\bin

Correct:
 F:\j2sdk1.4.1_02

Previous posts helped me finding the problem...



- Original Message -
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 2:05 PM
Subject: Re: Tomcat doesn't start under Windows XP


 Giselle,
  Never mind, folks, I got it.

 Could you explain what the problem was, and what the fix was, so that
 others can get help when they search the archives?

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



Tomcat doesn't start under Windows XP

2003-10-26 Thread Giselle Dazzi
Hi all, 

Im having the same problem and Giorgio, my Tomcat wont start under Windows XP, I 
get the msg : 

Windows cannot find '-Djava.endorsed.dirs='.

Im using I'm using Win XP Java 1.4.2, Tomcat 4.1.27

Does anyone know what is the solution for this problem ? 

Thx 


Re: Tomcat doesn't start under Windows XP

2003-10-26 Thread Giselle Dazzi
Never mind, folks, I got it.

- Original Message -
From: Giselle Dazzi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 1:33 PM
Subject: Tomcat doesn't start under Windows XP


Hi all,

Im having the same problem and Giorgio, my Tomcat wont start under
Windows XP, I get the msg :

Windows cannot find '-Djava.endorsed.dirs='.

Im using I'm using Win XP Java 1.4.2, Tomcat 4.1.27

Does anyone know what is the solution for this problem ?

Thx




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



Re: Tomcat doesn't start under Windows XP

2003-10-26 Thread Christopher Schultz
Giselle,
Never mind, folks, I got it.
Could you explain what the problem was, and what the fix was, so that 
others can get help when they search the archives?

-chris

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


Re: Tomcat doesn't start under Windows XP

2003-10-25 Thread Jon Wingfield
I see in another post that you've got tomcat to startup. :)

The reason your approach here didn't work is because you set the 
JAVA_HOME variable locally in the current shell. When you then executed 
startup.bat it started another shell in which to run tomcat. This new 
shell didn't have its parent's environment variables, only the ones set 
globally.
Setting the environment variables using Control Panel was definately the 
way to go.

Setting the environment variables globally allowed tomcat to start. 
Changing JAVA_HOME to being an SDK install rather than a JRE will allow 
tomcat to compile jsp files on the fly.

Enjoy,

Jon

Giorgio Franceschetti wrote:


Hardee, Brenda G NAVSAFECEN wrote:

I had the same problem installing Tomcat under Win2000.  Be sure that 
all your environment variables are set properly.  I actually created a 
batch file that sets all my environment variables before I run 
Tomcat.  That solved my problem.  Be sure that you have set Java_Home 
environment under My Computer.  Here's a sample of the batch file 
(just change the directories to match your environment):

set JAVA_HOME=c:\j2sdk1.4.1
set CATALINA_HOME=D:\tomcat
set 
path=D:\tomcat\bin;c:\j3sdk1.4.1\bin;c:\winnt;c:\winnt\system32;e:\oracle\ora92\bin; 

set 
classpath=d:\tomcat\common\lib\mail.jar;d:\tomcat\common\lib\soap.jar;d:\tomcat\common\lib\activation.jar;c:\j2sks1.4.1\lib;d:\tomcat\common\lib\servlet.jar;d:\tomcat\common\lib\classes12.jar;d:\tomcat\server\lib\catalina.jar;d:\tomcat\common\lib\jaxp.jar; 

Run your batch file then to to
d:\tomcat\bin\startup
Good lucK!
 

I have tyred to set my .bat this way:
set JAVA_HOME=C:\Programmi\Java\j2re1.4.2
set CATALINA_HOME=C:\OpenSource\tomcat
set 
path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\OpenSource\tomcat\bin; 
C:\Programmi\Java\j2re1.4.2\bin
classpath=%CATALINA_HOME%\common\lib\mail.jar;%CATALINA_HOME%\common\lib\soap.jar;%CATALINA_HOME%\common\lib\activation.jar;%JAVA_HOME%\lib;%CATALINA_HOME%\common\lib\servlet.jar;%CATALINA_HOME%\common\lib\classes12.jar;%CATALINA_HOME%\server\lib\catalina.jar;%CATALINA_HOME%\common\lib\jaxp.jar; 

CD %CATALINA_HOME%\bin
startup
but it didn't work.. :-(

Giorgio





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


Tomcat doesn't start under Windows XP

2003-10-24 Thread Giorgio Franceschetti
I'm trying to start Tomcat, but I'm receiving a strange error.
I'm using Win XP Java 1.4.2, Tomcat 4.1.27
Fist time I received the message: Cannot Find file -Djava.endorsed.dirs=.
So I spent some time looking into the documentation and I decided to set 
a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.
This becouse this variable it's. used into the script (CATALINA.BAT) but 
it's never set up to any value.
I don't know if it' right, I cannot find any information about this 
variable into the running.txt, but, after that, I've received a new 
message error: 
Djava.endorsed.dirs=C:\OpenSource\tomcat\common\endorsed  (obviously 
%CATALINA_HOME=c:\OpenSource\tomcat).
So, I decided to change the script , only to try to understand what's 
happening. I deleted the  -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% 
instruction.
Next time I received a new error: Cannot find file: -classpath. By th 
way, -classpath is the instruction that immediately follow the one that 
I have cancelled.
This time I thought that the error was somewhere before that instruction.
I tryed to see which were the values that the script were using.
It was trying to execute a command like that:  start Tomcat 
-Djava.endorsed.dirs=C:\Applicativi-Open-Source\tomcat\common\endorsed 
-classpath C:\Applicativi-Open-Source\tomcat\bin\bootstrap.jar 
-Dcatalina.base=C:\Applicativi-Open-Source\tomcat 
-Dcatalina.home=C:\Applicativi-Open-Source\tomcat 
-Djava.io.tmpdir=C:\Applicativi-Open-Source\tomcat\temp 
org.apache.catalina.startup.Bootstrap start

But now I don't know what more to do.
Thanks in advance for help.
 Giorgio


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


RE: Tomcat doesn't start under Windows XP

2003-10-24 Thread Shapira, Yoav

Howdy,

Fist time I received the message: Cannot Find file
-Djava.endorsed.dirs=.
So I spent some time looking into the documentation and I decided to
set
a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.

You don't need to set this variable yourself: it's set in the tomcat
startup scripts.

You got the above effort after simply installing tomcat and trying to
run it?  That's very strange.  Can you start tomcat from the Programs
Menu rather than the command line?

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: Tomcat doesn't start under Windows XP

2003-10-24 Thread Giorgio Franceschetti


Shapira, Yoav wrote:

Howdy,

 

Fist time I received the message: Cannot Find file
   

-Djava.endorsed.dirs=.
 

So I spent some time looking into the documentation and I decided to
   

set
 

a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.
   

You don't need to set this variable yourself: it's set in the tomcat
startup scripts.
 

I tryed to set it as an environment variable becouse I couldn't find any 
place in the script where it was set up.

You got the above effort after simply installing tomcat and trying to
run it?  That's very strange. 

I simply downloaded the zip file, unzipped it into my directory and 
tryed to execute the startup.bat (following the instructions into the 
running.txt).

Can you start tomcat from the Programs Menu rather than the command line?

 

Well, I've made a simply .bat that does what was written into the docs:
CD %CATALINA_HOME%\bin
startup
But even If I try from the command line I've the same result.

What do you mean with from the Programs Menu?

Giorgio



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


Re: Tomcat doesn't start under Windows XP

2003-10-24 Thread Jon Wingfield
Have you set your JAVA_HOME environment variable to be your jdk install 
directory (with no trailing slash)?
The command the script is trying to execute seems to be missing a vital 
bit: expanded_java_home\bin\java.exe

HTH,

Jon

Giorgio Franceschetti wrote:
I'm trying to start Tomcat, but I'm receiving a strange error.
I'm using Win XP Java 1.4.2, Tomcat 4.1.27
Fist time I received the message: Cannot Find file -Djava.endorsed.dirs=.
So I spent some time looking into the documentation and I decided to set 
a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.
This becouse this variable it's. used into the script (CATALINA.BAT) but 
it's never set up to any value.
I don't know if it' right, I cannot find any information about this 
variable into the running.txt, but, after that, I've received a new 
message error: 
Djava.endorsed.dirs=C:\OpenSource\tomcat\common\endorsed  (obviously 
%CATALINA_HOME=c:\OpenSource\tomcat).
So, I decided to change the script , only to try to understand what's 
happening. I deleted the  -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% 
instruction.
Next time I received a new error: Cannot find file: -classpath. By th 
way, -classpath is the instruction that immediately follow the one that 
I have cancelled.
This time I thought that the error was somewhere before that instruction.
I tryed to see which were the values that the script were using.
It was trying to execute a command like that:  start Tomcat 
-Djava.endorsed.dirs=C:\Applicativi-Open-Source\tomcat\common\endorsed 
-classpath C:\Applicativi-Open-Source\tomcat\bin\bootstrap.jar 
-Dcatalina.base=C:\Applicativi-Open-Source\tomcat 
-Dcatalina.home=C:\Applicativi-Open-Source\tomcat 
-Djava.io.tmpdir=C:\Applicativi-Open-Source\tomcat\temp 
org.apache.catalina.startup.Bootstrap start

But now I don't know what more to do.
Thanks in advance for help.
 Giorgio


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




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


RE: Tomcat doesn't start under Windows XP

2003-10-24 Thread Hardee, Brenda G NAVSAFECEN
I had the same problem installing Tomcat under Win2000.  Be sure that all your 
environment variables are set properly.  I actually created a batch file that sets all 
my environment variables before I run Tomcat.  That solved my problem.  Be sure that 
you have set Java_Home environment under My Computer.  Here's a sample of the batch 
file (just change the directories to match your environment):

set JAVA_HOME=c:\j2sdk1.4.1
set CATALINA_HOME=D:\tomcat
set 
path=D:\tomcat\bin;c:\j3sdk1.4.1\bin;c:\winnt;c:\winnt\system32;e:\oracle\ora92\bin;
set 
classpath=d:\tomcat\common\lib\mail.jar;d:\tomcat\common\lib\soap.jar;d:\tomcat\common\lib\activation.jar;c:\j2sks1.4.1\lib;d:\tomcat\common\lib\servlet.jar;d:\tomcat\common\lib\classes12.jar;d:\tomcat\server\lib\catalina.jar;d:\tomcat\common\lib\jaxp.jar;

Run your batch file then to to
d:\tomcat\bin\startup

Good lucK!

-Original Message-
From: Giorgio Franceschetti [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 14:02
To: Tomcat Users List
Subject: Re: Tomcat doesn't start under Windows XP




Shapira, Yoav wrote:

Howdy,

  

Fist time I received the message: Cannot Find file


-Djava.endorsed.dirs=.
  

So I spent some time looking into the documentation and I decided to


set
  

a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.



You don't need to set this variable yourself: it's set in the tomcat
startup scripts.
  

I tryed to set it as an environment variable becouse I couldn't find any 
place in the script where it was set up.

You got the above effort after simply installing tomcat and trying to
run it?  That's very strange. 


I simply downloaded the zip file, unzipped it into my directory and 
tryed to execute the startup.bat (following the instructions into the 
running.txt).

 Can you start tomcat from the Programs Menu rather than the command line?

  


Well, I've made a simply .bat that does what was written into the docs:
CD %CATALINA_HOME%\bin
startup

But even If I try from the command line I've the same result.

What do you mean with from the Programs Menu?

Giorgio



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


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



Re: Tomcat doesn't start under Windows XP

2003-10-24 Thread Giorgio Franceschetti


Jon Wingfield wrote:

Have you set your JAVA_HOME environment variable to be your jdk 
install directory (with no trailing slash)?
The command the script is trying to execute seems to be missing a 
vital bit: expanded_java_home\bin\java.exe

HTH,

Jon
This is what the script send to the console:
Using JAVA_HOME:   C:\Programmi\Java\j2re1.4.2
It seems to me that it's right.
But I agree with you that  there should be something missing in the command.
Giorgio
Giorgio Franceschetti wrote:

I'm trying to start Tomcat, but I'm receiving a strange error.
I'm using Win XP Java 1.4.2, Tomcat 4.1.27
Fist time I received the message: Cannot Find file 
-Djava.endorsed.dirs=.
So I spent some time looking into the documentation and I decided to 
set a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.
This becouse this variable it's. used into the script (CATALINA.BAT) 
but it's never set up to any value.
I don't know if it' right, I cannot find any information about this 
variable into the running.txt, but, after that, I've received a new 
message error: 
Djava.endorsed.dirs=C:\OpenSource\tomcat\common\endorsed  
(obviously %CATALINA_HOME=c:\OpenSource\tomcat).
So, I decided to change the script , only to try to understand what's 
happening. I deleted the  
-Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% instruction.
Next time I received a new error: Cannot find file: -classpath. By 
th way, -classpath is the instruction that immediately follow the one 
that I have cancelled.
This time I thought that the error was somewhere before that 
instruction.
I tryed to see which were the values that the script were using.
It was trying to execute a command like that:  start Tomcat 
-Djava.endorsed.dirs=C:\Applicativi-Open-Source\tomcat\common\endorsed 
-classpath C:\Applicativi-Open-Source\tomcat\bin\bootstrap.jar 
-Dcatalina.base=C:\Applicativi-Open-Source\tomcat 
-Dcatalina.home=C:\Applicativi-Open-Source\tomcat 
-Djava.io.tmpdir=C:\Applicativi-Open-Source\tomcat\temp 
org.apache.catalina.startup.Bootstrap start

But now I don't know what more to do.
Thanks in advance for help.
 Giorgio


-
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: Tomcat doesn't start under Windows XP

2003-10-24 Thread Giorgio Franceschetti


Hardee, Brenda G NAVSAFECEN wrote:

I had the same problem installing Tomcat under Win2000.  Be sure that all your environment variables are set properly.  I actually created a batch file that sets all my environment variables before I run Tomcat.  That solved my problem.  Be sure that you have set Java_Home environment under My Computer.  Here's a sample of the batch file (just change the directories to match your environment):

set JAVA_HOME=c:\j2sdk1.4.1
set CATALINA_HOME=D:\tomcat
set 
path=D:\tomcat\bin;c:\j3sdk1.4.1\bin;c:\winnt;c:\winnt\system32;e:\oracle\ora92\bin;
set 
classpath=d:\tomcat\common\lib\mail.jar;d:\tomcat\common\lib\soap.jar;d:\tomcat\common\lib\activation.jar;c:\j2sks1.4.1\lib;d:\tomcat\common\lib\servlet.jar;d:\tomcat\common\lib\classes12.jar;d:\tomcat\server\lib\catalina.jar;d:\tomcat\common\lib\jaxp.jar;
Run your batch file then to to
d:\tomcat\bin\startup
Good lucK!
 

I have tyred to set my .bat this way:
set JAVA_HOME=C:\Programmi\Java\j2re1.4.2
set CATALINA_HOME=C:\OpenSource\tomcat
set 
path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\OpenSource\tomcat\bin; 
C:\Programmi\Java\j2re1.4.2\bin
classpath=%CATALINA_HOME%\common\lib\mail.jar;%CATALINA_HOME%\common\lib\soap.jar;%CATALINA_HOME%\common\lib\activation.jar;%JAVA_HOME%\lib;%CATALINA_HOME%\common\lib\servlet.jar;%CATALINA_HOME%\common\lib\classes12.jar;%CATALINA_HOME%\server\lib\catalina.jar;%CATALINA_HOME%\common\lib\jaxp.jar;

CD %CATALINA_HOME%\bin
startup
but it didn't work.. :-(

Giorgio

-Original Message-
From: Giorgio Franceschetti [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 14:02
To: Tomcat Users List
Subject: Re: Tomcat doesn't start under Windows XP


Shapira, Yoav wrote:

 

Howdy,



   

Fist time I received the message: Cannot Find file
  

 

-Djava.endorsed.dirs=.

   

So I spent some time looking into the documentation and I decided to
  

 

set

   

a new variable JAVA_ENDORSED_DIRS = %CATALINA_HOME%\common\endorsed.
  

 

You don't need to set this variable yourself: it's set in the tomcat
startup scripts.
   

I tryed to set it as an environment variable becouse I couldn't find any 
place in the script where it was set up.

 

You got the above effort after simply installing tomcat and trying to
run it?  That's very strange. 

   

I simply downloaded the zip file, unzipped it into my directory and 
tryed to execute the startup.bat (following the instructions into the 
running.txt).

 

Can you start tomcat from the Programs Menu rather than the command line?



   

Well, I've made a simply .bat that does what was written into the docs:
CD %CATALINA_HOME%\bin
startup
But even If I try from the command line I've the same result.

What do you mean with from the Programs Menu?

Giorgio



-
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: Tomcat doesn't start under Windows XP

2003-10-24 Thread Mike Curwen
 C:\Programmi\Java\j2re1.4.2

This is a JRE?  You should be using a JDK.



 -Original Message-
 From: Giorgio Franceschetti [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 24, 2003 1:19 PM
 To: Tomcat Users List
 Subject: Re: Tomcat doesn't start under Windows XP
 
 
 
 
 Jon Wingfield wrote:
 
  Have you set your JAVA_HOME environment variable to be your jdk
  install directory (with no trailing slash)?
  The command the script is trying to execute seems to be missing a 
  vital bit: expanded_java_home\bin\java.exe
 
  HTH,
 
  Jon
 
 This is what the script send to the console:
 Using JAVA_HOME:   C:\Programmi\Java\j2re1.4.2
 It seems to me that it's right.
 But I agree with you that  there should be something missing 
 in the command. Giorgio
 
 
  Giorgio Franceschetti wrote:
 
  I'm trying to start Tomcat, but I'm receiving a strange error. I'm 
  using Win XP Java 1.4.2, Tomcat 4.1.27
 
  Fist time I received the message: Cannot Find file
  -Djava.endorsed.dirs=.
  So I spent some time looking into the documentation and I 
 decided to 
  set a new variable JAVA_ENDORSED_DIRS = 
 %CATALINA_HOME%\common\endorsed.
  This becouse this variable it's. used into the script 
 (CATALINA.BAT) 
  but it's never set up to any value.
  I don't know if it' right, I cannot find any information 
 about this 
  variable into the running.txt, but, after that, I've 
 received a new 
  message error: 
  Djava.endorsed.dirs=C:\OpenSource\tomcat\common\endorsed  
  (obviously %CATALINA_HOME=c:\OpenSource\tomcat).
  So, I decided to change the script , only to try to 
 understand what's 
  happening. I deleted the  
  -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% instruction.
  Next time I received a new error: Cannot find file: 
 -classpath. By 
  th way, -classpath is the instruction that immediately 
 follow the one 
  that I have cancelled.
  This time I thought that the error was somewhere before that 
  instruction.
  I tryed to see which were the values that the script were using.
  It was trying to execute a command like that:  start Tomcat 
  
 -Djava.endorsed.dirs=C:\Applicativi-Open-Source\tomcat\common\
 endorsed 
  -classpath C:\Applicativi-Open-Source\tomcat\bin\bootstrap.jar 
  -Dcatalina.base=C:\Applicativi-Open-Source\tomcat 
  -Dcatalina.home=C:\Applicativi-Open-Source\tomcat 
  -Djava.io.tmpdir=C:\Applicativi-Open-Source\tomcat\temp 
  org.apache.catalina.startup.Bootstrap start
 
  But now I don't know what more to do.
  Thanks in advance for help.
   Giorgio
 
 
 
  
 -
  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: Tomcat doesn't start under Windows XP

2003-10-24 Thread Giorgio Franceschetti
Well, I changed to the SDK's directory. I set my environments variables 
into the my computer section.
I don't know which one of these thing was right, but it started!  :-)
Thanks to all for the help.
Giorgio

Mike Curwen wrote:

C:\Programmi\Java\j2re1.4.2
   

This is a JRE?  You should be using a JDK.



 

-Original Message-
From: Giorgio Franceschetti [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 1:19 PM
To: Tomcat Users List
Subject: Re: Tomcat doesn't start under Windows XP



Jon Wingfield wrote:

   

Have you set your JAVA_HOME environment variable to be your jdk
install directory (with no trailing slash)?
The command the script is trying to execute seems to be missing a 
vital bit: expanded_java_home\bin\java.exe

HTH,

Jon
 

This is what the script send to the console:
Using JAVA_HOME:   C:\Programmi\Java\j2re1.4.2
It seems to me that it's right.
But I agree with you that  there should be something missing 
in the command. Giorgio

   

Giorgio Franceschetti wrote:

 

I'm trying to start Tomcat, but I'm receiving a strange error. I'm 
using Win XP Java 1.4.2, Tomcat 4.1.27

Fist time I received the message: Cannot Find file
-Djava.endorsed.dirs=.
So I spent some time looking into the documentation and I 
   

decided to 
   

set a new variable JAVA_ENDORSED_DIRS = 
   

%CATALINA_HOME%\common\endorsed.
   

This becouse this variable it's. used into the script 
   

(CATALINA.BAT) 
   

but it's never set up to any value.
I don't know if it' right, I cannot find any information 
   

about this 
   

variable into the running.txt, but, after that, I've 
   

received a new 
   

message error: 
Djava.endorsed.dirs=C:\OpenSource\tomcat\common\endorsed  
(obviously %CATALINA_HOME=c:\OpenSource\tomcat).
So, I decided to change the script , only to try to 
   

understand what's 
   

happening. I deleted the  
-Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% instruction.
Next time I received a new error: Cannot find file: 
   

-classpath. By 
   

th way, -classpath is the instruction that immediately 
   

follow the one 
   

that I have cancelled.
This time I thought that the error was somewhere before that 
instruction.
I tryed to see which were the values that the script were using.
It was trying to execute a command like that:  start Tomcat 

   

-Djava.endorsed.dirs=C:\Applicativi-Open-Source\tomcat\common\
endorsed 
   

-classpath C:\Applicativi-Open-Source\tomcat\bin\bootstrap.jar 
-Dcatalina.base=C:\Applicativi-Open-Source\tomcat 
-Dcatalina.home=C:\Applicativi-Open-Source\tomcat 
-Djava.io.tmpdir=C:\Applicativi-Open-Source\tomcat\temp 
org.apache.catalina.startup.Bootstrap start

But now I don't know what more to do.
Thanks in advance for help.
Giorgio


   

-
   

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]


PROBLEM: Tomcat doesn't start if the context directory doesn't exist

2002-12-13 Thread Renato
Hi all,

I realize a that Tomcat 4.1.12 behaves differently than 4.0.64 in the way it deals 
with the context directory. If the 
directory doesn't exist Tomcat 4.1.12 doesn't start ( with 4.0.6 does ). This is the 
message:

java.lang.IllegalArgumentException: Document base /home/client/context does not exist 
or is not a readable 
directory
at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3398)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

This is bad if you are hosting multiple sites, since the user can deletes accidently ( 
or intentionaly... ) his/her 
directory and next time you need to restart Tomcat it will fail.

Thanks
Renato - Brazil.

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




Prblm: Tomcat doesn't start on boot, JAVA_HOME not defined. Manually works fine.

2002-11-22 Thread Ola Theander
Dear subscribers.

I have a problem that my Tomcat 4.0.4 installation doesn't start on
boot. In the boot.msg file I get a record stating that the JAVA_HOME
environment variable is not defined and therefore Tomcat can't start.
The strange thing is that the JAVA_HOME is defined in the profile.local
file. If I log on directly after the boot and run the tomcat startup
script from /etc/rc.d manually the Tomcat server starts as expected.
Therefore I suspect that the problem is either that profile.local is
evaluated after the Tomcat startup script when booting or the
profile.local environment variables aren't available during boot for
some reason.

Any help on this matter would be greatly appreciated.

Kind regards, Ola Theander



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




Re: Prblm: Tomcat doesn't start on boot, JAVA_HOME not defined.Manually works fine.

2002-11-22 Thread p niemandt
Set your JAVA_HOME in /etc/profile and not profile.local 

profile.local will probably only be executed when a user logs in, as
it's local to whatever user is logging in.

On Fri, 2002-11-22 at 21:26, Ola Theander wrote:
 Dear subscribers.
 
 I have a problem that my Tomcat 4.0.4 installation doesn't start on
 boot. In the boot.msg file I get a record stating that the JAVA_HOME
 environment variable is not defined and therefore Tomcat can't start.
 The strange thing is that the JAVA_HOME is defined in the profile.local
 file. If I log on directly after the boot and run the tomcat startup
 script from /etc/rc.d manually the Tomcat server starts as expected.
 Therefore I suspect that the problem is either that profile.local is
 evaluated after the Tomcat startup script when booting or the
 profile.local environment variables aren't available during boot for
 some reason.
 
 Any help on this matter would be greatly appreciated.
 
 Kind regards, Ola Theander
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


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