RE: Running Tomcat as a Windows service

2001-08-07 Thread Ronald G. Louzon

If I remember correctly, this is due to a bug in the JDK and you can read
all about it in the jakarta tomcat-user archives as well as in the bug
reports on the Sun site (www.javasoft.com).  I used the Alexandria Software
companies Java service wrapper JavaService.exe .  It is free, distributable
and it works well.  I am sure there are other service wrappers out there
too.  



-Original Message-
From: Bryan Hendricks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 10:20 AM
To: '[EMAIL PROTECTED]'
Subject: Running Tomcat as a Windows service


Hello,

I installed Tomcat as a Windows (NT) service using jk_nt_service and set the
service's startup type as automatic, but when I log off, the service shuts
down.  Is this a bug (in Tomcat, jk_nt_service, or the JRE) and, if so, do
you know if the problem is being addressed?  If it's not a bug, are there
instructions that outline additional steps required to keep the service
running?

Thank you.



Can class load order be specified?

2001-08-06 Thread Ronald G. Louzon

I have some jar files in the web-inf\lib directory under a context.  When
the
servlet for that context is loaded and the servlet class loader auto-loads
those jar files it finds in the context's lib directory, is it possible to
specify the load order of the jar files?  If not, is there a specification
which dictates what that load order should be?   It is not defined in the
servlet spec so I assume the order is provider dependent but I was wondering
if anyone knows something different.



Can class load order be specified at context level?

2001-08-03 Thread Ronald G. Louzon

I have some jar files in the lib directory under a context.  When the
servlet for that context is loaded and the servlet class loader auto-loads
those jar files it finds in the context's lib directory, is it possible to
specify the load order of the jar files?  If not, is there a specification
which dictates what that load order should be?   It is not defined in the
servlet spec so I assume the order is provider dependent but I was wondering
if anyone knows something different.

- ron




RE: jre or jdk

2001-06-15 Thread Ronald G. Louzon

If you don't need to run things like the Soap administrator, you don't need
tools.jar

-Original Message-
From: Michael Jennings [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: jre or jdk


Bonjour!

The only thing tomcat needs out of the JDK is the tools.jar file. If you
take a tools.jar
file from a JDK and put it in your CLASSPATH, you can use a JRE to launch
tomcat.

The problem with the 8007 I don't know. I think by default tomcat listens
on port 8080. The thing to do is make sure tomcat works on port 8080
then try to get it working with apache.

Hope this helps!
-Mike


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 10:18 AM
Subject: jre or jdk


I use a apache1.3.9, tomcat 3.2.2 and the mod_jserv.so module :
I only want to run servlet not jsp!
Should I get JDK or only jre?

Just because the URL http://localhost:8007 give me :
HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
java.io.IOException: Stream broken
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)



Is the http://localhost:8007 a JSP
Thanks
__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






RE: Tomcat 4.0: Can webapps dir contain links?

2001-06-13 Thread Ronald G. Louzon

Why can't you set up a separate context for each student?  In server.xml,
you could set the doc base in each context to the appropriate student's
directory.

