RE: [tomcat] Re: deploy simple HTTP doPost servlet to tomcat 5.0.28

2004-10-03 Thread Ernesto Echeverría
Have you checked directory permissions? What operating system are you using?
Have you checked the logs? What about installing a webapp compressed like a
war? If it works you just remove unnecessary files and start over with a
fresh app (in case your configuration files are wrong)? 


José Ernesto Echeverría
[EMAIL PROTECTED]
 

-Original Message-
From: Christian Ruediger [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 01 de Octubre de 2004 10:07 a.m.
To: Ernesto Echeverría
Cc: Tomcat Users List
Subject: Re: [tomcat] Re: deploy simple HTTP doPost servlet to tomcat 5.0.28

The admin frontend doesn't show a context of my app.
Others are there.

I added a static file debugger.html to the root-folder of my app.
The new structure is:

webapp
- XML_RPC_Testserveur
- - debugger.html
- - WEB-inf
- - - classes
- - - - testserveur
- - - - - XML_RPC_Servlet.class
- - - libs
- - - web.xml

Called URL:
http://localhost:8080/XML_RPC_Testserveur/debugger.html

but got no reply


On Fri, 1 Oct 2004 09:56:22 -0600, Ernesto Echeverría
[EMAIL PROTECTED] wrote:
 Have you tried checking the status of your webapp using tomcat's manager?
 Here you can see if the app is loaded. Putting some static content in 
 the webapp folder (simple html and/or jsp should work). Finally some 
 log examining could work as well.
 
 José Ernesto Echeverría
 [EMAIL PROTECTED]
 
 
 
 
 -Original Message-
 From: Christian Ruediger [mailto:[EMAIL PROTECTED]
 Sent: Viernes, 01 de Octubre de 2004 09:37 a.m.
 To: Shapira, Yoav
 Cc: Tomcat Users List
 Subject: [tomcat] Re: deploy simple HTTP doPost servlet to tomcat 
 5.0.28
 
 Ok,
 
 The structure has been ok already. I just missed to write the WEB-INF 
 dir in my mail.
 I corrected my web.xml file in that way:
 ?xml version=1.0 ?
 
 web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://
 www.w3.org/2001/XMLSchema-instance
 xsi:schemaLocation=http://java.sun.com/xml/ns/
 j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 
 display-nameTestservlet/display-name
 ... the rest is, as it was
 
 I restarted Tomcat and tried again:
 http://localhost:8080/XML_RPC_Testserveur
 
 i even tried:
 http://localhost:8080/webapp/XML_RPC_Testserveur
 
 I had no success.
 The app I wrote is not to complex.
 What did I miss?
 
 Any Answers?
 Christian
 
 On Fri, 1 Oct 2004 11:11:12 -0400, Shapira, Yoav 
 [EMAIL PROTECTED]
 wrote:
 
  Hi,
  Your web.xml is invalid: you can't have both 2.2 and 2.4 DTD/schema
 declarations.  Pick one, probably 2.4.
 
  Your app structure is invalid.  Classes and libs go under
 [webapp]/WEB-INF, not just [webapp].
 
  Yoav Shapira
  Millennium Research Informatics
 
 
 
 
  -Original Message-
  From: Christian Ruediger [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 01, 2004 10:56 AM
  To: Tomcat Users List
  Subject: deploy simple HTTP doPost servlet to tomcat 5.0.28
  
  Hi folks,
  after trying the complex aproach without any success, I started a 
  lowtech approach. I simply want a small servlet deployed. Can't be 
  too complicated.
  
  What I have:
  Apache Tomcat 5.0.28 Server
  Win 2000
  j2sdk1.4.2_05
  
  I constructed the following structure in tomcats webapp folder:
  
  webapp -
 - classes
 - testserveur
 - XML_RPC_Servlet.class
 - libs
 - web.xml
  
  (dont bother the name XML_RPC_Servlet.its for future purposes.
  currently only text is displayed - see code below)
  
  web.xml is as follows:
  
  !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.// DTD 
  WebApplication 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
  
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  version=2.4
  
  display-nameTestservlet/display-name
  context-parameter
  param-nameLieblingsfarbe/param-name
  param-valuerot/param-value
  /context-parameter
  servlet
servlet-nameXML_RPC_Testserveur/servlet-name
servlet-class
  testserveur.RPC_XML_Servlet
/servlet-class
  /servlet
  servlet-mapping
servlet-nameXML_RPC_Testserveur/servlet-name
url-pattern/XML_RPC_Testserveur/url-pattern
  /servlet-mapping
  /web-app
  
  code is as follows:
  
  public class XML_RPC_Servlet extends HttpServlet{
  
  
  
  protected void doGet(HttpServletRequest req,
   HttpServletResponse res)
throws ServletException, IOException
 {
   res.setContentType(text/html);
   PrintWriter out = res.getWriter();
   out.println(HTMLHEADTITLEHello There!/TITLE+
   /HEADBODYHello There!/BODY/HTML);
   out.close();
 }
  
  public String getServletInfo()
 {
   return HelloClientServlet 1.0 by Stefan Zeiger;
 }
  }
  
  What i did:
  -Started Tomcat (is configured

RE: [tomcat] deploy simple HTTP doPost servlet to tomcat 5.0.28

2004-10-01 Thread Ernesto Echeverría
Without examining details in your message I can ask:

Structure should be (maybe it is already?)

Webapp
  WEB-INF
web.xml
classess
lib

Etc. 

Then, shouldn't be you calling

http://localhost:8080/webapp/XML_RPC_Testserveur

Instead?

Regards.


José Ernesto Echeverría
[EMAIL PROTECTED]

 

-Original Message-
From: Christian Ruediger [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 01 de Octubre de 2004 08:56 a.m.
To: Tomcat Users List
Subject: [tomcat] deploy simple HTTP doPost servlet to tomcat 5.0.28

Hi folks,
after trying the complex aproach without any success, I started a lowtech
approach. I simply want a small servlet deployed. Can't be too complicated.

What I have:
Apache Tomcat 5.0.28 Server
Win 2000
j2sdk1.4.2_05

I constructed the following structure in tomcats webapp folder:

webapp -
   - classes
   - testserveur
   - XML_RPC_Servlet.class
   - libs
   - web.xml

(dont bother the name XML_RPC_Servlet.its for future purposes.
currently only text is displayed - see code below)

web.xml is as follows:

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.// DTD WebApplication
2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

display-nameTestservlet/display-name
context-parameter
param-nameLieblingsfarbe/param-name
param-valuerot/param-value
/context-parameter
servlet
  servlet-nameXML_RPC_Testserveur/servlet-name
  servlet-class
testserveur.RPC_XML_Servlet
  /servlet-class
/servlet
servlet-mapping
  servlet-nameXML_RPC_Testserveur/servlet-name
  url-pattern/XML_RPC_Testserveur/url-pattern
/servlet-mapping
/web-app

code is as follows:

public class XML_RPC_Servlet extends HttpServlet{



protected void doGet(HttpServletRequest req,
 HttpServletResponse res)
  throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter out = res.getWriter();
 out.println(HTMLHEADTITLEHello There!/TITLE+
 /HEADBODYHello There!/BODY/HTML);
 out.close();
   }
   
public String getServletInfo()
   {
 return HelloClientServlet 1.0 by Stefan Zeiger;
   }
}

What i did:
-Started Tomcat (is configured to localhost:8080) -opened Browser -typed
http://localhost:8080/XML_RPC_Testserveur

- got only a message that the resource is unavailable (in french):

*
type Rapport d'état
message /XML_RPC_Testserveur
description La ressource demandée (/XML_RPC_Testserveur) n'est pas
disponible.
**

I am searching for a reason of this for nearly a day.
Is there anyone who can help me?

Thanx Christian

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



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



RE: [tomcat] Tomcat Connection Pool

2004-09-08 Thread Ernesto Echeverría
You could try to reconfigure the web.xml thru the Tomcat Administration
Tool. At least you get the basic configuration and after that you can
complete the configuration manually.



-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 08 de Septiembre de 2004 03:26 p.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] Tomcat  Connection Pool

I do not know what is going on.  I am using the Tomcat
5.0.27 in the Windows XP environment.

I insert the following code right before the /Host element in the
$TOMCAT/conf/server.xml file; i.e.
inside the Host element and right before its closing tag. I re-boot my
computer, and then, I cannot start the Tomcat. I removed the segment of code
shown below; then, Tomcat functions normally. What is wrong?

Context 
   Resource name=jdbc/OracleDB auth=Container
 type=javax.sql.DataSource/ 

   ResourceParams name=jdbc/OracleDB
  parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
 namemaxWait/name
 value5000/value
  /parameter
  parameter
 namemaxActive/name
 value20/value
  /parameter
  parameter
 namepassword/name
 valuecmis001/value
  /parameter
  parameter
 nameurl/name

valuejdbc:oracle:thin:@172.19.47.22:1521:devora2/value
  /parameter
  parameter
 namedriverClassName/name

valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
 namemaxIdle/name
 value10/value
  /parameter
  parameter
 nameusername/name
 valuecmis/value
  /parameter
  parameter
 nameremoveAbandoned/name
 valuetrue/value
  /parameter
  parameter
 nameremoveAbandonedTimeout/name
 value60/value
  /parameter
  parameter
 namelogAbandoned/name
 valuetrue/value
  /parameter
/ResourceParams
/Context





__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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


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



RE: [tomcat] Newbie question about getting first servlet working in tomcat on iseries v5r2

2004-09-04 Thread Ernesto Echeverría
To me this sounds like a directory misplacement.

Can you elaborate on:

What directories have you placed your files into?
Are you using the ROOT webapp?
Have you tried the tomcat sample applications? 
If you type the html file name into the url does your app work?

Other tip I could give you now has to do with working the simple
configurations first and then climbing on the complexity ladder.
For example why don't you try your webapp in the tomcat instance directly
and later worrying about configuring mod_jk passthru.

Regards.

José Ernesto Echeverría
[EMAIL PROTECTED]

 

-Original Message-
From: Ralph A. Borriello [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 03 de Septiembre de 2004 11:50 p.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] Newbie question about getting first servlet working in
tomcat on iseries v5r2

Hello all,  

I work on an as/400 (iseries) version v5r2. I have setup a apache/tomcat
server instance under the ibm http server and am trying to get a simple
helloservlet servlet to work properly. The server instance is referencing
version 1.3 of the jdk. I have compiled the java using jedit and jcompile
plugin on windows and copied and pasted the html and class files to the
iseries via a mapped drive  

The sample is a html file and a class file. It is a simple form where the
servlet just mirrors back the name that was typed on the form. When I enter
the name, I get a page cannot be found error. The url is modified to look
like this: http://10.126.2.2:8082/HelloServlet?user_name=asdasdf (as I typed
asdasdf).

I have included the source for the html, the java program, and the server
logs. In them it does say that it cant find the servlet called HelloServlet,
but it is there. Do I have to package the files in a .war file ?? I have
scoured the documenation that I could find on the iseries and the tomcat
sites and have tried many things but cant get it working. Any help would be
greatly appreciated. 
Thanks for taking the time to read this :) 

If this is the wrong forum for this type of question or if there is a better
one, please let me know. 

All the object authorites give full access to *public and the user that the
server is running under. 

The httpd.conf file: 


# Apache Default server configuration
LoadModule jk_module /QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM

# General setup directives
HotBackup Off
CgiConvMode %%MIXED/MIXED%%
TimeOut 3
KeepAlive Off
DocumentRoot /www/apachedft/htdocs
AddLanguage en .en

# Deny most requests for any file
JkWorkersFile /www/apachedft/conf/workers.properties
JkLogFile /www/apachedft/logs/jk.log
JkLogLevel Error
JkMount /calc mytomcat
ServerUserID QTMHHTTP
DirectoryIndex index.html
Directory /
  order allow,deny
  deny from all
  Options -Indexes -ExecCGI -includes
  AllowOverride Limit Options
/Directory

# Allow requests for files in document root Directory
/www/apachedft/htdocs
  order allow,deny
  allow from all
/Directory
Listen *:8082
LogLength 10485760
LogLevel Debug
AccessFileName .htaccess






The html file:


htmlbody
form method=GET action=HelloServlet 
Please enter your name: 
input type=text name=user_name 
input type=submit value=OK
/form
/body/html






the java program: 

/**
 * This program is an example from the book Internet
 * programming with Java by Svetlin Nakov. It is freeware. 
 * For more information: http://www.nakov.com/books/inetjava/
 */
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*; 
 
public class HelloServlet extends HttpServlet { 
public void doGet (HttpServletRequest aRequest, 
HttpServletResponse aResponse) 
throws ServletException, IOException { 
aResponse.setContentType(text/html); 
ServletOutputStream out = aResponse.getOutputStream(); 
String userName = aRequest.getParameter(user_name); 
out.println(html); 
out.println(head); 
out.println(\ttitleHello Servlet/title); 
out.println(/head); 
out.println(body); 
out.println(\th1Hello,  + userName + /h1); 
out.println(/body/html); 
}
}





Portion of the web.xml file: 


servlet  
   servlet-name  
  servlet1 
   /servlet-name 
   servlet-class 
  HelloServlet 
   /servlet-class
   load-on-startup   
  3
   /load-on-startup  
   /servlet-name
   servlet-class
  HelloServlet
   /servlet-class   
   load-on-startup  
  3   
   /load-on-startup 
/servlet
servlet-mapping 
   servlet-name 
  servlet1
   /servlet-name
   url-pattern  
  /*  
   /url-pattern 
servlet-mapping  
   servlet-name  
  servlet1 
   /servlet-name 
   url-pattern   
  /*   
   /url-pattern  
/servlet-mapping 
 /web-app





the error_log

RE: Newbie help w/ORielly examples

2004-09-03 Thread Ernesto Echeverría
What book is that? Java Server Pages 3rd Edition? 

Have you tried the JSP samples from the tomcat installation? First thing to
do cause then you know if jsps are compiling correctly.


José Ernesto Echeverría


-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 03 de Septiembre de 2004 12:16 p.m.
To: 'Tomcat Users List'
Subject: [tomcat] RE: Newbie help w/ORielly examples

Yes, the entire directory.  I think I'll uninstall 5.19 and install 5.27

-Original Message-
From: Williams, Mark L CIV NSWC-PC [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 11:01 AM
To: Tomcat Users List
Subject: RE: Newbie help w/ORielly examples

FWIW, the O'Reilly examples work just fine on my TC 5.0.27 site with no
tweaking of any kind. Did you if you followed the installation instructions
to be sure the whole directory tree was copied into the webapps directory?

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 12:57
To: Tomcat Users List
Subject: RE: Newbie help w/ORielly examples



Hi,
Are you trying the Tomcat examples or the O'Reilly ones?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 1:55 PM
To: 'Tomcat Users List'
Subject: RE: Newbie help w/ORielly examples

I don't know if the Tomcat examples run.  That's what I'm trying.
Other JPSs  Servelts do run on this tomcat installation.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 10:25 AM
To: Tomcat Users List
Subject: RE: Newbie help w/ORielly examples


Hi,
It's not accurate to say that 500-class HTTP responses are usually 
application code bugs.  Server misconfiguration is at least as common a 
cause for these responses.

The stack trace and error information posted by the OP is insufficient
to
determine the cause of the error.

To the OP: do the Tomcat examples run?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 1:20 PM
To: 'Tomcat Users List'
Subject: RE: Newbie help w/ORielly examples

Recomiliing didn't help.  Has anyone got any ideas?
Thanks.

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 2:56 PM
To: 'Tomcat Users List'
Subject: RE: Newbie help w/ORielly examples

I've restarted a few times.  I'll see if I can recompile these.

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 2:40 PM
To: Tomcat Users List
Subject: Re: Newbie help w/ORielly examples

Usually HTTP 500 codes are bugs in the code i really don't know
what
this debug attribute is used for but you should restart your 
tomcat to see if it heals.

John Najarian escribió:

I got in there but now I get this error when I try to access

the context '/ora':




HTTP Status 500 - Error retrieving attribute debug

  _


type Status report

message Error retrieving attribute debug

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

  _


Apache Tomcat/5.0.19






-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 2:25 PM
To: Tomcat Users List
Subject: Re: Newbie help w/ORielly examples



Then manually deploy it the admin app has a facility to deploy a

context that should do the trick



John Najarian escribió:





Thanks John, the autodeploy was already set to 'True'.





I've got a few apps working this one just doesn't.








-Original Message-





From: John Villar [mailto:[EMAIL PROTECTED]





Sent: Thursday, September 02, 2004 1:44 PM





To: Tomcat Users List





Subject: Re: Newbie help w/ORielly examples








enable autodeploy on the admin app (i.e. localhost:8080/admin). Make





sure you have a user configured to access the admin app in your





conf/server.xml file








John Najarian escribió:

















I've tried installing the examples from the 'Java Server Pages'





book to no avail.  I expanded the jspbook3.zip file and copied





the 'ora/' directory to the 'tomcat/webapps' directory.








I restarted the tomcat service.  When I try to access the apps





by typing 'http://localhost:8080/ora/' into a browser I get the





following displayed in the browser.














HTTP Status 404 - /ora/








type Status report








message /ora/








description The requested resource (/ora/) is not available.





Apache Tomcat/5.0.19














Any ideas?  This is running on an XP machine.








Thanks

RE: [tomcat] Removing a service from XP

2004-09-03 Thread Ernesto Echeverría
This might not be the answer to your question, but then you can keep the
service and just configure it not to start automatically (like, if you want
to start tomcat from the batch files provided). 

José Ernesto Echeverría
 

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 03 de Septiembre de 2004 01:27 p.m.
To: 'Tomcat Users List'
Subject: [tomcat] Removing a service from XP

I have a service for tomcat on XP.  Does anyone know how to remove the
service?

 

Thanks



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



RE: [tomcat] RE: Newbie help w/ORielly examples

2004-09-02 Thread Ernesto Echeverría
What version of Tomcat are you using?
Are you referring to the 3rd Edition of that book? 


José Ernesto Echeverría
[EMAIL PROTECTED]

 

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 02 de Septiembre de 2004 03:56 p.m.
To: 'Tomcat Users List'
Subject: [tomcat] RE: Newbie help w/ORielly examples

I've restarted a few times.  I'll see if I can recompile these.

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 2:40 PM
To: Tomcat Users List
Subject: Re: Newbie help w/ORielly examples

Usually HTTP 500 codes are bugs in the code i really don't know what
this debug attribute is used for but you should restart your tomcat to
see if it heals.

John Najarian escribió:

I got in there but now I get this error when I try to access

the context '/ora':

 


HTTP Status 500 - Error retrieving attribute debug

  _


type Status report

message Error retrieving attribute debug

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

  _  


Apache Tomcat/5.0.19


 

 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 02, 2004 2:25 PM
To: Tomcat Users List
Subject: Re: Newbie help w/ORielly examples

 

Then manually deploy it the admin app has a facility to deploy a 

context that should do the trick

 

John Najarian escribió:

 

  

Thanks John, the autodeploy was already set to 'True'.



  

I've got a few apps working this one just doesn't.



  


  

-Original Message-



  

From: John Villar [mailto:[EMAIL PROTECTED] 



  

Sent: Thursday, September 02, 2004 1:44 PM



  

To: Tomcat Users List



  

Subject: Re: Newbie help w/ORielly examples



  


  

enable autodeploy on the admin app (i.e. localhost:8080/admin). Make 



  

sure you have a user configured to access the admin app in your 



  

conf/server.xml file



  


  

John Najarian escribió:



  


  

 



  


  

I've tried installing the examples from the 'Java Server Pages'
  


  

book to no avail.  I expanded the jspbook3.zip file and copied
  


  

the 'ora/' directory to the 'tomcat/webapps' directory.
  


  


  

I restarted the tomcat service.  When I try to access the apps
  


  

by typing 'http://localhost:8080/ora/' into a browser I get the
  


  

following displayed in the browser.
  


  


  


  


  

HTTP Status 404 - /ora/
  


  


  

type Status report
  


  


  

message /ora/
  


  


  

description The requested resource (/ora/) is not available.
  


  

Apache Tomcat/5.0.19
  


  


  


  


  

Any ideas?  This is running on an XP machine.
  


  


  

Thanks
  


  


  


  


  

-
  


  

To unsubscribe, e-mail: [EMAIL PROTECTED]
  


  

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


  


  


  


  


  

   
  


  


  


  

 



  


 

  


-- 
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com





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



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



RE: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Ernesto Echeverría
One of the major differences between your actual version and the your
previous one has to do with disabling the invoker servlet.

I don't know if you've checked this before, but take a look at

http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08
_02/default_pf.aspx

Just to see if that's happening to you.


José Ernesto Echeverría
 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 20 de Agosto de 2004 09:14 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called
servlet-mapping, search the web for it

Diego, Emil escribió:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running
tomcat 4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after
the upgrade.  It's called servUploadMedia.  I had it in my classes directory
and it was configured in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name

servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name

param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new
version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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



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



RE: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Ernesto Echeverría
Ok.

I don't like the invoker either.

I thought you were trying only to have things working as before, that's why
I pointed out that difference.

Starting from scratch, let's try to break the problem into smaller pieces.
Have you checked if the invocation works right without passing thru
Apache/mod_jk2? That is? Have you tried the

http://localhost:8080/route-to-servlet-dir/servlet/ServletName

Invocation directly and then what's the message you get from tomcat or logs,
etc.


José Ernesto Echeverría

 

-Original Message-
From: Diego, Emil [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 20 de Agosto de 2004 10:04 a.m.
To: Tomcat Users List
Subject: RE: [tomcat] Re: Where do I place a servlet class

I saw that.  I've read a couple of negative things about enabling the
invoker.  It seems it's less secure and stuff.  I figured it would be better
to use explicit mapping, but cant get that to work.  I'll keep trying but if
I cant get it working I guess I'll just enable the invoker. 


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: Ernesto Echeverría [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 12:01 PM
To: 'Tomcat Users List'
Subject: RE: [tomcat] Re: Where do I place a servlet class

One of the major differences between your actual version and the your
previous one has to do with disabling the invoker servlet.

I don't know if you've checked this before, but take a look at

http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08
_02/default_pf.aspx

Just to see if that's happening to you.


José Ernesto Echeverría
 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Viernes, 20 de Agosto de 2004 09:14 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called
servlet-mapping, search the web for it

Diego, Emil escribió:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running
tomcat 4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after
the upgrade.  It's called servUploadMedia.  I had it in my classes directory
and it was configured in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name

servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name

param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new
version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



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



RE: [tomcat] Re: mod_jk2 and subdirectories

2004-08-19 Thread Ernesto Echeverría
I don't know exactly about the syntax of these files but the following entry
worked for me in the workers2.properties file:

[uri:$/jsp-examples/*]

Not sure about it, but apparently the $ before the / makes the difference.
Try it with jsp-examples which also has subdirectories in it.


José Ernesto Echeverría
 

-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 19 de Agosto de 2004 11:29 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: mod_jk2 and subdirectories

YOu have to use LocationMatch instead because * won't match a /.  I had this
problem myself.

Webmaster wrote:
 Hi all,
 
 I'm trying to upgrade a setup I was using with mod_jk to mod_jk2.
 
 This setup has 2 workers. Here it is:
 
 With mod_jk:
 
 JkMount /webapp1/*.jsp worker1
 JkMount /webapp2/*.jsp worker2
 
 Everything works fine if call, for instance, 
 http://localhost/webapp1/admin/login.jsp
 
 With mod_jk2 I'm trying:
 Location /webapp1/*.jsp
   JkUriSet worker ajp13:localhost:8009 /Location Location 
 /webapp2/*.jsp
   JkUriSet worker ajp13:localhost:8010 /Location
 
 If I call http://localhost/webapp1/login.jsp, it works, but if I call:
http://localhost/webapp1/admin/login.jsp, it doesn't !! Since I don't know
which subdirectories I'll have, I don't want to hardcode all the entries

 
 What can I do ?
 
 Thanks !!
 Renato.
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



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



RE: [tomcat] Mod JK - RedHat Enterprise 2.1 - Tomcat

2004-08-16 Thread Ernesto Echeverría
Have you tried the binaries rpms contained in the new Red Hat Application
Server channel? Don't know if that only works with a suscription but it
worked for me in a particular Red Hat Enterprise installation (version 3,
though)

José Ernesto Echeverría
 

-Original Message-
From: McGovern, James F (HTSC, IT) [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 16 de Agosto de 2004 11:42 a.m.
To: '[EMAIL PROTECTED]'
Subject: [tomcat] Mod JK - RedHat Enterprise 2.1 - Tomcat

Been searching the Internet and reading every FAQ I could find but still do
not know the answer to my problem. Attempting to make the version of Apache
that ships with RedHat Enterprise 2.1 talk to Tomcat via MOD_JK. Getting an
error message:

Cannot load /etc/httpd/modules/mod_jk.so into server: /lib/i686/libc.so.6:
version `GLIBC_2.3' not found (required by /etc/httpd/modules/mod_jk.so)

I have spent hours searching for the right RPM but seem to have gotten into
an endless loop. If anyone knows of a URL where I can directly download the
right RPM or can tell me how to make the problem go away, I will repay the
favor by sending them a copy of my latest book when released.


This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you are
not the intended recipient, please notify the sender immediately by return
email and delete this communication and destroy all copies.


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



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



RE: [tomcat] Re: new to list - need help

2004-08-16 Thread Ernesto Echeverría
Just wondering.

Are you using mod_jk2 or similar? 

What kind of content are you serving and what are your mappings in the
configuration files for the mod_jk connector? 

José Ernesto Echeverría
 

-Original Message-
From: Anand A Rao [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 16 de Agosto de 2004 10:50 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: new to list - need help

I get below  errors on   any jsp request.

thanks
-Anand

[Mon Aug 16 11:23:13 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.4
configured -- resuming normal operations [Mon Aug 16 11:23:13 2004] [error]
ajp13.init(): No channel /usr/local/jakarta-tomcat-5.0.25/work/jk2.socket
[Mon Aug 16 11:28:21 2004] [error] ajp13.init(): No channel
/usr/local/jakarta-tomcat-5.0.25/work/jk2.socket
Anand A Rao wrote:

 hi ,
 I am a new member to the list.
 I am trying to setup an

 Apache 2 - Tomcat 5 setup on my linux server and have ended in some 
 issues.

 Currently I can run jsps and servlets directly from tomcat but not 
 through apache.

 I have tried to follow some guides from the internet on using unix 
 sockets for communication between apache and tomcat.

 Any pointer to a good and working setup guide to accomplish this will 
 be appriciated a lot.

 thanks and regards
 Anand


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






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



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



RE: [tomcat] Help with mod_jk2 and security on Win 2003

2004-08-14 Thread Ernesto Echeverría
Before going deeply into your config, I'd ask if your app runs well without
the mod_jk2 using the (standard) 8080 port. At least that way we can figure
out if the problem has to do with your tomcat configuration or with your
mod_jk2 configuration. 


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Eugene [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 13 de Agosto de 2004 09:47 p.m.
To: Tomcat Users List
Subject: [tomcat] Help with mod_jk2 and security on Win 2003

Hi to all! First of all - thank you for this list! It helps to individuals
like I am to keep their job:) I am newbie, so maybe my questions too silly
for you, but anyway I must to ask.


I am running Apache 2.0.50+Tomcat 5.0.27-mod_jk 1.2 on Win 2003, JDK
1.4.2_05.

1) I dont have a problems to deploy and run it with mod_jk 1.2, but when I
am trying to configure mod_jk 2 it fails.
It returns java.io.FileNotFoundException when I am trying to start app.
my app is in the WEB-INF/classes/MyApp.class (as always:))

BTW, Tomcat starts and runs perfectly - stderr is clear, I am trying to test
it with standard jsp-examples - all works, but when I am trying to open the
same page which works with mod_jk 1.2 with applet tag - it returns error
with mod_jk 2. The error log of Apache sais the same thing - applet not
found. What am I doing wrong??? Help me please to figure it out. My apps
directory located in the same folder that jsp-examples folder, in web.xml
servlet mapping looks has the same locations like for example, plugin
servlet from examples:
   servlet-mapping
servlet-name
 MyApp
/servlet-name
url-pattern
/MyApp
/url-pattern
/servlet-mapping


2) The second question is about security - I am running my server under the
second administrator account with reassigned rights (so its not
administrator anymore but it has more power then advanced user which is not
enough for me). So the question is - does anybody can give
tips/instructions/links to documentaton HowTo exactly I must configure my
Windows to run with Apache and Tomcat without give to user so much power
like I have now??? I have experienced attacks on my server so I dont have so
much money to repair it again. Please help me with this if you know how -
ASAP.

These are my conofiguration key moments:) I am mounting my app directory in
httpd.conf (in Virtual Host section) like
this:
==Start
Location /*.jsp
  JkUriSet group ajp13:site.com:8009
/Location
Location /*.jspx
JkUriSet group ajp13:site.com:8009
/Location
Location /*.do
JkUriSet group ajp13:site.com:8009
/Location
===End=

My Host / in server.xml mounts apps base like this:
==Start
appBase=C:\apache_home\apache-2\htdocs
===End=

my wokers2.properties contains this:
==Start
[uri:/*.jsp]
group=ajp13:site.com:8009
[uri:/*.jspx]
group=ajp13:site.com:8009
[uri:/*.do]
group=ajp13:site.com:8009
[uri:/jsp-examples/*]
group=ajp13:site.com:8009
[uri:/myapp-folder/*]
group=ajp13:site.com:8009
===End=

Thank you very much in advance!!!


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


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



RE: Re[2]: [tomcat] Help with mod_jk2 and security on Win 2003

2004-08-14 Thread Ernesto Echeverría
 
Well from your comments and for point #1, what's the name  location of the
applet? It should be locatable within your mod_jk settings as well.

I recently had some problems with a particular configuration of mod_jk and
the following tag worked fine for me (in the workers2.properties file):

[uri:$/jsp-examples/*]
Worker=ajp13:site:8009


The $ before the root context made the difference...

Regards!

PS. I've noticed you mention mod_jk2 but then mod_jk 1.2 in your text. Which
one is it? If 1.2, have you considered upgrading to mod_jk2?

José Ernesto Echeverría
 

-Original Message-
From: Eugene [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 14 de Agosto de 2004 03:53 p.m.
To: Tomcat Users List
Subject: Re[2]: [tomcat] Help with mod_jk2 and security on Win 2003

Thank you for reply! Yes its working on 8080, and its working if I am
running just Tomcat without Apache, I am deploying it in the webapp/myapp
folder of TC. I've tryed to run this app on ports from 8009 to 8100 (just
for fun:)) - it works fine on any of these ports (actually I dont see any
difference). Thanks in advance!


 Before going deeply into your config, I'd ask if your app runs well 
 without the mod_jk2 using the (standard) 8080 port. At least that way 
 we can figure out if the problem has to do with your tomcat 
 configuration or with your
 mod_jk2 configuration. 
 
 
 José Ernesto Echeverría
 [EMAIL PROTECTED]
 Tel. (503)8859011
  
 
 -Original Message-
 From: Eugene [mailto:[EMAIL PROTECTED]
 Sent: Viernes, 13 de Agosto de 2004 09:47 p.m.
 To: Tomcat Users List
 Subject: [tomcat] Help with mod_jk2 and security on Win 2003
 
 Hi to all! First of all - thank you for this list! It helps to 
 individuals like I am to keep their job:) I am newbie, so maybe my 
 questions too silly for you, but anyway I must to ask.
 
 
 I am running Apache 2.0.50+Tomcat 5.0.27-mod_jk 1.2 on Win 2003, JDK 
 1.4.2_05.
 
 1) I dont have a problems to deploy and run it with mod_jk 1.2, but 
 when I am trying to configure mod_jk 2 it fails.
 It returns java.io.FileNotFoundException when I am trying to start app.
 my app is in the WEB-INF/classes/MyApp.class (as always:))
 
 BTW, Tomcat starts and runs perfectly - stderr is clear, I am trying 
 to test it with standard jsp-examples - all works, but when I am 
 trying to open the same page which works with mod_jk 1.2 with applet 
 tag - it returns error with mod_jk 2. The error log of Apache sais 
 the same thing - applet not found. What am I doing wrong??? Help me 
 please to figure it out. My apps directory located in the same folder 
 that jsp-examples folder, in web.xml servlet mapping looks has the 
 same locations like for example, plugin servlet from examples:
servlet-mapping
 servlet-name
  MyApp
 /servlet-name
 url-pattern
 /MyApp
 /url-pattern
 /servlet-mapping
 
 
 2) The second question is about security - I am running my server 
 under the second administrator account with reassigned rights (so its 
 not administrator anymore but it has more power then advanced user 
 which is not enough for me). So the question is - does anybody can 
 give tips/instructions/links to documentaton HowTo exactly I must 
 configure my Windows to run with Apache and Tomcat without give to 
 user so much power like I have now??? I have experienced attacks on 
 my server so I dont have so much money to repair it again. Please 
 help me with this if you know how - ASAP.
 
 These are my conofiguration key moments:) I am mounting my app 
 directory in httpd.conf (in Virtual Host section) like
 this:
 ==Start
 Location /*.jsp
   JkUriSet group ajp13:site.com:8009
 /Location
 Location /*.jspx
 JkUriSet group ajp13:site.com:8009 /Location Location /*.do
 JkUriSet group ajp13:site.com:8009 /Location 
 ===End=
 
 My Host / in server.xml mounts apps base like this:
 ==Start
 appBase=C:\apache_home\apache-2\htdocs
 ===End=
 
 my wokers2.properties contains this:
 ==Start
 [uri:/*.jsp]
 group=ajp13:site.com:8009
 [uri:/*.jspx]
 group=ajp13:site.com:8009
 [uri:/*.do]
 group=ajp13:site.com:8009
 [uri:/jsp-examples/*]
 group=ajp13:site.com:8009
 [uri:/myapp-folder/*]
 group=ajp13:site.com:8009
 ===End=
 
 Thank you very much in advance!!!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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

Re: servlet question

2004-08-14 Thread Ernesto Echeverría
I've seen your code, and your configuration... Everything seems fine
(apparently) but then...

I guess the url-pattern*.login/url-pattern means you want to be able to
call that from any address in the context, otherwise you might need to write
/*.login instead for the root of the application context.

What about making things simple first? Are you calling the servlet directly
from a browser or from another servlet? How are you invoking it? Are you
feeding the parameters with specific values? What about putting some
hardcoded text in the System.out.println commands so you can really see if
the servlet is being invoked? Do the servlet-examples of tomcat in your
installation work? Is this a particular servlet not working or the first
servlet in this particular application? What about forwarding to the
login_failed.jsp page also it you catch an exception out of the try-catch
block? 

Regards.

José Ernesto Echeverría

 

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 14 de Agosto de 2004 02:22 p.m.
To: Tomcat Users List
Subject: [tomcat] Re: servlet question

Attached is the servlet, can you see any problems here? It compiles fine.

David Short wrote:

Are you running this through apache redirected to tomcat or straight 
from tomcat?

Try loading the servlet at tomcat startup to see if the servlet is 
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue and discovered that my pattern in apache wasn't right.
However, if you're not using apache, I don't know what to say.  The 
syntax looks correct.

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 14, 2004 1:05 PM
To: Tomcat Users List
Subject: re: servlet question


Hey all!

I have a servlet called login. I have it mapped in my web.xml as follows:

servlet
servlet-namelogin/servlet-name
servlet-classorg.volume4.authentication.login/servlet-class
/servlet
servlet-mapping
servlet-namelogin/servlet-name
url-pattern*.login/url-pattern
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login 
from a form it is not run? I have placed some System.out.println(); in 
there but, it seems that the servlet is not called at all. I basically 
just get a blank screen. When I look at the tomcat logs no errors are 
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or 
confidential and may not be forwarded or disclosed to any other party 
without the permission of the sender. If you received this message in 
error, please notify me immediately so that I can correct and delete 
the original email. Thank you.



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




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

  


--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



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



RE: [tomcat] Re: Use of LANG=en_US in Tomcat configuration file - CLOSED

2004-08-12 Thread Ernesto Echeverría
You are probably right regarding your comments. It must be an environment
variable

That files appears both in the rpm distributions for Red Hat Enterprise
Linux and Fedora as well.

I was wondering if that variable could help me fix some behavior a customer
apps being ported from a Windows environment to a Linux environment, and the
charset issues for a spanish based application because we are having some
problems with file encoding and forms processing. I might post something
about those problems later on.

Thank you very much for your response.


José Ernesto Echeverría

 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 12 de Agosto de 2004 09:43 a.m.
To: Tomcat Users List
Subject: Re: [tomcat] Re: Use of LANG=en_US in Tomcat configuration file

Ernesto Echeverría wrote:

Sorry for the missing data.

File = tomcat5.conf
Tomcat Version = Apache Tomcat/5.0
JVM Version = 1.4.1
OS Name = Linux (Red Hat Enterprise Linux)

Partly, that's the reason for my question. This seems to be data for 
scripting.

José Ernesto Echeverría
  

José,

How was Tomcat installed? I'm not aware of any tomcat5.conf file in the
official Tomcat 5 distribution. Where is this file located in your system?
It may simply be used to start/stop tomcat (as an init script) - in which
case, the only affect it has is indicating in the environment what the
default language of the box is. And it actually indicates that to the Java
runtime, not Tomcat, per-se.

This doesn't in any way that I know of affect what languages Tomcat can
serve to requests or anything of that nature. It may affect the localization
of error messages that are produced in the Java runtime, not sure about that
aspect of it. It may also affect some default of
localization/internationalization routines - but, again, this is nothing
that cannot be (and should be) overridden by the application itself.

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


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



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



RE: [tomcat] Re: Use of LANG=en_US in Tomcat configuration file

2004-08-10 Thread Ernesto Echeverría
Sorry for the missing data.

File = tomcat5.conf
Tomcat Version = Apache Tomcat/5.0
JVM Version = 1.4.1 
OS Name = Linux (Red Hat Enterprise Linux)

Partly, that's the reason for my question. This seems to be data for
scripting.

José Ernesto Echeverría
 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Martes, 10 de Agosto de 2004 09:54 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Use of LANG=en_US in Tomcat configuration file

Ernesto Echeverría wrote:

Can someone please explain what's the use for this line in the tomcat 
configuration file?

What's the use of it (the line is commented) and what effect does it 
have on a running container? What value can it take as well? Any other 
variables can be set in the same file?


Thanks in advance. 
 
José Ernesto Echeverría
  

José,

What file? server.xml? Where do you see this configuration line? What
version of Tomcat are you using?

Thanks!

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


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


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



Use of LANG=en_US in Tomcat configuration file

2004-08-09 Thread Ernesto Echeverría
Can someone please explain what's the use for this line in the tomcat
configuration file?

What's the use of it (the line is commented) and what effect does it have on
a running container? What value can it take as well? Any other variables can
be set in the same file?


Thanks in advance. 
 
José Ernesto Echeverría
 
 


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



RE: [tomcat] Tomcat as Win2k service

2004-08-04 Thread Ernesto Echeverría
 
Go to the bin directory in the tomcat home directory.

There is a bat file named service that will install Tomcat as a service in
your machine.

José Ernesto Echeverría
 

-Original Message-
From: Java Techie [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 04 de Agosto de 2004 03:55 p.m.
To: Tomcat Users List
Subject: [tomcat] Tomcat as Win2k service

Hi,
I am using Tomcat5 on win2k Professional.
I want to use it as a windows service.

Please help.

Thanks.
Yogesh



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



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



RE: [tomcat] Re: Understanding tomcat web administration tool.

2004-08-01 Thread Ernesto Echeverría
Proper jsp support meaning that you have the javac defined in the classpath
and that jsp files work fine under your installation.

Considering you have access to the manager app, what about stopping 
restarting admin, do you get errors on screen or do you get an OK message?

That application is under the server/webapps directory... Not under the
regular webapps.


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Samuel V. Green III [mailto:[EMAIL PROTECTED] 
Sent: Domingo, 01 de Agosto de 2004 06:46 a.m.
To: Tomcat Users List
Subject: Re: [tomcat] Re: Understanding tomcat web administration tool.

I now logged out and am getting errors again?

Why did it work for a split-second?

Samuel.
On Aug 1, 2004, at 5:38 AM, Samuel V. Green III wrote:

 I clicked on /admin from within the manager app and entered username 
 and password and WALA!
 it now works?  Who knows?

 Samuel.
 On Aug 1, 2004, at 5:34 AM, Samuel V. Green III wrote:

 With respect to  user username=samuel password=samuel
 roles=tomcat,role1,manager,admin/

 When I attempt a login at the Admin. Tool screen I'm entering
  UserName :  samuel
  Password :samuel

 I get the following errors:
 HTTP Status 400 - Invalid direct reference to form login page

 And when examining  localhost_log.2004-08-01.txt

 I see these errors:

 2004-08-01 04:20:52 StandardHost[localhost]: Error deploying 
 application at context path null
 java.lang.IllegalStateException: Context path /admin is already in 
 use

 2004-08-01 04:20:52 HostConfig[localhost] Error deploying 
 configuration descriptor adminsample.xml
 java.io.IOException: java.lang.IllegalStateException: Context path 
 /admin is already in use

 What do you mean by properly configuring jsp support?
 My jsp-examples page loads and works fine.

 Thanks,

 Samuel.

 On Jul 31, 2004, at 6:57 PM, Ernesto Echeverría wrote:

 What kind of messages are you getting instead of the login screen?  
 Examined
 the logs already? I think admin is a struts app so you need jsp 
 support properly configured. Have you checked the jsp-examples page?


 José Ernesto Echeverría
 [EMAIL PROTECTED]
 Tel. (503)8859011


 -Original Message-
 From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
 Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
 To: Tomcat Users List
 Subject: Re: [tomcat] Re: Understanding tomcat web administration 
 tool.

 Thanks Ernesto.

 I copied your code , restarted tomcat and still no luck with getting 
 admin tool to load.
 Although Manager does work?

 Samuel.
 On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:

 What about deleting the 2nd tomcat user definition? You can use 
 roles=tomcat,admin,manager.

 Take a look at my file:

 ?xml version='1.0' encoding='utf-8'? tomcat-users
   role rolename=tomcat/
   role rolename=role1/
   role rolename=manager/
   role rolename=admin/
   user username=tomcat password=tomcat
 roles=tomcat,role1,manager,admin/
   user username=role1 password=tomcat roles=role1/
   user username=both password=tomcat roles=tomcat,role1/
   user username=ernestoe password=ernestoe
 roles=tomcat,role1,manager,admin/
 /tomcat-users


 José Ernesto Echeverría
 [EMAIL PROTECTED]
 Tel. (503)8859011


 -Original Message-
 From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
 Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
 To: Tomcat Users List
 Subject: [tomcat] Re: Understanding tomcat web administration tool.

 Hi,
 Out of the box, you don't need to edit admin.xml or manager.xml.   
 You
 just need to add a user with roles of admin and manager to the 
 tomcat-users.xml file and restart the server.

 Yoav Shapira
 Millennium Research Informatics






 I'm still having problems getting Admin Tool to work:

 Here is my interpretation of editing tomcat-users.xml to get it to 
 work.

 ?xml version='1.0' encoding='utf-8'? tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=admin/
user username=tomcat password=tomcat roles=admin,manager/
user username=tomcat password=tomcat roles=tomcat/
user username=both password=tomcat roles=tomcat,role1/
user username=role1 password=tomcat roles=role1/ 
 /tomcat-users

 What am I doing incorrect?

 Thanks,

 Samuel.





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



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



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



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

RE: [tomcat] proxy to php app

2004-08-01 Thread Ernesto Echeverría
I've started to use apache with mod_jk2, meaning that apache handles the web
server content and forwards request to tomcat according to your
configuration.

In that way you keep using all your apache goodies, cgi-bin, php, etc...

So my recommendation is: use mod_jk2, keep apache for everything else...


José Ernesto Echeverría
[EMAIL PROTECTED]
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Domingo, 01 de Agosto de 2004 08:50 a.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] proxy to php app

I know how to write servlets and filters.

How do I create a proxy app on tomcat that would forward to a php app? I do
not know how to start.

tia,
.V


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



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



RE: [tomcat] Re: Understanding tomcat web administration tool.

2004-07-31 Thread Ernesto Echeverría
What about deleting the 2nd tomcat user definition? You can use
roles=tomcat,admin,manager.

Take a look at my file:

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=tomcat
roles=tomcat,role1,manager,admin/
  user username=role1 password=tomcat roles=role1/
  user username=both password=tomcat roles=tomcat,role1/
  user username=ernestoe password=ernestoe
roles=tomcat,role1,manager,admin/
/tomcat-users 


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Samuel V. Green III [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
To: Tomcat Users List
Subject: [tomcat] Re: Understanding tomcat web administration tool.

 Hi,
 Out of the box, you don't need to edit admin.xml or manager.xml.  You 
 just need to add a user with roles of admin and manager to the 
 tomcat-users.xml file and restart the server.

 Yoav Shapira
 Millennium Research Informatics






I'm still having problems getting Admin Tool to work:

Here is my interpretation of editing tomcat-users.xml to get it to work.

?xml version='1.0' encoding='utf-8'?
tomcat-users
   role rolename=tomcat/
   role rolename=role1/
   role rolename=manager/
   role rolename=admin/
   user username=tomcat password=tomcat roles=admin,manager/
   user username=tomcat password=tomcat roles=tomcat/
   user username=both password=tomcat roles=tomcat,role1/
   user username=role1 password=tomcat roles=role1/ /tomcat-users

What am I doing incorrect?

Thanks,

Samuel.





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



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



RE: [tomcat] Re: Understanding tomcat web administration tool.

2004-07-31 Thread Ernesto Echeverría
What kind of messages are you getting instead of the login screen? Examined
the logs already? I think admin is a struts app so you need jsp support
properly configured. Have you checked the jsp-examples page? 


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Samuel V. Green III [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
To: Tomcat Users List
Subject: Re: [tomcat] Re: Understanding tomcat web administration tool.

Thanks Ernesto.

I copied your code , restarted tomcat and still no luck with getting admin
tool to load.
Although Manager does work?

Samuel.
On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:

 What about deleting the 2nd tomcat user definition? You can use 
 roles=tomcat,admin,manager.

 Take a look at my file:

 ?xml version='1.0' encoding='utf-8'? tomcat-users
   role rolename=tomcat/
   role rolename=role1/
   role rolename=manager/
   role rolename=admin/
   user username=tomcat password=tomcat
 roles=tomcat,role1,manager,admin/
   user username=role1 password=tomcat roles=role1/
   user username=both password=tomcat roles=tomcat,role1/
   user username=ernestoe password=ernestoe
 roles=tomcat,role1,manager,admin/
 /tomcat-users


 José Ernesto Echeverría
 [EMAIL PROTECTED]
 Tel. (503)8859011


 -Original Message-
 From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
 Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
 To: Tomcat Users List
 Subject: [tomcat] Re: Understanding tomcat web administration tool.

 Hi,
 Out of the box, you don't need to edit admin.xml or manager.xml.  You
 just need to add a user with roles of admin and manager to the
 tomcat-users.xml file and restart the server.

 Yoav Shapira
 Millennium Research Informatics






 I'm still having problems getting Admin Tool to work:

 Here is my interpretation of editing tomcat-users.xml to get it to 
 work.

 ?xml version='1.0' encoding='utf-8'?
 tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=admin/
user username=tomcat password=tomcat roles=admin,manager/
user username=tomcat password=tomcat roles=tomcat/
user username=both password=tomcat roles=tomcat,role1/
user username=role1 password=tomcat roles=role1/ 
 /tomcat-users

 What am I doing incorrect?

 Thanks,

 Samuel.





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



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



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



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



RE: [tomcat] Strange problem with Apache2/Tomcat4

2004-07-30 Thread Ernesto Echeverría
I'm no expert at the matter, but if tomcat works fine, it seems the problem
has to do more with the mod_jk settings.

Have you tried http://localhost/jkstatus (or equivalent) to see how the
connector is doing?

Have you mapped your applications in the workers.properties file, such as:

[uri:/examples/*] 

Etc?


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Harold Pritchett [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 29 de Julio de 2004 06:56 p.m.
To: Tomcat Users List
Subject: Re: [tomcat] Strange problem with Apache2/Tomcat4

Ernesto Echeverría wrote:

 I'm having problems with mod_jk myself.
 
 Haven't gone thru all your steps, however I'd try to establish whether 
 the problem is related to mod_jk or incorrect settings of tomcat.
 
 Have you tried accessing the same pages with the tomcat default port 
 8080 instead of going thru Apache?


If I immediately connect to http://localhost:8080 (without doing anything to
the servers,) all of the applications work just fine.


Harold
--
Harold Pritchett
[EMAIL PROTECTED]+1.706.546.0692
pgp public key: http://www.arches.uga.edu/~harold/pgpkey.html

They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
Benjamin Franklin, Historical Review of Pennsylvania, 1759.


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


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



Mod_jk2 and wildcards in mappings

2004-07-30 Thread Ernesto Echeverría
 
Aparently my problem has to do with the ability of mod_jk to interpret the
wildcards in the workers2.properties file.

Anyone with a similar problem? Is there a setting somewhere for allowing
this?

Thanks in advance.

José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 29 de Julio de 2004 02:20 p.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] Different Behaviors of mod_jk2 in linux  windows

I'm trying for the 1st time to setup mod_jk2 in a server running Red Hat
Entreprise Edition version 3 with Tomcat 5.

In the workers2.properties file I have the following setting:


[uri:/jsp-examples/*]
info=JSP Examples page


 
In Windows (Apache2 + Tomcat5), the previous setting allows me to navigate
to the jsp-examples page using the following url

http://localhost/jsp-examples

Allowing access to the whole webapp. The expected behaviour occurs in
Windows.

However, in linux (apache + tomcat), I can't run any of the examples
themselves, and I'm not able to watch the images in the jsp-examples page. 

Aparently I have to type a different line in the settings file
(workers2.properties) for each different directory.

Is there a way to circumvent this? Is it a missing setting or something that
has to do with a different configuration file.

Thanks for your help.


Ernesto Echeverria
 


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



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



RE: [tomcat] jdbc and tomcat

2004-07-30 Thread Ernesto Echeverría
Problem #1: Send us the URL so we can see the syntax... (e.g. a proper mssql
url looks like: String loginUrl =
jdbc:microsoft:sqlserver://localhost:1433;databasename=Northwind;user=sa;pa
ssword=xyz; 

Problem #2: There has to be a context-param setting somewhere causing the
problem, look for further info in the logs for identifying the file, could
it be the main web.xml configuration,



-Original Message-
From: Caroline J Tanneberger
[mailto:[EMAIL PROTECTED] 
Sent: Viernes, 30 de Julio de 2004 01:49 a.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] jdbc and tomcat

Hello,
I have got a problem with my Servlet which uses a JDBC database connection
to a Ms SQL Server There is a  getConnection command that should be
executed. But this command fails and throws the exception with description: 
[Microsoft][SQLServer 2000 Driver for JDBC] Unable to connect. Invalid URL.
is thrown. I dont know, what went wrong. Why cant the driver be found,
although I have all driver jars in my classpath and also in the lib folder
in the WEB_INF folder of the corresponding Addressbook-webapp in Tomcat?
also I have another problem:
Except of the SQL Errors there are other parsing errors , starting with
SEVERE... while tomcat is starting up, which I cannot identify. . The
message is:  The end-tag for element type context-param must end with a
'' delimiter.
First of all, all my tags of the  application ended in  '' and secondly  I
removed the  Webapplication folder  for  the  specific webapp  that  was
using  a web.xml with context-params and replaced it with another webapp
which has all its configuration parameters hard-wired in the code.
Also I removed the Context file of the former webapp from
conf\Catalina\localhost, but still it exists somewhere and causes errors.
Then I tried to clean them up by making a new installation of Tomcat, but I
couldn't uninstall the old one.
Maybe you have an idea. Help!
thanx, Caroline


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



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



Different Behaviors of mod_jk2 in linux windows

2004-07-29 Thread Ernesto Echeverría
I'm trying for the 1st time to setup mod_jk2 in a server running Red Hat
Entreprise Edition version 3 with Tomcat 5.

In the workers2.properties file I have the following setting:


[uri:/jsp-examples/*]
info=JSP Examples page


 
In Windows (Apache2 + Tomcat5), the previous setting allows me to navigate
to the jsp-examples page using the following url

http://localhost/jsp-examples

Allowing access to the whole webapp. The expected behaviour occurs in
Windows.

However, in linux (apache + tomcat), I can't run any of the examples
themselves, and I'm not able to watch the images in the jsp-examples page. 

Aparently I have to type a different line in the settings file
(workers2.properties) for each different directory.

Is there a way to circumvent this? Is it a missing setting or something that
has to do with a different configuration file.

Thanks for your help.


Ernesto Echeverria
 


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



RE: [tomcat] Strange problem with Apache2/Tomcat4

2004-07-29 Thread Ernesto Echeverría
I'm having problems with mod_jk myself.

Haven't gone thru all your steps, however I'd try to establish whether the
problem is related to mod_jk or incorrect settings of tomcat.

Have you tried accessing the same pages with the tomcat default port 8080
instead of going thru Apache? 


José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
 

-Original Message-
From: Harold Pritchett [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 29 de Julio de 2004 06:27 p.m.
To: Tomcat Users List
Subject: [tomcat] Strange problem with Apache2/Tomcat4

Help!

I'm trying to install Apache HTTPD and Jakarta Tomcat and get them to play
nice together.  I've done this before with different releases of the
software, so I can't figure out what I'm doing wrong.

First, the releases of the software I'm using:

SuSE Linux Standard Server 8, done as a basic install.  The default Apache
1.3 server was removed with rpm before any of this was done.

openssl-0.9.7d
httpd-2.0.50
jakarta-tomcat-4.1.30
jakarta-tomcat-connectors-jk-1.2.5

Sun Java J2SE:  j2sdk-1_4_2_05

Apache is installed in /usr/local/apache2 Tomcat is installed in
/usr/local/jakarta-tomcat-4.1.30
  and then linked to /usr/local/tomcat Java is installed in
/opt/j2sdk1.4.2_05
  and then linked to /usr/lib/java

Some environment variables (some lines wrapped for readability):

 JRE_HOME=/usr/lib/java/jre
 PATH=/usr/lib/java/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:
/opt/gnome/bin
 JAVA_BINDIR=/usr/lib/java/bin
 JAVA_HOME=/usr/lib/java
 SDK_HOME=/usr/lib/java
 JDK_HOME=/usr/lib/java
 CLASSPATH=/usr/local/tomcat/bin/bootstrap.jar:
/usr/lib/java/lib/tools.jar:
/usr/local/tomcat/common/lib/servlet.jar:.
 JAVA_ROOT=/usr/lib/java
 CATALINA_HOME=/usr/local/tomcat

Finally, here's what I did:

1.  Install SSL in /usr/local/ssl
2.  Install Apache HTTPD.  Used:

 ./configure --prefix=/usr/local/apache2 \
--enable-so --enable-rewrite --enable-ssl \
--with-ssl=/usr/local/ssl --enable-proxy
 make
 su -
 make install
 cd /usr/local/apache2/bin
 ./apachectl start

 Started up a web browser and connected to http://localhost.
 Got the standard You have installed apache httpd page.
 The httpd server works fine.

 ./apachectl stop

3.  Install tomcat server.  Used:

 Created user and group tomcat4
 Downloaded tomcat 4.1.30 binary distribution to /download/bin
 cd /usr/local
 tar zxf /download/bin/jakarta-tomcat-4.1.30.tar.gz
 ln -s jakarta-tomcat-4.1.30/ tomcat
 chown -R tomcat4.tomcat4 /usr/local/tomcat
 /usr/local/tomcat/bin/startup.sh

 check to see if tomcat is running with ps ax
 Started up a web browser and connected to http://localhost:8080.
 Got the standard Tomcat home page.  Clicked on the JSP Examples
 link.  Got the JSP Examples page.  I then clicked on EVERY
 SINGLE EXAMPLE and made sure it worked.  Ditto for the Servlet
 examples.  Everything works fine!  stopped the server with

 /usr/local/tomcat/bin/shutdown.sh

 OK, httpd works fine and tomcat works fine, independently.  Next,
 make them work togehter.

4.  Install the Mod_JK connector.

 download the source for the connector from jakarta.apache.org.

 unpack into a temp directory, configure, and make.

 cd /tmp
 tar zxf
/download/src/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz
 cd jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
 ./buildconf.sh
 ./configure --with-apxs=/usr/local/apache2/bin/apxs
 make
 cd apache-2.0/
 cp mod_jk.so /usr/local/apache2/modules

 now, build the workers.properties file in /usr/local/tomcat/conf/jd

 cd /usr/local/tomcat/conf
 mkdir jk
 cd jk
 vi workers.properties
 cat workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp1
 cd ..


 Edit the server.xml file and make the following changes

 Following the line beginning Server port=8005 shutdown=SHUTDOWN
 insert the lines:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk.so /

 and following the lines:

   !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

 insert the lines

   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true forwardAll=false
  modJk=/usr/local/apache2/modules/mod_jk.so /

 and finally, edit the /usr/local/apache2/conf/httpd.conf and place
 a line at the very end which says:

Include /usr/local/tomcat/conf/auto/mod_jk.conf

Start Tomcat, wait 30 seconds and start apache

Use a browser and connect