Block a dir to not display its content

2002-08-13 Thread D Bamud

Tomcat4.0.4 / J2SDK1.4.0/W2K

My application is webapps/bbc. It works just fine. The dirs inside it are
jsp and WEB-INF. Inside the jsp dir I have my *.jsp files and also some
directories like doc, src, images etc. These are the directories that
the end user should not see content of via the browser. If someone make a
URL like /bbc/jsp/doc the contents are displayed on the browser and the user
could see/save them. I want to prevent them IN THE SAME WAY AS WEB-INF dir
is now (Tomcat4.x onwards). How to do it.

One way is of-course put default file like index.html (based on the
configuration). But I am looking for more better way (WEB-INF way). Where
and what I need to delcare.

--Thanks


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




jsp in packages

2002-08-13 Thread D Bamud

Q1. Can I declare my jsp files in packages? How?

Q2. I have written a static method in one jsp page. I want to call  this
method in another jsp page. How to do it? I do not want to take this method
out from the jsp and put into a class (.java) and use it in both the jsp
files.


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




Query Regarding Tomcat 4.0.4

2002-08-13 Thread Taral Shah

Hi,

First of all thanks for providing cgi support in Tomcat. I was waiting for
it since long.

I am using tomcat 4.0.4, the latest and stable version as specified by site.


I am facing some problem while handling the CGI with tomcat and I am unsure
about whom to ask the question so I am mailing you.
I hope I 'll get reply soon regarding this, as this is very crucial point
for our project.

Let me explain my problem first:

I am using tomcat 4.0.4. Here I have created my context and in it I have
mapped cgi. I am able to execute the cgi easily so no problem with
configuration. My small cgi scripts are getting executed easily so I dont
have problem with any type of configuration.

But it gets hang when the cgi response is very large(Not so much large but
just above 15-20 lines)

I am using tomcat in solaris and windows-nt both.
In windows-nt my cgi script is an exe file, It opens an socket with servlet
and reads all data supplied by that servlet. When data is small (i.e of
around 5 lines) It works fine and all response gets printed on browser, but
when data gets big(here around of 30 lines) it waits and waits and nothing
is being printed out on browser.
I executed the exe stand alone, it gets all response back so no problem with
exe(Actually that exe was working fine with other CGI server, VQ Server).
We decided to migrate to tomcat as now its supporting cgi, and We came
across this problem.

I changed the request time out to 1 mins-5 mins(i.e. 6,30 ms)  like
that but response didnt change.(same old waiting game)

While for solaris it can print up to 100-150 lines but when case comes of
300 or more lines it gets hang.

You mentioned in the help file
Can you please help me regarding this issue or give me email address or
forum name from where I can get the answer.

Waiting for your reply,
Thanks

Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]

Experience is what you get when you were expecting something else.



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




RE: Custom org.apache.catalina.authenticator

2002-08-13 Thread Chaudhuri, Hiran

Hi there.

I also am interested in exchanging the authenticator. But I could not find
the properties file mentioned below in Tomcat 4.1.8. However I found the
NonLoginAuthenticator (exactly what I was trying to do), and a properties
file in org.apache.catalina.startup.

Do I understand correctly that this authenticator is activated just by
specifying
auth-methodNONE/auth-method
in web.xml?

Hiran

-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimerstra?e 11
80687 Munchen
Germany
[EMAIL PROTECTED]
Phone +49-89-54742-134
Fax   +49-6151-9234-5134

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 30, 2002 2:52 AM
 To: Tomcat Users List
 Subject: Re: Custom org.apache.catalina.authenticator
 
 
 
 
 On Mon, 29 Jul 2002, Tim McLaughlin wrote:
 
  Date: Mon, 29 Jul 2002 16:00:17 -0700
  From: Tim McLaughlin [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Custom org.apache.catalina.authenticator
 
  Hello,
 
  The Question:
  How do I specify a class other than
  org.catalina.authenticator.BasicAuthenticator to handle Basic
  authentication?
 
 
 There is a properties file in the org.apache.catalina.authenticator
 package that defines the mapping of authentication method to 
 classname.
 You would need to customize this file in
 $CATALINA_HOME/server/lib/catalina.jar.
 
 Or, an easier approach would be to copy your customized 
 version of this
 file into the
 $CATALINA_HOME/server/classes/org/apache/catalina/authenticato
 r directory
 (which you'd have to create).  This works because the Catalina class
 loaders load from the classes directory before they load 
 from JAR files
 in the corresponding lib directory -- this works both for the server
 class loader (server/classes before server/lib), the common 
 class loader
 (common/classes before common/lib) and the webapp class loader
 (WEB-INF/classes before WEB-INF/lib).
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Application running on Tomcat 4.1.3 stops resonding when installed with the Manager app

2002-08-13 Thread Collins, Jim

Hi,

I have a an application running on Tomcat 4.1.3 that frequently stops
responding for approximately 8 minutes. Tomcat itself is still running OK
and I can access the example servlets and JSP's with no problem. My
application is deployed as a WAR file using the Manager servlets install
command, and I don't know if it could be something to do with this. Below is
a stack trace from catalina.out that I get when the app stops responding: 

java.net.SocketException: Software caused connection abort
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
at java.net.ServerSocket.implAccept(ServerSocket.java:438)
at java.net.ServerSocket.accept(ServerSocket.java:409)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:335)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:518)
at java.lang.Thread.run(Thread.java:536)

If anyone has any idea why this is happening it would be appreciated.

Thanks

Jim.

PS I am still working on the app and installing it and removing it quiet a
lot as develop and at times the install and remove commands don't respond
for about 8 minutes.


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




mod_jk.so eapi needed...

2002-08-13 Thread Tomas Straupis

Hello

  I have ap13 and tc4. I want to connect them. But I can't find mod_jk.so
(eapi). jakarta.apache.org/builds/jakarta-tomcat-connectors seems empty. All
mirrors I found using google, altavista etc. are also empty (this particular
directory).

  Can somebody help me by pointing out a working link to a file (or rpm, or
whatever), or by putting that file in ftp://perkunas.vtu.lt, or just by
mailing it to me?

  Thanks in advance.

P.S. rh73 on i686.

Tomas Straupis
VGTU informaciniø sistemø skyrius



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




Start tomcat as tomcat user

2002-08-13 Thread Urtzi Larrazabal


Hi friends !

I have installed Tomcat 3.3.1 on a solaris 8 with apache 1.3.23 and mysql. If I start 
Tomcat as root there isn't any problem but when I try to run it as tomcat user there 
are several problems. 
Could anybody tell me  the requierements that this user must have to start tomcat? 
Tomcat is running on 8080.

Regards,

Urtzi.

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




AW: mod_jk.so eapi needed...

2002-08-13 Thread Ralph Einfeldt

Take it from

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux
/i386/

It's compatible with both tomcat versions.


 -Ursprüngliche Nachricht-
 Von: Tomas Straupis [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 10:32
 An: [EMAIL PROTECTED]
 Betreff: mod_jk.so eapi needed...
 
 Can't find mod_jk.so (eapi). 
 jakarta.apache.org/builds/jakarta-tomcat-connectors 
 seems empty.

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




AW: JSP vs. Servlet Paths

2002-08-13 Thread Andreas Mohrig

It's quite simple, really, although it has nothing to do with a difference
between JSP's and servlets (since JSP's are compiled into servlets). The
JSP's and servlets both live inside a context, here the
demo-web-application. Paths within scripting-elements in JSP's or
servlet-methods are (as a rule) interpreted relative to this contxt, so /
becomes /demo/. 
But when you use a form in a JSP, the following request (after the user hits
the submit-button) in fact comes from the client's browser (!), not from
within your application. Therefore, the path is interpreted relative to the
root-path of your Webserver (i.e. Tomcat or maybe Apache).

greetings

Andreas Mohrig
cadooz AG
Osterbekstr. 90b
22083 Hamburg

Email: [EMAIL PROTECTED]
Tel.:  +49.40.271 482-13 
Fax.:  +49.40.271 482-11
Web:   www.cadooz.de