-Original Message-
From: Robert Evans [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 10:28 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0: Can webapps dir contain links?


Greetings,

I am trying to set up a Tomcat server to be used for some web development 
classes.  I would like to have each student have there own webapp, so that 
in the webapp dir there would be a link to their public_html directory.  In 
Tomcat4B5, it seems as though tomcat will not follow a soft link to the 
students home directory.  If I make a new directory in webapps, it works 
fine, but the link gives me a 403 application not available message.

If anyone has set up a system like this, I would greatly appreciate their
help

Bob Evans
Johns Hopkins University



RE: Bundling Tomcat

2001-06-07 Thread Ronald G. Louzon

Unless you need the JDK, you can distribute the Java Runtime Environment
(JRE) which Sun has made available.  One note: the JRE does not include
tools.jar...

>From the JRE Readme file:
-
The Java 2 Runtime Environment is intended for software developers 
and vendors to redistribute with their applications.

The Java(TM) 2 Runtime Environment contains the Java virtual machine, 
runtime class libraries, and Java application launcher that are 
necessary to run programs written in the Java progamming language. 
It is not a development environment and does not contain development 
tools such as compilers or debuggers.  For development tools, see the 
Java 2 SDK, Standard Edition.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 2:09 PM
To: [EMAIL PROTECTED]
Subject: RE: Bundling Tomcat



I have dealt with it.  The software license spells it out pretty
clearly - Tomcat is free to distribute.  No royalties, no permission
required.  What you do need to be aware of is that you can't freely
redistribute the JDK.  You'll need to either pre-compile your JSPs or
distribute another Java Compiler (like Jikes from IBM), or somehow get Sun's
legal department to give you permission.

Randy

> -Original Message-
> From: Robert L. Brueckmann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 07, 2001 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: Bundling Tomcat
> 
> 
> Hello all...I'm not sure if I'm sending this to right place 
> to ask this, but
> you're all developers and some of you might be doing 
> something similar...I
> will be developing a piece of software that is built using 
> servlets and JSPs
> and we'll be using Tomcat as our servlet container, now, when 
> the product is
> developed and tested and ready to ship...have any of you 
> bundled Tomcat with
> your product to sell to a customer and what types of 
> royalties and red tape
> do you have to go through with Apache in order to do 
> something like that?
> Is there a section of the Jakarta site that deals with all 
> these legal GPL
> issues and limitations and what have you?  Any help is 
> greatly appreciated.
> 
> And if this question can't be answered on this list, can 
> someone possibly
> head in me in the correct direction?
> 
> Much appreciated,
> Rob Brueckmann
> 
> 



RE: Jakarta Tomcat NT service stopping itself

2001-06-06 Thread Ronald G. Louzon

I reported that this Sun fix is not working for me but I am currently
running JRE 1.3.1 version: 

Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)


and the fix is in the latest build:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b21)


Sorry for the added confusion

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:31 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Jakarta Tomcat NT service stopping itself


And to remind folks, the archives are at two locations:

http://marc.theaimsgroup.com/?l=tomcat-user

http://tomcat.mslinn.com/ (under "Listservs")

-- Bill K.


> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 6:43 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Jakarta Tomcat NT service stopping itself
> 
> 
> 
>   Your problem is not reading the mailing list archives.  
> This morning
> several people were discussing this issue.  The problem is a 
> bug in Sun's
> 1.3 JVM on NT handles the user logoff event incorrectly.  Sun 
> has reported
> this fixed in the 1.3.1 version and several users here had 
> confirmed it, but
> today someone indicated that the fix wasn't working for them.  I would
> suggest (besides putting a little effort into your 
> investigation before
> asking questions) downgrading your JVM to the latest 1.2 
> (since earlier
> versions have threading issues).
> 
>   Also, there exists wrappers around the JVM that trap this logoff
> event and don't pass it to the JVM (called JavaService.exe), 
> but I would
> suggest going with a plain JVM with no wrapper unless you 
> really need 1.3
> and find that 1.3.1 doesn't work for you.  (Why introduce 
> more layers with
> more complexity and the possibility of more bugs when its not needed.)
> 
>   Randy
> 
> > -Original Message-
> > From: Tim Hughes [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 06, 2001 10:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: Jakarta Tomcat NT service stopping itself
> > 
> > 
> > 
> > I have just set up Tomcat to run as an NT service
> > (carefully following the how to from the doc).
> > 
> > Everything works fine while I am logged on to the
> > machine that I have set the service up on i.e. I can
> > connect up from a client and request servlets and
> > jsps.
> > 
> > However, when I log off from the server it appears
> > that the service is stopping, Tomcat will not service
> > requests. This is confirmed by the fact that when I
> > log back on again, the service has been stopped.
> > 
> > When I look in Control Panel\Services, the tomcat
> > service is set up exactly the same way as other
> > services and these services work fine (whether I am
> > logged on to the server or not).
> > 
> > Any suggestions on what might be the problem?
> > 
> > Tim.
> > 
> > 
> > Do You Yahoo!?
> > Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> > or your free @yahoo.ie address at http://mail.yahoo.ie
> > 
> 



RE: Jakarta Tomcat NT service stopping itself

2001-06-06 Thread Ronald G. Louzon

This is a known problem and it is due to a problem in the Sun JDK.  You can
find more info on this from the Sun site if you search for "NT + service".
To get around the problem, you could use the JavaService.exe service wrapper
which is provided free from Alexandria Consulting's site.  JavaService.exe
works fine with JDK 1.3.1.

-Original Message-
From: Tim Hughes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:09 AM
To: [EMAIL PROTECTED]
Subject: Jakarta Tomcat NT service stopping itself



I have just set up Tomcat to run as an NT service
(carefully following the how to from the doc).

Everything works fine while I am logged on to the
machine that I have set the service up on i.e. I can
connect up from a client and request servlets and
jsps.

However, when I log off from the server it appears
that the service is stopping, Tomcat will not service
requests. This is confirmed by the fact that when I
log back on again, the service has been stopped.

When I look in Control Panel\Services, the tomcat
service is set up exactly the same way as other
services and these services work fine (whether I am
logged on to the server or not).

Any suggestions on what might be the problem?

Tim.


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



RE: Java SDK 1.3.1 update ...

2001-06-06 Thread Ronald G. Louzon

I still see the problem in version 1.3.1 of the SDK so I had to use the
JavaService wrapper...

-Original Message-
From: Franklin Nwankwo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 6:30 AM
To: '[EMAIL PROTECTED]'
Subject: Java SDK 1.3.1 update ...


"Notice for JDK 1.3 users: There is a known problem
 in JDK
1.3 that affects Java applications being run as Windows NT services. The bug
causes the service to terminate when the currently logged in user logs out.
The simplest way to work around this problem is to use JDK 1.2. If your
application requires JDK 1.3 features then you may want to look into
javaserv  or JavaService
. Users have reported
success with both of these packages but there may be others that work as
well. "

Given the above, you fail to mention that the 1.3 problem is now fixed in
1.3.1 (AT LAST Sun rose to the challenge !). See
http://www.javasoft.com/j2se/1.3/relnotes.html#vm ...

Hey, Congratulations on the JavaWorld award ! 

Tomcat Rocks ! So fresh so Clean !

Regards 

Franklin 








**
The information contained in or attached to this email is intended only 
for the use of the individual or entity to which it is addressed. If you are
not the intended recipient, or a person responsible for delivering it to 
the intended recipient, you are not authorised to and must not disclose, 
copy, distribute, or retain this message or any part of it. It may contain 
information which is confidential and/or covered by legal professional 
or other privilege (or other rules or laws with similar effect in
jurisdictions 
outside England and Wales).
 
The views expressed in this email are not necessarily the views of The 
Terence Chapman Group PLC, and the company, its directors, officers 
or employees make no representation or accept any liability for its 
accuracy or completeness unless expressly stated to the contrary.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.terencechapmangroup.com

***



RE: Tomcat running as a service!

2001-06-01 Thread Ronald G. Louzon

In the Tomcat Documentation \doc directory, look at index.html.  It has a
link to "The Jakarta NT Service".  This describes what you are looking
for...

-Original Message-
From: Shailendra T Kontham [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 3:03 PM
To: [EMAIL PROTECTED]
Subject: Tomcat running as a service!


Hello all,
I just wanted to know if there is any way i can run the tomcat
as a serivce just like apache on win200.
so that it starts up as soon as i log on just like apache.
Any help will be greately appreciated.
Thanks,
Shailendra

-
Shailendra T. Kontham
Advcancework Inc., 
2-212 Center for Science and Technology
Syracuse NY-13244-4100
Off:(315)-443-4237



RE: Servlets and relative paths

2001-05-30 Thread Ronald G. Louzon

I found this in the archives (http://marc.theaimsgroup.com ).  You might
search them for more info if this doesn't work.  If you put the file in your
servlet's classpath, this code, which in this case is accessing a properties
file, should allow you to access the file. 

-

InputStream is = this.getClass().getResourceAsStream("myapp.properties"); 
Properties p = new Properties(); 
try 
{ 
   p.load(is); 
} 
catch ( java.io.IOException e ) 
{ 
// Can't load props file 

-Original Message-
From: Chris McNeilly [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: Servlets and relative paths


I've got a servlet and am trying to open files.  The problem is that its
defaulting to the tomcat/bin directory whenever I attempt to refer to
them.  How can I change this?  Hardcoding the path isn't such a good
idea as my dev environment is different from production.  These are xml
and xsl files and they are located on the webroot.

Thanks,

Chris



RE: Starting Tomcat without new DOS Window

2001-05-29 Thread Ronald G. Louzon

Tomcat can be started as a service using either jk_nt_service.exe which is
described in the Tomcat documentation or you can use Alexandria Consulting's
JavaService.exe which is available from 

http://www.alexandriasc.com/software/JavaService/index.html

Both service wrappers are free and redistributable.  Be aware that the
Apache supplied jk_nt_service.exe has a bug which causes the service to stop
when you log out of NT.  JavaService works very well and is well
documented



-Original Message-
From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 9:20 AM
To: Liste de diffusion TomCat (Adresse de messagerie)
Subject: Starting Tomcat without new DOS Window


Hi All,

Does anybody know how to start tomcat without opening a new Window?
Is it possible to start Tomcat as a service?
Thanks for help

David DELGRANCHE
[EMAIL PROTECTED]  
tel. 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX





CLASSLOADERS! FW: Contexts, Classes, Variables

2001-05-25 Thread Ronald G. Louzon
Title: RE: Contexts, Classes, Variables



This 
URL contains a good discussion concerning the classloaders.
 
-Original Message-From: Cox, Charlie 
[mailto:[EMAIL PROTECTED]]Sent: Monday, May 21, 2001 7:53 
AMTo: '[EMAIL PROTECTED]'Subject: RE: 
Contexts, Classes, Variables
My understanding is that if your class is in your classpath, it 
will be loaded once by java's bootstrap loader and they would share the same 
instance. If your class is part of your web application, it would be a different 
instance for each context.
The following thread is a good explaination of the classloader 
: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13260.html 

Charlie 
-Original Message- From: Zach 
Hollandsworth [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 18, 2001 10:49 AM To: 
[EMAIL PROTECTED] Subject: Contexts, 
Classes, Variables 
1) In Tomcat 3.2.1 do separate contexts see static variables of 
a class the same?  Or do they have separate 
ones? 
2) different versions of the same class in two contexts on the 
same tomcat? (placed in the /WEB-INF/classes directory 
of that context) 
Zach Hollandsworth 


RE: Run Tomcat as a NT Service Problem

2001-05-25 Thread Ronald G. Louzon

You can get the XERCES XML parser from the Apache web site: xml.apache.org
I am not sure about Tomcat-4.0-b5 but Tomcat 3.2.1 will not run without this
xml parser xerces.jar.

wrapper.properties is part of the tomcat zip file for version 3.2.1 .  I am
not sure how they set tomcat up as a service for version 4.0 if a
wrapper.properties file is not being used.

ron

-Original Message-
From: Pernica, Jan [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 12:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Run Tomcat as a NT Service Problem


Hi

I am using Tomcat-4.0-b5. What shall I do to run as an NT service?
wrapper.properties is missing.

Thank you

Jan

On Friday, May 25, 2001 3:49 AM, Huynh Tin [SMTP:[EMAIL PROTECTED]] wrote:
> Dear Louzon,
> Thank you for your information, but i didn't have "xerces.jar" ...This
file not existed in Jboss-Tomcat2.2 !
> What i need to do . Thank you !
>  
> I'm using JDK1.3, JBoss-Tomcat2.2
>  
> Best regards !
> Huynh Tin
>  
>  
> 
> - Original Message - 
> From: Ronald G. Louzon <mailto:[EMAIL PROTECTED]> 
> To: '[EMAIL PROTECTED]'
 
> Sent: Thursday, May 24, 2001 8:42 PM
> Subject: RE: Run Tomcat as a NT Service Problem
> 
> It sounds like you don't have "xerces.jar" as the first thing on your
classpath.   To make this the first thing on your classpath:
>  
> 1) Edit the file %TOMCAT_HOME%\conf\wrapper.properties 
> 2) You see some lines in this file that start with "wrapper.classpath".
Before the first of those lines, add a line
> wrapper.classpath=
> 3) Restart the service and see if things are better.
>  
> Also, be aware that if you are using the jk_nt_service.exe wrapper for
your NT service, and if you are using version 1.3 of the JVM, when you log
out of NT, the service will be stopped.   I had to use JavaService.exe to
get around this problem.
>  
>  
> 
> -Original Message-
> From: Huynh Tin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 11:23 PM
> To: [EMAIL PROTECTED]
> Subject: Run Tomcat as a NT Service Problem
> 
> 
> 
> Hi all , 
>  
> I used jk_nt_service.exe to add Tomcat like NT service .
>  
> I finished adding Tomcat into a NT service named TomcatService. I went to
Control Panel to start TomcatService
> It started ok , but also stoped after started. What's happen.
>  
> In "logs" dicrectory generate file named "jvm.stderr" and it's content as
follow:
>  
> java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
> 
> at java.lang.ClassLoader.defineClass0(Native Method)
> 
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> 
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> 
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> 
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> 
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> 
> at java.security.AccessController.doPrivileged(Native Method)
> 
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> 
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> 
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> 
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178)
> 
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> 
> Exception in thread "main"
> 
> Anyway, in "conf\server.xml" file, i also didn't know how to define AJPV12
connector. There are not any information about AJPV12 in this "server.xml"
file. How could i do it ?
>  
> Anybody help me , what's this error , how could i fix it ??
>  
> Thank you
> Huynh Tin
>  
>  
>  
> 


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.





RE: Run Tomcat as a NT Service Problem

2001-05-24 Thread Ronald G. Louzon



It 
sounds like you don't have "xerces.jar" as the first thing on your 
classpath.  To make this the first thing on your 
classpath:
 
1) 
Edit the file %TOMCAT_HOME%\conf\wrapper.properties 
2) You 
see some lines in this file that start with "wrapper.classpath".  Before 
the first of those lines, add a line
wrapper.classpath=
3) 
Restart the service and see if things are better.
 
