Re: UID for Tomcat and startup script

2002-07-18 Thread Craig R. McClanahan



On 17 Jul 2002, Mark Pelillo wrote:

 Date: 17 Jul 2002 19:38:43 -0500
 From: Mark Pelillo [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: UID for Tomcat and startup script

 Who do most people run Tomcat as?  Because I am working on a development
 system, I can run Tomcat as root, but when I go to production I am sure
 that will cause problems.  I am running under Solaris.


I typically create a user named Tomcat for this purpose.

 I also wonder how you make sure Tomcat is completed started before
 starting apache.  I know on my development box ( Dual 360Mhz with 1 gig
 of memory) Tomcat takes 15 minutes to start.

On my ancient history 266mHz laptop, Tomcat used to take less than 30
seconds to start.  On my current development box (Linux, 512mb, yadda
yadda) it takes about 5 seconds.

I would look at your application initialization code before pointing too
many fingers ...

  If tomcat has to be
 started first, then just putting a startup script in rc2.d for tomcat
 and rc3.d for Apache doesn't work.


Unless you make your Apache startup script check that Tomcat is already
listening on the relevant port.

 Right now I have a startup script to start tomcat automatically, then
 start apache manually.  Obviously in a production environment that isn't
 going to work.


Craig


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




Re: ??? Tomcat Bug? -- Throws NullPointerException ???

2002-07-18 Thread Craig R. McClanahan



On Thu, 18 Jul 2002, Tony LaPaso wrote:

 Date: Thu, 18 Jul 2002 00:38:51 -0500
 From: Tony LaPaso [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: ??? Tomcat Bug? -- Throws NullPointerException ???

 Actually, you are wrong but your comments helped me find the
 general cause of the problem...it is not a bug in
 Tomcat...comments below


 - Original Message -
 From: Jacob Kjome [EMAIL PROTECTED]



  Just because you are creating an inner class within a servlet
 does not mean
  that that inner class now gets access to the ServletConfig.

 Yes, I should have access to it -- inner classes have access to
 their parent's fields. In this case my inner class *should* have
 complete access to the ServletConfig object stored in
 GenericServlet.

 By the time my init() is called, the ServletConfig object has
 already beens set by GenericServlet.init(ServletConfig config).

 The problem is that the ServletConfig object in GenericServlet is
 transient. When I serialize the Inner object the following
 objects get serialized as well:

   1. My Servlet
   2. GenericServlet (contains the transient ServletConfig object)

 I have more investigation to do


Wouldn't it be just as easy to pass the ServletConfig object to the
contructor for your inner class?  Serializing and deserializing Servlet
classes is not going to be of much use.

Craig


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




Re: Tomcat 4.0.4 Startup Bug?

2002-07-18 Thread Craig R. McClanahan



On Thu, 18 Jul 2002, Gare, Tref wrote:

 Date: Thu, 18 Jul 2002 11:10:46 +1000
 From: Gare, Tref [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: Tomcat 4.0.4 Startup Bug?

 Can anyone throw any light or give any debug advice on the following.
 We've just upgraded our servers to Tomcat 4.0.4 (from 3.2.3) and on startup
 we're getting the following error.

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.4
 ERROR reading java.io.ByteArrayInputStream@38bef7
 At Line 32 /web-app/servlet/

 Starting service Tomcat-Apache
 Apache Tomcat/4.0.4

 I can't quite work out what the Line 32 /web-app/servlet error refers to.


Most likely the web.xml file of some web application, since those files
contain servlet elements inside web-app elements.  Off the top of my
head, I'd bet you have an unterminated String literal or something.

Best way to find out which webapp is causing you grief is to remove them
all, and then add them back one at a time.

 Following startup most things seem to be working fine but some webapps are
 simply not appearing, despite their war files getting unpacked succesfully.
 The IIS autoconfig files have worked and set up the redirection succesfully
 but Tomcat sends a 404.

 Any thoughts?

 Thanks in advance

 Tref Gare
 Web Developer MCSD/SCJP
 eCommerce Group
 Phone:(03) 9221 4106
 Mobile:   0409 556 478
 Fax:  (03) 9941 4295


Craig


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




Re: Webalizer or other statistics over Tomcat?

2002-07-18 Thread Laura

Hi Saphira

can you explain better your process? It migth be very interesting.

How should you modify your server.xml?

Thanks


Laura



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 7:01 PM
Subject: RE: Webalizer or other statistics over Tomcat?


Howdy,
Here's what we do (heavily trafficked site, large log files, yet this
works well, quickly, and is free):

1) Modify server.xml to use combined pattern for access log.

2) Use mergeLog (http://sourceforge.net/projects/mergelog/) to combine
our log files into one big one.  We do this once a month or whenever I
feel like it.

3) Use http-analyze to chug out the nice graphical reports of various
statistics: http://www.netstore.de/Supply/http-analyze/
I know the site for http-analyze isn't all that, and the
packaging/marketing
of it isn't as polished as some others, but it's fast, reliable, and
provides all the information we need.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Glenn Parsons [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 12:42 PM
To: [EMAIL PROTECTED]
Subject: Webalizer or other statistics over Tomcat?

Hello All,

Does anyone know how to modify configs for the Webalizer or any other
webstats programs to work well with Tomcat/Jakarta?

TIA,
Glenn


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


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



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




Taglib with Tomcat 3.3.1

2002-07-18 Thread Laurent Michenaud

Hi,

I'm trying to use taglib with Tomcat 3.3.1 but 
i've got these errors :

Warning: validation was turned on but an org.xml.sax.ErrorHandler was
not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call
the 'setErrorHandler' method to fix this.
Error: URI=null Line=8: Element taglib does not allow uri here.
Error: URI=null Line=9: Element taglib does not allow info here.
Error: URI=null Line=10: Element taglib does not allow tag here.
Error: URI=null Line=12: Element tag does not allow tag-class here.
Error: URI=null Line=12: Element type tag-class is not declared.
Error: URI=null Line=13: Element tag does not allow info here.
Error: URI=null Line=14: Element tag does not allow attribute here.
Error: URI=null Line=19: Element tag requires additional elements.
Error: URI=null Line=20: Element taglib does not allow tag here.
Error: URI=null Line=22: Element tag does not allow tag-class here.

In the tld, i use the following header :
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE taglib
  PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN
  http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;

And in server.xml, i have these two lines :
WebXmlReader validate=true /
ErrorHandler showDebugInfo=true /

Any ideas ?
Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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




Tag Iterate and jsp:include

2002-07-18 Thread @Basebeans.com

Subject: Tag Iterate and jsp:include
From: Guido [EMAIL PROTECTED]
 ===
Hi all, i'm having the following error message with a jsp under Tomcat 4.0.1
:  Illegal to flush within a custom tag.
The code involved is :

logic:iterate name=myBean id=my_id property=my_property
type=
jsp:include page=%=my_id.getJspName()% /
/logic:iterate


This error happens only in production environment, with all others
installations ( 4 ) of tomcat it works fine.

I'm very very sure the settings of the 5 environments are the same: Win2K +
MicrosoftIIS  + Tomcat 4.0.1.
Has someone any idea about this ?
Thank in advance,
Guido Anselmi



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




RE: Check Session is valid response.sendRedirect not working

2002-07-18 Thread Telesis Support - Bangalore

hi all,

  I have also encountered the same problem.
 I am using a login.jsp page, where the user has to enter his login id and password, 
then while submitting , it calls the servlet class to validate the login and then the 
servlet sends the response to a new jsp page.

  In the servlet, i am storing some data in the session. In each jsp, i am getting the 
session data and after validating, displaying the particular page, based on the data.
  but, when retreiving the session data, it gives null.
 i have used response.sendRedirect() to send the response to jsp and 
 session.getAttribute(xVar) to get the session data.

 and also i have tested using getRequestDispatcher() and application object, but still 
the issue exist.

  I had put this issue in JDC forum,jguru forum and javaranch forum, but i couldn't 
get proper response and answer.

   I am really wondering, of the fact, i am not getting answers from java , jsp 
guru's...
  Is it really, tomcat doesnot support session.
 The same code working fine using Resin 1.2.5. But when porting to tomcat, it gives 
such an issue.

Can any one please come forward , to conclude this issue. 


Thanks in advance,
Murugan

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:01 PM
To: Tomcat Users List
Subject: Check Session is valid  response.sendRedirect not working


Hi,
I am developing a webapplication with tomcat4.0.4 and
apache 2.0.39,
I want the user to login on first page, and then check
if the session is valid or not in each jsp, and
servlet.
So what is the best way to do it??
i am using jsp code code as below, but seems it that
response.sendRedirect(http://localhost/maps/pages/index.jsp;);
does not work.

AS400 value = (AS400)session.getAttribute(as400);
System.out.println(value of as400 change env  +
value);
if (value == null)
{
System.out.println(there is no as400 so
response.sednRedirect);
response.sendRedirect(http://localhost/maps/pages/index.jsp;);
System.out.println(i am not able to redirec);
}

this code works on JRun, Blazix, Websphere, Weblogic
so what is the problem
Ashish



__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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


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




RE: Tag Iterate and jsp:include

2002-07-18 Thread Barney Hamish

As the error message says it's illegal to perform a flush while you're in a
custom tag.

Try setting the flush attribute to false explicitly i.e.:
jsp:include page=%=my_id.getJspName()% flush=false /

It could be that flush has different default values for the development
version and your production version... 
Hamish

-Original Message-
From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:10 AM
To: [EMAIL PROTECTED]
Subject: Tag Iterate and jsp:include


Subject: Tag Iterate and jsp:include
From: Guido [EMAIL PROTECTED]
 ===
Hi all, i'm having the following error message with a jsp under Tomcat 4.0.1
:  Illegal to flush within a custom tag.
The code involved is :

logic:iterate name=myBean id=my_id property=my_property
type=
jsp:include page=%=my_id.getJspName()% /
/logic:iterate


This error happens only in production environment, with all others
installations ( 4 ) of tomcat it works fine.

I'm very very sure the settings of the 5 environments are the same: Win2K +
MicrosoftIIS  + Tomcat 4.0.1.
Has someone any idea about this ?
Thank in advance,
Guido Anselmi



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

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




RE: Tag Iterate and jsp:include

2002-07-18 Thread Barney Hamish

Forgot to mention if that still doesn't work then you can stop using the
custom tag for the loop and write java code to iterate over my_property.

-Original Message-
From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:10 AM
To: [EMAIL PROTECTED]
Subject: Tag Iterate and jsp:include


Subject: Tag Iterate and jsp:include
From: Guido [EMAIL PROTECTED]
 ===
Hi all, i'm having the following error message with a jsp under Tomcat 4.0.1
:  Illegal to flush within a custom tag.
The code involved is :

logic:iterate name=myBean id=my_id property=my_property
type=
jsp:include page=%=my_id.getJspName()% /
/logic:iterate


This error happens only in production environment, with all others
installations ( 4 ) of tomcat it works fine.

I'm very very sure the settings of the 5 environments are the same: Win2K +
MicrosoftIIS  + Tomcat 4.0.1.
Has someone any idea about this ?
Thank in advance,
Guido Anselmi



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

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




Connect JSP and Mysql

2002-07-18 Thread Hai To Thanh

Hi, 
I get confuse when I try to connect JSP and Mysql.

I use statement:

%@page import=java.sql.*%
%
  //Khai bao ket noi:
  Connection conn;
  Statement stm;
  ResultSet rs_matau;
  String sql_matau=;
 
 //Create connection:
 Class.forName(org.gjt.mm.mysql.Driver);
 conn =
DriverManager.getConnection(jdbc:mysql_caucho://localhost/ticket,root,);
 stm = conn.createStatement();
 ...
%

After I browse, Netscape display error message:

org.apache.jasper.JasperException:
org.gjt.mm.mysql.Driver
at
org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.

java:376)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)


   at java.lang.Thread.run(Thread.java:536)



root cause 
javax.servlet.ServletException:
org.gjt.mm.mysql.Driver
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
Source)
at
org.apache.jsp.dangkyMoi$jsp._jspService(dangkyMoi$jsp.java:227)
at
org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at

Connect JSP and Mysql

2002-07-18 Thread Hai To Thanh

Hi, 
I get confuse when I try to connect JSP and Mysql.

I use statement:

%@page import=java.sql.*%
%
  //Khai bao ket noi:
  Connection conn;
  Statement stm;
  ResultSet rs_matau;
  String sql_matau=;
 
 //Create connection:
 Class.forName(org.gjt.mm.mysql.Driver);
 conn =
DriverManager.getConnection(jdbc:mysql_caucho://localhost/ticket,root,);
 stm = conn.createStatement();
 ...
%

After I browse, Netscape display error message:

org.apache.jasper.JasperException:
org.gjt.mm.mysql.Driver
at
org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.

java:376)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)


   at java.lang.Thread.run(Thread.java:536)



root cause 
javax.servlet.ServletException:
org.gjt.mm.mysql.Driver
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
Source)
at
org.apache.jsp.dangkyMoi$jsp._jspService(dangkyMoi$jsp.java:227)
at
org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at

AW: Connect JSP and Mysql

2002-07-18 Thread Power-Netz \(Schwarz\)


 
 Hi, 
 I get confuse when I try to connect JSP and Mysql.
 
 I use statement:
 
 %@page import=java.sql.*%
 %
   //Khai bao ket noi:
   Connection conn;
   Statement stm;
   ResultSet rs_matau;
   String sql_matau=;
  
  //Create connection:
  Class.forName(org.gjt.mm.mysql.Driver);
  conn =
 DriverManager.getConnection(jdbc:mysql_caucho://localhost/ticket
 ,root,);
  stm = conn.createStatement();
  ...
 %
 
 After I browse, Netscape display error message:
 

JDBC functions should always be encapseled in try-catch blocks!
and it maybe a good idea to put the code in a separate class with database
connection pooling aso. 


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




jsp:forward encodeURL()

2002-07-18 Thread Power-Netz \(Schwarz\)


Hi,

we found out that encodeURL() should not be used for URL for jsp:forward
calls with TC 3.3.x .
It just does not work. I think the forward takes filenames instead of URLs,
right?

Ok, just fine and clear because when the code gets to the forward the
session is already set and the
next codepage is process with the settings from the forwarding code. All
clear.

BTW: Can anyone pls check if his IE does not work with META REFRESH TAGS IF
encodeULR()
was used on the refered page? Mozilla works great for that , but our IE cuts
the ;JSESSIONID... of!
Which of course will loose the session :-)

thx

Ihr Support-Team

 POWER-NETZ®
Full-Service-Provider 

Online-Support:
Support: 0190 - 15 11 15 (EUR 0,62/Min)
http://Support.Power-Netz.de (kostenlos)
http://Support.Power-Netz.com (kostenlos)

Vertrieb Tel:  01805 - 57 35 57 (EUR 0,12/Min.)
Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.)

Power-Netz
Am Plan 1
37581 Bad Gandersheim

http://www.Power-Netz.de
mailto:[EMAIL PROTECTED]


+=+
--I N F O   C E N T E R--
+ Senden Sie eine leere e-mail an:
+ Providerwechsel: mailto:[EMAIL PROTECTED]
+ Daten/Preise Webspace: mailto:[EMAIL PROTECTED]
+ Reseller-Programm: mailto:[EMAIL PROTECTED]
+ Dedizierte Server: mailto:[EMAIL PROTECTED]
+ Adult/Erotikserver: mailto:[EMAIL PROTECTED]
+ Domainpreise: mailto:[EMAIL PROTECTED]
+ Domain-Nameserver: mailto:[EMAIL PROTECTED]
+ SSL-Zertifikate: mailto:[EMAIL PROTECTED]
+ Geschaeftsbedingungen: mailto:[EMAIL PROTECTED]
+ =+


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




RE: Hide download file

2002-07-18 Thread Cox, Charlie

ok, I quickly pulled this out of a filter that I use for the same purpose.
It may not compile, but should be very close. See the filter examples that
come with tomcat for the complete filter and this is a sample of how to do
what you want.

also create a mapping in web.xml for your static files/directories that this
filter should run against.

