RE: IIS and Tomcat

2001-06-06 Thread Kenneth Westelinck

Hi,

If you want to stop tomcat acting as a standalone web server just delete 
these lines in server.xml:

!-- Normal HTTP --
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
  Parameter name=port value=8080/
/Connector

This works for 3.2.1 and 3.2.2 . Don't know about other versions though.

hope this helps,

Kenneth Westelinck


From: Chris Faulkner [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: IIS and Tomcat
Date: Tue, 5 Jun 2001 07:13:03 +0100

Hi

Thanks, this pretty much confirms what I thought. The crucial question,
though, is whether I can have Tomcat functioning in harness with IIS to
serve my servlets but not have it operation as a web server. When its
running in support of IIS, I also have the Tomcat web server running on 
port
8080. Maybe I've overdone my install !

The other bit I'm stuck on is how to install a jar and access the classes 
in
it.

Thanks very much

Chris

  -Original Message-
  From: Todd Sussman [mailto:[EMAIL PROTECTED]]
  Sent: 06 June 2001 07:36
  To: [EMAIL PROTECTED]
  Subject: RE: IIS and Tomcat
 
 
  The messages show you are running IIS as the webserver and it is
  redirecting the servlets to tomcat.  When you shutdown tomcat, IIS can
  no longer redirect the servlets to tomcat and therefor you get an error.
  I have never set Tomcat as a stand alone server, but it can be done.
 
  Todd
 
  -Original Message-
  From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 05, 2001 12:50 AM
  To: [EMAIL PROTECTED]
  Subject: IIS and Tomcat
 
 
  Hi
 
  I am just trying to get my servlets tested on IIS (windows 2000) and
  Tomcat.
  I have done all the set-up steps, the isapi_redirect stuff seems to be
  functioning. I have IIS on W2K with Tomcat 3.2.2 and JDK 1.3.0_02. IIS
  is on
  the usual port 80.
 
  If I start up tomcat run, tomcat starts and initialises everything
  (IIS is
  also running at this time)
 
  http://localhost:8080/examples/servlet/SnoopServlet
 
  I can see that its coming from Tomcat.
 
  If I hit
 
  http://localhost/examples/servlet/SnoopServlet
 
  This also works and it tells me that the port is 80 and the server is
  Tomcat. However, I know that the port 80 is being served by IIS and I
  can
  see the request in the IIS logs, being redirected to
  /jakarta/isapi_redirect.dll. Why is it telling me that the web server is
  Tomcat ?
 
  So it all looks good, except that if I do a tomcat stop, then the
  servlet
  requests to IIS start to fail. Is this expected ? If so, can I run
  tomcat
  without opening up that 8080 port ? Maybe I'm a bit confused  but I'd
  like
  to have tomcat managing my servlets without essentially having a second
  web
  server running.
 
  Secondly, how do I get a jar loaded and get access to the classes within
  that jar ? Where do I put it and how can classes in it be aliased ?
 
  Thirdly, and probably related, how can I use the servlet tag in my
  .shtml
  web pages. I was using Apache JSSI previously.
 
  Thanks very much
 
 
  Chris Faulkner
 
 
 
 


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Where to Place Bean files

2001-06-06 Thread Hemant Singh

HI ALL:
Where do i need to place the JSP bean which i m going
to use in JSP files.
Cheers

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: Where to Place Bean files

2001-06-06 Thread Pernica, Jan

into WEB-INF/classes
or into jar which will be in WEB-INF/lib

On Wednesday, June 06, 2001 8:52 AM, Hemant Singh
[SMTP:[EMAIL PROTECTED]] wrote:
 HI ALL:
 Where do i need to place the JSP bean which i m going
 to use in JSP files.
 Cheers
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35 
 a year!  http://personal.mail.yahoo.com/


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






RE: Where to Place Bean files

2001-06-06 Thread Phillip Gibb

JSP Bean? don't you mean java bean, in that case use the jsp:useBean tag,
and you can place it anywhere in the page so long as you insert it before
any reference to the bean. It is good design to put it at the top.

be sure to place the java bean in the WEB-INF/classes dir of the context
that you are working with.

If you actually mean JSP Bean, then tell me more, I've never heard of this
before.

Phill

-Original Message-
From: Hemant Singh [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 08:52
To: [EMAIL PROTECTED]
Subject: Where to Place Bean files


HI ALL:
Where do i need to place the JSP bean which i m going
to use in JSP files.
Cheers

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Where to Place Bean files

2001-06-06 Thread Manish Bhatnagar

Hello all!
I am facing the same problem. I created a bean that I am using in a JSP.
The JSPs are in
F:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\jsp

I tried putting the Bean in the same directory where my JSP is present. It
doesn't work. Also I placed it in

E:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\WEB-INF\jsp\bean
s
but that too of no avail.

Any suggestions?
Manish
- Original Message -
From: Hemant Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 12:21 PM
Subject: Where to Place Bean files


 HI ALL:
 Where do i need to place the JSP bean which i m going
 to use in JSP files.
 Cheers

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/




how to set up new web apps

2001-06-06 Thread vinod watni

hi friends ,

 i m using standalone tomcat server.


i tried to create the drectory structure as bellow

purejsp 

   purejsp/web-inf

  : purejsp/web-inf/classes  in the webpages
directory.

  i did put some html and jsp pages in purejsp
directory and added purejsp in context path in
server.xml file.
  this i did as given in purejsp book , but when i try
to access the file from brouser i get error 404.  I
restarted the and tried but dosent work ?/

  where should  i  put my html , jsp and classes ,
beans intomact ???

  how can i create a web application without making
war file ???


 regards
 vinod


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: AUTH: j_security_check

2001-06-06 Thread P.Miller

Hi Pae,
sure I have to forward *.jsp and servlets to tomcat, but this is done in
my mod_jk.conf (forwarded to ajp13).
To be really sure I added /path to login.jsp/*.jsp ajp13 in mod_jk.conf
and /path to login.jsp/*.jsp=$(default.worker) in
uriworkermap.properties
but the result stays the same.

I don't know what this j_security_check should be: a method, class, URI
for anything else or what?

Peter

Pae Choi wrote:
 
 Tomcat, as a servlet/jsp container, has knowledge of j_security_check
 itself.
 Your FORM-based authentication may passing thrugh the HTTP server, i.e.,
 apache, and the problem behind of your problem may caused by the HTTP
 server which does not know how to forward from the HTTP server to Tomcat,
 i.e., forwarding mechanism for Servlet/JSP handling.
 
 Does it make sense to you?
 
 Pae
 
 -Original Message-
 From: P.Miller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Tuesday, June 05, 2001 12:45 AM
 Subject: AUTH: j_security_check
 
 Hi,
 
 I tried the FORM-authentification in Tomcat 3.2.1:
 
 login.jsp:
 
 form method=POST action=j_security_check 
 Username: input type=text name=j_usernamebr
 Password: input type=password name=j_passwordbr
 br
 input type=submit value=login name=j_security_check
 /form
 
 I get the correct Form but when I press 'submit', I allways get the
 error:
 
 URL j_security_check not found
 
 So I searched for a java-class or a method inside a class which is
 called 'j_security_check' but found only a CONSTANT with this name and
 not method or class-file.
 
 What's the meaning of this URL and where should I declare it that TOMCAT
 can find it?
 
 Many thanks for your help,
 Peter



RE: Where to Place Bean files

2001-06-06 Thread Phillip Gibb

to make things simplier change F:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1
to f:\tomcat

and make sure that TOMCAT_HOME is set to f:\tomcat

don't place them into WEB-INF\jsp\bean, put them into WEB-INF\classes. and
if they are package (eg jsp.bean) then place them in
WEB-INF\classes\jsp\bean

phill

-Original Message-
From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 08:59
To: [EMAIL PROTECTED]
Subject: Re: Where to Place Bean files


Hello all!
I am facing the same problem. I created a bean that I am using in a JSP.
The JSPs are in
F:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\jsp

I tried putting the Bean in the same directory where my JSP is present. It
doesn't work. Also I placed it in

E:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\manish\WEB-INF\jsp\bean
s
but that too of no avail.

Any suggestions?
Manish
- Original Message -
From: Hemant Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 12:21 PM
Subject: Where to Place Bean files


 HI ALL:
 Where do i need to place the JSP bean which i m going
 to use in JSP files.
 Cheers

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/



apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread François Andromaque



Hello
I've developped a jsp WEB site, so i've my web site 
directory with the jsp directory which contains my jsp files, the html directory 
wich contains my html files and the WEB-INF directory which contains the 
JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my jsp files 
using apache server, even so i can access via apache to the tomcat jsp examples. 
What the way to do to make apache to find the jsp files.

i'm getting the following
Error: 404
Location: /jsp/jsp_file.jsp

this is yet the right emplacement of the 
file

Thanks in advance for your help.




Re: j_security_check

2001-06-06 Thread P.Miller

Thanks Amit,

I tried it but get the same result.
I'm wondering about another thing: When I access the protected page
which is redirected to the login.jsp because of the settings in the
web.xml I see in my Tomcat console the following messages:

ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT user_pass FROM
users WHERE user_name= ?
ContextManager: JDBCRealm: Authentication unsuccessful for user null

Why starts the authentification process before submitting the login.jsp
page?

Please help
Peter

[EMAIL PROTECTED] wrote:
 
 include folllowing in ur mod_jk.conf (if using tomcat standalone) :
 JkMount  /name of context/j_security_check * ajp13
 or in httpd.conf if with apache.
 
 -Amit.
 
 - Original Message -
 From: P.Miller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 1:13 PM
 Subject: AUTH: j_security_check
 
 
  Hi,
 
  I tried the FORM-authentification in Tomcat 3.2.1:
 
  login.jsp:
 
  form method=POST action=j_security_check 
  Username: input type=text name=j_usernamebr
  Password: input type=password name=j_passwordbr
  br
  input type=submit value=login name=j_security_check
  /form
 
  I get the correct Form but when I press 'submit', I allways get the
  error:
 
  URL j_security_check not found
 
  So I searched for a java-class or a method inside a class which is
  called 'j_security_check' but found only a CONSTANT with this name and
  not method or class-file.
 
  What's the meaning of this URL and where should I declare it that TOMCAT
  can find it?
 
  Many thanks for your help,
  Peter
 



JSP reloading doesn't work

2001-06-06 Thread Andrew



 Hi, I think JSP reloading in 
Tomcat4.0b5 seems doesn't work properly - pages not reloading if I change JSP 
adn press reload button in IE while JSP not use caching(
Cache-Control:no-cache,Expires:-1). Even after restart Tomcat try to use files in "work" folder 
but reloadable set in "true" for my context,so 
it's Tomcat caching problem.
Platform Win2k+jdk1.3/1.4.

Regards.


Re: apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread P.Miller

Hi Francois,

you have to add an 'Alias' statement for your context in the mod_jk.conf
(which you should 'Include' in the httpd.conf) and also a 'JKMount
/context/*.jsp ajp13' in the same file.

HTH
Peter

 François Andromaque wrote:
 
 Hello
 I've developped a jsp WEB site, so i've my web site directory with the
 jsp directory which contains my jsp files, the html directory wich
 contains my html files and the WEB-INF directory which contains the
 JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my
 jsp files using apache server, even so i can access via apache to the
 tomcat jsp examples. What the way to do to make apache to find the jsp
 files.
 
 i'm getting the following
 Error: 404
 Location: /jsp/jsp_file.jsp
 
 this is yet the right emplacement of the file
 
 Thanks in advance for your help.
 




Re: apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread Jim Cheesman


  François Andromaque wrote:
 
  Hello
  I've developped a jsp WEB site, so i've my web site directory with the
  jsp directory which contains my jsp files, the html directory wich
  contains my html files and the WEB-INF directory which contains the
  JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my
  jsp files using apache server, even so i can access via apache to the
  tomcat jsp examples. What the way to do to make apache to find the jsp
  files.
 
  i'm getting the following
  Error: 404
  Location: /jsp/jsp_file.jsp
 


One thing I've noticed when using apache and tomcat is that the paths are 
treated differently - from within tomcat /jsp will be within your webapp, 
while from apache it is not.

(i.e.:
/webapps/app/jsp - tomcat
/webapps/jsp - apache

Try adding the webapp name to the path.

HTH,
Jim


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
 I am becoming 
increasingly worried that
  there isn't enough anxiety in 
my life.





Tomcat as a service

2001-06-06 Thread David DELGRANCHE

Hi all,

I'm discovering Tomcat on NT. It seems to work fine but I have a problem: 
Is there a way to force Tomcat to start as a service and without openning a 
new window?
Perhaps this is a stupid question, but I thank you for help!
David.

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






Apache says no permission to pick Tomcat files on linux

2001-06-06 Thread Krishna Kant T

I have configured tomcat3.2 to run with apache 1.3.19 on red hat linux
7.

the mod_jserv module has been loaded and an alias points requests like
http://localhost/my/   to tomcat/webapps/root/my where the jsp files are
located. apache reports an error saying no permission to my

this config works on win nt.

regards
krishnakant






Re: Tomcat as a service

2001-06-06 Thread Krishna Kant T

after u install tomcat as a service with name xxx use
net start xxx
to start
and
net stop xxx
to stop


-krishnakant

David DELGRANCHE wrote:

 Hi all,

 I'm discovering Tomcat on NT. It seems to work fine but I have a problem:
 Is there a way to force Tomcat to start as a service and without openning a
 new window?
 Perhaps this is a stupid question, but I thank you for help!
 David.

 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




RE: Tomcat as a service

2001-06-06 Thread David DELGRANCHE

OK but how can I start tomcat as a service?

-Message d'origine-
De: Krishna Kant T [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 6 juin 2001 10:15
A:  [EMAIL PROTECTED]
Objet:  Re: Tomcat as a service

after u install tomcat as a service with name xxx use
net start xxx
to start
and
net stop xxx
to stop


-krishnakant

David DELGRANCHE wrote:

 Hi all,

 I'm discovering Tomcat on NT. It seems to work fine but I have a problem:
 Is there a way to force Tomcat to start as a service and without openning a
 new window?
 Perhaps this is a stupid question, but I thank you for help!
 David.

 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




Re: apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread François Andromaque

I'm using jserv but it's the same thing
Here is my tomcat.conf added to my httpd.conf :

 All jsp files will go to tomcat 
#ApJServMount default /root

ApJServMount default /my_web_directory
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

## Context mapping - all requests go to tomcat

ApJServMount /examples /my_web_directory

here is the returned error
Syntax error on line 39 of /usr/jakarta-tomcat/conf/tomcat.conf:
ApJServMount: secret file (3rd field): cannot entirely read file
'/my_web_directory

what do you mean by alias statement?


- Original Message -
From: P.Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 9:56 AM
Subject: Re: apache don't find my jsp files but works whith examples jsp
files


 Hi Francois,

 you have to add an 'Alias' statement for your context in the mod_jk.conf
 (which you should 'Include' in the httpd.conf) and also a 'JKMount
 /context/*.jsp ajp13' in the same file.

 HTH
 Peter

  François Andromaque wrote:
 
  Hello
  I've developped a jsp WEB site, so i've my web site directory with the
  jsp directory which contains my jsp files, the html directory wich
  contains my html files and the WEB-INF directory which contains the
  JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my
  jsp files using apache server, even so i can access via apache to the
  tomcat jsp examples. What the way to do to make apache to find the jsp
  files.
 
  i'm getting the following
  Error: 404
  Location: /jsp/jsp_file.jsp
 
  this is yet the right emplacement of the file
 
  Thanks in advance for your help.
 
 




Re: Tomcat as a service

2001-06-06 Thread Krishna Kant T

c:\net start xxx
will start xxx service
and
c:\net stop xxx
will stop xxx service

-krishnakant

David DELGRANCHE wrote:

 OK but how can I start tomcat as a service?

 -Message d'origine-
 De: Krishna Kant T [SMTP:[EMAIL PROTECTED]]
 Date:   mercredi 6 juin 2001 10:15
 A:  [EMAIL PROTECTED]
 Objet:  Re: Tomcat as a service

 after u install tomcat as a service with name xxx use
 net start xxx
 to start
 and
 net stop xxx
 to stop

 -krishnakant

 David DELGRANCHE wrote:

  Hi all,
 
  I'm discovering Tomcat on NT. It seems to work fine but I have a problem:
  Is there a way to force Tomcat to start as a service and without openning a
  new window?
  Perhaps this is a stupid question, but I thank you for help!
  David.
 
  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




Re: apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread François Andromaque

i've nothing in the webapp directory, all the Beans, all the the html file
and all the the jsp file are in the directory /my_web_directory
if i try /jsp/requested.jsp or /web_directory_name/jsp/requested.jsp
the requested.jsp is not found.
- Original Message -
From: Jim Cheesman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 10:01 AM
Subject: Re: apache don't find my jsp files but works whith examples jsp
files



   François Andromaque wrote:
  
   Hello
   I've developped a jsp WEB site, so i've my web site directory with the
   jsp directory which contains my jsp files, the html directory wich
   contains my html files and the WEB-INF directory which contains the
   JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my
   jsp files using apache server, even so i can access via apache to the
   tomcat jsp examples. What the way to do to make apache to find the jsp
   files.
  
   i'm getting the following
   Error: 404
   Location: /jsp/jsp_file.jsp
  


 One thing I've noticed when using apache and tomcat is that the paths are
 treated differently - from within tomcat /jsp will be within your webapp,
 while from apache it is not.

 (i.e.:
 /webapps/app/jsp - tomcat
 /webapps/jsp - apache

 Try adding the webapp name to the path.

 HTH,
 Jim


 --

*   Jim Cheesman   *
  Trabajo:
 [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  I am becoming
 increasingly worried that
   there isn't enough anxiety in
 my life.





Re: apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread Krishna Kant T

an alias in httpd.conf of apache as to include my-apache-tomcat.conf which
contains the directive as to where to look for files under
http://localhost/my/

the jsp files are present in tomcat/webapps/root/my/

i am running tomcat under a different login. could that be a possible problem?

-krishnakant

François Andromaque wrote:

 I'm using jserv but it's the same thing
 Here is my tomcat.conf added to my httpd.conf :

  All jsp files will go to tomcat 
 #ApJServMount default /root

 ApJServMount default /my_web_directory
 AddType text/jsp .jsp
 AddHandler jserv-servlet .jsp

 ## Context mapping - all requests go to tomcat

 ApJServMount /examples /my_web_directory

 here is the returned error
 Syntax error on line 39 of /usr/jakarta-tomcat/conf/tomcat.conf:
 ApJServMount: secret file (3rd field): cannot entirely read file
 '/my_web_directory

 what do you mean by alias statement?

 - Original Message -
 From: P.Miller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 9:56 AM
 Subject: Re: apache don't find my jsp files but works whith examples jsp
 files

  Hi Francois,
 
  you have to add an 'Alias' statement for your context in the mod_jk.conf
  (which you should 'Include' in the httpd.conf) and also a 'JKMount
  /context/*.jsp ajp13' in the same file.
 
  HTH
  Peter
 
   François Andromaque wrote:
  
   Hello
   I've developped a jsp WEB site, so i've my web site directory with the
   jsp directory which contains my jsp files, the html directory wich
   contains my html files and the WEB-INF directory which contains the
   JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my
   jsp files using apache server, even so i can access via apache to the
   tomcat jsp examples. What the way to do to make apache to find the jsp
   files.
  
   i'm getting the following
   Error: 404
   Location: /jsp/jsp_file.jsp
  
   this is yet the right emplacement of the file
  
   Thanks in advance for your help.
  
  




Re: Tomcat as a service

2001-06-06 Thread Andy C


- Original Message - 
From: David DELGRANCHE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 10:13 AM
Subject: RE: Tomcat as a service


 OK but how can I start tomcat as a service?


Use gservany 
See:
http://download.cnet.com/downloads/0-10106-100-1618503.html

Or more properly 

jk_nt_service.exe see:

NT-Service-howto.html in the doc directory of the tomcat directory 

Andy C
Editor R2 Project
http://www.r2-dvd.org





Re: Apache says no permission to pick Tomcat files on linux

2001-06-06 Thread Krishna Kant T

Apache on linux also doesnt pick /examples available in tomcat
complains that it does not have permission

can somebody help?

-krishnakant

Krishna Kant T wrote:

 I have configured tomcat3.2 to run with apache 1.3.19 on red hat linux
 7.

 the mod_jserv module has been loaded and an alias points requests like
 http://localhost/my/   to tomcat/webapps/root/my where the jsp files are
 located. apache reports an error saying no permission to my

 this config works on win nt.

 regards
 krishnakant




JSP Session BUG

2001-06-06 Thread Andrew



 Hi, when I use 
session.invalidate() and on the same page located 
jsp:useBean id="xpeo" scope="session", after invalidation,I've got 
the error:
getAttribute() IllegalStateException- session 
invalidated.That't true but it's OK and code in JSP must assume that xpeo=null, 
I mean:
//generated code
 com.ezan.PEO.XmlPEO xpeo = 
null; 
boolean _jspx_specialxpeo = 
false; 
synchronized (session) 
{ 
xpeo= 
(com.ezan.PEO.XmlPEO) 
pageContext.getAttribute("xpeo",PageContext.SESSION_SCOPE);//thiscode must 
be in try/catch block for IllegalStateException 
xpeo=null 
if ( xpeo == null ) 
{ 
_jspx_specialxpeo = 
true; 
try 
{ 
xpeo = (com.ezan.PEO.XmlPEO) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
"com.ezan.PEO.XmlPEO"); 
} catch (Exception exc) 
{ 
throw new ServletException (" Cannot create bean of class 
"+"com.ezan.PEO.XmlPEO", 
exc); 
} 
pageContext.setAttribute("xpeo", xpeo, 
PageContext.SESSION_SCOPE); 
} 
}
Regards. 



Re: apache don't find my jsp files but works whith examples jsp files

2001-06-06 Thread François Andromaque

and wher must be the JAVA BEANS, in tomcat/webapps/root/my/WEB-INF?


- Original Message -
From: Krishna Kant T [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 10:40 AM
Subject: Re: apache don't find my jsp files but works whith examples jsp
files


 an alias in httpd.conf of apache as to include my-apache-tomcat.conf which
 contains the directive as to where to look for files under
 http://localhost/my/

 the jsp files are present in tomcat/webapps/root/my/

 i am running tomcat under a different login. could that be a possible
problem?

 -krishnakant

 François Andromaque wrote:

  I'm using jserv but it's the same thing
  Here is my tomcat.conf added to my httpd.conf :
 
   All jsp files will go to tomcat

  #ApJServMount default /root
 
  ApJServMount default /my_web_directory
  AddType text/jsp .jsp
  AddHandler jserv-servlet .jsp
 
  ## Context mapping - all requests go to
tomcat
 
  ApJServMount /examples /my_web_directory
 
  here is the returned error
  Syntax error on line 39 of /usr/jakarta-tomcat/conf/tomcat.conf:
  ApJServMount: secret file (3rd field): cannot entirely read file
  '/my_web_directory
 
  what do you mean by alias statement?
 
  - Original Message -
  From: P.Miller [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 06, 2001 9:56 AM
  Subject: Re: apache don't find my jsp files but works whith examples jsp
  files
 
   Hi Francois,
  
   you have to add an 'Alias' statement for your context in the
mod_jk.conf
   (which you should 'Include' in the httpd.conf) and also a 'JKMount
   /context/*.jsp ajp13' in the same file.
  
   HTH
   Peter
  
François Andromaque wrote:
   
Hello
I've developped a jsp WEB site, so i've my web site directory with
the
jsp directory which contains my jsp files, the html directory wich
contains my html files and the WEB-INF directory which contains the
JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my
jsp files using apache server, even so i can access via apache to
the
tomcat jsp examples. What the way to do to make apache to find the
jsp
files.
   
i'm getting the following
Error: 404
Location: /jsp/jsp_file.jsp
   
this is yet the right emplacement of the file
   
Thanks in advance for your help.
   
   




App does not find errorpage!

2001-06-06 Thread Dietmar Calmbach



Hi there,

i have defined a servlet context for jsp pages 
named /tvs and the location is PATH_TO_LOCATION/tvs. The errorpage is located at 
PATH_TO_LOCATION/tvs/errorpage.jsp.
In the jsp pages i want to use that page for error 
messages, I said : % page errorpage="/tvs/errorpage.jsp" ... But Tomcat does 
not find this page, because in jasper.log i found that tomcat adds the context 
path: Couldn't find Ctx(/tvs) (/tvs + /tvs/errorpage.jsp + null), which resluts 
to PATH_TO_LOCATION/tvs/tvs/errorpage.jsp.

In our IDE we dont use TOMCAT, so everything works 
fine! If we change the errropage definition to "/errorpage.jsp", the pages wont 
work in the IDE.

How can we solve that problem?

Regards
Dietmar


startup.pl, tomcat.pl, etc.

2001-06-06 Thread Christopher Berry

Hi,
I searched the Archives, and couldn't find this

Does anyone have, or know of, Perl scripts to replace the OS-specific
scripts that come with Tomcat (e.g. tomcat.bat, startup.bat, startup.sh,
etc.). 

It seems to me that homogenizing the scripts to Perl, coupled with simple,
one line, OS-specific launch scripts, would make life simpler. 

Thanks,
-- Chris

Chris Berry  --- [EMAIL PROTECTED]  -- 512-323-9479




problems with sendRedirect() on relative path

2001-06-06 Thread Ofer Baranes


 Hi 
 I am tring to use the HttpServletResponse sendRedirect() method to show a
static page but i can't use relative path  only static path (which include
the context).The problem occure because of the default '/servlet' prefix
which is used on tomcat conf\servel.xml.This  default prefix force that each
accses to servlet will contain the /servlet on the URI.
Does anyone know how to solve that ? 




Re: load balancing

2001-06-06 Thread David Cassidy (Programmer)
Title: Re: load balancing





IIRC
in the docs it says that worker.list should _only_ be 
loadbalancer if you are using a loadbalancer.


Might help as the mod_jk will know that the workers are


loadbalancer, rinv002, rinv001


rather than just loadbalancer...


David



Swart, James (Jim) ** CTR ** wrote:
 
 I am sure this us a silly question, but did you put a load on it? If
 it's
 round-robin that's one thing.. if it's SMART load-balancing.. then you
 would
 have to hammer on it for it to push to the second machine (assuming your
 configuration is correct, of course).
 
 A program like LoadRunner(tm) would be nice. It hits your server with x
 hits
 at once. I have a copy for 500 users and I use it to test the load on
 our
 servers.
 
 -Original Message-
 From: Ian Mair [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 05, 2001 2:43 AM
 To: '[EMAIL PROTECTED]'
 Subject: load balancing
 
 Hello all,
 
 I am trying to load balance 2 machines with tomcat 3.2.1
 My set up is as follows:
 mach1 has Apache with mod_jk and tomcat, mach2 only has tomcat.
 
 in the workers.properties file on mach1 I have :
 
 worker.list=loadbalancer, rinv002, rinv001
 
 worker.rinv001.port=8007
 worker.rinv001.host=localhost
 worker.rinv001.type=ajp12
 worker.rinv001.lbfactor=1
 
 worker.rinv002.port=8007
 worker.rinv002.host=10.1.2.4
 worker.rinv002.type=ajp12
 worker.rinv002.lbfactor=2
 
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=rinv001, rinv002
 
 in the mod_jk.conf file on mach1 I have :
 
 LoadModule jk_module libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile
 /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
 JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log
 
 JkLogLevel debug
 
 JkMount /*.jsp loadbalancer
 JkMount /servlet/* loadbalancer
 
 Alias /examples
 /usr/local/jakarta-tomcat-3.2.1/webapps/examples
 Directory /usr/local/jakarta-tomcat-3.2.1/webapps/examples
 Options Indexes FollowSymLinks
 /Directory
 
 JkMount /examples/servlet/* loadbalancer
 JkMount /examples/*.jsp loadbalancer
 
 
 in the apache httpd.conf file on mach1 I have:
 
 include /usr/local/jakarta-tomcat-3.2.1/conf/mod_kf.conf
 
 I then start tomcat on mach2 and mach1 and apache on mach1.
 In the mod_jk.log the three workers rinv001, rinv002 and
 loadbalancer are created but
 all requests go to mach1 and nothing is forwarded to mach2.
 
 Could anyone shed any light on what I am doing wrong.
 
 Do I need to do any configuration on mach2?
 regards
 
 Ian





RE: problems with sendRedirect() on relative path

2001-06-06 Thread Phillip Gibb

try using getContext() and getRequestDispatcher() and then include(req, res)

you can set a context in the server.xml to point to a directory where you
keep these static pages eg staticPages with the path set to
c:\staticPages

then using the
config.getContext(/staticPages).getRequestDispatcher().include 'or
forward' (request, response)

will forward to the or include the static page

this is not the same as redirect but it's just another suggestion that might
help

Phill

-Original Message-
From: Ofer Baranes [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 12:45
To: '[EMAIL PROTECTED]'
Subject: problems with sendRedirect() on relative path



 Hi 
 I am tring to use the HttpServletResponse sendRedirect() method to show a
static page but i can't use relative path  only static path (which include
the context).The problem occure because of the default '/servlet' prefix
which is used on tomcat conf\servel.xml.This  default prefix force that each
accses to servlet will contain the /servlet on the URI.
Does anyone know how to solve that ? 



Apache and Tomcat on different boxes

2001-06-06 Thread Paul Tan



Hi all,

  
 I tried searching to mailing list b4 posting here. Anyway, 
what must i put into apache's "http.conf" for mod_jk.so to enable a connection 
to a separate machine containing tomcat 3.2.2? 
  
  
  Placing both the Web Server and App server 
into 1 machine is rather well documented. But I can't seem to find any for 
separate machines.
Can someone show me where to fish? or would someone 
gimme a fish?

Thks,
Paul


RE: Where to Place Bean files

2001-06-06 Thread Hemant Singh

HI Gibb:
Well sorry for little ambigous
Yeah u got it right
Cheers
--- Phillip Gibb [EMAIL PROTECTED] wrote:
 JSP Bean? don't you mean java bean, in that case use
 the jsp:useBean tag,
 and you can place it anywhere in the page so long as
 you insert it before
 any reference to the bean. It is good design to put
 it at the top.
 
 be sure to place the java bean in the
 WEB-INF/classes dir of the context
 that you are working with.
 
 If you actually mean JSP Bean, then tell me more,
 I've never heard of this
 before.
 
 Phill
 
 -Original Message-
 From: Hemant Singh [mailto:[EMAIL PROTECTED]]
 Sent: 06 June 2001 08:52
 To: [EMAIL PROTECTED]
 Subject: Where to Place Bean files
 
 
 HI ALL:
 Where do i need to place the JSP bean which i m
 going
 to use in JSP files.
 Cheers
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail -
 only $35 
 a year!  http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Java SDK 1.3.1 update ...

2001-06-06 Thread Franklin Nwankwo

Notice for JDK 1.3 users: There is a known problem
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html 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 http://www.kcmultimedia.com/javaserv/ or JavaService
http://www.alexandriasc.com/software/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: problems with sendRedirect() on relative path

2001-06-06 Thread Alex Fernández

Hi Ofer!

You can specify a different context, that will not contain the /servlet
prefix. The prefix is set by context.

I don't think the suggestion that was sent before (RequestDispatcher)
will work, since it's a static page.

Un saludo,

Alex.

Ofer Baranes wrote:
 
  Hi
  I am tring to use the HttpServletResponse sendRedirect() method to show a
 static page but i can't use relative path  only static path (which include
 the context).The problem occure because of the default '/servlet' prefix
 which is used on tomcat conf\servel.xml.This  default prefix force that each
 accses to servlet will contain the /servlet on the URI.
 Does anyone know how to solve that ?



RE: problems with sendRedirect() on relative path

2001-06-06 Thread Ofer Baranes


Alex , actually i just learnd that using the RequestDispatcher is a better
solution since the response is for this request while redirct is creating
new  requestresponse.
By the way the RequestDispatch is showing static pages.
Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: problems with sendRedirect() on relative path


Hi Ofer!

You can specify a different context, that will not contain the /servlet
prefix. The prefix is set by context.

I don't think the suggestion that was sent before (RequestDispatcher)
will work, since it's a static page.

Un saludo,

Alex.

Ofer Baranes wrote:
 
  Hi
  I am tring to use the HttpServletResponse sendRedirect() method to show a
 static page but i can't use relative path  only static path (which include
 the context).The problem occure because of the default '/servlet' prefix
 which is used on tomcat conf\servel.xml.This  default prefix force that
each
 accses to servlet will contain the /servlet on the URI.
 Does anyone know how to solve that ?



Re: Install

2001-06-06 Thread Jeremy Walsh

I figured it out. I just edited tomcat.bat and hard coded the path names
instead of using %VARIABLES%.


On Tue, 5 Jun 2001, Johann Raster wrote:

 Hi Jeremy,
 
 the class files are included in the jar-files in the /lib directory. you can 
 try jar -t filename.jar to see them. i also installed it on NT and it works 
 fine but if you do not have a ms compiler you have to user the mod_jk module to 
 make it run with apache.
 
 hope this helps.
 Hans Raster
 
 
 
 Zitiere Jeremy Walsh [EMAIL PROTECTED]:
 
  I downloaded the file jakarta-tomcat-3.2.2.zip from 
  http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2/bin/
  
  which are supposed to be the binary .class from for Tomcat 3.2.2
  When I follow to instructions on how to install and run Tomcat,
  however,
  it fails because there are NO class files, ie no compiled java
  programs,
  where they are supposed to be. All I have is .java files in the tree,
  where it appears there are supposed to .class files. 
  
  The batch file tomcat.bat is trying to call 
  %_STARTJAVA% %TOMCAT_OPTS%
  -Dtomcat.home=%TOMCAT_HOME% org.apache.tomcat.startup.Tomcat %2 %3 %4
  %5
  %6 %7 %8 %9
  
  but in the directory org\apache\tomcat\startup\ resides the file
  Tomcat.java, not Tomcat.class
  
  Am I confused here? Am I supposed to build the class files myself? I
  have
  not obtained the wrong file from teh site, because I also went and got
  the
  source distribution, which contains a similar setup.
  
  
  Jeremy Walsh
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  
  
 

Jeremy Walsh
[EMAIL PROTECTED]
[EMAIL PROTECTED]




SSL - keytool import problem

2001-06-06 Thread mlecza



Playing around with Tomcat/SSL (no apache) and am having a problem hitting
a secure page if the certificate was imported.  At first I thought it was a
problem with the Verisign test certificate but if I create a ket with
-genkey (which works fine), export it, then import it I have a problem
hitting the secure page.

Here is the series of events to duplicate:

- Create the key: keytool -genkey -alias tomcat -keyalg RSA
- Start Tomcat and test SSL by hitting https://locathost:8443 (page loads
fine)

- Export the generated key: keytool -export -v -file export.cert -alias
tomcat
- Delete the existing key: keytool -delete -alias tomcat
- Import the key: keytool -import -v -trustcacerts -file export.cert -alias
tomcat
- Restart Tomcat
- Test hitting same SSL page:  Page does't come up.  With debugs turned on
I see the followingin handshake error in the console:

[EmbeddedTomcat] Thread-29, READ:  SSL v3.0 Handshake, length = 85
[EmbeddedTomcat] *** ClientHello, v3.0
RandomCookie:  GMT: 893495682 bytes = { 102, 116, 141, 221, 165, 181, 15,
239, 0
, 124, 42, 42, 154, 126, 160, 241, 45, 203, 148, 236, 162, 155, 198, 169,
9, 194
, 82, 45[EmbeddedTomcat]  }
Session ID:  [EmbeddedTomcat] {59, 30, 11, 188, 5, 132, 214, 51, 19, 148,
194, 1
81, 128, 47, 236, 94, 112, 99, 131, 88, 222, 2, 98, 172, 83, 12, 246, 170,
60, 1
18, 167, 10}
Cipher Suites:  { 0, 100, 0, 98, 0, 3, 0, 6, 0, 99[EmbeddedTomcat]  }
Compression Methods:  { 0[EmbeddedTomcat]  }
[EmbeddedTomcat] ***
[EmbeddedTomcat] [read] MD5 and SHA1 hashes:  len = 85
: 01 00 00 51 03 00 35 42   AA 82 66 74 8D DD A5 B5  ...Q..5B..ft
0010: 0F EF 00 7C 2A 2A 9A 7E   A0 F1 2D CB 94 EC A2 9B  **-.
0020: C6 A9 09 C2 52 2D 20 3B   1E 0B BC 05 84 D6 33 13  R- ;..3.
0030: 94 C2 B5 80 2F EC 5E 70   63 83 58 DE 02 62 AC 53  /.^pc.X..b.S
0040: 0C F6 AA 3C 76 A7 0A 00   0A 00 64 00 62 00 03 00  ...v.d.b...
0050: 06 00 63 01 00 ..c..
[EmbeddedTomcat] %% Created:  [Session-1, SSL_NULL_WITH_NULL_NULL]
Thread-29, SEND SSL v3.0 ALERT:  fatal, [EmbeddedTomcat] description =
handshake
_failure
[EmbeddedTomcat] Thread-29, WRITE:  SSL v3.0 Alert, length = 2
2001-06-06 07:15:39 - Ctx(  ): 400 R( /) null
2001-06-06 07:15:39 - Ctx(  ): IOException in: R( /) Socket closed
+++



Am I missing something with the import?  If I delete and run -genkey again
it works OK again.  Just cannot get the import working.  Same result when
importing a Versign test certificate.
Has anyone been able to import a certificate and get it to work?

Any help/suggestions much appreciated.

Regards




forward() question

2001-06-06 Thread Samson, Lyndon [IT]

I have some code that looks something like this;


RequestDispatcher rd =
_req.getRequestDispatcher(/invalid.jsp);
try {
rd.forward(_req, _resp);

} catch ( ServletException e ) {
} catch ( java.io.IOException e ) {
}

The question is does control ever continue after the forward() method call?
It would seem sensible that it didn't 
if you viewed forward as, I no longer wan't this page, but another one
instead. 

My problem is that the above code is in a bean, which does an isValid user
check and forwards to a page if they are not. After the bean access I have
regular pages which are only mean to be displayed if the user is valid.

Like this;

jsp:useBean id=userChk class=package.UserValid/
jsp:setProperty name=userChk property=UserName value=auser/
jsp:setProperty name=userChk property=UserPass value=apass/
% userChk.setPageInfo(request, response); %
jsp:getProperty name=userChk property=IsValid/

body bgcolor=#7080D0 link=#00FF00 alink=#00 vlink=#00
  font size=+1 color=#D0F0F0
  p
Show this if user is valid
  /p
/body

What actually happens is the invalid page is shown, with the additional
Show if user is valid html appended to the end.

What can I do? I'd really like the forward to actually forward, not act like
include.




Questions about Tomcat Cookies

2001-06-06 Thread amit



Hi,

I have used tomcat as standalone and w/ apache 
also.
In my applications , session trackingis 
working fine.
To the best of my knowledge ,Tomcat does 
session tracking by combining useof
1) Cookies
2) URL re-writing.

My browser alertsme , when tomcat tries to 
set the cookie.
But when i see cookies folder of my Win NT 
machine
(C:\Winnt\profiles\Administrator\cookies) , I 
didn'tfound any cookie by name 'JSESSIONID'

MY QUESTIONS ARE: 
1) If the cookies are not found in the directory , 
where are they ?
2) If I disable cookies in the browser , still 
session tracking will work ?
3) Whatexactcombination does tomcat 
uses of cookies+URL re-writing
4) If Tomcat is used with Apache , then which one 
sets the cookies ?

TIA  Regards,
-Amit.
Sansui Software Pvt. Ltd.




RE: [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter

2001-06-06 Thread Randy Layman


As I have posted before (and thus is available in the mailing list
archives), there are two common causes of this.  The first is a mistake in
the registry - the path to your uriworkermap.properties file or the path to
the workers.properties file is not correct.  The other problem is that the
worker you are trying to use is not defined in the workers.properties file.
In your case that would mean that ajp12 is not defined in the workers.list
variable or the worker.ajp12 trio of variables are missing (from
workers.properties).

Randy

 -Original Message-
 From: William C. Robertson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 05, 2001 5:08 PM
 To: [EMAIL PROTECTED]
 Subject: [jk_uri_worker_map.c (334)]:
 jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
 
 
 IIS + Tomcat + Redirector:
 
 I'm trying to get the redirector to work.  I have ther green 
 up arrow in the
 IIS filters but call to a .jsp page are not recognized as 
 jsp.  The only
 clue I have is the isapi log entry (entered when IIS restarts):
 
 [jk_uri_worker_map.c (334)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL
 parameter
 [jk_uri_worker_map.c (184)]: In 
 jk_uri_worker_map_t::uri_worker_map_free,
 NULL parameters
 (repeated 5 times)
 
 My worker config file is thus:
 
 # Mount the servlet context to the ajp12 worker
 /servlet/*=ajp12
 
 # Mount the examples context to the ajp12 worker
 #/examples/*=ajp12
 
 # Advanced mount of the examples context
 # /examples/*.jsp=ajp12
 # /examples/servlet/*=ajp12
 
 
 And I even tried adding:
 
 *.jsp=ajp12
 
 I'm at my wits end, I've been scanning user messages for a 
 couple of days
 now and haven't seen a similar problem.  I hope a solution is 
 obvious to
 someone.  Thank You.
 



RE: download files using ftp from browser

2001-06-06 Thread Randy Layman


One thing that is implicit in Moin's response is that you have an
FTP server set up.  Tomcat does not support this functionality.  Most UNIX
systems have FTP servers already installed and they are available for NT,
just be careful - incorrectly configured FTP sites can be huge security
holes.

Randy

 -Original Message-
 From: Moin Anjum H. [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 12:29 AM
 To: [EMAIL PROTECTED]
 Subject: Re: download files using ftp from browser
 
 
 Hi,
 
 Ross is right. When you display files in the html tag you 
 give href tag right.
 In the href Tag specify as ftp://domain.com/filename. Once 
 the user clicks he
 will down load it from the Ftp Site
 
 HTH
 Moin.
 
 aswath satrasala wrote:
 
  Hello,
  Sorry, I think I did not phrase the question properly
  or I think I am looking for alternate answers.
 
  I am looking to download files using FTP from
  my website through browser.  (This is similar to sun's
  option to provide JDK download using FTP)
 
  I have simple website (all html) which displays
  all the files in a given directory.  When the user
  click on any file, then file download is started.
  I think this is a http download and is the default
  behavior of the browser.
 
  I would like to do a ftp download instead of http download
  (This is similar to sun's
  option to provide JDK download using FTP)
  I wanted to do this, because I understand that FTP is
  a better protocol for file download. Also my file size are
  large like 1GB
 
  Thanks
  -Aswath
 
  From: William Kaufman [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]' 
 [EMAIL PROTECTED]
  Subject: RE: download files using ftp
  Date: Tue, 5 Jun 2001 07:05:36 -0700
  
  Do you mean you're trying to do an FTP download _of_ Java 
 _in_ Java?
  
  I wouldn't attempt this: there's one form (the license 
 agreement) followed
  by another form (the FTP download site selection).  And 
 Sun would probably
  consider bypassing the forms (if possible) as legally questionable,
  especially the license agreement.
  
  If you're just trying to do an FTP download in Java (of 
 something else),
  look at
  
   http://java.sun.com/j2se/1.3/docs/api/java/net/URL.html
  
  specifically, URL.openConnection().
  
 
   -- Bill K.
  
  
-Original Message-
From: aswath satrasala [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 6:57 AM
To: [EMAIL PROTECTED]
Subject: download files using ftp
   
   
Hi,
I have seen on Sun's web site, an option to download JDK using
ftp download.
Are there any samples to do this.  Please
point to the documentation.
   
Thanks
-Aswath
   
   
From: François Andromaque [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: TOMCAT and APACHE
Date: Tue, 5 Jun 2001 15:44:07 +0200

I've configured separately apache to work with SSL and
TOMCAT to establish
a distant database connection, i would like know to make the
both to work
together.
If mod_jk is really necessary, what are the steps to 
 compile it?
   

 _
Get your FREE download of MSN Explorer at 
 http://explorer.msn.com
   
 
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com
 



Reloading changed servlets problem

2001-06-06 Thread RANDRIAMPARANY Honitriniela


Hi,

I use tomcat-3.2.1. I still have problem with the reloading of changed 
servlets whereas I have the following entry in the server.xml file.

Context path=/TP_genielog 
 docBase=webapps/TP_genielog 
 crossContext=false
 debug=0 
 reloadable=true  
/Context

I read this in the FAQ:
Note: Do NOT include the classes or .jar files from WEB-INF directories for
 which you want to enable automatic servlet reloading in the CLASSPATH of the
 shell that starts Tomcat. 

I followed this instruction. The reloading worked fine for a moment, and then 
the
problem arised again. 

Could somebody say me what I must do? How can one erase the cache memory of 
Tomcat?

Thanks for any help.


-- Honitra.





make ajp13 as the default worker

2001-06-06 Thread pedro salazar

Greetings,

I installed recently the mod_jk on my tomcat/apache system. I include in my
httpd.conf the tomcat/conf/mod_jk.conf-auto that is automatic generated
when the tomcat starts. The default JkMount entries in mod_jk.conf-auto
use always the ajp12 worker. If I want to use the ajp13 I must replace all
the ajp12 entries with ajp13, and only after that I can start apache.
How should I modify my server.xml or web.xml to use by default [I mean that
the mod_jk.conf-auto reflects always those changes] the ajp13? I just can't
remove the ajp12 because tomcat needs it for shutdown...


system configuration:
Tomcat 3.2.1 + Apache 1.3.14 on Linux Redhat 6.2 [kernel 2.2.18]


thanks.
--
./psalazar






RE: make ajp13 as the default worker

2001-06-06 Thread GOMEZ Henri

AJP13 has also a shutdown feature, and Jim Jagielski [[EMAIL PROTECTED]]
has proposed to add ajp13 shutdown to 'tomcat stop'... 

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



-Original Message-
From: pedro salazar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 2:18 PM
To: [EMAIL PROTECTED]
Subject: make ajp13 as the default worker


Greetings,

I installed recently the mod_jk on my tomcat/apache system. I 
include in my
httpd.conf the tomcat/conf/mod_jk.conf-auto that is 
automatic generated
when the tomcat starts. The default JkMount entries in 
mod_jk.conf-auto
use always the ajp12 worker. If I want to use the ajp13 I must 
replace all
the ajp12 entries with ajp13, and only after that I can start apache.
How should I modify my server.xml or web.xml to use by default 
[I mean that
the mod_jk.conf-auto reflects always those changes] the ajp13? 
I just can't
remove the ajp12 because tomcat needs it for shutdown...


system configuration:
Tomcat 3.2.1 + Apache 1.3.14 on Linux Redhat 6.2 [kernel 2.2.18]


thanks.
--
./psalazar






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
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html 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 http://www.kcmultimedia.com/javaserv/ or JavaService
http://www.alexandriasc.com/software/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: make ajp13 as the default worker

2001-06-06 Thread Rui M . Silva Seabra

On Wed, Jun 06, 2001 at 01:18:26PM +0100, pedro salazar wrote:
 I installed recently the mod_jk on my tomcat/apache system. I include in my
 httpd.conf the tomcat/conf/mod_jk.conf-auto that is automatic generated
 when the tomcat starts. The default JkMount entries in mod_jk.conf-auto
 use always the ajp12 worker. If I want to use the ajp13 I must replace all
 the ajp12 entries with ajp13, and only after that I can start apache.
 How should I modify my server.xml or web.xml to use by default [I mean that
 the mod_jk.conf-auto reflects always those changes] the ajp13? I just can't
 remove the ajp12 because tomcat needs it for shutdown...

Have you not read my email? DO NOT USE mod_jk.conf-auto
Look into it, learn the flags you need to use, and change accordingly.

You do not need to change server.xml or web.xml for that. It's a problem with the 
generation of mod_jk.conf-auto.

On another note:

 you do not, I repeat... you do NOT ever need to restart apache because of shutting 
down or starting up tomcat.

that would only be needed if you insist on using mod_jk.conf-auto (which is evil) and 
constantly make changes to the servlets server configuration.

I am trying to get time to make a tomcat howto that's a little more explicit than the 
docs on the web page for begginners. I hope I have time to do it.

Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

 PGP signature


Tomcat - SSL + gzip?

2001-06-06 Thread Lance Dyas

SSL... and a servlet on Tomcat, what version is required and how does
one set it up?




iPlanet + Tomcat on Unix ??

2001-06-06 Thread Robert Koval

My Problem:
I have Netscape Web Server (IPlanet) version 3.63. This version of IPlanet
doesn't support Java Server Pages, or in other words, there is no Servlet
Engine. I need to install some servlet engine on that server in order to run
JSPs. Upgrade of the Web server is not possible, because of some other
issues.
I have tried to install Tomcat to work with Netscape. My problem is that I
don't know how to install Tomcat and integrate it with Iplanet on Unix
environment. The documentation for Tomcat doesn't say anything about
installing it on Unix. The most difficult part is installing redirection
from Iplanet to Servlet Engine. For NT environment, there is dll file
included in distribution, which handles redirection. No info is provided for
Unix.

I would like to install it on two environemnts:
AIX 4.2.1.0
Solaris 2.5

I believe, I have to compile the redirector on both environments. Where do I
get
source from?? And how about makefiles  I would really appreciate your
help, since this
issue is quite urgent for me.

Thank you for your help.
Robert




Re: SSL - keytool import problem -more

2001-06-06 Thread mlecza


I also noticed that when Tomcat is starting I see the following line when
using the -genkey key:

found key for : tomcat

When Starting Toncat using the imported key this line does not appear.

Regards




   
   
mlecza@amsnet  
   
.com To: [EMAIL PROTECTED]
   
 cc:   
   
06/06/2001   Subject: SSL - keytool import problem 
   
07:30 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   






Playing around with Tomcat/SSL (no apache) and am having a problem hitting
a secure page if the certificate was imported.  At first I thought it was a
problem with the Verisign test certificate but if I create a ket with
-genkey (which works fine), export it, then import it I have a problem
hitting the secure page.

Here is the series of events to duplicate:

- Create the key: keytool -genkey -alias tomcat -keyalg RSA
- Start Tomcat and test SSL by hitting https://locathost:8443 (page loads
fine)

- Export the generated key: keytool -export -v -file export.cert -alias
tomcat
- Delete the existing key: keytool -delete -alias tomcat
- Import the key: keytool -import -v -trustcacerts -file export.cert -alias
tomcat
- Restart Tomcat
- Test hitting same SSL page:  Page does't come up.  With debugs turned on
I see the followingin handshake error in the console:


[EmbeddedTomcat] Thread-29, READ:  SSL v3.0 Handshake, length = 85
[EmbeddedTomcat] *** ClientHello, v3.0
RandomCookie:  GMT: 893495682 bytes = { 102, 116, 141, 221, 165, 181, 15,
239, 0
, 124, 42, 42, 154, 126, 160, 241, 45, 203, 148, 236, 162, 155, 198, 169,
9, 194
, 82, 45[EmbeddedTomcat]  }
Session ID:  [EmbeddedTomcat] {59, 30, 11, 188, 5, 132, 214, 51, 19, 148,
194, 1
81, 128, 47, 236, 94, 112, 99, 131, 88, 222, 2, 98, 172, 83, 12, 246, 170,
60, 1
18, 167, 10}
Cipher Suites:  { 0, 100, 0, 98, 0, 3, 0, 6, 0, 99[EmbeddedTomcat]  }
Compression Methods:  { 0[EmbeddedTomcat]  }
[EmbeddedTomcat] ***
[EmbeddedTomcat] [read] MD5 and SHA1 hashes:  len = 85
: 01 00 00 51 03 00 35 42   AA 82 66 74 8D DD A5 B5  ...Q..5B..ft
0010: 0F EF 00 7C 2A 2A 9A 7E   A0 F1 2D CB 94 EC A2 9B  **-.
0020: C6 A9 09 C2 52 2D 20 3B   1E 0B BC 05 84 D6 33 13  R- ;..3.
0030: 94 C2 B5 80 2F EC 5E 70   63 83 58 DE 02 62 AC 53  /.^pc.X..b.S
0040: 0C F6 AA 3C 76 A7 0A 00   0A 00 64 00 62 00 03 00  ...v.d.b...
0050: 06 00 63 01 00 ..c..
[EmbeddedTomcat] %% Created:  [Session-1, SSL_NULL_WITH_NULL_NULL]
Thread-29, SEND SSL v3.0 ALERT:  fatal, [EmbeddedTomcat] description =
handshake
_failure
[EmbeddedTomcat] Thread-29, WRITE:  SSL v3.0 Alert, length = 2
2001-06-06 07:15:39 - Ctx(  ): 400 R( /) null
2001-06-06 07:15:39 - Ctx(  ): IOException in: R( /) Socket closed
+++




Am I missing something with the import?  If I delete and run -genkey again
it works OK again.  Just cannot get the import working.  Same result when
importing a Versign test certificate.
Has anyone been able to import a certificate and get it to work?

Any help/suggestions much appreciated.

Regards







Re: problems with sendRedirect() on relative path

2001-06-06 Thread Alex Fernández

Interesting, didn't know that.

Thanks,

Alex.

Ofer Baranes wrote:
 Alex , actually i just learnd that using the RequestDispatcher is a better
 solution since the response is for this request while redirct is creating
 new  requestresponse.
 By the way the RequestDispatch is showing static pages.
 Thanks
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 12:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: problems with sendRedirect() on relative path
 
 Hi Ofer!
 
 You can specify a different context, that will not contain the /servlet
 prefix. The prefix is set by context.
 
 I don't think the suggestion that was sent before (RequestDispatcher)
 will work, since it's a static page.
 
 Un saludo,
 
 Alex.
 
 Ofer Baranes wrote:
 
   Hi
   I am tring to use the HttpServletResponse sendRedirect() method to show a
  static page but i can't use relative path  only static path (which include
  the context).The problem occure because of the default '/servlet' prefix
  which is used on tomcat conf\servel.xml.This  default prefix force that
 each
  accses to servlet will contain the /servlet on the URI.
  Does anyone know how to solve that ?



How to redirect the page to another server?

2001-06-06 Thread Jack Li

Hello,

I have a strange question. If the browser request a page to server A and
server A is down, is there a way to let the browser request the page to
server B automatically? Any suggestions on the issue? Basically, we are
trying to have the second server for backup when the main server is done and
the users don't know the main server is down.

Thanks,
Jack Li



Apache - tomcats 'webapps' directory

2001-06-06 Thread Dirk Versavel

Dear,

I'm setting up an apache-tomcat environment to run our webapplication.
The web application ('myapp.war') is stored in tomcat's webapps directory.
I have both components working: jsp's are redirected to tomcat,... works
fine.
I defined an my DocumentRoot in apache like: /usr/local/tomcat/webapps so
that I can access my application like: http://localhost/myapp/page.jsp

I would need to get rid of this 'myapp' in my urls!!!

I tried to define the DocumentRoot like /usr/local/tomcat/webapps/myapp,
but then tomcat complains: date.. - Ctx(   ): 404 R(  + /page.jsp + null)
JSP file not found
It seems like the context is lost and tomcat doesn't know where to look for
the page!

Any help / suggestions are very welcome!!

Dirk Versavel






tomcat secure

2001-06-06 Thread Phillip Gibb

Hi,

I have a problem running tomcat with security manager, i.e. with the second
parameter -security added to startup.bat.

I edited the tomcat.policy file to contain all the directories that my web
app uses (like all the directorie under and including the context)

but I keep getting the following when I startup : 


2001-06-06 03:24:37 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
FATAL:java.io.IOException: access denied (java.security.SecurityPermission
putProviderProperty.SunJSSE)
java.io.IOException: access denied (java.security.SecurityPermission
putProviderProperty.SunJSSE)
at
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:191)
at
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
8)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

any ideas

Phill



Re: forward() question

2001-06-06 Thread Wyn Easton

Yes, you do return from the rd.forward() method call.
I always put a return; after such a call in my
servlets.  Since your forward is done in the bean
try something like this:
% userChk.setPageInfo(request, response);
   if(!userChk.IsValid())
 return;
%

If you are interested, you can look at the Java code
that is generated by your JSPs in Tomcat's work
directory.  That might give you a better idea of how
the generated servlet looks.

--- Samson, Lyndon [IT] [EMAIL PROTECTED]
wrote:
 I have some code that looks something like this;
 
 
 RequestDispatcher rd =
 _req.getRequestDispatcher(/invalid.jsp);
 try {
 rd.forward(_req, _resp);
 
 } catch ( ServletException e ) {
 } catch ( java.io.IOException e ) {
 }
 
 The question is does control ever continue after the
 forward() method call?
 It would seem sensible that it didn't 
 if you viewed forward as, I no longer wan't this
 page, but another one
 instead. 
 
 My problem is that the above code is in a bean,
 which does an isValid user
 check and forwards to a page if they are not. After
 the bean access I have
 regular pages which are only mean to be displayed if
 the user is valid.
 
 Like this;
 
 jsp:useBean id=userChk
 class=package.UserValid/
 jsp:setProperty name=userChk property=UserName
 value=auser/
 jsp:setProperty name=userChk property=UserPass
 value=apass/
 % userChk.setPageInfo(request, response); %
 jsp:getProperty name=userChk property=IsValid/
 
 body bgcolor=#7080D0 link=#00FF00
 alink=#00 vlink=#00
   font size=+1 color=#D0F0F0
   p
 Show this if user is valid
   /p
 /body
 
 What actually happens is the invalid page is shown,
 with the additional
 Show if user is valid html appended to the end.
 
 What can I do? I'd really like the forward to
 actually forward, not act like
 include.
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Apache and Tomcat on different boxes

2001-06-06 Thread Jason Koeninger

The ip address or hostname of the Tomcat machine is stored 
in the workers.properties file referenced by your mod_jk setup.
I've also seen some sort of url version of the JkMount command, 
but I've never used it myself and don't know if it works or what 
versions it works on.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:

Hi all,

I tried searching to mailing list b4 posting here. Anyway, what must i 
put into apache's http.conf for 
mod_jk.so to enable a connection to a separate machine containing tomcat 3.2.2? 

Placing both the Web Server and App server into 1 machine is rather 
well documented. But I can't seem 
to find any for separate machines.
Can someone show me where to fish? or would someone gimme a fish?

Thks,
Paul







Messages

2001-06-06 Thread Daniel de Almeida Alvares

Hi,
When I run my webpages they run correctly but this kind of messages appear
at tomcat window:

2001-06-06 11:00:29 - Ctx( /cnpi ): IOException in: R( /cnpi +
/jsp/index2.jsp +
 null) Connection reset by peer: socket write error
2001-06-06 11:00:29 - Ctx( /cnpi ): IOException in: R( /cnpi +
/jsp/index2.jsp +
 null) Connection reset by peer: socket write error


What is happening ???

Regards and thanks

Daniel
___
Daniel de Almeida Alvares
Santos - SP - Brasil
[EMAIL PROTECTED]




Jakarta Tomcat NT service stopping itself

2001-06-06 Thread Tim Hughes


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: Messages

2001-06-06 Thread William Kaufman

See this posting:

http://marc.theaimsgroup.com/?l=tomcat-userm=98770302314327w=2


-- Bill K.


 -Original Message-
 From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 7:03 AM
 To: Tomcat-user
 Subject: Messages
 
 
 Hi,
 When I run my webpages they run correctly but this kind of 
 messages appear
 at tomcat window:
 
 2001-06-06 11:00:29 - Ctx( /cnpi ): IOException in: R( /cnpi +
 /jsp/index2.jsp +
  null) Connection reset by peer: socket write error
 2001-06-06 11:00:29 - Ctx( /cnpi ): IOException in: R( /cnpi +
 /jsp/index2.jsp +
  null) Connection reset by peer: socket write error
 
 
 What is happening ???
 
 Regards and thanks
 
 Daniel
 ___
 Daniel de Almeida Alvares
 Santos - SP - Brasil
 [EMAIL PROTECTED]
 



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: Apache and Tomcat on different boxes

2001-06-06 Thread ptan

Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 



RE: mod_jk and mod_perl

2001-06-06 Thread John P. Dodge

I run mod_jk as a DSO and mod_perl as static linked. The mod_perl docs
indicate that DSO operation is still experimental but I think it is OK
now. If you run mod_perl as a DSO it disables the PERL_SSI capability
(this is embeding Perl code in HTML). My configuration runs everything as
a DSO except mod_perl (libperl.a) and mod_include (for Perl SSI). So you
should be fine running mod_jk and mod_perl.



On Tue, 5 Jun 2001 [EMAIL PROTECTED] wrote:

 We're running perl 5.005_03 on Solaris 2.6/sparc.  When I go to build
 mod_perl as a DSO, I get:
 
 * ERROR *
 
   Your current configuration will most likely trigger core dumps,
 suggestions:
*) Do not configure mod_perl as a DSO
*) Upgrade your Perl version to 5.6.0 or higher (w/ -Ubincompat5005)
*) Configure Perl with -Uusemymalloc (not recommended for performance)
 
 
 * ERROR *
 
 We're not in a position to upgrade perl or reconfigure perl.  So I can't
 build mod_perl as a DSO.
 
 My options are (in order of preference):
 - build apache with mod_perl (statically) and mod_so.  Then to load mod_jk
 with apxs.
 - build apache with mod_perl and mod_jk statically.
 - run two apache instances.  The first one will have mod_so and mod_jk and
 will handle requests for servlets and static pages.  The second will have
 mod_perl and will handle perl requests.
 
 If you, or anyone else, has any advice, I'd be stoked.
 
 Thanks,
 * * * John
 
 
 -Original Message-
 From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 05, 2001 4:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: mod_jk and mod_perl
 
 
 I've run both mod_jk and mod_perl as dynamically linked modules in the past,
 but not statically. The dynamic modules were very easy to get running.
 
 Any reason it has to be statically compiled?
 
 Thanks,
 --jeff
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 3:48 PM
 Subject: mod_jk and mod_perl
 
 
  Hello,
 
  I'm trying to build a statically linked version of apache v1.3.19 with
  mod_jk (from tomcat v3.2.1) and mod_perl v1.25 for Solaris 2.6/sparc.  Has
  anyone successfully done this before?  I can build apache with mod_jk and
  apache with mod_perl, but I haven't been able to build apache with both
  modules.  I've searched this mailing list and several others and have made
  no progress.  My next step is to deconstruct the mod_jk makefile to fit
 the
  source into $APACHE_SRC/src/modules/jk.  Any hints are appreciated.
 
  Thanks,
  * * * John Ubante
 
 


Mon aeroglisseur est plein d'anguilles
John P. Dodge
Boeing Shared Services




RE: Jakarta Tomcat NT service stopping itself

2001-06-06 Thread Randy Layman


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
 



Sending all traffic to 1 JSP

2001-06-06 Thread David M. Rosner

Hello,

Is it possible to configure jakarta so that no matter what the URL is, a 
specific JSP is always called instead? So the user can enter any URL into 
the browser for my domain, but my 1 JSP page will always be called anyway?

Thanks

-dave




RE: Questions about Tomcat Cookies

2001-06-06 Thread William Kaufman

 1) If the cookies are not found in the directory , where are they ?

In memory.  The cookie is set with an expiration of -1, which suggests to
the browser that it shouldn't bother writing it to disk.

 2) If I disable cookies in the browser , still session tracking will work
?

Your servlet needs to call HttpServletResponse.encode[Redirect]URL() on each
URL it outputs, to add the session ID to the URL.

 3) What exact combination does tomcat uses of cookies + URL re-writing

It uses cookies if enabled, URL re-writing (with the servlet's help) if not.

 4) If Tomcat is used with Apache , then which one sets the cookies ?

Tomcat, AFAIK.

-- Bill K.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 4:25 AM
To: [EMAIL PROTECTED]
Subject: Questions about Tomcat Cookies


Hi,

I have used tomcat as standalone and w/ apache also.
In my applications , session tracking is working fine.
To the best of my knowledge , Tomcat does session tracking by combining use
of
1) Cookies 
2) URL re-writing.

My browser alerts me , when tomcat tries to set the cookie.
But when i see cookies folder of my Win NT machine
(C:\Winnt\profiles\Administrator\cookies) , I didn't found any cookie by
name 'JSESSIONID'

MY QUESTIONS ARE : 
1) If the cookies are not found in the directory , where are they ?
2) If I disable cookies in the browser , still session tracking will work ?
3) What exact combination does tomcat uses of cookies + URL re-writing
4) If Tomcat is used with Apache , then which one sets the cookies ?

TIA  Regards,
-Amit.
Sansui Software Pvt. Ltd.



RE: Jakarta Tomcat NT service stopping itself

2001-06-06 Thread William Kaufman

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: Sending all traffic to 1 JSP

2001-06-06 Thread Michael Wentzel

 Is it possible to configure jakarta so that no matter what 
 the URL is, a 
 specific JSP is always called instead? So the user can enter 
 any URL into 
 the browser for my domain, but my 1 JSP page will always be 
 called anyway?

One way is writing your own RequestInterceptor which redirs on
all requests != the desired JSP.  As a side note... if done this
way may I suggest configuring this in a props file to remove the
need for a recompile if things should change in the future.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



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: Sending all traffic to 1 JSP

2001-06-06 Thread David M. Rosner

That is a good solution, but i'm actually going to need other webapps on 
the server NOT use this 1 JSP. Can I have a different RequestInterceptor 
for 1domain and have other domains servered out by Jakarta use the default 
RequestInterceptor?

Also - i'm not sure I understand your suggested approach for configuring 
this in a property file. Can you please expand?


Thanks!


-dave





At 10:04 AM 6/6/2001, Michael Wentzel wrote:
  Is it possible to configure jakarta so that no matter what
  the URL is, a
  specific JSP is always called instead? So the user can enter
  any URL into
  the browser for my domain, but my 1 JSP page will always be
  called anyway?

One way is writing your own RequestInterceptor which redirs on
all requests != the desired JSP.  As a side note... if done this
way may I suggest configuring this in a props file to remove the
need for a recompile if things should change in the future.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com




Tomcat IIS HowTo - Troubleshooting WinNT Point 5

2001-06-06 Thread W . Klambauer

Hello,

I'm trying to work with Tomcat and IIS as you have read in the subject.
Up to now I have solved the problems till point 4 in the troubleshooting of
WinNT.
But now I'm at a point, where I think that something is wrong with my
directory on the IIS.
Because it isn't determined, where I have to place my sonamed Jakarta
filter.
If I may show you my directory and perhaps you know then the solution, that
would be perfect.
The directory starts with:

Console Root
 Internet Information Server
  Computername
   Default FTP Site
   Socks Proxy
   Default Webside
   www..nl
event
jakarta
test
   webproxy
   Winsock Proxy
Transaction server

Here is my question: I followed exactly the installation instructions of
Tomcat IIS HowTo. Did I place the Jakarta Filter on the right position
according the installation instructions ?
If you have an idea to solve this problem please send them me. I'm thankful
about every idea/help.

Thank you
Greetings

Walter
[EMAIL PROTECTED]




Re: make ajp13 as the default worker [new question]

2001-06-06 Thread Pedro Salazar

Rui M . Silva Seabra wrote:

 
 Have you not read my email? DO NOT USE mod_jk.conf-auto
 Look into it, learn the flags you need to use, and change accordingly.
 
 You do not need to change server.xml or web.xml for that. It's a problem
 with the generation of mod_jk.conf-auto.
 
 On another note:
 
  you do not, I repeat... you do NOT ever need to restart apache because
 of shutting down or starting up tomcat.
 
 that would only be needed if you insist on using mod_jk.conf-auto (which
 is evil) and constantly make changes to the servlets server
 configuration.
 
 I am trying to get time to make a tomcat howto that's a little more
 explicit than the docs on the web page for begginners. I hope I have
 time to do it.
 


Well, I didn't read any email yours, I just subscribed the list 
yesterday... But, now I have a question about use or not use the 
mod_jk.conf-auto...

- If I'm using a copy of a modified version of mod_jk.conf-auto (say 
mod_jk.conf-mycopy), and if I add a new context in server.xml, then I 
must restart tomcat, pick up the new context from the mod_jk.conf-auto 
with all his properties to mod_jk.conf-mycopy, change the entry ajp12 to 
ajp13, and then restart apache because the httpd.conf that apache gots 
when it started includes a older version of mod_jk.conf-mycopy. Is this 
the right procedure?

thanks,
psalazar






RE: Sending all traffic to 1 JSP

2001-06-06 Thread Michael Wentzel

 That is a good solution, but i'm actually going to need other 
 webapps on 
 the server NOT use this 1 JSP. Can I have a different 
 RequestInterceptor 
 for 1domain and have other domains servered out by Jakarta 
 use the default 
 RequestInterceptor?

A few choices depending on your criteria/implementation:
  * Separate contexts.
  * Separate server instances on same machine(this would require
  different ports though)
  * Use the suggested prop file to set criteria for redir.

I personally think the third option would be the most flexible,
and if future changes are made the only thing that would have to
be redeployed is the prop file... no recompiling, war-ing, etc...

 Also - i'm not sure I understand your suggested approach for 
 configuring 
 this in a property file. Can you please expand?

I was thinking of using a properties file for the jsp name,
possibly a regexp for parsing what EXACTLY should get redir,
hosts list that should get redir, etc...


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Apache and Tomcat on different boxes

2001-06-06 Thread Chauhan, Anand

The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

Did the idea work for you ? Let me know. Thanks. 

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:10 AM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 



Problem with FORM POSTs

2001-06-06 Thread David Fenton

Help! I suspect someone else has run into (and resolved) this...

I am running tomcat v3.2.1 on a Win2K machine running IIS 5.0, jdk 1.3.1,
and using the ISAPI adapter. Pages with forms that use GET work fine. If I
take the same page and replace the method with POST I get a HTTP 400/Bad
Request error. 

Any suggestions?

Thanks
David Fenton
[EMAIL PROTECTED]



request for jsp returning source code!?

2001-06-06 Thread pjcrump

I'm running Tomcat 3.2.1  Apache on Linux and I'm having a problem w/ the jsp 
examples. When I try http://localhost/examples/jsp/dates/date.jsp
I get the source code of the jsp page returned (as if tomcat is not processing the jsp 
page). Since I am attempting to have Apache serve Static content and Tomcat serve 
JSP's I have already installed mod_jk and am using the stock mod_jk.conf-auto include 
in my httpd.conf file..
 
 What else needs to be done?
 -Phillip



Re: Tomcat in Win2k with IIS

2001-06-06 Thread Aaron Nance

To answer you question about if there is a difference between the JRE and the J2SDK, 
the answer is a definite yes.  The difference is that the JRE does not come with the 
Java byte-code compiler and you need that in order to run Tomcat.  Also, if you are 
not sure how to set environment variables in NT I would suggest getting a book on how 
to run NT.

Aaron

 [EMAIL PROTECTED] 06/05/01 04:03PM 
I am currently trying to install Tomcat 3.2.2 on a windows 2000 box with
IIS.  I am really confused. Can Tomcat be run standalone as its own web
server?  Or does it have to have a webserver installed (like IIS).  I tried
to follow the tomcat_ug.htm file for installation.  I went through the How
do I Install the Binary Version of Tomcat and when I got down to set
environment variable JAVA_HOME.  I started to loose it.  I don't have JDK
installed but I do have JRE1.3 installed (Is there a difference?)  And what
is the Java interpreter, and where do I find that?

So then I moved on.  I saw that I could use scrips to setup Tomcat.  I tried
Tomcat env and I guess it didn't work.  

Next I tried the Tomcat IIS How To.  I followed the Installation.  I
downloaded the DLL and put it in \bin\win32\i386
I went through and did minor changes to workers.properties.  Then I went
through the painful task of adding the key and strings into the registry.
It is a new web server so I made the root directory the dir with the DLL
file.  (Does it have to be a virtual dir?)  I then added the filter and
restarted IIS.  There is still a Red arrow next to the filter.  That is when
I put everything down.  (BIG HEADACH)  

Thank you for your time!

Matthew Winer





Re: make ajp13 as the default worker [new question]

2001-06-06 Thread Rui M . Silva Seabra

On Wed, Jun 06, 2001 at 04:12:17PM +0100, Pedro Salazar wrote:
 Rui M . Silva Seabra wrote:
 - If I'm using a copy of a modified version of mod_jk.conf-auto (say 
 mod_jk.conf-mycopy), and if I add a new context in server.xml, then I 
 must restart tomcat, pick up the new context from the mod_jk.conf-auto 
 with all his properties to mod_jk.conf-mycopy, change the entry ajp12 to 
 ajp13, and then restart apache because the httpd.conf that apache gots 
 when it started includes a older version of mod_jk.conf-mycopy. Is this 
 the right procedure?

Any changes to apache configuration will only be valid after a restart.

So yes, you will have to restart. However, you can restart your servlet engine without 
needing to restart apache, as long as you do not change configuration that will cause 
changes to apache's configuration.

As a rule of thumb, I include a file (say mod_jk.conf) which is in apache's conf dir:

LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /usr/local/opt/tomcat/conf/workers.properties

JkLogFile /usr/local/opt/apache/logs/mod_jk

JkLogLevel debug

Then, for each site that will need to access a worker, I only add:

JkMount /cgi-bin/* worker

Easy as a pie. Only when you make changes to httpd.conf will you need to restart the 
httpd, and not, as the tomcat docs suggests because of using mod_jk.conf-auto (which 
IMHO is evil since it does not work well), when you restart tomcat.

You will only need to change the web site (in terms of tomcat) to add the single 
JkMount line :) So it's really not worth using mod_jk.conf-auto, with all the hazzards 
it may add due to bugs.

However, having to restart apache because of configuration changes, is an apache web 
server issue and not a tomcat servlet engine issue.

Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

 PGP signature


Re: Apache and Tomcat on different boxes

2001-06-06 Thread Rui M . Silva Seabra

On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
 The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

worker.properties exits so mod_jk can create the worker handlers.
You will need to have worker.properties accessible to apache, however, the servlet 
engines can be in different hosts.

hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

 PGP signature


RE: Apache and Tomcat on different boxes

2001-06-06 Thread Chauhan, Anand

Hi,

I tried working on the configuration but it didn't work out. Do you have some other 
solution. Please help. 

-Andy

-Original Message-
From: Chauhan, Anand 
Sent: Wednesday, June 06, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache and Tomcat on different boxes


The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

Did the idea work for you ? Let me know. Thanks. 

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:10 AM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 



Re: Apache and Tomcat on different boxes

2001-06-06 Thread Jason Koeninger

The only thing I see missing are the following directives from httpd.conf:

JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel error

I would assume those are probably in there, but I just wanted to clarify 
that you have to point mod_jk to the right workers.properties file for 
your changes to take effect.  These directives are ones I put in.  I'm 
not sure what the docs say to use. They may well point to the Tomcat 
conf directory instead of the Apache conf directory.  If so, the file you 
put in Apache's conf wouldn't work.  

Anyway, good luck.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 06 Jun 2001 22:09:55 +0800 (SGT), [EMAIL PROTECTED] wrote:

Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 





Re: SSL - keytool import problem -more

2001-06-06 Thread mlecza


I finally got the Verisign test certificate to work.

I followed the steps here:
http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Security7.html

and it worked fine.

I still have a problem reimporting an exported certificate though.  I
export the certificate, delete it and reimport it and it never works after
importing it again.

Seems like a big problem if we want to backup the certificate or install it
multiple webservers.

Regards,
Mike



   
   
mlecza@amsnet  
   
.com To: [EMAIL PROTECTED]
   
 cc:   
   
06/06/2001   Subject: Re: SSL - keytool import problem 
-more  
08:57 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   





I also noticed that when Tomcat is starting I see the following line when
using the -genkey key:

found key for : tomcat

When Starting Toncat using the imported key this line does not appear.

Regards





mlecza@amsnet
.com To:
[EMAIL PROTECTED]
 cc:
06/06/2001   Subject: SSL - keytool import
problem
07:30 AM
Please
respond to
tomcat-user








Playing around with Tomcat/SSL (no apache) and am having a problem hitting
a secure page if the certificate was imported.  At first I thought it was a
problem with the Verisign test certificate but if I create a ket with
-genkey (which works fine), export it, then import it I have a problem
hitting the secure page.

Here is the series of events to duplicate:

- Create the key: keytool -genkey -alias tomcat -keyalg RSA
- Start Tomcat and test SSL by hitting https://locathost:8443 (page loads
fine)

- Export the generated key: keytool -export -v -file export.cert -alias
tomcat
- Delete the existing key: keytool -delete -alias tomcat
- Import the key: keytool -import -v -trustcacerts -file export.cert -alias
tomcat
- Restart Tomcat
- Test hitting same SSL page:  Page does't come up.  With debugs turned on
I see the followingin handshake error in the console:



[EmbeddedTomcat] Thread-29, READ:  SSL v3.0 Handshake, length = 85
[EmbeddedTomcat] *** ClientHello, v3.0
RandomCookie:  GMT: 893495682 bytes = { 102, 116, 141, 221, 165, 181, 15,
239, 0
, 124, 42, 42, 154, 126, 160, 241, 45, 203, 148, 236, 162, 155, 198, 169,
9, 194
, 82, 45[EmbeddedTomcat]  }
Session ID:  [EmbeddedTomcat] {59, 30, 11, 188, 5, 132, 214, 51, 19, 148,
194, 1
81, 128, 47, 236, 94, 112, 99, 131, 88, 222, 2, 98, 172, 83, 12, 246, 170,
60, 1
18, 167, 10}
Cipher Suites:  { 0, 100, 0, 98, 0, 3, 0, 6, 0, 99[EmbeddedTomcat]  }
Compression Methods:  { 0[EmbeddedTomcat]  }
[EmbeddedTomcat] ***
[EmbeddedTomcat] [read] MD5 and SHA1 hashes:  len = 85
: 01 00 00 51 03 00 35 42   AA 82 66 74 8D DD A5 B5  ...Q..5B..ft
0010: 0F EF 00 7C 2A 2A 9A 7E   A0 F1 2D CB 94 EC A2 9B  **-.
0020: C6 A9 09 C2 52 2D 20 3B   1E 0B BC 05 84 D6 33 13  R- ;..3.
0030: 94 C2 B5 80 2F EC 5E 70   63 83 58 DE 02 62 AC 53  /.^pc.X..b.S
0040: 0C F6 AA 3C 76 A7 0A 00   0A 00 64 00 62 00 03 00  ...v.d.b...
0050: 06 00 63 01 00 ..c..
[EmbeddedTomcat] %% Created:  [Session-1, SSL_NULL_WITH_NULL_NULL]
Thread-29, SEND SSL v3.0 ALERT:  fatal, [EmbeddedTomcat] description =
handshake
_failure
[EmbeddedTomcat] Thread-29, WRITE:  SSL v3.0 Alert, length = 2
2001-06-06 07:15:39 - Ctx(  ): 400 R( /) null
2001-06-06 07:15:39 - Ctx(  ): IOException in: R( /) Socket closed
+++





Am I missing something with the import?  If I delete and run -genkey 

RE: Apache and Tomcat on different boxes

2001-06-06 Thread Chauhan, Anand

Thanks for the reply, but I am still facing the problem. I placed the 
worker.properties file in the apache/conf directory and made the http.conf file point 
to this worker.properties file. But to no avail. 

Help required. 

Thanks in advance,
-Andy

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
 The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

worker.properties exits so mod_jk can create the worker handlers.
You will need to have worker.properties accessible to apache, however, the servlet 
engines can be in different hosts.

hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



RE: Apache and Tomcat on different boxes

2001-06-06 Thread Jason Koeninger

The workers.properties file should be on the Apache machine.  The 
problem you're running into is that the documentation usually assumes 
Tomcat and Apache are on the same machine, and it's leading you 
to believe that workers.properties has something to do with Tomcat.  
workers.properties is only relevant to mod_jk running on Apache, not 
to Tomcat.  If you need the example file provided with Tomcat, just copy 
it over to the Apache machine from a distribution of Tomcat and point 
JkWorkersFile to the right place on the local file system.

And yes, it does work.  I've run several development and production 
systems this way.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 6 Jun 2001 11:23:07 -0400, Chauhan, Anand wrote:

The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

Did the idea work for you ? Let me know. Thanks. 

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:10 AM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 





RE: Apache and Tomcat on different boxes

2001-06-06 Thread Swart, James (Jim) ** CTR **

if they are both *nix* machines you can use NFS to mount each other remotely
to access the conf files needed, no?

-Original Message-
From: Chauhan, Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 9:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache and Tomcat on different boxes


The idea seems great. But how would you access the worker.properties file on
the remote machine. Or is it that, as suggested, you would be creating a
worker.properties file in the conf/worker.properties

Did the idea work for you ? Let me know. Thanks. 

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:10 AM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for
it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 



Re: Questions about Tomcat Cookies

2001-06-06 Thread Bo Xu

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 4:25 AM
 To: [EMAIL PROTECTED]
 Subject: Questions about Tomcat Cookies

 Hi,

 I have used tomcat as standalone and w/ apache also.
 In my applications , session tracking is working fine.
 To the best of my knowledge , Tomcat does session tracking by combining use
 of
 1) Cookies
 2) URL re-writing.

 My browser alerts me , when tomcat tries to set the cookie.
 But when i see cookies folder of my Win NT machine
 (C:\Winnt\profiles\Administrator\cookies) , I didn't found any cookie by
 name 'JSESSIONID'

 MY QUESTIONS ARE :
 1) If the cookies are not found in the directory , where are they ?
 2) If I disable cookies in the browser , still session tracking will work ?
 3) What exact combination does tomcat uses of cookies + URL re-writing
 4) If Tomcat is used with Apache , then which one sets the cookies ?

 TIA  Regards,
 -Amit.
 Sansui Software Pvt. Ltd.

Hi :-)  about who is First selected for making-session: cookies or
URLre-writing?,
please see the following email:



n Sun, 20 May 2001, Robert Nicholson wrote:


 Question... how I force it to rewrite the URL to support url rewriting even
 if the browser supports cookies?


In 3.2, look in conf/server.xml for the string

noCookies=false

and change it to

noCookies=true

IIRC, this change is global to all webapps in this JVM.

In 4.0, the Context element includes a cookies attribute that you can
use to turn cookies on or off on a per-webapp basis.  It defaults to
true, so turn them off like this:

Context path=/examples ... cookies=false ...

Craig McClanahan


/

so I think:
- by default,  TOMCAT will cookies
- but I also can ask TOMCAT to use URLre-writing,  no matter
  the browser supports cookies or not


Bo
June 06, 2001






RE: request for jsp returning source code!?

2001-06-06 Thread Swart, James (Jim) ** CTR **

try it with http://localhost:8080/examples first to make sure tomcat is
working correctly.
if it works then it's not tomcat.  I would hypothesize that points the error
at the apache.conf file.  Did you add in the line to your apache.conf to
Include the tomcat-apache.conf file?  If not, that is probably your error.
Make sure it's the LAST line of your httpd.conf file.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 9:41 AM
To: [EMAIL PROTECTED]
Subject: request for jsp returning source code!?


I'm running Tomcat 3.2.1  Apache on Linux and I'm having a problem w/ the
jsp examples. When I try http://localhost/examples/jsp/dates/date.jsp
I get the source code of the jsp page returned (as if tomcat is not
processing the jsp page). Since I am attempting to have Apache serve Static
content and Tomcat serve JSP's I have already installed mod_jk and am using
the stock mod_jk.conf-auto include in my httpd.conf file..
 
 What else needs to be done?
 -Phillip



RE: Tomcat IIS HowTo - Troubleshooting WinNT Point 5

2001-06-06 Thread Randy Layman


The way that it has to be is that the Virtual Directory and the
Filter must both be installed for each virtual/default host that will
process JSPs.  Your directory structure indicates that the jakarta virtual
directory is set up for www..nl.  You need to make sure that you
installed the Filter to this web instance as well. (Using the properties of
the web instance and selecting the Filters tab).

Randy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 10:53 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat IIS HowTo - Troubleshooting WinNT Point 5
 
 
 Hello,
 
 I'm trying to work with Tomcat and IIS as you have read in 
 the subject.
 Up to now I have solved the problems till point 4 in the 
 troubleshooting of
 WinNT.
 But now I'm at a point, where I think that something is wrong with my
 directory on the IIS.
 Because it isn't determined, where I have to place my sonamed Jakarta
 filter.
 If I may show you my directory and perhaps you know then the 
 solution, that
 would be perfect.
 The directory starts with:
 
 Console Root
  Internet Information Server
   Computername
Default FTP Site
Socks Proxy
Default Webside
www..nl
 event
 jakarta
 test
webproxy
Winsock Proxy
 Transaction server
 
 Here is my question: I followed exactly the installation 
 instructions of
 Tomcat IIS HowTo. Did I place the Jakarta Filter on the right position
 according the installation instructions ?
 If you have an idea to solve this problem please send them 
 me. I'm thankful
 about every idea/help.
 
 Thank you
 Greetings
 
 Walter
 [EMAIL PROTECTED]
 



Logging

2001-06-06 Thread Jeff Gaer


I am running tomcat 3.2.1 standalone on windows 2k professional  using the
sun jdk 1.3.1.

I use the Servlet.log(string) method to output diagnostics but do not see it
appear in 
the logs

logs/jasper.log contains

2001-06-06 11:28:32 - Scratch dir for the JSP engine is:
C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fbobo
2001-06-06 11:28:32 - IMPORTANT: Do not modify the generated servlets


and servlet.log contains
2001-06-06 11:28:32 - path=/bobo :jsp: init
2001-06-06 11:28:32 - path=/admin :jsp: init
2001-06-06 11:28:32 - path=/ClrCmrc :jsp: init
2001-06-06 11:28:32 - path=/ClrCmrcPmtPrc :jsp: init
2001-06-06 11:28:32 - path= :jsp: init
2001-06-06 11:28:36 - path=/ClrCmrcPmtPrc :xsl: init
2001-06-06 11:28:38 - path=/ClrCmrcPmtPrc :xsl2: init


The servlet executes successfully but there are dozens of calls to log(str)
none of which appear in the logs. Is there a configuration step I am
missing? 

Thanks in advance for any help. 


Jeff Gaer
ClearCommerce Corp. 



Unable to retreive session in servlets

2001-06-06 Thread Oke, Larry
Title: Unable to retreive session in servlets





I don't seem to expeience this problem under Windows.
When I send a HTTP POST to a servlet running under the latest Tomcat under Solaris, I can't retrieve the current session using the method below

request.getSession( ) 


it always seem to create a new session. 




It works fine though if you use a JSP with the JSP tag : useBean/scope=session, before forwarding to the servlet.
Is this a coding issue in my servlet or a bug of some sort with Tomcat?


Please help





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

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

www.mimesweeper.com
**



RE: Apache and Tomcat on different boxes

2001-06-06 Thread Chauhan, Anand

Hi Jason:

Did this work for you ?! I tried to work as per the specs shown below and couldn't 
work things out. I included the workers.properties and mod_jk.log file in the right 
places.(checked it for typos or errors-  found none) 

Am I missing something. Do we have a good online reference for implementing the same. 

Please help. Thanks.

-Andy

-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:56 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


The only thing I see missing are the following directives from httpd.conf:

JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel error

I would assume those are probably in there, but I just wanted to clarify 
that you have to point mod_jk to the right workers.properties file for 
your changes to take effect.  These directives are ones I put in.  I'm 
not sure what the docs say to use. They may well point to the Tomcat 
conf directory instead of the Apache conf directory.  If so, the file you 
put in Apache's conf wouldn't work.  

Anyway, good luck.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 06 Jun 2001 22:09:55 +0800 (SGT), [EMAIL PROTECTED] wrote:

Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 




RE: iPlanet + Tomcat on Unix ??

2001-06-06 Thread Swart, James (Jim) ** CTR **

if you want my humble opinion.. in case you can't figure it out... use a
PROXY statement like this:

(I am not sure of the syntax for iPlanet's proxies, this format is for
Apache 1.3.x):
PROXYPASS /javaserver http://localhost:8080/path-for-servlets-or-jsps
PROXYPASS /javaserver/ http://localhost:8080/path-for-servlets-or-jsps/

I realize for it being on the same machine this is LAME-O.  But, I think
it's a decent work-around.  Also, you wouldn't have to EVER bring down
apache to modify tomcat stuff, since it's nothing but proxies anyway?...

(ps - yes, as you can tell, I like proxy statements.  I use them on our
servers quite frequently just so I don't have to reset all servers from one
change).

-Original Message-
From: Robert Koval [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 6:36 AM
To: Tomcat
Subject: iPlanet + Tomcat on Unix ?? 


My Problem:
I have Netscape Web Server (IPlanet) version 3.63. This version of IPlanet
doesn't support Java Server Pages, or in other words, there is no Servlet
Engine. I need to install some servlet engine on that server in order to run
JSPs. Upgrade of the Web server is not possible, because of some other
issues.
I have tried to install Tomcat to work with Netscape. My problem is that I
don't know how to install Tomcat and integrate it with Iplanet on Unix
environment. The documentation for Tomcat doesn't say anything about
installing it on Unix. The most difficult part is installing redirection
from Iplanet to Servlet Engine. For NT environment, there is dll file
included in distribution, which handles redirection. No info is provided for
Unix.

I would like to install it on two environemnts:
AIX 4.2.1.0
Solaris 2.5

I believe, I have to compile the redirector on both environments. Where do I
get
source from?? And how about makefiles  I would really appreciate your
help, since this
issue is quite urgent for me.

Thank you for your help.
Robert



Re: startup exceptions

2001-06-06 Thread Hemant Singh

HI Boris:
From the exeption trace you sended only meaningfull thing i can see is that
probably in any one of the web.xml files present under you webapps is
missing web-app element,
check your all webapps for the presence of proper web-app element in there
web.xml file
I tried removing web-app element from one (admin) of the web.xml, but i
does n't gived up any startup exception but one i tried accessing that
servlet, though it successfully opend up the servlet,
i m using tomcat3.2.1 on Win ME.
Cheers
- Original Message -
From: Boris Garbuzov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 10:48 PM
Subject: startup exceptions


 Hello to you, Tomcat experts. I am using tomcat 4. Upon the very start it
 throws the following. Then it works fine in most of examples. Any
suggestions
 what I should do? Boris.

 console-
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0-b5
 PARSE error at line 1 column -1
 org.xml.sax.SAXParseException: Element type web-app is not declared.
 PARSE error at line 1 column -1
 org.xml.sax.SAXParseException: Element type web-app is not declared.
 Starting service Tomcat-Apache
 Apache Tomcat/4.0-b5

 --localhost_log.2001-05-31.txt

 2001-05-31 10:08:03 StandardManager[/JRunForum]: Seeding random number
 generator class java.security.SecureRandom
 2001-05-31 10:08:03 StandardManager[/JRunForum]: Seeding of random number
 generator has been completed
 2001-05-31 10:08:03 ContextConfig[/JRunForum] Parse error in application
 web.xml
 org.xml.sax.SAXParseException: Element type web-app is not declared.
  at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
  at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1308)
  at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
  at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
  at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
  at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
  at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
  at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
  at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
  at

org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:247)

  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820)
  at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
217)

  at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)

  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:353)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
  at java.lang.reflect.Method.invoke(Native Method)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)

 2001-05-31 10:08:03 ContextConfig[/JRunForum]: Occurred at line 1
column -1
 2001-05-31 10:08:03 ContextConfig[/JRunForum]: Marking this application
 unavailable due to previous error(s)
 2001-05-31 10:08:03 StandardWrapper[/JRunForum:default]: Loading container
 servlet default
 2001-05-31 10:08:03 default: init
 2001-05-31 10:08:03 StandardWrapper[/JRunForum:invoker]: Loading container
 servlet invoker
 2001-05-31 10:08:03 invoker: init
 2001-05-31 10:08:03 StandardWrapper[/JRunForum:jsp]: Using Jasper
classloader
 for servlet jsp
 2001-05-31 10:08:04 StandardWrapper[/JRunForum:jsp]: Marking servlet jsp
as
 unavailable
 2001-05-31 10:08:04 StandardContext[/JRunForum]: Servlet /JRunForum threw
 load() exception
 javax.servlet.ServletException: Error instantiating servlet class
 org.apache.jasper.servlet.JspServlet
  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:817)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3277)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:353)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
  at 

RE: Apache and Tomcat on different boxes

2001-06-06 Thread Chauhan, Anand

wonderful.. seems good.. thanks a bunch. 

-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: Apache and Tomcat on different boxes


The workers.properties file should be on the Apache machine.  The 
problem you're running into is that the documentation usually assumes 
Tomcat and Apache are on the same machine, and it's leading you 
to believe that workers.properties has something to do with Tomcat.  
workers.properties is only relevant to mod_jk running on Apache, not 
to Tomcat.  If you need the example file provided with Tomcat, just copy 
it over to the Apache machine from a distribution of Tomcat and point 
JkWorkersFile to the right place on the local file system.

And yes, it does work.  I've run several development and production 
systems this way.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Wed, 6 Jun 2001 11:23:07 -0400, Chauhan, Anand wrote:

The idea seems great. But how would you access the worker.properties file on the 
remote machine. Or is it that, as suggested, you would be creating a  
worker.properties file in the conf/worker.properties

Did the idea work for you ? Let me know. Thanks. 

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:10 AM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


Thks for replying,

   So if i understand you correctly, i have to create 
a workers.properties file in my apache conf dir and have mod_jk look for it 
there?

eg.
httpd.conf contains 

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

JkMount /someurl remotetomcat

and 

workers.properties file in apache/conf contains:

worker.remotetomcat.type=ajp13
worker.remotetomcat.port=8009
worker.remotetomcat.host=www.x.com
worker.remotetomcat.cachesize=30

   Is that all i have to do?

Thks a Million,
Paul



Quoting Jason Koeninger [EMAIL PROTECTED]:

 The ip address or hostname of the Tomcat machine is stored 
 in the workers.properties file referenced by your mod_jk setup.
 I've also seen some sort of url version of the JkMount command, 
 but I've never used it myself and don't know if it works or what 
 versions it works on.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
 
 Hi all,
 
 I tried searching to mailing list b4 posting here. Anyway,
 what must i put into apache's http.conf for 
 mod_jk.so to enable a connection to a separate machine containing tomcat
 3.2.2? 
 
 Placing both the Web Server and App server into 1
 machine is rather well documented. But I can't seem 
 to find any for separate machines.
 Can someone show me where to fish? or would someone gimme a fish?
 
 Thks,
 Paul
 
 
 
 




How to connect Apache and Tomcat?

2001-06-06 Thread Tomeu Bennàssar

Hi everybody:
I'm new in Apache and I'm trying to integrate Tomcat as an
in-process servlet container of Apache but I can't. I have a SUN ULTRA 1
running solaris 5.7, Apache 1.3.4 and Tomcat 3.2.2. I'm following the
Minimalistic User's Guide of Apache, and I'm trying to compile the Jserv
module (mod_jserv) but it doesn't work. When I execute the build command
apxs:

apxs -c -o mod_jserv.so *.c

I get the next error:

apxs: Error: Sorry no shared object support for Apache
apxs: Error: available under your platform. Make sure
apxs: Error: the apache module mod_so is compiled into
apxs: Error: your server binary /usr/local/apache/bin/httpd


I know that this error is not a compilation one, but I don't know to
correct it.
Could anyone help me, please?

PD: The Apache that I´m running on my system is one that I have found
compiled on the web, because after weeks of works i was unable to
compile it. Could the fact that I´m using an Apache compiled by someone
else be part of the problem?





Tomcat NT Service: Strange issue

2001-06-06 Thread Nibler Jeff R. (PDX1JRN)

Ok, I've been banging my head against the keyboard for a day and a half
trying to figure this out.  Here is the scenario:
I have Tomcat 3.2 running as a service on an NT server with IIS.  Until
yesterday, I had an older Version of Tomcat running, then I upgraded it.
Now, when I start the service, everything seems to work fine, but in one of
my servlet's init method, I have the following code:


System.getProperties().put(java.protocol.handler.pkgs,com.sun.net.ssl.int
ernal.www.protocol);
java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());   

When I try to hit that servlet in a browser, I get a
java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider error.
Now HERE is the strange part.  If I stop the service, and launch Tomcat
using the Startup.bat file, everything works just fine.  The only thing I
could see causing this problem would be some sort of classpath issue, but I
have the correct TOMCAT_HOME environment variable, as well as the correct
CLASSPATH and JAVA_HOME env variables.  I also put the TOMCAT_HOME and
JAVA_HOME in the wrapper.properties file, but still it gives me the
NoClassDefFoundError when I run as a service, but not when I run it using
the Startup.bat.  

Does ANYONE have any idea what could be causing this?  Thanks in advance for
any help with this!!

-Jeff



Re: mod_jk and mod_perl

2001-06-06 Thread Jeff Kilbride

I would go with option #1 -- build apache with mod_perl statically and
mod_so, then load mod_jk dynamically. I think you're going to have a lot of
work trying to get mod_jk to compile statically with apache, because the
developers haven't released an easy static version. You'd have to
integrate the mod_jk code into the apache source yourself.

The reason you can't use perl 5.005 may be your apache version (or apxs
version). You may also be able to switch to an older version of apache to
compile mod_perl as a DSO.

The other option is to upgrade perl. It's really not that hard and shouldn't
cause any major problems. You may want to try that first. (personally, I
think it's easier to upgrade perl than to install apache for the first
time...)

Thanks,
--jeff

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 5:12 PM
Subject: RE: mod_jk and mod_perl


 We're running perl 5.005_03 on Solaris 2.6/sparc.  When I go to build
 mod_perl as a DSO, I get:

 * ERROR *

   Your current configuration will most likely trigger core dumps,
 suggestions:
*) Do not configure mod_perl as a DSO
*) Upgrade your Perl version to 5.6.0 or higher (w/ -Ubincompat5005)
*) Configure Perl with -Uusemymalloc (not recommended for performance)


 * ERROR *

 We're not in a position to upgrade perl or reconfigure perl.  So I can't
 build mod_perl as a DSO.

 My options are (in order of preference):
 - build apache with mod_perl (statically) and mod_so.  Then to load mod_jk
 with apxs.
 - build apache with mod_perl and mod_jk statically.
 - run two apache instances.  The first one will have mod_so and mod_jk and
 will handle requests for servlets and static pages.  The second will have
 mod_perl and will handle perl requests.

 If you, or anyone else, has any advice, I'd be stoked.

 Thanks,
 * * * John


 -Original Message-
 From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 05, 2001 4:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: mod_jk and mod_perl


 I've run both mod_jk and mod_perl as dynamically linked modules in the
past,
 but not statically. The dynamic modules were very easy to get running.

 Any reason it has to be statically compiled?

 Thanks,
 --jeff

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 3:48 PM
 Subject: mod_jk and mod_perl


  Hello,
 
  I'm trying to build a statically linked version of apache v1.3.19 with
  mod_jk (from tomcat v3.2.1) and mod_perl v1.25 for Solaris 2.6/sparc.
Has
  anyone successfully done this before?  I can build apache with mod_jk
and
  apache with mod_perl, but I haven't been able to build apache with both
  modules.  I've searched this mailing list and several others and have
made
  no progress.  My next step is to deconstruct the mod_jk makefile to fit
 the
  source into $APACHE_SRC/src/modules/jk.  Any hints are appreciated.
 
  Thanks,
  * * * John Ubante
 





RE: Tomcat NT Service: Strange issue

2001-06-06 Thread Randy Layman


The JAR file for the com.sun...Provider class is in a JAR file that
is in the CLASSPATH environment variable, but not in your wrapper.properties
file's wrapper.class_path variable.  (When the service starts the new JVM it
ignores the System's CLASSPATH environment variable)

Randy

 -Original Message-
 From: Nibler Jeff R. (PDX1JRN) [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 1:19 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat NT Service: Strange issue
 
 
 Ok, I've been banging my head against the keyboard for a day 
 and a half
 trying to figure this out.  Here is the scenario:
 I have Tomcat 3.2 running as a service on an NT server with 
 IIS.  Until
 yesterday, I had an older Version of Tomcat running, then I 
 upgraded it.
 Now, when I start the service, everything seems to work fine, 
 but in one of
 my servlet's init method, I have the following code:
 
   
 System.getProperties().put(java.protocol.handler.pkgs,com.s
 un.net.ssl.int
 ernal.www.protocol);
   java.security.Security.addProvider(new
 com.sun.net.ssl.internal.ssl.Provider()); 
 
 When I try to hit that servlet in a browser, I get a
 java.lang.NoClassDefFoundError: 
 com/sun/net/ssl/internal/ssl/Provider error.
 Now HERE is the strange part.  If I stop the service, and 
 launch Tomcat
 using the Startup.bat file, everything works just fine.  The 
 only thing I
 could see causing this problem would be some sort of 
 classpath issue, but I
 have the correct TOMCAT_HOME environment variable, as well as 
 the correct
 CLASSPATH and JAVA_HOME env variables.  I also put the TOMCAT_HOME and
 JAVA_HOME in the wrapper.properties file, but still it gives me the
 NoClassDefFoundError when I run as a service, but not when I 
 run it using
 the Startup.bat.  
 
 Does ANYONE have any idea what could be causing this?  Thanks 
 in advance for
 any help with this!!
 
 -Jeff
 



RE: Tomcat NT Service: Strange issue

2001-06-06 Thread Nibler Jeff R. (PDX1JRN)

It never fails.  You could wait days before sending a question to the list,
but the second you do, you figure the problem out yourself.  Well, I didn't
figure it out exactly, but I did get it to work.  I had to add each and
every entry in my CLASSPATH environment variable to the wrapper.properties
file.  This made everything ok when running Tomcat as an NT service.  I do
still have a question though: Why doesn't Tomcat just use the existing
CLASSPATH environment variable?

Jeff

-Original Message-
From: Nibler Jeff R. (PDX1JRN) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:19 AM
To: [EMAIL PROTECTED]
Subject: Tomcat NT Service: Strange issue


Ok, I've been banging my head against the keyboard for a day and a half
trying to figure this out.  Here is the scenario:
I have Tomcat 3.2 running as a service on an NT server with IIS.  Until
yesterday, I had an older Version of Tomcat running, then I upgraded it.
Now, when I start the service, everything seems to work fine, but in one of
my servlet's init method, I have the following code:


System.getProperties().put(java.protocol.handler.pkgs,com.sun.net.ssl.int
ernal.www.protocol);
java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());   

When I try to hit that servlet in a browser, I get a
java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider error.
Now HERE is the strange part.  If I stop the service, and launch Tomcat
using the Startup.bat file, everything works just fine.  The only thing I
could see causing this problem would be some sort of classpath issue, but I
have the correct TOMCAT_HOME environment variable, as well as the correct
CLASSPATH and JAVA_HOME env variables.  I also put the TOMCAT_HOME and
JAVA_HOME in the wrapper.properties file, but still it gives me the
NoClassDefFoundError when I run as a service, but not when I run it using
the Startup.bat.  

Does ANYONE have any idea what could be causing this?  Thanks in advance for
any help with this!!

-Jeff



RE: Should we do moderation on this mailinglist??

2001-06-06 Thread Jann VanOver

Umm, wouldn't dividing the groups just give us MORE off topic problems?

If someone WANTS the job of moderating the hundreds of post in this list
they can, but I am not going to volunteer.

I think some kind of canned footer that is added to mail through the list
can be very helpful.  It should have links to FAQ, info on unsubscribing,
and list archives.  This sounds much less labor intensive than moderating.

-Original Message-
From: Hemant Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??


HI Jeff:
I agree with your idea
When after downloading most of the files are asking
how to unsubscribe, duplicate mails, lab, lab
it really pains
How abt dividing this group into several parts,
Like one for tomcat configuration
- Servlet prblems, etc


--- Jeff Waugh [EMAIL PROTECTED] wrote:
 Unfortunately, we are dealing with 'people' here.
 It is a shame that there is not a 'filter' to
 eliminate
 'stupid' people, but as hard as I've tried, I just
 can't
 program it. If someone else can, please make it an
 Opensource project
 
 But, then again, we would probably get 'stupid'
 people
 contributing, so those filters would be invalidated.
 
 Man, it looks like we're screwed.
 
 As an example, *I* use a bicycle as my primary
 means of transportation, and have had similar
 ideas about 'people' who drive cars.
 I decided *I* was screwed quite some time ago.
 
 Delete is a wonderful thing!!!
 
 (If only it was as effective on motorists)
 
 (Hmmm, probably 98% of the people reading this
 are motorists...)
 
 (Sorry, but if the shoe (wheel) fits...)
 
 -Jeff
 
 
 - Original Message -
 From: Martin van den Bemt [EMAIL PROTECTED]
 To: jakarta-tomcat-user
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 4:18 PM
 Subject: Should we do moderation on this
 mailinglist??
 
 
  Hi to everybody who is actually trying to get some
 information on this
  mailing list, or to help others,
 
 
  The 2 weeks I've been a member here, just trying
 to get new ideas and help
  others out with tomcat issues, I would say, were
 pretty horrible. about
 50%
  of the mail is actually rubbish (which means
 double mails, requests for
  unsuscribing and other SPAM. This can have a
 couple of couses :
  irritated mode on
  - Most people cannot read
  - Most people cannot think logically
  - Most people should not be able to subscribe to
 this list
  - Most people shouldn't wast other people's time,
 so they still want to
 help
  people.
  irritated mode off
  solution mode on
  - members with no active e-mail address should
 be deleted right away
 (who
  has the rights to do that?), so people don't
 resend messages again. (I
  mailed the owner of the mailinglist, but haven't
 had a reply yet..)
  - Don't allow misuse of the mailinglist anymore :
 block those senders
  immidiately from the mailinglist (that's what they
 want it seems) == are
  there any facilities for that.
  - Don't reply to misuse of the mailinglist
  - Off topic messages can be nicely redirected to
 the appropiate area.
  - Let everyone state clearly what they are using
 (rh 7.1, windows 2000,
  which version of tomcat, etc). A lot of replies
 are pretty useless if they
  have another version of the product. Also the
 probability that the correct
  people (the people actually using tomcat on a
 rh7.1 box, will reply..)
  - Send a rules e-mail to subscribers.
  - Send stuff that's not interesting (like someone
 suggested in the list
  today), directly to the sender of the mail. (If I
 have made a commercial
  solution for a problem or question, I mail to
 peoples private e-mail
  address, as an example..)
 
  The common goal should be :
 
  Users helping users!!
 
  Just trying to get some improvement here.. I think
 a lot of people are
  currently giving up on this list and that's not
 good for tomcat (at least
  that's what I think)
 
  Mvgr,
  Martin van den Bemt
 
 
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Jikes and Tomcat for JSP compilation

2001-06-06 Thread WEST, Peter


can anybody point me to a straightforward how to get Tomcat to compile JSPs
with Jikes rather than JDK tutorial?

So far I have changed web.xml server.xml (both of which made no difference).
I have also read that it may be necessary to change the source of a line in
webserver.jar I have the details of this but dont exactly believe it is
necessary??

Any pointers? Ideas?

thanks,

Pete


___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



Error 500

2001-06-06 Thread Maddux, Craig

I've gotten what seems to be a rather common error, after having reviewed
the mailing archives... but none of the solutions that seem to work for
those
other people have solved my problem.

For JSP pages, Tomcat can't find the sun/tools/javac/main.  This is, of
course,
located in the tools.jar.  So far, this is what I've done:

Specified JAVA_HOME to the root of my jdk (version 1.3, though I have tried,
and
gotten similar results, with 1.2.2).

Classpaths - I've put the necessary classpaths in.  I've moved all of the
tomcat/lib jars
over to the jdk classpath jre/lib/ext, as had been suggested previously.
I've even gone
so far as to specificy, exactly, the tools.jar file (i.e.,
c:\jdk\lib\tools.jar)

Path - I've included my jdk bin directory in the path, and have access to
javac
from any directory.

I've also tried reinstalling Tomcat, with a fresh download, and still
nothing worked.  Any
suggestions as to what to try next?



  1   2   >