-Ursprüngliche Nachricht-
Von: Adam W. Montville [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 08:01
An: [EMAIL PROTECTED]
Betreff: JSP vs. Servlet Paths


Hi all,

I'm new to this list and really need some help.  Let me frame the scenario:

I have CATALINA_HOME set to C:\jakarta-tomcat-4.0.4\jakarta-tomcat-4.0.4.
The rest of the directory structure (and file locations) is as follows:

CATALINA_HOME
  |
  +-- webapps
 |
 +-- demo
   |
   +-- jsp
   |
   +-- WEB-INF
  |
  +-- classes

The classes directory contains MyServlet.class, WEB-INF contains web.xml,
jsp contains both SourceJsp.jsp and TargetJsp.jsp.

SourceJsp.jsp displays a submit button, which then calls TargetJsp.jsp,
i.e., it contains the line FORM METHOD=POST
ACTION=/demo/jsp/TargetJsp.jsp.  I then have a Servlet, MyServlet.java
that also calls TargetJsp.jsp.  MyServlet.java contains the line
this.getServletContext().getRequestDispatcher(/jsp/TargetJsp.jsp).forward
(req, resp).

Please pay attention to the path difference between these two calls.
SourceJsp.jsp and MyServlet.java both invoke the same TargetJsp.jsp,
however, the paths are different: SourceJsp.jsp = /demo/jsp/TargetJsp.jsp;
MyServlet.java = /jsp/TargetJsp.jsp.

I need to understand why this must be the case.  What is the difference
between a JSP invoking a JSP and a Servlet invoking a JSP with regard to the
paths required for such invocation?

Thank you for your help!  I appreciate it!

Regards,

Adam



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

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




Re: Start tomcat as tomcat user

2002-08-13 Thread David Cassidy

Can you tell us what the problems are ?

You might find that some of the files belong to root and so
cannot be written to by your tomcat user. You might want to
change the ownership over to your tomcat user.

David

Urtzi Larrazabal wrote:

Hi friends !

I have installed Tomcat 3.3.1 on a solaris 8 with apache 1.3.23 and mysql. If I start 
Tomcat as root there isn't any problem but when I try to run it as tomcat user there 
are several problems. 
Could anybody tell me  the requierements that this user must have to start tomcat? 
Tomcat is running on 8080.

Regards,

Urtzi.

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

  





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




TC 4.1.9 on Win2k

2002-08-13 Thread Robert L Sowders

Has anyone been successful with TC 4.1.9 and Apache2 on Win2k?  I had 
minimal success with it, I'm wondering if it's just me.  I had TC 4.1.8 
and Apache2 running fine.  Just can't quite get 4.1.9 to run for very 
long.

Is there a reason there's is no workers2.properties file and the 
jk2.properties file is commented out in the TC 4.1.9 w32 install binary?

Does this mean that it's not functioning in-process yet?  There's nothing 
in the Readme's about it, and I didn't get a hit with a search in the mail 
list.

Anyone have any idea what's up with it?

Thanks

rls 

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




RE: Start tomcat as tomcat user

2002-08-13 Thread Urtzi Larrazabal


I have changed some permissions:

chown -R tomcat $TOMCAT_HOME/conf
chown -R tomcat $TOMCAT_HOME/logs
chown -R tomcat $TOMCAT_HOME/work

I can start tomcat without any problem but for example the aplicatins cant't 
access to mysql database.Any idea?


-Original Message-
From: David Cassidy [mailto:[EMAIL PROTECTED]]
Sent: martes 13 de agosto de 2002 11:18
To: Tomcat Users List
Subject: Re: Start tomcat as tomcat user


Can you tell us what the problems are ?

You might find that some of the files belong to root and so
cannot be written to by your tomcat user. You might want to
change the ownership over to your tomcat user.

David

Urtzi Larrazabal wrote:

Hi friends !

I have installed Tomcat 3.3.1 on a solaris 8 with apache 1.3.23 and mysql. If I start 
Tomcat as root there isn't any problem but when I try to run it as tomcat user there 
are several problems. 
Could anybody tell me  the requierements that this user must have to start tomcat? 
Tomcat is running on 8080.

Regards,

Urtzi.

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

  





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

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




AW: tomcat performance and load capability

2002-08-13 Thread Ralph Einfeldt

Which HttpConnector do you use ? (HttpConnector or Coyote)

Are you shure you set the maxProcessors for the right
connector? (Sorry to ask that, but this kind of questions
is better asked one time to often than not at all)

If you say the error message 'servlet status'
do you just mean a log message or an error message ?
In the later case, what's the error that is shown ?

You also have to look how much of the problem is due to 
your own application. 

Make shure that the settings for your connection pool
are not the bottle neck.
Make shure that you use connections as short as possible.
(E.G. don't get the connection at session start
and return it at session end, better get it from the pool
at ach request.)

If you are using apache and tomcat anyway I think you will 
get more performance if they have their own machine.

If you want to know the the difference between tomcat
standalone versus tomcat and apache on two different 
maschines it's a bit more complicated. (That depends
on several questions: how are the machines connected 
to each other, which operation system do you use,
what's the size of the pages that you have to serve, etc)

I think you have to test that with your application. 


Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: michael wimmer [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 12. August 2002 23:25
 An: 'Tomcat Users List'
 Betreff: tomcat performance and load capability
  
 I used JMeter for testing and I came up with the insight that 
 tomcat has problems if I start more than 75 concurrent threads. 

 - Our provider has uttered that running it on two machines (Solaris),
 one containing the apache web server, the other server hosting tomcat
 would be the way to do it. Since only a few popup's are HTML and all
 other pages have to be handled by Tomcat anyway (I would say more than
 80% off all request are for JSP's), I am concerned if it really is a
 good idea to have apache forwarding all pages to a different computer.
 Since we HAVE to use our providers shared MySql, the database 
 server was not part of my performance consideration.
  

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




Re: .shtml with 4.0.4

2002-08-13 Thread MadBit

 Well, I have an application on the apache directory:

/webprg/apache/htdocs/test

An example .shtml would be:

html
headtitleTesting shtml/title/head
body
Testing:
servlet code=test.HelloWorld/servlet
/body
/html


I transform to .jsps (or .jhtml i saw on a previus msg on this list)

html
headtitleTesting shtml/title/head
body
Testing:
jsp:include page=test.HelloWorld flush=true/
/body
/html


My tomcat 4.0.4 (i tested on 4.1.8 beta too) is on
/webprg/tomcat/

y put the servlets on
/webprg/tomcat/webapp/ROOT/Web-inf/classes/test/HelloWorld.class

If I call from the browser http://localhost/servlet/test.HelloWorld;
the servlet works fine. If I call the .shtml,
http://localhost/test/hello.shtml;, the static part appears and the
browser remains in awaintg data state.


This are the changes on tomcat's web.xml I made:

- Enabled de ssi servlet.
- Enabled .shtml mapping to ssi servlet

On server.xml I'm using the  ajp 1.3 connector on 8009.

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/



This is the workers.properties:

workers.tomcat_home=/webprg/tomcat
workers.java_home=/java/jdk1.4.0_01
ps=/
worker.list=ajp12, ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

---
Changes made on httpd.conf:
DocumentRoot C:/webprg/Apache/htdocs

AddType text/html .shtml
AddHandler server-parsed .shtml

LoadModule jk_module modules/mod_jk.dll
Addmodule mod_jk.c

JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
JkLogFile /webprg/apache/logs/mod_jk.log
JkLogLevel info


JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /*.shtml ajp13

 On the logs seems to do nothing but on tomcat-apache server log:

2002-08-13 11:45:52 [org.apache.catalina.connector.warp.WarpConnector]
Error accepting requests
java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)
 at java.lang.Thread.run(Thread.java:536)

On the tomcat's localhost_log:

2002-08-13 11:46:24 StandardHost[localhost]: Installing web application
at context path /webdav from URL file:C:\webprg\tomcat\webapps\webdav
2002-08-13 11:46:24 WebappLoader[/webdav]: Deploying class repositories
to work directory C:\webprg\tomcat\work\Standalone\localhost\webdav
2002-08-13 11:46:24 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-13 11:46:24 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-13 11:46:24 ContextConfig[/webdav]: Added certificates -
request attribute Valve
2002-08-13 11:46:24 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-13 11:46:24 default: init
2002-08-13 11:46:24 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-13 11:46:24 invoker: init
2002-08-13 11:46:24 jsp: init
2002-08-13 11:46:24 StandardWrapper[/webdav:ssi]: Loading container
servlet ssi
2002-08-13 11:46:24 ssi: init

No messages on mod_jk.log.


[EMAIL PROTECTED] escribió::

 Well can't pin-point the problem since you haven't provided any clues. 
What
 do the DocumentRoot, Context, and JkMount statements say? How about
 displaying the directory structure of where the jsps and shtml files are
 located.
 How about displaying the appropriate portions of the log in here. Might
 help in quickly resolving your problem.
 
 RS
 
 
 
  

   MadBit 

   madbit@telepolisTo:   Tomcat Users 
List
   .com 
[EMAIL PROTECTED]
cc: 

   08/12/02 05:07 PMSubject:  Re: .shtml 
with 4.0.4
   Please respond to 

   Tomcat Users 

   List 

  

  

 
 
 
 
 
  Any changes to httpd.conf or web.xml files? I have a 404 from
 tomcat. The pages are located on apache.
 
 [EMAIL PROTECTED] escribió::
 
  First the servlet code.../servlet isn't supported by Tomcat. It
 isn't a
  standard tag i.e. it isn't defined in the servlet specs. You should use
  jsp include / instead. Convert  the .shtml files (be careful if you
 have
  SSI includes or CGI processing in the shtml files) that contain the
  servlet tags to .jsps.
  And then replace the
  servlet code=classpath.Class/servlet
  with
  jsp:include page=/servlet/classpath.Class flush=true/
  
  
  RS
  
  
  
  
  
 
MadBit
 
madbit@telepolisTo:
 [EMAIL PROTECTED]
.comcc:
 
 Subject:  .shtml with
 4.0.4
 

Windows XP

2002-08-13 Thread David Oxley

I remember hearing that there was a bug with Windows XP that caused problems
with TC and Apache. Does anyone have any info on this?

 

Dave




RE: Windows XP

2002-08-13 Thread Reynir Hübner

we've been using all versions of tomcat since 3.2.1 with out problems on XP


 -Original Message-
 From: David Oxley [mailto:[EMAIL PROTECTED]]
 Sent: 13. ágúst 2002 09:57
 To: 'Tomcat Users List'
 Subject: Windows XP
 
 
 I remember hearing that there was a bug with Windows XP that 
 caused problems
 with TC and Apache. Does anyone have any info on this?
 
  
 
 Dave
 
 

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




Re: .shtml with 4.0.4

2002-08-13 Thread MadBit


Searching for an solution I found this:

if the .jsps I put any .jsp tag, for example,

% out.println(hello); %, this works fine. But the jsp:include 
statement seems that it's not working. Also, I copied the
.jsp to the webapp\ROOT directory on tomcat, with the same result: the 
page loads and show the static code and the other .jsp tags, but
the page keeps on awaiting data state. I test it on tomcat 4.1.8 with 
the same result. The specfied servlet o page called on the jsp:include 
tag seems that it's never called (doesn't appear in any log).

Can be a bug? Needs additional configuration to process jsp:include 
tags?


Thanks.

[EMAIL PROTECTED] wrote:

Well can't pin-point the problem since you haven't provided any clues. What
do the DocumentRoot, Context, and JkMount statements say? How about
displaying the directory structure of where the jsps and shtml files are
located.
How about displaying the appropriate portions of the log in here. Might
help in quickly resolving your problem.

RS



  
 
  MadBit  
 
  madbit@telepolisTo:   Tomcat Users List
 
  .com [EMAIL PROTECTED]  
 
   cc:
 
  08/12/02 05:07 PMSubject:  Re: .shtml with 4.0.4
 
  Please respond to   
 
  Tomcat Users   
 
  List   
 
  
 
  
 





 Any changes to httpd.conf or web.xml files? I have a 404 from
tomcat. The pages are located on apache.

[EMAIL PROTECTED] escribió::

 First the servlet code.../servlet isn't supported by Tomcat. It
isn't a
 standard tag i.e. it isn't defined in the servlet specs. You should use
 jsp include / instead. Convert  the .shtml files (be careful if you
have
 SSI includes or CGI processing in the shtml files) that contain the
 servlet tags to .jsps.
 And then replace the
 servlet code=classpath.Class/servlet
 with
 jsp:include page=/servlet/classpath.Class flush=true/
 
 
 RS
 
 
 
 
 

   MadBit

   madbit@telepolisTo:
[EMAIL PROTECTED]
   .comcc:

Subject:  .shtml with
4.0.4
   08/12/02 04:45 AM

   Please respond to

   Tomcat Users

   List

 

 

 
 
 
 
 
 Hello.
 
 I'm using Tomcat 4.0.4 with Apache 1.3.26 on Windows 2000.
 
 I want to use .shtml pages. In tomcat I enabled de SSI servlet and
 mapping on web.xml,
 and on Apache I enabled the AJP connector and enabled .shtml processing:
 
 
 
 LoadModule jk_module modules/mod_jk.dll
 Addmodule mod_jk.c
 
 JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
 JkLogFile /webprg/apache/logs/mod_jk.log
 JkLogLevel info
 
 
 
 
 
 AddType text/html .shtml
 AddHandler server-parsed .shtml
 
 ...
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 JkMOunt /*.shtml ajp13
 
 On a .shtml page I have a servlet code=classpath.Class/servlet
 call. The called Class it's working fine calling directely via
 'localhost/servlet/classpath.Class' URL but with the .shtml the Class
 seems not to be called and the browser never end to load the page,
 always it's on awaiting data state.
 
 Anyone can help me?
 
Thanks
 
 
 Rogelio Herranz
 [EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 






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







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


  






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




Re: Windows XP

2002-08-13 Thread Gabriel Gajdos

| I remember hearing that there was a bug with Windows XP that caused
| problems
| with TC and Apache. Does anyone have any info on this?

I am using TC 4.0.3 with WinXP without any problems...

There were some problems with TC when installed as a service (JVM stops when
logging off user)... This problem should had been caused by Sun JDK 1.3.1 but
from release 1.3.1_01 it is OK.

Now TC4 works great with WinXP.

GG


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




Re: mod_jk.so eapi needed...

2002-08-13 Thread MadBit

mod_jk seems the same for tc3.x. Take this:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/


Tomas Straupis wrote:

Hello

  I have ap13 and tc4. I want to connect them. But I can't find mod_jk.so
(eapi). jakarta.apache.org/builds/jakarta-tomcat-connectors seems empty. All
mirrors I found using google, altavista etc. are also empty (this particular
directory).

  Can somebody help me by pointing out a working link to a file (or rpm, or
whatever), or by putting that file in ftp://perkunas.vtu.lt, or just by
mailing it to me?

  Thanks in advance.

P.S. rh73 on i686.

Tomas Straupis
VGTU informaciniø sistemø skyrius



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


  






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




Re: Start tomcat as tomcat user

2002-08-13 Thread David Cassidy

Can you as the tomcat user using the CLI tools access the MySQL
database ?

What error message do you get when the website tries to use the DB ?

Are you using the same user in both cases ?(ie root user and tomcat user )

David



Urtzi Larrazabal wrote:

I have changed some permissions:
   
   chown -R tomcat $TOMCAT_HOME/conf
   chown -R tomcat $TOMCAT_HOME/logs
   chown -R tomcat $TOMCAT_HOME/work

I can start tomcat without any problem but for example the aplicatins cant't 
access to mysql database.Any idea?


-Original Message-
From: David Cassidy [mailto:[EMAIL PROTECTED]]
Sent: martes 13 de agosto de 2002 11:18
To: Tomcat Users List
Subject: Re: Start tomcat as tomcat user


Can you tell us what the problems are ?

You might find that some of the files belong to root and so
cannot be written to by your tomcat user. You might want to
change the ownership over to your tomcat user.

David

Urtzi Larrazabal wrote:

  

Hi friends !

I have installed Tomcat 3.3.1 on a solaris 8 with apache 1.3.23 and mysql. If I 
start Tomcat as root there isn't any problem but when I try to run it as tomcat user 
there are several problems. 
Could anybody tell me  the requierements that this user must have to start tomcat? 
Tomcat is running on 8080.

Regards,

Urtzi.

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

 







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

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

  





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




Re: mod_jk.so eapi needed...

2002-08-13 Thread MadBit


Sorry, for linux:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i386/ 



MadBit wrote:

mod_jk seems the same for tc3.x. Take this:

 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/ 



 Tomas Straupis wrote:

 Hello

  I have ap13 and tc4. I want to connect them. But I can't find mod_jk.so
 (eapi). jakarta.apache.org/builds/jakarta-tomcat-connectors seems 
 empty. All
 mirrors I found using google, altavista etc. are also empty (this 
 particular
 directory).

  Can somebody help me by pointing out a working link to a file (or 
 rpm, or
 whatever), or by putting that file in ftp://perkunas.vtu.lt, or just by
 mailing it to me?

  Thanks in advance.

 P.S. rh73 on i686.

 Tomas Straupis
 VGTU informaciniø sistemø skyrius



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


  






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







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




preconfigured persist sessions?

2002-08-13 Thread Maia Zaharieva

is tomcat configured to use persist sessions?
and if so - how can i tell tomcat to dont do so?

thanks,
maia


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




Web.xml

2002-08-13 Thread Vishal Mukherjee

Hi all

Can anyone assist me to write the web.xml in the WEB-INF directory. I have
added the context and also created directory of Jsp and servlets.


Thanks  Regards
Vishal


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




RE: Web.xml

2002-08-13 Thread Tathagat (London)

Here it is
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt

if you still got questions mail back.

cheers

-Original Message-
From: Vishal Mukherjee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 13:23
To: Tomcat Users List
Subject: Web.xml
Importance: High


Hi all

Can anyone assist me to write the web.xml in the WEB-INF directory. I have
added the context and also created directory of Jsp and servlets.


Thanks  Regards
Vishal


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


--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--


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




Mapping directory

2002-08-13 Thread Taral Shah

Is it possible to map path in topmcat.

I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc

Can I redirect this request to
http://ip:8080/context/servlet/myServlet?abc

Is it possible  with just configuring tomcat.

Thanks 
Taral Shah



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




RE: Turn off caching

2002-08-13 Thread Gunter D'Hondt

I'm still looking for a solution for my question below?
Any help is welcome pls!

Greetings,
Gunter.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Gunter D'Hondt
Sent: maandag 12 augustus 2002 12:04
To: 'Tomcat Users List'
Subject: Turn off caching


Is it possible to turn off the caching of precompiled jsp pages in tomcat4?
i would need this becoz in developer's fase it's not very usefull that
tomcat caches everything when using jsp pages that include other jsp page
etc.

Greetings,
Gunter.


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




AW: Turn off caching

2002-08-13 Thread Ralph Einfeldt


Didn't my prevoius suggestions work for you ?

RE Von: Ralph Einfeldt 
RE Gesendet: Donnerstag, 8. August 2002 14:44
RE An: 'Tomcat Users List'
RE Betreff: AW: How to clean the cache of Tomcat?
RE 
RE I would just touch all jsp files:
RE 
RE find ${CATALINA_BASE}/webapp -name *.jsp -exec touch {} \;
RE 
RE (Or just use touch on the page that makes the include)
RE 
RE Another option (that I haven't tried) is to remove the content 
RE of the work directory:
RE 
RE rm -rf ${CATALINA_BASE}/work/localhost/*
RE 

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 13:33
 An: 'Tomcat Users List'
 Betreff: RE: Turn off caching
 
 I'm still looking for a solution for my question below?
 Any help is welcome pls!
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Gunter D'Hondt
 Sent: maandag 12 augustus 2002 12:04
 To: 'Tomcat Users List'
 Subject: Turn off caching
 
 
 Is it possible to turn off the caching of precompiled jsp 
 pages in tomcat4?
 i would need this becoz in developer's fase it's not very usefull that
 tomcat caches everything when using jsp pages that include 
 other jsp page etc.
 

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




4.0.4 Embeded Tomcat

2002-08-13 Thread Vijay

Hi

I am using tomcat 4.0.4 Embeded Version. The webserver starts fine
and when i give a request it says URL not found.  Am i doing something
wrong.  Has  anybody  faced this issue.

Thanks  Regards
Vijay






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




RE: Turn off caching

2002-08-13 Thread Gunter D'Hondt

Ralph,

that works perfect but the problem is that I cannot use this method when
using a version manager tool becoz it would always believe that all scripts
are updated and we cannot see which scripts are being changed. 

currently we are using your solution but I'm looking for a better one...
thnx anyway!

Gunter  



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: dinsdag 13 augustus 2002 13:42
To: Tomcat Users List
Subject: AW: Turn off caching



Didn't my prevoius suggestions work for you ?

RE Von: Ralph Einfeldt 
RE Gesendet: Donnerstag, 8. August 2002 14:44
RE An: 'Tomcat Users List'
RE Betreff: AW: How to clean the cache of Tomcat?
RE 
RE I would just touch all jsp files:
RE 
RE find ${CATALINA_BASE}/webapp -name *.jsp -exec touch {} \;
RE 
RE (Or just use touch on the page that makes the include)
RE 
RE Another option (that I haven't tried) is to remove the content 
RE of the work directory:
RE 
RE rm -rf ${CATALINA_BASE}/work/localhost/*
RE 

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 13:33
 An: 'Tomcat Users List'
 Betreff: RE: Turn off caching
 
 I'm still looking for a solution for my question below?
 Any help is welcome pls!
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Gunter D'Hondt
 Sent: maandag 12 augustus 2002 12:04
 To: 'Tomcat Users List'
 Subject: Turn off caching
 
 
 Is it possible to turn off the caching of precompiled jsp 
 pages in tomcat4?
 i would need this becoz in developer's fase it's not very usefull that
 tomcat caches everything when using jsp pages that include 
 other jsp page etc.
 

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


attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


AW: Mapping directory

2002-08-13 Thread Andreas Mohrig

If your context happens to be cgi that should be possible. Put something 
like this in your web.xml:

servlet
servlet-namemyServlet/servlet-name
servlet-classcom.YourInstitution.servlet.myServlet/servlet-class
/servlet

servlet-mapping
servlet-namemyServlet/servlet-name
url-pattern/vq/ca.exe/url-pattern
/servlet-mapping

Otherwise the only solution I know is to use the URL rewriting capabilities
of a webserver such as apache and forward the requests in questing 
(e.g. via mod_jk) to Tomcat. I would be interested in a way to get rid off
the
sometimes unnecessary context-prefix myself.

Andreas Mohrig

-Ursprüngliche Nachricht-
Von: Taral Shah [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 13:33
An: Tomcat Users List
Betreff: Mapping directory


Is it possible to map path in topmcat.

I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc

Can I redirect this request to
http://ip:8080/context/servlet/myServlet?abc

Is it possible  with just configuring tomcat.

Thanks 
Taral Shah



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

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




AW: Turn off caching

2002-08-13 Thread Ralph Einfeldt

Sorry didn't think about that, because we
don't run our sites directly from the 
workspace of our version management.

We have jobs that copy the files from
the workspace to the runtime environment
so we can do what we want in the runtime 
environment without impacting our
buildmanagement.

Which of the two approaches do you use ?

I would guess that the second one shouldn't 
mess up your version management. (At least
everything under the work directory shouldn't
be a part of your build)

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 13:53
 An: 'Tomcat Users List'
 Betreff: RE: Turn off caching
 
 that works perfect but the problem is that I cannot use this 
 method when using a version manager tool becoz it would 
 always believe that all scripts are updated and we cannot see 
 which scripts are being changed. 
 
 currently we are using your solution but I'm looking for a 
 better one... thnx anyway!
 

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




RE: Turn off caching

2002-08-13 Thread Gunter D'Hondt

Ralph,

We have three environments: a development environment where we develop/test
our sites and a test and production environment at our clients. Copying the
files from develop environment to the test environment at our clients is
being done by making update zipfiles which only include the changed scripts
that we find by sorting all the scripts by date/time. And only the scripts
in the development environment are being checked in a version control. 
Now I want the test and production environment to use caching ofcourse but
not in the development environment.

Greetings,
Gunter 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: dinsdag 13 augustus 2002 14:27
To: Tomcat Users List
Subject: AW: Turn off caching


Sorry didn't think about that, because we
don't run our sites directly from the 
workspace of our version management.

We have jobs that copy the files from
the workspace to the runtime environment
so we can do what we want in the runtime 
environment without impacting our
buildmanagement.

Which of the two approaches do you use ?

I would guess that the second one shouldn't 
mess up your version management. (At least
everything under the work directory shouldn't
be a part of your build)

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 13:53
 An: 'Tomcat Users List'
 Betreff: RE: Turn off caching
 
 that works perfect but the problem is that I cannot use this 
 method when using a version manager tool becoz it would 
 always believe that all scripts are updated and we cannot see 
 which scripts are being changed. 
 
 currently we are using your solution but I'm looking for a 
 better one... thnx anyway!
 

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


attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Can authentication to webapps be controlled by Apache HTTPD server rather than tomcat? eom

2002-08-13 Thread Koes, Derrick

 




Tomcat Profiling using Catalina API

2002-08-13 Thread Simha, Kailas

Has anybody got experience in building a profiler for tomcat 4.0? I want to
build a tool to monitor all the applications running under various contexts
in an instance. How can I accomplish this? How can we use Catalina APIs for
this purpose? 
Any assistance with example code is much appreciated..

Kailas Simha

--
Notice: This e-mail message, together with any attachments, contains information of 
Merck  Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, 
proprietary copyrighted and/or legally privileged, and is intended solely for the use 
of the individual or entity named on this message.  If you are not the intended 
recipient, and have received this message in error, please immediately return this by 
e-mail and then delete it.

==


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




RE: Quick Question

2002-08-13 Thread Isabel Lameda

Try to create a file in your bean and see where Tomcat stores it

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 12 de Agosto de 2002 06:00 p.m.
Para: Tomcat Users List
Asunto: Quick Question


Hi all,

I wrote a simple java bean that reads a txt file, the problem is where do 
I need to put the txt file??...
What is the default directory in Tomcat??

when I put something like this in my java bean : 
FileReader(config.txt) 
Where does tomcat look for that file?

thanks
Alex

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




RE: 4.0.4 Embeded Tomcat

2002-08-13 Thread Shapira, Yoav

Hi,
For starters, what's in the webserver logs?  How do you know it starts
fine?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vijay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 6:23 PM
To: [EMAIL PROTECTED]
Subject: 4.0.4 Embeded Tomcat

Hi

I am using tomcat 4.0.4 Embeded Version. The webserver starts fine
and when i give a request it says URL not found.  Am i doing something
wrong.  Has  anybody  faced this issue.

Thanks  Regards
Vijay

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




Re: Help Please... Mod_jk +Manager App

2002-08-13 Thread Jacob Kjome

Well, it is almost useless to do this anyway because Apache Web Server 
would have to be restarted to pick up the modified JkMount stuff...unless 
you put that info inside an .htaccess file.  What I tend to do is, in 
advance, figure out all the applications I plan to run in the near future 
and add the following JkMounts

JkMount /mypossiblyexistingcontext  ajp13
JkMount /mypossiblyexistingcontext/*  ajp13

That way, my Apache Web Server is always ready for apps that I install via 
the Tomcat manager app.

Jake

At 09:47 PM 8/12/2002 -0700, you wrote:
Hi,
  I have tomcat 4.03 and apache 1.3, installed and
running fine. My issue, is when I deploy a web
application using tomcat's manager service, then the
conf/auto/mod_jk.conf is not regenerated.

How do I configure tomcat to regenerate the
mod_jk.conf file when the manager service deploys a
new web application?

Thanks


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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



AW: Turn off caching

2002-08-13 Thread Ralph Einfeldt

Nearly the same here, the only differeence is that
even in our development site we use the scripts to
copy from the version management to the place where
the development site is running. So no matter what 
happens in the development site, the date inside 
our version management is correct.

Do you currently use the touch or the remove approach ?

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 14:42
 An: 'Tomcat Users List'
 Betreff: RE: Turn off caching
 
 We have three environments: a development environment where 
 we develop/test our sites and a test and production 
 environment at our clients. Copying the files from develop 
 environment to the test environment at our clients is being 
 done by making update zipfiles which only include the changed 
 scripts that we find by sorting all the scripts by date/time. 
 And only the scripts in the development environment are being 
 checked in a version control. 
 Now I want the test and production environment to use caching 
 ofcourse but not in the development environment.
 

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




RE: installing with web app mgr, failing on getRealPath()

2002-08-13 Thread Shapira, Yoav

Hi,

What's the deal? I want to set a path to a log file by obtaining the
app realpath and then subtracting /webapps/ and substituting
/logs/. Is there a better way to do that?

For portability sake, so that you can deploy from a WAR file and don't
require it to be exploded, there are a couple of options.

- Include the complete path to a log file in your deployment descriptor,
as a context-param or init-param to some startup servlet.

- Log to a database, syslog, or another external facility.

- Log to the temporary directory (javax.servlet.context.tempdir) and
copy / persist the file upon shutdown.  Kind of similar to the first
option above, so I prefer the init-param approach.

getRealPath() will not work when deploying from a WAR, as you are doing
with the Manager app.  See the JavaDoc for ServletContext.getRealPath()
for details.  That will lead to another option:

- Use getResource() to construct the log file path with the same logic
as your original request.

I hope that helps a bit,

Yoav Shapira
Millennium ChemInformatics

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




RE: jsp in packages

2002-08-13 Thread Shapira, Yoav

Hi,
Time-saver: I don't have an answer to your questions in this message.

Q2. I have written a static method in one jsp page. I want to call
this
method in another jsp page. How to do it? I do not want to take this
method
out from the jsp and put into a class (.java) and use it in both the
jsp
files.

Why not put in a Java file?  JSPs are not meant for programming.  When
you start getting into static methods containing reusable functionality,
it sounds like you're stepping out of pure JSP development and into the
world of bean libraries if not servlets.  The right approach for Q2
above seems to be to package the common method in a bean called by both
JSP pages, or a servlet (maybe a filter?) connected to both, depending
on what the common code does.

Just my $0.02, IMHO...

Yoav Shapira
Millennium ChemInformatics

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




RE: Quick Question

2002-08-13 Thread Drinkwater, GJ (Glen)


tomcats default directory is where ever you called the startup.sh/bat file.
So if you dont use another script to call the startup.sh/bat file tomcats
default will be the bin directory.

Use this code to find the directory where WEB-INF is.  Then you can traverse
your directory structure from there. 

//get context path
ServletConfig scon = null ;
String workingDir = null;

public void init(ServletConfig config) {
scon = config ;
 }
 public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
  
//get working dir
ServletContext sc = scon.getServletContext();
workingDir = sc.getRealPath();


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




RE: Memory alloc on tomcat 4.0.4

2002-08-13 Thread Shapira, Yoav

Hi,

Hi,  Is possible to limit the amount of memory taken by each java
thread?

You can control the amount allocated to the VM.  It will be shared by
all the threads used by that VM.  You would do this using the -Xmx
runtime option.  Type java -X to see all these types of options.

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 5150 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:05 java
 5151 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5152 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:05 java
 5153 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5154 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5155 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5156 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5157 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5158 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:04 java
 5160 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5161 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5162 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5163 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5164 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5165 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5166 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5167 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5168 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java

What tomcat configuration, if I might ask, produced the above output?

Yoav Shapira
Millennium ChemInformatics

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




Re: installing with web app mgr, failing on getRealPath()

2002-08-13 Thread Jacob Kjome

First, I believe the syntax should be:
getServletContext().getRealPath(/);

Second, the returned null value is to be expected.

keep in mind that getRealPath() returns an absolute file system path to 
your application context.  When you serve the context straight out of a 
.war file, your web application does not actually exist on the file 
system.   This means that there is no place to write to within your 
app.  This is one of the perils of serving your webapp directly from a .war 
file.

The way around this is to provide a parameter at startup that tells your 
logger where to store log files.  I assume you are initializing your logger 
using a servlet that is set to run upon application startup.  If so, check 
for null being returned by getRealPath(j/) and, if so, maybe use the 
user.home system property as a place to store the log file by default or, 
if provided, use the path configured in the web.xml for the startup servlet.


Jake

At 05:12 AM 8/13/2002 +, you wrote:
When i install my app as an exploded war file in webapps it runs fine
but when I install it using Tomcat Web Application Manager it fails on
getServletContext().getRealPath();

What's the deal? I want to set a path to a log file by obtaining the
app realpath and then subtracting /webapps/ and substituting
/logs/. Is there a better way to do that?

Daniel
[EMAIL PROTECTED]

On Tue, 13 Aug 2002 03:25:30 UT, Daniel Kehoe [EMAIL PROTECTED]
said:
   Here's how to install a web app using the Tomcat Web Application
   Manager After trial and error, here's what works for files in a 
 local Windows
   file system:
   Path: /crossbar
  Config URL: file:///C:/Projects/Crossbar/dist/crossbar.xml
  WAR URL: file:///C:/Projects/Crossbar/dist/crossbar.war
  
   The Path is the context name you want for the web app, like
   http://localhost:8080/crossbar/.
  
   The Config URL is a path to a file that contains the parameters you
   would otherwise add to the server.xml file (or add to the webapps
   directory as a file crossbar.xml under the new TC4.1 scheme).
  
   The WAR URL is the path to the war file.
  It COULD begin with jar:file:// and end with !/ but it doesn't have
  to.

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



RE: Tomcat Profiling using Catalina API

2002-08-13 Thread Shapira, Yoav

Hi,
Why build your own profiler when there are great tools out there?  Is
there something you need they don't do?  

Or do you mean something else by profiler?  I assumed you meant a JPDA
implementation specifically tailored for tomcat?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Simha, Kailas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 8:48 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat Profiling using Catalina API
Importance: High

Has anybody got experience in building a profiler for tomcat 4.0? I
want to
build a tool to monitor all the applications running under various
contexts
in an instance. How can I accomplish this? How can we use Catalina APIs
for
this purpose?
Any assistance with example code is much appreciated..

Kailas Simha

---

---
Notice: This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (Whitehouse Station, New Jersey, USA)
that
may be confidential, proprietary copyrighted and/or legally privileged,
and
is intended solely for the use of the individual or entity named on
this
message.  If you are not the intended recipient, and have received this
message in error, please immediately return this by e-mail and then
delete
it.

===

===


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


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




New installation recommendations

2002-08-13 Thread Kenny G. Dubuisson, Jr.

I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
pages that access an Oracle database using JDBC (a secondary goal is
installation/configuration ease).  One recommendation I got was to use JSDK
1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries for
Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.

Any suggestions would be very much appreciated.  Thanks,
Kenny


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




Re: preconfigured persist sessions?

2002-08-13 Thread Michael E. Locasto

Maia,

In 4.0.4 and 4.1.7 (and probably all of 4.x), there is a commented out entry
in server.xml (with explanatory comments right before it). So it looks like
persistent sessions are _not_ enabled by default.

   !--
  Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store className=org.apache.catalina.session.FileStore/
  /Manager
--


Regards,
Michael



- Original Message -
From: Maia Zaharieva [EMAIL PROTECTED]
To: Tomcat User List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 7:13 AM
Subject: preconfigured persist sessions?


 is tomcat configured to use persist sessions?
 and if so - how can i tell tomcat to dont do so?

 thanks,
 maia


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


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




Re: JSP vs. Servlet Paths

2002-08-13 Thread Jacob Kjome

This is because your web browser which needs to send request to the server 
has no idea about your application context whereas 
getServletContext().getRequestDispatcher().forward() will only forward 
stuff within your own context so prepending the context would be redundant 
here.

Jake

At 11:00 PM 8/12/2002 -0700, you wrote:
Hi all,

I'm new to this list and really need some help.  Let me frame the scenario:

I have CATALINA_HOME set to C:\jakarta-tomcat-4.0.4\jakarta-tomcat-4.0.4.
The rest of the directory structure (and file locations) is as follows:

CATALINA_HOME
   |
   +-- webapps
  |
  +-- demo
|
+-- jsp
|
+-- WEB-INF
   |
   +-- classes

The classes directory contains MyServlet.class, WEB-INF contains web.xml,
jsp contains both SourceJsp.jsp and TargetJsp.jsp.

SourceJsp.jsp displays a submit button, which then calls TargetJsp.jsp,
i.e., it contains the line FORM METHOD=POST
ACTION=/demo/jsp/TargetJsp.jsp.  I then have a Servlet, MyServlet.java
that also calls TargetJsp.jsp.  MyServlet.java contains the line
this.getServletContext().getRequestDispatcher(/jsp/TargetJsp.jsp).forward
(req, resp).

Please pay attention to the path difference between these two calls.
SourceJsp.jsp and MyServlet.java both invoke the same TargetJsp.jsp,
however, the paths are different: SourceJsp.jsp = /demo/jsp/TargetJsp.jsp;
MyServlet.java = /jsp/TargetJsp.jsp.

I need to understand why this must be the case.  What is the difference
between a JSP invoking a JSP and a Servlet invoking a JSP with regard to the
paths required for such invocation?

Thank you for your help!  I appreciate it!

Regards,

Adam



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



RE: Tomcat Profiling using Catalina API

2002-08-13 Thread Simha, Kailas

I've tried out a few tools, but instead of customizing them, if it is easier
to build one, I thought of taking that route. I have tried out OptimizeIt,
JProfiler, JBoss to name a few.
Your assumption is correct - JPDA implementation specific to tomcat.
Kailas

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:17 AM
To: Tomcat Users List
Subject: RE: Tomcat Profiling using Catalina API


Hi,
Why build your own profiler when there are great tools out there?  Is
there something you need they don't do?  

Or do you mean something else by profiler?  I assumed you meant a JPDA
implementation specifically tailored for tomcat?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Simha, Kailas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 8:48 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat Profiling using Catalina API
Importance: High

Has anybody got experience in building a profiler for tomcat 4.0? I
want to
build a tool to monitor all the applications running under various
contexts
in an instance. How can I accomplish this? How can we use Catalina APIs
for
this purpose?
Any assistance with example code is much appreciated..

Kailas Simha

---

---
Notice: This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (Whitehouse Station, New Jersey, USA)
that
may be confidential, proprietary copyrighted and/or legally privileged,
and
is intended solely for the use of the individual or entity named on
this
message.  If you are not the intended recipient, and have received this
message in error, please immediately return this by e-mail and then
delete
it.

===

===


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


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


--
Notice: This e-mail message, together with any attachments, contains information of 
Merck  Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, 
proprietary copyrighted and/or legally privileged, and is intended solely for the use 
of the individual or entity named on this message. If you are not the intended 
recipient, and have received this message in error, please immediately return this by 
e-mail and then delete it.

==


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




Re: Quick Question

2002-08-13 Thread Michael E. Locasto

Alex,

Probably the current working directory, which is whatever directory Tomcat
was started out of (probably bin/, but not necessarily so). You can provide
a full file name in the code, or use your web.xml to set a context parameter
that indicates a base path to do read/write relative to in your servlet.

You could also put that file somewhere your web application's Classloader
will see it and load it via a findResource() or getResourceAsStream().

Regards,
Michael

- Original Message -
From: Isabel Lameda [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 8:50 AM
Subject: RE: Quick Question


 Try to create a file in your bean and see where Tomcat stores it

 -Mensaje original-
 De: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Enviado el: Lunes, 12 de Agosto de 2002 06:00 p.m.
 Para: Tomcat Users List
 Asunto: Quick Question


 Hi all,

 I wrote a simple java bean that reads a txt file, the problem is where do
 I need to put the txt file??...
 What is the default directory in Tomcat??

 when I put something like this in my java bean :
 FileReader(config.txt)
 Where does tomcat look for that file?

 thanks
 Alex

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


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




Re: Can authentication to webapps be controlled by Apache HTTPD serve r rather than tomcat? eom

2002-08-13 Thread Jacob Kjome


Yes, but you have to add tomcatAuthentication=false to your ajp13 
connector in server.xml.  Also, this doesn't seem to work with the Coyote 
connector, only with the normal ajp13. connector.

Once you've done this, do your athentication through Apache and use 
request.getRemoteUser() to get the name of the user who successfully logged 
in through Apache.

Jake

At 01:49 PM 8/13/2002 +0100, you wrote:




Re: Can authentication to webapps be controlled by Apache HTTPDserve r rather than tomcat? eom

2002-08-13 Thread frank delin

Do you have any reason as to why it works with the ajp13 connector but not
coyote.  I would prefer to use coyote for the Mbean stuff.

Thanks,

Frank

On Tue, 13 Aug 2002, Jacob Kjome wrote:


 Yes, but you have to add tomcatAuthentication=false to your ajp13
 connector in server.xml.  Also, this doesn't seem to work with the Coyote
 connector, only with the normal ajp13. connector.

 Once you've done this, do your athentication through Apache and use
 request.getRemoteUser() to get the name of the user who successfully logged
 in through Apache.

 Jake

 At 01:49 PM 8/13/2002 +0100, you wrote:
 



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




RE: Can authentication to webapps be controlled by Apache HTTPD serve r rather than tomcat? eom

2002-08-13 Thread Koes, Derrick


The auth seems to work through apache with this setting, but tomcat still
gives me the 403 error page.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 9:33 AM
To: Tomcat Users List
Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
serve r rather than tomcat? eom


Yes, but you have to add tomcatAuthentication=false to your ajp13 
connector in server.xml.  Also, this doesn't seem to work with the Coyote 
connector, only with the normal ajp13. connector.

Once you've done this, do your athentication through Apache and use 
request.getRemoteUser() to get the name of the user who successfully logged 
in through Apache.

Jake

At 01:49 PM 8/13/2002 +0100, you wrote:



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




RE: New installation recommendations

2002-08-13 Thread Turner, John


If you are looking for a production environment with near-guaranteed
stability, you want:

apache 1.3.26
tomcat 4.0.4
mod_jk

That's a tried and true configuration that many people are running, on
several different platforms.  tomcat 4.1.x is beta and mod_jk2 doesn't seem
to be production ready.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:20 AM
To: [EMAIL PROTECTED]
Subject: New installation recommendations


I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
pages that access an Oracle database using JDBC (a secondary goal is
installation/configuration ease).  One recommendation I got was to use JSDK
1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries for
Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.

Any suggestions would be very much appreciated.  Thanks,
Kenny


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

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




Fw: New installation recommendations

2002-08-13 Thread Kenny G. Dubuisson, Jr.

Thanks for the info.  Which JRE/JSDK should I use on that configuration?
Kenny

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 8:36 AM
Subject: RE: New installation recommendations



 If you are looking for a production environment with near-guaranteed
 stability, you want:

 apache 1.3.26
 tomcat 4.0.4
 mod_jk

 That's a tried and true configuration that many people are running, on
 several different platforms.  tomcat 4.1.x is beta and mod_jk2 doesn't
seem
 to be production ready.

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 13, 2002 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: New installation recommendations


 I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
 install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
 pages that access an Oracle database using JDBC (a secondary goal is
 installation/configuration ease).  One recommendation I got was to use
JSDK
 1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries
for
 Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.

 Any suggestions would be very much appreciated.  Thanks,
 Kenny


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

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


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




JBoss, Tomcat and Apache 1.3 with mod_jk.so

2002-08-13 Thread Sigurður Bjarnason


Does anyone know about HOWTO for this three ??

I have try to use this here..but with no luck ..! :(

http://www.pubbitch.org/jboss/mod_jk2.html

regards
Siggi


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




SOCKS and Tomcat

2002-08-13 Thread Rutledge, Aaron

Sorry list, I'm trying this again.  It got quickly buried last time, and
I just KNOW someone out there has run into this configuration problem
before.  Plus, I really have nowhere else to look--I've checked every
other resource I can think of.

I am trying to use Tomcat behind a SOCKS firewall.  I have a servlet
that is trying to access information outside the application context and
I am getting the following exceptions

java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.init(HttpClient.java:292)
at sun.net.www.http.HttpClient.init(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
...and so on


I found on a really old post that I need to set TOMCAT_OPTS =
-DsocksProxyHost=my proxy's ip -DsocksProxyPort=1080
I have set an environmental variable (I am using W2K), but I am still
having problems.  Is there something more I need to do?  I can't find
any documentation on this.  Any help GREATLY appreciated!  

Best regards, Aaron
  

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




Re: New installation recommendations

2002-08-13 Thread Jacob Kjome


http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.8-beta/

If you are using win32 use:

for Jk2
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/

for jk
http://www.acg-gmbh.de/mod_jk/


mod_jk is much simpler to use than mod_jk2 because of the beta nature of 
mod_jk2 and the sparse documentation of it.

there you go.

Jake

At 08:19 AM 8/13/2002 -0500, you wrote:
I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
pages that access an Oracle database using JDBC (a secondary goal is
installation/configuration ease).  One recommendation I got was to use JSDK
1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries for
Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.

Any suggestions would be very much appreciated.  Thanks,
Kenny


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



RE: Tomcat Profiling using Catalina API

2002-08-13 Thread Shapira, Yoav

Hi,

I've tried out a few tools, but instead of customizing them, if it is
easier
to build one, I thought of taking that route. I have tried out
OptimizeIt,
JProfiler, JBoss to name a few.

OK.  Now I move onto the realm of curiosity.  I'm a fan of OptimizeIt,
I've found it adequate for my profiling needs.  What do you find it
lacking?  

Your assumption is correct - JPDA implementation specific to tomcat.

That'f be great to have ;)  It's not a trivial thing to write.  

My biggest knock on OptimizeIt is that things run 5-10 times slower when
run with OptimizeIt, but that's to be expected.  If yours is faster and
as full-featured, you have a user right here! ;)

Yoav Shapira
Millennium ChemInformatics

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




RE: New installation recommendations

2002-08-13 Thread Turner, John


http://java.sun.com/j2se/downloads.html

1.3.1 should be fine, but I think most people have upgraded to 1.4.0 by now.

Since you are running Windows, you will want the mod_jk.dll file, which can
be found here:
http://www.acg-gmbh.de/mod_jk/

That resource mentions apache 2.0.3x, so I'm not sure if that DLL file will
work with apache 1.3.26.  I only mentioned apache 1.3.26 over 2.0.39 because
I tend to stay away from new versions until things have settled down a
bit.  Personal preference.  Many people are running 2.0.39, so you should be
OK.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:42 AM
To: [EMAIL PROTECTED]
Subject: Fw: New installation recommendations


Thanks for the info.  Which JRE/JSDK should I use on that configuration?
Kenny

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 8:36 AM
Subject: RE: New installation recommendations



 If you are looking for a production environment with near-guaranteed
 stability, you want:

 apache 1.3.26
 tomcat 4.0.4
 mod_jk

 That's a tried and true configuration that many people are running, on
 several different platforms.  tomcat 4.1.x is beta and mod_jk2 doesn't
seem
 to be production ready.

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 13, 2002 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: New installation recommendations


 I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
 install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
 pages that access an Oracle database using JDBC (a secondary goal is
 installation/configuration ease).  One recommendation I got was to use
JSDK
 1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries
for
 Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.

 Any suggestions would be very much appreciated.  Thanks,
 Kenny


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

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


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

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




Re: Can authentication to webapps be controlled by Apache HTTPD serve r rather than tomcat? eom

2002-08-13 Thread Jacob Kjome

I've asked that question a number of time before with no real response from 
the Tomcat developers except for Ignacio Ortega saying that he would look 
into it.  That was a while ago and I have seen any changes since then.

So, Tomcat developers.  Why does tomcatAuthentication=false no work with 
Coyote?  Is there some other parameter that needs to be used instead of 
this now?  If nothing is yet implemented for this, when will it be?

Jake

At 08:32 AM 8/13/2002 -0500, you wrote:
Do you have any reason as to why it works with the ajp13 connector but not
coyote.  I would prefer to use coyote for the Mbean stuff.

Thanks,

Frank

On Tue, 13 Aug 2002, Jacob Kjome wrote:

 
  Yes, but you have to add tomcatAuthentication=false to your ajp13
  connector in server.xml.  Also, this doesn't seem to work with the Coyote
  connector, only with the normal ajp13. connector.
 
  Once you've done this, do your athentication through Apache and use
  request.getRemoteUser() to get the name of the user who successfully logged
  in through Apache.
 
  Jake
 
  At 01:49 PM 8/13/2002 +0100, you wrote:
  
 


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



RE: JBoss, Tomcat and Apache 1.3 with mod_jk.so

2002-08-13 Thread Reynir Hübner

I would use this : 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

The same docs should be ok even though u're using jboss too..

hope it helps
-reynir


 -Original Message-
 From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]]
 Sent: 13. ágúst 2002 13:42
 To: Tomcat (E-mail)
 Subject: JBoss, Tomcat and Apache 1.3 with mod_jk.so
 
 
 
 Does anyone know about HOWTO for this three ??
 
 I have try to use this here..but with no luck ..! :(
 
 http://www.pubbitch.org/jboss/mod_jk2.html
 
 regards
 Siggi
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Tomcat Profiling using Catalina API

2002-08-13 Thread Simha, Kailas

Thanks :)
1. I need to profile several instances of tomcat running on several
different jvms.
2. I need to go per application, if necessary.
3. This needs to be purely in java(preferably) and portable across Unix,
Linux and Windows.
4. Ofcourse, there is this problem of overhead and sluggishness when using
OptimizeIt and thus it is not preferable on production systems.

 That'f be great to have ;)  It's not a trivial thing to write.
I understand that, but even if I can have a tech. demonstrator, we can
decide whether to take that route or not.

Let me know if I can find anything on these lines as I have reached a
dead-end right now..
Kailas


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:49 AM
To: Tomcat Users List
Subject: RE: Tomcat Profiling using Catalina API


Hi,

I've tried out a few tools, but instead of customizing them, if it is
easier
to build one, I thought of taking that route. I have tried out
OptimizeIt,
JProfiler, JBoss to name a few.

OK.  Now I move onto the realm of curiosity.  I'm a fan of OptimizeIt,
I've found it adequate for my profiling needs.  What do you find it
lacking?  

Your assumption is correct - JPDA implementation specific to tomcat.

That'f be great to have ;)  It's not a trivial thing to write.  

My biggest knock on OptimizeIt is that things run 5-10 times slower when
run with OptimizeIt, but that's to be expected.  If yours is faster and
as full-featured, you have a user right here! ;)

Yoav Shapira
Millennium ChemInformatics

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


--
Notice: This e-mail message, together with any attachments, contains information of 
Merck  Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, 
proprietary copyrighted and/or legally privileged, and is intended solely for the use 
of the individual or entity named on this message. If you are not the intended 
recipient, and have received this message in error, please immediately return this by 
e-mail and then delete it.

==


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




RE: Can authentication to webapps be controlled by Apache HTTPD s erve r rather than tomcat? eom

2002-08-13 Thread Jacob Kjome


Make sure that you don't have any security-constraint stuff set up in 
your web.xml for your app.  You either need to handle everything at the 
Apache level or let everything drop through to the Tomcat level.  I know of 
no way to do both at the same time.

Also, is Apache serving up the 403 error or is Tomcat?  The auth should 
*always* work through Apache whether you have tomcatAuthentication=false 
on the ajp13 connector or not.  The only thing that parameter controls is 
whether request.getRemoteUser() returns the value that Apache forwards onto 
tomcat or null (if tomcatAuthentication=true which is the default).

Jake

At 02:40 PM 8/13/2002 +0100, you wrote:

The auth seems to work through apache with this setting, but tomcat still
gives me the 403 error page.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:33 AM
To: Tomcat Users List
Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
serve r rather than tomcat? eom


Yes, but you have to add tomcatAuthentication=false to your ajp13
connector in server.xml.  Also, this doesn't seem to work with the Coyote
connector, only with the normal ajp13. connector.

Once you've done this, do your athentication through Apache and use
request.getRemoteUser() to get the name of the user who successfully logged
in through Apache.

Jake

At 01:49 PM 8/13/2002 +0100, you wrote:
 


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



RE: Can authentication to webapps be controlled by Apache HTTPD s erve r rather than tomcat? eom

2002-08-13 Thread Koes, Derrick


Ah, I still have my security-constraint in my web.xml.  I thought, perhaps,
as you point out, I was interpreting tomcatAuthentication=false
inappropriately.

The 403 is coming from Tomcat.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 10:07 AM
To: Tomcat Users List
Subject: RE: Can authentication to webapps be controlled by Apache HTTPD s
erve r rather than tomcat? eom


Make sure that you don't have any security-constraint stuff set up in 
your web.xml for your app.  You either need to handle everything at the 
Apache level or let everything drop through to the Tomcat level.  I know of 
no way to do both at the same time.

Also, is Apache serving up the 403 error or is Tomcat?  The auth should 
*always* work through Apache whether you have tomcatAuthentication=false 
on the ajp13 connector or not.  The only thing that parameter controls is 
whether request.getRemoteUser() returns the value that Apache forwards onto 
tomcat or null (if tomcatAuthentication=true which is the default).

Jake

At 02:40 PM 8/13/2002 +0100, you wrote:

The auth seems to work through apache with this setting, but tomcat still
gives me the 403 error page.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:33 AM
To: Tomcat Users List
Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
serve r rather than tomcat? eom


Yes, but you have to add tomcatAuthentication=false to your ajp13
connector in server.xml.  Also, this doesn't seem to work with the Coyote
connector, only with the normal ajp13. connector.

Once you've done this, do your athentication through Apache and use
request.getRemoteUser() to get the name of the user who successfully logged
in through Apache.

Jake

At 01:49 PM 8/13/2002 +0100, you wrote:
 


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


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




RE: JNDI JDBC COnnection pooling problem...

2002-08-13 Thread Alexander Wallace

I changed to username, it didn't work either.

Thanks.


On Tue, 2002-08-13 at 04:05, Andrew wrote:
 Try changing the name of your parameter from 'user' to 'username'
 
 
 That worked for me with another driver (MSSQL Server JDBC Driver)
 
 
 - Andrew
 
  -Original Message-
  From: Alexander Wallace [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, August 12, 2002 11:33 AM
  To: [EMAIL PROTECTED]
  Subject: JNDI JDBC COnnection pooling problem...
  
  
  Hello. This has to be a very simple one for those who know.
  
  I'm getting a java.lang.NullPointerException in my app, in 
  the second line here:
  
  Context ctx = (Context) new InitialContext().lookup(java:comp/env);
  conn = ((DataSource) 
  ctx.lookup(jdbc/pgsql)).getConnection(); **Error happens here**
  
  And have the following in my server.xml (I put my whole 
  context in case my error is there) 
  
  Context path=/lto docBase=lto debug=0 
  reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_lto_log. suffix=.txt
timestamp=true/
Environment name=maxExemptions type=java.lang.Integer
value=15/
Parameter name=context.param.name 
  value=context.param.value override=false/
  
  Resource name=jdbc/pgsql auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/pgsql
 
  parameternameuser/namevalueawallace/value/parameter
 
  parameternamepassword/namevaluepasswd/value/parameter
  parameternamedriverClassName/name
valueorg.postgresql.Driver/value/parameter
  parameternamedriverName/name
   
  valuejdbc:postgresql://10.100.101.1/awallace/value/parameter
/ResourceParams
Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.smtp.host/name
valuelocalhost/value
  /parameter
/ResourceParams
  
  Realm className=org.apache.catalina.realm.JDBCRealm
  debug=99
  driverName=org.postgresql.Driver
 
  connectionURL=jdbc:postgresql://10.100.101.1/awallace?user=aw
  allace;password=passwd
  userTable=tbl_users 
  userNameCol=user_name userCredCol=password
  userRoleTable=user_roles 
  roleNameCol=role_name
  digest=MD5/
  /Context
  
  
  
  Thank you in advance.
  
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: NetBeans + Tomcat 4.0.4

2002-08-13 Thread Alexander Wallace

Thankyou! I'll check it out.

On Mon, 2002-08-12 at 04:34, Larry Meadors wrote:
 In your context tag, add the reloadable=true attribute. Here is a
 link:
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
 
 This is really cool, because if you use the thread's classloader to read
 properties files, or other files, the classloader sees changes to them,
 and they get reloaded too. Too cool!
 
 InputStream is;
 
is=Thread.currentThread().getContextClassLoader().getResourceAsStream(some-file.xml);
 
 Larry
 
  [EMAIL PROTECTED] 08/10/02 11:19 AM 
 I checked the link out and actually found out that 
 it's possible to do the same by just starting 
 tomcat with./catalina.sh jpda start... 
 
 One thing the link mentions is that he uses the 
 context with reload so that tomcat doesn't have 
 to be restarted. How do you go about doing
 that? 
 
 The tomcat site talks about using the administration apps to achieve
 that but a quick google search on how to set it up (not through the
 admin apps) didn't get me what I was looking for.
 
 Thanks! 
 
 On Fri, 2002-08-09 at 23:01, Larry Meadors wrote:
  Look here:
  
 
 http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30523.html
  
  Instructions on how to set up tomcat and netbeans with the JPDA
  debugger.
  
  Larry
  
   [EMAIL PROTECTED] 08/09/02 15:59 PM 
  Does anyone here use NetBeans with tomcat 404?
  
  I'm using it, and use a small class to start tomcat from netbeans
  (instead of using the internal one that's 3.2), it works great when I
  want to debug servlets. But no JSP works, they all give error 500,
 even
  the ones in /exaples. But if i start it manually (i can't debug then,
 or
  is there a way?) the jsps work fine.
  
  The root couse starts with: java.lang.NoSuchMethodError:
  javax.servlet.ServletResponse.resetBuffer()
  
  Any clues?
  
  
  
  
  
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




AW: Tomcat Profiling using Catalina API

2002-08-13 Thread Ralph Einfeldt

Although it's not a profiler, you may have a look at 
http://hansel.sourceforge.net/

It's an open source coverage tool that uses JPDA.


 -Ursprüngliche Nachricht-
 Von: Simha, Kailas [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 16:00
 An: 'Tomcat Users List'
 Betreff: RE: Tomcat Profiling using Catalina API
 
 
 Thanks :)
 1. I need to profile several instances of tomcat running on several
 different jvms.
 2. I need to go per application, if necessary.
 3. This needs to be purely in java(preferably) and portable 
 across Unix,
 Linux and Windows.
 4. Ofcourse, there is this problem of overhead and 
 sluggishness when using
 OptimizeIt and thus it is not preferable on production systems.
 
  That'f be great to have ;)  It's not a trivial thing to write.
 I understand that, but even if I can have a tech. demonstrator, we can
 decide whether to take that route or not.
 
 Let me know if I can find anything on these lines as I have reached a
 dead-end right now..
 Kailas
 
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 13, 2002 9:49 AM
 To: Tomcat Users List
 Subject: RE: Tomcat Profiling using Catalina API
 
 
 Hi,
 
 I've tried out a few tools, but instead of customizing them, if it is
 easier
 to build one, I thought of taking that route. I have tried out
 OptimizeIt,
 JProfiler, JBoss to name a few.
 
 OK.  Now I move onto the realm of curiosity.  I'm a fan of OptimizeIt,
 I've found it adequate for my profiling needs.  What do you find it
 lacking?  
 
 Your assumption is correct - JPDA implementation specific to tomcat.
 
 That'f be great to have ;)  It's not a trivial thing to write.  
 
 My biggest knock on OptimizeIt is that things run 5-10 times 
 slower when
 run with OptimizeIt, but that's to be expected.  If yours is 
 faster and
 as full-featured, you have a user right here! ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 
 Notice: This e-mail message, together with any attachments, 
 contains information of Merck  Co., Inc. (Whitehouse 
 Station, New Jersey, USA) that may be confidential, 
 proprietary copyrighted and/or legally privileged, and is 
 intended solely for the use of the individual or entity named 
 on this message. If you are not the intended recipient, and 
 have received this message in error, please immediately 
 return this by e-mail and then delete it.
 
 ==
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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




Fw: New installation recommendations

2002-08-13 Thread Kenny G. Dubuisson, Jr.

Thanks. Next question:  Does anyone have a document which outlines the
installation steps required to get Oracle access via JSP pages.  It's my
understanding that I have to get the JDBC drivers from Oracle and also
install the Oracle Net8 client but I don't see the installation steps
required to add the JDBC to Tomcat.  Any help would again be appreciated.
Thanks,
Kenny

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 8:50 AM
Subject: RE: New installation recommendations



 http://java.sun.com/j2se/downloads.html

 1.3.1 should be fine, but I think most people have upgraded to 1.4.0 by
now.

 Since you are running Windows, you will want the mod_jk.dll file, which
can
 be found here:
 http://www.acg-gmbh.de/mod_jk/

 That resource mentions apache 2.0.3x, so I'm not sure if that DLL file
will
 work with apache 1.3.26.  I only mentioned apache 1.3.26 over 2.0.39
because
 I tend to stay away from new versions until things have settled down a
 bit.  Personal preference.  Many people are running 2.0.39, so you should
be
 OK.

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 13, 2002 9:42 AM
 To: [EMAIL PROTECTED]
 Subject: Fw: New installation recommendations


 Thanks for the info.  Which JRE/JSDK should I use on that configuration?
 Kenny

 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, August 13, 2002 8:36 AM
 Subject: RE: New installation recommendations


 
  If you are looking for a production environment with near-guaranteed
  stability, you want:
 
  apache 1.3.26
  tomcat 4.0.4
  mod_jk
 
  That's a tried and true configuration that many people are running, on
  several different platforms.  tomcat 4.1.x is beta and mod_jk2 doesn't
 seem
  to be production ready.
 
  John Turner
  [EMAIL PROTECTED]
 
  -Original Message-
  From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 13, 2002 9:20 AM
  To: [EMAIL PROTECTED]
  Subject: New installation recommendations
 
 
  I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
  install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
  pages that access an Oracle database using JDBC (a secondary goal is
  installation/configuration ease).  One recommendation I got was to use
 JSDK
  1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries
 for
  Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.
 
  Any suggestions would be very much appreciated.  Thanks,
  Kenny
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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

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


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




RE: New installation recommendations

2002-08-13 Thread Turner, John


There aren't any steps for using JDBC with tomcat, other than making sure
your database driver JARs are in CATALINA_HOME/common/lib, and then calling
them in your code.

If you want to use JNDI for setting up your JDBC connections, there are some
modifications to make to your web.xml.

Here's Oracle's JDBC FAQ:
http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm

Code examples are here:
http://www.orafaq.com/faqjdbc.htm

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 10:20 AM
To: [EMAIL PROTECTED]
Subject: Fw: New installation recommendations


Thanks. Next question:  Does anyone have a document which outlines the
installation steps required to get Oracle access via JSP pages.  It's my
understanding that I have to get the JDBC drivers from Oracle and also
install the Oracle Net8 client but I don't see the installation steps
required to add the JDBC to Tomcat.  Any help would again be appreciated.
Thanks,
Kenny

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 8:50 AM
Subject: RE: New installation recommendations



 http://java.sun.com/j2se/downloads.html

 1.3.1 should be fine, but I think most people have upgraded to 1.4.0 by
now.

 Since you are running Windows, you will want the mod_jk.dll file, which
can
 be found here:
 http://www.acg-gmbh.de/mod_jk/

 That resource mentions apache 2.0.3x, so I'm not sure if that DLL file
will
 work with apache 1.3.26.  I only mentioned apache 1.3.26 over 2.0.39
because
 I tend to stay away from new versions until things have settled down a
 bit.  Personal preference.  Many people are running 2.0.39, so you should
be
 OK.

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 13, 2002 9:42 AM
 To: [EMAIL PROTECTED]
 Subject: Fw: New installation recommendations


 Thanks for the info.  Which JRE/JSDK should I use on that configuration?
 Kenny

 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, August 13, 2002 8:36 AM
 Subject: RE: New installation recommendations


 
  If you are looking for a production environment with near-guaranteed
  stability, you want:
 
  apache 1.3.26
  tomcat 4.0.4
  mod_jk
 
  That's a tried and true configuration that many people are running, on
  several different platforms.  tomcat 4.1.x is beta and mod_jk2 doesn't
 seem
  to be production ready.
 
  John Turner
  [EMAIL PROTECTED]
 
  -Original Message-
  From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 13, 2002 9:20 AM
  To: [EMAIL PROTECTED]
  Subject: New installation recommendations
 
 
  I'm looking for recommendations on what versions of JRE/Apache/Tomcat to
  install on a Windows NT 4.0 server.  The ultimate goal is to author JSP
  pages that access an Oracle database using JDBC (a secondary goal is
  installation/configuration ease).  One recommendation I got was to use
 JSDK
  1.4.0_01, Apache 2.0.39, and Tomcat 4.1.8 but I can't find any binaries
 for
  Apache 2.x for Win32 and Tomcat 4.1.x seems to be Beta.
 
  Any suggestions would be very much appreciated.  Thanks,
  Kenny
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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

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


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

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




apache integration

2002-08-13 Thread michael wimmer

hi,

what is the proper module for integrating tomcat 4 into apache?

the documentation talks about mod_jk, but what role do mod_jserv and
mod_webapp play?

tia 

michael


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




RE: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

Hi all,

I'm trying to resolve this problem with all the solutions that you gave 
me,  but it doesn't work...
This is what I did:

in my java bean (not a servlet), I have this code:


public class DbBean {
   public  int Connect()  {
   InputStream is = 
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
if (is == null) {
return 0;
}
else {
return 1;
}
}


then in my jsp, I called this method, and then I write the value (0 or 
1)..

The txt file is in WEB-INF/classes/beans..., because DbBean is in a 
package called beans, and I start tomcat from TOMCAT_HOME/bin..
When I load the jsp, the method Connect of the DbBean (java bean) returned 
0, which means the InputStream is null, but if I put the txt file in
TOMCAT_HOME/bin, I had no problem, the method returned 1  why is 
that??.. I'm using Tomcat 3.2
Do I need to set something else in Tomcat??

thanks again
Alex Tomita













Drinkwater, GJ (Glen) [EMAIL PROTECTED]
13/08/2002 08:11 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Quick Question




tomcats default directory is where ever you called the startup.sh/bat 
file.
So if you dont use another script to call the startup.sh/bat file tomcats
default will be the bin directory.

Use this code to find the directory where WEB-INF is.  Then you can 
traverse
your directory structure from there. 

//get context path
ServletConfig scon = null ;
String workingDir = null;
 
public void init(ServletConfig config) {
scon = config ;
 }
 public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
 
//get working dir
ServletContext sc = scon.getServletContext();
workingDir = sc.getRealPath();


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






unpackwars-true ??

2002-08-13 Thread Mehdi . Nejad

Hi, 

Im using tomcat 4.0.2.  Im use the defualt Host ...  tag in my 
server.xml for my app contexts, always been fine till I needed to have one 
unpack wars automagically. 

Host name=localhost debug=0 appBase=webapps unpackWARs=true

Now, I place a war file in the default webapps folder, and as id expect, 
it is unpacked.  However, it is not unpacked in the context which i create 
!.. all other things appear to work fine.

this is the context :

Context path=/struts docBase=d:\webcontainer\struts debug=0/

The only difference is that this sites in a totally different place to the 
applications base specified in the Host tag.  Im pretty sure it should 
still work though, everything else is fine..

Any help would be much appreciated. 

Thanks


Mehdi Nejad - Senior Developer
[EMAIL PROTECTED]
~~
Bluewave Ltd - Online Creations
http://www.bluewave.com
Tel. +44 (0)20 7706 3500
~~

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




RE: Can authentication to webapps be controlled by Apache HTTPD s erve r rather than tomcat? eom

2002-08-13 Thread Koes, Derrick


I guess this might have been an obvious detail.  However, I missed it in
the documentation.  I spent over a day trying to figure out why this was a
problem.  Removing the security-constraint in web.xml did the trick.
However,  it's just another step.  Seems like tomcatAuthentication attribute
on the AJP connector is misleading.


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 10:07 AM
To: Tomcat Users List
Subject: RE: Can authentication to webapps be controlled by Apache HTTPD s
erve r rather than tomcat? eom


Make sure that you don't have any security-constraint stuff set up in 
your web.xml for your app.  You either need to handle everything at the 
Apache level or let everything drop through to the Tomcat level.  I know of 
no way to do both at the same time.

Also, is Apache serving up the 403 error or is Tomcat?  The auth should 
*always* work through Apache whether you have tomcatAuthentication=false 
on the ajp13 connector or not.  The only thing that parameter controls is 
whether request.getRemoteUser() returns the value that Apache forwards onto 
tomcat or null (if tomcatAuthentication=true which is the default).

Jake

At 02:40 PM 8/13/2002 +0100, you wrote:

The auth seems to work through apache with this setting, but tomcat still
gives me the 403 error page.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 9:33 AM
To: Tomcat Users List
Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
serve r rather than tomcat? eom


Yes, but you have to add tomcatAuthentication=false to your ajp13
connector in server.xml.  Also, this doesn't seem to work with the Coyote
connector, only with the normal ajp13. connector.

Once you've done this, do your athentication through Apache and use
request.getRemoteUser() to get the name of the user who successfully logged
in through Apache.

Jake

At 01:49 PM 8/13/2002 +0100, you wrote:
 


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


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




AW: apache integration

2002-08-13 Thread Ralph Einfeldt

These all all different modules to reach the same goal:
connect apache with tomcat.

mod_jserv
  - the module that came from the jserv servlet engine 
for apache. Just forget about it if you use tomcat.

mod_jk successor of mod_jserv
  - Currently the best (At least that's what I sample 
from the traffic in this list) connector for apache

mod_jk2 successor of mod_jk
  - currently in alpha or beta state
AFAIK this development branch was induced through
the release of apache 2.

mod_webapp
  - Was intended as a replacement for mod_jk
in tomcat 4. It's a complete redisign.
As it wasn't ready when tomcat 4 was released
mod_jk has been changed to allow an integration
with tomcat 4. Although mod_webapp seams to have 
reached a state where it's close to production 
quality it has some drawbacks, so people like to 
continue to use mod_jk. From what I see in this 
list the development of mod_jk is more active 
than mod_webapp.

 -Ursprüngliche Nachricht-
 Von: michael wimmer [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 16:31
 An: Tomcat Users List
 Betreff: apache integration
 
 
 hi,
 
 what is the proper module for integrating tomcat 4 into apache?
 
 the documentation talks about mod_jk, but what role do mod_jserv and
 mod_webapp play?
 
 tia 
 
 michael
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

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




RE: apache integration

2002-08-13 Thread Turner, John


mod_jserv: old, uses AJP12
mod_jk: current, production ready, allows separation of static and dynamic
content, load balancing, uses AJP13
mod_webapp: current, production, does not allow separation of static and
dynamic content, no load balancing, uses WARP
mod_jk2: current, beta

John Turner
[EMAIL PROTECTED]

-Original Message-
From: michael wimmer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 10:31 AM
To: Tomcat Users List
Subject: apache integration


hi,

what is the proper module for integrating tomcat 4 into apache?

the documentation talks about mod_jk, but what role do mod_jserv and
mod_webapp play?

tia 

michael


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

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




RE: unpackwars-true ??

2002-08-13 Thread Shapira, Yoav

Hi,

Now, I place a war file in the default webapps folder, and as id
expect,
it is unpacked.  However, it is not unpacked in the context which i
create
!.. all other things appear to work fine.

Does the name of the context, as specified in the context element of
server.xml, match the war file name?

Also, consider upgrading to 4.0.4 to get the latest bugfixes ;)  Should
be a trivial move from 4.0.2 to 4.0.4.

Yoav Shapira
Millennium ChemInformatics

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




RE: unpackwars-true ??

2002-08-13 Thread Mehdi . Nejad

** Does the name of the context, as specified in the context element of
server.xml, match the war file name?

the answer is no it doesnt, but neither does the example that works in the 
default webapps folder, i just specified localhost/jarname - and it 
extracted and worked.

I shall upgradeTomcat - your right...

Mehdi





Shapira, Yoav [EMAIL PROTECTED]
13/08/2002 15:42
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: unpackwars-true  ??


Hi,

Now, I place a war file in the default webapps folder, and as id
expect,
it is unpacked.  However, it is not unpacked in the context which i
create
!.. all other things appear to work fine.

Does the name of the context, as specified in the context element of
server.xml, match the war file name?

Also, consider upgrading to 4.0.4 to get the latest bugfixes ;)  Should
be a trivial move from 4.0.2 to 4.0.4.

Yoav Shapira
Millennium ChemInformatics

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





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




Re: Memory alloc on tomcat 4.0.4

2002-08-13 Thread Rodrigo Giammarini

Hi
The output I pasted is a output of the top command on Linux. If you are
asking why I have so many   threads the answer is I don't know! I think that
are threads between tomcat and apache that are never  closed.


RG


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 10:10 AM
Subject: RE: Memory alloc on tomcat 4.0.4


Hi,

Hi,  Is possible to limit the amount of memory taken by each java
thread?

You can control the amount allocated to the VM.  It will be shared by
all the threads used by that VM.  You would do this using the -Xmx
runtime option.  Type java -X to see all these types of options.

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 5150 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:05 java
 5151 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5152 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:05 java
 5153 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5154 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5155 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5156 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5157 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5158 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:04 java
 5160 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5161 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5162 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5163 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5164 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5165 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5166 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5167 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
 5168 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java

What tomcat configuration, if I might ask, produced the above output?

Yoav Shapira
Millennium ChemInformatics

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



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




RE: unpackwars-true ??

2002-08-13 Thread Mehdi . Nejad

Heres a quick turnaround for you !

I upgraded to tomcat 4.0.4.  it appears not to have changed my server.xml 
file, and everything works still, which is nice.

Everything appart from unpackwars=true that is :(, my war file is still 
not unpacking

http://localhost/struts/blablabla gives a 404.

any more ideas ?

Mehdi






[EMAIL PROTECTED]
13/08/2002 15:49
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: unpackwars-true  ??


** Does the name of the context, as specified in the context element of
server.xml, match the war file name?

the answer is no it doesnt, but neither does the example that works in the 

default webapps folder, i just specified localhost/jarname - and it 
extracted and worked.

I shall upgradeTomcat - your right...

Mehdi





Shapira, Yoav [EMAIL PROTECTED]
13/08/2002 15:42
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: unpackwars-true  ??


Hi,

Now, I place a war file in the default webapps folder, and as id
expect,
it is unpacked.  However, it is not unpacked in the context which i
create
!.. all other things appear to work fine.

Does the name of the context, as specified in the context element of
server.xml, match the war file name?

Also, consider upgrading to 4.0.4 to get the latest bugfixes ;)  Should
be a trivial move from 4.0.2 to 4.0.4.

Yoav Shapira
Millennium ChemInformatics

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





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





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




Apache+Tomcat+mod_jk

2002-08-13 Thread Christoph Fischer

Hello,

I need some help considering session affinity.

I'm using apache connected to two tomcat's via mod_jk and ajp13.
My webpages sends some formular-data to tomcat which generates a
new html-form. The problem is that when sending the new html-form back,
apache redericts it to the second server. Apache is switching back and forth
between the two tomcats after each reply.
Where did I miss a configuration that I stick with the tomcat I first 
called from my browser?

thanks for your help
Chris


the workers.properties file:

workers.tomcat_home=d:\tomcat
ps=\

#list workers
worker.list=tomcat1, tomcat2, loadbalancer

worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=9009
worker.tomcat2.host=tomcat2IP
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100


worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2



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




Engine className for use with Ajp13Connector

2002-08-13 Thread Brendan Benke

this is my server.xml file.  am i using the correct class for the Engine?

Server port=8005 shutdown=SHUTDOWN debug=0

   DefaultContext reloadable=true/

   Service name=Tomcat-Apache

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/


 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=192.168.0.1 debug=0

   Host name=192.168.0.1 debug=0 appBase=webapps
unpackWARs=true

 Context path=/site docBase=site debug=0 privileged=false
reloadable=true
 Loader delegate=true debug=3/
 /Context

   /Host

   Logger className=org.apache.catalina.logger.FileLogger
   verbosity=4
   prefix=apache_log. suffix=.txt
   timestamp=true/

   Realm className=org.apache.catalina.realm.MemoryRealm /



 /Engine

   /Service

 /Server




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




RE: Quick Question

2002-08-13 Thread Drinkwater, GJ (Glen)

hi

what you should try to do is either from your jsp use the method I suggested
before and pass the info to your bean, or if this is a config file, use this
method which works I have just tried it, to load your file into a properties
class.

Properties conf = new Properties();
conf.load(getClass().getResource(config.txt).openStream());

then you can extract the information.

glen


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




RE: Memory alloc on tomcat 4.0.4

2002-08-13 Thread Shapira, Yoav

Hi,

The output I pasted is a output of the top command on Linux. If you
are
asking why I have so many   threads the answer is I don't know! I think
that are threads between tomcat and apache that are never  closed.

I wasn't asking why you have so many threads ;)  I was asking for the
details of the configuration.  How is tomcat configured?  Java runtime
settings, server.xml maxProcessors, etc.

Yoav Shapira
Millennium ChemInformatics

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




Re[2]: unpackwars-true ??

2002-08-13 Thread Jacob Kjome

Hello Mehdi,

This is a known bug/feature.  Don't remember which bug in Apache's bug
database, but you should either be able to find it by search the list
archives or searching the Apache bug database.
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2
http://nagoya.apache.org/bugzilla/index.html


I can kind of understand why it doesn't do it automatically since the
Context element configuration could point directly to the .war file
itself making the unpacking an extra unneeded step.  However, I would
think that if the docBase attribute points to a directory, Tomcat
could look for the referenced directory.  If that doesn't exist, it
could then look for a .war file of the same name as the referenced
directory (minus .war) at the same directory level as would
contain the referenced directory and unpack it just like Tomcat
normally does when the Context element doesn't exist.


Jake

Tuesday, August 13, 2002, 10:07:24 AM, you wrote:

MNbc Heres a quick turnaround for you !

MNbc I upgraded to tomcat 4.0.4.  it appears not to have changed my server.xml 
MNbc file, and everything works still, which is nice.

MNbc Everything appart from unpackwars=true that is :(, my war file is still 
MNbc not unpacking

MNbc http://localhost/struts/blablabla gives a 404.

MNbc any more ideas ?

MNbc Mehdi






MNbc [EMAIL PROTECTED]
MNbc 13/08/2002 15:49
MNbc Please respond to Tomcat Users List

 
MNbc To: Tomcat Users List [EMAIL PROTECTED]
MNbc cc: 
MNbc Subject:RE: unpackwars-true  ??


MNbc ** Does the name of the context, as specified in the context element of
MNbc server.xml, match the war file name?

MNbc the answer is no it doesnt, but neither does the example that works in the 

MNbc default webapps folder, i just specified localhost/jarname - and it 
MNbc extracted and worked.

MNbc I shall upgradeTomcat - your right...

MNbc Mehdi





MNbc Shapira, Yoav [EMAIL PROTECTED]
MNbc 13/08/2002 15:42
MNbc Please respond to Tomcat Users List

 
MNbc To: Tomcat Users List [EMAIL PROTECTED]
MNbc cc: 
MNbc Subject:RE: unpackwars-true  ??


MNbc Hi,

Now, I place a war file in the default webapps folder, and as id
MNbc expect,
it is unpacked.  However, it is not unpacked in the context which i
MNbc create
!.. all other things appear to work fine.

MNbc Does the name of the context, as specified in the context element of
MNbc server.xml, match the war file name?

MNbc Also, consider upgrading to 4.0.4 to get the latest bugfixes ;)  Should
MNbc be a trivial move from 4.0.2 to 4.0.4.

MNbc Yoav Shapira
MNbc Millennium ChemInformatics

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





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





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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: Memory alloc on tomcat 4.0.4

2002-08-13 Thread Michael E. Locasto

Hi,

I believe that the reason you have so many java threads is due to the way
the jdk/jre is implemented for linux, you'll see basically every thread in
top or ps.

http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-
4.html#ss4.2


Michael

- Original Message -
From: Rodrigo Giammarini [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 11:03 AM
Subject: Re: Memory alloc on tomcat 4.0.4


 Hi
 The output I pasted is a output of the top command on Linux. If you are
 asking why I have so many   threads the answer is I don't know! I think
that
 are threads between tomcat and apache that are never  closed.


 RG


 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, August 13, 2002 10:10 AM
 Subject: RE: Memory alloc on tomcat 4.0.4


 Hi,

 Hi,  Is possible to limit the amount of memory taken by each java
 thread?

 You can control the amount allocated to the VM.  It will be shared by
 all the threads used by that VM.  You would do this using the -Xmx
 runtime option.  Type java -X to see all these types of options.

   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  5150 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:05 java
  5151 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5152 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:05 java
  5153 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5154 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5155 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5156 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5157 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5158 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:04 java
  5160 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5161 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5162 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5163 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5164 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5165 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5166 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5167 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java
  5168 geodem 9   0 56888  49M 26560 S 0.0 39.7   0:00 java

 What tomcat configuration, if I might ask, produced the above output?

 Yoav Shapira
 Millennium ChemInformatics

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



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


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




RE: unpackwars-true ??

2002-08-13 Thread andrew_hart


It will unpack to the context matching the name of the war file, not what
is specified in the web.xml file.

The only other deployment issue I have run into is that you must have a
temp directory under CATALINA_HOME; specifically taglib jars with internal
tag lib descriptors will not deploy properly unless you do.




Heres a quick turnaround for you !

I upgraded to tomcat 4.0.4.  it appears not to have changed my server.xml
file, and everything works still, which is nice.

Everything appart from unpackwars=true that is :(, my war file is still
not unpacking

http://localhost/struts/blablabla gives a 404.

any more ideas ?

Mehdi


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




Re[2]: Quick Question

2002-08-13 Thread Jacob Kjome

Hello TOMITA,

Where does your Bean exist?  Is it in one of Tomcat's classloaders, or
is it running out the WEB-INF/classes or WEB-INF/lib folder of your
webapp.  I'm geussing the it is in one of Tomcat's classloaders
meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib in
Tomcat-4.1.x).

Those classloaders can't see the individual webapp classloaders.
However, libraries in your webapp *can* see Tomcat's plublic
classloaders (all bug server/lib, server/classes).

You may have to rearrange the location of your libraries.

Jake

Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

TLC Hi all,

TLC I'm trying to resolve this problem with all the solutions that you gave 
TLC me,  but it doesn't work...
TLC This is what I did:

TLC in my java bean (not a servlet), I have this code:


TLC public class DbBean {
TLCpublic  int Connect()  {
TLCInputStream is = 
TLC Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
TLC if (is == null) {
TLC return 0;
TLC }
TLC else {
TLC return 1;
TLC }
TLC }


TLC then in my jsp, I called this method, and then I write the value (0 or 
TLC 1)..

TLC The txt file is in WEB-INF/classes/beans..., because DbBean is in a 
TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
TLC When I load the jsp, the method Connect of the DbBean (java bean) returned 
TLC 0, which means the InputStream is null, but if I put the txt file in
TLC TOMCAT_HOME/bin, I had no problem, the method returned 1  why is 
TLC that??.. I'm using Tomcat 3.2
TLC Do I need to set something else in Tomcat??

TLC thanks again
TLC Alex Tomita













TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
TLC 13/08/2002 08:11 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:RE: Quick Question




TLC tomcats default directory is where ever you called the startup.sh/bat 
TLC file.
TLC So if you dont use another script to call the startup.sh/bat file tomcats
TLC default will be the bin directory.

TLC Use this code to find the directory where WEB-INF is.  Then you can 
TLC traverse
TLC your directory structure from there. 

TLC //get context path
TLC ServletConfig scon = null ;
TLC String workingDir = null;
 
TLC public void init(ServletConfig config) {
TLC scon = config ;
TLC  }
TLC  public void doPost(HttpServletRequest request, HttpServletResponse
TLC response)
TLC throws ServletException, IOException {
 
TLC //get working dir
TLC ServletContext sc = scon.getServletContext();
TLC workingDir = sc.getRealPath();


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






-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




HTTP 503 error for all servlets

2002-08-13 Thread Todd Young

I'm trying to run Tomcat 4.0.4 and get HTTP 503 errors
for all servlets including the examples. I only have
one instance of the servlet.jar file in my classpath,
and it's the one that came with the 4.0.4
distribution. I get the following exception --

javax.servlet.ServletException: Error instantiating
servlet class org.apache.jasper.servlet.JspServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:895)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.IncompatibleClassChangeError: Implementing
class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
java.security.SecureClassLoader.defineClass(Unknown
Source)
at java.net.URLClassLoader.defineClass(Unknown
Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:674)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1093)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:886)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



RE: SSL Connection Tomcat and Apache

2002-08-13 Thread Pooleery, Manoj

i have it working on different machines.  Tomcat on one machine and apache
on another.  SSL will work irrespective of the machines, as long as both of
the machines can see each other.(i mean on the same network).

-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 4:38 PM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


What about the transmittions between Apache and Tomcat? I realize if they
are on the same machine it isn't a problem, but what about if it is on a
different machine? 

This is all for the intranet.

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


In the httpd.conf file of apache, you can implement the virtual host
directive for SSL.  The port used is 443.  You have to have an entry like
this - 

##
## SSL Virtual Host Context
##

VirtualHost server_name:443

#  General setup for the virtual host
DocumentRoot C:/Apache/htdocs
ServerName server_name
ServerAdmin webmaster@localhost
ErrorLog logs/ssl/error.log
TransferLog logs/ssl/access.log

SSLCertificateFile certificate_location/certificate_name
SSLCertificateKeyFile certificate_key_location/certificate_key
/VirtualHost  

you have to generate a CSR file(instructions for creating a CSR can be found
at http://www.verisign.com/support/csr/apache/v01.html).  Once you create a
CSR, you can send it to any of the certificate issuing authorities(verisign,
thawte etc) and once you get a certificate, you make the above changes in
the httpd.conf.

Thanks
Manoj.

-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 4:21 PM
To: '[EMAIL PROTECTED]'
Subject: SSL Connection Tomcat and Apache


I have Apache and Tomcat working together, but now I am curious on security.
How I do implement SSL on that connection?

Mike Wills
IT Corporate Support
Taylor Corporation
[EMAIL PROTECTED]
Phone: (507) 386-3187


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

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

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

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




Re: jsp in packages

2002-08-13 Thread Craig R. McClanahan



On Tue, 13 Aug 2002, D Bamud wrote:

 Date: Tue, 13 Aug 2002 12:27:53 +0530
 From: D Bamud [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: jsp in packages

 Q1. Can I declare my jsp files in packages? How?


No.  You have zero control over what package the JSP compiler puts your
page in, or even what the class name of the generated servlet is.

 Q2. I have written a static method in one jsp page. I want to call  this
 method in another jsp page. How to do it? I do not want to take this method
 out from the jsp and put into a class (.java) and use it in both the jsp
 files.


You need to rethink your do not want to take this method out
statement.  JSP pages and servlets are designed to be totally independent
components, and you can't get a reference to an instance of one page or
servlet from another.  Shared logic and shared data *must* be stored in
separate classes.

And, you're going to need to understand how to organize your code properly
to work on larger scale projects anyway, so now is a good time to start.
Hint -- putting logic in your JSP pages is not a good design practice.

Craig


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




RE: SSL Connection Tomcat and Apache

2002-08-13 Thread Turner, John


Thanks for your post with the configuration in it...SSL between apache and
tomcat is something I have been wanting to research for awhile now, and your
info will make it easier to do that.

That said, I'm curious to know how you are verifying that SSL is working
between apache and tomcat on different machines.  How do you know the
datastream is truly encrypted?  I'm not questioning your setup, I'm asking
how I will know the same thing for sure once I set it up myself.  Having SSL
setup on both machines is no guarantee that the datastream is encrypted. 

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:27 AM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


i have it working on different machines.  Tomcat on one machine and apache
on another.  SSL will work irrespective of the machines, as long as both of
the machines can see each other.(i mean on the same network).

-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 4:38 PM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


What about the transmittions between Apache and Tomcat? I realize if they
are on the same machine it isn't a problem, but what about if it is on a
different machine? 

This is all for the intranet.

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


In the httpd.conf file of apache, you can implement the virtual host
directive for SSL.  The port used is 443.  You have to have an entry like
this - 

##
## SSL Virtual Host Context
##

VirtualHost server_name:443

#  General setup for the virtual host
DocumentRoot C:/Apache/htdocs
ServerName server_name
ServerAdmin webmaster@localhost
ErrorLog logs/ssl/error.log
TransferLog logs/ssl/access.log

SSLCertificateFile certificate_location/certificate_name
SSLCertificateKeyFile certificate_key_location/certificate_key
/VirtualHost  

you have to generate a CSR file(instructions for creating a CSR can be found
at http://www.verisign.com/support/csr/apache/v01.html).  Once you create a
CSR, you can send it to any of the certificate issuing authorities(verisign,
thawte etc) and once you get a certificate, you make the above changes in
the httpd.conf.

Thanks
Manoj.

-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 4:21 PM
To: '[EMAIL PROTECTED]'
Subject: SSL Connection Tomcat and Apache


I have Apache and Tomcat working together, but now I am curious on security.
How I do implement SSL on that connection?

Mike Wills
IT Corporate Support
Taylor Corporation
[EMAIL PROTECTED]
Phone: (507) 386-3187


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

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

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

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

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




RE: SSL Connection Tomcat and Apache

2002-08-13 Thread Wills, Mike N. (TC)

How is this set up then?

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 10:27 AM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


i have it working on different machines.  Tomcat on one machine and apache
on another.  SSL will work irrespective of the machines, as long as both of
the machines can see each other.(i mean on the same network).

-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 4:38 PM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


What about the transmittions between Apache and Tomcat? I realize if they
are on the same machine it isn't a problem, but what about if it is on a
different machine? 

This is all for the intranet.

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: SSL Connection Tomcat and Apache


In the httpd.conf file of apache, you can implement the virtual host
directive for SSL.  The port used is 443.  You have to have an entry like
this - 

##
## SSL Virtual Host Context
##

VirtualHost server_name:443

#  General setup for the virtual host
DocumentRoot C:/Apache/htdocs
ServerName server_name
ServerAdmin webmaster@localhost
ErrorLog logs/ssl/error.log
TransferLog logs/ssl/access.log

SSLCertificateFile certificate_location/certificate_name
SSLCertificateKeyFile certificate_key_location/certificate_key
/VirtualHost  

you have to generate a CSR file(instructions for creating a CSR can be found
at http://www.verisign.com/support/csr/apache/v01.html).  Once you create a
CSR, you can send it to any of the certificate issuing authorities(verisign,
thawte etc) and once you get a certificate, you make the above changes in
the httpd.conf.

Thanks
Manoj.

-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 4:21 PM
To: '[EMAIL PROTECTED]'
Subject: SSL Connection Tomcat and Apache


I have Apache and Tomcat working together, but now I am curious on security.
How I do implement SSL on that connection?

Mike Wills
IT Corporate Support
Taylor Corporation
[EMAIL PROTECTED]
Phone: (507) 386-3187


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

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

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

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

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




AW: Apache+Tomcat+mod_jk

2002-08-13 Thread Ralph Einfeldt


Did you define a unique jvmroute for each in server.xml ?

Engine jvmRoute=tomcat1 ...
Engine jvmRoute=tomcat2 ...

Have you encoded the action for the form(s) ?
Otherwise you will have problems if cookies 
are diabled.

 -Ursprüngliche Nachricht-
 Von: Christoph Fischer [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. August 2002 17:19
 An: [EMAIL PROTECTED]
 Betreff: Apache+Tomcat+mod_jk
 
 
 I'm using apache connected to two tomcat's via mod_jk and ajp13.
 My webpages sends some formular-data to tomcat which generates a
 new html-form. The problem is that when sending the new html-form 
 back, apache redericts it to the second server. Apache is switching 
 back and forth between the two tomcats after each reply.

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




Re: Re[2]: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

My bean is WEB-INF/classes






Jacob Kjome [EMAIL PROTECTED]
13/08/2002 10:43 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re[2]: Quick Question



Hello TOMITA,

Where does your Bean exist?  Is it in one of Tomcat's classloaders, or
is it running out the WEB-INF/classes or WEB-INF/lib folder of your
webapp.  I'm geussing the it is in one of Tomcat's classloaders
meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib in
Tomcat-4.1.x).

Those classloaders can't see the individual webapp classloaders.
However, libraries in your webapp *can* see Tomcat's plublic
classloaders (all bug server/lib, server/classes).

You may have to rearrange the location of your libraries.

Jake

Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

TLC Hi all,

TLC I'm trying to resolve this problem with all the solutions that you 
gave 
TLC me,  but it doesn't work...
TLC This is what I did:

TLC in my java bean (not a servlet), I have this code:


TLC public class DbBean {
TLCpublic  int Connect()  {
TLCInputStream is = 
TLC 
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
TLC if (is == null) {
TLC return 0;
TLC }
TLC else {
TLC return 1;
TLC }
TLC }


TLC then in my jsp, I called this method, and then I write the value (0 
or 
TLC 1)..

TLC The txt file is in WEB-INF/classes/beans..., because DbBean is in 
a 
TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
TLC When I load the jsp, the method Connect of the DbBean (java bean) 
returned 
TLC 0, which means the InputStream is null, but if I put the txt file in
TLC TOMCAT_HOME/bin, I had no problem, the method returned 1  why 
is 
TLC that??.. I'm using Tomcat 3.2
TLC Do I need to set something else in Tomcat??

TLC thanks again
TLC Alex Tomita













TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
TLC 13/08/2002 08:11 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:RE: Quick Question




TLC tomcats default directory is where ever you called the startup.sh/bat 

TLC file.
TLC So if you dont use another script to call the startup.sh/bat file 
tomcats
TLC default will be the bin directory.

TLC Use this code to find the directory where WEB-INF is.  Then you can 
TLC traverse
TLC your directory structure from there. 

TLC //get context path
TLC ServletConfig scon = null ;
TLC String workingDir = null;
 
TLC public void init(ServletConfig config) {
TLC scon = config ;
TLC  }
TLC  public void doPost(HttpServletRequest request, HttpServletResponse
TLC response)
TLC throws ServletException, IOException {
 
TLC //get working dir
TLC ServletContext sc = scon.getServletContext();
TLC workingDir = sc.getRealPath();


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






-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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






Re[4]: Quick Question

2002-08-13 Thread Jacob Kjome

Hello TOMITA,

If the file exists in the same package as the Bean, then just do:

Properties props = new Properties();
try {
InputStream propsStream = this.getClass().getResourceAsStream(config.txt);
if (propsStream != null) {
props.load(propsStream);
propsStream.close();
}
} catch (IOException e) {
System.err.println(Caught IOException:  + e.getMessage());
}


When you use
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt),
you run the risk of finding a file with the same name somewhere earlier
in the classpath, although it should have been able to find your file
when one of the same name did not exist in $CATALINA_HOME/bin.


Jake

Tuesday, August 13, 2002, 10:54:15 AM, you wrote:

TLC My bean is WEB-INF/classes






TLC Jacob Kjome [EMAIL PROTECTED]
TLC 13/08/2002 10:43 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:Re[2]: Quick Question



TLC Hello TOMITA,

TLC Where does your Bean exist?  Is it in one of Tomcat's classloaders, or
TLC is it running out the WEB-INF/classes or WEB-INF/lib folder of your
TLC webapp.  I'm geussing the it is in one of Tomcat's classloaders
TLC meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib in
TLC Tomcat-4.1.x).

TLC Those classloaders can't see the individual webapp classloaders.
TLC However, libraries in your webapp *can* see Tomcat's plublic
TLC classloaders (all bug server/lib, server/classes).

TLC You may have to rearrange the location of your libraries.

TLC Jake

TLC Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

TLC Hi all,

TLC I'm trying to resolve this problem with all the solutions that you 
TLC gave 
TLC me,  but it doesn't work...
TLC This is what I did:

TLC in my java bean (not a servlet), I have this code:


TLC public class DbBean {
TLCpublic  int Connect()  {
TLCInputStream is = 
TLC 
TLC Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
TLC if (is == null) {
TLC return 0;
TLC }
TLC else {
TLC return 1;
TLC }
TLC }


TLC then in my jsp, I called this method, and then I write the value (0 
TLC or 
TLC 1)..

TLC The txt file is in WEB-INF/classes/beans..., because DbBean is in 
TLC a 
TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
TLC When I load the jsp, the method Connect of the DbBean (java bean) 
TLC returned 
TLC 0, which means the InputStream is null, but if I put the txt file in
TLC TOMCAT_HOME/bin, I had no problem, the method returned 1  why 
TLC is 
TLC that??.. I'm using Tomcat 3.2
TLC Do I need to set something else in Tomcat??

TLC thanks again
TLC Alex Tomita













TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
TLC 13/08/2002 08:11 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:RE: Quick Question




TLC tomcats default directory is where ever you called the startup.sh/bat 

TLC file.
TLC So if you dont use another script to call the startup.sh/bat file 
TLC tomcats
TLC default will be the bin directory.

TLC Use this code to find the directory where WEB-INF is.  Then you can 
TLC traverse
TLC your directory structure from there. 

TLC //get context path
TLC ServletConfig scon = null ;
TLC String workingDir = null;
 
TLC public void init(ServletConfig config) {
TLC scon = config ;
TLC  }
TLC  public void doPost(HttpServletRequest request, HttpServletResponse
TLC response)
TLC throws ServletException, IOException {
 
TLC //get working dir
TLC ServletContext sc = scon.getServletContext();
TLC workingDir = sc.getRealPath();


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









-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RES: JBoss, Tomcat and Apache 1.3 with mod_jk.so

2002-08-13 Thread Tiago Ferraz Machado

Hi !

I had to do that, but I used mod_webapp.so

Just read this page...

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

And another thing you should pay attention is that the directory of deploying at JBoss 
is 
$JBOSS_INST/server/default/deploy and the Tomcat configuration file is 
tomcat4-service.xml (at the deploy directory).

I used JBoss 3.0.0 integrated with Tomcat 4.0.3 and Apache 1.3.26 (I couldn't find the 
mod_webapp.so for Apache 2.0.XX)

I hope this could help you...

See ya,

Tiago.

-Mensagem original-
De: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 13 de agosto de 2002 10:44
Para: Tomcat Users List
Assunto: RE: JBoss, Tomcat and Apache 1.3 with mod_jk.so


I would use this : 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

The same docs should be ok even though u're using jboss too..

hope it helps
-reynir


 -Original Message-
 From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]]
 Sent: 13. ágúst 2002 13:42
 To: Tomcat (E-mail)
 Subject: JBoss, Tomcat and Apache 1.3 with mod_jk.so
 
 
 
 Does anyone know about HOWTO for this three ??
 
 I have try to use this here..but with no luck ..! :(
 
 http://www.pubbitch.org/jboss/mod_jk2.html
 
 regards
 Siggi
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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


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




REPOST: Authentication: Use Tomcat and Apache

2002-08-13 Thread Kevin Andryc

I have an application that currently uses Apache's authentication. In order
for this to work with Tomcat I had to specify it in my server.xml, like so:

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0 tomcatAuthentication=false/

I also have another application running under Tomcat that I would like
Tomcat to handle the authentication. Is there a way to have both methods?

Thanks,
Kevin


Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]




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




Re: Getting mod_webapp

2002-08-13 Thread Murray Cumming

On Sun, 2002-08-11 at 19:58, Murray Cumming wrote:
 I'm sure this should be on an FAQ somewhere, but I have a good look all
 over the place and I can't find any definitive help.
 
 I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather
 than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2
 
 To keeps things simple, I've installed from the RPM. I believe I need
 the mod_webapp apache module that's provided by
 tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this.
 
 Instead, I tried building tomcat-jakarta-connectors from source, but
 maybe I'm not familiar enough with the ant build system:

OK, so if I had read README.txt properly then I would know that I need
to do a cvs checkout of apr into the webapp directory.

It tells me to copy and modify a build.properties.sample file, but there
is no such file there, so I ignored that.

As instructed, I then ran 
support/buildConf.sh

This creates a configure script, which I am tempted to run, but the next
step tells me to run ant. I did that, and I still this error:

BUILD FAILED
file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot 
find Tomcat 4.0 classes

So, how do I tell it where to find these tomcat classes? I have already
installed jakarta-tomcat-4 from here:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/


-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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




Re: Re[2]: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

Can I use something like this in my jsp page (instead of a java sevlet) to 
get the parameter name?,
before that I set the parameter in my web.xml file like this:

context-param
  param-nameparameter name/param-name
  param-valuelocalhost/param-value
/context-param

String value =  getServletContext().getInitParameter(parameter name);

because I'm confusing here because of the name getServletContext. is 
it only works in a sevlet or it will work too in a jsp page???

thanks again 
Alex Tomita








[EMAIL PROTECTED]
13/08/2002 10:54 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: Tomcat Users List [EMAIL PROTECTED]
Subject:Re: Re[2]: Quick Question



My bean is WEB-INF/classes






Jacob Kjome [EMAIL PROTECTED]
13/08/2002 10:43 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re[2]: Quick Question



Hello TOMITA,

Where does your Bean exist?  Is it in one of Tomcat's classloaders, or
is it running out the WEB-INF/classes or WEB-INF/lib folder of your
webapp.  I'm geussing the it is in one of Tomcat's classloaders
meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib in
Tomcat-4.1.x).

Those classloaders can't see the individual webapp classloaders.
However, libraries in your webapp *can* see Tomcat's plublic
classloaders (all bug server/lib, server/classes).

You may have to rearrange the location of your libraries.

Jake

Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

TLC Hi all,

TLC I'm trying to resolve this problem with all the solutions that you 
gave 
TLC me,  but it doesn't work...
TLC This is what I did:

TLC in my java bean (not a servlet), I have this code:


TLC public class DbBean {
TLCpublic  int Connect()  {
TLCInputStream is = 
TLC 
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
TLC if (is == null) {
TLC return 0;
TLC }
TLC else {
TLC return 1;
TLC }
TLC }


TLC then in my jsp, I called this method, and then I write the value (0 
or 
TLC 1)..

TLC The txt file is in WEB-INF/classes/beans..., because DbBean is in 

a 
TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
TLC When I load the jsp, the method Connect of the DbBean (java bean) 
returned 
TLC 0, which means the InputStream is null, but if I put the txt file in
TLC TOMCAT_HOME/bin, I had no problem, the method returned 1  why 

is 
TLC that??.. I'm using Tomcat 3.2
TLC Do I need to set something else in Tomcat??

TLC thanks again
TLC Alex Tomita













TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
TLC 13/08/2002 08:11 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:RE: Quick Question




TLC tomcats default directory is where ever you called the startup.sh/bat 


TLC file.
TLC So if you dont use another script to call the startup.sh/bat file 
tomcats
TLC default will be the bin directory.

TLC Use this code to find the directory where WEB-INF is.  Then you can 
TLC traverse
TLC your directory structure from there. 

TLC //get context path
TLC ServletConfig scon = null ;
TLC String workingDir = null;
 
TLC public void init(ServletConfig config) {
TLC scon = config ;
TLC  }
TLC  public void doPost(HttpServletRequest request, HttpServletResponse
TLC response)
TLC throws ServletException, IOException {
 
TLC //get working dir
TLC ServletContext sc = scon.getServletContext();
TLC workingDir = sc.getRealPath();


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






-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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








tomcat + jndi.properties

2002-08-13 Thread Michael Delamere

Hi,

I want to get hold of my service classes on a seperate box via jndi/tomcat.
Could someone give me an example of what a tomcat specific jndi.properties
should look like.

Thanks very much.

Regards,

Michael


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




  1   2   >