Charlie



 public void doFilter(ServletRequest req, ServletResponse resp,
FilterChain chain)
  throws IOException, ServletException
 {
//convert ServletRequest to HttpServletRequest so that we
can use the extended features
HttpServletRequest myReq = null;
if (req instanceof HttpServletRequest)
{
myReq = (HttpServletRequest)req;
}

//convert ServletResponse to HttpServletResponse so that we
can use the extended features
HttpServletResponse myResp = null;
if (resp instanceof HttpServletResponse)
{
myResp = (HttpServletResponse)resp;
}

// the rest of this filter depends on HttpServletRequest and
HttpServletResponse, so if we don't have a valid one, exit here.
if (myResp == null || myReq == null)
{
chain.doFilter(req, resp);
return;
}

HttpSession sess = myReq.getSession(false);
if (sess.getAttribute(Something) == null)
{
RequestDispatcher rd =
m_filterConfig.getServletContext().getRequestDispatcher(/jsp/MyForm.jsp);
if (rd != null)
rd.forward(req,resp);
return;
}
chain.doFilter(req,resp);
}


 -Original Message-
 From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 5:34 PM
 To: Tomcat Users List
 Subject: Re: Hide download file
 
 
 Cox, Charlie wrote:
 
 I just answered this last week. Use a filter that checks the 
 session and
 leave your download files in a directory under webapps. 
 Filters make this
 simple. Don't do any more work than you need to :)
 
 Charlie
 
 
 I have found an article at www.javaworld.com about witing 
 servlets for 
 downloading non-html documents 
 (http://www.javaworld.com/javatips/jw-javatip94_p.html).
 
 But I want to control the access to the file download 
 component with 
 session variables. The user is given the right session 
 variables when he 
 fills out the download form.
 
 Best regards,
 
 Lars Nielsen Lind
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


Do you have some examples of user-defined filters for handling session 
variable defined access to download file(s)?

Best regards,

Lars Nielsen Lind



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

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




RE: apache + tomcat + mod_ssl

2002-07-18 Thread Turner, John


Are you really asking is how to setup tomcat to handle SSL?  In any case:

mod_ssl user manual (for the apache side): http://www.modssl.org/docs/2.8/

tomcat SSL HOWTO:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Johnny [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 11:12 PM
To: Tomcat Users List
Subject: apache + tomcat + mod_ssl



 Where can I find the online HOW-TO documentation for setting up SSL-capable
Apache (apache+mod_ssl) with the mod_jk connector in Tomcat 4.0.3???




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

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




RE: email to cell phone

2002-07-18 Thread Jack Li

Thank you Rick, all I need is to send email to cell phones. Many people have
replied very helpfully. The simple way is just sending emails like regular
emails ([EMAIL PROTECTED]).

Thank you and all the people who helped me.

Jack Li

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 4:33 PM
To: Tomcat Users List
Subject: Re: email to cell phone


Hi Jack,

Are you tasked with coming up with the whole solution, or just sending mail
to a pre-existing setup for e-mailing cell phones?

The easy part is sending mail.  Is your monitoring stuff running under
Tomcat?

You can send mail directly from your monitoring software if you have access
to that software.

I've seen people use setups where they use a modem to dial the phone then
play a pre-recorded message, too.  That's a little more proactive than
sending mail to the phone because most phones use a short beep (if anything)
when mail arrives, and put a mail waiting icon on the display.

Since Java now has voice synthesis you can create messages to be spoken on
the fly.

A lot depends on what your situation is.  You didn't really give enough
details for anyone to give a good answer.

Rick

- Original Message -

 Thanks for your reply. I don't know much about the wireless stuff. We have
a
 program (in java) that is monitoring our systems. If a problem occurs on
the
 systems, we need to send a notice email to some cell phones. I don't know
 what are required in terms of hardware, software or third party services.

 Jack



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

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




jar_cache files in /var/tmp using Tomcat

2002-07-18 Thread Agustin

I'm using Tomcat 4.01 on Solaris. There are some jar_cache.tmp files
in /var/tmp that are getting written by Tomcat. Some of them are
actually jarfiles. Does anyone know what these files are for?

Thanks for any insight you can provide.


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




Help please Urgent..

2002-07-18 Thread sangita watve

hI!

I HAVE A QUERY WHICH RETURNS RECORDS IN LAKHS .
i am using xsql for this. 

i am getting error as 

Oracle XSQL Servlet Page Processor 9.0.1.1.0A (Production)
XSQL-017: Unexpected Error Occurred
java.lang.OutOfMemoryError 
 
 
if i give max-rows in xsql it displays set of records specified
i want all the records to be displayed.
how do i rectify this.

hoping for ur reply ASAP
 
thanks
regards
sangita
 



tomcat4.x supports Enterprise Java Beans or not

2002-07-18 Thread Gurunath G

Hi all,
does anyone know if tomcat4.x supports Enterprise Java Beans. Any response
would be much appreciated. I cannot see any mention of them in the tomcat
specifications. 

Thanks,

Gurunath.



Tomcat requesting password at start up

2002-07-18 Thread Scott and Michele

I posted and earlier message at this thread:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg59606.html

My problem was fixed and then I changed my etc/tomcat4/conf/tomcat4.conf
file to include:
TOMCAT_USER=myUser

This seemed to work fine, and I chown on the files I thought I would need to
run tomcat under a user other than root ('myUser').

Now when I am logged in as myUser and I enter the command :
/etc/rc.d/init.d/tomcat4 start
I get a slight delay then a message :
starting tomcat4:  Password:

When I hit enter or try myUser's password, here I get the message:
su:  incorrect password:

Any idea why this is asking for a password now?  Tomcat runs fine when I log
in as root, but I do not want to do that for the reasons noted in my earlier
post.

Thanks



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




problems with the jakarta service created by jk_nt_service.exe

2002-07-18 Thread gisprogram

Hello,
I am running IIS 5 with ESRI's ArcIMS and Tomcat 3.2.4.  I have the
servlet functioning according to the http://your name
here/servlet/SnoopServlet convention.  But the service that I create using
jk_nt_service.exe did not function.  I get the following error message from
the command prompt execution:

C:\jakarta-tomcat-3.2\binjk_nt_service.exe -I Jakarta
c:\jakarta-tomcat-3.2\con
f\wrapper.properties
Asked (and given) winsock 1.1
The service named Jakarta was created. Now adding registry entries
Registry values were added
If you have already updated wrapper.properties you may start the Jakarta
service
 by executing net start Jakarta from the command prompt

C:\jakarta-tomcat-3.2\binnet start Jakarta
The Jakarta service is starting.
The Jakarta service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

I have included a copy of my wrapper.properties and the log file jvm.stderr
for your review.  Any troubleshooting advice you could dispatch would be
appreciated.

Thanks,

Brandon Ellis
GIS Analyst
FOCUS Humanitarian Assistance
 Leesburg Pike, Suite 303S
Falls Church, VA 22034
703.442.3212

 wrapper.properties  jvm.stderr  err_fr_DOS.txt 



wrapper.properties
Description: Binary data


jvm.stderr
Description: Binary data

C:\jakarta-tomcat-3.2\binjk_nt_service.exe -I Jakarta c:\jakarta-tomcat-3.2\con
f\wrapper.properties
Asked (and given) winsock 1.1
The service named Jakarta was created. Now adding registry entries
Registry values were added
If you have already updated wrapper.properties you may start the Jakarta service
 by executing net start Jakarta from the command prompt

C:\jakarta-tomcat-3.2\binnet start Jakarta
The Jakarta service is starting.
The Jakarta service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.


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


common/lib installation problems

2002-07-18 Thread Kirsten Sachwitz

Help!!!

I have been trying for weeks to get tomcat to install
but whatever I try I am getting the SAME error.  To
date I have downloaded and tried 3 versions (4.0.1,
4.0.3 and 4.0.4) tried this on 2 computer (both
windows 98 operating systems) and have try
un-installing and reinstalling it a gazillion times (I
don't know how many 0 that is but it is a lot) Every
time the same thing happens: I get a copy failed at
common/lib file installing tomcat and then when I try
to run it will not run JSP examples.  I have written
down step-by-step in more detail below.

Any advice greatly appreciated!
Kirsten
[EMAIL PROTECTED]
703-533-2146

Here is what I am doing 
1) install Java 2 run time enviroments (file name:
j2re-1_4_0_01-windows-i586.exe) this installs properly

2) change the system configuration variables 
(this is what is written in dos sysedit: @SET
CLASSPATH=C:PROGRA~1PHOTOD~1.0ADOBEC~1;C:javadk1-4
@SET JAVA_HOME=C:javadk1-4)

3) install tomcat (as I mentioned earlier I have
download multipul version this is one file example:
jakarta-tomcat-4.0.3.exe)
***THIS IS THE 1 SIGN OF PROBLEMS**

during the installation it has an error message which
says copy failed the file which failed is
common/lib
**
everything else installs properly 

4) Run Tomcat and open Internet explorer 
I go to the home page
(http://localhost:8080/index.html) 

the page shows up and I click on JSP example and try
and run an example 

***THIS IS 2nd ERROR**
the following error occures

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal
Server Error
type Exception report
message Internal Server Error

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

exception 

javax.servlet.ServletException: sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Unknown Source)


root cause 

java.lang.NoClassDefFoundError: sun/tools/javac/Main
at

Possible problem: ajp13 on Tomcat 3.2.x - need help

2002-07-18 Thread Shinta Tjio

We are using Apache 1.3.26 and Tomcat 3.2.2. We've seen some
clients to be hanging Apache on SSL read. The cause of this
hang seems to be network/TCP/IP issue. The read will eventually 
times out. When it times out, here's where the problem starts.
Tomcat seems to be grabbing some buffer that contains partial 
data of the previous request and call a servlet with it. The 
servlet will throw an exception because the data is bad. Here 
are the details (you will need to pull up the code to see what 
I mean).

When Apache read times out, mod_jk's
jk_ajp13_worker.c::read_into_msg_buff() 
will return error. mod_jk will drop its connection to Tomcat and 
retry (up to JK_RETRIES times - see the service() function). In 
the retry, the HTTP header gets resent to Tomcat.

When Tomcat receives this header, it will eventually call 
Ajp13ConnectorRequest::decodeRequest(). This method will
attempt to read more data from mod_jk (the call to con.receive()).
This call will fail because mod_jk has yet again drop the
connection (in its 2nd retry to call read_into_msg_buff() fails).

Since this call (con.receive()) fails, the attribute blen is
never set to the content-length of this request. Instead, blen
has the value of the content-length of the previous request.

Because the call to con.receive() fails, the method decodeRequest()
will return -1. The caller to decodeRequest, 
Ajp13ConnectionHandler::processConnection(), doesn't check the error
code and it proceeds to call the servlet.

The servlet will issue a read and it will eventually call 
Ajp13ConnectorRequest::doRead(). 

In doRead(), I dumped some values of the variables. pos is always 0.
blen is some number. The problem happens when blen is less than
the length of the buffer (variable len). The method will copy 
some data from bodyBuff, which is a left-over from previous
request.

Note, I checked the source code for Tomcat 3.2.4. It doesn't seem
to be fixed yet. We may not have the luxury to upgrade to Tomcat 3.3
yet. So I am attempting to fix this, but I have a question:

Why does Ajp13ConnectionHandler::processConnection() not check
the error code from decodeRequest()? It seems to me like if it
gets an error in decodeRequest(), it should not call the service()
method which calls the servlet. 

thanks,
shinta

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




RE: How to do stop-start fast?

2002-07-18 Thread Ignacio J. Ortega



Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Aleksi Kallio [mailto:[EMAIL PROTECTED]]
 Enviado el: 17 de julio de 2002 12:21
 Para: [EMAIL PROTECTED]
 Asunto: How to do stop-start fast?
 
 
 I have a script that stops Tomcat (shutdown.sh), does stuff and then 
 restarts it (startup.sh). Doing stuff doesn't take long enough and 
 Tomcat refuses to restart because the port is still reserved.
 
 Removing the restart from script and waiting a few secs after running 
 the script, then restarting manually, works. It is just a bit 
 frustrating. Also if a restart too early, Tomcat fails to start and 
 produces a process that has to be killed by hand and it's 
 also frustrating.
 
 How to check if Tomcat is stopped properly?
 
 

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




HttpSessionBindingListener, HttpSessionListener : Session already invalidated

2002-07-18 Thread Nicolas Silberzahn



Bonjour,

I want to do some cleanup when a session dies. I tried to use
HttpSessionBindingListener and then HttpSessionListener
In both case, my code is called AFTER the session had been invalidated:
nothing can be done with the session anymore: it seems to be useless
functionality
Does anyone knows how to get code called BEFORE the sesion dies?

Cordialement,

Nicolas Silberzahn

Digital Airways
Everywhere InternetTechnologies/Internet
www.DigitalAirways.com





o Google said

be aware there is a  at the end that belongs to the URL...
http://www.apachelabs.org/tomcat-dev/200202.mbox/76227803D20F654BA920161144
[EMAIL PROTECTED]
http://www.apachelabs.org/tomcat-dev/200202.mbox/20020220103254.B76183-1000
[EMAIL PROTECTED]
http://w6.metronet.com/~wjm/tomcat/2001/Oct/msg00252.html


o Some test code:


public class MySessionListener implements HttpSessionListener {

public void sessionCreated(HttpSessionEvent hse) {
HttpSession session = hse.getSession();


try {
session.setAttribute(toto, new MyHttpSessionBindingListener());// so 
it
will be called when the session dies... (i don't remove it explicitly
elsewhere)
}
catch (Throwable e) {
// removed error logging here
}


public void sessionDestroyed(HttpSessionEvent hse) {
HttpSession session = hse.getSession();
ServletContext application = session.getServletContext();

// a session. getAttribute throws an exception here: Session already
invalidated
}

}

class MyHttpSessionBindingListener implements HttpSessionBindingListener {

public void valueUnbound(HttpSessionBindingEvent hse) {
HttpSession session = hse.getSession();
ServletContext application = session.getServletContext();
System.out.println(valueUnbound);

Object o = session.getAttribute(Caddy); // a session. getAttribute
throws an exception here: Session already invalidated
// cleanup here...
}

public void valueBound(HttpSessionBindingEvent hse) {
}

}


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




RE: forwarding through j_security_check

2002-07-18 Thread James Krygowski

Hi Craig-

I've come up with a solution that seems to work very well for my purposes.
Unfortunately, my project's priority is to build on Jrun, but I'll need to
adapt this solution to Tomcat in the near future.  I post the description of
my implemented solution just to get it out there for comment and possibly
(if the solution is worthy) to help out anyone else trying to solve this
problem.

The essence of the problem, again, was to enable a single sign-on through a
corporate portal.  The portal presents links to other corporate web
applications.  Clicking on those links automatically signs the user on
through the web-app's security service.

My solution was to create a servlet (Jrun)SecurityCredentialForward capable
of interacting with the security service (in the current solution Jrun's
WebAppSecurityService).  By bypassing the FormAuthentication class (the real
manager of the j_security_check workflow) I could avoid the two step
process.  Each url in the portal's application list contains a link to the
security servlet and parameters specifying the applications main url,
username and password.  The SecurityCredentialForward takes the username and
password, authenticates them with the WebAppSecurityService and if
everything is kosher, redirects the user to the main web page.  All
natural web container security functions are used from there on and as far
as the container is concerned, the j_security_check process ran as normal.

I'm pretty sure this same approach could be used with Tomcat.  It doesn't
seem to incur any negative performance penalties and doesn't (as far as I
can see) violate the login process since it uses resources that are already
available to the servlet.

Any opinions are gladly accepted.

thanks,