Also, 
be aware that if you are using the jk_nt_service.exe wrapper for your NT 
service, and if you are using version 1.3 of the JVM, when you log out of NT, 
the service will be stopped.  I had to use JavaService.exe to get around 
this problem.
 
 

  -Original Message-From: Huynh Tin 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 11:23 
  PMTo: [EMAIL PROTECTED]Subject: Run Tomcat 
  as a NT Service Problem
  

  Hi all , 
   
  I used jk_nt_service.exe to add Tomcat like 
  NT service .
   
  I finished adding Tomcat into a NT service 
  named TomcatService. I went to Control Panel to start 
  TomcatService
  It started ok , but also stoped after 
  started. What's happen.
   
  In "logs" dicrectory 
  generate file named "jvm.stderr" and it's content as follow:
   
  
  java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
  at 
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
  at 
  java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
  at 
  java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native 
  Method)
  at 
  java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at 
  sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at 
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
  Exception in thread "main"
  Anyway, in "conf\server.xml" file, i 
  also didn't know how to define AJPV12 connector. There are not 
  any information about AJPV12 in this "server.xml" file. How could i do it 
  ?
   
  Anybody help me , what's this error , how 
  could i fix it ??
   
  Thank you
  Huynh Tin
   
   
   


NT problem : Tomcat service stops when user logs out of NT

