Re: configuring an ODBC database with JNDI

2003-07-25 Thread Dark Kernel \(InacioW-\)
hi to the list.
Well, I was thinking that I was not needing a driver
because I have j2sdk 1.4 and when I use in servlets 
jdbc:odbc:odbcsorce and the
sun.jdbc.odbc.JdbcOdbcDriver, everything goes fine...
Can I still use the sun's jdbcodbcdriver?
thanks in advance,

inacioW-

 --- Kwok Peng Tuck [EMAIL PROTECTED] schrieb: 
It's up to the database vendor to provide a JDBC
 driver, not tomcat. You 
 will have to figure out if inicio has a JDBC driver,
 and what kind
 of JDBC support provided by that driver, whether it
 is Type 1, 2, 3 or 4.
 
 dein_metzger wrote:
 
 hi.
 I was thinking that tomcat comes with a native jdbc
 driver... where I
 can get one for winxp?
 how can I get certified if there is one compatible
 driver?
 
 thanks in advance,
 inaciow
 
 -Original Message-
 From: Sudhir Movva [mailto:[EMAIL PROTECTED] 
 Sent: quinta-feira, 24 de julho de 2003 22:03
 To: 'Tomcat Users List'
 Subject: RE: configuring an ODBC database with JNDI
 
 
 First of all you need a jdbc driver to connect to
 your database (inicio)
 using Java. If there is one... Check this out

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
 -how
 to.html
 
 -Original Message-
 From: dein_metzger [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, July 24, 2003 8:44 PM
 To: [EMAIL PROTECTED]
 Subject: configuring an ODBC database with JNDI
 
 I am new to the list. and to JSP and JavaBeans
   I would like to know how i configure an ODBC
 database called inicio 
  to work with JNDI, and how I use it in my JSP /
 Javabean.  (I am using 
  tomcat 4.1 on windows xp)
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.502 / Virus Database: 300 - Release
 Date: 18/7/2003
  
 
 

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

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.502 / Virus Database: 300 - Release
 Date: 18/7/2003
  
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.502 / Virus Database: 300 - Release
 Date: 18/7/2003
  
 
 

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

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

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Help required

2003-07-25 Thread Veena K.S
Hi all,
We have a website hosted on tomcat4.1.12 .We are facing the
following problem when the site is up for a long time and the pages does not
load end up with a blank page , but the log file has the entry as stack
trace given below
What could be the reason for this and what could be the possible solution to
rectify this problem?

Thanks in advance
regds,
Veena

2003-07-25 13:31:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.price_jsp._jspService(price_jsp.java:414)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at

RE: Help required

2003-07-25 Thread Bill Lunnon
There is an exception thrown in price_jsp.java:414

I assume this is something that has been developed for the project.



-Original Message-
From: Veena K.S [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2003 4:37 PM
To: '[EMAIL PROTECTED]'
Subject: Help required


Hi all,
We have a website hosted on tomcat4.1.12 .We are facing the
following problem when the site is up for a long time and the pages does not
load end up with a blank page , but the log file has the entry as stack
trace given below
What could be the reason for this and what could be the possible solution to
rectify this problem?

Thanks in advance
regds,
Veena

2003-07-25 13:31:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.price_jsp._jspService(price_jsp.java:414)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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

Re: where is sign.sh from mod_ssl ???

2003-07-25 Thread Bill Barker
It seems that it is only distributed with the Apache-1.3.x version of
mod_ssl.

In my experience, it is usually worth the trouble in the long run to do a
full setup for a CA (i.e. what 'openssl ca ...' expects) if you need to
issue your own certs.

[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Hi.
 The HOWTO instructions on
 http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
 sign.sh script for signing server.csr. It is supposed to be
 distributed with mod_ssl.
 Mabe I should download and unpack the latest mod_ssl and look for it
 again...




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



Query about FileUploading??

2003-07-25 Thread Bikash Paul
Hi all friends,

Iam developing one uploading application for client
side Iam using html and for server side(Tomcat4.1.24)
Iam using servlet but my problem is I have to upload
big file say upto 50mb now i want to send file to
server in block wise(2048kb) for that i want to read
file in block of 2048 kb and want to write on
outputstream and so that my servlet can read from
outputStream and can write on destination folder.Can I
give Resume and Suspend facility in html which I have
given in swing client interface. I have already
developed this application using swing and servlet.Can
you plz guide me how I can do this in html.Eagerly
waiting for someone reply.Below r my codes for html.

script
function sendFile()
{
var sFileName =
document.getElementById(txtFile).value;
var sSafeFileName = encodeURIComponent(sFileName);
var
path=http://127.0.0.1:8080/examples/servlets/NetRecvServlet;;
document.forms[0].action=path+?+name= +
sSafeFileName;
document.forms[0].submit();
}
/script

body
form name=form1 method=POST
enctype=multipart/form-data

pSelect file to send:input name=Button
type=file class=file1 id=txtFile size=30/p

pinput name=sendfilebtn type=button class=btn
id=sendfilebtn value=Send File
onClick=sendFile()/p
/form
/body

Regards
Bikash


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: HttpRequest and HttpResponse from pageContext?

2003-07-25 Thread Gil Hauer
Thanks!

Gil

On Fri, 2003-07-25 at 01:23, Bill Barker wrote:
 HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
 HttpServletResponse res = (HttpServletResponse)pageContext.getResponse();
 
 Gil Hauer [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hello,
 
  Given a PageContext object, is there any way to get back to the
  HttpRequest that generated the page? Is there any way to get to the
  HttpResponse?
 
  Thanks,
  Gil
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: where is sign.sh from mod_ssl ???

2003-07-25 Thread achana
Hi!
I am going throug a couple of books (O'Reilly OpenSSL and SAM Maxum
Apache Security) and HOWTOs, I haven't come across instructions to set
up a CA yet. Can you please oint me in the right direction ?
TIA :(

Bill Barker wrote:
 
 It seems that it is only distributed with the Apache-1.3.x version of
 mod_ssl.
 
 In my experience, it is usually worth the trouble in the long run to do a
 full setup for a CA (i.e. what 'openssl ca ...' expects) if you need to
 issue your own certs.
 
 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
  Hi.
  The HOWTO instructions on
  http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
  sign.sh script for signing server.csr. It is supposed to be
  distributed with mod_ssl.
  Mabe I should download and unpack the latest mod_ssl and look for it
  again...
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: [FileUpload]

2003-07-25 Thread Ben Souther
To the best of my knowlege, there is no way to preload the value of a file 
input field or to programmatically load it. 

I've tried with Mozilla and it throws a javascript security exception. (I 
haven't tried with MSIE).

To do so would be a security threat.  Any webpage could have a hidden form 
that looks for a particular file (or set of files) and submits itself as soon 
as the page loads.  The user would have no way of stopping it or even knowing 
that it's going ont.










On Thursday 24 July 2003 05:51 pm, you wrote:
 Can anyone tells me how to modify my form to ensure that the contents of an
 input type=file control are still present when I return to the form?

 My file upload servlet is working pretty well now except for one thing. I
 am doing edits on each of the files which are to be uploaded, including a
 check to see if the file is larger than an individual size threshold I have
 set. (This is something I've created myself because I want an individual
 size limit, not the aggregate limit provided by the Commons FileUpload
 team.) When an individual file size is too large, I create a message and
 display it, then invite my user to press the back button on their browser
 to go back to the form to modify the form - either replace the name of the
 overly large file with a smaller one or blank it out altogether.

 Everything works fine except that when the user gets back to the form, all
 of the fields that are input type=file are blank. The input type=text
 fields retain their original values. I would like the input type=file
 controls to also contain their original value. What do I need to do to make
 that happen?

 I've never seen this blanking behaviour in other forms but this is the
 first time I've written a servlet containing an input type=file
 control

 I am running Tomcat 4.1.24. My browser is IE 6.0.2800.xpsp2.030422-1633. My
 OS is Windows XP Pro with all critical service applied.


 Rhino
 ---
 rhino1 AT sympatico DOT ca
 If you want the best seat in the house, you'll have to move the cat.

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



performance of serving static data? apache or tomcat

2003-07-25 Thread markw
I am working on a servlet that will be served from tomcat which is
connected to apache.  Currently I have the servlet being handled by
tomcat, and the image handled by apache.
Won't this require 2 get requests by the browser?  One being the image,
and one being the servlet?
Unfortunately, this is an SSL protected site and none of the pages are
cached.  So my question is, what is the best approach with performance in
mind?  What is the fasted way to get the image and dynamic HTML back to
the browser ?


Thank you for your help in advance.

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



Classloaders (newbie)

2003-07-25 Thread Harsh Nagpal
Hi!

I'm trying to  call an EJB from within a webserivce (Tomcat-Axis). The
basic design is as follows

Client  WebService  EJBClientClass  EJB

Everytime i run this, i get a remoteinovationerror (i resume from the
EJBCLientClass)

But when i integrate the webservice and the EJBClientClass everythign
run fine 

(Client  Webservice with EJB client coded inside  EJB)

Could this be a classloader issue?

please please please help

Harsh




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



how to get the ca from client by servlet

2003-07-25 Thread errise
I had finished the configuration of apache + tomcat + ssl.but i found i can't get  
client's ca in this environment by servlet.
I successfully  get  client's ca in  the tomcat + ssl,by code 
'request.getHeader()'.but in  apache i can't get it.

I don't know what is error in the apache + ssl + tomcat.
How to get the clients ca in the apache + ssl + tomcat?
 
thanks
errise


Re: how to get the ca from client by servlet

2003-07-25 Thread achana
Hi.
We are in the same boat ! See Zhangwei's email.
It seems to be a bug, to be fixed by the next release , coming out this
month.


errise wrote:
 
 I had finished the configuration of apache + tomcat + ssl.but i found i can't get  
 client's ca in this environment by servlet.
 I successfully  get  client's ca in  the tomcat + ssl,by code 
 'request.getHeader()'.but in  apache i can't get it.
 
 I don't know what is error in the apache + ssl + tomcat.
 How to get the clients ca in the apache + ssl + tomcat?
 
 thanks
 errise

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



RE: War files don't work

2003-07-25 Thread EPugh
Tang,

Thanks for the reply.  Unfortunantly, that isn't the behavior I am seeing,
and I think the other poster had the same issue.  If I don't have a
context for my war file in the server.xml, then it unpacks fine.  But, if
I do have a context, then it won't unpack, and I have to do it manually.  

This is the server conf that I am trying to use that doesn't work:
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=false debug=0 docBase=fortius.war
mapperClass=org.apache.catalina.core.StandardContextMapper path=/fortius
privileged=false reloadable=true swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  Environment description= name=local_dir override=true
type=java.lang.String
value=d:/java/tomcat/webapps/fortius/data/scintfiles/
/Context 


I do have the docBase pointing to my war file.

Eric Pugh
-Original Message-
From: Tang
To: Tomcat Users List; [EMAIL PROTECTED]
Sent: 7/24/03 9:31 PM
Subject: Re: War files don't work

Hi, all you need to do is place WAR file into webapps directory, Tomcat
will
unpack for you. If you don't pack web application into WAR file. You
should
copy web application directory into webapps directory and config
context
parameter. You can check tomcat-docs for more configuration details.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 6:18 PM
Subject: RE: War files don't work


 I'm joining this thread late, but I posted a couple weeks ago the same
 problem..  I am running JDK1.4.2 and Tomcat 4.1.24.  If I have a
context
 specified in server.xml, then the war file DOESN'T unpack.  If I don't
have
 a context specified, then it DOES unpack.

 Setting the docBase to fortius.war versus fortius doesn't seem to
matter
 at all.

 I am building my war file using Maven..  could that be the problem?

 Eric Pugh

 -Original Message-
 From: Rick Roberts
 To: Tomcat Users List
 Sent: 7/23/03 3:26 PM
 Subject: Re: War files don't work

 Making docBase = nsfs.war vice nsfs works!! :)

 However; the war file is not being unpacked.

 It seems that unpackWARs=true works the same as unpackWARs=false

 Thanks,

 Rick

 John Turner wrote:
 
   From the docs for Context:
 
  The Document Base (also known as the Context Root) directory for
this

  web application, or the pathname to the web application archive file
 (if
  this web application is being executed directly from the WAR file).
 You
  may specify an absolute pathname for this directory or WAR file, or
a
  pathname that is relative to the appBase directory of the owning
 Host.
 
  Thus, if you're going to put a Context entry in server.xml for
nsfs,

  make the docBase nsfs.war, not nsfs.
 
  Further:
 
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
 ic%20Application%20Deployment
 
 
  John
 
  Rick Roberts wrote:
 
  Does the nsfs.war file go into webapps directory or into
webapps/nsfs

  directory?
  Currently, the webapps/nsfs dir does not exist.  There is only the
  nsfs.war file setting in the webapps directory.  I am assuming that
  Tomcat will create the webapps/nsfs directory for me when it
expands
  the war file.
 
  I have temporarily set permissions to 777 on the webapps directory
 and
  it still does not expand, nor try to use, the war file.
 
 
  Rick
 
  John Turner wrote:
 
 
  You've told Tomcat the docBase is nsfs.
 
  Tomcat thusly looks for a directory called nsfs in the Host's
 appBase.
 
  If it finds it, and unpackWars is true, it will unpack your WAR
file

  into that directory (webapps/nsfs, NOT webapps).  Thus, Tomcat
needs

  r+w on webapps/nsfs.
 
  Does Tomcat have r+w on webapps/nsfs?
 
  Alternatively, make unpackWars false.
 
  John
 
  Rick Roberts wrote:
 
  My directory permissions are as follows:
 
  drwxrwx---7 root tomcat4  4096 Jul 23 12:17 webapps
 
  ps -ef shows me this, which is think is Tomcat, which is run by
 user
  tomcat4:
 
  tomcat4   6199 1  0 12:17 pts/200:00:36
  /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath
  /usr/java/jdk1.4/lib/tools.jar:/var
 
  Thanks,
 
  Rick
 
  Shapira, Yoav wrote:
 
  Howdy,
 
 
  2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start
 failed:
  java.lang.IllegalArgumentException: Document base
  /var/tomcat4/webapps/nsfs does not exist or is not a
  readable directory
 
 
 
 
 
  Well explain it to me! :)
 
  There is a /var/tomcat4/webapps/nsfs.war file.
 
  There should not be a /var/tomcat4/webapps/nsfs directory.
 
 
 
 
 
 
  If you have unpackWARS=true tomcat will try to explode your
war
 into
  the directory specified as the docBase, which is nsfs under
  webapps.  If
  it can't create this directory or read/write into it, you get
the
  above
  error.  Check file permissions on webapps.
 
  Yoav Shapira

 --
 

RE: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service

2003-07-25 Thread EPugh
 Would this tool help?  I also saw a wiki page for tomcat on setting memory
in the registry..

http://web.bvu.edu/staff/david/tcservcfg/


I guess my question is what it sthe right way to set options like this when
running as an Win2k service?
Eric Pugh

-Original Message-
From: Simon Pabst
To: Tomcat Users List
Sent: 7/24/03 4:59 PM
Subject: Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as
Win2k service

The 128m won't get used/allocated on Tomcat/Java start already (AFAIK),
only when you do a lot of memory intensive things (you could use a 
webserver stress tool to increase the load on the server so memory
grows)

At 13:52 24.07.2003 -0400, you wrote:
after assigning the following environment variables the java runtime 
options as follows:

eg: JAVA_OPTS=-Xmx128m -Xms128m

tried with:
CATALINA_OPTS
JAVA_OPTS

amount of RAM memory used stayed aprox the same.  Though i was
expecting 
more memory to be used because of the extra memory that should have
been 
allotted to java instance for Tomcat.  Consequently, i am assuming that

options were not applied by simply setting these environment variables,
at 
least when Tomcat is started as a service.

Where and how are java runtime options to be specified with Tomcat 4.1 
(JDK 1.4.2) when it is started as a win2k service?

[EMAIL PROTECTED]


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


Re: where is sign.sh from mod_ssl ???

2003-07-25 Thread Simon Pabst
A good HOWTO about Certificate Management and creating your own CA
is on http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/c118.html
Another one is here: http://www.corserv.com/freebsd/apache-ssl-howto.html
(not so detailed, but not that good either)
At 15:28 25.07.2003 +1000, you wrote:
Hi!
I am going throug a couple of books (O'Reilly OpenSSL and SAM Maxum
Apache Security) and HOWTOs, I haven't come across instructions to set
up a CA yet. Can you please oint me in the right direction ?
TIA :(
Bill Barker wrote:

 It seems that it is only distributed with the Apache-1.3.x version of
 mod_ssl.

 In my experience, it is usually worth the trouble in the long run to do a
 full setup for a CA (i.e. what 'openssl ca ...' expects) if you need to
 issue your own certs.

 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
  Hi.
  The HOWTO instructions on
  http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
  sign.sh script for signing server.csr. It is supposed to be
  distributed with mod_ssl.
  Mabe I should download and unpack the latest mod_ssl and look for it
  again...

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


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


Easy question on Tomcat 4.0 and SSL+HTTPS via localhost:8843. Lock-Icon disappear from the Browser.

2003-07-25 Thread Zaragoza, Carles
I have installed the SSL support for Tomcat 4.0.4 and almost everything
works. 

 

I followed all the guidelines from
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html 

 

 

But for instance when I type https://localhost:8443/
https://localhost:8443/  into my browser it works, my Internet Ms-Explorer
6.0 shows me the

Certificate form in order to accepted it, on the right-bottom area an
lock-icon appears telling me that this transaction

In under Secure guide but on the next page, the lock icon disappears.

 

 

Could somebody help me out?

 

Have a nice weekend,

Carles Zaragoza.

 



-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 



Re: Servlets in a protected resource

2003-07-25 Thread Tim Funk
Security contraints are always made on the incoming URI. Therefore, whatever 
you map your servlets paths to you'll need to create the appropriate 
constraints.

-Tim

Jeff Cummings wrote:
Hi everyone,

I have been able to setup JSPs in a protrected resource. The login page is
displayed. How do I setup a servlet in a protected resource to get the same
effect?
Jeff





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


Re: performance of serving static data? apache or tomcat

2003-07-25 Thread Tim Funk
yes and no. The browser makes a request to apache. Then the request is 
proxied to tomcat. When the servlet has been served, the browser issues a 
keep-alive and reuses the apache socket connection to get any other assets 
(such as images) needed.

2 requests, one connection.

With the numerous speed improvements in tomcat 4.1 and 5 - there might not be 
much (if any) difference in speed for a low (relative term) volume site.

You'll need to load test to see how things scale.

-Tim

[EMAIL PROTECTED] wrote:
I am working on a servlet that will be served from tomcat which is
connected to apache.  Currently I have the servlet being handled by
tomcat, and the image handled by apache.
Won't this require 2 get requests by the browser?  One being the image,
and one being the servlet?
Unfortunately, this is an SSL protected site and none of the pages are
cached.  So my question is, what is the best approach with performance in
mind?  What is the fasted way to get the image and dynamic HTML back to
the browser ?



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


Re: where is sign.sh from mod_ssl ???

2003-07-25 Thread achana
Hi.
Thanks, I got EngelSchall's sign.sh. I am going through exactly those
doco as we speak, I think the problem with the documentation is that
they refer to dfferent versions than mine. 
On my default RH7.1 Linux installation, I do not have /usr/local/ssl or
/etc/ssl/openssl.conf, yet it comes well equipped with
/etc/httpd/conf/ssl.crt ad /etc/httpd/conf/ssl.key. 
On the other hand, the Apache2 httpd.conf uses an Include conf/ssl.conf
which doesn't look like the instructions on the documentation. I am so
confused, I need a beer.
S, I won't be finishing the task this week.


Simon Pabst wrote:
 
 A good HOWTO about Certificate Management and creating your own CA
 is on http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/c118.html
 
 Another one is here: http://www.corserv.com/freebsd/apache-ssl-howto.html
 (not so detailed, but not that good either)
 
 At 15:28 25.07.2003 +1000, you wrote:
 Hi!
 I am going throug a couple of books (O'Reilly OpenSSL and SAM Maxum
 Apache Security) and HOWTOs, I haven't come across instructions to set
 up a CA yet. Can you please oint me in the right direction ?
 TIA :(
 
 Bill Barker wrote:
  
   It seems that it is only distributed with the Apache-1.3.x version of
   mod_ssl.
  
   In my experience, it is usually worth the trouble in the long run to do a
   full setup for a CA (i.e. what 'openssl ca ...' expects) if you need to
   issue your own certs.
  
   [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
Hi.
The HOWTO instructions on
http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
sign.sh script for signing server.csr. It is supposed to be
distributed with mod_ssl.
Mabe I should download and unpack the latest mod_ssl and look for it
again...
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Need Help For Iplanet Tomcat Configuration

2003-07-25 Thread Eric J. Pinnell
Hi,

I'm not sure if cross posting like that was such a good idea...  But since
I just had to figure this out last week I will share what I learned.

I had to play with this a bit befor I was able to get it to work. I was
using Solaris so I can't help you with the correct version of the
redirector DLL.  I hope this will help.

 Object name=servlet
 ObjectType fn=force-type type=text/plain
 Service fn=jk_service worker=ajp13
 /Object

The documentation isn't entirely correct here.  Put servlet in quotes.
Otherwise iPlanet doesn't see the object name and the assigment you made
in the default object section won't work (you will get that error once you
fix the stuff below). It also wouldn't hurt to put text/plain in quotes.


 workers.worker file
 workers.tomcat_home=C:\Tomcat
 workers.java_home=C:\jdk1.3
 ps=\
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13


I just used to last four lines of what you have here.  But that shouldn't
matter.



 I tried this url
 http://localhost:81/examples/servlet/HelloWorldExample

 [25/Jul/2003:12:59:08] warning ( 212):  for host
 127.0.0.1 trying to GET
 /examples/servlet/HelloWorldExample, send-file
 reports: can't find
 C:/iPlanet/Servers/docs/examples/servlet/HelloWorldExample
 (File not found)

That's exactly what it is doing.  So you have to fool it.  In your iPlanet
docroot create the directory examples.  iPlanet will see it and think it's
there.  Then when it tries to serve it the changes in obj.conf will kick
in and send the request to tomcat.

In some cases you will find that you have to touch (create 0 length
files) in some cases to fool netsacpe into thinking it's there.  Usually
it's just index.jsp.

I also connect to the Coyote/JK2 AJP1.3 connector on the tomcat side and
not the older AJP 1.3 connector.

-e



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



Re: where is sign.sh from mod_ssl ???

2003-07-25 Thread Simon Pabst
I don't know about Redhat's openssl installation,
but propably it spreads over several directories.
However there should be an openssl.conf somewhere,
maybe its in /etc/openssl.conf or /usr/local/openssl/openssl.conf
If you can't find it, this might help:
find /etc -name openssl.conf
or
find /usr -name openssl.conf
Installing openssl from source would also help getting a
clean (and more secure) openssl installation with everything in one directory.
And don't mix up Apache2 ssl.conf with openssl.conf, they've got nothing to 
do with each other.
In Apache 1 all the SSL stuff was in httpd.conf, in Apache 2 they just put 
that into conf/ssl.conf.



At 19:22 25.07.2003 +1000, you wrote:
Hi.
Thanks, I got EngelSchall's sign.sh. I am going through exactly those
doco as we speak, I think the problem with the documentation is that
they refer to dfferent versions than mine.
On my default RH7.1 Linux installation, I do not have /usr/local/ssl or
/etc/ssl/openssl.conf, yet it comes well equipped with
/etc/httpd/conf/ssl.crt ad /etc/httpd/conf/ssl.key.
On the other hand, the Apache2 httpd.conf uses an Include conf/ssl.conf
which doesn't look like the instructions on the documentation. I am so
confused, I need a beer.
S, I won't be finishing the task this week.
Simon Pabst wrote:

 A good HOWTO about Certificate Management and creating your own CA
 is on http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/c118.html

 Another one is here: http://www.corserv.com/freebsd/apache-ssl-howto.html
 (not so detailed, but not that good either)

 At 15:28 25.07.2003 +1000, you wrote:
 Hi!
 I am going throug a couple of books (O'Reilly OpenSSL and SAM Maxum
 Apache Security) and HOWTOs, I haven't come across instructions to set
 up a CA yet. Can you please oint me in the right direction ?
 TIA :(
 
 Bill Barker wrote:
  
   It seems that it is only distributed with the Apache-1.3.x version of
   mod_ssl.
  
   In my experience, it is usually worth the trouble in the long run 
to do a
   full setup for a CA (i.e. what 'openssl ca ...' expects) if you need to
   issue your own certs.
  
   [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hi.
The HOWTO instructions on
http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
sign.sh script for signing server.csr. It is supposed to be
distributed with mod_ssl.
Mabe I should download and unpack the latest mod_ssl and look for it
again...
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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

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


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


How many concurrent user on Tomcat and Apache(New Bie)

2003-07-25 Thread Sachin
Can any body tell me that on a Apache web Server(tomcat as worker) hosting
web site.
How many concurrent user possible

if Server has good hardware configuration.

Do we need to maintains worker.properties file for many tomcat Instances
under Apache..

If any body help me or any suggesstion

Thanks
Sachin



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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread srevilak
 From: markw () dolphtech ! com
 Subject: performance of serving static data? apache or tomcat

 I am working on a servlet that will be served from tomcat which is
 connected to apache.  Currently I have the servlet being handled by
 tomcat, and the image handled by apache.
 Won't this require 2 get requests by the browser?  One being the image,
 and one being the servlet?

Think of the simple case -- a static page with an image.  The client
will request the page, then issue a request for the image.  If the
client understands HTTP/1.1 and you have enabled KeepAlives on the
server, then the client should pipeline the two requests using the
same socket connection.

If apache is routing the requests to tomcat, you should have no
problem; the requests can still be pipelined.  This is pretty easy to
check with a telnet client.  (Let's call your host www.example.com,
with /servlets/A as a servlet, and /B.txt as a static file).

  $ telnet www.example.com 80
  [a few lines come back]
  GET /servlets/A HTTP/1.1
  Host: www.example.com

  [output from /servlets/A appears here]
  GET /B.txt HTTP/1.1
  Host: www.example.com

  [content of B.txt appears here]
  ^]
  telnet quit
  Connection closed.

Be sure to put a blank line after Host:, but no blank line before GET.
Image files are messy as telnet output, but if the above works with a
static text file, it should also work with a static image file.

If you want to try it with https, you can use the openssl command line
utility.

  $ openssl s_client -connect www.example.com:443
  [rest is same as above]

-- 
Steve

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



Re: Help required

2003-07-25 Thread Zach Gatu
If the page gives an error after Tomcat is up for a long time, may be 
something may be timing out, like a database connection, for example. 
Or the session gets invalidated.

Open up price_jsp.java and have a look at line 414.

Zach.

Veena K.S wrote:

Hi all,
We have a website hosted on tomcat4.1.12 .We are facing the
following problem when the site is up for a long time and the pages does not
load end up with a blank page , but the log file has the entry as stack
trace given below
What could be the reason for this and what could be the possible solution to
rectify this problem?
Thanks in advance
regds,
Veena
2003-07-25 13:31:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.price_jsp._jspService(price_jsp.java:414)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at

RE: War files don't work

2003-07-25 Thread EPugh
 What the Automatic Applcation Deployment doc says is that if you have a WAR
file, it won't be expanded if you have a context element in the server.xml
document.  It will only be run from that war file in an unexpanded format.

correct?
Eric

-Original Message-
From: John Turner
To: Tomcat Users List
Sent: 7/23/03 3:18 PM
Subject: Re: War files don't work


Check out the rules for Auto deployment:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
ic%20Application%20Deployment

John

Rick Roberts wrote:

 This sounds reasonable to me.
 But, if I don't have a Context/ element in server.xml then how do I 
 provide Context/ type information to Tomcat?
 
 
   !-- NSFS Context --
   Context path=/nsfs docBase=nsfs debug=0 reloadable=true
   crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=nsfs_log. suffix=.txt timestamp=true/
   /Context
 
 
 BTW,
 manually creating the nsfs/ directory did not help.
 however; if i manually create the nsfs/ dir and manually unpack the
.war 
 file everything works fine.
 
 another question:
 did I correctly create the nsfs.war file and test it by doing the 
 following?:
 
 1. cd to the webapps/nsfs/ directory
 2. jar -cvf nsfs.war *
 3. cp nsfs.war ../.  (the webapps dir)
 4. rm -rf nsfs/
 5. restart tomcat
 6. use browser and navigate to http://localhost/nsfs
 
 
 Thanks,
 
 Rick
 



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


Re: where are sign.sh and openssl.conf ?

2003-07-25 Thread achana
Hi.
Unbelievable, I searched all the servers for openssl.conf and found
nothing. Some of these are stock standard default installatio sraight
from the distro CDs from RH.
I am going to install OpenSSL from sratch this weekend and ditch RH's
distro copy.
find /usr openssl.conf -type f
find /usr -name openssl.conf
etc...
Nope.
I mean, when you configure these things, the sey parametric values have
to go somewhere, right ?
That does it, download, compile, install OpenSSL this weekend. Ouch!



Simon Pabst wrote:
 
 I don't know about Redhat's openssl installation,
 but propably it spreads over several directories.
 
 However there should be an openssl.conf somewhere,
 maybe its in /etc/openssl.conf or /usr/local/openssl/openssl.conf
 
 If you can't find it, this might help:
 find /etc -name openssl.conf
 or
 find /usr -name openssl.conf
 
 Installing openssl from source would also help getting a
 clean (and more secure) openssl installation with everything in one directory.
 
 And don't mix up Apache2 ssl.conf with openssl.conf, they've got nothing to
 do with each other.
 In Apache 1 all the SSL stuff was in httpd.conf, in Apache 2 they just put
 that into conf/ssl.conf.
 
 At 19:22 25.07.2003 +1000, you wrote:
 Hi.
 Thanks, I got EngelSchall's sign.sh. I am going through exactly those
 doco as we speak, I think the problem with the documentation is that
 they refer to dfferent versions than mine.
 On my default RH7.1 Linux installation, I do not have /usr/local/ssl or
 /etc/ssl/openssl.conf, yet it comes well equipped with
 /etc/httpd/conf/ssl.crt ad /etc/httpd/conf/ssl.key.
 On the other hand, the Apache2 httpd.conf uses an Include conf/ssl.conf
 which doesn't look like the instructions on the documentation. I am so
 confused, I need a beer.
 S, I won't be finishing the task this week.
 
 
 Simon Pabst wrote:
  
   A good HOWTO about Certificate Management and creating your own CA
   is on http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/c118.html
  
   Another one is here: http://www.corserv.com/freebsd/apache-ssl-howto.html
   (not so detailed, but not that good either)
  
   At 15:28 25.07.2003 +1000, you wrote:
   Hi!
   I am going throug a couple of books (O'Reilly OpenSSL and SAM Maxum
   Apache Security) and HOWTOs, I haven't come across instructions to set
   up a CA yet. Can you please oint me in the right direction ?
   TIA :(
   
   Bill Barker wrote:

 It seems that it is only distributed with the Apache-1.3.x version of
 mod_ssl.

 In my experience, it is usually worth the trouble in the long run
  to do a
 full setup for a CA (i.e. what 'openssl ca ...' expects) if you need to
 issue your own certs.

 [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  Hi.
  The HOWTO instructions on
  http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
  sign.sh script for signing server.csr. It is supposed to be
  distributed with mod_ssl.
  Mabe I should download and unpack the latest mod_ssl and look for it
  again...

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

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



Re: mod_jk on windows

2003-07-25 Thread John Turner
httpd.conf with the rest of them.

John

Ravi Pachipala wrote:
Where should JkMount be defined? Should it be in Tomcat's server.xml or
Apache's httpd.conf?
Thanks
Ravi
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:41 PM
To: Tomcat Users List
Subject: Re: mod_jk on windows


If its defined in Tomcat's server.xml, it should already be in 
mod_jk.conf.  You don't want duplicate entries for JkMount.

John

Ravi Pachipala wrote:


I defined JKMount in httpd.conf. However, I find it to be already
generated

in mod_jk.conf under tomcat installation.

If I submit the url http://localhost/ep/apps/xxx i am getting 500 error.
If


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


Re: War files don't work

2003-07-25 Thread John Turner
That's how I read it.  Basically, a Context in server.xml trumps 
automatic deployment.  As I understand it, you have to pick one or the 
other, not both.  If you must put a Context in server.xml for your web 
application, and you want to use a WAR file, then make the docBase of 
the Context the WAR file, not a directory, like this:

docBase=myApp.war

John

[EMAIL PROTECTED] wrote:

 What the Automatic Applcation Deployment doc says is that if you have a WAR
file, it won't be expanded if you have a context element in the server.xml
document.  It will only be run from that war file in an unexpanded format.
correct?
Eric
-Original Message-
From: John Turner
To: Tomcat Users List
Sent: 7/23/03 3:18 PM
Subject: Re: War files don't work
Check out the rules for Auto deployment:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
ic%20Application%20Deployment
John

Rick Roberts wrote:


This sounds reasonable to me.
But, if I don't have a Context/ element in server.xml then how do I 
provide Context/ type information to Tomcat?

 !-- NSFS Context --
 Context path=/nsfs docBase=nsfs debug=0 reloadable=true
 crossContext=true
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=nsfs_log. suffix=.txt timestamp=true/
 /Context
BTW,
manually creating the nsfs/ directory did not help.
however; if i manually create the nsfs/ dir and manually unpack the
.war 

file everything works fine.

another question:
did I correctly create the nsfs.war file and test it by doing the 
following?:

1. cd to the webapps/nsfs/ directory
2. jar -cvf nsfs.war *
3. cp nsfs.war ../.  (the webapps dir)
4. rm -rf nsfs/
5. restart tomcat
6. use browser and navigate to http://localhost/nsfs
Thanks,

Rick





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


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


Re: where are sign.sh and openssl.conf ?

2003-07-25 Thread Simon Pabst
Ah you got me confused myself there a bit,
just looked it up on my SuSE 8.1, its openssl.cnf not .conf
And if openssl is installed (and it must be, since Apache successfully 
compiled with ssl) it must be somewhere.

However doing a clean install of openssl is still the best way to do it, 
since Redhat rpm's are propably not up to date.

At 20:22 25.07.2003 +1000, you wrote:
Hi.
Unbelievable, I searched all the servers for openssl.conf and found
nothing. Some of these are stock standard default installatio sraight
from the distro CDs from RH.
I am going to install OpenSSL from sratch this weekend and ditch RH's
distro copy.
find /usr openssl.conf -type f
find /usr -name openssl.conf
etc...
Nope.
I mean, when you configure these things, the sey parametric values have
to go somewhere, right ?
That does it, download, compile, install OpenSSL this weekend. Ouch!


Simon Pabst wrote:

 I don't know about Redhat's openssl installation,
 but propably it spreads over several directories.

 However there should be an openssl.conf somewhere,
 maybe its in /etc/openssl.conf or /usr/local/openssl/openssl.conf

 If you can't find it, this might help:
 find /etc -name openssl.conf
 or
 find /usr -name openssl.conf

 Installing openssl from source would also help getting a
 clean (and more secure) openssl installation with everything in one 
directory.

 And don't mix up Apache2 ssl.conf with openssl.conf, they've got nothing to
 do with each other.
 In Apache 1 all the SSL stuff was in httpd.conf, in Apache 2 they just put
 that into conf/ssl.conf.

 At 19:22 25.07.2003 +1000, you wrote:
 Hi.
 Thanks, I got EngelSchall's sign.sh. I am going through exactly those
 doco as we speak, I think the problem with the documentation is that
 they refer to dfferent versions than mine.
 On my default RH7.1 Linux installation, I do not have /usr/local/ssl or
 /etc/ssl/openssl.conf, yet it comes well equipped with
 /etc/httpd/conf/ssl.crt ad /etc/httpd/conf/ssl.key.
 On the other hand, the Apache2 httpd.conf uses an Include conf/ssl.conf
 which doesn't look like the instructions on the documentation. I am so
 confused, I need a beer.
 S, I won't be finishing the task this week.
 
 
 Simon Pabst wrote:
  
   A good HOWTO about Certificate Management and creating your own CA
   is on http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/c118.html
  
   Another one is here: 
http://www.corserv.com/freebsd/apache-ssl-howto.html
   (not so detailed, but not that good either)
  
   At 15:28 25.07.2003 +1000, you wrote:
   Hi!
   I am going throug a couple of books (O'Reilly OpenSSL and SAM Maxum
   Apache Security) and HOWTOs, I haven't come across instructions 
to set
   up a CA yet. Can you please oint me in the right direction ?
   TIA :(
   
   Bill Barker wrote:

 It seems that it is only distributed with the Apache-1.3.x 
version of
 mod_ssl.

 In my experience, it is usually worth the trouble in the long run
  to do a
 full setup for a CA (i.e. what 'openssl ca ...' expects) if you 
need to
 issue your own certs.

 [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  Hi.
  The HOWTO instructions on
  http://httpd.apache.org/docs-2.0/ssl/ssl_fag.html said I need a
  sign.sh script for signing server.csr. It is supposed to be
  distributed with mod_ssl.
  Mabe I should download and unpack the latest mod_ssl and look 
for it
  again...

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

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

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


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


Re: where are sign.sh and openssl.conf ?

2003-07-25 Thread John Turner
Reason #942 not to just take defaults when installing Red Hat Linux. 
You're better off deleting all of their auto crap and then installing 
what you need from scratch.  At least then you know exactly where 
everything is.

John

[EMAIL PROTECTED] wrote:

Hi.
Unbelievable, I searched all the servers for openssl.conf and found
nothing. Some of these are stock standard default installatio sraight
from the distro CDs from RH.
I am going to install OpenSSL from sratch this weekend and ditch RH's
distro copy.
find /usr openssl.conf -type f
find /usr -name openssl.conf
etc...
Nope.
I mean, when you configure these things, the sey parametric values have
to go somewhere, right ?
That does it, download, compile, install OpenSSL this weekend. Ouch!


Simon Pabst wrote:

I don't know about Redhat's openssl installation,
but propably it spreads over several directories.
However there should be an openssl.conf somewhere,
maybe its in /etc/openssl.conf or /usr/local/openssl/openssl.conf
If you can't find it, this might help:
find /etc -name openssl.conf
or
find /usr -name openssl.conf
Installing openssl from source would also help getting a
clean (and more secure) openssl installation with everything in one directory.
And don't mix up Apache2 ssl.conf with openssl.conf, they've got nothing to
do with each other.
In Apache 1 all the SSL stuff was in httpd.conf, in Apache 2 they just put
that into conf/ssl.conf.
At 19:22 25.07.2003 +1000, you wrote:

Hi.
Thanks, I got EngelSchall's sign.sh. I am going through exactly those
doco as we speak, I think the problem with the documentation is that
they refer to dfferent versions than mine.
On my default RH7.1 Linux installation, I do not have /usr/local/ssl or
/etc/ssl/openssl.conf, yet it comes well equipped with
/etc/httpd/conf/ssl.crt ad /etc/httpd/conf/ssl.key.
On the other hand, the Apache2 httpd.conf uses an Include conf/ssl.conf
which doesn't look like the instructions on the documentation. I am so
confused, I need a beer.
S, I won't be finishing the task this week.



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


Re: How many concurrent user on Tomcat and Apache(New Bie)

2003-07-25 Thread John Turner
You only need one workers.properties file.  All it does is tell 
mod_jk.so where to find Tomcat.

Regarding how many concurrent users that is impossible to say.  It 
depends on what your definition of good hardware is, as well as the 
complexity and quality of the web applications you're hosting.  It 
doesn't matter how much hardware you have or how many users you have, a 
single poorly designed web application can bring even the most robust 
server to a halt.

John

Sachin wrote:

Can any body tell me that on a Apache web Server(tomcat as worker) hosting
web site.
How many concurrent user possible
if Server has good hardware configuration.

Do we need to maintains worker.properties file for many tomcat Instances
under Apache..
If any body help me or any suggesstion

Thanks
Sachin


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


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


Re: performance of serving static data? apache or tomcat

2003-07-25 Thread John Turner
It's two requests whether you use Apache or not.

John

[EMAIL PROTECTED] wrote:

I am working on a servlet that will be served from tomcat which is
connected to apache.  Currently I have the servlet being handled by
tomcat, and the image handled by apache.
Won't this require 2 get requests by the browser?  One being the image,
and one being the servlet?
Unfortunately, this is an SSL protected site and none of the pages are
cached.  So my question is, what is the best approach with performance in
mind?  What is the fasted way to get the image and dynamic HTML back to
the browser ?
Thank you for your help in advance.

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


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


Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread John Turner
Not many people use IIS + Tomcat (comparatively speaking).  Of those, 
the folks using JK2 (redirector2) is probably smaller still.  Of those 
people, there's a good chance that they don't have an answer to your 
particular question.  Would you rather they replied anyway and sent you 
off on a wild goose chase, wasting your time?

John

Nathan Ward wrote:

I appreciate the reply. I've joined this mailing list about a week ago and
posted several messages. I've not gotten many replies at all. I guess people
are busy and there are a lot of messages to sift through. Nonetheless, I
start wondering if I have bad breath, don't know how spell or something if
noone even chimes in.
I took a look at the souce code for the isapi_redirector2.dll. I can follow
it pretty good since I spent 10 years programming in C. I see logging
methods (functions in C), but I didn't see where the log file was created or
where it was written to. I believe I see where the code specifies the
registry enteries that it is looking for and there isn't any for log file. I
didn't see the logLevel registry setting specified either which I saw in the
jk2 Tomcat docs.
I saw some statemens about writing event log statements which led me to
check the Windows Application Log. I did find some warning messages written
there by the isapi_redirector2.dll. However, I never did get jk2 working.
I'll stick with isapi_redirector.dll for now.
   Nathan

- Original Message -
From: Januski, Ken [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 5:36 PM
Subject: RE: Logfile for isapi_redirector2.dll?


Since no one's responded I tried google. Eventually I found this page with
the following sample registry entry. I've yet to try it but if it works
I'll

be very happy. It's about the same as registry entries for isapi_redirect
and isapi_redirector. But all examples I've seen for isapi_redirector2.dll
have not included a log_file. So I assumed there was a good reason. I
guess

I'll soon find out.

http://www.wbtsystems.com/news/newsletters/july2003

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0] serverRoot=\\tomcat
extensionUri=/jakarta/isapi_redirector2.dll
log_file=\\tomcat\\logs\\iis_redirect.log logLevel=DEBUG
workersFile=\\tomcat\\conf\\workers2.properties


-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 12:57 PM
To: Tomcat Users List
Subject: RE: Logfile for isapi_redirector2.dll?
I've been meaning to ask this myself ever since I went to
isapi_redirector2.dll. It sure would be nice to have a log.
-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 9:08 AM
To: Tomcat Users List
Subject: Logfile for isapi_redirector2.dll?
Does isapi_redirector2.dll write a log file? If so, where does it put the
file? I don't see any registry settings in the documentation that
specifies

the log file location.

  Nathan



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


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


Re: buiding 4.24

2003-07-25 Thread Mark F
Eric J. Pinnell wrote:
|| Hi,
||
|| For the JK2 connector you should use the 2.0.2 source.
||
|| Then compile with:
||
|| ./configure --with-apxs2=/path/to/apxs
||
|| then make
||
|| then mod_jk2.so should be in down in the build directory.
||
|| You need to manually copy the file to the apache modules directory.
||
|| The complete step by step is in the archives.  But that's the long
|| and short of it.
||
|| -e
||
|| On Thu, 24 Jul 2003, Simon Pabst wrote:
||
||| hmm weird, mod_jk2.so should be there after a successful make with
||| no errors, what connector source release did you download?
|||
||| What was your jk2 configure?
||| If you used --with-apache2 instead of --with-apxs2 then mod_jk2
||| won't be built as .so but instead as static module into httpd core.
|||
||| Maybe its somewhere else, try a find:
||| find /path/to/jk - name '*.so'
|||
||| At 14:23 24.07.2003 -0400, you wrote:
|||
 Ugh...I've seen this posted before but I don't use mod_jk2 so I
 didn't pay much attention to the answer.  It will be in the
 archives somewhere, or perhaps someone else has the answer.

 John


 Mark F wrote:

| The compile completed with no problems but there is no 'make
| install' it says to remember to execute
| 'libtool --finish /usr/local/apache/modules' so I did but it
| didn't do anything that I can see.  Also I can't find a
| mod_jk2.so.  in the jk/build/jk2/apache2 directory there is
| mod_jk2.o but no mod_jk2.so ? Thanks,
| -Mark
|

Source is 2.0.2, Platform Solaris 8

Still doing the same thing.  My configure is simply:
 ./configure --with-apxs2=/usr/local/apache/bin/apxs

Everything but a .so file is created in the build directory.

Thanks,
-Mark



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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread Nguyen Anh Tuan
No, there is only one request that is sent from
browser to Apache. Apache will reroute the request to
Tomcat as needed.
So what you are using now is the best configuration.

--- [EMAIL PROTECTED] wrote:
 I am working on a servlet that will be served from
 tomcat which is
 connected to apache.  Currently I have the servlet
 being handled by
 tomcat, and the image handled by apache.
 Won't this require 2 get requests by the browser? 
 One being the image,
 and one being the servlet?
 Unfortunately, this is an SSL protected site and
 none of the pages are
 cached.  So my question is, what is the best
 approach with performance in
 mind?  What is the fasted way to get the image and
 dynamic HTML back to
 the browser ?
 
 
 Thank you for your help in advance.
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread John Turner
servelet = one request

image = one request

1 + 1 = 2 requests

John

Nguyen Anh Tuan wrote:

No, there is only one request that is sent from
browser to Apache. Apache will reroute the request to
Tomcat as needed.
So what you are using now is the best configuration.
--- [EMAIL PROTECTED] wrote:

I am working on a servlet that will be served from
tomcat which is
connected to apache.  Currently I have the servlet
being handled by
tomcat, and the image handled by apache.
Won't this require 2 get requests by the browser? 
One being the image,
and one being the servlet?
Unfortunately, this is an SSL protected site and
none of the pages are
cached.  So my question is, what is the best
approach with performance in
mind?  What is the fasted way to get the image and
dynamic HTML back to
the browser ?


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


RE: Classloaders (newbie)

2003-07-25 Thread Shapira, Yoav

Howdy,

Everytime i run this, i get a remoteinovationerror (i resume from the
EJBCLientClass)

RemoteInvocationError can occur due to many reasons.  You will need to
supply the full stack trace and relevant code.

Could this be a classloader issue?

It could, and it could be many other things.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: heap size

2003-07-25 Thread Shapira, Yoav

Howdy,

Is there a rule-of-thumb for setting the heap size based on how many
concurrent Tomcat processors/threads? Mine are mostly basic jsps and
servlets generating HTML. As I'll be running several Tomcat instances
for different apps, I need to allocate my 512M RAM to each Tomcat.

No, and there can't be, as this behavior is 99% application-specific.
If you can figure out the average heap space required by a user request
to your application, multiply that by the peak number of concurrent
requests you want to support...

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: log4j fighting with Commons-Logging in Tomcat 4.1

2003-07-25 Thread Shapira, Yoav

Howdy,
Don't put anything in common/lib or common/classes.  Put the log4j jar
in the WEB-INF/lib directory of your webapp.  Put the log4j
configuration file in the WEB-INF/classes directory of your webapp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mike McCown [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 7:17 PM
To: [EMAIL PROTECTED]
Subject: log4j fighting with Commons-Logging in Tomcat 4.1

Not sure if this is a Tomcat or Commons-logging question, but it seems
to be an issue of how Tomcat uses logging, so I'm asking here.

I just started using Tomcat 4.1 (moving from another server).  My apps
were all coded to use the Log4j logger (1.2.8). Here's my problem.

When starting up, Tomcat apparently uses commons-logging.jar (actually,
it first uses commons-logging-api.jar??).  It creates a default console
appender for my loggers in a format I hate (milliseconds-since-start
[Thread-x] LEVEL category - text).  Now, my log4j.properties file,
which I've put into the $CATALINA_HOME/common/classes directory, also
sets up a console appender (in a format I like).  Both of these
appenders now write to the console, so I get 2 lines for each logger
entry.

Question:  How the heck do I get rid of (or change the format of) the
default console appender that Tomcat creates??

(Sorry if this is obvious - I've searched the FAQs, RTFM'd, and moved
properties and jar files all over the place, but I *cannot* figure this
out!!)

Mike



The information in this email may be confidential and/or privileged.
This
email is intended to be reviewed by only the individual(s) or
organization(s) named above.  If you are not an intended recipient,
then
any review, dissemination or copying of this email, any attachments or
any
information contained herein is prohibited.  If you have received this
email in error, please immediately notify the sender by return email
and
delete this email from your system.   This email and any
attachments
are not intended to constitute an offer or acceptance and do not create
or
evidence a contract or any amendment to a contract between Security
Broadband and the intended recipient(s) or any other party.  This email
and any attachments may not be relied on by anyone as the basis of a
contract.  By sending this email, the sender does not consent to
conduct
(by electronic means) any transactions that may be the subject of this
email.  Any such consent must be separately and expressly obtained in
writing manually executed by an authorized representative of Security
Broadband.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: buiding 4.24

2003-07-25 Thread Eric J. Pinnell
Hi,

If you go to the top level of the tomcat-connectors tree and do a

find ./ | grep mod_jk

you don't see a mod_jk2.so somewhere?  That's really odd.

Time for science:  :)

cd /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/
./configure --with-apxs2=/path/to/apxs
make  (it has to be GNU make)
cd /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2

bash-2.04$ ls -l mod_jk2.so
-rwxr-x--x   1 users   2554976 Jul 25 09:30 mod_jk2.so

Hmm.  I just did that and it worked for me.  It's interesting that you
aren't generating the file.

-e

On Fri, 25 Jul 2003, Mark F wrote:

 Eric J. Pinnell wrote:
 || Hi,
 ||
 || For the JK2 connector you should use the 2.0.2 source.
 ||
 || Then compile with:
 ||
 || ./configure --with-apxs2=/path/to/apxs
 ||
 || then make
 ||
 || then mod_jk2.so should be in down in the build directory.
 ||
 || You need to manually copy the file to the apache modules directory.
 ||
 || The complete step by step is in the archives.  But that's the long
 || and short of it.
 ||
 || -e
 ||
 || On Thu, 24 Jul 2003, Simon Pabst wrote:
 ||
 ||| hmm weird, mod_jk2.so should be there after a successful make with
 ||| no errors, what connector source release did you download?
 |||
 ||| What was your jk2 configure?
 ||| If you used --with-apache2 instead of --with-apxs2 then mod_jk2
 ||| won't be built as .so but instead as static module into httpd core.
 |||
 ||| Maybe its somewhere else, try a find:
 ||| find /path/to/jk - name '*.so'
 |||
 ||| At 14:23 24.07.2003 -0400, you wrote:
 |||
  Ugh...I've seen this posted before but I don't use mod_jk2 so I
  didn't pay much attention to the answer.  It will be in the
  archives somewhere, or perhaps someone else has the answer.
 
  John
 
 
  Mark F wrote:
 
 | The compile completed with no problems but there is no 'make
 | install' it says to remember to execute
 | 'libtool --finish /usr/local/apache/modules' so I did but it
 | didn't do anything that I can see.  Also I can't find a
 | mod_jk2.so.  in the jk/build/jk2/apache2 directory there is
 | mod_jk2.o but no mod_jk2.so ? Thanks,
 | -Mark
 |

 Source is 2.0.2, Platform Solaris 8

 Still doing the same thing.  My configure is simply:
  ./configure --with-apxs2=/usr/local/apache/bin/apxs

 Everything but a .so file is created in the build directory.

 Thanks,
 -Mark



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



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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Nathan Ward
I don't mean to complain. I'm sure there are good reasons as you have
mentioned why I haven't gotten more replies. I was trying to emphasize that
I did appreciate the response in this case even though Ken didn't have much
new info to offer.

That said, I also asked what I thought were pretty simple questions about jk
(isapi_redirector) like: Can I control what Tomcat webapps two virtual hosts
(IIS web sites) can access? If not, how can I allow one IIS web site to
access one webapp and another IIS web site access another but not both? Am I
really the first one to have to do this or the first one that participates
here? I guess so.

That's OK though. It took me four days to figure out a solution, but I did
learn a lot. I created a new valve that allows me to allow/deny access by
server name (i.e. request.getServerName). Very similar to the
RemoteHostValve.

So, the answer that was basically that the ISAPI filter maps from IIS to
Tomcat -- no other control provided by the filter. If you need more access
control, use filters. I'm thinking that I'll submit my valve to be added to
the Tomcat baseline. I suppose that the lack of response to my questions
suggests that no one here knew that or at least no one that read my messages
knew that. Maybe my subject lines didn't catch the right person's eye. I'm
not bothered by it, but I am curious why I didn't get more replies.

   Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 8:39 AM
Subject: Re: Logfile for isapi_redirector2.dll?



 Not many people use IIS + Tomcat (comparatively speaking).  Of those,
 the folks using JK2 (redirector2) is probably smaller still.  Of those
 people, there's a good chance that they don't have an answer to your
 particular question.  Would you rather they replied anyway and sent you
 off on a wild goose chase, wasting your time?

 John

 Nathan Ward wrote:

  I appreciate the reply. I've joined this mailing list about a week ago
and
  posted several messages. I've not gotten many replies at all. I guess
people
  are busy and there are a lot of messages to sift through. Nonetheless, I
  start wondering if I have bad breath, don't know how spell or something
if
  noone even chimes in.
 
  I took a look at the souce code for the isapi_redirector2.dll. I can
follow
  it pretty good since I spent 10 years programming in C. I see logging
  methods (functions in C), but I didn't see where the log file was
created or
  where it was written to. I believe I see where the code specifies the
  registry enteries that it is looking for and there isn't any for log
file. I
  didn't see the logLevel registry setting specified either which I saw in
the
  jk2 Tomcat docs.
 
  I saw some statemens about writing event log statements which led me
to
  check the Windows Application Log. I did find some warning messages
written
  there by the isapi_redirector2.dll. However, I never did get jk2
working.
  I'll stick with isapi_redirector.dll for now.
 
 Nathan
 
  - Original Message -
  From: Januski, Ken [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, July 24, 2003 5:36 PM
  Subject: RE: Logfile for isapi_redirector2.dll?
 
 
 
 Since no one's responded I tried google. Eventually I found this page
with
 the following sample registry entry. I've yet to try it but if it works
 
  I'll
 
 be very happy. It's about the same as registry entries for
isapi_redirect
 and isapi_redirector. But all examples I've seen for
isapi_redirector2.dll
 have not included a log_file. So I assumed there was a good reason. I
 
  guess
 
 I'll soon find out.
 
 
 http://www.wbtsystems.com/news/newsletters/july2003
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
 Redirector\2.0] serverRoot=\\tomcat
 extensionUri=/jakarta/isapi_redirector2.dll
 log_file=\\tomcat\\logs\\iis_redirect.log logLevel=DEBUG
 workersFile=\\tomcat\\conf\\workers2.properties
 
 
 
 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 12:57 PM
 To: Tomcat Users List
 Subject: RE: Logfile for isapi_redirector2.dll?
 
 
 I've been meaning to ask this myself ever since I went to
 isapi_redirector2.dll. It sure would be nice to have a log.
 
 -Original Message-
 From: Nathan Ward [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 9:08 AM
 To: Tomcat Users List
 Subject: Logfile for isapi_redirector2.dll?
 
 
 Does isapi_redirector2.dll write a log file? If so, where does it put
the
 file? I don't see any registry settings in the documentation that
 
  specifies
 
 the log file location.
 
Nathan
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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

Mod_jk on Solaris - has anyone actually ever built it?

2003-07-25 Thread Max Jester

Help!

I am having trouble building mod_jk.so on Solaris 2.6 - and the binary
directory for 
2.6 at the jakarta site is empty.  Has anyone actually succeeded in
getting it built
from source?  The instructions don't seem to refer to the actual
directory layout.

Or, failing that, can anyone point me to an ftp site that has the built
module?

Thanks
Max 

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



RE: How many concurrent user on Tomcat and Apache(New Bie)

2003-07-25 Thread Sachin
Hi John,
But john i have to deploy my applciation for client now client is
ready for each hardware
And my appication performance is good.

Bu My Client is saying 10,000 concurrent user..

I have found in forum archive that people suffering  from problem of
concurrency
when concurrent user become new 1000

Well my applciation basically handling serveral temporary XML files and at
last update data into database.
XML file documents. created by application is nearly 2-3 kb
But i am not able to judge that what approach should i follow.
Well i am thinking that worker.properties file will manage load balancing
between several tomcat which work as a worker under Apache
So how will i judge that how many tomcat or there is no need for multiple

If ant suggesstion then please let me know??

tnanks
sachin

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 6:03 PM
To: Tomcat Users List
Subject: Re: How many concurrent user on Tomcat and Apache(New Bie)



You only need one workers.properties file.  All it does is tell
mod_jk.so where to find Tomcat.

Regarding how many concurrent users that is impossible to say.  It
depends on what your definition of good hardware is, as well as the
complexity and quality of the web applications you're hosting.  It
doesn't matter how much hardware you have or how many users you have, a
single poorly designed web application can bring even the most robust
server to a halt.

John

Sachin wrote:

 Can any body tell me that on a Apache web Server(tomcat as worker) hosting
 web site.
 How many concurrent user possible

 if Server has good hardware configuration.

 Do we need to maintains worker.properties file for many tomcat Instances
 under Apache..

 If any body help me or any suggesstion

 Thanks
 Sachin



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




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




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



Memory problems

2003-07-25 Thread Reynir Hübner
Hi, 
I have a server that I am trying to deploy 36 webapplications to. 
The server is running redhat linux, with 2.5 gig ram and 4 XEON CPUs. 

On start up it runs about 30 applications and at that time tomcat failes, with 
java.lang.OutOfMemoryException. 
The top function shows many (192) java processes taking about 500 mb of memory, but I 
have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the server is not out of memory. 
I don't know what is happening, as I have several servers running similar amount of 
webapps on windows, with out problems. 

Other things that run in this server are postgresql and apache (and really nothing 
else), so nothing is taking up the rest of the memory. 

We even tried to write a small java program that takes up memory in a loop, that 
worked fine, and could take up to 1500mb and then run out of memory. 

Am I looking at some kind of a limitation on tomcat (no more than specific amount of 
applications) or java (no more threads than some specific amount) ?

Please reply, 
-reynir

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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread John Turner
Sounds like a bug in isapi_redirector to me, or perhaps its a problem 
with the way IIS handles virtual hosts.  Or maybe I don't understand 
what you want to do.  In Apache, I setup one virtual host = one webapp.

hostA = appA
hostB = appB
With mod_jk (essentially isapi_redirector), appB is never available to 
hostA, and appA is never available to hostB.  A 404 results if I try:

http://www.hostA.com/appB

John

Nathan Ward wrote:

I don't mean to complain. I'm sure there are good reasons as you have
mentioned why I haven't gotten more replies. I was trying to emphasize that
I did appreciate the response in this case even though Ken didn't have much
new info to offer.
That said, I also asked what I thought were pretty simple questions about jk
(isapi_redirector) like: Can I control what Tomcat webapps two virtual hosts
(IIS web sites) can access? If not, how can I allow one IIS web site to
access one webapp and another IIS web site access another but not both? Am I
really the first one to have to do this or the first one that participates
here? I guess so.
That's OK though. It took me four days to figure out a solution, but I did
learn a lot. I created a new valve that allows me to allow/deny access by
server name (i.e. request.getServerName). Very similar to the
RemoteHostValve.
So, the answer that was basically that the ISAPI filter maps from IIS to
Tomcat -- no other control provided by the filter. If you need more access
control, use filters. I'm thinking that I'll submit my valve to be added to
the Tomcat baseline. I suppose that the lack of response to my questions
suggests that no one here knew that or at least no one that read my messages
knew that. Maybe my subject lines didn't catch the right person's eye. I'm
not bothered by it, but I am curious why I didn't get more replies.
   Nathan



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


Servlets in a protected resource

2003-07-25 Thread Jeff Cummings
Hi everyone,

I have been able to setup JSPs in a protrected resource. The login page is
displayed and everything works as expected. How do I setup a servlet in a
protected resource to get the same effect?

Jeff




Re: Mod_jk on Solaris - has anyone actually ever built it?

2003-07-25 Thread John Turner
I built it for Solaris 8.

Good luck building it for 6, it took me three days and 2 reinstalls of 
the OS to get it to build on 8.

John

Max Jester wrote:

Help!

I am having trouble building mod_jk.so on Solaris 2.6 - and the binary
directory for 
2.6 at the jakarta site is empty.  Has anyone actually succeeded in
getting it built
from source?  The instructions don't seem to refer to the actual
directory layout.

Or, failing that, can anyone point me to an ftp site that has the built
module?
Thanks
Max 

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


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


Re: Memory problems

2003-07-25 Thread John Turner
More likely you are hitting an OS limit, such as number of processes, 
number of open files, number of connections, etc.

I have 20 instances of Tomcat running on 4 GB of RAM, and about 800MB 
stays free.

John

Reynir Hübner wrote:

Hi, 
I have a server that I am trying to deploy 36 webapplications to. 
The server is running redhat linux, with 2.5 gig ram and 4 XEON CPUs. 

On start up it runs about 30 applications and at that time tomcat failes, with java.lang.OutOfMemoryException. 
The top function shows many (192) java processes taking about 500 mb of memory, but I have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the server is not out of memory. 
I don't know what is happening, as I have several servers running similar amount of webapps on windows, with out problems. 

Other things that run in this server are postgresql and apache (and really nothing else), so nothing is taking up the rest of the memory. 

We even tried to write a small java program that takes up memory in a loop, that worked fine, and could take up to 1500mb and then run out of memory. 

Am I looking at some kind of a limitation on tomcat (no more than specific amount of applications) or java (no more threads than some specific amount) ?

Please reply, 
-reynir

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


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


Re: How many concurrent user on Tomcat and Apache(New Bie)

2003-07-25 Thread John Turner
Suggestion: build a test environment and test.  You can't wing it.

John

Sachin wrote:

Hi John,
But john i have to deploy my applciation for client now client is
ready for each hardware
And my appication performance is good.
Bu My Client is saying 10,000 concurrent user..

I have found in forum archive that people suffering  from problem of
concurrency
when concurrent user become new 1000
Well my applciation basically handling serveral temporary XML files and at
last update data into database.
XML file documents. created by application is nearly 2-3 kb
But i am not able to judge that what approach should i follow.
Well i am thinking that worker.properties file will manage load balancing
between several tomcat which work as a worker under Apache
So how will i judge that how many tomcat or there is no need for multiple
If ant suggesstion then please let me know??

tnanks
sachin


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


Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service

2003-07-25 Thread Paul
the script given below worked for me, as a .bat file, where the environment
variables were substituted with literal directory paths, on a win2k
(professional) os (sp4), and jdk 1.4.2.
  note: the tomcat.exe file specified in the script below only gets copied
to the /bin directory of Tomcat if specify during install to install Tomcat
as a service.  I copied this file into /bin directory from first install,
then ran .bat file.

i am thankful for the help.
-paul


- Original Message - 
From: Koes, Derrick [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:26 PM
Subject: RE: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as
Win2k service



 You must rebuild the service with the new options.

 $CATALINA_HOME$\bin\tomcat.exe -install Apache Tomcat 4.1
 $JAVA_HOME$\jre\bin\client\jvm.dll -Xmx512m -Xms256m
 -Djava.class.path=$CATALINA_HOME$\bin\bootstrap.jar
 -Djava.endorsed.dirs=$CATALINA_HOME$\common\endorsed
 -Dcatalina.home=$CATALINA_HOME$ -start
 org.apache.catalina.startup.BootstrapService -params start -stop
 org.apache.catalina.startup.BootstrapService -params stop -err
 $CATALINA_HOME$\logs\stderr.log

 Replace $CATALINA_HOME$ and $JAVA_HOME$ with the appropriate values.
 Change -Xmx and -Xms as appropriate.
 We use instsrv with the REMOVE command to remove the old service before
 running the above, or rename the service.  This is easier than
re-installing
 tomcat.

 -Original Message-
 From: Paul [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 1:53 PM
 To: [EMAIL PROTECTED]
 Subject: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as
Win2k
 service

 after assigning the following environment variables the java runtime
 options as follows:

 eg: JAVA_OPTS=-Xmx128m -Xms128m

 tried with:
 CATALINA_OPTS
 JAVA_OPTS

 amount of RAM memory used stayed aprox the same.  Though i was expecting
 more memory to be used because of the extra memory that should have been
 allotted to java instance for Tomcat.  Consequently, i am assuming that
 options were not applied by simply setting these environment variables,
 at least when Tomcat is started as a service.

 Where and how are java runtime options to be specified with Tomcat 4.1
 (JDK 1.4.2) when it is started as a win2k service?

 [EMAIL PROTECTED]

 This electronic transmission is strictly confidential to Smith  Nephew
and
 intended solely for the addressee.  It may contain information which is
 covered by legal, professional or other privilege.  If you are not the
 intended addressee, or someone authorized by the intended addressee to
 receive transmissions on behalf of the addressee, you must not retain,
 disclose in any form, copy or take any action in reliance on this
 transmission.  If you have received this transmission in error, please
 notify the sender as soon as possible and destroy this message.

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





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



RE: Memory problems

2003-07-25 Thread Shapira, Yoav

Howdy,
Check the OS limits for the user account that's running tomcat (e.g. ulimit -a).  Max 
out whatever you can.

Are you trying for one instance with 36 webapps or 36 instances of tomcat?  (It 
doesn't really matter, both should work, I'm just curious)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 9:36 AM
To: Tomcat Users List
Subject: Memory problems

Hi,
I have a server that I am trying to deploy 36 webapplications to.
The server is running redhat linux, with 2.5 gig ram and 4 XEON CPUs.

On start up it runs about 30 applications and at that time tomcat failes,
with java.lang.OutOfMemoryException.
The top function shows many (192) java processes taking about 500 mb of
memory, but I have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the
server is not out of memory.
I don't know what is happening, as I have several servers running similar
amount of webapps on windows, with out problems.

Other things that run in this server are postgresql and apache (and really
nothing else), so nothing is taking up the rest of the memory.

We even tried to write a small java program that takes up memory in a loop,
that worked fine, and could take up to 1500mb and then run out of memory.

Am I looking at some kind of a limitation on tomcat (no more than specific
amount of applications) or java (no more threads than some specific amount)
?

Please reply,
-reynir

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Memory problems

2003-07-25 Thread Reynir Hübner
Hi John, 
Thanx for replying.

Yes I was looking for such a limit somewhere, but I could not find it. 
I thought max number of processes in linux redhat (7.2) was 1024, (I am only taking up 
about 250 processes in all). 

You say you have 20 instances of tomcat, I have 36 hosts in one tomcat, so that's 
pretty different setup. Should I try setting up and run separate tomcat instances ? 

I used the rpm setup, and I have tomcat config files in one directory and startup 
scripts in another... Does anyone know of good directions (websites) on how to do this 
on linux (I would know how to do it in windows). 

Thanx
-reynir





 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: 25. júlí 2003 13:47
 To: Tomcat Users List
 Subject: Re: Memory problems
 
 
 
 More likely you are hitting an OS limit, such as number of processes, 
 number of open files, number of connections, etc.
 
 I have 20 instances of Tomcat running on 4 GB of RAM, and about 800MB 
 stays free.
 
 John
 
 Reynir Hübner wrote:
 
  Hi,
  I have a server that I am trying to deploy 36 webapplications to. 
  The server is running redhat linux, with 2.5 gig ram and 4 
 XEON CPUs. 
  
  On start up it runs about 30 applications and at that time tomcat 
  failes, with java.lang.OutOfMemoryException.
  The top function shows many (192) java processes taking 
 about 500 mb of memory, but I have -Xmx1500m and -Xms1g in 
 JAVA_OPTS, so obviously the server is not out of memory. 
  I don't know what is happening, as I have several servers 
 running similar amount of webapps on windows, with out problems. 
  
  Other things that run in this server are postgresql and apache (and 
  really nothing else), so nothing is taking up the rest of 
 the memory.
  
  We even tried to write a small java program that takes up 
 memory in a 
  loop, that worked fine, and could take up to 1500mb and 
 then run out of memory.
  
  Am I looking at some kind of a limitation on tomcat (no more than 
  specific amount of applications) or java (no more threads than some 
  specific amount) ?
  
  Please reply,
  -reynir
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Mod_jk on Solaris - has anyone actually ever built it?

2003-07-25 Thread Eric J. Pinnell
You might want to try JK2.  I am able to build mod_jk2.so on Solaris 7 and
2.6 and 7 are pretty close to each other.

You might want to give it a whirl.

-e

On Fri, 25 Jul 2003, John Turner wrote:


 I built it for Solaris 8.

 Good luck building it for 6, it took me three days and 2 reinstalls of
 the OS to get it to build on 8.

 John

 Max Jester wrote:

  Help!
 
  I am having trouble building mod_jk.so on Solaris 2.6 - and the binary
  directory for
  2.6 at the jakarta site is empty.  Has anyone actually succeeded in
  getting it built
  from source?  The instructions don't seem to refer to the actual
  directory layout.
 
  Or, failing that, can anyone point me to an ftp site that has the built
  module?
 
  Thanks
  Max
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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



Re: Memory problems

2003-07-25 Thread John Turner
Our setups are different, my point was that my setup is capable of 
addressing more RAM than you have (fewer Tomcat but more RAM), which 
leads me to believe your problems are OS limit related.

I wouldn't setup separate Tomcat instances unless you determined there 
was a need for it.

For my Tomcat user, here are the limits:

sh-2.05$ ulimit -a
core file size (blocks) 0
data seg size (kbytes)  unlimited
file size (blocks)  unlimited
max locked memory (kbytes)  unlimited
max memory size (kbytes)unlimited
open files  1024
pipe size (512 bytes)   8
stack size (kbytes) 8192
cpu time (seconds)  unlimited
max user processes  16384
virtual memory (kbytes) unlimited
That's RH 7.2, dual processor, 4 GB RAM.

John

Reynir Hübner wrote:

Hi John, 
Thanx for replying.

Yes I was looking for such a limit somewhere, but I could not find it. 
I thought max number of processes in linux redhat (7.2) was 1024, (I am only taking up about 250 processes in all). 

You say you have 20 instances of tomcat, I have 36 hosts in one tomcat, so that's pretty different setup. Should I try setting up and run separate tomcat instances ? 

I used the rpm setup, and I have tomcat config files in one directory and startup scripts in another... Does anyone know of good directions (websites) on how to do this on linux (I would know how to do it in windows). 

Thanx
-reynir





-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: 25. júlí 2003 13:47
To: Tomcat Users List
Subject: Re: Memory problems



More likely you are hitting an OS limit, such as number of processes, 
number of open files, number of connections, etc.

I have 20 instances of Tomcat running on 4 GB of RAM, and about 800MB 
stays free.

John

Reynir Hübner wrote:


Hi,
I have a server that I am trying to deploy 36 webapplications to. 
The server is running redhat linux, with 2.5 gig ram and 4 
XEON CPUs. 

On start up it runs about 30 applications and at that time tomcat 
failes, with java.lang.OutOfMemoryException.
The top function shows many (192) java processes taking 
about 500 mb of memory, but I have -Xmx1500m and -Xms1g in 
JAVA_OPTS, so obviously the server is not out of memory. 

I don't know what is happening, as I have several servers 
running similar amount of webapps on windows, with out problems. 

Other things that run in this server are postgresql and apache (and 
really nothing else), so nothing is taking up the rest of 
the memory.

We even tried to write a small java program that takes up 
memory in a 

loop, that worked fine, and could take up to 1500mb and 
then run out of memory.

Am I looking at some kind of a limitation on tomcat (no more than 
specific amount of applications) or java (no more threads than some 
specific amount) ?

Please reply,
-reynir

-

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


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



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


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


RE: Servlets in a protected resource

2003-07-25 Thread Jeff Cummings
Thanks Tim. I got it working.

Jeff


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 6:39 AM
To: Tomcat Users List
Subject: Re: Servlets in a protected resource

Security contraints are always made on the incoming URI. Therefore, whatever
you map your servlets paths to you'll need to create the appropriate
constraints.


-Tim

Jeff Cummings wrote:
 Hi everyone,

 I have been able to setup JSPs in a protrected resource. The login page is
 displayed. How do I setup a servlet in a protected resource to get the
same
 effect?

 Jeff





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


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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Nathan Ward
I believe that is the same thing I'm trying to do (did) with IIS and Tomcat.
I don't believe it is a bug. It is just the way the isapi_redirector.dll is
written. Windows registry settings specifies where _the_ workers.properties
file is located as well as where the uriworkermap.properties is located.
Each IIS website is configured in IIS's Management Application to use the
ISAPI filter (isapi_redirector.dll) and a virtual directory is defined in
IIS as well under each web site to the directory where the
isapi_redirector.dll file is located. Since the mapping to webapps is
controlled by the uriworkermap.properties file and only one can be specified
in the registry settings, there is no way in IIS or via the ISAPI filter to
control the access.

This must not be a common thing at all as you said because I also checked
three books on Tomcat. Professional Apache Tomcat was the closest to cover
this at all but none of them specifically addressed this configuration.
However, my customer wants to have one computer running IIS to be accessible
to the Internet. So, that is what I have make it work with this
configuration.

   Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 9:42 AM
Subject: Re: Logfile for isapi_redirector2.dll?



 Sounds like a bug in isapi_redirector to me, or perhaps its a problem
 with the way IIS handles virtual hosts.  Or maybe I don't understand
 what you want to do.  In Apache, I setup one virtual host = one webapp.

 hostA = appA
 hostB = appB

 With mod_jk (essentially isapi_redirector), appB is never available to
 hostA, and appA is never available to hostB.  A 404 results if I try:

 http://www.hostA.com/appB

 John

 Nathan Ward wrote:

  I don't mean to complain. I'm sure there are good reasons as you have
  mentioned why I haven't gotten more replies. I was trying to emphasize
that
  I did appreciate the response in this case even though Ken didn't have
much
  new info to offer.
 
  That said, I also asked what I thought were pretty simple questions
about jk
  (isapi_redirector) like: Can I control what Tomcat webapps two virtual
hosts
  (IIS web sites) can access? If not, how can I allow one IIS web site to
  access one webapp and another IIS web site access another but not both?
Am I
  really the first one to have to do this or the first one that
participates
  here? I guess so.
 
  That's OK though. It took me four days to figure out a solution, but I
did
  learn a lot. I created a new valve that allows me to allow/deny access
by
  server name (i.e. request.getServerName). Very similar to the
  RemoteHostValve.
 
  So, the answer that was basically that the ISAPI filter maps from IIS to
  Tomcat -- no other control provided by the filter. If you need more
access
  control, use filters. I'm thinking that I'll submit my valve to be added
to
  the Tomcat baseline. I suppose that the lack of response to my questions
  suggests that no one here knew that or at least no one that read my
messages
  knew that. Maybe my subject lines didn't catch the right person's eye.
I'm
  not bothered by it, but I am curious why I didn't get more replies.
 
 Nathan
 



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




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



iPlanet and Tomcat integration on solaris

2003-07-25 Thread Peter Cline
I am trying to integrate iPlanet 4.1 and Tomcat 4.1.24 on a Solaris 8.  I 
have had some level of success but have encountered some very frustrating 
problems.

I have searched extensively for documentattion that might help me but have 
come up empty handed.

My biggest problems rghts now are
a) The remoteUser is not being passed from iPlanet to Tomcat.  My JSPS are 
reading the remoteUser using the request.getRemoteUser() method.  I am 
using the RequestDumperValve to see what is being passed to Tomcat.  The 
remoteUser value is invariably set to null.  I looked at the source code 
for the version of nsapi_connector.so that I built from 
jakarta-tomcat-connectors-4.1.24.src.  It looks to be assigning to 
remoteUser the value of auth-user in the request-vars pblock.  this value 
is definitely set in that pblock.  Not sure why it doesn't get set in the 
request sent to Tomcat
b) On many requests for jsps, tomcat returns a jasper exception which says 
oracle/jdbc/pool/OracleDataSource  I am assuming it is not finding this 
class.  I have this class in an archive in the applications WEB_INF/lib 
directory.  This archive is a .zip file.  Does anyone know if the classpath 
that Tomcat dynamically builds for applications looks for .zip 
files?  Perhaps it is only looking for .jar archives?

Thanks in advance for any help you can provide.

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


Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread John Turner
uriworkermap.properties doesn't take a hostname?

John

Nathan Ward wrote:

I believe that is the same thing I'm trying to do (did) with IIS and Tomcat.
I don't believe it is a bug. It is just the way the isapi_redirector.dll is
written. Windows registry settings specifies where _the_ workers.properties
file is located as well as where the uriworkermap.properties is located.
Each IIS website is configured in IIS's Management Application to use the
ISAPI filter (isapi_redirector.dll) and a virtual directory is defined in
IIS as well under each web site to the directory where the
isapi_redirector.dll file is located. Since the mapping to webapps is
controlled by the uriworkermap.properties file and only one can be specified
in the registry settings, there is no way in IIS or via the ISAPI filter to
control the access.
This must not be a common thing at all as you said because I also checked
three books on Tomcat. Professional Apache Tomcat was the closest to cover
this at all but none of them specifically addressed this configuration.
However, my customer wants to have one computer running IIS to be accessible
to the Internet. So, that is what I have make it work with this
configuration.
   Nathan



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


Re: performance of serving static data? apache or tomcat

2003-07-25 Thread Nguyen Anh Tuan
Hi, John,
Lets say you have one static HTML page with one image
in it. You can serve it with Apache stand alone (or
any stand alone Web server). So howmany requests are
there ?

Do you count : 
HTML : 1 request
Image : 1 request 
1+1=2 requests 

The answer is : You just request for a page, and
whatever in it will be sent back along with the page.
Please look into the RFC document of HTTP and HTTPS
protocol to see how a request is handled.

With a combination of Apache/Tomcat: The fact is : 
Every HTTP/HTTPS request is sent to Apache Webserver.
If there is a request to JSP/Servlet, it will be
rerouted from Apache to Tomcat (this is done on the
server, nothing concerned to browser), then when the
HTML page is created from JSP/Servlet in Tomcat, it is
sent back to Apache, then Apache sends the HTML page
back to the browser.

So the user sees only a scenario like this:
Request sent to Apache.
Whatever request it is, receive back a HTML page.

Thus, the amount of requests for one JSP/Servlet with
image sent to Apache/Tomcat = Exactly the amount of
requests for one static HTML page with images sent to
a stand alone Apache (or whatever stand alone
Webserver).

Of course, time will be needed to send requests from
Apache to Tomcat and for Tomcat to generate HTML from
JSP/Servlet and send it back to Apache. However, this
is done on the server and has nothing to do with
browser.

It depends on how you organize the site. 
If the site contains mix data (many static HTML pages
and JSP/Servlet), you should use a combination
Apache/Tomcat, because Apache handles static HTML
pages must faster than Tomcat does.

However, if you have only JSP/Servlet, Tomcat stand
alone is fine, because you have no use of Apache,
except rerouting JSP/Servlet to Tomcat. It is a waste
of time, because you can send JSP/Servlet requests
directly to Tomcat if you use Tomcat stand alone.



--- John Turner [EMAIL PROTECTED] wrote:
 
 servelet = one request
 
 image = one request
 
 1 + 1 = 2 requests
 
 John
 
 Nguyen Anh Tuan wrote:
 
  No, there is only one request that is sent from
  browser to Apache. Apache will reroute the request
 to
  Tomcat as needed.
  So what you are using now is the best
 configuration.
  
  --- [EMAIL PROTECTED] wrote:
  
 I am working on a servlet that will be served from
 tomcat which is
 connected to apache.  Currently I have the servlet
 being handled by
 tomcat, and the image handled by apache.
 Won't this require 2 get requests by the browser? 
 One being the image,
 and one being the servlet?
 Unfortunately, this is an SSL protected site and
 none of the pages are
 cached.  So my question is, what is the best
 approach with performance in
 mind?  What is the fasted way to get the image and
 dynamic HTML back to
 the browser ?
 
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: iPlanet and Tomcat integration on solaris

2003-07-25 Thread Mike Curwen
That's a classic problem.  Renaming the classes12.zip to classes12.jar
is your first step in debugging database connection problems. 

 -Original Message-
 From: Peter Cline [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 25, 2003 9:44 AM
 To: [EMAIL PROTECTED]
 Subject: iPlanet and Tomcat integration on solaris

snip

 b) On many requests for jsps, tomcat returns a jasper 
 exception which says 
 oracle/jdbc/pool/OracleDataSource  I am assuming it is not 
 finding this 
 class.  I have this class in an archive in the applications 
 WEB_INF/lib 
 directory.  This archive is a .zip file.  Does anyone know if 
 the classpath 
 that Tomcat dynamically builds for applications looks for .zip 
 files?  Perhaps it is only looking for .jar archives?
 
 Thanks in advance for any help you can provide.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: performance of serving static data? apache or tomcat

2003-07-25 Thread Shapira, Yoav

Howdy,

Lets say you have one static HTML page with one image
in it. You can serve it with Apache stand alone (or
any stand alone Web server). So howmany requests are
there ?

Do you count :
HTML : 1 request
Image : 1 request
1+1=2 requests

The answer is : You just request for a page, and
whatever in it will be sent back along with the page.
Please look into the RFC document of HTTP and HTTPS
protocol to see how a request is handled.

Umm, no.  It's easy to test that the above is false using the telnet
client approach illustrated earlier in this thread.  One static HTML
page with N images will result in 1 + N HTTP requests from the browser,
as Senor Turner said.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread John Turner
Thanks for the hint, I've read the spec many times.

I'm not clear what you are saying.  Its two requests, whether its Apache 
+ Tomcat, Apache alone, or Tomcat alone.  Check your access logs...you 
don't see one log entry for a HTML page with one image, you see two:  a 
200 for the HTML page, and a 200 for the image.  Whether that HTML page 
is a static page, or the output from JSP, ASP, servlet, perl script, or 
anything else.

Your statement was No, there is only one request that is sent from 
browser to Apache. Apache will reroute the request to Tomcat as needed.

This is false, unless you are speaking only to the request for the JSP. 
 Apache will receive one request for the JSP/servlet, which will be 
routed to Tomcat.  If the HTML output of the JSP/servlet includes an IMG 
tag, then Apache will receive a second request for the image.  1 + 1 = 2.

John

Nguyen Anh Tuan wrote:

Hi, John,
Lets say you have one static HTML page with one image
in it. You can serve it with Apache stand alone (or
any stand alone Web server). So howmany requests are
there ?
Do you count : 
HTML : 1 request
Image : 1 request 
1+1=2 requests 

The answer is : You just request for a page, and
whatever in it will be sent back along with the page.
Please look into the RFC document of HTTP and HTTPS
protocol to see how a request is handled.
With a combination of Apache/Tomcat: The fact is : 
Every HTTP/HTTPS request is sent to Apache Webserver.
If there is a request to JSP/Servlet, it will be
rerouted from Apache to Tomcat (this is done on the
server, nothing concerned to browser), then when the
HTML page is created from JSP/Servlet in Tomcat, it is
sent back to Apache, then Apache sends the HTML page
back to the browser.

So the user sees only a scenario like this:
Request sent to Apache.
Whatever request it is, receive back a HTML page.
Thus, the amount of requests for one JSP/Servlet with
image sent to Apache/Tomcat = Exactly the amount of
requests for one static HTML page with images sent to
a stand alone Apache (or whatever stand alone
Webserver).
Of course, time will be needed to send requests from
Apache to Tomcat and for Tomcat to generate HTML from
JSP/Servlet and send it back to Apache. However, this
is done on the server and has nothing to do with
browser.
It depends on how you organize the site. 
If the site contains mix data (many static HTML pages
and JSP/Servlet), you should use a combination
Apache/Tomcat, because Apache handles static HTML
pages must faster than Tomcat does.

However, if you have only JSP/Servlet, Tomcat stand
alone is fine, because you have no use of Apache,
except rerouting JSP/Servlet to Tomcat. It is a waste
of time, because you can send JSP/Servlet requests
directly to Tomcat if you use Tomcat stand alone.


--- John Turner [EMAIL PROTECTED] wrote:

servelet = one request

image = one request

1 + 1 = 2 requests

John

Nguyen Anh Tuan wrote:


No, there is only one request that is sent from
browser to Apache. Apache will reroute the request
to

Tomcat as needed.
So what you are using now is the best
configuration.

--- [EMAIL PROTECTED] wrote:


I am working on a servlet that will be served from
tomcat which is
connected to apache.  Currently I have the servlet
being handled by
tomcat, and the image handled by apache.
Won't this require 2 get requests by the browser? 
One being the image,
and one being the servlet?
Unfortunately, this is an SSL protected site and
none of the pages are
cached.  So my question is, what is the best
approach with performance in
mind?  What is the fasted way to get the image and
dynamic HTML back to
the browser ?




-

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Easy question on Tomcat 4.0 and SSL+HTTPS via localhost:8843. Loc k-Icon disappear from the Browser.

2003-07-25 Thread Jay Garala
Check the 'next page' link if its http or https

-Original Message-
From: Zaragoza, Carles [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 6:38 AM
To: Tomcat Users List ([EMAIL PROTECTED])
Subject: Easy question on Tomcat 4.0 and SSL+HTTPS via localhost:8843.
Loc k-Icon disappear from the Browser. 


I have installed the SSL support for Tomcat 4.0.4 and almost everything
works. 

 

I followed all the guidelines from
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html 

 

 

But for instance when I type https://localhost:8443/
https://localhost:8443/  into my browser it works, my Internet Ms-Explorer
6.0 shows me the

Certificate form in order to accepted it, on the right-bottom area an
lock-icon appears telling me that this transaction

In under Secure guide but on the next page, the lock icon disappears.

 

 

Could somebody help me out?

 

Have a nice weekend,

Carles Zaragoza.

 



-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


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



Re: iPlanet and Tomcat integration on solaris

2003-07-25 Thread Eric J. Pinnell
 a) The remoteUser is not being passed from iPlanet to Tomcat.  My JSPS are
 reading the remoteUser using the request.getRemoteUser() method.  I am
 using the RequestDumperValve to see what is being passed to Tomcat.  The
 remoteUser value is invariably set to null.  I looked at the source code
 for the version of nsapi_connector.so that I built from
 jakarta-tomcat-connectors-4.1.24.src.  It looks to be assigning to
 remoteUser the value of auth-user in the request-vars pblock.  this value
 is definitely set in that pblock.  Not sure why it doesn't get set in the
 request sent to Tomcat


If it's any consolation we have that problem too.  We are trying to
concoct a solution now.

-e

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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread Nguyen Anh Tuan
Hi, John,
Thank you for the discussion.

However, the amount of requests for JSP/Servlet with
one image sent from a browser to Apache/Tomcat will
equal exactly the amount of requests for one static
HTML with one image sent from a browser to a stand
alone Web server, is that right ?

In either cases, are there 2 requests sent from the
browser to the server (no matter which server) ?


--- John Turner [EMAIL PROTECTED] wrote:
 
 Thanks for the hint, I've read the spec many times.
 
 I'm not clear what you are saying.  Its two
 requests, whether its Apache 
 + Tomcat, Apache alone, or Tomcat alone.  Check your
 access logs...you 
 don't see one log entry for a HTML page with one
 image, you see two:  a 
 200 for the HTML page, and a 200 for the image. 
 Whether that HTML page 
 is a static page, or the output from JSP, ASP,
 servlet, perl script, or 
 anything else.
 
 Your statement was No, there is only one request
 that is sent from 
 browser to Apache. Apache will reroute the request
 to Tomcat as needed.
 
 This is false, unless you are speaking only to the
 request for the JSP. 
   Apache will receive one request for the
 JSP/servlet, which will be 
 routed to Tomcat.  If the HTML output of the
 JSP/servlet includes an IMG 
 tag, then Apache will receive a second request for
 the image.  1 + 1 = 2.
 
 John
 
 Nguyen Anh Tuan wrote:
 
  Hi, John,
  Lets say you have one static HTML page with one
 image
  in it. You can serve it with Apache stand alone
 (or
  any stand alone Web server). So howmany requests
 are
  there ?
  
  Do you count : 
  HTML : 1 request
  Image : 1 request 
  1+1=2 requests 
  
  The answer is : You just request for a page, and
  whatever in it will be sent back along with the
 page.
  Please look into the RFC document of HTTP and
 HTTPS
  protocol to see how a request is handled.
  
  With a combination of Apache/Tomcat: The fact is :
 
  Every HTTP/HTTPS request is sent to Apache
 Webserver.
  If there is a request to JSP/Servlet, it will be
  rerouted from Apache to Tomcat (this is done on
 the
  server, nothing concerned to browser), then when
 the
  HTML page is created from JSP/Servlet in Tomcat,
 it is
  sent back to Apache, then Apache sends the HTML
 page
  back to the browser.
  
  So the user sees only a scenario like this:
  Request sent to Apache.
  Whatever request it is, receive back a HTML page.
  
  Thus, the amount of requests for one JSP/Servlet
 with
  image sent to Apache/Tomcat = Exactly the amount
 of
  requests for one static HTML page with images sent
 to
  a stand alone Apache (or whatever stand alone
  Webserver).
  
  Of course, time will be needed to send requests
 from
  Apache to Tomcat and for Tomcat to generate HTML
 from
  JSP/Servlet and send it back to Apache. However,
 this
  is done on the server and has nothing to do with
  browser.
  
  It depends on how you organize the site. 
  If the site contains mix data (many static HTML
 pages
  and JSP/Servlet), you should use a combination
  Apache/Tomcat, because Apache handles static HTML
  pages must faster than Tomcat does.
  
  However, if you have only JSP/Servlet, Tomcat
 stand
  alone is fine, because you have no use of Apache,
  except rerouting JSP/Servlet to Tomcat. It is a
 waste
  of time, because you can send JSP/Servlet requests
  directly to Tomcat if you use Tomcat stand alone.
  
  
  
  --- John Turner [EMAIL PROTECTED]
 wrote:
  
 servelet = one request
 
 image = one request
 
 1 + 1 = 2 requests
 
 John
 
 Nguyen Anh Tuan wrote:
 
 
 No, there is only one request that is sent from
 browser to Apache. Apache will reroute the
 request
 
 to
 
 Tomcat as needed.
 So what you are using now is the best
 
 configuration.
 
 --- [EMAIL PROTECTED] wrote:
 
 
 I am working on a servlet that will be served
 from
 tomcat which is
 connected to apache.  Currently I have the
 servlet
 being handled by
 tomcat, and the image handled by apache.
 Won't this require 2 get requests by the
 browser? 
 One being the image,
 and one being the servlet?
 Unfortunately, this is an SSL protected site and
 none of the pages are
 cached.  So my question is, what is the best
 approach with performance in
 mind?  What is the fasted way to get the image
 and
 dynamic HTML back to
 the browser ?
 
 
 
 
 

-
  
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
  
  
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
  http://sitebuilder.yahoo.com
  
 

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

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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread John Turner
Yes, that is exactly what I have been saying.

John

Nguyen Anh Tuan wrote:

Hi, John,
Thank you for the discussion.
However, the amount of requests for JSP/Servlet with
one image sent from a browser to Apache/Tomcat will
equal exactly the amount of requests for one static
HTML with one image sent from a browser to a stand
alone Web server, is that right ?
In either cases, are there 2 requests sent from the
browser to the server (no matter which server) ?
--- John Turner [EMAIL PROTECTED] wrote:

Thanks for the hint, I've read the spec many times.

I'm not clear what you are saying.  Its two
requests, whether its Apache 
+ Tomcat, Apache alone, or Tomcat alone.  Check your
access logs...you 
don't see one log entry for a HTML page with one
image, you see two:  a 
200 for the HTML page, and a 200 for the image. 
Whether that HTML page 
is a static page, or the output from JSP, ASP,
servlet, perl script, or 
anything else.

Your statement was No, there is only one request
that is sent from 
browser to Apache. Apache will reroute the request
to Tomcat as needed.

This is false, unless you are speaking only to the
request for the JSP. 
 Apache will receive one request for the
JSP/servlet, which will be 
routed to Tomcat.  If the HTML output of the
JSP/servlet includes an IMG 
tag, then Apache will receive a second request for
the image.  1 + 1 = 2.

John



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


Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Nathan Ward
Sure, but that specifies the machine where Tomcat is running. I could
specify different hosts for different workers if I want multiple instances
of Tomcat running on different machines. I have one instance of Tomcat on
one machine and one instance of IIS on another. However, two virtual
hosts/web sites under IIS each of which need access to one and only one
webapp on the single Tomcat instance.

   Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:47 AM
Subject: Re: Logfile for isapi_redirector2.dll?



 uriworkermap.properties doesn't take a hostname?

 John

 Nathan Ward wrote:

  I believe that is the same thing I'm trying to do (did) with IIS and
Tomcat.
  I don't believe it is a bug. It is just the way the isapi_redirector.dll
is
  written. Windows registry settings specifies where _the_
workers.properties
  file is located as well as where the uriworkermap.properties is located.
  Each IIS website is configured in IIS's Management Application to use
the
  ISAPI filter (isapi_redirector.dll) and a virtual directory is defined
in
  IIS as well under each web site to the directory where the
  isapi_redirector.dll file is located. Since the mapping to webapps is
  controlled by the uriworkermap.properties file and only one can be
specified
  in the registry settings, there is no way in IIS or via the ISAPI filter
to
  control the access.
 
  This must not be a common thing at all as you said because I also
checked
  three books on Tomcat. Professional Apache Tomcat was the closest to
cover
  this at all but none of them specifically addressed this configuration.
  However, my customer wants to have one computer running IIS to be
accessible
  to the Internet. So, that is what I have make it work with this
  configuration.
 
 Nathan
 



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




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



RE: performance of serving static data? apache or tomcat

2003-07-25 Thread Mike Curwen
Ok there's just one tiny clarification I might offer, in case this is
the problem. Because I think *both* of you are saying the same thing,
but maybe not (if this is indeed the difficulty).
 
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 25, 2003 10:20 AM
 To: Tomcat Users List
 Subject: Re: performance of serving static data? apache or tomcat
 
 
 
 Yes, that is exactly what I have been saying.
 
 John
 
 Nguyen Anh Tuan wrote:
 
  Hi, John,
  Thank you for the discussion.
  
  However, the amount of requests for JSP/Servlet with
  one image sent from a browser to Apache/Tomcat will
  equal exactly the amount of requests for one static
  HTML with one image sent from a browser to a stand
  alone Web server, is that right ?


That depends on what you mean by Apache/Tomcat

* Case 1
Static HTML which contains 1 Image
Apache web server will receive two requests.
ONE initial request for the page
ONE subsequent request for the image
 
* Case 2
JSP which contains 1 Image
Apache web server will receive two requests.
ONE initial request for a JSP page which is forwarded to Apache Tomcat.
ONE subsequent request for the image, received by Apache Web Server
(Apache Tomcat does not receive this request)
 
So for Case 2, Apache *Tomcat* receives ONE request (for the JSP)
Base as with Case 1, Apache *Web Server* receives two.






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



OnSessionEnd for Tomcat ?

2003-07-25 Thread Robert Priest
Hello All,

I am looking for  a way to detect when a session ends in tomcat and do a few
things such as temp dir clean up, and so on.

Can anyone point me to the proper documentation or provide info on this?

thanks in advance...


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



RE: OnSessionEnd for Tomcat ?

2003-07-25 Thread Bodycombe, Andrew
Look at the HttpSessionListener interface.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/

Create the sessionDestroyed() implementation and add a listener element to
web.xml: 
http://java.sun.com/dtd/web-app_2_3.dtd


-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 16:50
To: '[EMAIL PROTECTED]'
Subject: OnSessionEnd for Tomcat ?


Hello All,

I am looking for  a way to detect when a session ends in tomcat and do a few
things such as temp dir clean up, and so on.

Can anyone point me to the proper documentation or provide info on this?

thanks in advance...


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

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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread John Turner
I guess I misunderstood what uriworkermap.properties was doingI was 
under the impression that was where you mapped URIs to specific workers.

In JK2 (mod_jk2.so), it might look something like:

[uri:www.hostA.com/appA/*.jsp]

There's no counterpart to that in an IIS + Tomcat configuration?  I find 
that surprising.

John

Nathan Ward wrote:

Sure, but that specifies the machine where Tomcat is running. I could
specify different hosts for different workers if I want multiple instances
of Tomcat running on different machines. I have one instance of Tomcat on
one machine and one instance of IIS on another. However, two virtual
hosts/web sites under IIS each of which need access to one and only one
webapp on the single Tomcat instance.
   Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:47 AM
Subject: Re: Logfile for isapi_redirector2.dll?


uriworkermap.properties doesn't take a hostname?

John

Nathan Ward wrote:


I believe that is the same thing I'm trying to do (did) with IIS and
Tomcat.

I don't believe it is a bug. It is just the way the isapi_redirector.dll
is

written. Windows registry settings specifies where _the_
workers.properties

file is located as well as where the uriworkermap.properties is located.
Each IIS website is configured in IIS's Management Application to use
the

ISAPI filter (isapi_redirector.dll) and a virtual directory is defined
in

IIS as well under each web site to the directory where the
isapi_redirector.dll file is located. Since the mapping to webapps is
controlled by the uriworkermap.properties file and only one can be
specified

in the registry settings, there is no way in IIS or via the ISAPI filter
to

control the access.

This must not be a common thing at all as you said because I also
checked

three books on Tomcat. Professional Apache Tomcat was the closest to
cover

this at all but none of them specifically addressed this configuration.
However, my customer wants to have one computer running IIS to be
accessible

to the Internet. So, that is what I have make it work with this
configuration.
  Nathan



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



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


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


RE: OnSessionEnd for Tomcat ?

2003-07-25 Thread Robert Priest
Thanks. I will take a look...

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:52 AM
To: 'Tomcat Users List'
Subject: RE: OnSessionEnd for Tomcat ?


Look at the HttpSessionListener interface.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/

Create the sessionDestroyed() implementation and add a listener element to
web.xml: 
http://java.sun.com/dtd/web-app_2_3.dtd


-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 16:50
To: '[EMAIL PROTECTED]'
Subject: OnSessionEnd for Tomcat ?


Hello All,

I am looking for  a way to detect when a session ends in tomcat and do a few
things such as temp dir clean up, and so on.

Can anyone point me to the proper documentation or provide info on this?

thanks in advance...


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

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

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



Re: performance of serving static data? apache or tomcat

2003-07-25 Thread John Turner
I wasn't making that distinction, but I can see how that might have 
caused some difficulty.  It's two total requests, regardless of what 
does the handling.

John

Mike Curwen wrote:

Ok there's just one tiny clarification I might offer, in case this is
the problem. Because I think *both* of you are saying the same thing,
but maybe not (if this is indeed the difficulty).
 

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 10:20 AM
To: Tomcat Users List
Subject: Re: performance of serving static data? apache or tomcat



Yes, that is exactly what I have been saying.

John

Nguyen Anh Tuan wrote:


Hi, John,
Thank you for the discussion.
However, the amount of requests for JSP/Servlet with
one image sent from a browser to Apache/Tomcat will
equal exactly the amount of requests for one static
HTML with one image sent from a browser to a stand
alone Web server, is that right ?


That depends on what you mean by Apache/Tomcat

* Case 1
Static HTML which contains 1 Image
Apache web server will receive two requests.
ONE initial request for the page
ONE subsequent request for the image
 
* Case 2
JSP which contains 1 Image
Apache web server will receive two requests.
ONE initial request for a JSP page which is forwarded to Apache Tomcat.
ONE subsequent request for the image, received by Apache Web Server
(Apache Tomcat does not receive this request)
 
So for Case 2, Apache *Tomcat* receives ONE request (for the JSP)
Base as with Case 1, Apache *Web Server* receives two.





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


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


help: Cannot find extension

2003-07-25 Thread Hans Wichman
Hi all,

i've built a webapp in which a jar in the WEB-INF\lib directory contains 
the following extension dependency specifications in the manifest file of 
the jar file (under the META-INF directory):
Extension-List: mysql
mysql-Extension-Name: org.gjt.mm.mysql
mysql-Implementation-URL: http://192.168.0.4/mm.mysql-2.0.13-bin.jar

I have created the file mm.mysql-2.0.13-bin.jar with the following manifest 
file:
Extension-Name: org.gjt.mm.mysql

My problem is that no matter where I put this mm.mysql-2.0.13-bin.jar 
(whether it is available at the specified location, whether I put it in the 
tomcat common\lib, server\lib, lib, classes the javahome\jre\lib\ext dir 
etc, I can't get the application to work.
It detects the mysql package is missing and shows an error message, so it 
partly works: it detects the dependency, but apparently it cannot be 
adaquately resolved.

(Note that if I do not specify the extensions in both jar files and just 
put the mysql jar in the lib directory, everything works fine, but I wanted 
to test the extension mechanism as specified in the servlet 2.3 specs).

I run tomcat under windows (for local testing only) version 4.0.1, jdk 1.4.2

Does anyone have a clue about what I am doing wrong?

Hope you can help!
Hans 

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


Servlet Caching question

2003-07-25 Thread Atreya Basu
Hello,
 
I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?
 
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca
 


RE: Tomcat not working behind a NAT?

2003-07-25 Thread Erin Dalzell
For this particular Servlet call we are not accessing any databases.

DTDs? Not really familiar with those...I will check.

I don't think we are trying to resolve hosts.

Here is something we got from our client:
--
The sniffer log showed the NATed address in one of the http requests ...
following along the line of tomcat not using a localhost for addressing
requests even if they're local to the system ...

What options are there to specify the address for tomcat under which to
start ? It must perform a lookup on DNS to translate the address, can we use
the /etc/hosts file to create a 'fixed' address that won't be affected by
DNS ? This may not resolve it either ... as which one would you actually put
in to allow both 'local' access vs 'outside' access ... 
--


Erin Dalzell
eXpresso Product Specialist
Epic Data
604.207.7699


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 5:46 PM
To: Tomcat Users List
Subject: Re: Tomcat not working behind a NAT?


It shouldn't use high ports.
Are you running any database services or other services?
Are your dtd's not correct and its trying actually pull foriegn assets via
http?
Are you trying to resolve hosts in your access log? (or similar)

Use your sniffer to see the type of request being performed on the hight
port.

-Tim

Erin Dalzell wrote:
 Hi there,
 
 We have just discovered that our tomcat web app is not working correctly
 behind a NAT. Our actual web app works fine, but when we try to access our
 management pages via http. It doesn't work. Any static pages are served up
 correctly through our defined tomcat port (6300), but any dynamic content
 (to several different servlets) don't work.
 
 When we run a sniffer, it looks like tomcat tries to communicate with
itself
 on a very high (and random) port. For example, if our tomcat is accessible
 locally as 10.10.10.10 and externally as 204.1.1.1 and we access from
 withing our network (10.10.x.x) everything works fine and tomcat is able
to
 talk to itself on port 45000. But if I access it from an external site,
 tomcat tries to communicate with itself on the 204.1.1.1 address and the
NAT
 doesn't like it.
 
 So, I have a few questions:
   1) why doesn't tomcat (we are using version 4) use localhost to
 communicate with itself?
   2) anyone else seen this problem?
   3) can the high port be configured?
 
 Thoughts? 


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

This email and any attachments are intended only for use by the addressees
named in this email and may contain legally privileged and/or confidential
information.  If you are not the intended recipient of this email, you are
hereby notified that any use, dissemination, distribution or copying of this
e-mail or any attachments is strictly prohibited.  If you have received this
email in error, please immediately notify me by return email and by phone at
604-273-9146, permanently delete the original and any copy of this email and
any attachments from your systems and destroy any printouts of them.


Tomcat: SSL client authentication

2003-07-25 Thread Dmitry S.Rogulin
Hello all,

I'm


Best regards,
Dmitry.


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



RE: Servlet Caching question

2003-07-25 Thread Shapira, Yoav

Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Servlet Caching question

Hello,

I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Januski, Ken
Well we haven't solved the question about the logfile but the second
question is interesting as well:-)

I think that the problem is that there is only one registry entry. If you
could have more than one you could configure different isapi_filters in IIS
Management Console, then use the one you want for each application. With
different registry entries you could then use more than one
workers2.properties file. That in turn would allow various mappings in
Tomcat. But from what I can tell the workers2.properties file says I'll
handle everthing that matches these patterns. If it allowed you to say
send requesting this pattern here, ones matching this other pattern here,
etc. that also would solve the problem.

This may be just rehashing what Nathan has already said. But I just wanted
to take a look for myself and see if I could get a clearer understanding of
just what was happening. I think the lack of documentation on
isapi_redirector2 does add to the problem but as John has said before there
may be a very good reason for that.




-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:37 AM
To: Tomcat Users List
Subject: Re: Logfile for isapi_redirector2.dll?


Sure, but that specifies the machine where Tomcat is running. I could
specify different hosts for different workers if I want multiple instances
of Tomcat running on different machines. I have one instance of Tomcat on
one machine and one instance of IIS on another. However, two virtual
hosts/web sites under IIS each of which need access to one and only one
webapp on the single Tomcat instance.

   Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:47 AM
Subject: Re: Logfile for isapi_redirector2.dll?



 uriworkermap.properties doesn't take a hostname?

 John

 Nathan Ward wrote:

  I believe that is the same thing I'm trying to do (did) with IIS and
Tomcat.
  I don't believe it is a bug. It is just the way the isapi_redirector.dll
is
  written. Windows registry settings specifies where _the_
workers.properties
  file is located as well as where the uriworkermap.properties is located.
  Each IIS website is configured in IIS's Management Application to use
the
  ISAPI filter (isapi_redirector.dll) and a virtual directory is defined
in
  IIS as well under each web site to the directory where the
  isapi_redirector.dll file is located. Since the mapping to webapps is
  controlled by the uriworkermap.properties file and only one can be
specified
  in the registry settings, there is no way in IIS or via the ISAPI filter
to
  control the access.
 
  This must not be a common thing at all as you said because I also
checked
  three books on Tomcat. Professional Apache Tomcat was the closest to
cover
  this at all but none of them specifically addressed this configuration.
  However, my customer wants to have one computer running IIS to be
accessible
  to the Internet. So, that is what I have make it work with this
  configuration.
 
 Nathan
 



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




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


RE: Servlet Caching question

2003-07-25 Thread Atreya Basu
Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Servlet Caching question

Hello,

I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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



RE: Tomcat not working behind a NAT?

2003-07-25 Thread Eric J. Pinnell
I still think you are barking up the wrong tree here.  If I had to guess I
would say that 95% of all internet faceing Tomcat servers are behind
some kind of NAT device.

One thing to consider.  NAT only translates the IP in the IP header and
doesn't change the data payload.  So if you are, for whatever reason,
using an IP address that is getting sent along in the payload and trying
to redirect to it or whatever, NAT won't change that.

Kinda how SQLNet doesn't like NAT devices.  Because the users IP is
embedded in the payload as part of the protocol.  So it goofs up when the
IP header and the IP in the payload don't match.

But what you are thinking below is the first thing I would do.  Make sure
the machine on the outside see's the correct hostname/IP number and the
machine on the inside see's that same hostname as the inside IP address.
You can do that via the hosts file if you like.

-e

On Fri, 25 Jul 2003, Erin Dalzell wrote:

 For this particular Servlet call we are not accessing any databases.

 DTDs? Not really familiar with those...I will check.

 I don't think we are trying to resolve hosts.

 Here is something we got from our client:
 --
 The sniffer log showed the NATed address in one of the http requests ...
 following along the line of tomcat not using a localhost for addressing
 requests even if they're local to the system ...

 What options are there to specify the address for tomcat under which to
 start ? It must perform a lookup on DNS to translate the address, can we use
 the /etc/hosts file to create a 'fixed' address that won't be affected by
 DNS ? This may not resolve it either ... as which one would you actually put
 in to allow both 'local' access vs 'outside' access ...
 --

 
 Erin Dalzell
 eXpresso Product Specialist
 Epic Data
 604.207.7699


 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 5:46 PM
 To: Tomcat Users List
 Subject: Re: Tomcat not working behind a NAT?


 It shouldn't use high ports.
 Are you running any database services or other services?
 Are your dtd's not correct and its trying actually pull foriegn assets via
 http?
 Are you trying to resolve hosts in your access log? (or similar)

 Use your sniffer to see the type of request being performed on the hight
 port.

 -Tim

 Erin Dalzell wrote:
  Hi there,
 
  We have just discovered that our tomcat web app is not working correctly
  behind a NAT. Our actual web app works fine, but when we try to access our
  management pages via http. It doesn't work. Any static pages are served up
  correctly through our defined tomcat port (6300), but any dynamic content
  (to several different servlets) don't work.
 
  When we run a sniffer, it looks like tomcat tries to communicate with
 itself
  on a very high (and random) port. For example, if our tomcat is accessible
  locally as 10.10.10.10 and externally as 204.1.1.1 and we access from
  withing our network (10.10.x.x) everything works fine and tomcat is able
 to
  talk to itself on port 45000. But if I access it from an external site,
  tomcat tries to communicate with itself on the 204.1.1.1 address and the
 NAT
  doesn't like it.
 
  So, I have a few questions:
  1) why doesn't tomcat (we are using version 4) use localhost to
  communicate with itself?
  2) anyone else seen this problem?
  3) can the high port be configured?
 
  Thoughts?


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

 This email and any attachments are intended only for use by the addressees
 named in this email and may contain legally privileged and/or confidential
 information.  If you are not the intended recipient of this email, you are
 hereby notified that any use, dissemination, distribution or copying of this
 e-mail or any attachments is strictly prohibited.  If you have received this
 email in error, please immediately notify me by return email and by phone at
 604-273-9146, permanently delete the original and any copy of this email and
 any attachments from your systems and destroy any printouts of them.


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



RE: Servlet Caching question

2003-07-25 Thread Bodycombe, Andrew
Just one question:
The output from a servlet/JSP is dynamic, so why would you want to cache the
output?

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 18:03
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question


Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Servlet Caching question

Hello,

I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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

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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Nathan Ward
Shit! You're right!!! All the examples of uriworkermap.properties that I had
seen had a relative path specified including the 3 books I looked at. It
never occurred to me to specify the full url until your example. I just
tried it that way and it works! Boy, do I feel stupid.

You said the example is for jk2. Doesn't JK2 use workers2.properties instead
of uirworkermap.properties and workers.properties? I'm using jk. I tried
jk2, but didn't get it to work. jk is working fine for now.

Back to the original question of why didn't I get more responses about this.
Maybe indicating isapi/iis in the subject was too limiting. Maybe I should
have said something about controlling access to webapps from multiple
virtual hosts.

  Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:55 AM
Subject: Re: Logfile for isapi_redirector2.dll?



 I guess I misunderstood what uriworkermap.properties was doingI was
 under the impression that was where you mapped URIs to specific workers.

 In JK2 (mod_jk2.so), it might look something like:

 [uri:www.hostA.com/appA/*.jsp]

 There's no counterpart to that in an IIS + Tomcat configuration?  I find
 that surprising.

 John

 Nathan Ward wrote:

  Sure, but that specifies the machine where Tomcat is running. I could
  specify different hosts for different workers if I want multiple
instances
  of Tomcat running on different machines. I have one instance of Tomcat
on
  one machine and one instance of IIS on another. However, two virtual
  hosts/web sites under IIS each of which need access to one and only one
  webapp on the single Tomcat instance.
 
 Nathan
 
  - Original Message -
  From: John Turner [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, July 25, 2003 10:47 AM
  Subject: Re: Logfile for isapi_redirector2.dll?
 
 
 
 uriworkermap.properties doesn't take a hostname?
 
 John
 
 Nathan Ward wrote:
 
 
 I believe that is the same thing I'm trying to do (did) with IIS and
 
  Tomcat.
 
 I don't believe it is a bug. It is just the way the
isapi_redirector.dll
 
  is
 
 written. Windows registry settings specifies where _the_
 
  workers.properties
 
 file is located as well as where the uriworkermap.properties is
located.
 Each IIS website is configured in IIS's Management Application to use
 
  the
 
 ISAPI filter (isapi_redirector.dll) and a virtual directory is defined
 
  in
 
 IIS as well under each web site to the directory where the
 isapi_redirector.dll file is located. Since the mapping to webapps is
 controlled by the uriworkermap.properties file and only one can be
 
  specified
 
 in the registry settings, there is no way in IIS or via the ISAPI
filter
 
  to
 
 control the access.
 
 This must not be a common thing at all as you said because I also
 
  checked
 
 three books on Tomcat. Professional Apache Tomcat was the closest to
 
  cover
 
 this at all but none of them specifically addressed this configuration.
 However, my customer wants to have one computer running IIS to be
 
  accessible
 
 to the Internet. So, that is what I have make it work with this
 configuration.
 
Nathan
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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




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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Nathan Ward
Just to be clear for others who may read this, here's an example of the
uriworkermap.properties file that works for me:

www.website1.com/rms-jobs/*=ajp13Worker
www.website2.biz/rms/*=ajp13Worker

What I had before that didn't control access as required was:

/rms-jobs/*=ajp13Worker
/rms/*=ajp13Worker

   Nathan

- Original Message -
From: Nathan Ward [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:05 PM
Subject: Re: Logfile for isapi_redirector2.dll?


 Shit! You're right!!! All the examples of uriworkermap.properties that I
had
 seen had a relative path specified including the 3 books I looked at. It
 never occurred to me to specify the full url until your example. I just
 tried it that way and it works! Boy, do I feel stupid.

 You said the example is for jk2. Doesn't JK2 use workers2.properties
instead
 of uirworkermap.properties and workers.properties? I'm using jk. I tried
 jk2, but didn't get it to work. jk is working fine for now.

 Back to the original question of why didn't I get more responses about
this.
 Maybe indicating isapi/iis in the subject was too limiting. Maybe I should
 have said something about controlling access to webapps from multiple
 virtual hosts.

   Nathan

 - Original Message -
 From: John Turner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 11:55 AM
 Subject: Re: Logfile for isapi_redirector2.dll?


 
  I guess I misunderstood what uriworkermap.properties was doingI was
  under the impression that was where you mapped URIs to specific workers.
 
  In JK2 (mod_jk2.so), it might look something like:
 
  [uri:www.hostA.com/appA/*.jsp]
 
  There's no counterpart to that in an IIS + Tomcat configuration?  I find
  that surprising.
 
  John
 
  Nathan Ward wrote:
 
   Sure, but that specifies the machine where Tomcat is running. I could
   specify different hosts for different workers if I want multiple
 instances
   of Tomcat running on different machines. I have one instance of Tomcat
 on
   one machine and one instance of IIS on another. However, two virtual
   hosts/web sites under IIS each of which need access to one and only
one
   webapp on the single Tomcat instance.
  
  Nathan
  
   - Original Message -
   From: John Turner [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, July 25, 2003 10:47 AM
   Subject: Re: Logfile for isapi_redirector2.dll?
  
  
  
  uriworkermap.properties doesn't take a hostname?
  
  John
  
  Nathan Ward wrote:
  
  
  I believe that is the same thing I'm trying to do (did) with IIS and
  
   Tomcat.
  
  I don't believe it is a bug. It is just the way the
 isapi_redirector.dll
  
   is
  
  written. Windows registry settings specifies where _the_
  
   workers.properties
  
  file is located as well as where the uriworkermap.properties is
 located.
  Each IIS website is configured in IIS's Management Application to use
  
   the
  
  ISAPI filter (isapi_redirector.dll) and a virtual directory is
defined
  
   in
  
  IIS as well under each web site to the directory where the
  isapi_redirector.dll file is located. Since the mapping to webapps is
  controlled by the uriworkermap.properties file and only one can be
  
   specified
  
  in the registry settings, there is no way in IIS or via the ISAPI
 filter
  
   to
  
  control the access.
  
  This must not be a common thing at all as you said because I also
  
   checked
  
  three books on Tomcat. Professional Apache Tomcat was the closest to
  
   cover
  
  this at all but none of them specifically addressed this
configuration.
  However, my customer wants to have one computer running IIS to be
  
   accessible
  
  to the Internet. So, that is what I have make it work with this
  configuration.
  
 Nathan
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




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



RE: Servlet Caching question

2003-07-25 Thread Shapira, Yoav

Howdy,
Actually, caching of servlet/JSP output is not a rare request, and is
sometimes valid.  Especially if there is a common set of request
parameters (ViewPage?pageId=... where the pageId has three values that
are very common).

It would be fairly trivial to write a URL-based caching filter.  One
does not come with tomcat, but it's less than a 20 minutes effort to
write I think.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:06 PM
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question

Just one question:
The output from a servlet/JSP is dynamic, so why would you want to
cache
the
output?

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: 25 July 2003 18:03
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question


Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Servlet Caching question

Hello,

I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Januski, Ken
Nathan,

I'd love to see the configuration but these urls don't seem to work.

P.S. I wasn't thinking clearly when I suggested multiple workers2.properties
files.

Ken

-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:12 PM
To: Tomcat Users List
Subject: Re: Logfile for isapi_redirector2.dll?


Just to be clear for others who may read this, here's an example of the
uriworkermap.properties file that works for me:

www.website1.com/rms-jobs/*=ajp13Worker
www.website2.biz/rms/*=ajp13Worker

What I had before that didn't control access as required was:

/rms-jobs/*=ajp13Worker
/rms/*=ajp13Worker

   Nathan

- Original Message -
From: Nathan Ward [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:05 PM
Subject: Re: Logfile for isapi_redirector2.dll?


 Shit! You're right!!! All the examples of uriworkermap.properties that I
had
 seen had a relative path specified including the 3 books I looked at. It
 never occurred to me to specify the full url until your example. I just
 tried it that way and it works! Boy, do I feel stupid.

 You said the example is for jk2. Doesn't JK2 use workers2.properties
instead
 of uirworkermap.properties and workers.properties? I'm using jk. I tried
 jk2, but didn't get it to work. jk is working fine for now.

 Back to the original question of why didn't I get more responses about
this.
 Maybe indicating isapi/iis in the subject was too limiting. Maybe I should
 have said something about controlling access to webapps from multiple
 virtual hosts.

   Nathan

 - Original Message -
 From: John Turner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 11:55 AM
 Subject: Re: Logfile for isapi_redirector2.dll?


 
  I guess I misunderstood what uriworkermap.properties was doingI was
  under the impression that was where you mapped URIs to specific workers.
 
  In JK2 (mod_jk2.so), it might look something like:
 
  [uri:www.hostA.com/appA/*.jsp]
 
  There's no counterpart to that in an IIS + Tomcat configuration?  I find
  that surprising.
 
  John
 
  Nathan Ward wrote:
 
   Sure, but that specifies the machine where Tomcat is running. I could
   specify different hosts for different workers if I want multiple
 instances
   of Tomcat running on different machines. I have one instance of Tomcat
 on
   one machine and one instance of IIS on another. However, two virtual
   hosts/web sites under IIS each of which need access to one and only
one
   webapp on the single Tomcat instance.
  
  Nathan
  
   - Original Message -
   From: John Turner [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, July 25, 2003 10:47 AM
   Subject: Re: Logfile for isapi_redirector2.dll?
  
  
  
  uriworkermap.properties doesn't take a hostname?
  
  John
  
  Nathan Ward wrote:
  
  
  I believe that is the same thing I'm trying to do (did) with IIS and
  
   Tomcat.
  
  I don't believe it is a bug. It is just the way the
 isapi_redirector.dll
  
   is
  
  written. Windows registry settings specifies where _the_
  
   workers.properties
  
  file is located as well as where the uriworkermap.properties is
 located.
  Each IIS website is configured in IIS's Management Application to use
  
   the
  
  ISAPI filter (isapi_redirector.dll) and a virtual directory is
defined
  
   in
  
  IIS as well under each web site to the directory where the
  isapi_redirector.dll file is located. Since the mapping to webapps is
  controlled by the uriworkermap.properties file and only one can be
  
   specified
  
  in the registry settings, there is no way in IIS or via the ISAPI
 filter
  
   to
  
  control the access.
  
  This must not be a common thing at all as you said because I also
  
   checked
  
  three books on Tomcat. Professional Apache Tomcat was the closest to
  
   cover
  
  this at all but none of them specifically addressed this
configuration.
  However, my customer wants to have one computer running IIS to be
  
   accessible
  
  to the Internet. So, that is what I have make it work with this
  configuration.
  
 Nathan
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




-
To unsubscribe, 

RE: Servlet Caching question

2003-07-25 Thread Mike Curwen
Because I might decide that hmm, this page's content really doesn't
change very often, so why don't I cache its results for 5 minutes?
 
For example, one page might contain many different 'pagelets', say a
little weather box with the current weather conditions.  If your weather
conditions are only updated every hour, why are you dynamically
generating that little pagelet every request (which can be anywhere from
2 in an hour to several thousand).  You'd cache that pagelet, and set it
to expire every hour.

 -Original Message-
 From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 25, 2003 12:06 PM
 To: 'Tomcat Users List'
 Subject: RE: Servlet Caching question
 
 
 Just one question:
 The output from a servlet/JSP is dynamic, so why would you 
 want to cache the output?
 
 -Original Message-
 From: Atreya Basu [mailto:[EMAIL PROTECTED] 
 Sent: 25 July 2003 18:03
 To: 'Tomcat Users List'
 Subject: RE: Servlet Caching question
 
 
 Okay,
 
 So if I want to do some caching for say: GET requests.  Is 
 there a way to cache output based on URL?  Is this kind of 
 thing simply not supported, and I will have to go to some 
 other application server.
 
 _
 Atreya Basu
 Developer,
 Greenfield Research Inc.
 e-mail: atreya (at) greenfieldresearch (dot) ca
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: July 25, 2003 1:59 PM
 To: Tomcat Users List
 Subject: RE: Servlet Caching question
 
 
 Howdy,
 Basically, tomcat doesn't.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Atreya Basu [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 12:42 PM
 To: [EMAIL PROTECTED]
 Subject: Servlet Caching question
 
 Hello,
 
 I wanted to know how Tomcat caches the output of 
 Servlets/JSPs.  Could 
 someone direct me to where I could find some information on that?
 
 _
 Atreya Basu
 Developer,
 Greenfield Research Inc.
 e-mail: atreya (at) greenfieldresearch (dot) ca
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the
 individual(s) to whom it is addressed, and may not be saved, 
 copied, printed, disclosed or used by anyone else.  If you 
 are not the(an) intended recipient, please immediately delete 
 this e-mail from your computer system and notify the sender.  
 Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Januski, Ken
Boy I really am not thinking clearly!

Thanks for the info.

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:20 PM
To: Tomcat Users List
Subject: RE: Logfile for isapi_redirector2.dll?


Nathan,

I'd love to see the configuration but these urls don't seem to work.

P.S. I wasn't thinking clearly when I suggested multiple workers2.properties
files.

Ken

-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:12 PM
To: Tomcat Users List
Subject: Re: Logfile for isapi_redirector2.dll?


Just to be clear for others who may read this, here's an example of the
uriworkermap.properties file that works for me:

www.website1.com/rms-jobs/*=ajp13Worker
www.website2.biz/rms/*=ajp13Worker

What I had before that didn't control access as required was:

/rms-jobs/*=ajp13Worker
/rms/*=ajp13Worker

   Nathan

- Original Message -
From: Nathan Ward [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:05 PM
Subject: Re: Logfile for isapi_redirector2.dll?


 Shit! You're right!!! All the examples of uriworkermap.properties that I
had
 seen had a relative path specified including the 3 books I looked at. It
 never occurred to me to specify the full url until your example. I just
 tried it that way and it works! Boy, do I feel stupid.

 You said the example is for jk2. Doesn't JK2 use workers2.properties
instead
 of uirworkermap.properties and workers.properties? I'm using jk. I tried
 jk2, but didn't get it to work. jk is working fine for now.

 Back to the original question of why didn't I get more responses about
this.
 Maybe indicating isapi/iis in the subject was too limiting. Maybe I should
 have said something about controlling access to webapps from multiple
 virtual hosts.

   Nathan

 - Original Message -
 From: John Turner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 11:55 AM
 Subject: Re: Logfile for isapi_redirector2.dll?


 
  I guess I misunderstood what uriworkermap.properties was doingI was
  under the impression that was where you mapped URIs to specific workers.
 
  In JK2 (mod_jk2.so), it might look something like:
 
  [uri:www.hostA.com/appA/*.jsp]
 
  There's no counterpart to that in an IIS + Tomcat configuration?  I find
  that surprising.
 
  John
 
  Nathan Ward wrote:
 
   Sure, but that specifies the machine where Tomcat is running. I could
   specify different hosts for different workers if I want multiple
 instances
   of Tomcat running on different machines. I have one instance of Tomcat
 on
   one machine and one instance of IIS on another. However, two virtual
   hosts/web sites under IIS each of which need access to one and only
one
   webapp on the single Tomcat instance.
  
  Nathan
  
   - Original Message -
   From: John Turner [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, July 25, 2003 10:47 AM
   Subject: Re: Logfile for isapi_redirector2.dll?
  
  
  
  uriworkermap.properties doesn't take a hostname?
  
  John
  
  Nathan Ward wrote:
  
  
  I believe that is the same thing I'm trying to do (did) with IIS and
  
   Tomcat.
  
  I don't believe it is a bug. It is just the way the
 isapi_redirector.dll
  
   is
  
  written. Windows registry settings specifies where _the_
  
   workers.properties
  
  file is located as well as where the uriworkermap.properties is
 located.
  Each IIS website is configured in IIS's Management Application to use
  
   the
  
  ISAPI filter (isapi_redirector.dll) and a virtual directory is
defined
  
   in
  
  IIS as well under each web site to the directory where the
  isapi_redirector.dll file is located. Since the mapping to webapps is
  controlled by the uriworkermap.properties file and only one can be
  
   specified
  
  in the registry settings, there is no way in IIS or via the ISAPI
 filter
  
   to
  
  control the access.
  
  This must not be a common thing at all as you said because I also
  
   checked
  
  three books on Tomcat. Professional Apache Tomcat was the closest to
  
   cover
  
  this at all but none of them specifically addressed this
configuration.
  However, my customer wants to have one computer running IIS to be
  
   accessible
  
  to the Internet. So, that is what I have make it work with this
  configuration.
  
 Nathan
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL 

Tomcat as Windows service on Windows XP

2003-07-25 Thread Me myself
How can i use tomcat as a windows service on XP ?

I cant find any documentation about this in the tomcat documentation.

Thanx.

_
Hotmail snakker ditt språk! 
http://www.hotmail.msn.com/cgi-bin/sbox?rru=dasp/lang.asp - Få Hotmail på 
norsk i dag

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


RE: Servlet Caching question

2003-07-25 Thread Bodycombe, Andrew
That makes sense. I'd always considered that it was too dangerous to cache
servlet output.
I might try implementing this Filter and try to gain some performance...

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 18:17
To: Tomcat Users List
Subject: RE: Servlet Caching question



Howdy,
Actually, caching of servlet/JSP output is not a rare request, and is
sometimes valid.  Especially if there is a common set of request
parameters (ViewPage?pageId=... where the pageId has three values that
are very common).

It would be fairly trivial to write a URL-based caching filter.  One
does not come with tomcat, but it's less than a 20 minutes effort to
write I think.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:06 PM
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question

Just one question:
The output from a servlet/JSP is dynamic, so why would you want to
cache
the
output?

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: 25 July 2003 18:03
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question


Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Servlet Caching question

Hello,

I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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

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



RE: Servlet Caching question

2003-07-25 Thread Atreya Basu
Andrew,

Our JSP/Servlets perform some calculations based on some input from a
HTML Form.  These calculations are a little bit complicated so they take
time to perform.  However the output that they produce is relatively
small.  The majority of our users will give the same input, so the
output is also known for those cases.  If we can map the input given in
the form of a GET request (i.e. the URL) to a cache of outputs, we could
save a lot of time.

So that is why we would like to cache the output.

Another question I have is, once a Servlet is executed, does it get
stored in memory so that it doesn't have to be read off the disc next
time?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 2:06 PM
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question

Just one question:
The output from a servlet/JSP is dynamic, so why would you want to cache
the
output?

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 18:03
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question


Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Servlet Caching question

Hello,

I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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

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




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



Tomcat: SSL client authentication

2003-07-25 Thread Dmitry S.Rogulin
Hello all,

Sorry for the previous e-mail. %)

This theme was discussed about month ago. I tried to use what I've
found but I'm still having a problem...

I'm trying to do SSL client authentication with Tomcat 4.1.18 (clientAuth=true).

1. I've generated a client certificate using keytool:
  keytool -genkey -alias tomcat-cl -keyalg RSA -keystore client.keystore

2. Then I created Certificate Signing Request:
  keytool -certreq -keyalg RSA -alias tomcat-cl -file certreq.csr -keystore 
client.keystore

3. I sent it to CA and got a signed certificate and CA Certificate.
4. I imported them to the client keystore:
  keytool -import -alias root -keystore client.keystore -file cacert
  keytool -import -alias tomcat-cl -keystore client.keystore -file usercert

5. I exported server certificate and imported it as a trusted to the
trusted keystore:
  keytool -import -trustcacerts -alias tomcat -file server.cer -keystore trust.keystore

6. I imported CA Certificate to \jre\lib\security\cacerts :
  keytool -import -file cacert -keystore %java_home%\jre\lib\security\cacerts 
-storepass changeit

  I'm running Tomcat and test client on the same machine.
  Server keystore: %USERHOME%\.keystore
  Client keystore: %USERHOME%\client.keystore
  Client trusted keystore: %USERHOME%\trust.keystore

  Test Client:

import java.net.*;
import java.io.*;
import java.util.*;
import java.security.*;
import javax.net.ssl.*;

public class SimpleClient {

public static void main(String[] args) {
System.setProperty(javax.net.ssl.trustStore, 
System.getProperty(user.home)+File.separator +trust.keystore);

System.setProperty(javax.net.ssl.keyStore, 
System.getProperty(user.home)+File.separator +client.keystore);
System.setProperty(javax.net.ssl.keyStorePassword, changeit);

InputStream is = null;
OutputStream os = new ByteArrayOutputStream();

try {
URL url = new URL(https://localhost:8443/readme.txt;);

try {
is = url.openStream();

byte[] buffer = new byte[4096];
int bytes_read;
while((bytes_read = is.read(buffer)) != -1)
os.write(buffer, 0, bytes_read);

System.out.println(os.toString());

} catch (Exception e) { e.printStackTrace(); }
finally {
try {
is.close();
os.close();
} catch (IOException e) { e.printStackTrace(); }
}

} catch (Exception e) { e.printStackTrace(); }


}
}


With [clientAuth=false] it works fine, but with [clientAuth=true]
it gives an error:

java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)

What did I do in a wrong way?

Thanks in advance.

Best regards,
Dmitry.


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



RE: Servlet Caching question

2003-07-25 Thread Shapira, Yoav

Howdy,

Our JSP/Servlets perform some calculations based on some input from a
HTML Form.  These calculations are a little bit complicated so they
take
time to perform.  However the output that they produce is relatively
small.  The majority of our users will give the same input, so the
output is also known for those cases.  If we can map the input given in
the form of a GET request (i.e. the URL) to a cache of outputs, we
could
save a lot of time.

For this case, I would actually consider doing the pre-calculation and
result caching in the calculator object or something hanging off of it,
rather than the servlet output.  That's because the output is small, so
it's not like you're saving presentation/layout effort.  Rather, you're
trying to speed up business object creation.

Another question I have is, once a Servlet is executed, does it get
stored in memory so that it doesn't have to be read off the disc next
time?

This is a basic java question (or rather OS/JVM question).  Once a class
is loaded, it's kept in memory, in a special section of the memory
allocated to the JVM (known as the Permanent Generation).  However, the
creation and destruction of servlet instances is up to the container,
although those are in-memory operation.  As an aside, the penalty for
loading a class from disk is tiny and if that's your worst performance
bottleneck, you should publish a paper about your application ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat as Windows service on Windows XP

2003-07-25 Thread Atreya Basu
I think that there is an option during the Windows installation to set
Tomcat up as a service.  The other option is to use:
Sc.exe create
The program is well documented so  you shouldn't have any difficulty
using it.  Another option is to simply make an entry in the registry
under:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControSet/Services



_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Me myself [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: Tomcat as Windows service on Windows XP


How can i use tomcat as a windows service on XP ?

I cant find any documentation about this in the tomcat documentation.

Thanx.

_
Hotmail snakker ditt språk! 
http://www.hotmail.msn.com/cgi-bin/sbox?rru=dasp/lang.asp - Få Hotmail
på 
norsk i dag


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




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



Re: JDK for Linux on Power PC

2003-07-25 Thread james Folsom
http://www.blackdown.org

although it is only for 1.3.1

--- Hari Om [EMAIL PROTECTED] wrote:
where can I find JDK for Linux on Power PC

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com

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



Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Nathan Ward
Ken,

That was an example configuration. I didn't realize that you'd care to go to
the actual web sites. Some of the real uri's aren't accessible from the
Internet. One of them is though.

Go to http://www.usresources.com
Click on the Candidates link menu item, then click on the OPPORTUNITIES or
SUBMIT RESUME links at the bottom of the page.

Those two links go to /rms-jobs/something which is my webapp running on
Tomcat on a different machine. The pages before those links were static HTML
files from IIS.

Turns out that what I had tried per John's message isn't actually working.
What I tried was:

www.usresources.com/rms-jobs/*=ajp13Worker

in the uriworkermap.properties file

I thought that was working, but maybe I didn't restart IIS after making the
change. I've since changed the file back to:

/rms-jobs/*=ajp13Worker

I also have the following in the uriworkermap.properties file:

/rms/*=ajp13Worker

However, this better not be accessible from www.usresources.com (i.e.
http://www.usresources.com/rms/something) should never work. It is
supposed to be accessed from another web site that isn't actually on the
Internet yet because we have to get a SSL certificate from Verisign for it
first.

So, if I could specify:

www.usresources.com/rms-jobs/*=ajp13Worker

and

www.another-to-be-determined-domainname.com/rms/*=ajp13Worker

in uriworkermap.properties file I wouldn't need the valve that I created in
Tomcat.

Let me know if you need more clarification.

   Nathan

- Original Message -
From: Januski, Ken [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:20 PM
Subject: RE: Logfile for isapi_redirector2.dll?


 Nathan,

 I'd love to see the configuration but these urls don't seem to work.

 P.S. I wasn't thinking clearly when I suggested multiple
workers2.properties
 files.

 Ken

 -Original Message-
 From: Nathan Ward [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 1:12 PM
 To: Tomcat Users List
 Subject: Re: Logfile for isapi_redirector2.dll?


 Just to be clear for others who may read this, here's an example of the
 uriworkermap.properties file that works for me:

 www.website1.com/rms-jobs/*=ajp13Worker
 www.website2.biz/rms/*=ajp13Worker

 What I had before that didn't control access as required was:

 /rms-jobs/*=ajp13Worker
 /rms/*=ajp13Worker

Nathan

 - Original Message -
 From: Nathan Ward [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 1:05 PM
 Subject: Re: Logfile for isapi_redirector2.dll?


  Shit! You're right!!! All the examples of uriworkermap.properties that I
 had
  seen had a relative path specified including the 3 books I looked at. It
  never occurred to me to specify the full url until your example. I just
  tried it that way and it works! Boy, do I feel stupid.
 
  You said the example is for jk2. Doesn't JK2 use workers2.properties
 instead
  of uirworkermap.properties and workers.properties? I'm using jk. I tried
  jk2, but didn't get it to work. jk is working fine for now.
 
  Back to the original question of why didn't I get more responses about
 this.
  Maybe indicating isapi/iis in the subject was too limiting. Maybe I
should
  have said something about controlling access to webapps from multiple
  virtual hosts.
 
Nathan
 
  - Original Message -
  From: John Turner [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, July 25, 2003 11:55 AM
  Subject: Re: Logfile for isapi_redirector2.dll?
 
 
  
   I guess I misunderstood what uriworkermap.properties was doingI
was
   under the impression that was where you mapped URIs to specific
workers.
  
   In JK2 (mod_jk2.so), it might look something like:
  
   [uri:www.hostA.com/appA/*.jsp]
  
   There's no counterpart to that in an IIS + Tomcat configuration?  I
find
   that surprising.
  
   John
  
   Nathan Ward wrote:
  
Sure, but that specifies the machine where Tomcat is running. I
could
specify different hosts for different workers if I want multiple
  instances
of Tomcat running on different machines. I have one instance of
Tomcat
  on
one machine and one instance of IIS on another. However, two virtual
hosts/web sites under IIS each of which need access to one and only
 one
webapp on the single Tomcat instance.
   
   Nathan
   
- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:47 AM
Subject: Re: Logfile for isapi_redirector2.dll?
   
   
   
   uriworkermap.properties doesn't take a hostname?
   
   John
   
   Nathan Ward wrote:
   
   
   I believe that is the same thing I'm trying to do (did) with IIS
and
   
Tomcat.
   
   I don't believe it is a bug. It is just the way the
  isapi_redirector.dll
   
is
   
   written. Windows registry settings specifies where _the_
   
workers.properties
   
   file is located as well as where 

RE: Logfile for isapi_redirector2.dll?

2003-07-25 Thread Januski, Ken
Thanks, Nathan

If I was awake I WOULDN'T have tried to go to your web site but instead
would have realized that those weren't links but entries.:-) Who knows what
I was thinking?

But thanks for the explanation. It has been interesting following the
discussion and has helped clarify a little bit the filtering process. I have
my jk2 working right now as it should but it's always such a pain getting it
setup that I tend to follow any discussions on it to see what I can learn.

Ken




-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 2:03 PM
To: Tomcat Users List
Subject: Re: Logfile for isapi_redirector2.dll?


Ken,

That was an example configuration. I didn't realize that you'd care to go to
the actual web sites. Some of the real uri's aren't accessible from the
Internet. One of them is though.

Go to http://www.usresources.com
Click on the Candidates link menu item, then click on the OPPORTUNITIES or
SUBMIT RESUME links at the bottom of the page.

Those two links go to /rms-jobs/something which is my webapp running on
Tomcat on a different machine. The pages before those links were static HTML
files from IIS.

Turns out that what I had tried per John's message isn't actually working.
What I tried was:

www.usresources.com/rms-jobs/*=ajp13Worker

in the uriworkermap.properties file

I thought that was working, but maybe I didn't restart IIS after making the
change. I've since changed the file back to:

/rms-jobs/*=ajp13Worker

I also have the following in the uriworkermap.properties file:

/rms/*=ajp13Worker

However, this better not be accessible from www.usresources.com (i.e.
http://www.usresources.com/rms/something) should never work. It is
supposed to be accessed from another web site that isn't actually on the
Internet yet because we have to get a SSL certificate from Verisign for it
first.

So, if I could specify:

www.usresources.com/rms-jobs/*=ajp13Worker

and

www.another-to-be-determined-domainname.com/rms/*=ajp13Worker

in uriworkermap.properties file I wouldn't need the valve that I created in
Tomcat.

Let me know if you need more clarification.

   Nathan

- Original Message -
From: Januski, Ken [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:20 PM
Subject: RE: Logfile for isapi_redirector2.dll?


 Nathan,

 I'd love to see the configuration but these urls don't seem to work.

 P.S. I wasn't thinking clearly when I suggested multiple
workers2.properties
 files.

 Ken

 -Original Message-
 From: Nathan Ward [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 1:12 PM
 To: Tomcat Users List
 Subject: Re: Logfile for isapi_redirector2.dll?


 Just to be clear for others who may read this, here's an example of the
 uriworkermap.properties file that works for me:

 www.website1.com/rms-jobs/*=ajp13Worker
 www.website2.biz/rms/*=ajp13Worker

 What I had before that didn't control access as required was:

 /rms-jobs/*=ajp13Worker
 /rms/*=ajp13Worker

Nathan

 - Original Message -
 From: Nathan Ward [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 1:05 PM
 Subject: Re: Logfile for isapi_redirector2.dll?


  Shit! You're right!!! All the examples of uriworkermap.properties that I
 had
  seen had a relative path specified including the 3 books I looked at. It
  never occurred to me to specify the full url until your example. I just
  tried it that way and it works! Boy, do I feel stupid.
 
  You said the example is for jk2. Doesn't JK2 use workers2.properties
 instead
  of uirworkermap.properties and workers.properties? I'm using jk. I tried
  jk2, but didn't get it to work. jk is working fine for now.
 
  Back to the original question of why didn't I get more responses about
 this.
  Maybe indicating isapi/iis in the subject was too limiting. Maybe I
should
  have said something about controlling access to webapps from multiple
  virtual hosts.
 
Nathan
 
  - Original Message -
  From: John Turner [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, July 25, 2003 11:55 AM
  Subject: Re: Logfile for isapi_redirector2.dll?
 
 
  
   I guess I misunderstood what uriworkermap.properties was doingI
was
   under the impression that was where you mapped URIs to specific
workers.
  
   In JK2 (mod_jk2.so), it might look something like:
  
   [uri:www.hostA.com/appA/*.jsp]
  
   There's no counterpart to that in an IIS + Tomcat configuration?  I
find
   that surprising.
  
   John
  
   Nathan Ward wrote:
  
Sure, but that specifies the machine where Tomcat is running. I
could
specify different hosts for different workers if I want multiple
  instances
of Tomcat running on different machines. I have one instance of
Tomcat
  on
one machine and one instance of IIS on another. However, two virtual
hosts/web sites under IIS each of which need access to one and only
 one
webapp on the single 

Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread John Turner
Sweet.  I'm glad I was able to help.

And yeah, you're probably right about the subject lines.

Put IIS in the subject line, and the odds are real good that I'll read 
but not answer.  Put nobody here bothered to answer me in your post 
and I'll definitely reply, even if I don't know the answer.  LOL  But 
I'm certainly not the only person here.

John

Nathan Ward wrote:

Shit! You're right!!! All the examples of uriworkermap.properties that I had
seen had a relative path specified including the 3 books I looked at. It
never occurred to me to specify the full url until your example. I just
tried it that way and it works! Boy, do I feel stupid.
You said the example is for jk2. Doesn't JK2 use workers2.properties instead
of uirworkermap.properties and workers.properties? I'm using jk. I tried
jk2, but didn't get it to work. jk is working fine for now.
Back to the original question of why didn't I get more responses about this.
Maybe indicating isapi/iis in the subject was too limiting. Maybe I should
have said something about controlling access to webapps from multiple
virtual hosts.
  Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:55 AM
Subject: Re: Logfile for isapi_redirector2.dll?


I guess I misunderstood what uriworkermap.properties was doingI was
under the impression that was where you mapped URIs to specific workers.
In JK2 (mod_jk2.so), it might look something like:

[uri:www.hostA.com/appA/*.jsp]

There's no counterpart to that in an IIS + Tomcat configuration?  I find
that surprising.
John



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


Re: Logfile for isapi_redirector2.dll?

2003-07-25 Thread John Turner
So its not working?

I can't believe that IIS + Tomcat doesn't separate virtual hosts.

Do your hosts have different appBase's?

John

Nathan Ward wrote:

Ken,

That was an example configuration. I didn't realize that you'd care to go to
the actual web sites. Some of the real uri's aren't accessible from the
Internet. One of them is though.
Go to http://www.usresources.com
Click on the Candidates link menu item, then click on the OPPORTUNITIES or
SUBMIT RESUME links at the bottom of the page.
Those two links go to /rms-jobs/something which is my webapp running on
Tomcat on a different machine. The pages before those links were static HTML
files from IIS.
Turns out that what I had tried per John's message isn't actually working.
What I tried was:
www.usresources.com/rms-jobs/*=ajp13Worker

in the uriworkermap.properties file

I thought that was working, but maybe I didn't restart IIS after making the
change. I've since changed the file back to:
/rms-jobs/*=ajp13Worker

I also have the following in the uriworkermap.properties file:

/rms/*=ajp13Worker

However, this better not be accessible from www.usresources.com (i.e.
http://www.usresources.com/rms/something) should never work. It is
supposed to be accessed from another web site that isn't actually on the
Internet yet because we have to get a SSL certificate from Verisign for it
first.
So, if I could specify:

www.usresources.com/rms-jobs/*=ajp13Worker

and

www.another-to-be-determined-domainname.com/rms/*=ajp13Worker

in uriworkermap.properties file I wouldn't need the valve that I created in
Tomcat.
Let me know if you need more clarification.

   Nathan



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


[OT] SF Bay Area Struts Intro (Free)

2003-07-25 Thread Oscar Carrillo
Hi everyone,

I belong to the Silicon Valley Struts User Group and we're having a Intro 
to Struts presentation being done by a BEA employee.

If you will be in the San Francisco Bay Area and interested in learning
more about Struts, consider coming to this presentation. It's August 6th, 
and you can get more info here:
http://www.baychi.org/bof/struts/20030806/

No product demo, just Intro into Struts.

Thanks,
Oscar Carrillo
http://daydream.stanford.edu/tomcat/install_web_services.html


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



  1   2   >