Jim

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 16, 2002 12:45 PM
 To: Tomcat Users List
 Subject: RE: forwarding through j_security_check




 On Tue, 16 Jul 2002, James Krygowski wrote:

  Date: Tue, 16 Jul 2002 07:09:55 -0400
  From: James Krygowski [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: forwarding through j_security_check
 
  Hi Craig-
 
   If so, is it possible to set up a servlet that
   could manipulate the Referrer in the header, and redirect a
 request along
  to
   an application in another Tomcat server, making it look like
 a post to
   j_security_check, complete with referrer, j_username and j_password?
  
   Any suggestions or comments are welcome and appreciated.
  
   Trying to forward security credentials like this is pretty
 much guaranteed
   not to work.
  
   One thing you might consider using is Tomcat's standard
 support for single
   sign on across multiple webaps.  Check out the Single Sign
 On section
 
  Thanks for the response.  Your suggestion is only applicable
 for those who
  have a homogenous Tomcat environment.  In my situation, my
 portal will have
  to forward to a mixed environment of Tomcat and JRun servers.
 In the future
  that may expand to include either WebLogic or WebSphere.  I
 find it hard to
  believe that there is no way to programmatically manage a login sequence
  using j_security_check. Is it possible to use a servlet intermediary to
  handle the login interaction and then redirect the user to a protected
  resource once the login sequence is successfully completed?

 Hard to believe or not, the servlet spec is totally silent about
 programmatic interaction with j_security_check.  That means there is
 absolutely no guarantee of behavior consistency in this regard across
 servlet containers -- or even across different versions of the same
 container (Tomcat 3.3 and 4.x do things very differently in this regard,
 for example).

 Your use case is something that things like the Liberty Alliance
 http://www.projectliberty.org are trying to solve.  Unfortunately,
 you're a bit early on the adoption curve for that to be helpful.

 About the only portable thing you can do in the mean time would be a proxy
 app that your users always went through for every request, which knows how
 to do the login interaction with each back end app as needed (i.e.
 whenever they challenge for credentials, answer based on what it knows
 about this user, but pass all other requests through).  But the
 performance impact of such a proxy isn't going to be very attractive.

 Craig


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



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




RE: How to do stop-start fast?

2002-07-18 Thread Thies Edeling

The killall is a bit nasty but hey, I'm impatient :) Change the paths of
course


thies /usr/local/tomcat/bin cat restart.sh 
#!/bin/sh

/usr/local/tomcat/bin/shutdown.sh
killall java
/usr/local/tomcat/bin/startup.sh
sleep 2
/usr/local/apache/bin/apachectl restart


-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 18, 2002 2:41 PM
To: 'Aleksi Kallio'; '[EMAIL PROTECTED]'
Subject: RE: How to do stop-start fast?




Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Aleksi Kallio [mailto:[EMAIL PROTECTED]]
 Enviado el: 17 de julio de 2002 12:21
 Para: [EMAIL PROTECTED]
 Asunto: How to do stop-start fast?
 
 
 I have a script that stops Tomcat (shutdown.sh), does stuff and then
 restarts it (startup.sh). Doing stuff doesn't take long enough and 
 Tomcat refuses to restart because the port is still reserved.
 
 Removing the restart from script and waiting a few secs after running
 the script, then restarting manually, works. It is just a bit 
 frustrating. Also if a restart too early, Tomcat fails to start and 
 produces a process that has to be killed by hand and it's 
 also frustrating.
 
 How to check if Tomcat is stopped properly?
 
 

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



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




RE: problems with the jakarta service created by jk_nt_service.exe

2002-07-18 Thread Cox, Charlie

The errors look like it can't find the XML parser. Did you replace
parser.jar with xerces or crimson? If so, you need to update your
wrapper.properties path to point to the new jar files.

Charlie

 -Original Message-
 From: gisprogram [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 1:50 PM
 To: '[EMAIL PROTECTED]'
 Subject: problems with the jakarta service created by 
 jk_nt_service.exe
 
 
 Hello,
   I am running IIS 5 with ESRI's ArcIMS and Tomcat 3.2.4. 
  I have the
 servlet functioning according to the http://your name
 here/servlet/SnoopServlet convention.  But the service that 
 I create using
 jk_nt_service.exe did not function.  I get the following 
 error message from
 the command prompt execution:
 
 C:\jakarta-tomcat-3.2\binjk_nt_service.exe -I Jakarta
 c:\jakarta-tomcat-3.2\con
 f\wrapper.properties
 Asked (and given) winsock 1.1
 The service named Jakarta was created. Now adding registry entries
 Registry values were added
 If you have already updated wrapper.properties you may start 
 the Jakarta
 service
  by executing net start Jakarta from the command prompt
 
 C:\jakarta-tomcat-3.2\binnet start Jakarta
 The Jakarta service is starting.
 The Jakarta service could not be started.
 
 A system error has occurred.
 
 System error 1067 has occurred.
 
 The process terminated unexpectedly.
 
 I have included a copy of my wrapper.properties and the log 
 file jvm.stderr
 for your review.  Any troubleshooting advice you could 
 dispatch would be
 appreciated.
 
 Thanks,
 
 Brandon Ellis
 GIS Analyst
 FOCUS Humanitarian Assistance
  Leesburg Pike, Suite 303S
 Falls Church, VA 22034
 703.442.3212
 
  wrapper.properties  jvm.stderr  err_fr_DOS.txt 
 

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




Re: tomcat4.x supports Enterprise Java Beans or not

2002-07-18 Thread Joseph Savard

On 18 Jul 2002 at 10:58, Gurunath G wrote:

 Hi all,
   does anyone know if tomcat4.x supports Enterprise Java Beans. Any response

Tomcat is a servlet container...

JBOSS is an an EJB contianer  http://www.jboss.org

 would be much appreciated. I cannot see any mention of them in the tomcat
 specifications. 
 
 Thanks,
   
 Gurunath.
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




RE: jar_cache files in /var/tmp using Tomcat

2002-07-18 Thread Arnaud HERITIER

let's see :

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg59531.html

 -Message d'origine-
 De : [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]De la part
 de Agustin
 Envoye : jeudi 18 juillet 2002 15:01
 A : [EMAIL PROTECTED]
 Objet : jar_cache files in /var/tmp using Tomcat
 
 
 I'm using Tomcat 4.01 on Solaris. There are some 
 jar_cache.tmp files
 in /var/tmp that are getting written by Tomcat. Some of them are
 actually jarfiles. Does anyone know what these files are for?
 
 Thanks for any insight you can provide.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: apache + tomcat + mod_ssl

2002-07-18 Thread Joseph Savard

On 18 Jul 2002 at 11:12, Johnny wrote:

 
  Where can I find the online HOW-TO documentation for setting up SSL-capable
 Apache (apache+mod_ssl) with the mod_jk connector in Tomcat 4.0.3???

Try these sources:
http://www.apache-ssl.org/
http://tud.at/programm/apache-ssl-win32-howto.php3


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


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




What to do to http.conf and/or server.xml

2002-07-18 Thread Koes, Derrick

I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
http://servername/example/docs .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs

 

Directory C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs

AuthType Basic

AuthName Restricted Files

AuthUserFile C:/Program Files/Apache Group/users

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

/Directory

 

to the httpd.conf file, but the URL has to be http://serverName/docs
http://servername/docs .

 

I tried adding

 

Alias /example/ C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/

 

Directory C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example

AuthType Basic

AuthName Restricted Files

AuthUserFile C:/Program Files/Apache Group/users

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

/Directory

 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 




RE: Tomcat requesting password at start up

2002-07-18 Thread Turner, John


A su command will always ask for a password if you issue the command as
some other user than root.  If it didn't userA on a UNIX box could switch to
userB at will.  This is a security risk.

I'm not clear what you've done so far, in your previous thread on this topic
you stated that you had set TOMCAT_USER=root.  If this is true, and you are
logged in as myUser, then you will most definitely have to enter a password
to run tomcat as TOMCAT_USER (which is root, according to your previous
message).  You can't run things as root when logged in as a normal user
without entering a password.

If you are logged in as myUser, and you want tomcat to start, you just need
to start it.  I have tomcat installed, I do not have TOMCAT_USER set
anywhere, and when I want to start it I just su to the tomcat user (using
su - tomcatuser since my tomcat user is not the same as my username), and
start it up.

So the short answer is that if you are not root, anytime a su command is
issued, you will need to enter a password.  Only root has the ability to su
without entering a password.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Scott and Michele [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 8:23 PM
To: [EMAIL PROTECTED]
Subject: Tomcat requesting password at start up


I posted and earlier message at this thread:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg59606.html

My problem was fixed and then I changed my etc/tomcat4/conf/tomcat4.conf
file to include:
TOMCAT_USER=myUser

This seemed to work fine, and I chown on the files I thought I would need to
run tomcat under a user other than root ('myUser').

Now when I am logged in as myUser and I enter the command :
/etc/rc.d/init.d/tomcat4 start
I get a slight delay then a message :
starting tomcat4:  Password:

When I hit enter or try myUser's password, here I get the message:
su:  incorrect password:

Any idea why this is asking for a password now?  Tomcat runs fine when I log
in as root, but I do not want to do that for the reasons noted in my earlier
post.

Thanks



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

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




Please Unsubscribe me!!

2002-07-18 Thread Jose Aguilera

I have tried repeatedly to unsubscribe from this list and an error occurs.

Can a moderator of this list please help, I'm using outlook 2000.

Thanks.

Jose Aguilera




This message is intended only for the use of the individual or entity to which it is 
addressed and may contain information that is privileged, confidential or exempt from 
disclosure under applicable law. If the reader of this message is not the intended 
recipient, or the employee or agent responsible for delivering the message to the 
intended recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please notify the sender immediately. 



RE: common/lib installation problems

2002-07-18 Thread Turner, John


Hi -

Was this a typo?

2) change the system configuration variables (this is what is written in dos
sysedit: @SET CLASSPATH=C:PROGRA~1PHOTOD~1.0ADOBEC~1;C:javadk1-4
@SET JAVA_HOME=C:javadk1-4)

C:PROGRA~1PHOTOD~1.0ADOBEC~1; is invalid, there aren't any slashes
separating the folder names.

Also, I have found that trying to install any of the java packages and any
of the tomcat versions in any folder that has spaces in it's name or path is
a bad idea.  Try installing tomcat into something like
c:\tomcat\jakarta-tomcat-4.0.3 or similar.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Kirsten Sachwitz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 1:31 PM
To: [EMAIL PROTECTED]
Subject: common/lib installation problems


Help!!!

I have been trying for weeks to get tomcat to install
but whatever I try I am getting the SAME error.  To
date I have downloaded and tried 3 versions (4.0.1,
4.0.3 and 4.0.4) tried this on 2 computer (both
windows 98 operating systems) and have try
un-installing and reinstalling it a gazillion times (I
don't know how many 0 that is but it is a lot) Every
time the same thing happens: I get a copy failed at
common/lib file installing tomcat and then when I try
to run it will not run JSP examples.  I have written
down step-by-step in more detail below.

Any advice greatly appreciated!
Kirsten
[EMAIL PROTECTED]
703-533-2146

Here is what I am doing 
1) install Java 2 run time enviroments (file name:
j2re-1_4_0_01-windows-i586.exe) this installs properly

2) change the system configuration variables 
(this is what is written in dos sysedit: @SET
CLASSPATH=C:PROGRA~1PHOTOD~1.0ADOBEC~1;C:javadk1-4
@SET JAVA_HOME=C:javadk1-4)

3) install tomcat (as I mentioned earlier I have
download multipul version this is one file example:
jakarta-tomcat-4.0.3.exe)
***THIS IS THE 1 SIGN OF PROBLEMS**

during the installation it has an error message which
says copy failed the file which failed is
common/lib
**
everything else installs properly 

4) Run Tomcat and open Internet explorer 
I go to the home page
(http://localhost:8080/index.html) 

the page shows up and I click on JSP example and try
and run an example 

***THIS IS 2nd ERROR**
the following error occures

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal
Server Error
type Exception report
message Internal Server Error

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

exception 

javax.servlet.ServletException: sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at

RE: Help please Urgent..

2002-07-18 Thread Shapira, Yoav

Hi,
Add -Xmx256m to your java runtime options.  (This is done via the
CATALINA_OPTS or JAVA_OPTS variable in tomcat, depending which tomcat
version you have).  If 256 is still not enough, keep increasing until
you don't get the error anymore.  For more documentation, look here:
http://java.sun.com/docs/hotspot/VMOptions.html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: sangita watve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 2:14 AM
To: [EMAIL PROTECTED]
Subject: Help please Urgent..

hI!

I HAVE A QUERY WHICH RETURNS RECORDS IN LAKHS .
i am using xsql for this.

i am getting error as

Oracle XSQL Servlet Page Processor 9.0.1.1.0A (Production)
XSQL-017: Unexpected Error Occurred
java.lang.OutOfMemoryError


if i give max-rows in xsql it displays set of records specified
i want all the records to be displayed.
how do i rectify this.

hoping for ur reply ASAP

thanks
regards
sangita


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




mod_webapp.so

2002-07-18 Thread Diego, Emil

I am running Redhat linux 7.3 with Apache 1.3.23 and tomcat 4.0.4.  I have
installed them both and have tested them individually and they work.  Now i
want to setup tomcat so it works within apache.  my 2 questions are this.
1) Where can I get the mod_app.so warp connecter?

2) Is there a really good tutorial on how to configure the servers to work
together?


thanx in advance for the assistance.

Emil
[EMAIL PROTECTED]

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




RE: What to do to http.conf and/or server.xml

2002-07-18 Thread Turner, John


If you have something under example and example is mapped to the AJP13
connector, requests for /example and anything under it are going to be
served by tomcat.  That's the point of the connector, to distribute the
requests to a particular area based on URL.  Since servlets don't have file
extensions, there's really no other way other than URL for apache or a
connector to know which requests need to be served by tomcat.

I think if you want apache to serve that content, you have to put it
someplace other than /example.  Can anyone else confirm this?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 8:52 AM
To: 'Tomcat Users List'
Subject: What to do to http.conf and/or server.xml


I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
http://servername/example/docs .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs

 

Directory C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs

AuthType Basic

AuthName Restricted Files

AuthUserFile C:/Program Files/Apache Group/users

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

/Directory

 

to the httpd.conf file, but the URL has to be http://serverName/docs
http://servername/docs .

 

I tried adding

 

Alias /example/ C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/

 

Directory C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example

AuthType Basic

AuthName Restricted Files

AuthUserFile C:/Program Files/Apache Group/users

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

/Directory

 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 


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




RE: Webalizer or other statistics over Tomcat?

2002-07-18 Thread Shapira, Yoav

Howdy,

Hi Saphira

I don't think anyone has ever spelled my name that way before ;)

Here's the process:

1) In your server.xml, look for the AccessLogValue.  It will have an
attribute pattern=common.  Change this to pattern=combined to get
more information.  (This step is optional, but we do it).  The
difference between the common and combined patterns is defined here:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html
(combined basically adds the referrer and user-agent fields to each log
entry).

2) So now you have a bunch of files like
localhost_access_log.-mm-dd.txt in your $CATALINA_HOME/logs
directory.  While a bunch of analyzers, including http-analyze which I
use, work with sets of files, I've found it better to merge all the
files into one big time-sorted files.  I use mergeLog for this.
Download it at:
http://sourceforge.net/projects/mergelog/

An alternative I've also used is LogSorter.  It's in java, so you can
compile it yourself.  Directions and download are here:
http://ostermiller.org/webalizer/

(Also a rationale as to why merging the log files is better).

3) Now I have one big access log file, sorted by time.  For us, this
file is in the hundreds of MBs in size.  I run http-analyze (2.01, the
free version), obtained from:
http://www.netstore.de/Supply/http-analyze/download.html

It's very fast, and outputs a ton of good information but it's very easy
to navigate the information.  It's also easy to package, post to a web
site for others to see, etc.

Does that answer your question?

Yoav Shapira
Millennium ChemInformatics

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




AW: common/lib installation problems

2002-07-18 Thread Ralph Einfeldt

1. You need a J2SE not J2RE to run tomcat with jsp's that 
   are not precompiled.

2. Your classpath looks quite strange.

3. It might be easier just to use the zipped tomcat version
   and just extract that.

 -Ursprüngliche Nachricht-
 Von: Kirsten Sachwitz [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 17. Juli 2002 19:31
 An: [EMAIL PROTECTED]
 Betreff: common/lib installation problems
 
 
 1) install Java 2 run time enviroments (file name:
 j2re-1_4_0_01-windows-i586.exe) this installs properly
 
 2) change the system configuration variables 
 (this is what is written in dos sysedit: @SET
 CLASSPATH=C:PROGRA~1PHOTOD~1.0ADOBEC~1;C:javadk1-4
 @SET JAVA_HOME=C:javadk1-4)
 
snip/

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




RE: mod_webapp.so

2002-07-18 Thread Turner, John


Man, this list needs a FAQ, bad.

HOWTO: http://www.galatea.com/flashguides/index

There are many other docs that explain how to connect the two, the URL above
is just one of them.

If you are using apache, there is no benefit to using mod_webapp (WARP).
The current mod_webapp connector sends ALL requests to tomcat...in that
scenario, apache does nothing but add a layer. You would be fine just using
tomcat standalone on port 80 in that scenario.  If you want apache to serve
static content, and tomcat to serve servlet and JSP content, then you should
use mod_jk (at this time):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Diego, Emil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:06 AM
To: '[EMAIL PROTECTED]'
Subject: mod_webapp.so


I am running Redhat linux 7.3 with Apache 1.3.23 and tomcat 4.0.4.  I have
installed them both and have tested them individually and they work.  Now i
want to setup tomcat so it works within apache.  my 2 questions are this.
1) Where can I get the mod_app.so warp connecter?

2) Is there a really good tutorial on how to configure the servers to work
together?


thanx in advance for the assistance.

Emil
[EMAIL PROTECTED]

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

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




Re: common/lib installation problems

2002-07-18 Thread Joseph Savard

On 17 Jul 2002 at 10:30, Kirsten Sachwitz wrote:
Try this batch file:  See if this is inline with your environement..

This is launches TC 4.02 in  NT 4.0 and Win2k

Set CATALINA_HOME=D:\tc4
set CLASSPATH=d:\jdk1.3.1\lib\servlet.jar
set JAVA_HOME=D:\jdk1.3
set JRE=d:\jdk1.3\jre\bin
set lib=d:\servers\MQSeries\tools\lib
set TOMCAT_HOME=D:\TC4
cd %TOMCAT_HOME%\bin
call startup