2001-05-23 Thread Ronald G. Louzon
Title: SSL support for Tomcat 3.2.1 with IIS



I know 
this is in the archives somewhere but I cannot find it.   

 
Is 
there a problem when running the Tomcat wrapper jk_nt_service.exe with JDK/JRE 
1.3?  If I remember correctly, the problem is that if you start the service 
and then you log out of NT, the service is shutdown.  And, supposedly, this 
is not a problem when using JDK/JRE 1.3.
 
If 
this is indeed a problem, are there any suggestions as to how to run tomcat as a 
service in the JDK/JRE 1.3 environment?  Has anyone had luck with the 
JavaService app?
 
thanks,
ron


RE: NT Service Problem

2001-05-23 Thread Ronald G. Louzon



Make 
sure there is a "logs" directory under %TOMCAT_HOME%.  If there is a logs 
directory delete the logfiles and attempt to start the service.  Then, 
check the logfiles to see if they reveal anything useful.  There must be a 
logs directory before the service will run.

  -Original Message-From: Huynh Tin 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 5:46 
  AMTo: [EMAIL PROTECTED]Subject: NT Service 
  Problem
  Hi all , 
   
  I used jk_nt_service.exe to add Tomcat like NT 
  service .
  I modified wrapper.properties file and then 
  updated parameters as follows:
          
  wrapper.tomcat_home = path of TOMCAT_HOME
          
  wrapper.java_home = path of JAVA_HOME
   
  I finished adding Tomcat into a NT service named 
  TomcatService, and i saw it's existed at Control Panel. But 
  When i start service use net start "service 
  name"  Error happens like following :
   
   
  <
  The TomcatService service is 
  starting.The TomcatService service could not be 
  started.
   
  The service did not report an 
  error.
   
  More help is available by typing NET 
  HELPMSG 3534.
  >
   
  Anybody help me , what's this error , how could i 
  fix it ??
   
  Thank you
   
  Huynh Tin
   
   
   