Environment:
ANT_HOME=D:\ant
CATALINA_HOME=D:\tc4
CLASSPATH=d:\jdk1.3\lib\tools.jar;e:\jdev
COMPUTERNAME=DENEB
J2EE_HOME=D:\j2sdkee1.2.1
JAVA_HOME=D:\jdk1.3
JDEV_USER_DIR=E:\Jdev
JDK=D:\jdk1.3
JRE=d:\jdk1.3\jre\bin
PROMPT=$P [$+] $G $_[$t]
TOMCAT_HOME=D:\tc4

My directoy structure is:

D:\ [+] 
[ 8:03:48.23] tree tc4
Directory PATH listing
Volume serial number is 0012FC94 C8F5:E00C
D:\tc4
+---bin
+---classes
+---common
¦   +---classes
¦   +---lib
+---conf
+---lib
+---logs
+---server
¦   +---classes
¦   +---lib
+---webapps
¦   +---dravas
¦   +---examples
¦   ¦   +---images
¦   ¦   +---jsp
¦   ¦   ¦   +---cal
¦   ¦   ¦   +---checkbox
¦   ¦   ¦   +---colors
¦   ¦   ¦   +---dates
¦   ¦   ¦   +---error
¦   ¦   ¦   +---forward
¦   ¦   ¦   +---include
¦   ¦   ¦   +---jsptoserv
¦   ¦   ¦   +---mail
¦   ¦   ¦   +---num
¦   ¦   ¦   +---plugin
¦   ¦   ¦   ¦   +---applet
¦   ¦   ¦   +---security
¦   ¦   ¦   ¦   +---protected
¦   ¦   ¦   +---sessions
¦   ¦   ¦   +---simpletag
¦   ¦   ¦   +---snp
¦   ¦   +---servlets
¦   ¦   +---WEB-INF
¦   ¦   +---classes
¦   ¦   ¦   +---cal
¦   ¦   ¦   +---checkbox
¦   ¦   ¦   +---colors
¦   ¦   ¦   +---compressionFilters
¦   ¦   ¦   +---dates
¦   ¦   ¦   +---error
¦   ¦   ¦   +---examples
¦   ¦   ¦   +---filters
¦   ¦   ¦   +---listeners
¦   ¦   ¦   +---num
¦   ¦   ¦   +---sessions
¦   ¦   ¦   +---validators
¦   ¦   +---jsp
¦   ¦   +---applet
¦   +---manager
¦   ¦   +---WEB-INF
¦   +---midp
¦   ¦   +---WEB-INF
¦   ¦   +---classes
¦   +---ROOT
¦   ¦   +---WEB-INF
¦   +---tomcat-docs
¦   ¦   +---appdev
¦   ¦   ¦   +---sample
¦   ¦   ¦   +---docs
¦   ¦   ¦   +---src
¦   ¦   ¦   ¦   +---mypackage
¦   ¦   ¦   +---web
¦   ¦   ¦   +---images
¦   ¦   ¦   +---WEB-INF
¦   ¦   +---catalina
¦   ¦   ¦   +---docs
¦   ¦   ¦   ¦   +---api
¦   ¦   ¦   ¦   +---org
¦   ¦   ¦   ¦   +---apache
¦   ¦   ¦   ¦   +---catalina
¦   ¦   ¦   ¦   ¦   +---authenticator
¦   ¦   ¦   ¦   ¦   +---cluster
¦   ¦   ¦   ¦   ¦   +---connector
¦   ¦   ¦   ¦   ¦   ¦   +---http
¦   ¦   ¦   ¦   ¦   ¦   +---http10
¦   ¦   ¦   ¦   ¦   ¦   +---warp
¦   ¦   ¦   ¦   ¦   +---core
¦   ¦   ¦   ¦   ¦   +---deploy
¦   ¦   ¦   ¦   ¦   +---loader
¦   ¦   ¦   ¦   ¦   +---logger
¦   ¦   ¦   ¦   ¦   +---net
¦   ¦   ¦   ¦   ¦   +---realm
¦   ¦   ¦   ¦   ¦   +---servlets
¦   ¦   ¦   ¦   ¦   +---session
¦   ¦   ¦   ¦   ¦   +---startup
¦   ¦   ¦   ¦   ¦   +---util
¦   ¦   ¦   ¦   ¦   ¦   +---ssi
¦   ¦   ¦   ¦   ¦   ¦   +---xml
¦   ¦   ¦   ¦   ¦   +---valves
¦   ¦   ¦   ¦   +---naming
¦   ¦   ¦   ¦   +---factory
¦   ¦   ¦   ¦   +---java
¦   ¦   ¦   ¦   +---resources
¦   ¦   ¦   ¦   +---jndi
¦   ¦   ¦   +---funcspecs
¦   ¦   +---config
¦   ¦   +---images
¦   ¦   +---jasper
¦   ¦   ¦   +---docs
¦   ¦   ¦   +---api
¦   ¦   ¦   +---org
¦   ¦   ¦   +---apache
¦   ¦   ¦   +---jasper
¦   ¦   ¦   +---compiler
¦   ¦   ¦   +---core
¦   ¦   ¦   +---logging
¦   ¦   ¦   +---parser
¦   ¦   ¦   +---runtime
¦   ¦   ¦   +---servlet
¦   ¦   ¦   +---util
¦   ¦   +---servletapi
¦   ¦   ¦   +---javax
¦   ¦   ¦   +---servlet
¦   ¦   ¦   +---class-use
¦   ¦   ¦   +---http
¦   ¦   ¦   ¦   +---class-use
¦   ¦   ¦   +---jsp
¦   ¦   ¦   +---class-use
¦   ¦   ¦   +---tagext
¦   ¦   ¦   +---class-use
¦   ¦   ¦   +---doc-files
¦   ¦   +---WEB-INF
¦   +---webdav
¦   +---WEB-INF
+---work
+---localhost
+---cocoon
¦   +---cocoon-files
¦   +---cache-dir
¦   +---image-dir
+---examples
¦   +---jsp
¦   +---dates
¦   +---num
+---manager
+---midp
+---tomcat-docs
+---webdav
+---_

 Help!!!

 I have been trying for weeks to get tomcat to install
 but whatever I try I am getting the SAME error.  To
 date I have downloaded and tried 3 versions (4.0.1,
 4.0.3 and 4.0.4) tried this on 2 computer (both
 windows 98 operating systems) and have try
 un-installing and reinstalling it a gazillion times (I
 

RE: UID for Tomcat and startup script

2002-07-18 Thread Shapira, Yoav

Howdy,

Who do most people run Tomcat as?  Because I am working on a
development
system, I can run Tomcat as root, but when I go to production I am sure
that will cause problems.  I am running under Solaris.

We have a designated user for tomcat servers.  Essentially, we've
created the equivalent of the standard unix nobody user.  But we can
log in as our user, create and run shell scripts, etc.  

I also wonder how you make sure Tomcat is completed started before
starting apache.  I know on my development box ( Dual 360Mhz with 1 gig
of memory) Tomcat takes 15 minutes to start.  If tomcat has to be
started first, then just putting a startup script in rc2.d for tomcat
and rc3.d for Apache doesn't work.

15 minutes What are you doing on startup???

Tomcat (v4.0.1 and 4.0.4) takes less than 30sec to start, including the
init events for all our load-on-startup servlets which initialize DB
connections and pools, set up some other stuff.

Anyways, you can have a servlet loaded on startup such that it's the
last one loaded on startup (include
load-on-startup999/load-on-startup in the web.xml for that servlet).
At the end of its init() method, you can send out some statements to log
file or email or whatever, saying startup is complete.

Hopefully this helps,

Yoav Shapira
Millennium ChemInformatics

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




AW: HttpSessionBindingListener, HttpSessionListener : Session already invalidated

2002-07-18 Thread Ralph Einfeldt

What do you want do with the session ?

You have always the option to store everything you 
need from a session in an object that is a 
HttpSessionBindingListener and use that information
to do what you want. (In your example you can either
the let the object caddy implement it, or you can
implement a wrapper that holds caddy)

BTW, just because it doesn't match your requirements 
it doesn't mean it's useless. (I can use it, I just 
don't need anything from the session, everything is 
stored in the unbounf object.)

 -Ursprüngliche Nachricht-
 Von: Nicolas Silberzahn [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 17. Juli 2002 15:50
 An: Tomcat Users List
 Betreff: HttpSessionBindingListener, HttpSessionListener : Session
 already invalidated
 
 I want to do some cleanup when a session dies. I tried to use
 HttpSessionBindingListener and then HttpSessionListener
 In both case, my code is called AFTER the session had been 
 invalidated:
 nothing can be done with the session anymore: it seems to be 
 useless functionality

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




RE: mod_webapp.so

2002-07-18 Thread Joseph Savard


 
 Man, this list needs a FAQ, bad.
+1

Good point!  Is there one avaialable or in the WOrks I thought it was in the 
works..




 
 HOWTO: http://www.galatea.com/flashguides/index
 
 There are many other docs that explain how to connect the two, the URL above
 is just one of them.
 
 If you are using apache, there is no benefit to using mod_webapp (WARP).
 The current mod_webapp connector sends ALL requests to tomcat...in that
 scenario, apache does nothing but add a layer. You would be fine just using
 tomcat standalone on port 80 in that scenario.  If you want apache to serve
 static content, and tomcat to serve servlet and JSP content, then you should
 use mod_jk (at this time):
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html
 
 John Turner
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Diego, Emil [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 9:06 AM
 To: '[EMAIL PROTECTED]'
 Subject: mod_webapp.so
 
 
 I am running Redhat linux 7.3 with Apache 1.3.23 and tomcat 4.0.4.  I have
 installed them both and have tested them individually and they work.  Now i
 want to setup tomcat so it works within apache.  my 2 questions are this.
 1) Where can I get the mod_app.so warp connecter?
 
 2) Is there a really good tutorial on how to configure the servers to work
 together?
 
 
 thanx in advance for the assistance.
 
 Emil
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




How can I make apache talk to tomat !!!

2002-07-18 Thread Garia, Manju


I have apache server and tomat4.0 . How can I make these two talk and what
is the use of apache server.

My tomcat examples are working fine
http://localhost:8080/examples/jsp/date.jsp, but if I  run the jsp file
other than /example/jsp dir I get error.

Thanks

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




newbie has mod_jk question

2002-07-18 Thread Billingham, Walter 475

I can't seem to find the src for the Apache 2 mod_jk or whatever it changed
to?   Is the old 1.3.x src for mod_jk alright to compile against for Apache
2?  I also noticed that on my install of Tomcat 4.0.2 there is no placement
directory under /native for apache2 or libexec directory for putting the .so
files in Apache2 after compilation, I think that's right, I have tried to
find a howto on the building the mod_jk2.0 src but come up with page not
found or nothing at all.  Anybody know where these might be found, and where
do I actually put things once the ball gets rolling.  Thanks.  Trask.   

Unix has its weak points but its file system is not one of them.

- Chris Torek



--
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately 
notify the sender by e-mail at the address shown.  This e-mail transmission may 
contain confidential information.  This information is intended only for the use of 
the individual(s) or entity to whom it is intended even if addressed incorrectly.  
Please delete it from your files if you are not the intended recipient.  Thank you for 
your compliance. Copyright (c) 2002 CIGNA




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




RE: tomcat-user Dmod_webapp.so

2002-07-18 Thread Turner, John


I've never seen a thread devoted to creating one, though I would be more
than happy to help out.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Joseph Savard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:24 AM
To: Tomcat Users List
Subject: RE: mod_webapp.so



 
 Man, this list needs a FAQ, bad.
+1

Good point!  Is there one avaialable or in the WOrks I thought it was in the

works..




 
 HOWTO: http://www.galatea.com/flashguides/index
 
 There are many other docs that explain how to connect the two, the URL
above
 is just one of them.
 
 If you are using apache, there is no benefit to using mod_webapp (WARP).
 The current mod_webapp connector sends ALL requests to tomcat...in that
 scenario, apache does nothing but add a layer. You would be fine just
using
 tomcat standalone on port 80 in that scenario.  If you want apache to
serve
 static content, and tomcat to serve servlet and JSP content, then you
should
 use mod_jk (at this time):
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html
 
 John Turner
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Diego, Emil [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 9:06 AM
 To: '[EMAIL PROTECTED]'
 Subject: mod_webapp.so
 
 
 I am running Redhat linux 7.3 with Apache 1.3.23 and tomcat 4.0.4.  I have
 installed them both and have tested them individually and they work.  Now
i
 want to setup tomcat so it works within apache.  my 2 questions are this.
 1) Where can I get the mod_app.so warp connecter?
 
 2) Is there a really good tutorial on how to configure the servers to work
 together?
 
 
 thanx in advance for the assistance.
 
 Emil
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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

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




Re: How can I make apache talk to tomat !!!

2002-07-18 Thread Joseph Savard

On 18 Jul 2002 at 9:25, Garia, Manju wrote:

 
 I have apache server and tomat4.0 . How can I make these two talk and 
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-
howto.html
what
 is the use of apache server.
http://httpd.apache.org/


 
 My tomcat examples are working fine
 http://localhost:8080/examples/jsp/date.jsp, but if I  run the jsp file
 other than /example/jsp dir I get error.
 
 Thanks
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling



tomcat 4.0.3 Http header referer

2002-07-18 Thread peter lin


I think I may have found a bug affecting the referer when an error page
is specified.

I've tried using both request.getRequestDispatcher() and setting the
error page.  when I use

%@ page
errorPage=/exception.jsp
%

it returns the hostname without the path.

when I use requestdispatcher referer isn't even in the http header. 
Is this the correct behavior.

peter lin

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




Re: newbie has mod_jk question

2002-07-18 Thread Joseph Savard

Google can be of great help to you...

Here is the search I used for google???

http://www.google.com/search?hl=enie=UTF-8oe=UTF-
8q=howto+apache+tomcat

and it produced this link...
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

Try this method first before as it will save you time and the answer is as 
immediate as you can get!! 

Cheers,
jes



On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:

 I can't seem to find the src for the Apache 2 mod_jk or whatever it changed
 to?   Is the old 1.3.x src for mod_jk alright to compile against for Apache
 2?  I also noticed that on my install of Tomcat 4.0.2 there is no placement
 directory under /native for apache2 or libexec directory for putting the .so
 files in Apache2 after compilation, I think that's right, I have tried to
 find a howto on the building the mod_jk2.0 src but come up with page not
 found or nothing at all.  Anybody know where these might be found, and where
 do I actually put things once the ball gets rolling.  Thanks.  Trask.   
 
 Unix has its weak points but its file system is not one of them.
 
 - Chris Torek
 
 
 
 --
 CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please 
immediately notify the sender by e-mail at the address shown.  This e-mail 
transmission may contain confidential information.  This information is intended only 
for the use of the individual(s) or entity to whom it is 
intended even if addressed incorrectly.  Please delete it from your files if you are 
not the intended recipient.  Thank you for your compliance. Copyright (c) 2002 CIGNA
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




RE: tomcat-user Dmod_webapp.so

2002-07-18 Thread Joseph Savard

Im game... Lets take this off line and we can work together!!

On 18 Jul 2002 at 9:30, Turner, John wrote:

 
 I've never seen a thread devoted to creating one, though I would be more
 than happy to help out.
 
 John Turner
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Joseph Savard [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 9:24 AM
 To: Tomcat Users List
 Subject: RE: mod_webapp.so
 
 
 
  
  Man, this list needs a FAQ, bad.
 +1
 
 Good point!  Is there one avaialable or in the WOrks I thought it was in the
 
 works..
 
 
 
 
  
  HOWTO: http://www.galatea.com/flashguides/index
  
  There are many other docs that explain how to connect the two, the URL
 above
  is just one of them.
  
  If you are using apache, there is no benefit to using mod_webapp (WARP).
  The current mod_webapp connector sends ALL requests to tomcat...in that
  scenario, apache does nothing but add a layer. You would be fine just
 using
  tomcat standalone on port 80 in that scenario.  If you want apache to
 serve
  static content, and tomcat to serve servlet and JSP content, then you
 should
  use mod_jk (at this time):
  
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html
  
  John Turner
  [EMAIL PROTECTED]
  
  -Original Message-
  From: Diego, Emil [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 18, 2002 9:06 AM
  To: '[EMAIL PROTECTED]'
  Subject: mod_webapp.so
  
  
  I am running Redhat linux 7.3 with Apache 1.3.23 and tomcat 4.0.4.  I have
  installed them both and have tested them individually and they work.  Now
 i
  want to setup tomcat so it works within apache.  my 2 questions are this.
  1) Where can I get the mod_app.so warp connecter?
  
  2) Is there a really good tutorial on how to configure the servers to work
  together?
  
  
  thanx in advance for the assistance.
  
  Emil
  [EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 Joseph E. Savard
 Principal 
 Applied Information Technologies, Inc.
 Words are, of course, the most powerful drug used by mankind. - Kipling
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




Re: problems with the jakarta service created by jk_nt_service.exe

2002-07-18 Thread Joseph Savard


http://www.vacodi.com/howto/tomcat/iisnt/index.html



On 17 Jul 2002 at 13:49, gisprogram wrote:

 Hello,
   I am running IIS 5 with ESRI's ArcIMS and Tomcat 3.2.4.  I have the
 servlet functioning according to the http://your name
 here/servlet/SnoopServlet convention.  But the service that I create using
 jk_nt_service.exe did not function.  I get the following error message from
 the command prompt execution:
 
 C:\jakarta-tomcat-3.2\binjk_nt_service.exe -I Jakarta
 c:\jakarta-tomcat-3.2\con
 f\wrapper.properties
 Asked (and given) winsock 1.1
 The service named Jakarta was created. Now adding registry entries
 Registry values were added
 If you have already updated wrapper.properties you may start the Jakarta
 service
  by executing net start Jakarta from the command prompt
 
 C:\jakarta-tomcat-3.2\binnet start Jakarta
 The Jakarta service is starting.
 The Jakarta service could not be started.
 
 A system error has occurred.
 
 System error 1067 has occurred.
 
 The process terminated unexpectedly.
 
 I have included a copy of my wrapper.properties and the log file jvm.stderr
 for your review.  Any troubleshooting advice you could dispatch would be
 appreciated.
 
 Thanks,
 
 Brandon Ellis
 GIS Analyst
 FOCUS Humanitarian Assistance
  Leesburg Pike, Suite 303S
 Falls Church, VA 22034
 703.442.3212
 
  wrapper.properties  jvm.stderr  err_fr_DOS.txt 
 


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




RE: What to do to http.conf and/or server.xml

2002-07-18 Thread Koes, Derrick


That's what I figured.  I thought I'd ask anyway.  I was wondering if there
was an override for some directory under example.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 18, 2002 9:07 AM
To: 'Tomcat Users List'
Subject: RE: What to do to http.conf and/or server.xml


If you have something under example and example is mapped to the AJP13
connector, requests for /example and anything under it are going to be
served by tomcat.  That's the point of the connector, to distribute the
requests to a particular area based on URL.  Since servlets don't have file
extensions, there's really no other way other than URL for apache or a
connector to know which requests need to be served by tomcat.

I think if you want apache to serve that content, you have to put it
someplace other than /example.  Can anyone else confirm this?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 8:52 AM
To: 'Tomcat Users List'
Subject: What to do to http.conf and/or server.xml


I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
http://servername/example/docs .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs

 

Directory C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs

AuthType Basic

AuthName Restricted Files

AuthUserFile C:/Program Files/Apache Group/users

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

/Directory

 

to the httpd.conf file, but the URL has to be http://serverName/docs
http://servername/docs .

 

I tried adding

 

Alias /example/ C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/

 

Directory C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example

AuthType Basic

AuthName Restricted Files

AuthUserFile C:/Program Files/Apache Group/users

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

/Directory

 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 


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



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




Moderators

2002-07-18 Thread Joseph Savard

Is there a FAQ for this list?

Is one in the works?

Do you need assistance?

Also, is there anyway to ask the people with vacation notifications to turn 
this off on their lists... It adds to the traffic of ALL our regular email and I am 
sure it puts due pressure n the list server.

A nofication of some sort would be desirable and considerate.  Then if it 
continues a removal from the list is appropriate.  I would suggest to suggest 
the removal, of course, after the person returns from vacation and a second 
incident occursAs this would be appropriate and fair as opposed to 
removal immediately after the warning..

Just a thought...

Anyone eldse have an idea to resolve this issue?


Joseph E. Savard
Principal 
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




RE: Problem with Load Balancing using mod_jk and session affinity.

2002-07-18 Thread Robert Chartier

Thanks guys!

It was indeed the jvmRoute identifier.  It really needs to be identical to the worker 
name as found in workers.properties.

Thanks again!

Robert Chartier

-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 12:26 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Problem with Load Balancing using mod_jk and session
affinity.


It definitely works as I have it working too.  What you have to do is also
make sure you encodeURL all links and form actions.

 -Original Message-
 From: Eddie Bush [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 10:51 PM
 To: Tomcat Users List
 Subject: Re: Problem with Load Balancing using mod_jk and session
 affinity.


 I believe (and I could be wrong) that you need to specify the _worker
 name_ for jvmRoute.  ubeans.com/tomcat - they do it.  He tested it and
 claims he has it working fine.  Check it out.

 Regards,

 Eddie

 Robert Chartier wrote:

 Hi,
 
 I've successfully installed and configured apache and 2 tomcats
 using mod_jk.
 
 Unfortunately the load balancing works without session affinity
 between my 2 tomcat instances.  I discovered the issue by calling
 the following link: /examples/servlet/SessionExample.  I keep
 getting switch between my 2 tomcat instances.
 
 I know that my jvmRoute attribute is properly set as I see it
 appended on the generated session id.  Can some help me in
 figuring out what I am missing.  I know I am pretty close to have
 a working setup!
 
 The only odd thing about my setup is that there is a firewall
 between apache and tomact:
 OS on all machine: Linux
 WebServer: apache v1.3.26
 Java: Sun v1.3.1_01
 Tomcat: v4.0.2
 
 The following is all my configuration files used in my current
 setup and a portion of mod_jk.log related to my http requests.
 
 Thanks, I remain.
 
 Robert Chartier
 



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




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


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




Re: mod_webapp.so

2002-07-18 Thread Eddie Bush

You know, and I realize the devs are kind of busy, I think if they would 
just incorporate the level of detail and completeness in the more recent 
docs that existed in the 3.x series of TC, a lot of questions wouldn't 
have to be asked.  I find myself wondering, quite honestly, why the TC 
3.x docs explained things so well, and yet the 4.x docs seem quite terse 
in comparison.

You know what would be cool?  ... if a link repository were set up 
that would allow us to submit our own I found this useful sites.  It 
could allow a person to submit a link - and allow other people to rate 
the link according to how useful they found it.  The original poster 
could add a small amount of commentary about his TC/Apache version, and 
his implementation.  Then, newcomers could discern rather quickly where 
to go find the information they need - or if it's even available. 
 Questions would change from, Where do I get ... and How do I ... to 
Has this really not been done yet, or is it just not in the repository 
yet?

Personally, I think that linking 4.x docs to 3.x docs would help a lot. 
 It's anything but obvious you should have to go through the 3.x docs to 
learn to set up 4.x :-)  If, however, they were at least mentioned in 
the 4.0 docs, and maybe linked to, it would be much more easily understood.

Just a thought ;-)

Eddie

Turner, John wrote:

Man, this list needs a FAQ, bad.

HOWTO: http://www.galatea.com/flashguides/index

There are many other docs that explain how to connect the two, the URL above
is just one of them.

If you are using apache, there is no benefit to using mod_webapp (WARP).
The current mod_webapp connector sends ALL requests to tomcat...in that
scenario, apache does nothing but add a layer. You would be fine just using
tomcat standalone on port 80 in that scenario.  If you want apache to serve
static content, and tomcat to serve servlet and JSP content, then you should
use mod_jk (at this time):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

John Turner
[EMAIL PROTECTED]




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




RE: FAQ and resources (was mod_webapp.so)

2002-07-18 Thread Turner, John


Great ideas, all!

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:02 AM
To: Tomcat Users List
Subject: Re: mod_webapp.so


You know, and I realize the devs are kind of busy, I think if they would 
just incorporate the level of detail and completeness in the more recent 
docs that existed in the 3.x series of TC, a lot of questions wouldn't 
have to be asked.  I find myself wondering, quite honestly, why the TC 
3.x docs explained things so well, and yet the 4.x docs seem quite terse 
in comparison.

You know what would be cool?  ... if a link repository were set up 
that would allow us to submit our own I found this useful sites.  It 
could allow a person to submit a link - and allow other people to rate 
the link according to how useful they found it.  The original poster 
could add a small amount of commentary about his TC/Apache version, and 
his implementation.  Then, newcomers could discern rather quickly where 
to go find the information they need - or if it's even available. 
 Questions would change from, Where do I get ... and How do I ... to 
Has this really not been done yet, or is it just not in the repository 
yet?

Personally, I think that linking 4.x docs to 3.x docs would help a lot. 
 It's anything but obvious you should have to go through the 3.x docs to 
learn to set up 4.x :-)  If, however, they were at least mentioned in 
the 4.0 docs, and maybe linked to, it would be much more easily understood.

Just a thought ;-)

Eddie

Turner, John wrote:

Man, this list needs a FAQ, bad.

HOWTO: http://www.galatea.com/flashguides/index

There are many other docs that explain how to connect the two, the URL
above
is just one of them.

If you are using apache, there is no benefit to using mod_webapp (WARP).
The current mod_webapp connector sends ALL requests to tomcat...in that
scenario, apache does nothing but add a layer. You would be fine just using
tomcat standalone on port 80 in that scenario.  If you want apache to serve
static content, and tomcat to serve servlet and JSP content, then you
should
use mod_jk (at this time):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

John Turner
[EMAIL PROTECTED]




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

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




RE: FAQ and resources (was mod_webapp.so)

2002-07-18 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

I would be willing to put together info that is specific to HP-UX usage.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 8:04 AM
To: 'Tomcat Users List'
Subject: RE: FAQ and resources (was mod_webapp.so)



Great ideas, all!

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:02 AM
To: Tomcat Users List
Subject: Re: mod_webapp.so


You know, and I realize the devs are kind of busy, I think if they would 
just incorporate the level of detail and completeness in the more recent 
docs that existed in the 3.x series of TC, a lot of questions wouldn't 
have to be asked.  I find myself wondering, quite honestly, why the TC 
3.x docs explained things so well, and yet the 4.x docs seem quite terse 
in comparison.

You know what would be cool?  ... if a link repository were set up 
that would allow us to submit our own I found this useful sites.  It 
could allow a person to submit a link - and allow other people to rate 
the link according to how useful they found it.  The original poster 
could add a small amount of commentary about his TC/Apache version, and 
his implementation.  Then, newcomers could discern rather quickly where 
to go find the information they need - or if it's even available. 
 Questions would change from, Where do I get ... and How do I ... to 
Has this really not been done yet, or is it just not in the repository 
yet?

Personally, I think that linking 4.x docs to 3.x docs would help a lot. 
 It's anything but obvious you should have to go through the 3.x docs to 
learn to set up 4.x :-)  If, however, they were at least mentioned in 
the 4.0 docs, and maybe linked to, it would be much more easily understood.

Just a thought ;-)

Eddie

Turner, John wrote:

Man, this list needs a FAQ, bad.

HOWTO: http://www.galatea.com/flashguides/index

There are many other docs that explain how to connect the two, the URL
above
is just one of them.

If you are using apache, there is no benefit to using mod_webapp (WARP).
The current mod_webapp connector sends ALL requests to tomcat...in that
scenario, apache does nothing but add a layer. You would be fine just using
tomcat standalone on port 80 in that scenario.  If you want apache to serve
static content, and tomcat to serve servlet and JSP content, then you
should
use mod_jk (at this time):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

John Turner
[EMAIL PROTECTED]




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

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

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




How to close a response?

2002-07-18 Thread Jenya Strokin

Hi,
I need to close the response completely. In some case I need to avoid any
process write to response output.
Using
response.getOutputStream().close();
response.getWriter().close();
response.reset();
do not help.
Thanks for any suggestions.

Jenya

---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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




RE: How to close a response?

2002-07-18 Thread Durham David Cntr 805CSS/SCBE

Need more detail about your problem.  Are you having a problem with JSP?

-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: How to close a response?


Hi,
I need to close the response completely. In some case I need to avoid any
process write to response output.
Using
response.getOutputStream().close();
response.getWriter().close();
response.reset();
do not help.
Thanks for any suggestions.

Jenya

---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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




How do I Hide version specific information

2002-07-18 Thread Kevin Passey

Thanks

Kevin Passey

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




Re: How do I Hide version specific information

2002-07-18 Thread Henner Zeller


mail.NoSuchExplainingContentException
at task.reading.MailReader(MailReader.java:42)
;-)

Anyway .. what version specific information of what you want to hide .. 
from whom ?

On Thu, 18 Jul 2002, Kevin Passey wrote:

 Thanks
 
 Kevin Passey

-hen



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




Caching problems

2002-07-18 Thread Max Z.

Sorry for hammering, but this is important.

I have both tomcat 3 and tomcat 4 installed. I have an application running
with a few jsp files. I am trying to make sure the browser does not cache
the pages. So I use the following code:

response.setHeader(Cache-Control,no-cache);
response.setHeader(Pragma,no-cache);
response.setDateHeader(Expires,-1);

When I run this under tomcat 3, these lines have no effect and pages are
cached in the browser.
When I run this under tomcat 4, these pages are not cached and forces the
user to reload.

The problem is that the environment in which this app will be running is
running tomcat 3. Is this a feature or a bug? Any reasons why this is
happening ? Is there any way to make it work?

Thank You
Max



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




RE: How to close a response?

2002-07-18 Thread Jenya Strokin

I'm using servlet. But if you know way how to do this from JSP, please share
it.))
This is my method wich called from doGet and doPost:

  public void doGetPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
/*--
If user clicks link twice, browser will get the same screen two times mixed.
So, I need synchronized processes. But after that browser will get the same
screen one after another. So I need close output after I process first
request, and second request can not write to output string.
*/

synchronized(request){
  abstractBean.setSharedSession(sharedSessionBean);
  abstractBean.setRequest(request);
  abstractBean.setResponse(response);
  abstractBean.setServlet(this);
  abstractBean.process();

  abstractBean.footerProcess();
//-- I'm trying to close output here, but second process write its
data anyway
//  out.close();
  response.getWriter().close();
}
  }

If this information is not enough, I'll provide more.
Thanks for any help.

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:18 AM
To: Tomcat Users List
Subject: RE: How to close a response?


Need more detail about your problem.  Are you having a problem with JSP?

-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: How to close a response?


Hi,
I need to close the response completely. In some case I need to avoid any
process write to response output.
Using
response.getOutputStream().close();
response.getWriter().close();
response.reset();
do not help.
Thanks for any suggestions.

Jenya

---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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


---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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




RE: Caching problems

2002-07-18 Thread Turner, John


Have you verified that the page sent by tomcat 3 actually has those headers
set?  It maybe that the browser doesn't even get those headers under tomcat3
(a bug). For what its worth, Cache-Control and Expires aren't browser
directives...they are cache (inline cache, proxy cache, etc) directives.  I
think the RFC is 2616.

Accroding to this:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21 the date in
the Expires header must be in RFC1123 format, I don't think -1 is valid.  

What is the browser setting?  Is the browser set to demand a fresh page on
every request?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Max Z. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:40 AM
To: [EMAIL PROTECTED]
Subject: Caching problems


Sorry for hammering, but this is important.

I have both tomcat 3 and tomcat 4 installed. I have an application running
with a few jsp files. I am trying to make sure the browser does not cache
the pages. So I use the following code:

response.setHeader(Cache-Control,no-cache);
response.setHeader(Pragma,no-cache);
response.setDateHeader(Expires,-1);

When I run this under tomcat 3, these lines have no effect and pages are
cached in the browser.
When I run this under tomcat 4, these pages are not cached and forces the
user to reload.

The problem is that the environment in which this app will be running is
running tomcat 3. Is this a feature or a bug? Any reasons why this is
happening ? Is there any way to make it work?

Thank You
Max



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

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




What version of Java is necessary to run Tomcat

2002-07-18 Thread Bruce Bailey

Hi

I have installed the Tomcat server on my TRU64 system.  Every time I try to start the 
server, it aborts, leaving 'Unable to initialize threads: cannot find class 
java/lang/Thread' in the catalina.out log file.

I am beginning to suspect that I have either an incomplete/incorrect installation of 
Java or that the version that I have is too old.  I am running version 1.1.7B-2 of 
Java (RTE only).  One thing that looks odd to me is that the java and javac 
executables reside in /etc/bin rather than dedicated directory with jar files etc.

This same installation package of Tomcat works just fine on my Linux box, running 
version 1.3.1 of Java.

I am using version 4.0.4 of Tomcat.

Thanks in advance,

Bruce

Bruce Bailey
2525 SW First Avenue
Portland, OR 97201

(503) 294-4206
[EMAIL PROTECTED]



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




RE: How to close a response?

2002-07-18 Thread Shapira, Yoav

Howdy,
I would be very careful synchronizing stuff on a request or response
reference.  The potential performance bottlenecks could be crippling if
you site has many concurrent users.

Did you actually see the browser getting the same screen twice, mixed?
I've found that tomcat usually does an excellent job at properly
assigning requests to threads.  Perhaps one of your servlets needs to
implement SingleThreadModel instead?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:44 AM
To: Tomcat Users List
Subject: RE: How to close a response?