Context loading of .properties files

2001-05-22 Thread Ronald G. Louzon



I have 
several contexts which use a ".properties" file for configuration.  I need 
each context to have its own version of that configuration file.  Is there 
a way to load properties files based on context?  I am looking for a way to 
load properties files that is similar to the way in which class and lib files 
are loaded by the servlet class loader.  Ideally, the properties files 
would be automatically loaded from some place under the WEB-INF directory of a 
given contest.
 
Thanks,
ron


RE: NT Service Failed

2001-05-21 Thread Ronald G. Louzon

Have you verified with the Services item on the NT Control Panel that the
service is actually installed?

-Original Message-
From: Ben-Hur Castilho [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 4:35 PM
To: '[EMAIL PROTECTED]'
Subject: NT Service Failed


Hi,

I´am having some problems trying to use the "jk_nt_service". After
adjusting all the configuration files an installing the service as described
in then "NT-Service-HowTo.html" the service cold not be started, returning a
error code 2186 when executing teh command "net start tomcat".

I´am using a NT 4.0 WorkStation SP6a system. The TomCat server run
normally when started in a window; just the service is not working.

What can be done to correct this ?

Tks,

Ben-Hur Castilho



RE: Running Tomcat as an NT Service

2001-05-21 Thread Ronald G. Louzon

I have found my problem.  It was being caused by some classes being loaded
by the system class loader and other files being loaded by the servlet class
loader.

By adding the servlet jar files to wrapper.properties, they were being
loaded by the system class loader.  But, they could not find any of the
servlet supporting classes because these classes, which were in the classes
directory of the servlet's context, were being loaded by the servlet class
loader.  When I removed all of my entries from wrapper.properties and put
the jars into the lib directory under my servlet's context, everything
worked.  

- ron

-Original Message-
From: Hunor Nam [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Running Tomcat as an NT Service


just make sure that your enviroment varibles are set for SYSTEM !!! not
for USER varables
Hades

-Original Message-----
From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 3:35 PM
To: '[EMAIL PROTECTED]'
Subject: Running Tomcat as an NT Service


When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its
entire
configuration from the wrapper.properties file.  What this means is that
the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same
behaviour?
If this behaviour is correct, why is so much functionality lost when
running
with the wrapper service?

Thanks,
ron



RE: Running Tomcat as an NT Service

2001-05-21 Thread Ronald G. Louzon

I currently have the following 2 system environment variables (I double
checked to be sure there were no USER environment variables of the same
name):

JAVA_HOME=jdk1.3
TOMCAT_HOME=c:\MCA5.5\tomcat-3.2.1


In the wrapper.properties file, I have made the mods:

wrapper.tomcat_home=C:\MCA5.5\tomcat-3.2.1
wrapper.java_home=C:\jdk1.3


In the Server.XML file, which is in c:\MCA5.5\tomcat-3.2.1\conf, I have
added the context:






And, in the c:\MCA5.5\tomcat-3.2.1\webapps\soap\WEB-INF\classes directory, I
have added all of my classes.  The class directory structure has been
reproduced under the directory and the classes are actually in the directory


c:\MCA5.5\tomcat-3.2.1\webapps\soap\WEB-INF\classes\samples\addressbook  

When I run Tomcat as a service, it knows the context "soap" is there but it
cannot find any of the class files.  
If I add the following line to worker.properties, everything works fine:

wrapper.class_path=$(wrapper.tomcat_home)\webapps\soap\WEB-INF\classes

Is there something else I need to configure?

thanks,
ron

-Original Message-
From: Hunor Nam [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Running Tomcat as an NT Service


just make sure that your enviroment varibles are set for SYSTEM !!! not
for USER varables
Hades

-Original Message-----
From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 3:35 PM
To: '[EMAIL PROTECTED]'
Subject: Running Tomcat as an NT Service


When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its
entire
configuration from the wrapper.properties file.  What this means is that
the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same
behaviour?
If this behaviour is correct, why is so much functionality lost when
running
with the wrapper service?

Thanks,
ron



Running Tomcat as an NT Service

2001-05-21 Thread Ronald G. Louzon

When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its entire
configuration from the wrapper.properties file.  What this means is that the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same behaviour?
If this behaviour is correct, why is so much functionality lost when running
with the wrapper service?

Thanks,
ron



Tomcat: NT Service doesn't automatically load context classes and Jars

2001-05-18 Thread Ronald G. Louzon

As I understand the Tomcat NT wrapper, all configuration for the NT
Service version of Tomcat is obtained from the wrapper.properties files.
Does this also mean that I must add to the wrapper.classpath any classes
and jar files that are needed?  When I run the Tomcat server in "normal"
mode, it scans the WEB-INF/classes and WEB-INF/lib directories under a
context and automatically makes available any jar and class files that it
finds in those directories.  The only way I can get the NT service version
to work correctly with my context is to add each of my class and jar files
into its wrapper.properties file.  Is this normal? 
 
thanks,
ron




Tomcat: NT Service doesn't automatically load context classes and Jars

2001-05-18 Thread Ronald G. Louzon

> As I understand the Tomcat NT wrapper, all configuration for the NT
> Service version of Tomcat is obtained from the wrapper.properties files.
> Does this also mean that I must add to the wrapper.classpath any classes
> and jar files that are needed?  When I run the Tomcat server in "normal"
> mode, it scans the WEB-INF/classes and WEB-INF/lib directories under a
> context and automatically makes available any jar and class files that it
> finds in those directories.  The only way I can get the NT service version
> to work correctly with my context is to add each of my class and jar files
> into its wrapper.properties file.  Is this normal? 
> 
> thanks,
> ron
> 



Tomcat: NT Service doesn't automatically load context classes and Jars

2001-05-18 Thread Ronald G. Louzon

As I understand the Tomcat NT wrapper, all configuration for the NT Service
version of Tomcat is obtained from the wrapper.properties files.  Does this
also mean that I must add to the wrapper.classpath any classes and jar files
that are needed?  When I run the Tomcat server in "normal" mode, it scans
the WEB-INF/classes and WEB-INF/lib directories under a context and
automatically makes available any jar and class files that it finds in those
directories.  The only way I can get the NT service version to work
correctly with my context is to add each of my class and jar files into its
wrapper.properties file.  Is this normal? 

thanks,
ron