I'm using servlet. But if you know way how to do this from JSP, please
share
it.))
This is my method wich called from doGet and doPost:

  public void doGetPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
/*--
If user clicks link twice, browser will get the same screen two times
mixed.
So, I need synchronized processes. But after that browser will get the
same
screen one after another. So I need close output after I process first
request, and second request can not write to output string.
*/

synchronized(request){
  abstractBean.setSharedSession(sharedSessionBean);
  abstractBean.setRequest(request);
  abstractBean.setResponse(response);
  abstractBean.setServlet(this);
  abstractBean.process();

  abstractBean.footerProcess();
//-- I'm trying to close output here, but second process write
its
data anyway
//  out.close();
  response.getWriter().close();
}
  }

If this information is not enough, I'll provide more.
Thanks for any help.

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:18 AM
To: Tomcat Users List
Subject: RE: How to close a response?


Need more detail about your problem.  Are you having a problem with
JSP?

-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: How to close a response?


Hi,
I need to close the response completely. In some case I need to avoid
any
process write to response output.
Using
response.getOutputStream().close();
response.getWriter().close();
response.reset();
do not help.
Thanks for any suggestions.

Jenya

---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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


---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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




apache + tomcat + mod_jk

2002-07-18 Thread COLLINEAU Franck FTRD/DMI/TAM

Greetings,

I would like to run an application using both Tomcat and Apache with mod_jk 
module.
I have followed the procedure 's intallation given on the tomcat site
So Tomcat listen to on port 8080 (http) and on port 8007 (mod_jk).
When i type in a browser http://myUrl:8080 it works!
But when i type in a brwser http://myUrl i have the 403 error (forbidden)

Here an extract of the httpd.conf:

Include /opt/tomcat/conf/mod_jk.conf-auto
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel warn
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

Here are logs traces:
error_log:
[Thu Jul 18 16:38:18 2002] [warn] module jk_module is already loaded, 
skipping
[Thu Jul 18 16:38:18 2002] [notice] Apache-AdvancedExtranetServer/1.3.23 
(Mandrake Linux/4.1mdk) mod_gzip/1.3.19.1a mod_jk configured -- resuming 
normal operations
[Thu Jul 18 16:38:18 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Jul 18 16:38:33 2002] [error] [client 194.214.221.61] client denied by 
server configuration: /var/mpictures/Mpictures

mod_jk_log:
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match


access_log
194.214.221.61 - - [18/Jul/2002:16:38:33 +0200] GET /appli/Mpictures 
HTTP/1.1 403 321 - Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:0.9.8) 
Gecko/20020204

extract of httpd.conf
IfModule mod_jk.c
Include /opt/tomcat/conf/mod_jk.conf-auto
/IfModule
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel warn
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12


can anybody help me ?

Franck

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




RE: newbie has mod_jk question

2002-07-18 Thread Andy Eastham

Jez,

This would be great if it was correct and not completely out of date..;-)

Andy

 -Original Message-
 From: Joseph Savard [mailto:[EMAIL PROTECTED]]
 Sent: 18 July 2002 14:33
 To: Tomcat Users List
 Subject: Re: newbie has mod_jk question


 Google can be of great help to you...

 Here is the search I used for google???

 http://www.google.com/search?hl=enie=UTF-8oe=UTF-
 8q=howto+apache+tomcat

 and it produced this link...
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

 Try this method first before as it will save you time and the
 answer is as
 immediate as you can get!!

 Cheers,
 jes



 On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:

  I can't seem to find the src for the Apache 2 mod_jk or
 whatever it changed
  to?   Is the old 1.3.x src for mod_jk alright to compile
 against for Apache
  2?  I also noticed that on my install of Tomcat 4.0.2 there is
 no placement
  directory under /native for apache2 or libexec directory for
 putting the .so
  files in Apache2 after compilation, I think that's right, I
 have tried to
  find a howto on the building the mod_jk2.0 src but come up with page not
  found or nothing at all.  Anybody know where these might be
 found, and where
  do I actually put things once the ball gets rolling.  Thanks.  Trask.
 
  Unix has its weak points but its file system is not one of them.
 
  - Chris Torek
 
 
 
 
 --
 
  CONFIDENTIALITY NOTICE: If you have received this e-mail in
 error, please immediately notify the sender by e-mail at the
 address shown.  This e-mail transmission may contain confidential
 information.  This information is intended only for the use of
 the individual(s) or entity to whom it is
 intended even if addressed incorrectly.  Please delete it from
 your files if you are not the intended recipient.  Thank you for
 your compliance. Copyright (c) 2002 CIGNA
 
  
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




Joseph E. Savard
Principal
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




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




RE: How to close a response?

2002-07-18 Thread Durham David Cntr 805CSS/SCBE

Well not sure what to tell you about your particular issue, but I experienced a very 
similar problem (double page, or at least partial double page).  In a JSP page 
something like this:

%@ include file=header.jsp %

%
// check login
if (!user.loggedIn()) {
response.sendRedirect(login.jsp);
return;
}
%

The problem is that the response content is sent along with the response headers.  I 
think this is appropriate, but produces undesirable results in IE (double page).  The 
solution was to be sure that any redirects were sent and the method returned before 
any HTML was added to the response, like this:

%
// check login do this before sending any HTML to response
if (!user.loggedIn()) {
response.sendRedirect(login.jsp);
return;
}
%

!-- now HTML is fine --
%@ include file=header.jsp %


I'm not sure but I think that a call to reponse.close() will flush anything left in 
the buffer then close.  The fact that double clicking a link produces the same result 
is strange (and I've never seen that), because you would think that the first response 
never gets a chance to do anything, or just gets ignored by the browser

Hope this helps

Dave

-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:44 AM
To: Tomcat Users List
Subject: RE: How to close a response?


I'm using servlet. But if you know way how to do this from JSP, please share
it.))
This is my method wich called from doGet and doPost:

  public void doGetPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
/*--
If user clicks link twice, browser will get the same screen two times mixed.
So, I need synchronized processes. But after that browser will get the same
screen one after another. So I need close output after I process first
request, and second request can not write to output string.
*/

synchronized(request){
  abstractBean.setSharedSession(sharedSessionBean);
  abstractBean.setRequest(request);
  abstractBean.setResponse(response);
  abstractBean.setServlet(this);
  abstractBean.process();

  abstractBean.footerProcess();
//-- I'm trying to close output here, but second process write its
data anyway
//  out.close();
  response.getWriter().close();
}
  }

If this information is not enough, I'll provide more.
Thanks for any help.

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:18 AM
To: Tomcat Users List
Subject: RE: How to close a response?


Need more detail about your problem.  Are you having a problem with JSP?

-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: How to close a response?


Hi,
I need to close the response completely. In some case I need to avoid any
process write to response output.
Using
response.getOutputStream().close();
response.getWriter().close();
response.reset();
do not help.
Thanks for any suggestions.

Jenya

---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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


---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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




Errors in starting up webapp Example on Tomcat 4.04

2002-07-18 Thread Sunit . Sheth

Hello,

I am getting startup errors on tomcat 4.04.  I am new to tomcat 4 but have
used 3 extensively.  Any help would be greatly appreciated.





JDK:  1.4
ENV:  HP-UX
TOMCAT_MODE:  Standalone (prototyping) web server

Log file for the example webapps (localhost_examples_log.2002-07-18.txt):



START_LOG_FILE_


2002-07-18 09:50:19 WebappLoader[/examples]: Deploying class repositories
to work directory
/home/apache/sunit/tomcat/jakarta-tomcat-4.0.4-LE-jdk14/work/Standalone/localhost/examples
2002-07-18 09:50:19 WebappLoader[/examples]: Reloading checks are enabled
for this Context
2002-07-18 09:50:19 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2002-07-18 09:50:19 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-07-18 09:50:23 ContextConfig[/examples]: Added certificates - request
attribute Valve
2002-07-18 09:50:24 ContextConfig[/examples]: Configured an authenticator
for method FORM
2002-07-18 09:50:24 ContextListener: contextInitialized()
2002-07-18 09:50:24 SessionListener: contextInitialized()
2002-07-18 09:50:24 StandardContext[/examples]: Exception starting filter
Set Character Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:314)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3077)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3408)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-07-18 09:50:24 StandardContext[/examples]: Exception starting filter
Compression Filter
java.lang.ClassNotFoundException: compressionFilters.CompressionFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:314)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3077)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3408)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


Re[2]: ??? Tomcat Bug? -- Throws NullPointerException ???

2002-07-18 Thread Jacob Kjome

Hello Tony,

Good to know.

Thanks.

Jake

Thursday, July 18, 2002, 12:38:51 AM, you wrote:

TL Actually, you are wrong but your comments helped me find the
TL general cause of the problem...it is not a bug in
TL Tomcat...comments below


TL - Original Message -
TL From: Jacob Kjome [EMAIL PROTECTED]



 Just because you are creating an inner class within a servlet
TL does not mean
 that that inner class now gets access to the ServletConfig.

TL Yes, I should have access to it -- inner classes have access to
TL their parent's fields. In this case my inner class *should* have
TL complete access to the ServletConfig object stored in
TL GenericServlet.

TL By the time my init() is called, the ServletConfig object has
TL already beens set by GenericServlet.init(ServletConfig config).

TL The problem is that the ServletConfig object in GenericServlet is
TL transient. When I serialize the Inner object the following
TL objects get serialized as well:

TL   1. My Servlet
TL   2. GenericServlet (contains the transient ServletConfig object)

TL I have more investigation to do



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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: What version of Java is necessary to run Tomcat

2002-07-18 Thread John Burgess

Tomcat 4 requires 1.3.1 or later, I believe.  Also for JSP pages you will
need the sdk not just the rte since it needs tools.jar for the javac
compiler to compile the servlets generated by jasper.

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Bruce Bailey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 3:54 PM
To: Tomcat Users
Subject: What version of Java is necessary to run Tomcat


Hi

I have installed the Tomcat server on my TRU64 system.  Every time I try to
start the server, it aborts, leaving 'Unable to initialize threads: cannot
find class java/lang/Thread' in the catalina.out log file.

I am beginning to suspect that I have either an incomplete/incorrect
installation of Java or that the version that I have is too old.  I am
running version 1.1.7B-2 of Java (RTE only).  One thing that looks odd to me
is that the java and javac executables reside in /etc/bin rather than
dedicated directory with jar files etc.

This same installation package of Tomcat works just fine on my Linux box,
running version 1.3.1 of Java.

I am using version 4.0.4 of Tomcat.

Thanks in advance,

Bruce

Bruce Bailey
2525 SW First Avenue
Portland, OR 97201

(503) 294-4206
[EMAIL PROTECTED]



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02
 

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




AW: Caching problems

2002-07-18 Thread Ralph Einfeldt

- Do you run behind a connector or stand alone ?

- Have you tried to see if the headers are even sent ?
  Just telnet to your http port and requst the page manually.
  GET /url HTTP/1.0crcr

  cr=enter

- Do you set the header as early as possible ?
  Tomcat 3.* might have a different buffer behaviour than 4.0
  so that the response has already been sent to the client.

 -Ursprüngliche Nachricht-
 Von: Max Z. [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 18. Juli 2002 16:40
 An: [EMAIL PROTECTED]
 Betreff: Caching problems
 
 
 I have both tomcat 3 and tomcat 4 installed. I have an 
 application running
 with a few jsp files. I am trying to make sure the browser 
 does not cache the pages. So I use the following code:
 
 response.setHeader(Cache-Control,no-cache);
 response.setHeader(Pragma,no-cache);
 response.setDateHeader(Expires,-1);
 
 When I run this under tomcat 3, these lines have no effect 
 and pages are cached in the browser.

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




RE: newbie has mod_jk question

2002-07-18 Thread Billingham, Walter 475

Hey,

I guess the next logical question is who has actually compiled
mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
mod_jwhatever and AJP 1.x working and will he share the wealth of his
endeavors?


Unix has its weak points but its file system is not one of them.

- Chris Torek


 -Original Message-
 From: Andy Eastham [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 10:53 AM
 To:   Tomcat Users List
 Subject:  RE: newbie has mod_jk question
 
 Jez,
 
 This would be great if it was correct and not completely out of date..;-)
 
 Andy
 
  -Original Message-
  From: Joseph Savard [mailto:[EMAIL PROTECTED]]
  Sent: 18 July 2002 14:33
  To: Tomcat Users List
  Subject: Re: newbie has mod_jk question
 
 
  Google can be of great help to you...
 
  Here is the search I used for google???
 
  http://www.google.com/search?hl=enie=UTF-8oe=UTF-
  8q=howto+apache+tomcat
 
  and it produced this link...
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
 
  Try this method first before as it will save you time and the
  answer is as
  immediate as you can get!!
 
  Cheers,
  jes
 
 
 
  On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:
 
   I can't seem to find the src for the Apache 2 mod_jk or
  whatever it changed
   to?   Is the old 1.3.x src for mod_jk alright to compile
  against for Apache
   2?  I also noticed that on my install of Tomcat 4.0.2 there is
  no placement
   directory under /native for apache2 or libexec directory for
  putting the .so
   files in Apache2 after compilation, I think that's right, I
  have tried to
   find a howto on the building the mod_jk2.0 src but come up with page
 not
   found or nothing at all.  Anybody know where these might be
  found, and where
   do I actually put things once the ball gets rolling.  Thanks.  Trask.
  
   Unix has its weak points but its file system is not one of them.
  
   - Chris Torek
  
  
  
  
  --
  
   CONFIDENTIALITY NOTICE: If you have received this e-mail in
  error, please immediately notify the sender by e-mail at the
  address shown.  This e-mail transmission may contain confidential
  information.  This information is intended only for the use of
  the individual(s) or entity to whom it is
  intended even if addressed incorrectly.  Please delete it from
  your files if you are not the intended recipient.  Thank you for
  your compliance. Copyright (c) 2002 CIGNA
  
   
  
  
   --
   To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 Joseph E. Savard
 Principal
 Applied Information Technologies, Inc.
 Words are, of course, the most powerful drug used by mankind. - Kipling
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

--
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately 
notify the sender by e-mail at the address shown.  This e-mail transmission may 
contain confidential information.  This information is intended only for the use of 
the individual(s) or entity to whom it is intended even if addressed incorrectly.  
Please delete it from your files if you are not the intended recipient.  Thank you for 
your compliance. Copyright (c) 2002 CIGNA




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




Re: What version of Java is necessary to run Tomcat

2002-07-18 Thread Nishant_Awasthi


Hello Bruce,..

I don't know about  TRU64 systems but...The problem you are getting might
be because of the ports...
Some other applications my be using the same port check typing netstat /an
command on dos prompt...

the other case can be please include tools.jar file in your %TOMCAT_HOME%
\common\lib path and set the corresponding classpath and re-run tomcat...
hope it shoudl works..

--

Nishant Awasthi
Corporate Systems Database Intern
Progressive Insurance
Phone: 440-603-4055 (Work)
Cell: 330-328-0243 (Cell)



   

Bruce 

Bailey  To: Tomcat Users

Bruce_Bailey[EMAIL PROTECTED]  

@adp.comcc: (bcc: Nishant Awasthi)

 Subject: What version of Java is 
necessary to 
07/18/2002   run Tomcat

10:54 AM   

Please 

respond to 

Tomcat Users  

List  

   

   






Hi

I have installed the Tomcat server on my TRU64 system.  Every time I try to
start the server, it aborts, leaving 'Unable to initialize threads: cannot
find class java/lang/Thread' in the catalina.out log file.

I am beginning to suspect that I have either an incomplete/incorrect
installation of Java or that the version that I have is too old.  I am
running version 1.1.7B-2 of Java (RTE only).  One thing that looks odd to
me is that the java and javac executables reside in /etc/bin rather than
dedicated directory with jar files etc.

This same installation package of Tomcat works just fine on my Linux box,
running version 1.3.1 of Java.

I am using version 4.0.4 of Tomcat.

Thanks in advance,

Bruce

Bruce Bailey
2525 SW First Avenue
Portland, OR 97201

(503) 294-4206
[EMAIL PROTECTED]



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





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




RE: apache + tomcat + mod_jk

2002-07-18 Thread Turner, John


You'll have to fix this first: 
[Thu Jul 18 16:38:33 2002] [error] [client 194.214.221.61] client denied by
server configuration: /var/mpictures/Mpictures

AND

194.214.221.61 - - [18/Jul/2002:16:38:33 +0200] GET /appli/Mpictures
HTTP/1.1 403 321 - Mozilla/5.0 (X11; U; Linux i686; fr-FR;rv:0.9.8)
Gecko/20020204

That's apache telling you that you have no permissions to access that
resource.  Tomcat hasn't even gotten involved at that point, and neither has
the connector, as far as I know.

Also, it's a really good idea to make sure http://localhost:8080/examples
and http://localhost/examples work before trying to add your own
configurations into the mix.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: COLLINEAU Franck FTRD/DMI/TAM
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:56 AM
To: Tomcat Users List
Subject: apache + tomcat + mod_jk


Greetings,

I would like to run an application using both Tomcat and Apache with mod_jk 
module.
I have followed the procedure 's intallation given on the tomcat site
So Tomcat listen to on port 8080 (http) and on port 8007 (mod_jk).
When i type in a browser http://myUrl:8080 it works!
But when i type in a brwser http://myUrl i have the 403 error (forbidden)

Here an extract of the httpd.conf:

Include /opt/tomcat/conf/mod_jk.conf-auto
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel warn
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

Here are logs traces:
error_log:
[Thu Jul 18 16:38:18 2002] [warn] module jk_module is already loaded, 
skipping
[Thu Jul 18 16:38:18 2002] [notice] Apache-AdvancedExtranetServer/1.3.23 
(Mandrake Linux/4.1mdk) mod_gzip/1.3.19.1a mod_jk configured -- resuming 
normal operations
[Thu Jul 18 16:38:18 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Jul 18 16:38:33 2002] [error] [client 194.214.221.61] client denied by 
server configuration: /var/mpictures/Mpictures

mod_jk_log:
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match


access_log
194.214.221.61 - - [18/Jul/2002:16:38:33 +0200] GET /appli/Mpictures 
HTTP/1.1 403 321 - Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:0.9.8) 
Gecko/20020204

extract of httpd.conf
IfModule mod_jk.c
Include /opt/tomcat/conf/mod_jk.conf-auto
/IfModule
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel warn
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12


can anybody help me ?

Franck

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

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




Re: newbie has mod_jk question

2002-07-18 Thread Shannon Scott

I also have been trying for days to download mod_jk from apache.org
unsuccessfully...
The suggested download link at the following website doesn't work.

  and it produced this link...
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

Does anyone know a good source for mod_jk?

Shannon



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




RE: How do I Hide version specific information

2002-07-18 Thread Kevin Passey

I have been using Nessus to scan my server - and they recommend that you do
not give out exactly the version information of your web server as it helps
a hacker define what webserver you have, and thus any vulnerabilities that
may exist on your server

Does that help?

Kevin

-Original Message-
From: Henner Zeller [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2002 15:37
To: Tomcat Users List
Subject: Re: How do I Hide version specific information



mail.NoSuchExplainingContentException
at task.reading.MailReader(MailReader.java:42)
;-)

Anyway .. what version specific information of what you want to hide .. 
from whom ?

On Thu, 18 Jul 2002, Kevin Passey wrote:

 Thanks
 
 Kevin Passey

-hen



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

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




RE: newbie has mod_jk question

2002-07-18 Thread Turner, John


Unless someone on the list wants to send you a compiled version for your
platform, I think you will have to build from source.  I don't think the
binaries are offered anymore:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/

You want the file that has connectors in the name.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Shannon Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:10 AM
To: Tomcat Users List
Subject: Re: newbie has mod_jk question


I also have been trying for days to download mod_jk from apache.org
unsuccessfully...
The suggested download link at the following website doesn't work.

  and it produced this link...
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

Does anyone know a good source for mod_jk?

Shannon



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

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




getRemoteHost(): how to get the fully qualified name?

2002-07-18 Thread Philipp . Krummenacher

Hi all
 
When I call the ServletRequest's getRemoteHost()-method, I get sometimes the
fully quialified name and sometimes the IP of the remote host. This is the
case also, if the fully qualified name is aviable to the Solaris the server
is running on (using nslookup). Now, is there a way to force the
Servlet-Engine to deliver the fully qualified name instead of the IP all the
times? 
 
Thanks for any help.
Philipp



RE: newbie has mod_jk question

2002-07-18 Thread Turner, John


Many people have gotten it working.  I have it working on apache 1.3.x.

If you can be more specific, there are bound to be people who can help, but
general questions are pretty difficult to answer.

Have your checked the resources out there?  Such as:
http://www.galatea.com/flashguides/index  (I'm not vouching for the accuracy
of those guides, just pointing them out).

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Billingham, Walter 475 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:04 AM
To: 'Tomcat Users List'
Subject: RE: newbie has mod_jk question


Hey,

I guess the next logical question is who has actually compiled
mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
mod_jwhatever and AJP 1.x working and will he share the wealth of his
endeavors?


Unix has its weak points but its file system is not one of them.

- Chris Torek


 -Original Message-
 From: Andy Eastham [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 10:53 AM
 To:   Tomcat Users List
 Subject:  RE: newbie has mod_jk question
 
 Jez,
 
 This would be great if it was correct and not completely out of date..;-)
 
 Andy
 
  -Original Message-
  From: Joseph Savard [mailto:[EMAIL PROTECTED]]
  Sent: 18 July 2002 14:33
  To: Tomcat Users List
  Subject: Re: newbie has mod_jk question
 
 
  Google can be of great help to you...
 
  Here is the search I used for google???
 
  http://www.google.com/search?hl=enie=UTF-8oe=UTF-
  8q=howto+apache+tomcat
 
  and it produced this link...
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
 
  Try this method first before as it will save you time and the
  answer is as
  immediate as you can get!!
 
  Cheers,
  jes
 
 
 
  On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:
 
   I can't seem to find the src for the Apache 2 mod_jk or
  whatever it changed
   to?   Is the old 1.3.x src for mod_jk alright to compile
  against for Apache
   2?  I also noticed that on my install of Tomcat 4.0.2 there is
  no placement
   directory under /native for apache2 or libexec directory for
  putting the .so
   files in Apache2 after compilation, I think that's right, I
  have tried to
   find a howto on the building the mod_jk2.0 src but come up with page
 not
   found or nothing at all.  Anybody know where these might be
  found, and where
   do I actually put things once the ball gets rolling.  Thanks.  Trask.
  
   Unix has its weak points but its file system is not one of them.
  
   - Chris Torek
  
  
  
  
  --
  
   CONFIDENTIALITY NOTICE: If you have received this e-mail in
  error, please immediately notify the sender by e-mail at the
  address shown.  This e-mail transmission may contain confidential
  information.  This information is intended only for the use of
  the individual(s) or entity to whom it is
  intended even if addressed incorrectly.  Please delete it from
  your files if you are not the intended recipient.  Thank you for
  your compliance. Copyright (c) 2002 CIGNA
  
   
  
  
   --
   To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 Joseph E. Savard
 Principal
 Applied Information Technologies, Inc.
 Words are, of course, the most powerful drug used by mankind. - Kipling
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


--
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
immediately notify the sender by e-mail at the address shown.  This e-mail
transmission may contain confidential information.  This information is
intended only for the use of the individual(s) or entity to whom it is
intended even if addressed incorrectly.  Please delete it from your files if
you are not the intended recipient.  Thank you for your compliance.
Copyright (c) 2002 CIGNA




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

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




Re: How to close a response?

2002-07-18 Thread Tim Funk

There is no need to synchronize the request object. It will not be used 
in multiple threads concurrently. What you really need is 
synchronization of the session to prevent processing of the double 
submit. If the user submits twice, then 2 different requests may be 
executed in different threads. Closing response streams don't help the 
main goal of preventing the double submit.

This may be an alternative:
  synchronized(sharedSessionBean){
if (magicMethodToCheckForDoubleProcessingYouNeedToWrite()){
  abstractBean.setSharedSession(sharedSessionBean);
  abstractBean.setRequest(request);
  abstractBean.setResponse(response);
  abstractBean.setServlet(this);
  abstractBean.process();
  abstractBean.footerProcess();
} else {
  //goto double submit error page
}
  }

-Tim

Jenya Strokin wrote:
 I'm using servlet. But if you know way how to do this from JSP, please share
 it.))
 This is my method wich called from doGet and doPost:
 
   public void doGetPost(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 /*--
 If user clicks link twice, browser will get the same screen two times mixed.
 So, I need synchronized processes. But after that browser will get the same
 screen one after another. So I need close output after I process first
 request, and second request can not write to output string.
 */
 
 synchronized(request){
   abstractBean.setSharedSession(sharedSessionBean);
   abstractBean.setRequest(request);
   abstractBean.setResponse(response);
   abstractBean.setServlet(this);
   abstractBean.process();
 
   abstractBean.footerProcess();
 //-- I'm trying to close output here, but second process write its
 data anyway
 //  out.close();
   response.getWriter().close();
 }
   }
 
 If this information is not enough, I'll provide more.
 Thanks for any help.
 
 -Original Message-
 From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 10:18 AM
 To: Tomcat Users List
 Subject: RE: How to close a response?
 
 
 Need more detail about your problem.  Are you having a problem with JSP?
 
 -Original Message-
 From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 9:17 AM
 To: [EMAIL PROTECTED]
 Subject: How to close a response?
 
 
 Hi,
 I need to close the response completely. In some case I need to avoid any
 process write to response output.
 Using
 response.getOutputStream().close();
 response.getWriter().close();
 response.reset();
 do not help.
 Thanks for any suggestions.
 
 Jenya
 
 ---
 Introducing NetZero Long Distance
 Unlimited Long Distance only $29.95/ month!
 Sign Up Today! www.netzerolongdistance.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 ---
 Introducing NetZero Long Distance
 Unlimited Long Distance only $29.95/ month!
 Sign Up Today! www.netzerolongdistance.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 



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




RE: getRemoteHost(): how to get the fully qualified name?

2002-07-18 Thread Sexton, George

The issue is that for the one's you are getting the IP Address for, Reverse
DNS zones are not configured properly. About 40-60% of the internet doesn't
have properly configured reverse DNS zones.

You can get more information by querying the registrar for that ip block.

whois [EMAIL PROTECTED]

if arin is not the block registrar, then you have to query the correct one
like RIPE or APNIC

RIPE is pretty nice in that the server seems to automatically recurse and
give good detail. ARIN requires you to single out the sub-net block and
perform a whois on it.

Have fun.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 18 July, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: getRemoteHost(): how to get the fully qualified name?


Hi all

When I call the ServletRequest's getRemoteHost()-method, I get sometimes the
fully quialified name and sometimes the IP of the remote host. This is the
case also, if the fully qualified name is aviable to the Solaris the server
is running on (using nslookup). Now, is there a way to force the
Servlet-Engine to deliver the fully qualified name instead of the IP all the
times?

Thanks for any help.
Philipp


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




RE: getRemoteHost(): how to get the fully qualified name?

2002-07-18 Thread Shapira, Yoav

Howdy,
You can convert IP to host name yourself.  Here's the relevant section
of the code:

String ipAddress = 123.456.789.123;
InetAddress ia = InetAddress.getByName(ipAddress);
String hostname = ia.getHostName();

As you will by experimenting, the above has the desirable property of
working whether ipAddress is nnn.nnn.nnn.nnn or the host name.  So you
can pass whatever you get from getRemoteHost() through this.

The assumption you mention (the fully qualified name is available to the
Solaris the server is running on) is important.  The above will throw an
UnkownHostException if the assumption is broken.

Good luck,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: getRemoteHost(): how to get the fully qualified name?

Hi all

When I call the ServletRequest's getRemoteHost()-method, I get
sometimes
the
fully quialified name and sometimes the IP of the remote host. This is
the
case also, if the fully qualified name is aviable to the Solaris the
server
is running on (using nslookup). Now, is there a way to force the
Servlet-Engine to deliver the fully qualified name instead of the IP
all
the
times?

Thanks for any help.
Philipp

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




Re: newbie has mod_jk question

2002-07-18 Thread Eddie Bush

ubeans.com/tomcat

I understand you can use mod_jk with Apache2 just fine ...

Billingham, Walter 475 wrote:

Hey,

   I guess the next logical question is who has actually compiled
mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
mod_jwhatever and AJP 1.x working and will he share the wealth of his
endeavors?


Unix has its weak points but its file system is not one of them.

- Chris Torek




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




Re: How do I Hide version specific information

2002-07-18 Thread Tim Funk

Change the source (don't know where) and recompile and give a bogus 
webserver name:

Server: Happy Harry's webserver/1.1 (Commodore64) mod_squishy/-1.2

In reality - use best practices to secure your installation. Security 
through obsurity is not really a great practice.

Kevin Passey wrote:
 I have been using Nessus to scan my server - and they recommend that you do
 not give out exactly the version information of your web server as it helps
 a hacker define what webserver you have, and thus any vulnerabilities that
 may exist on your server
 
 Does that help?
 
 Kevin
 
 -Original Message-
 From: Henner Zeller [mailto:[EMAIL PROTECTED]]
 Sent: 18 July 2002 15:37
 To: Tomcat Users List
 Subject: Re: How do I Hide version specific information
 
 
 
 mail.NoSuchExplainingContentException
 at task.reading.MailReader(MailReader.java:42)
 ;-)
 
 Anyway .. what version specific information of what you want to hide .. 
 from whom ?
 
 On Thu, 18 Jul 2002, Kevin Passey wrote:
 
 
Thanks

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



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




RE: newbie has mod_jk question

2002-07-18 Thread Turner, John


404, baby...404.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:32 AM
To: Tomcat Users List
Subject: Re: newbie has mod_jk question


ubeans.com/tomcat

I understand you can use mod_jk with Apache2 just fine ...

Billingham, Walter 475 wrote:

Hey,

   I guess the next logical question is who has actually compiled
mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
mod_jwhatever and AJP 1.x working and will he share the wealth of his
endeavors?


Unix has its weak points but its file system is not one of them.

- Chris Torek




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

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




RE: How to close a response?

2002-07-18 Thread Jenya Strokin

I'm synchronizing on a request because I'm expecting what if user makes a
request new request object should be created, am I wrong?
So sessions will be parallel any way. Now I'm not sure, I'll check it,
thanks for pointing on this problem.

Yes I saw screen mixed, obviously the page completely screwed up. After I
synchronized it, I got page by page on the same screen)))

If I'll implement SingleThreadModel will it be bottleneck? I don't know how
Servlet will work in this mode.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:54 AM
To: Tomcat Users List
Subject: RE: How to close a response?


Howdy,
I would be very careful synchronizing stuff on a request or response
reference.  The potential performance bottlenecks could be crippling if
you site has many concurrent users.

Did you actually see the browser getting the same screen twice, mixed?
I've found that tomcat usually does an excellent job at properly
assigning requests to threads.  Perhaps one of your servlets needs to
implement SingleThreadModel instead?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:44 AM
To: Tomcat Users List
Subject: RE: How to close a response?

I'm using servlet. But if you know way how to do this from JSP, please
share
it.))
This is my method wich called from doGet and doPost:

  public void doGetPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
/*--
If user clicks link twice, browser will get the same screen two times
mixed.
So, I need synchronized processes. But after that browser will get the
same
screen one after another. So I need close output after I process first
request, and second request can not write to output string.
*/

synchronized(request){
  abstractBean.setSharedSession(sharedSessionBean);
  abstractBean.setRequest(request);
  abstractBean.setResponse(response);
  abstractBean.setServlet(this);
  abstractBean.process();

  abstractBean.footerProcess();
//-- I'm trying to close output here, but second process write
its
data anyway
//  out.close();
  response.getWriter().close();
}
  }

If this information is not enough, I'll provide more.
Thanks for any help.

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 10:18 AM
To: Tomcat Users List
Subject: RE: How to close a response?


Need more detail about your problem.  Are you having a problem with
JSP?

-Original Message-
From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: How to close a response?


Hi,
I need to close the response completely. In some case I need to avoid
any
process write to response output.
Using
response.getOutputStream().close();
response.getWriter().close();
response.reset();
do not help.
Thanks for any suggestions.

Jenya

---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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


---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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


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


---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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




RE: Stability problems under Tomcat 4.0.4, Solaris 2.7, JdK 1.3.1_02-b02

2002-07-18 Thread Thierry Thelliez


The problem seems to be fixed now.

We updated the JDK1.4 (and installed the OS patches).


Thanks,
Thierry

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 17, 2002 6:59 AM
To: Tomcat Users List
Subject: RE: Stability problems under Tomcat 4.0.4, Solaris 2.7, JdK
1.3.1_02-b02

Howdy,
Very strange that you are experiencing this.  I use tomcat 4.0.4
on Solaris 2.7, JDK 1.3.1_01.  I have no stability problems at
all, I leave my machine up for days if not weeks.

For starters: why using a beta JDK?  And are you sure you have the
Solaris OS patches for the JDK?  I had to install those (as root).
It's not enough to just download the JDK itself.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Thierry Thelliez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 1:18 AM
To: [EMAIL PROTECTED]
Subject: Stability problems under Tomcat 4.0.4, Solaris 2.7, JdK
1.3.1_02-
b02

Hello,



We are attempting to develop a tag library but are experiencing a lot
of
tomcat crashes. Although we are still in development (learning) phase,
I
was wondering is there was anything we could do to avoid to have to
restart tomcat so often (in worse case scenario, we are restarting
every
~30 minutes).



Are others experiencing the same issues? How can you go through a
development cycle without crashing the server?



Is our OS/JDK combination not optimal? (Tonight we are installing the
JDK1.4.0_01 and the recommended Soalris patches , just in case... we
will
see)



Or is there something else we should be watching/doing?



(BTW, our tags are accessing a proprietary database through 'standard'
socket connections).



Cheers,

Thierry


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



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




Re: newbie has mod_jk question

2002-07-18 Thread Shannon Scott

John,
Thank You Very Much...

Shannon

 
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/
 
 You want the file that has connectors in the name.



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




Resend: 4.0.3: Servlets Loaded Twice?

2002-07-18 Thread Marinko, Jeff

Resending since I did not see a response...  I'd like to do a lot of start
up initialization, but if Tomcat forces the servlet to do this two times, it
might not be worth it.

Just a quick question...

I've noticed that all Servlets are loaded twice on Tomcat.  I'm running
4.0.3 on Win2K, and just by looking at the output I can see the same servlet
is loaded twice in quick succession (also, HttpServlet.init gets called
twice, but that's from loading twice).  Is this a known bug/feature?  Any
way to get a servlet to load only once (such as those servlets that have a
great deal of initialization)?

Thanks!

Jeff


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




RE: How to close a response?

2002-07-18 Thread Jenya Strokin

Guys.. it works now, but I don't understand why)))
I change code to synchronize the sharedSassionBean and didn't put any magic
methods for checking, and Servlet never send the same data twice. But
process still running two times. So I still need to write this magic method.
Thanks for suggestions and help,
Jenya

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:25 AM
To: Tomcat Users List
Subject: Re: How to close a response?


There is no need to synchronize the request object. It will not be used
in multiple threads concurrently. What you really need is
synchronization of the session to prevent processing of the double
submit. If the user submits twice, then 2 different requests may be
executed in different threads. Closing response streams don't help the
main goal of preventing the double submit.

This may be an alternative:
  synchronized(sharedSessionBean){
if (magicMethodToCheckForDoubleProcessingYouNeedToWrite()){
  abstractBean.setSharedSession(sharedSessionBean);
  abstractBean.setRequest(request);
  abstractBean.setResponse(response);
  abstractBean.setServlet(this);
  abstractBean.process();
  abstractBean.footerProcess();
} else {
  //goto double submit error page
}
  }

-Tim

Jenya Strokin wrote:
 I'm using servlet. But if you know way how to do this from JSP, please
share
 it.))
 This is my method wich called from doGet and doPost:

   public void doGetPost(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 /*--
 If user clicks link twice, browser will get the same screen two times
mixed.
 So, I need synchronized processes. But after that browser will get the
same
 screen one after another. So I need close output after I process first
 request, and second request can not write to output string.
 */

 synchronized(request){
   abstractBean.setSharedSession(sharedSessionBean);
   abstractBean.setRequest(request);
   abstractBean.setResponse(response);
   abstractBean.setServlet(this);
   abstractBean.process();

   abstractBean.footerProcess();
 //-- I'm trying to close output here, but second process write its
 data anyway
 //  out.close();
   response.getWriter().close();
 }
   }

 If this information is not enough, I'll provide more.
 Thanks for any help.

 -Original Message-
 From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 10:18 AM
 To: Tomcat Users List
 Subject: RE: How to close a response?


 Need more detail about your problem.  Are you having a problem with JSP?

 -Original Message-
 From: Jenya Strokin [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 9:17 AM
 To: [EMAIL PROTECTED]
 Subject: How to close a response?


 Hi,
 I need to close the response completely. In some case I need to avoid any
 process write to response output.
 Using
 response.getOutputStream().close();
 response.getWriter().close();
 response.reset();
 do not help.
 Thanks for any suggestions.

 Jenya

 ---
 Introducing NetZero Long Distance
 Unlimited Long Distance only $29.95/ month!
 Sign Up Today! www.netzerolongdistance.com

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


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


 ---
 Introducing NetZero Long Distance
 Unlimited Long Distance only $29.95/ month!
 Sign Up Today! www.netzerolongdistance.com

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






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


---
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

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




RE: getRemoteHost(): how to get the fully qualified name?

2002-07-18 Thread Jack Li

I applied your method to get the names. It works for some IPs. It didn't the
name of other IPs. For example, 12.5.203.134 was not converted to a name.
Any ideas?

Thanks,
Jack

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:31 AM
To: Tomcat Users List
Subject: RE: getRemoteHost(): how to get the fully qualified name?


Howdy,
You can convert IP to host name yourself.  Here's the relevant section
of the code:

String ipAddress = 123.456.789.123;
InetAddress ia = InetAddress.getByName(ipAddress);
String hostname = ia.getHostName();

As you will by experimenting, the above has the desirable property of
working whether ipAddress is nnn.nnn.nnn.nnn or the host name.  So you
can pass whatever you get from getRemoteHost() through this.

The assumption you mention (the fully qualified name is available to the
Solaris the server is running on) is important.  The above will throw an
UnkownHostException if the assumption is broken.

Good luck,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: getRemoteHost(): how to get the fully qualified name?

Hi all

When I call the ServletRequest's getRemoteHost()-method, I get
sometimes
the
fully quialified name and sometimes the IP of the remote host. This is
the
case also, if the fully qualified name is aviable to the Solaris the
server
is running on (using nslookup). Now, is there a way to force the
Servlet-Engine to deliver the fully qualified name instead of the IP
all
the
times?

Thanks for any help.
Philipp

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

application/ms-tnef
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: newbie has mod_jk question

2002-07-18 Thread Andy Eastham

John,

It's easy to get it working with apache 1.3.x.

It's painfully difficult to get any connectors working on apache 2.  I've
given up twice.

Andy

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 18 July 2002 16:20
 To: 'Tomcat Users List'
 Subject: RE: newbie has mod_jk question



 Many people have gotten it working.  I have it working on apache 1.3.x.

 If you can be more specific, there are bound to be people who can
 help, but
 general questions are pretty difficult to answer.

 Have your checked the resources out there?  Such as:
 http://www.galatea.com/flashguides/index  (I'm not vouching for
 the accuracy
 of those guides, just pointing them out).

 John Turner
 [EMAIL PROTECTED]


 -Original Message-
 From: Billingham, Walter 475 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 11:04 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie has mod_jk question


 Hey,

   I guess the next logical question is who has actually compiled
 mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
 mod_jwhatever and AJP 1.x working and will he share the wealth of his
 endeavors?


 Unix has its weak points but its file system is not one of them.

 - Chris Torek


  -Original Message-
  From:   Andy Eastham [SMTP:[EMAIL PROTECTED]]
  Sent:   Thursday, July 18, 2002 10:53 AM
  To: Tomcat Users List
  Subject:RE: newbie has mod_jk question
 
  Jez,
 
  This would be great if it was correct and not completely out of
 date..;-)
 
  Andy
 
   -Original Message-
   From: Joseph Savard [mailto:[EMAIL PROTECTED]]
   Sent: 18 July 2002 14:33
   To: Tomcat Users List
   Subject: Re: newbie has mod_jk question
  
  
   Google can be of great help to you...
  
   Here is the search I used for google???
  
   http://www.google.com/search?hl=enie=UTF-8oe=UTF-
   8q=howto+apache+tomcat
  
   and it produced this link...
  
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
  
   Try this method first before as it will save you time and the
   answer is as
   immediate as you can get!!
  
   Cheers,
   jes
  
  
  
   On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:
  
I can't seem to find the src for the Apache 2 mod_jk or
   whatever it changed
to?   Is the old 1.3.x src for mod_jk alright to compile
   against for Apache
2?  I also noticed that on my install of Tomcat 4.0.2 there is
   no placement
directory under /native for apache2 or libexec directory for
   putting the .so
files in Apache2 after compilation, I think that's right, I
   have tried to
find a howto on the building the mod_jk2.0 src but come up with page
  not
found or nothing at all.  Anybody know where these might be
   found, and where
do I actually put things once the ball gets rolling.
 Thanks.  Trask.
   
Unix has its weak points but its file system is not one of them.
   
- Chris Torek
   
   
   
   
   --
   
CONFIDENTIALITY NOTICE: If you have received this e-mail in
   error, please immediately notify the sender by e-mail at the
   address shown.  This e-mail transmission may contain confidential
   information.  This information is intended only for the use of
   the individual(s) or entity to whom it is
   intended even if addressed incorrectly.  Please delete it from
   your files if you are not the intended recipient.  Thank you for
   your compliance. Copyright (c) 2002 CIGNA
   

   
   
--
To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  Joseph E. Savard
  Principal
  Applied Information Technologies, Inc.
  Words are, of course, the most powerful drug used by mankind.
 - Kipling
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 --
 --
 --
 CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
 immediately notify the sender by e-mail at the address shown.  This e-mail
 transmission may contain confidential information.  This information is
 intended only for the use of the individual(s) or entity to whom it is
 intended even if addressed incorrectly.  Please delete it from
 your files if
 you are not the intended recipient.  Thank you for your compliance.
 Copyright (c) 2002 CIGNA

 


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

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

RE: getRemoteHost(): how to get the fully qualified name?

2002-07-18 Thread Turner, John


Not all IP addresses have valid reverse lookup zones.

All names must resolve to valid IP addresses to work.  There is no such
requirement for IP addresses; IP addresses may or may not resolve to domain
names.  It is up the domain administrator for that IP block to implement IP
reverse lookup zones (IP-names).  Whether the IP address resolves to a name
or not has nothing to do with tomcat or Java, or servlets or JSP.  You would
have the same issue if you were using perl, PHP, ASP, whatever.

If this is a serious issue for you, you can go to http://www.arin.net and
click on Whois, then type in the IP address in question.  You will be
presented with the contact information for the person or company that has
responsibility for that address block, and you can contact them and ask them
to implement an IP reverse lookup zone for the IP address in question.  Note
that not only can they deny/refuse your request without penalty, but they
may very well have delegated the responsibility for some of all of their
address block to someone else, and refuse to give you their contact
information if you aren't from ARIN.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 12:09 PM
To: 'Tomcat Users List'
Subject: RE: getRemoteHost(): how to get the fully qualified name?


I applied your method to get the names. It works for some IPs. It didn't the
name of other IPs. For example, 12.5.203.134 was not converted to a name.
Any ideas?

Thanks,
Jack

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:31 AM
To: Tomcat Users List
Subject: RE: getRemoteHost(): how to get the fully qualified name?


Howdy,
You can convert IP to host name yourself.  Here's the relevant section
of the code:

String ipAddress = 123.456.789.123;
InetAddress ia = InetAddress.getByName(ipAddress);
String hostname = ia.getHostName();

As you will by experimenting, the above has the desirable property of
working whether ipAddress is nnn.nnn.nnn.nnn or the host name.  So you
can pass whatever you get from getRemoteHost() through this.

The assumption you mention (the fully qualified name is available to the
Solaris the server is running on) is important.  The above will throw an
UnkownHostException if the assumption is broken.

Good luck,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: getRemoteHost(): how to get the fully qualified name?

Hi all

When I call the ServletRequest's getRemoteHost()-method, I get
sometimes
the
fully quialified name and sometimes the IP of the remote host. This is
the
case also, if the fully qualified name is aviable to the Solaris the
server
is running on (using nslookup). Now, is there a way to force the
Servlet-Engine to deliver the fully qualified name instead of the IP
all
the
times?

Thanks for any help.
Philipp

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

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




RE: newbie has mod_jk question

2002-07-18 Thread Turner, John


Wish I could help.  The only thing I can recommend is that you try it with
Apache 2.0.39.  Any earlier version would be a crapshoot.

The list isn't perfect, but if you want to try a third time and post each
specific issue as you encounter it, the list can try and help.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Andy Eastham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 12:10 PM
To: Tomcat Users List
Subject: RE: newbie has mod_jk question


John,

It's easy to get it working with apache 1.3.x.

It's painfully difficult to get any connectors working on apache 2.  I've
given up twice.

Andy

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 18 July 2002 16:20
 To: 'Tomcat Users List'
 Subject: RE: newbie has mod_jk question



 Many people have gotten it working.  I have it working on apache 1.3.x.

 If you can be more specific, there are bound to be people who can
 help, but
 general questions are pretty difficult to answer.

 Have your checked the resources out there?  Such as:
 http://www.galatea.com/flashguides/index  (I'm not vouching for
 the accuracy
 of those guides, just pointing them out).

 John Turner
 [EMAIL PROTECTED]


 -Original Message-
 From: Billingham, Walter 475 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 11:04 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie has mod_jk question


 Hey,

   I guess the next logical question is who has actually compiled
 mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
 mod_jwhatever and AJP 1.x working and will he share the wealth of his
 endeavors?


 Unix has its weak points but its file system is not one of them.

 - Chris Torek


  -Original Message-
  From:   Andy Eastham [SMTP:[EMAIL PROTECTED]]
  Sent:   Thursday, July 18, 2002 10:53 AM
  To: Tomcat Users List
  Subject:RE: newbie has mod_jk question
 
  Jez,
 
  This would be great if it was correct and not completely out of
 date..;-)
 
  Andy
 
   -Original Message-
   From: Joseph Savard [mailto:[EMAIL PROTECTED]]
   Sent: 18 July 2002 14:33
   To: Tomcat Users List
   Subject: Re: newbie has mod_jk question
  
  
   Google can be of great help to you...
  
   Here is the search I used for google???
  
   http://www.google.com/search?hl=enie=UTF-8oe=UTF-
   8q=howto+apache+tomcat
  
   and it produced this link...
  
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
  
   Try this method first before as it will save you time and the
   answer is as
   immediate as you can get!!
  
   Cheers,
   jes
  
  
  
   On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:
  
I can't seem to find the src for the Apache 2 mod_jk or
   whatever it changed
to?   Is the old 1.3.x src for mod_jk alright to compile
   against for Apache
2?  I also noticed that on my install of Tomcat 4.0.2 there is
   no placement
directory under /native for apache2 or libexec directory for
   putting the .so
files in Apache2 after compilation, I think that's right, I
   have tried to
find a howto on the building the mod_jk2.0 src but come up with page
  not
found or nothing at all.  Anybody know where these might be
   found, and where
do I actually put things once the ball gets rolling.
 Thanks.  Trask.
   
Unix has its weak points but its file system is not one of them.
   
- Chris Torek
   
   
   
   
   --
   
CONFIDENTIALITY NOTICE: If you have received this e-mail in
   error, please immediately notify the sender by e-mail at the
   address shown.  This e-mail transmission may contain confidential
   information.  This information is intended only for the use of
   the individual(s) or entity to whom it is
   intended even if addressed incorrectly.  Please delete it from
   your files if you are not the intended recipient.  Thank you for
   your compliance. Copyright (c) 2002 CIGNA
   

   
   
--
To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  Joseph E. Savard
  Principal
  Applied Information Technologies, Inc.
  Words are, of course, the most powerful drug used by mankind.
 - Kipling
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 --
 --
 --
 CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
 immediately notify the sender by e-mail at the address shown.  This e-mail
 transmission may contain confidential information.  This information is
 intended only for the use of the individual(s) 

Apache Tomcat integration-please help

2002-07-18 Thread developer



 I am having a problem getting apache tomcat running using mod_webapp.so
 I am using:
  linux redhat 7.3
  jdk1.4
  apache 1.3.26
  tomcat 4.0.4
 I got apache 1.3.26 compiled and installed with enable-module=so option it
 starts and stops fine
 I got tomcat 4.0.4, installed it  and it starts and stops fine, the
 examples work etc etc
 I got jakarta-tomcat-connectors using CVS, and followed the instructions
 to compile mod_webapp.so.  It compiled and I placed it in
 $APACHE_HOME/libexec/
 I added the following lines to httpd.conf:
 LoadModule webapp_module libexec/mod_webapp.so
 AddModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8080
 WebAppDeploy examples conn /examples
 
 I started tomcat no problem.  When I start apache i get:
 yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
 Invalid virtual host name
 /usr/local/apache/bin/apachectl start: httpd could not be started
 line 984 refers to this line:
 WebAppDeploy examples conn /examples
 
 I am stumped some help please?
 thanks,
 ryan
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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




Apache 2.0.39 + Tomcat 4.0.4 (mod_jk2.dll) on Windows 2000

2002-07-18 Thread Kevin Andryc

I can't seem to get them to work together. I have read archived posts but no
one has been able to answer how to exactly set them up to work properly. I
keep getting:

Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module
not included in the server configuration

Does anyone have any ideas or have some documentation. The documents on
http://www.galatea.com/flashguides/ do not cover the mod_jk2.dll binary with
the latest Apache.

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





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




  1   2   >