Tomcat not showing the pages ----

2003-09-25 Thread kgsat
Hi friends,
(B
(BI have been developing a video download application to run in
(Bapache2.0.46+Tomcat4.1.24 on windows 2000Server environment.
(B
(BSuddenly i had the problem of tomcat not showing the pages after it started
(Boff successfully without any error at the console.
(BEven after requesting the page it does not show any error or
(Bexception.However, in catalina log it says nosuch method found and throws
(Bexception.
(B
(BThe exception is as follows:
(B*
(B2003-09-25 13:28:23 CoyoteAdapter An exception or error occurred in the
(Bcontainer during the request processing
(Bjava.lang.NoSuchMethodError:
(Bjavax.servlet.http.HttpServletRequest.getUserPrincipal()Ljava/security/Princ
(Bipal;
(B at
(Borg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
(B.java:455)
(B at
(Borg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
(BeNext(StandardPipeline.java:641)
(B at
(Borg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
(B at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
(B at
(Borg.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
(B at
(Borg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
(B)
(B at
(Borg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
(BeNext(StandardPipeline.java:643)
(B at
(Borg.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
(Bjava:171)
(B at
(Borg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
(BeNext(StandardPipeline.java:641)
(B at
(Borg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
(B)
(B at
(Borg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
(BeNext(StandardPipeline.java:641)
(B at
(Borg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
(B at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
(B at
(Borg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(B:174)
(B at
(Borg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
(BeNext(StandardPipeline.java:643)
(B at
(Borg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
(B at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
(B at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
(B at
(Borg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
(B at
(Borg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
(Bction(Http11Protocol.java:392)
(B at
(Borg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
(B at
(Borg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
(Ba:619)
(B at java.lang.Thread.run(Thread.java:536)
(B*
(B
(BThe above exception comes for each request i make to jsp page
(BDoes any one get any idea about what went wrong with my tomcat?And what
(Bshould i do to make it run properly.
(Bpl help!!!
(Bthanks in advance and regards
(Bsat

innocuous Servlet kills Tomcat

2003-09-25 Thread Paul Wallace
Hi All,
After implementing my simple Servlet under Tomcat thus:

servlet
servlet-nameOpenResource/servlet-name

servlet-classcom.ia.mapping.servlets.OpenResource/servlet-class
/servlet

where the Servlet OpenResource has been compiled in the correct
directory, containing no functionality (below), I start up Tomcat and
get the less-than-pleasant error message in the console:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 19 column 11
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,
mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,r
esource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ej
b-local-ref*).
Starting service Tomcat-Apache
Apache Tomcat/4.0.4

This error message immediately suggests that web.xml is not fully
formed. It is. When the OpenResource entry is removed, TC starts up
fine, suggesting the Servlet is at fault. But on inspection, there is no
source present to cause such a problem (it is a bare-bones Servlet).

I have looked and looked, but cant see what's at fault. (Tomcat although
appearing to have started does not serve anything (404)). 

Thanks for any help or insight into this error message.

Paul.



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



Re: innocuous Servlet kills Tomcat

2003-09-25 Thread Kwok Peng Tuck
Hard to tell from a small snippet like that , but if I had to guess,  it 
doesn't appear to meet the dtd specified
by the web.xml. Try sending us the entire web.xml in your email.

Paul Wallace wrote:

Hi All,
After implementing my simple Servlet under Tomcat thus:
servlet
servlet-nameOpenResource/servlet-name

servlet-classcom.ia.mapping.servlets.OpenResource/servlet-class
/servlet
where the Servlet OpenResource has been compiled in the correct
directory, containing no functionality (below), I start up Tomcat and
get the less-than-pleasant error message in the console:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 19 column 11
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,
mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,r
esource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ej
b-local-ref*).
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
This error message immediately suggests that web.xml is not fully
formed. It is. When the OpenResource entry is removed, TC starts up
fine, suggesting the Servlet is at fault. But on inspection, there is no
source present to cause such a problem (it is a bare-bones Servlet).
I have looked and looked, but cant see what's at fault. (Tomcat although
appearing to have started does not serve anything (404)). 

Thanks for any help or insight into this error message.

Paul.



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


 



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


Re: Mutual and Basic Authentication switched on for the same web application

2003-09-25 Thread Rudolf Castelino
Mutual Authentication is where a user needs to have a Client Side 
certificate to login to a webapplication which is using a Server Side 
Certificate



The Present is more Real than the Past or the Future Put together





From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Mutual and Basic Authentication switched on for the same web 
application
Date: Wed, 24 Sep 2003 17:52:07 -0400

What is mutual authentication?

In web.xml you can define security contraints on servlets or URLS. Each 
constraint can have its own login requirements. (FORM vs BASIC ...)

-Tim

Rudolf Castelino wrote:

Hi all

Is there a way to switch on Mutual and Basic Authentication switched on for 
the same web application, such that certain URLs need Basic Authentication 
and Certain URLs use Mutual Authentication for the same web application.

Regards
Rudolf


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get personal loans. It's hassle-free. 
http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt 
It's approved instantly.

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


Re: mapping a servlet to multiple urls

2003-09-25 Thread Bill Barker
There was a bug in the Mapper in early versions of Tomcat 5.x.  Try
upgrading to 5.0.12 and see if the bug goes away.

Marion McKelvie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 I think I may be misunderstanding how to map multiple urls to a servlet.
I
 have a very simple servlet which when I use the following mapping (for
 context prj)

 servlet-mapping
 servlet-namemyServlet/servlet-name
 url-pattern/servlet/fred/url-pattern
 /servlet-mapping

 everything works fine and I can see my servlet output at
/prj/servlet/fred.

 If I try

 servlet-mapping
 servlet-namemyServlet/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping

 I can only see my servlet output at a url of /prj/servlet/* ie with an
 actual asterisk in the url.  I thought the * acts as a wildcard and I was
 hoping to see my servlet output at urls such as /prj/servlet/fred and
 /prj/servlet/freddy

 I am using Tomcat 5 (standalone, not with httpd) as downloaded with Sun's
 web services development kit.

 Is it correct to expect that mapping to map the servlet to
/prj/servlet/fred
 and /prj/servlet/freddy?  If so, what am I missing or doing wrong?

 Many thanks,

 Marion




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



Re: Tomcat not showing the pages ----

2003-09-25 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


 java.lang.NoSuchMethodError:
 javax.servlet.http.HttpServletRequest.getUserPrincipal()Ljava/security/Prin
c ipal;

I'd suspect that somehow your webapp is accessing an old or a broken version 
of servlet.jar.

Mit freundlichem Gruß / With kind regards
Holger Klawitter
- --
lists at klawitter dot de
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/cprI1Xdt0HKSwgYRAh56AJ9L/LxKolqOkrFrkH3IqL+G6Hd18QCgivF/
wRyUkuJKJjABO3Tl2P2oyZk=
=HfAY
-END PGP SIGNATURE-


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



RE: innocuous Servlet kills Tomcat

2003-09-25 Thread Paul Wallace

Hi,
I located the problem. I was mapping a different Servlet before
the OpenResource Servlet was defined in web.xml (error):

web-app

servlet
servlet-nameLoginServlet/servlet-name

servlet-classcom.ia.mapping.servlets.LoginServlet/servlet-class
/servlet

servlet-mapping
servlet-nameLoginServlet/servlet-name
url-pattern/LoginServlet/url-pattern
/servlet-mapping

servlet
servlet-nameOpenResource/servlet-name

servlet-classcom.ia.mapping.servlets.OpenResource/servlet-class
/servlet

/web-app

It now runs, with the mapping after any Servlet declaration. This would
seem logical but for the fact that the mapped Servlet preceded the
Servlet mapping? I suppose this means that no matter how many Servlet
entries there are, mappings MUST proceed ALL Servlet declarations thus: 

servlet
servlet-name/servlet-name
servlet-class/servlet-class
/servlet
servlet
servlet-name/servlet-name
servlet-class/servlet-class
/servlet
servlet
servlet-name/servlet-name
servlet-class/servlet-class
/servlet

servlet-mapping
servlet-name/servlet-name
url-pattern/url-pattern
/servlet-mapping  
servlet-mapping
servlet-name/servlet-name
url-pattern/url-pattern
/servlet-mapping  

irrespective to the Servlet they map to?

Thanks 

Paul.


Hard to tell from a small snippet like that , but if I had to guess,  it

doesn't appear to meet the dtd specified
by the web.xml. Try sending us the entire web.xml in your email.

Paul Wallace wrote:

Hi All,
   After implementing my simple Servlet under Tomcat thus:

servlet
   servlet-nameOpenResource/servlet-name
   
servlet-classcom.ia.mapping.servlets.OpenResource/servlet-class
/servlet

where the Servlet OpenResource has been compiled in the correct
directory, containing no functionality (below), I start up Tomcat and
get the less-than-pleasant error message in the console:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 19 column 11
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter
*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,
mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,
r
esource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,e
j
b-local-ref*).
Starting service Tomcat-Apache
Apache Tomcat/4.0.4

This error message immediately suggests that web.xml is not fully
formed. It is. When the OpenResource entry is removed, TC starts up
fine, suggesting the Servlet is at fault. But on inspection, there is
no
source present to cause such a problem (it is a bare-bones Servlet).

I have looked and looked, but cant see what's at fault. (Tomcat
although
appearing to have started does not serve anything (404)). 

Thanks for any help or insight into this error message.

Paul.



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




  



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


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



RE : RE : Redirecting the output to a log file

2003-09-25 Thread Laurent Michenaud
Maybe with debug=0

Anyway, u should use log4j instead of System.out

-Message d'origine-
De : Sarika N Inamdar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 24 septembre 2003 06:41
À : 'Tomcat Users List'
Objet : RE: RE : Redirecting the output to a log file

Hi,

Thanks for the solution. This works. Now my Servlets System.out is
re-directed to log file.

But I also see that tomcat logs lot of debug statements in the same
debug. This would un-necessarily clutter our application log file.

Is there a way we can filter tomcat System.out messages and log only our
application System.out debug stmts ?

Thanks for the help,
Sarika
 

 -Original Message-
 From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 17, 2003 4:13 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE : Redirecting the output to a log file
 
 
 Add a logger to your context and the following attribute :
 
 swallowOutput=true
 
 Your system.out will be redirected to the logger you defined 
 for your context.
 
 Example :
 
 Context path= docBase=/home/adeuza debug=0
  reloadable=true crossContext=true 
 swallowOutput=true
  
   Logger className=org.apache.catalina.logger.FileLogger
  directory=/u/logs/ prefix=logfile. suffix=.log
  timestamp=true/
 /Context
 
 -Message d'origine-
 De : Sarika N Inamdar [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 17 septembre 2003 12:40
 À : 'Johan Louwers'; 'Tomcat Users List'
 Objet : RE: Redirecting the output to a log file
 
 Hi,
 
 But the servlet System.out code used to log messages to our 
 application log when using tomcat 3.
 
 With migration to 4.1.24, we are facing this issue.
 
 Thanks,
 Sarika
 
  -Original Message-
  From: Johan Louwers [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 17, 2003 3:59 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: Re: Redirecting the output to a log file
  
  
  do not use System.out simply make a write to a file routine
  and write to a file :-)
  
  
  Johan.
  
  - Original Message -
  From: Sarika N Inamdar [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, September 17, 2003 12:17 PM
  Subject: Redirecting the output to a log file
  
  
   Hi All,
   When my servlets are sending some stack trace or System.out
  messages ,
   all such output is dumped in the catalina.out log. We want the
   System.out messages to go into our application's log file. 
  I am using
   standalone catalina on Solaris and tomcat 4.1.24. Please 
 suggest on
   how to proceed to achieve the same. Thanks in Advance,
   Sarika
  
  
  
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



Re: innocuous Servlet kills Tomcat

2003-09-25 Thread Kwok Peng Tuck
The digester error actually provides you more info than you think :

org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,
filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,
welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*).
See , servlet definitions come first.  Define them first, then the 
associated mapping if needed.  The order in which you define the servlets
themselves do not matter, what matters is that servlet defiinitions come 
first before the mapping.

You can have a look at the full dtd here : 
http://java.sun.com/dtd/web-app_2_3.dtd



Paul Wallace wrote:

Hi,
I located the problem. I was mapping a different Servlet before
the OpenResource Servlet was defined in web.xml (error):
web-app

servlet
servlet-nameLoginServlet/servlet-name

servlet-classcom.ia.mapping.servlets.LoginServlet/servlet-class
/servlet

servlet-mapping
servlet-nameLoginServlet/servlet-name
url-pattern/LoginServlet/url-pattern
/servlet-mapping
servlet
servlet-nameOpenResource/servlet-name

servlet-classcom.ia.mapping.servlets.OpenResource/servlet-class
/servlet

/web-app
It now runs, with the mapping after any Servlet declaration. This would
seem logical but for the fact that the mapped Servlet preceded the
Servlet mapping? I suppose this means that no matter how many Servlet
entries there are, mappings MUST proceed ALL Servlet declarations thus: 

servlet
servlet-name/servlet-name
servlet-class/servlet-class
/servlet
servlet
servlet-name/servlet-name
servlet-class/servlet-class
/servlet
servlet
servlet-name/servlet-name
servlet-class/servlet-class
/servlet
servlet-mapping
servlet-name/servlet-name
url-pattern/url-pattern
/servlet-mapping
servlet-mapping
servlet-name/servlet-name
url-pattern/url-pattern
/servlet-mapping
irrespective to the Servlet they map to?

Thanks 

Paul.

Hard to tell from a small snippet like that , but if I had to guess,  it

doesn't appear to meet the dtd specified
by the web.xml. Try sending us the entire web.xml in your email.
Paul Wallace wrote:

 

Hi All,
After implementing my simple Servlet under Tomcat thus:
servlet
servlet-nameOpenResource/servlet-name

servlet-classcom.ia.mapping.servlets.OpenResource/servlet-class
/servlet
where the Servlet OpenResource has been compiled in the correct
directory, containing no functionality (below), I start up Tomcat and
get the less-than-pleasant error message in the console:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 19 column 11
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter
   

*
 

,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,
mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,
   

r
 

esource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,e
   

j
 

b-local-ref*).
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
This error message immediately suggests that web.xml is not fully
formed. It is. When the OpenResource entry is removed, TC starts up
fine, suggesting the Servlet is at fault. But on inspection, there is
   

no
 

source present to cause such a problem (it is a bare-bones Servlet).

I have looked and looked, but cant see what's at fault. (Tomcat
   

although
 

appearing to have started does not serve anything (404)). 

Thanks for any help or insight into this error message.

Paul.



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




   



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


 



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


Apache 4.0.47 - Tomcat 4.1.27 - mod_jk2 - Development Enviroment

2003-09-25 Thread Paul Mills

Hi,

I am very new to Tomcat, but I need to setup a Development/Teaching
Enviroment for Apache and Tomcat.

I have installed and tested the following :-

Apache 2.0.47 - installed from rpm 
Tomcat 4.1.27 - binary install
mod_jk2 2.0.2 - installed from source
j2sdk 1.4.2_01 - installed from rpm

I need a setup with ip based virtual hosts and the code stored in the
users/students home directories so each student can not see each others
work. 

Then a method for the user/student to publish there work.

Any help would be appreciated.

Please see below for current config files :- 

Regards

--
Paul Mills [EMAIL PROTECTED]
Senior Linux/Unix Systems Administrator
(Red Hat Certified Engineer)
Canterbury Christ Church University College
North Holmes Road
Canterbury
Kent
United Kingdom
CT1 1QU
Tel.: 01227 782751 

Config Files :- 

workers2.properties =
# only at beginnin. In production uncomment it out [logger.apache2]
level=DEBUG

[shm]
file=/etc/httpd/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009] tomcatId=localhost:8009 #port=8009
#host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
#[uri:5.0.0.61/*.jsp]
#group=ajp13:localhost:8009
#
#[uri:www.domain-a.com/*.jsp]
#worker=ajp13:localhost:8009

[status:]
info=Status worker,display runtime information channel.socket:localhost:8009

# Uri mapping
[uri:/status/*]
group=status:localhost:8009
#worker=status:localhost:8009
group=status:
#debug=9

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*] group=ajp13:localhost:8009 info=Map the whole webapp
worker=ajp13:localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/tomcat-docs/*] group=ajp13:localhost:8009
=

jk2.properties =
# Shared memory directive
shm.file=/etc/httpd/logs/jk2.shm
=

server.xml =
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

Server port=8005 shutdown=SHUTDOWN debug=0

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

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

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

!-- Tomcat Examples Context --
Context path=/examples docBase=examples debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log. suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/

  Environment 

Re: curiosity kills tomcat

2003-09-25 Thread P . van Kemenade
Hi

org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context- 
param*,filter*,
filter-mapping*,listener*,servlet*,servlet-mapping*,
[snip]
See , servlet definitions come first.  Define them first, then the  
associated mapping if needed.  The order in which you define the  
servlets
themselves do not matter, what matters is that servlet defiinitions  
come first before the mapping.
yes, I've always considered that a bug, but guess what,  it's a dtd !

so .. that 'bug' won't  dissapear in the future ?
( why on earth would anyone want it like that  ? :-)
$2c,
*pike
=
Help stop world hunger -- visit 
http://www.thehungersite.org
Is The Hunger Site real?
http://www.umich.edu/~virus-busters/hunger.html


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


Re: IIS5+tomcat4.1 configuration problem

2003-09-25 Thread Mats Andersson
I can't see any .reg file. Maybe it's because my mozilla filters out 
.reg files, but I don't think it does that. Can you
get the file from the mail you sent to the list?

Mats

Kareem Mahgoub wrote:

you mean you have something to prevent files of type reg??
Best regards,
Kareem Mahgoub
Senior System Administrator
Wayout
Phone: +2023017153
Fax: +2023017130
45 El Batal Ahmed Abdel Aziz st.
14th Floor, Mohandeseen
Cairo, Egypt
- Original Message - 
From: Mats Andersson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:35 PM
Subject: Re: IIS5+tomcat4.1 configuration problem

 

Sorry, but I didn't get the attached file :-(

Mats

kareem wrote:

   

Hi list
Thanks for the reply
Please find attached my registry file.
To Rober Priest : I don't have those files at all, could you please 
guide me where I can get them.
Best Regards,
Kareem Mahgoub



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

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



Administrator Username and Password

2003-09-25 Thread N.B.Bopanna
Hi all,
Could anybody tell me the default username and password for tomcat-4.1.24
Administrator?
Thanks in advance.
Bopanna
Sr Software Engineer,
RCS Technologies,
Bangalore



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



Re: IIS5+tomcat4.1 configuration problem

2003-09-25 Thread Kareem Mahgoub
Dear Mats,
Here is my registry key
###
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
extension_uri=/jakarta/isapi_redirector2.dll
worker_file=d:\\tomcat 4.1\\conf\\worker.properties
worker_mount_file=d:\\tomcat 4.1\\conf\\uriworkermap.properties
log_file=d:\\tomcat 4.1\\logs\\jk.log
log_level=debug


##

I have checked any typos mistakes and i have checked the permission on the
virtual directory to be execute and read.
and I tried the hint by priest by putting libapr.dll and liaprutil.dll in
the same folder with no success.
Thanks for your help
Best Regards,
Kareem Mahgoub


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



Coyote Connector for Http

2003-09-25 Thread N.B.Bopanna
Hi All,
How to configure Coyote connector for my webaplication?
My web application is in a folder called 'speed' in webapps directory.
Can the server.xml can have 2 Host tags?
Bopanna
Sr. Software Engineer,
RCS Technologies,
Bangalore



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



Re: IIS5+tomcat4.1 configuration problem

2003-09-25 Thread Mats Andersson
You have mixed the jk2 with jk string values. Here's my registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\2.0]
serverRoot=C:\\jakarta-tomcat-4.1.24
workersFile=C:\\jakarta-tomcat-4.1.24\\conf\\workers2.properties
logLevel=DEBUG
extensionUri=/jakarta/isapi_redirector2.dll

Mats

Kareem Mahgoub wrote:

Dear Mats,
Here is my registry key
###
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
extension_uri=/jakarta/isapi_redirector2.dll
worker_file=d:\\tomcat 4.1\\conf\\worker.properties
worker_mount_file=d:\\tomcat 4.1\\conf\\uriworkermap.properties
log_file=d:\\tomcat 4.1\\logs\\jk.log
log_level=debug
##

I have checked any typos mistakes and i have checked the permission on the
virtual directory to be execute and read.
and I tried the hint by priest by putting libapr.dll and liaprutil.dll in
the same folder with no success.
Thanks for your help
Best Regards,
Kareem Mahgoub
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: IIS5+tomcat4.1 configuration problem

2003-09-25 Thread Kareem Mahgoub
Thanks for clarification but i have 2 questions
1- What is the content of your workers2.properties
2- Does it make a difference if i make the file worker not wokers?
3- There is no uriworkermap.properties in your registry, may I assume it is
not required?
Your help is very much appreciated
Best Regards,
Kareem Mahgoub
Best regards,
Kareem Mahgoub
Senior System Administrator
Wayout
Phone: +2023017153
Fax: +2023017130
45 El Batal Ahmed Abdel Aziz st.
14th Floor, Mohandeseen
Cairo, Egypt
- Original Message - 
From: Mats Andersson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:20 AM
Subject: Re: IIS5+tomcat4.1 configuration problem


 You have mixed the jk2 with jk string values. Here's my registry:

 Windows Registry Editor Version 5.00

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
 Redirector\2.0]
 serverRoot=C:\\jakarta-tomcat-4.1.24
 workersFile=C:\\jakarta-tomcat-4.1.24\\conf\\workers2.properties
 logLevel=DEBUG
 extensionUri=/jakarta/isapi_redirector2.dll

 Mats

 Kareem Mahgoub wrote:

 Dear Mats,
 Here is my registry key
 ###
 Windows Registry Editor Version 5.00
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
 Redirector\2.0]
 extension_uri=/jakarta/isapi_redirector2.dll
 worker_file=d:\\tomcat 4.1\\conf\\worker.properties
 worker_mount_file=d:\\tomcat 4.1\\conf\\uriworkermap.properties
 log_file=d:\\tomcat 4.1\\logs\\jk.log
 log_level=debug
 
 
 ##
 
 I have checked any typos mistakes and i have checked the permission on
the
 virtual directory to be execute and read.
 and I tried the hint by priest by putting libapr.dll and liaprutil.dll in
 the same folder with no success.
 Thanks for your help
 Best Regards,
 Kareem Mahgoub
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


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




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



RE: Administrator Username and Password

2003-09-25 Thread Joao Medeiros
Bopana,

Default administrator name is admin and the password is setup when you
install Tomcat. Check your tomcat-users.xml file under $TOMCAT_HOME/conf
and you might be able to get the password for admin.

/JM

-Original Message-
From: N.B.Bopanna [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 09:51
To: [EMAIL PROTECTED]
Subject: Administrator Username and Password

Hi all,
Could anybody tell me the default username and password for
tomcat-4.1.24
Administrator?
Thanks in advance.
Bopanna
Sr Software Engineer,
RCS Technologies,
Bangalore



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




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



Re: IIS5+tomcat4.1 configuration problem

2003-09-25 Thread Mats Andersson
1.
# Define the communication channel
[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=127.0.0.1:8009
port=8009
host=127.0.0.1
[uri:/wa1/*]

2.
Don't know. But the question is, why do you want another name, it's 
confusing as it is with the jk,jk2 stuff.

3.
It's not required. The mappings are in workers2.properties instead.
Mats

Kareem Mahgoub wrote:

Thanks for clarification but i have 2 questions
1- What is the content of your workers2.properties
2- Does it make a difference if i make the file worker not wokers?
3- There is no uriworkermap.properties in your registry, may I assume it is
not required?
Your help is very much appreciated
Best Regards,
Kareem Mahgoub
Best regards,
Kareem Mahgoub
Senior System Administrator
Wayout
Phone: +2023017153
Fax: +2023017130
45 El Batal Ahmed Abdel Aziz st.
14th Floor, Mohandeseen
Cairo, Egypt
- Original Message - 
From: Mats Andersson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:20 AM
Subject: Re: IIS5+tomcat4.1 configuration problem

 

You have mixed the jk2 with jk string values. Here's my registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
serverRoot=C:\\jakarta-tomcat-4.1.24
workersFile=C:\\jakarta-tomcat-4.1.24\\conf\\workers2.properties
logLevel=DEBUG
extensionUri=/jakarta/isapi_redirector2.dll
Mats

Kareem Mahgoub wrote:

   

Dear Mats,
Here is my registry key
###
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
extension_uri=/jakarta/isapi_redirector2.dll
worker_file=d:\\tomcat 4.1\\conf\\worker.properties
worker_mount_file=d:\\tomcat 4.1\\conf\\uriworkermap.properties
log_file=d:\\tomcat 4.1\\logs\\jk.log
log_level=debug
##

I have checked any typos mistakes and i have checked the permission on
 

the
 

virtual directory to be execute and read.
and I tried the hint by priest by putting libapr.dll and liaprutil.dll in
the same folder with no success.
Thanks for your help
Best Regards,
Kareem Mahgoub
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

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



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



Re: IIS5+tomcat4.1 configuration problem

2003-09-25 Thread Kareem Mahgoub
Still the same problem.
I think the problem in the isapi_redirector2.dll, could you send me yours if
you please
Best regards,
Kareem Mahgoub


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



Re: isapi_redirector2.dll

2003-09-25 Thread Kareem Mahgoub
still not working
I have just noticed that the size of the file on the mail is 164KB
while when i save it to the disk it is 160KB. Is this a problem?
Other thing is that i can't find the log file mentioned in the reg key
created for the redirector, any hints?

Best regards,
Kareem Mahgoub


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



cannot compile jsps with tomcat 5

2003-09-25 Thread teknokrat
I just tried running my webapp with the latest release of tomcat 5 
(5.0.12). Added my context to bin/catalina/localhost and changed 
CATALINA_HOME. The app loads fine but it refuses to compile any of the 
jsps. This could be a struts/tiles issue. The sample jsp/servlet 
examples work fine.

here is the exception i keep getting

ApplicationDispatcher[/lab] Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 10 in the jsp file: 
/WEB-INF/layouts/topDownLayout.jsp

Generated servlet error:
[javac] Compiling 1 source file
C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:7: 
org.apache.jsp.WEB_002dINF.layouts.topDownLayout_jsp is not abstract and 
does not override abstract method getIncludes() in 
org.apache.jasper.runtime.HttpJspBase
public final class topDownLayout_jsp extends 
org.apache.jasper.runtime.HttpJspBase
 ^



An error occurred at line: 10 in the jsp file: 
/WEB-INF/layouts/topDownLayout.jsp

Generated servlet error:
C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:29: 
cannot resolve symbol
symbol  : method getTagHandlerPool (javax.servlet.ServletConfig)
location: class org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_html_html_locale = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());

  ^



An error occurred at line: 10 in the jsp file: 
/WEB-INF/layouts/topDownLayout.jsp

Generated servlet error:
C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:30: 
cannot resolve symbol
symbol  : method getTagHandlerPool (javax.servlet.ServletConfig)
location: class org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_html_rewrite_page = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());

   ^



An error occurred at line: 10 in the jsp file: 
/WEB-INF/layouts/topDownLayout.jsp

Generated servlet error:
C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:31: 
cannot resolve symbol
symbol  : method getTagHandlerPool (javax.servlet.ServletConfig)
location: class org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_tiles_getAsString_name = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());

^



An error occurred at line: 10 in the jsp file: 
/WEB-INF/layouts/topDownLayout.jsp

Generated servlet error:
C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:32: 
cannot resolve symbol
symbol  : method getTagHandlerPool (javax.servlet.ServletConfig)
location: class org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_i18n_locale_language_country = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());

  ^



An error occurred at line: 10 in the jsp file: 
/WEB-INF/layouts/topDownLayout.jsp

Generated servlet error:
C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:33: 
cannot resolve symbol
symbol  : method getTagHandlerPool (javax.servlet.ServletConfig)
location: class org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_tiles_insert_flush_attribute = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());

  ^
6 errors
	at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
	at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
	at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742)
	at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:506)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:443)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
	at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
	at 

Tomcat Admin Password

2003-09-25 Thread N.B.Bopanna
Hi All,
I can't  log as administrator in to Tomcat 4.1.24 using 

 username : admin 
 password : setup

is this the default password?
Bopanna



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



AW: Tomcat Admin Password

2003-09-25 Thread Nitschke Michael
In *tomcathome*/conf/ is a file named tomcat_users.xml there are all
 passwords, usernames and roles stored. Ito should be very easy to figure them out.

-Ursprüngliche Nachricht-
Von: N.B.Bopanna [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 25. September 2003 13:26
An: [EMAIL PROTECTED]
Betreff: Tomcat Admin Password

Hi All,
I can't  log as administrator in to Tomcat 4.1.24 using 

 username : admin 
 password : setup

is this the default password?
Bopanna



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


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



Re: Tomcat Admin Password

2003-09-25 Thread Nikola Milutinovic
 Hi All,
 I can't  log as administrator in to Tomcat 4.1.24 using 
 
  username : admin 
  password : setup
 
 is this the default password?

There is no default password, you have to enter your own in tomcat-users.xml

Nix.

RE: Tomcat Admin Password

2003-09-25 Thread Ashutosh Satyam
Hi,
   I just saw your mail. 
   Under the TOMCAT_HOME/conf directory, there is a xml file namely 'tomcat-users.xml'.
   Open this file to look for the password of the created users. Normally the admin 
password is 'admin' by default.

 Regards,
Ashutosh


-Original Message-
From: N.B.Bopanna [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Admin Password

Hi All,
I can't  log as administrator in to Tomcat 4.1.24 using

 username : admin
 password : setup

is this the default password?
Bopanna



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

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



Re: cannot compile jsps with tomcat 5

2003-09-25 Thread Remy Maucherat
teknokrat wrote:
I just tried running my webapp with the latest release of tomcat 5 
(5.0.12). Added my context to bin/catalina/localhost and changed 
CATALINA_HOME. The app loads fine but it refuses to compile any of the 
jsps. This could be a struts/tiles issue. The sample jsp/servlet 
examples work fine.

here is the exception i keep getting

ApplicationDispatcher[/lab] Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
- Make sure you have the right Jasper and API JARs in common/lib.
- Clear your work dir.
- Try again.
If it still doesn't work, you'll have to post a test case (the tiles 
example from the Struts distribution works fine for me with the latest 
Tomcat 5 code).

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Accessing GlobalNamingResources

2003-09-25 Thread Miguel Vieira
Hi,

I'm using Tomcat 4.1.19 and I'd like to know if it's possible to access 
the GlobalNamingResources, defined in server.xml, from a servlet, 
without creating a ResourceLink in the servlet's context?

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


Tomcat with embedded java database and taglibs

2003-09-25 Thread Peter Tornberg
Hello,

I'm currently looking into what solution to use for a web application I'm about to 
create. What I want is:

- Taglib support. core, sql, and maybe things outside the standard-taglib
- Pure Java database to run embedded in the application for easy deployment. 

Does anyone have any experience with a similar setup, and by that any recommendations 
on what config to choose?
Any example applications available?

Thanks,
Peter Tornberg

--
Peter Tornberg
TFS Technology AB
Kungsängsv. 19
753 23 Uppsala, Sweden

+46 18 16 00 00 (Main)
+46 18 16 00 10 (Support)
+46 18 12 43 34 (Fax)

Home Page: http://www.tfstech.com
--

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



Re: Tomcat Admin Password

2003-09-25 Thread N.B.Bopanna
Hi All,
Thanks for ur response.
My tomcat-user.xml.is as follows,

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

I can't login as  user=role1 , password=tomcat
or any ther usernames,passwords in the above file
Bopanna





-Original Message-
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Thu, 25 Sep 2003 13:38:27 +0200
Subject: Re: Tomcat Admin Password

  Hi All,
  I can't  log as administrator in to Tomcat 4.1.24 using 
  
   username : admin 
   password : setup
  
  is this the default password?
 
 There is no default password, you have to enter your own in
 tomcat-users.xml
 
 Nix.



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



RE: Administrator Username and Password

2003-09-25 Thread Joao Medeiros
Bopana,

The password for the user 'admin' is not 'setup'. What I meant is when
you install Tomcat the username and password are setup as a step of the
install procedure.

Please check the tomcat-users file as explained below.

/JM

-Original Message-
From: Joao Medeiros [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 10:54
To: 'Tomcat Users List'
Subject: RE: Administrator Username and Password

Bopana,

Default administrator name is admin and the password is setup when you
install Tomcat. Check your tomcat-users.xml file under $TOMCAT_HOME/conf
and you might be able to get the password for admin.

/JM

-Original Message-
From: N.B.Bopanna [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 09:51
To: [EMAIL PROTECTED]
Subject: Administrator Username and Password

Hi all,
Could anybody tell me the default username and password for
tomcat-4.1.24
Administrator?
Thanks in advance.
Bopanna
Sr Software Engineer,
RCS Technologies,
Bangalore



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




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




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



RE: Tomcat Admin Password

2003-09-25 Thread Joao Medeiros
Bopana,

Make sure your tomcat-users.xml contains at least the following line:

role rolename=admin/

and the following line as well:

user username=admin password=manager roles=admin/

The field 'password' in the example above is set to 'manager' but you
can change it to whatever value you want.

Also, if you want to be able to use the manager servlet you will need to
add another role called 'manager' and to add that role to the user
'admin' as follows:

role rolename=manager/
user username=admin password=manager roles=admin,manager/

/JM
-Original Message-
From: N.B.Bopanna [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 12:58
To: Tomcat Users List
Subject: Re: Tomcat Admin Password

Hi All,
Thanks for ur response.
My tomcat-user.xml.is as follows,

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

I can't login as  user=role1 , password=tomcat
or any ther usernames,passwords in the above file
Bopanna





-Original Message-
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Thu, 25 Sep 2003 13:38:27 +0200
Subject: Re: Tomcat Admin Password

  Hi All,
  I can't  log as administrator in to Tomcat 4.1.24 using 
  
   username : admin 
   password : setup
  
  is this the default password?
 
 There is no default password, you have to enter your own in
 tomcat-users.xml
 
 Nix.



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




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



RE: Accessing GlobalNamingResources

2003-09-25 Thread Joao Medeiros
Miguel,

 

I'm assuming you want to access the values as defined for a given
parameter in your server.xml or in your web.xml files depending on
whether you want them defined globally or per application.

 

Try the folling code in your jsp file and replace the parameter name
with the appropriate one.

 

BEGIN CODE SNIPET

   String my_var = ;

   try

   {

  InitialContext initCtx  = new InitialContext();

  if(initCtx == null) throw new Exception(Boom - No Context);

  //Context envContext = (Context) initialContext.lookup
(java:comp/env);

  Context envCtx  =
(Context)initCtx.lookup(java:comp/env);

  my_var= (String)
envCtx.lookup(my_parameter_name);

   }

   catch(Exception e) 

   {

  out.println(e.getMessage());

  e.printStackTrace();

   }

END CODE SNIPET

 

/JM

 

-Original Message-
From: Miguel Vieira [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 12:35
To: [EMAIL PROTECTED]
Subject: Accessing GlobalNamingResources

 

Hi,

 

I'm using Tomcat 4.1.19 and I'd like to know if it's possible to access 

the GlobalNamingResources, defined in server.xml, from a servlet, 

without creating a ResourceLink in the servlet's context?

 

Thanks,

Miguel Vieira

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



FW: The email you authored contained a violation (either a virus or inappropriate content)

2003-09-25 Thread Joao Medeiros
I keep on receiving this every time I reply or post to this list.
Not a major issue more of a nice to have if the member in Quebec puts in
a good word to the systems admin...

/JM

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: 25 September 2003 13:35
To: Joao Medeiros
Subject: The email you authored contained a violation (either a virus or
inappropriate content)

Your message was not received by the recipient.


The scanned document was deleted.


Violation Information:
The internet domain violated the content filtering rule Blocked Domains
2.
No attempt was made to repair.






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



RE: can't setup

2003-09-25 Thread Shapira, Yoav

Howdy,
Look in your logs to see the full error.  If you can't figure out the
cause, post the full error here.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Poblanno Balp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:35 PM
To: Tomcat Users List
Subject: can't setup

Hi, I've just installed Tomcat 4.1.24-LE-jdk14 for Windows
and I have Sun's J2SDK1.4.2. The installation seems to go on
perfect, but when I try to see http://localhost:8080
on my browser I get this message (I exclude the exceptions):

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.


What is this?
Is there a conflict between Java an Tomcat?

Thanx For Your Help

Poblanno



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




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


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



RE: curiosity kills tomcat

2003-09-25 Thread Shapira, Yoav

Howdy,

yes, I've always considered that a bug, but guess what,  it's a dtd !

so .. that 'bug' won't  dissapear in the future ?
( why on earth would anyone want it like that  ? :-)

You don't like it, contact the Expert Group / JSR for the Servlet
Specification and ask them to relax the DTD.  Good luck ;)

Yoav Shapira



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


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



RE: How to make Dispatcher send the right resource?

2003-09-25 Thread Shapira, Yoav

Howdy,
Since it's your JSP generating the PDF file, change your JSP to create
the PDF file under your context.  Or better yet, in your context's
temporary directory
(ServletContext#getAttribute(javax.servlet.context.tempdir); )

If under your webapp, you can use a request dispatcher or a response
sendRedirect to have the browser fetch the PDF itself.  If in your
tempdir (or under your context as well), you can use a servlet to stream
the PDF.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:22 PM
To: '[EMAIL PROTECTED]'
Subject: How to make Dispatcher send the right resource?

Hi TomCat guys,
my jsp generates a PDF file, which should be send to the browser.
However,
this pdf file is created under Tomcat's bin directory (outside my
context
path) instead of my app context (WEB-INF\guia). So, how can my jsp
catch
this file or better, how can i change TomCat configuration?
Thanks in advance,
Euclides.

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




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


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



RE: Runtime.getRuntime().addShutdownHook()

2003-09-25 Thread Shapira, Yoav

Howdy,
Tomcat properly calls Servlet#destroy and
ServletContextListener#contextDestroyed (as well as other lifecycle
methods).  When people complain their methods are not being called, it's
invariably user error.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:00 PM
To: 'Tomcat Users List'
Subject: RE: Runtime.getRuntime().addShutdownHook()

Thanks Yoav.

I would like just to add that functionality in  contextDestroyed(), but
that
does not seem to get called when my JVM shutsdown. I am using a version
of
TC 4.1.7 running as a service, and the service calls has:

Stop Class=org.apache.catalina.startup.BootstrapService
Stop Method=main
Stop Param Count=dword:0001
Stop Param Number 0=stop

but contextDestroyed() nor Servlet.destroy() gets called when I
shutdown
tomcat.

After testing, I am not sure that adding this shutdownHook() in the
Servlet
will work.

I am not sure what I could be doing wrong? it seems as though others
have
similar issues (as I am sure you know), so could it be Tomcat?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:01 PM
To: Tomcat Users List
Subject: RE: Runtime.getRuntime().addShutdownHook()



Howdy,
Yes, it can be used.  I've used it without a problem.  You just want to
be careful: most things you'd put as a shutdown hook in a normal
program
should go in a ServletContextListener's contextDestroyed() event in a
servlet container.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:55 PM
To: '[EMAIL PROTECTED]'
Subject: Runtime.getRuntime().addShutdownHook()

Has anyone ever attempted to use this in a servlet in Tomcat?

I assume it can be used, correct?

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




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


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

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




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


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



RE: Tomcat 4.1.24 logs

2003-09-25 Thread Shapira, Yoav

Howdy,
Which log files are you talking about?  Why are they so verbose?
400MB/day is a lot of logging information.

Tomcat rotates the servlet context logs, host logs for your nightly.
You can erase the old ones if you don't need them.  You can redirect
System.out and System.err output to the context logs using the
swallowOutput property of a context definition in server.xml.  That
should cover most of your output.

Of course, if you cared enough to search the archives before posting,
you will have known the above already...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sarika N Inamdar [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:04 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.24 logs

Hi,

With tomcat 4.1.24 , everyday one log file is created. Is there any
configuration we can do to cleanup/remove the previous log files ?

Out application runs for many days and each of these log files is about
400MB. This would really eat up a lot of memory.

Would really appreciate any help on this.

Thanks,
Sarika


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




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


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



Re: Mutual and Basic Authentication switched on for the same web application

2003-09-25 Thread Tim Funk
In that case, security constraints in web.xml should be fine. (Google for 
more detail)

-Tim

Rudolf Castelino wrote:

Mutual Authentication is where a user needs to have a Client Side 
certificate to login to a webapplication which is using a Server Side 
Certificate



The Present is more Real than the Past or the Future Put together





From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Mutual and Basic Authentication switched on for the same 
web application
Date: Wed, 24 Sep 2003 17:52:07 -0400

What is mutual authentication?

In web.xml you can define security contraints on servlets or URLS. Each 
constraint can have its own login requirements. (FORM vs BASIC ...)

-Tim
 


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


Re: Tomcat 4.1.24 logs

2003-09-25 Thread Tim Funk
Via tomcat no. A simple perl/sh/... script run nightly would work nicely to 
delete old log files.

-Tim

Sarika N Inamdar wrote:

Hi,

With tomcat 4.1.24 , everyday one log file is created. Is there any
configuration we can do to cleanup/remove the previous log files ?
Out application runs for many days and each of these log files is about
400MB. This would really eat up a lot of memory.
Would really appreciate any help on this.

Thanks,
Sarika
 


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


RE: The email you authored contained a violation (either a virus or inappropriate content)

2003-09-25 Thread Phillip Qin
Correct one thing. This guy works for Quebecor, a Canadian publishing
company, not necessary in Quebec:)

-Original Message-
From: Joao Medeiros [mailto:[EMAIL PROTECTED] 
Sent: September 25, 2003 8:40 AM
To: Tomcat Users List
Subject: FW: The email you authored contained a violation (either a virus or
inappropriate content)

I keep on receiving this every time I reply or post to this list.
Not a major issue more of a nice to have if the member in Quebec puts in
a good word to the systems admin...

/JM

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: 25 September 2003 13:35
To: Joao Medeiros
Subject: The email you authored contained a violation (either a virus or
inappropriate content)

Your message was not received by the recipient.


The scanned document was deleted.


Violation Information:
The internet domain violated the content filtering rule Blocked Domains
2.
No attempt was made to repair.






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


Tomcat+SSL 404 error

2003-09-25 Thread Duncan Smith
I've just updgraded from tomcat 4.0 to 4.1.

In my web.xml I have the following:

  security-constraint
web-resource-collection
  web-resource-namePennymail Secure/web-resource-name
  url-pattern/secure/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

This worked fine in 4.0, but when I put it in in 4.1 any page that I
request returns:

HTTP Status 404 - /page.jsp
message /page.jsp
description The requested resource (/page.jsp) is not available.
Apache Tomcat/4.1.27-LE-jdk14

Without this entry, i can connect via ssl (port 443) but I need these
pages restricted to only ssl.

Anyone any idea why? Cheers, Duncan.




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



channel.apr values

2003-09-25 Thread Steven Garrett
Hi,

I'm a bit confused.  I want to set the timeout value to 1.  I was looking
through the documentation and it seems like channel.apr keepalive set to 1
is what I want.  And it looks like it should be in the workers2.properties
file and the format should be channel.apr:keepalive=1 is the format.  Is
this correct, the documentation is kind of confusing on these points.

Thanks,

Steve

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



Choosing an appropriate JK2 Handler

2003-09-25 Thread Jeremy Nix
I'm running a configuration with Apache and Tomcat on the same machine.
Which handler(s) would I see the biggest performance improvement by
using them?  I figured it would be the JNI option, but I wanted to get
some input.

_
Jeremy Nix
Senior Application Developer
Southwest Financial Ltd.
[EMAIL PROTECTED]
(513) 621-6699 ext 1158



URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
a little helping hand, please! I have updated my bean and so, i have put
this new bean version  in right package. However, the problem begins
whenever a new  bean object is created (instanced) by a servlet and captured
by a jsp later. The browser returns me error - 500. Probably, i guess my
TomCat 4.1.18 is working with old bean version, instead of the newer. What
should i do?
Euclides.

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



RE: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Shapira, Yoav

Howdy,
You should post the logs with the full error and your relevant source
code.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 10:40 AM
To: '[EMAIL PROTECTED]'
Subject: URGENT, PLEASE. The old Bug with bean cache?

Hi gurus,
a little helping hand, please! I have updated my bean and so, i have
put
this new bean version  in right package. However, the problem begins
whenever a new  bean object is created (instanced) by a servlet and
captured
by a jsp later. The browser returns me error - 500. Probably, i guess
my
TomCat 4.1.18 is working with old bean version, instead of the newer.
What
should i do?
Euclides.

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




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


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



RES: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
HERE IS THE ERROR MESSAGE . Thanks in advance, Euclides.

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

exception 

org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at BancoServlet.recuperaDicaTopico(BancoServlet.java:370)
at BancoServlet.service(BancoServlet.java:228)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.NullPointerException
at org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:228)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at BancoServlet.recuperaDicaTopico(BancoServlet.java:370)
at BancoServlet.service(BancoServlet.java:228)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at

RE: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Mike Curwen
Well uhh

if (dica == null) // NEW !
  System.out.println(valorrr+dica.getteDescricaodica());

You check an object, determine it is null, and then try to call a method
(gettDescricaodica()) on that object.. but you just determined it was
null!!
 
That's why you get java.lang.NullPointerException as the root cause of
your servlet exception.



 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 25, 2003 10:01 AM
 To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
 Subject: RES: URGENT, PLEASE. The old Bug with bean cache?
 
 
 HERE IS THE ERROR MESSAGE . Thanks in advance, Euclides.
 
 The server encountered an internal error () that prevented it 
 from fulfilling this request.
 
 exception 
 
 org.apache.jasper.JasperException
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:2
 48)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:295)
   at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
 ionDispatcher.
 java:684)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
 cationDispatch
 er.java:432)
   at 
 org.apache.catalina.core.ApplicationDispatcher.forward(Applica
 tionDispatcher
 .java:356)
   at BancoServlet.recuperaDicaTopico(BancoServlet.java:370)
   at BancoServlet.service(BancoServlet.java:228)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Application
 FilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterCh
 ain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.ja
 va:260)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.ja
 va:191)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2415)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.
 java:170)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:172
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java
 :174)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
 java:223)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:432)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processConne
 ction(Http11Protocol.java:386)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:534)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.jav
 a:530)
   at java.lang.Thread.run(Thread.java:536)
 
 
 root cause 
 
 java.lang.NullPointerException
   at 
 org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:228)
   at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:2
 04)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:295)
   at 
 

RES: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dont worry about that! The condition statement is just a test that i have
included in my the original code...
The real problem is why the dica object doesnt exist?!
Euclides.

-Mensagem original-
De: Mike Curwen [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 25 de setembro de 2003 12:10
Para: 'Tomcat Users List'
Assunto: RE: URGENT, PLEASE. The old Bug with bean cache?


Well uhh

if (dica == null) // NEW !
  System.out.println(valorrr+dica.getteDescricaodica());

You check an object, determine it is null, and then try to call a method
(gettDescricaodica()) on that object.. but you just determined it was
null!!
 
That's why you get java.lang.NullPointerException as the root cause of
your servlet exception.



 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 25, 2003 10:01 AM
 To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
 Subject: RES: URGENT, PLEASE. The old Bug with bean cache?
 
 
 HERE IS THE ERROR MESSAGE . Thanks in advance, Euclides.
 
 The server encountered an internal error () that prevented it 
 from fulfilling this request.
 
 exception 
 
 org.apache.jasper.JasperException
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:2
 48)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:295)
   at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
 ionDispatcher.
 java:684)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
 cationDispatch
 er.java:432)
   at 
 org.apache.catalina.core.ApplicationDispatcher.forward(Applica
 tionDispatcher
 .java:356)
   at BancoServlet.recuperaDicaTopico(BancoServlet.java:370)
   at BancoServlet.service(BancoServlet.java:228)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Application
 FilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterCh
 ain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.ja
 va:260)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.ja
 va:191)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2415)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.
 java:170)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:172
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java
 :174)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
 java:223)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:432)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processConne
 ction(Http11Protocol.java:386)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:534)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.jav
 a:530)
   at java.lang.Thread.run(Thread.java:536)
 
 
 root cause 
 
 java.lang.NullPointerException
   at 
 

RE: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Mike Curwen
No WORRY about that. It's incredibly bad coding practice, it is what
is throwing the NullPointerException. 
 
What you have to do is investigate:
dica = (Dica)pega.next();

What is pega?  What populates the pega objects with dica objects?  Look
in *that* code.


 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 25, 2003 10:13 AM
 To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
 Subject: RES: URGENT, PLEASE. The old Bug with bean cache?
 
 
 Dont worry about that! The condition statement is just a test 
 that i have included in my the original code... The real 
 problem is why the dica object doesnt exist?! Euclides.
 
 -Mensagem original-
 De: Mike Curwen [mailto:[EMAIL PROTECTED]
 Enviada em: quinta-feira, 25 de setembro de 2003 12:10
 Para: 'Tomcat Users List'
 Assunto: RE: URGENT, PLEASE. The old Bug with bean cache?
 
 
 Well uhh
 
 if (dica == null) // NEW !
   System.out.println(valorrr+dica.getteDescricaodica());
 
 You check an object, determine it is null, and then try to 
 call a method
 (gettDescricaodica()) on that object.. but you just 
 determined it was null!!
  
 That's why you get java.lang.NullPointerException as the root 
 cause of your servlet exception.
 
 
 
  -Original Message-
  From: Jose Euclides da Silva Junior - DATAPREVRJ
  [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 25, 2003 10:01 AM
  To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
  Subject: RES: URGENT, PLEASE. The old Bug with bean cache?
  
  
  HERE IS THE ERROR MESSAGE . Thanks in advance, Euclides.
  
  The server encountered an internal error () that prevented it
  from fulfilling this request.
  
  exception
  
  org.apache.jasper.JasperException
  at
  org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
  Wrapper.java:2
  48)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
  .java:295)
  at 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
  org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
  ionDispatcher.
  java:684)
  at 
  org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
  cationDispatch
  er.java:432)
  at 
  org.apache.catalina.core.ApplicationDispatcher.forward(Applica
  tionDispatcher
  .java:356)
  at BancoServlet.recuperaDicaTopico(BancoServlet.java:370)
  at BancoServlet.service(BancoServlet.java:228)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
  er(Application
  FilterChain.java:247)
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
  cationFilterCh
  ain.java:193)
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.ja
  va:260)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValv
  eContext.invok
  eNext(StandardPipeline.java:643)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:480)
  at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.ja
  va:191)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValv
  eContext.invok
  eNext(StandardPipeline.java:643)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:480)
  at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
  org.apache.catalina.core.StandardContext.invoke(StandardContex
  t.java:2415)
  at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHost
  Valve.java:180
  )
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValv
  eContext.invok
  eNext(StandardPipeline.java:643)
  at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
  spatcherValve.
  java:170)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValv
  eContext.invok
  eNext(StandardPipeline.java:641)
  at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
  Valve.java:172
  )
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValv
  eContext.invok
  eNext(StandardPipeline.java:641)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:480)
  at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
  gineValve.java
  :174)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValv
  eContext.invok
  eNext(StandardPipeline.java:643)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:480)
  at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
  

performance article completed

2003-09-25 Thread Peter Lin

 

quick announcement. I've completed the article and emailed it to remy. the related 
source files are currently on my server. Please be gentle, my bandwidth is limited 
until remy posts all the files on apache. When remy has time, he will post it :)

 

http://tao.altern8.net:8080/jmeterUtil.zip

http://tao.altern8.net:8080/benchmarks.zip

 

the first file contains the webapp, jmeter test plans, source and other stuff. the 
second file is the raw apache AB results.

 

peter lin

 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

URGENT!! Changing URLs with tomcat

2003-09-25 Thread mohan
Hi All
I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I
used call my webapplication xyz using www.abc.org/xyz. Now company has
decided that pople should be able to access this webapplication through
the URL

www.abc/javapps/xyz. Do i need to change the whole architecture now or
should i be able to do it easily. I have tried to create a directory under
/var/tomcat4/webapps/ as japps/xyz and pointed my .war file to this
directory. But tomcat is not able to map this URL at all. Please help me
find a solution to this problem.


Thanx in advance

--Mohan



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



How do I config Tomcat to only service requests from localhost?

2003-09-25 Thread Mike Kellstrand
I'm sure the answer is quite simple, but I haven't been able to
find it online yet.

I've got Tomcat running on a PC, and I want it to only service
requests coming from the same PC (i.e. localhost).
If a request come in from the LAN, I want to ignore it.

I found references to the inet attribute to the Connector element,
but it doesn't work for me.

Thanks,  Mike


Re: How do I config Tomcat to only service requests from localhost?

2003-09-25 Thread Yann Cébron
Try Remote Address/Host Filter:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

Cheers,
Yann


***
I'm sure the answer is quite simple, but I haven't been able to
find it online yet.

I've got Tomcat running on a PC, and I want it to only service
requests coming from the same PC (i.e. localhost).
If a request come in from the LAN, I want to ignore it.

I found references to the inet attribute to the Connector element,
but it doesn't work for me.

Thanks,  Mike




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



Connection reset

2003-09-25 Thread Vinay Bhat
Hi everyone,
   I am running tomcat 4 on Red Hat Linux 8. Although my web application 
seems to be running ok, when i look at the localhost_log, i find the 
following stack trace. It seems to happen a few times everyday. Also, a 
very small number of users get a 'Page not Found' when they try accessing 
my application, and for some others they get the initial login page, but 
when they enter their ID and Pwd and hit submit, tomcat doesnt seem to 
recognise their session. I am using session cookies and not url rewriting. 
I have SSL set up on tomcat (i created my own certificate using keytool) 
and my users are using https to connect to the web application. If anyone 
has encountered the problem before, or have suggestions for me, that would 
be very helpful.
The stack trace is below. I dont know if it is related to some users not 
being able to access the application, or if it is something else.

2003-09-25 10:31:11 StandardWrapperValve[default]: Servlet.service() for 
servlet default threw exception
java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at 
org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:675)
at 
org.apache.catalina.connector.HttpResponseBase.doFlushBuffer(HttpResponseBase.java:795)
at 
org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:785)
at 
org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:648)
at 
org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:313)
at 
org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:190)
at 
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
at 
org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
at 
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 

Re: performance article completed

2003-09-25 Thread Peter Lin
 
Here is an update to those wondering about the tomcat performance handbook. The 
chapters remy and I wrote will be subsumed in a new Tomcat book commisioned by Apress. 
The editor wanted me to let people know.
 
I don't know the details yet.
 
peter lin
 


Peter Lin [EMAIL PROTECTED] wrote:



quick announcement. I've completed the article and emailed it to remy. the related 
source files are currently on my server. Please be gentle, my bandwidth is limited 
until remy posts all the files on apache. When remy has time, he will post it :)



http://tao.altern8.net:8080/jmeterUtil.zip

http://tao.altern8.net:8080/benchmarks.zip



the first file contains the webapp, jmeter test plans, source and other stuff. the 
second file is the raw apache AB results.



peter lin




-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: URGENT!! Changing URLs with tomcat

2003-09-25 Thread Shapira, Yoav

Howdy,
In your server.xml, say path=javapps/xyz for your context.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:32 PM
To: [EMAIL PROTECTED]
Subject: URGENT!! Changing URLs with tomcat

Hi All
I am currently running tomcat4.1.27 and apache1.3.x. I am using struts.
I
used call my webapplication xyz using www.abc.org/xyz. Now company
has
decided that pople should be able to access this webapplication through
the URL

www.abc/javapps/xyz. Do i need to change the whole architecture now or
should i be able to do it easily. I have tried to create a directory
under
/var/tomcat4/webapps/ as japps/xyz and pointed my .war file to this
directory. But tomcat is not able to map this URL at all. Please help
me
find a solution to this problem.


Thanx in advance

--Mohan



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




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


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



Re: How do I config Tomcat to only service requests from localhost?

2003-09-25 Thread Mike Kellstrand
Cool!  That did it.

Thanks,  Mike

- Original Message - 
From: Yann C?bron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:58 PM
Subject: Re: How do I config Tomcat to only service requests from localhost?


 Try Remote Address/Host Filter:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 Cheers,
 Yann


 ***
 I'm sure the answer is quite simple, but I haven't been able to
 find it online yet.

 I've got Tomcat running on a PC, and I want it to only service
 requests coming from the same PC (i.e. localhost).
 If a request come in from the LAN, I want to ignore it.

 I found references to the inet attribute to the Connector element,
 but it doesn't work for me.

 Thanks,  Mike




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



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



Desprately need with Directory Listings

2003-09-25 Thread Atreya Basu
Hello,

I'm in desperate need of showing a file list.

In my httpd.conf file I have the following:
Directory /sumdir
Options +Indexes
...
/Directory
However when I go to '/sumdir'  I get the

HTTP Status 404 - /sumdir

Apache Tomcat/4.1.27
My workers2.properties file only has URI mapping for .jsp files:
[uri:www.website/*.jsp]

If I put an Index.html file, it gets read by apache.  But when there 
isn't one, Tomcat shows the above error.

I desperately need help with this.

Thanks.

Atreya

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


RE: Accessing GlobalNamingResources

2003-09-25 Thread Miguel Vieira
Thank you for the reply João.

I've tried the code with no success, all I got was:
javax.naming.NameNotFoundException: Name leaders.archive is not bound 
in this Context
...

My server.xml file has the following GlobalNamingResources:
Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
debug=0/
  GlobalNamingResources
Environment description=This is a test! name=leaders.archive 
override=false type=java.lang.String value=LEADERS Archive/
Environment name=simpleValue override=true 
type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be 
updated and saved name=UserDatabase scope=Shareable 
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

Do I need to create a ResourceLink in the application context in order 
to read a value in the GlobalNamingResources?

Thanks again,
Miguel Vieira
Miguel,



I'm assuming you want to access the values as defined for a given
parameter in your server.xml or in your web.xml files depending on
whether you want them defined globally or per application.


Try the folling code in your jsp file and replace the parameter name
with the appropriate one.


BEGIN CODE SNIPET

   String my_var = ;

   try

   {

  InitialContext initCtx  = new InitialContext();

  if(initCtx == null) throw new Exception(Boom - No Context);

  //Context envContext = (Context) initialContext.lookup
(java:comp/env);
  Context envCtx  =
(Context)initCtx.lookup(java:comp/env);
  my_var= (String)
envCtx.lookup(my_parameter_name);
   }

   catch(Exception e)

   {

  out.println(e.getMessage());

  e.printStackTrace();

   }

END CODE SNIPET



/JM



-Original Message-
From: Miguel Vieira [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 12:35
To: [EMAIL PROTECTED]
Subject: Accessing GlobalNamingResources


Hi,



I'm using Tomcat 4.1.19 and I'd like to know if it's possible to 
access

the GlobalNamingResources, defined in server.xml, from a servlet,

without creating a ResourceLink in the servlet's context?



Thanks,

Miguel Vieira


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


tomcat shutdown.sh doesn't kill tomcat processes

2003-09-25 Thread Patrice Seyed
So the symptom is /usr/local/tomcat/bin/shutdown.sh does not stop
tomcat.
By the way tomcat is running jk2 connector on port 8080 to apache on
port 80

Even after i stop tomcat, I will see in netstat -nap | grep 8080 that
the
socket is still open, and ps -elf | grep tomcat that the process for
tomcat
are still running.
Any ideas or seen this?


When I try to stop it again of course it complains, because it thinks
its stopped;
# service tomcat stop
Stopping Tomcat
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


the corresponding out in  catalina.out is:
Catalina.start: LifecycleException:  Protocol handler initialization
failed:
java.net.BindException: Address already in use:8080
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address already in use:8080
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.jav
a:11
19)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:579
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2
246)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException:  This server has not yet been started


 
 
Regards,
 
Patrice Seyed, System Administrator
RHCE, SCSA
Genetics Program, BU School of Medicine
 
 


RE: tomcat shutdown.sh doesn't kill tomcat processes

2003-09-25 Thread Shapira, Yoav

Howdy,
Hey, you're virtually next door to me ;)

Anyways, you most likely have non-daemon threads in your app.  Tomcat
can't shut those down for you (see javadoc in java.lang.Thread as well
as many discussions on this list in the past).  That's why the process
is still alive, shutdown isn't properly completed, and you can't start
the server again because the socket is still bound.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Patrice Seyed [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 1:43 PM
To: [EMAIL PROTECTED]
Subject: tomcat shutdown.sh doesn't kill tomcat processes

So the symptom is /usr/local/tomcat/bin/shutdown.sh does not stop
tomcat.
By the way tomcat is running jk2 connector on port 8080 to apache on
port 80

Even after i stop tomcat, I will see in netstat -nap | grep 8080 that
the
socket is still open, and ps -elf | grep tomcat that the process for
tomcat
are still running.
Any ideas or seen this?


When I try to stop it again of course it complains, because it thinks
its stopped;
# service tomcat stop
Stopping Tomcat
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


the corresponding out in  catalina.out is:
Catalina.start: LifecycleException:  Protocol handler initialization
failed:
java.net.BindException: Address already in use:8080
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address already in use:8080
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
a:11
19)
at
org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
:579
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
246)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException:  This server has not yet been
started




Regards,

Patrice Seyed, System Administrator
RHCE, SCSA
Genetics Program, BU School of Medicine





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


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



Re: How do I config EMBEDDED Tomcat to only service requests from localhost?

2003-09-25 Thread Mike Kellstrand
OK, adding a Valve to server.xml worked great for a standalone Tomcat.

Now Part II, how do I do this with an embedded Tomcat?
I get the impression that embedded doesn't use a server.xml file.
Is there a way to make it read a partial one with the element I need,
or another way to set up this valve?

Thanks,  Mike

- Original Message - 
From: Yann C?bron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:58 PM
Subject: Re: How do I config Tomcat to only service requests from localhost?


 Try Remote Address/Host Filter:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 Cheers,
 Yann


 ***
 I'm sure the answer is quite simple, but I haven't been able to
 find it online yet.

 I've got Tomcat running on a PC, and I want it to only service
 requests coming from the same PC (i.e. localhost).
 If a request come in from the LAN, I want to ignore it.

 I found references to the inet attribute to the Connector element,
 but it doesn't work for me.

 Thanks,  Mike




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



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



[OT] RE: How do I config EMBEDDED Tomcat to only service requests from localhost?

2003-09-25 Thread Robert Priest
So is there really any difference between the intentions of a 

Valve and the intentions of a Filter?

http://java.sun.com/products/servlet/Filters.html


I was just curious. They seem to solve the same sort of issues, right?

-Original Message-
From: Mike Kellstrand [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: How do I config EMBEDDED Tomcat to only service requests
from localhost?


OK, adding a Valve to server.xml worked great for a standalone Tomcat.

Now Part II, how do I do this with an embedded Tomcat?
I get the impression that embedded doesn't use a server.xml file.
Is there a way to make it read a partial one with the element I need,
or another way to set up this valve?

Thanks,  Mike

- Original Message - 
From: Yann C?bron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:58 PM
Subject: Re: How do I config Tomcat to only service requests from localhost?


 Try Remote Address/Host Filter:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 Cheers,
 Yann


 ***
 I'm sure the answer is quite simple, but I haven't been able to
 find it online yet.

 I've got Tomcat running on a PC, and I want it to only service
 requests coming from the same PC (i.e. localhost).
 If a request come in from the LAN, I want to ignore it.

 I found references to the inet attribute to the Connector element,
 but it doesn't work for me.

 Thanks,  Mike




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



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

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



RE: [OT] RE: How do I config EMBEDDED Tomcat to only service requests from localhost?

2003-09-25 Thread Shapira, Yoav

Howdy,
The thought behind them is similar, yes.  Valves predate servlet
filters.  Nowadays one should almost always use a servlet filter for
it's portable and container-independent.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:44 PM
To: 'Tomcat Users List'
Subject: [OT] RE: How do I config EMBEDDED Tomcat to only service
requests
from localhost?

So is there really any difference between the intentions of a

Valve and the intentions of a Filter?

http://java.sun.com/products/servlet/Filters.html


I was just curious. They seem to solve the same sort of issues, right?

-Original Message-
From: Mike Kellstrand [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: How do I config EMBEDDED Tomcat to only service requests
from localhost?


OK, adding a Valve to server.xml worked great for a standalone Tomcat.

Now Part II, how do I do this with an embedded Tomcat?
I get the impression that embedded doesn't use a server.xml file.
Is there a way to make it read a partial one with the element I need,
or another way to set up this valve?

Thanks,  Mike

- Original Message -
From: Yann C?bron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:58 PM
Subject: Re: How do I config Tomcat to only service requests from
localhost?


 Try Remote Address/Host Filter:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 Cheers,
 Yann


 ***
 I'm sure the answer is quite simple, but I haven't been able to
 find it online yet.

 I've got Tomcat running on a PC, and I want it to only service
 requests coming from the same PC (i.e. localhost).
 If a request come in from the LAN, I want to ignore it.

 I found references to the inet attribute to the Connector
element,
 but it doesn't work for me.

 Thanks,  Mike




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



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

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




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


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



RE: How do I config EMBEDDED Tomcat to only service requests from localhost?

2003-09-25 Thread Shapira, Yoav

Howdy,
You can just create one programmatically and use Pipeline#addValve(...)
to add it to your chosen container.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mike Kellstrand [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: How do I config EMBEDDED Tomcat to only service requests
from
localhost?

OK, adding a Valve to server.xml worked great for a standalone Tomcat.

Now Part II, how do I do this with an embedded Tomcat?
I get the impression that embedded doesn't use a server.xml file.
Is there a way to make it read a partial one with the element I need,
or another way to set up this valve?

Thanks,  Mike

- Original Message -
From: Yann C?bron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:58 PM
Subject: Re: How do I config Tomcat to only service requests from
localhost?


 Try Remote Address/Host Filter:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 Cheers,
 Yann


 ***
 I'm sure the answer is quite simple, but I haven't been able to
 find it online yet.

 I've got Tomcat running on a PC, and I want it to only service
 requests coming from the same PC (i.e. localhost).
 If a request come in from the LAN, I want to ignore it.

 I found references to the inet attribute to the Connector
element,
 but it doesn't work for me.

 Thanks,  Mike




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



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




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


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



RE: [OT] RE: How do I config EMBEDDED Tomcat to only service requ ests from localhost?

2003-09-25 Thread Robert Priest
Ahhh. I see that you even include an example of the RequestDumperValve as
a filter in the tree. cool.

for those interested, this is the statement in the build of the j-t-4.0
tree:

 !-- The request dumper valve dumps useful debugging information about
   the request headers and cookies that were received, and the
response
   headers and cookies that were sent, for all requests received by
   this instance of Tomcat.  If you care only about requests to a
   particular virtual host, or a particular application, nest this
   element inside the corresponding Host or Context entry
instead.

   For a similar mechanism that is portable to all Servlet 2.3
   containers, check out the RequestDumperFilter Filter in the
   example application (the source for this filter may be found in
   $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters).

   Request dumping is disabled by default.  Uncomment the following
   element to enable it. --
  !--
  Valve className=org.apache.catalina.valves.RequestDumperValve/
  --

-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:44 PM
To: 'Tomcat Users List'
Subject: [OT] RE: How do I config EMBEDDED Tomcat to only service
requests from localhost?


So is there really any difference between the intentions of a 

Valve and the intentions of a Filter?

http://java.sun.com/products/servlet/Filters.html


I was just curious. They seem to solve the same sort of issues, right?

-Original Message-
From: Mike Kellstrand [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: How do I config EMBEDDED Tomcat to only service requests
from localhost?


OK, adding a Valve to server.xml worked great for a standalone Tomcat.

Now Part II, how do I do this with an embedded Tomcat?
I get the impression that embedded doesn't use a server.xml file.
Is there a way to make it read a partial one with the element I need,
or another way to set up this valve?

Thanks,  Mike

- Original Message - 
From: Yann C?bron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:58 PM
Subject: Re: How do I config Tomcat to only service requests from localhost?


 Try Remote Address/Host Filter:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 Cheers,
 Yann


 ***
 I'm sure the answer is quite simple, but I haven't been able to
 find it online yet.

 I've got Tomcat running on a PC, and I want it to only service
 requests coming from the same PC (i.e. localhost).
 If a request come in from the LAN, I want to ignore it.

 I found references to the inet attribute to the Connector element,
 but it doesn't work for me.

 Thanks,  Mike




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



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

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

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



RE: Accessing GlobalNamingResources

2003-09-25 Thread King,Daniel
My own experience and what I have read on this and another user list, is that the 
kinks with accessing a datasource in the  GlobalNamingResources element have only 
just been worked out with version 5.  Now you can access the global datasource with 
just a resource link in your web app Context.  Previously (in version 4.1.27 and 
lower) I had to put the whole data source element in the Context element of every 
web app.  By contrast, you can now put your web app Context element in a separate 
XML file at $CATALINA_HOME/conf/Catalina/localhost, where the prefix of the XML file 
name is the same name as the web application.  That keeps your server.xml from getting 
too cluttered.   
 
But given all of the problems people have had just accessing a global data source, I 
would be surprised if you can do it from your source code, with no resource link 
specified.  And not to meddle, but wouldn't doing so tightly couple your web app to 
your data source details?

-Original Message- 
From: Miguel Vieira [mailto:[EMAIL PROTECTED] 
Sent: Thu 9/25/2003 9:18 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: RE: Accessing GlobalNamingResources



Thank you for the reply Joo.

I've tried the code with no success, all I got was:
javax.naming.NameNotFoundException: Name leaders.archive is not bound
in this Context
...

My server.xml file has the following GlobalNamingResources:
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
   GlobalNamingResources
 Environment description=This is a test! name=leaders.archive
override=false type=java.lang.String value=LEADERS Archive/
 Environment name=simpleValue override=true
type=java.lang.Integer value=30/
 Resource auth=Container description=User database that can be
updated and saved name=UserDatabase scope=Shareable
type=org.apache.catalina.UserDatabase/
 ResourceParams name=UserDatabase
   parameter
 namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
   /GlobalNamingResources

Do I need to create a ResourceLink in the application context in order
to read a value in the GlobalNamingResources?

Thanks again,
Miguel Vieira

 Miguel,



 I'm assuming you want to access the values as defined for a given
 parameter in your server.xml or in your web.xml files depending on
 whether you want them defined globally or per application.



 Try the folling code in your jsp file and replace the parameter name
 with the appropriate one.



 BEGIN CODE SNIPET

String my_var = ;

try

{

   InitialContext initCtx  = new InitialContext();

   if(initCtx == null) throw new Exception(Boom - No Context);

   //Context envContext = (Context) initialContext.lookup
 (java:comp/env);

   Context envCtx  =
 (Context)initCtx.lookup(java:comp/env);

   my_var= (String)
 envCtx.lookup(my_parameter_name);

}

catch(Exception e)

{

   out.println(e.getMessage());

   e.printStackTrace();

}

 END CODE SNIPET



 /JM



 -Original Message-
 From: Miguel Vieira [mailto:[EMAIL PROTECTED]
 Sent: 25 September 2003 12:35
 To: [EMAIL PROTECTED]
 Subject: Accessing GlobalNamingResources



 Hi,



 I'm using Tomcat 4.1.19 and I'd like to know if it's possible to
 access

 the GlobalNamingResources, defined in server.xml, from a servlet,

 without creating a ResourceLink in the servlet's context?



 Thanks,

 Miguel Vieira


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




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

JRun - maybe off topic

2003-09-25 Thread Steve Harris
Hi all,

I'm trying to get to grips with the architecture for an application we are
going to be deploying.  I have no problem with the apache/tomcat set-up
but this app uses apache and JRun.  Am I reading this wrong or does JRun
simply take the place of tomcat but runs the apps locally as opposed to
being able to be deployed under an apps server like tomcat on some other
server somewhere ?

Cheers - Steve


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



Re: JRun - maybe off topic

2003-09-25 Thread Dov Rosenberg
We moved our stuff to Jrun after fighting with the JK nonsense trying to
integrate with Apache. Jrun replaces Apache Tomcat.

On 9/25/03 3:06 PM, Steve Harris [EMAIL PROTECTED] wrote:

 Hi all,
 
 I'm trying to get to grips with the architecture for an application we are
 going to be deploying.  I have no problem with the apache/tomcat set-up
 but this app uses apache and JRun.  Am I reading this wrong or does JRun
 simply take the place of tomcat but runs the apps locally as opposed to
 being able to be deployed under an apps server like tomcat on some other
 server somewhere ?
 
 Cheers - Steve
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Dov Rosenberg
President, Conviveon Corporation
370 Centerpointe Circle, suite 1178
Altamonte Springs, FL 32701
http://www.conviveon.com
[EMAIL PROTECTED]
(407) 339-1177 X102
(407) 339-6704 (FAX)
(800) 475-9890
(407) 310-8316 (cell)


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



RE: JRun - maybe off topic

2003-09-25 Thread Shapira, Yoav

Howdy,
JRun is a complete J2EE server.  It can replace just your tomcat piece
or whole apache-tomcat setup.  If you really need Apache, it probably
because your traffic is high enough that tomcat standalone can't handle
it.  In that case, you'll still need Apache in front o JRun.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: JRun - maybe off topic

Hi all,

I'm trying to get to grips with the architecture for an application we
are
going to be deploying.  I have no problem with the apache/tomcat set-up
but this app uses apache and JRun.  Am I reading this wrong or does
JRun
simply take the place of tomcat but runs the apps locally as opposed to
being able to be deployed under an apps server like tomcat on some
other
server somewhere ?

Cheers - Steve


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




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


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



RE: URGENT!! Changing URLs with tomcat

2003-09-25 Thread mohan
Cool, it works thanx a lot Shapira



 Howdy,
 In your server.xml, say path=javapps/xyz for your context.

 Yoav Shapira
 Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:32 PM
To: [EMAIL PROTECTED]
Subject: URGENT!! Changing URLs with tomcat

Hi All
I am currently running tomcat4.1.27 and apache1.3.x. I am using struts.
 I
used call my webapplication xyz using www.abc.org/xyz. Now company
 has
decided that pople should be able to access this webapplication through
 the URL

www.abc/javapps/xyz. Do i need to change the whole architecture now or
 should i be able to do it easily. I have tried to create a directory
 under
/var/tomcat4/webapps/ as japps/xyz and pointed my .war file to this
 directory. But tomcat is not able to map this URL at all. Please help
 me
find a solution to this problem.


Thanx in advance

--Mohan



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




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


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




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



Re: URGENT!! Changing URLs with tomcat

2003-09-25 Thread mohan
What u said really works Shapira. Thanx a lot again. Thats the easiest
way, add a context in the Context tag


--mohan


 Hi All
 I am currently running tomcat4.1.27 and apache1.3.x. I am using struts.
 I used call my webapplication xyz using www.abc.org/xyz. Now company
 has decided that pople should be able to access this webapplication
 through the URL

 www.abc/javapps/xyz. Do i need to change the whole architecture now or
 should i be able to do it easily. I have tried to create a directory
 under /var/tomcat4/webapps/ as japps/xyz and pointed my .war file to
 this directory. But tomcat is not able to map this URL at all. Please
 help me find a solution to this problem.


 Thanx in advance

 --Mohan



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




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



RE: Accessing GlobalNamingResources

2003-09-25 Thread Joao Medeiros
Miguel,

I assume you have defined a context under your host definition.
Resources can de defined under each context to make it local to that
very same application and that's what I would do if I wanted for
instance to define a parameter and assign a value to so I can retrieve
later on in my application.

Sorry if this is not exactly what you were looking for but perhaps
someone in this forum might be able to shed some light to it.

This is however how I would go about doing it:

Create a context under your host (you probably have done that already).
Under your context create as many parameter resources as you'd like.
Use the following code to retrieve the values assigned to your
parameters in your application:

%@ page import = javax.naming.* %
String parm = ;
   try
   {
  InitialContext initCtx  = new InitialContext();
  if(initCtx == null) throw new Exception(Boom - No Context);
  Context envCtx  =
(Context)initCtx.lookup(java:comp/env);
//replace any_parameter with the parameter name as defined under your
web.xml file.
  parm= (String)
envCtx.lookup(any_parameter);
   }
   catch(Exception e) 
   {
  out.println(e.getMessage());
  e.printStackTrace();
   }

It works for me so it should work for you as well unless you have some
specific requirements that don't allow you to use this solution.


Hope this helps.
/JM

-Original Message-
From: Miguel Vieira [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2003 16:19
To: [EMAIL PROTECTED]
Subject: RE: Accessing GlobalNamingResources

Thank you for the reply João.

I've tried the code with no success, all I got was:
javax.naming.NameNotFoundException: Name leaders.archive is not bound 
in this Context
...

My server.xml file has the following GlobalNamingResources:
Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
debug=0/
   GlobalNamingResources
 Environment description=This is a test! name=leaders.archive 
override=false type=java.lang.String value=LEADERS Archive/
 Environment name=simpleValue override=true 
type=java.lang.Integer value=30/
 Resource auth=Container description=User database that can be 
updated and saved name=UserDatabase scope=Shareable 
type=org.apache.catalina.UserDatabase/
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
   /GlobalNamingResources

Do I need to create a ResourceLink in the application context in order 
to read a value in the GlobalNamingResources?

Thanks again,
Miguel Vieira

 Miguel,



 I'm assuming you want to access the values as defined for a given
 parameter in your server.xml or in your web.xml files depending on
 whether you want them defined globally or per application.



 Try the folling code in your jsp file and replace the parameter name
 with the appropriate one.



 BEGIN CODE SNIPET

String my_var = ;

try

{

   InitialContext initCtx  = new InitialContext();

   if(initCtx == null) throw new Exception(Boom - No Context);

   //Context envContext = (Context) initialContext.lookup
 (java:comp/env);

   Context envCtx  =
 (Context)initCtx.lookup(java:comp/env);

   my_var= (String)
 envCtx.lookup(my_parameter_name);

}

catch(Exception e)

{

   out.println(e.getMessage());

   e.printStackTrace();

}

 END CODE SNIPET



 /JM



 -Original Message-
 From: Miguel Vieira [mailto:[EMAIL PROTECTED]
 Sent: 25 September 2003 12:35
 To: [EMAIL PROTECTED]
 Subject: Accessing GlobalNamingResources



 Hi,



 I'm using Tomcat 4.1.19 and I'd like to know if it's possible to 
 access

 the GlobalNamingResources, defined in server.xml, from a servlet,

 without creating a ResourceLink in the servlet's context?



 Thanks,

 Miguel Vieira


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




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



RE: URGENT!! Changing URLs with tomcat

2003-09-25 Thread Shapira, Yoav

Howdy,
No problem, glad to help ;)


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT!! Changing URLs with tomcat

What u said really works Shapira. Thanx a lot again. Thats the easiest
way, add a context in the Context tag


--mohan


 Hi All
 I am currently running tomcat4.1.27 and apache1.3.x. I am using
struts.
 I used call my webapplication xyz using www.abc.org/xyz. Now
company
 has decided that pople should be able to access this webapplication
 through the URL

 www.abc/javapps/xyz. Do i need to change the whole architecture now
or
 should i be able to do it easily. I have tried to create a directory
 under /var/tomcat4/webapps/ as japps/xyz and pointed my .war file
to
 this directory. But tomcat is not able to map this URL at all. Please
 help me find a solution to this problem.


 Thanx in advance

 --Mohan



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




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




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


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



How much memory does Tomcat really use?

2003-09-25 Thread Frank T. Murphy
Does anyone have a handle on how much memory is used by java in running
tomcat?  I set the ms and mx values but it always seems that the process
overall takes up much more memory.

I asume it's overhead with the JVM talking to the operating system.
I'm trying to get a handle on how to size various servers.
I went through Sun's developer forums and I've seen this question asked
several times with no response.

I work in bothe the Solaris and windows environment.


Thanks



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



RE: tomcat shutdown.sh doesn't kill tomcat processes

2003-09-25 Thread Patrice Seyed
I've thumbed through the archives, can anyone give me larger hint?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 1:44 PM
To: Tomcat Users List
Subject: RE: tomcat shutdown.sh doesn't kill tomcat processes


Howdy,
Hey, you're virtually next door to me ;)

Anyways, you most likely have non-daemon threads in your app.  Tomcat
can't shut those down for you (see javadoc in java.lang.Thread as well
as many discussions on this list in the past).  That's why the process
is still alive, shutdown isn't properly completed, and you can't start
the server again because the socket is still bound.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Patrice Seyed [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 1:43 PM
To: [EMAIL PROTECTED]
Subject: tomcat shutdown.sh doesn't kill tomcat processes

So the symptom is /usr/local/tomcat/bin/shutdown.sh does not stop
tomcat.
By the way tomcat is running jk2 connector on port 8080 to apache on
port 80

Even after i stop tomcat, I will see in netstat -nap | grep 8080 that
the
socket is still open, and ps -elf | grep tomcat that the process for
tomcat
are still running.
Any ideas or seen this?


When I try to stop it again of course it complains, because it thinks
its stopped;
# service tomcat stop
Stopping Tomcat
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


the corresponding out in  catalina.out is:
Catalina.start: LifecycleException:  Protocol handler initialization
failed:
java.net.BindException: Address already in use:8080
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address already in use:8080
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
a:11
19)
at
org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
:579
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
246)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException:  This server has not yet been
started




Regards,

Patrice Seyed, System Administrator
RHCE, SCSA
Genetics Program, BU School of Medicine





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


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



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



jk2, Tomcat4, Apache1.3

2003-09-25 Thread Blake Crosby
For some reason jk2 is trying to talk to Tomcat on port 8009, even though I
don¹t specify that port in wokers2.properties file:

[uriMap:]
info=Maps the requests. Options: debug
debug=10

[config:]
file=${serverRoot}/conf/workers2.properties
debug=10
debugEnv=10

# SHM Stuff
[shm]
info=Scoreboard.
file=${serverRoot}/logs/jk2.shm
size=1048576

# Where is Tomcat Listening?
[channel.socket:localhost:38009]
port=38009


# define the worker
[ajp13:localhost:38009]
channel=channel.socket:localhost:38009

[uri:/examples/*]
info=Example webapp in the default context.
context=/examples
worker=ajp13:localhost:38009
debug=1

#define the worker
[status:status]

# Uri mapping
[uri:/jkstatus/*]
worker=status:status


Loading /jkstatus works fine, but when I try to load /examples, I get these
errors in jk2.log:

[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (157)]: env:Create child env
0x80de088 0x80f8f48
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (638)]: uriMap.mapUri()
hostname (null) port 3000 uri /examples/
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (652)]: uriMap.mapUri()
found host *
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (677)]: uriMap.mapUri()
found ctx /examples
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (707)]: uriMap.mapUri()
prefix match /examples/ ajp13:localhost:38009
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (469)]: mod_jk.translate():
uriMap /examples/ ajp13:localhost:38009
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (362)]: mod_jk.handler() per
dir worker for 0x80e60d8 0x80ea0f8
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (394)]: mod_jk.handler(): new
rpool
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (405)]: modjk.handler()
Calling ajp13:localhost:38009 0x80ea0f8
[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (248)]: env.createBean2():
Create [endpoint] (null)
[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (383)]: env.getByName(): Get
by name workerEnv 0x80e0130
[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (312)]: env.createBean2():
register endpoint:10 0x810e228
[Thu Sep 25 20:25:05 2003]  ( info) [jk_shm.c (478)]: shm.createSlot()
Create 4 0x40688000 0x4069
[Thu Sep 25 20:25:05 2003]  ( info) [jk_endpoint.c (95)]: workerEnv.init()
create slot epStat.4
[Thu Sep 25 20:25:05 2003]  (debug) [jk_requtil.c (723)]:
serialize.request() serialized /examples/
[Thu Sep 25 20:25:05 2003]  (error) [jk_channel_socket.c (340)]:
channelSocket.open() connect failed localhost:8009 111 Connection refused
[Thu Sep 25 20:25:05 2003]  (error) [jk_worker_ajp13.c (245)]:
ajp13.connect() failed ajp13:localhost:38009
[Thu Sep 25 20:25:05 2003]  (error) [jk_worker_ajp13.c (320)]:
ajp13.service() failed to connect endpoint errno=111 Connection refused
[Thu Sep 25 20:25:05 2003]  (error) [jk_worker_ajp13.c (503)]:
ajp13.service() Error  forwarding ajp13:localhost:38009 1 1
[Thu Sep 25 20:25:05 2003]  ( info) [jk_worker_ajp13.c (543)]: ajp13.done()
close endpoint ajp13:localhost:38009 error_state 1
[Thu Sep 25 20:25:05 2003]  (error) [mod_jk2.c (427)]: mod_jk.handler()
Error connecting to tomcat 21000


Why is mod_jk2 trying to connect to port 8009?

Apache: 1.3.28
Tomcat: 1.2.27
Mod_jk: 2.1.0


-- 
Blake Crosby   -   CBC.ca Operations
Platform Administrator
voice://+1.416.205.3103  mobile://+1.416.884.5828
[EMAIL PROTECTED]



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



Re: How much memory does Tomcat really use?

2003-09-25 Thread Mikael Aronsson
A basic out of the box Tomcat 5.0.12 is pretty happy with around 30MB on a
windows machine, but it's always tricky to say how much memory it will use
as it depends on lots of other things, how you configure it and the kind of
applications you run on it, but  40-50MB could be an ok guess on Windows.

Mikael

- Original Message - 
From: Frank T. Murphy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 10:08 PM
Subject: How much memory does Tomcat really use?


 Does anyone have a handle on how much memory is used by java in running
 tomcat?  I set the ms and mx values but it always seems that the process
 overall takes up much more memory.

 I asume it's overhead with the JVM talking to the operating system.
 I'm trying to get a handle on how to size various servers.
 I went through Sun's developer forums and I've seen this question asked
 several times with no response.

 I work in bothe the Solaris and windows environment.


 Thanks



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



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



RE: Stop Tomcat Remotely

2003-09-25 Thread Allen Hadden

You can still remotely stop the Windows service, regardless of the fact that Tomcat 
only listens on localhost:8005.  The two mechanisms are completely different.  You can 
stop any Windows service using the mechanism I described.

Allen

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 24, 2003 5:29 PM
 To: Tomcat Users List
 Subject: Re: Stop Tomcat Remotely
 
 
 I was under the impression, and this has maybe already been 
 answered, that
 because of security issues, 8005 only accepts connections 
 from the same host
 
 Filip
 - Original Message -
 From: Allen Hadden [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 1:49 PM
 Subject: RE: Stop Tomcat Remotely
 
 
 
 If it's running as a Windows service, do this:
 
 (note that these instructions are for Windows 2000):
 
 1.  Right click on My Computer and select Manage.  The 
 Computer Management
 window opens.
 2.  Right click on Computer Management and select the 
 Connect to another
 computer...
 3.  Select the computer running the Tomcat service.
 4.  Go to Services and Applications  Services.  Find your 
 service and
 stop it.
 
 Of course, there are Windows permission issues involved, but 
 you presumably
 have the appropriate permissions to do this.
 
 Hope this helps.
 
 Allen
 
  -Original Message-
  From: srinath narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 4:33 PM
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
 
 
 
  I tried that, one 8005 is not even open ( I don't know if
  this is because
  tomcat runs as a windows service )
  The documentation says that that can be done only from the
  local computer.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 15:20
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
 
 
 
  Howdy,
  And what happens if you telnet to the host where tomcat is 
 running, to
  the port specified as the server port (not the connectors) 
 in tomcat's
  server.xml, and type SHUTDOWN?
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: srinath narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 3:14 PM
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
  
  Well sometimes you have no choice or its not in your hands 
 to decide.
  I know it can be done in unix.
  It can be done in windows as well if you enable telnet or using WMI
  scripts
  ( those involve other security rights issues same as in unix).
  What I was expecting is somehow make a socket ( telnet )
  connection to
  a
  port
  on which the tomcat server is listening ( not 8080 ) and send a
  command.
  
  Thanks.
  
  -Original Message-
  From: Greg Ward [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 14:52
  To: Tomcat Users List
  Subject: Re: Stop Tomcat Remotely
  
  
  On 24 September 2003, srinath narasimhan said:
   Is there any way to stop tomcat from remote computer ?
   Tomcat is run as windows service.
  
  Well, how do you normally run commands remotely with Windows?
  If the server is a Unix box, you could do this:
  
ssh [EMAIL PROTECTED] $CATALINA_HOME/bin/catalina.sh stop
  
  or even this:
  
ssh [EMAIL PROTECTED] echo SHUTDOWN | nc localhost 8005
  
  If Windows doesn't have a way to execute commands remotely, what on
  earth are you doing using it as a server OS?
  
  Greg
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is
  confidential, proprietary
  and/or privileged.  This e-mail is intended only for the
  individual(s) to
  whom it is addressed, and may not be saved, copied, printed,
  disclosed or
  used by anyone else.  If you are not the(an) intended
  recipient, please
  immediately delete this e-mail from your computer system and
  notify the
  sender.  Thank you.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, 

getRemoteUser() and Basic Auth

2003-09-25 Thread Robert Priest
Hello,

Can anyone tell me why my getRemoteUser() call is coming back null when I
turn Basic Authentication on in IIS?


I know that IIS\the isapi redirector2 is sending the information, but it
seems as though 
the RemoteUser() property of the Request is not being set. 

Is there something I need to do in order to turn that on?

Here is the information that is being forwarded by the IIS\isapi redirector2
( I ran netmon just to show that the filter was sending the info) to tomcat.
It is followed by the information retrieved by the RequestDumperValve:


01B0  22 00 A0 03 00 0D 67 7A 69 70 2C 20 64 65 66 6C .gzip,.defl
01C0  61 74 65 00 A0 08 00 01 30 00 03 00 15 62 65 6E ate.0ben
01D0  74 6C 65 79 5C 72 6F 62 65 72 74 2E 70 72 69 65 tley\robert.prie
01E0  73 74 00 04 00 05 42 61 73 69 63 00 06 00 11 77 stBasicw
01F0  64 65 76 2D 70 72 69 65 73 74 31 3A 38 30 31 39 dev-priest1:8019
0200  00 FF   ..  


from the RequestDumperValve:

RequestDumperValve[Standalone]: header=accept=image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, application/x-shockwave-flash,
*/*
RequestDumperValve[Standalone]: header=accept-language=en-us
RequestDumperValve[Standalone]: header=connection=Keep-Alive
RequestDumperValve[Standalone]: header=host=localhost
RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)
RequestDumperValve[Standalone]: header=authorization=Basic ...
RequestDumperValve[Standalone]: header=if-modified-since=Thu, 27
Mar 2003 12:21:50 GMT
RequestDumperValve[Standalone]:
header=if-none-match=W/1020-104876771
RequestDumperValve[Standalone]: header=accept-encoding=gzip,
deflate
RequestDumperValve[Standalone]: header=content-length=0
RequestDumperValve[Standalone]: locale=en_US
RequestDumperValve[Standalone]: method=GET
RequestDumperValve[Standalone]:   pathInfo=null
RequestDumperValve[Standalone]:   protocol=HTTP/1.1
RequestDumperValve[Standalone]:queryString=null
RequestDumperValve[Standalone]: remoteAddr=127.0.0.1
RequestDumperValve[Standalone]: remoteHost=127.0.0.1
RequestDumperValve[Standalone]: remoteUser=null
RequestDumperValve[Standalone]: requestedSessionId=null
RequestDumperValve[Standalone]: scheme=http
RequestDumperValve[Standalone]: serverName=localhost
RequestDumperValve[Standalone]: serverPort=80
RequestDumperValve[Standalone]:servletPath=null
RequestDumperValve[Standalone]:   isSecure=false

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



RE: JRun - maybe off topic

2003-09-25 Thread Steve Harris
So can jrun be split off and run on a sperate box from apache like I
can with tomcat ?

Cheers - Steve

On Thu, 25 Sep 2003, Shapira, Yoav wrote:


 Howdy,
 JRun is a complete J2EE server.  It can replace just your tomcat piece
 or whole apache-tomcat setup.  If you really need Apache, it probably
 because your traffic is high enough that tomcat standalone can't handle
 it.  In that case, you'll still need Apache in front o JRun.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Steve Harris [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 3:07 PM
 To: [EMAIL PROTECTED]
 Subject: JRun - maybe off topic
 
 Hi all,
 
 I'm trying to get to grips with the architecture for an application we
 are
 going to be deploying.  I have no problem with the apache/tomcat set-up
 but this app uses apache and JRun.  Am I reading this wrong or does
 JRun
 simply take the place of tomcat but runs the apps locally as opposed to
 being able to be deployed under an apps server like tomcat on some
 other
 server somewhere ?
 
 Cheers - Steve
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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


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




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



Configuring server.xml for SSL breaks Tomcat

2003-09-25 Thread Matt Morgan
I'm using 4.1.27 on debian 3.0 with the JDK 1.3 from Blackdown, and the 
last independent JSSE from Sun, the one intended for jdk1.3. Tomcat runs 
as user tomcat4, whose home dir is /usr/share/tomcat4 and whose login 
shell is /bin/false.

Tomcat runs fine when I don't try to get SSL working. Annoyingly enough, 
it ran for a minute with SSL working, but that was with the default 
password on the keystore which I thought was a bad idea, long-term. So I 
created a new key, put it in the same place (with the same name), and 
restarted tomcat. Only Tomcat wouldn't start at all, not even the 
non-SSL connector.

So, I tried to go back to the old key. No good; same problem. Finally I 
went back to a /conf/server.xml file with the SSL connector commented 
out, and I could get Tomcat to restart (non-SSL only). I've tried about 
ten times to recreate the key with the default password and every time I 
reconfigure server.xml to start an SSL connector, Tomcat won't start.

I am creating the key as root, since I can't login as tomcat4; I use

/usr/lib/j2se/1.3/bin/keytool -genkey -alias tomcat -keyalg RSA

and then I copy the key to /usr/share/tomcat4 and chown it to tomcat4. 
This is what worked the one time. I have also tried using -keystore 
/usr/share/tomcat4/.keystore, which hasn't helped. I've deleted all the 
old .keystores from the system, so I know it's not trying to open an old 
one.

Basically, all I'm doing to server.xml is removing the comments around 
the pre-configured SSL connector. So it looks like this:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
I know certificates can be touchy, but I'm at a loss to understand why 
this worked once, and is failing to work now. And why would it prevent 
Tomcat from working in non-SSL?

Thanks,
Matt Morgan
Manager of Information Systems
Brooklyn Museum of Art


RE: getRemoteUser() and Basic Auth

2003-09-25 Thread Robert Priest
Nevermind. I found the answer.

Don't worry, I am slapping myself on the hand for not checking the archive
first :)

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

-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:46 PM
To: '[EMAIL PROTECTED]'
Subject: getRemoteUser() and Basic Auth


Hello,

Can anyone tell me why my getRemoteUser() call is coming back null when I
turn Basic Authentication on in IIS?


I know that IIS\the isapi redirector2 is sending the information, but it
seems as though 
the RemoteUser() property of the Request is not being set. 

Is there something I need to do in order to turn that on?

Here is the information that is being forwarded by the IIS\isapi redirector2
( I ran netmon just to show that the filter was sending the info) to tomcat.
It is followed by the information retrieved by the RequestDumperValve:


01B0  22 00 A0 03 00 0D 67 7A 69 70 2C 20 64 65 66 6C .gzip,.defl
01C0  61 74 65 00 A0 08 00 01 30 00 03 00 15 62 65 6E ate.0ben
01D0  74 6C 65 79 5C 72 6F 62 65 72 74 2E 70 72 69 65 tley\robert.prie
01E0  73 74 00 04 00 05 42 61 73 69 63 00 06 00 11 77 stBasicw
01F0  64 65 76 2D 70 72 69 65 73 74 31 3A 38 30 31 39 dev-priest1:8019
0200  00 FF   ..  


from the RequestDumperValve:

RequestDumperValve[Standalone]: header=accept=image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, application/x-shockwave-flash,
*/*
RequestDumperValve[Standalone]: header=accept-language=en-us
RequestDumperValve[Standalone]: header=connection=Keep-Alive
RequestDumperValve[Standalone]: header=host=localhost
RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)
RequestDumperValve[Standalone]: header=authorization=Basic ...
RequestDumperValve[Standalone]: header=if-modified-since=Thu, 27
Mar 2003 12:21:50 GMT
RequestDumperValve[Standalone]:
header=if-none-match=W/1020-104876771
RequestDumperValve[Standalone]: header=accept-encoding=gzip,
deflate
RequestDumperValve[Standalone]: header=content-length=0
RequestDumperValve[Standalone]: locale=en_US
RequestDumperValve[Standalone]: method=GET
RequestDumperValve[Standalone]:   pathInfo=null
RequestDumperValve[Standalone]:   protocol=HTTP/1.1
RequestDumperValve[Standalone]:queryString=null
RequestDumperValve[Standalone]: remoteAddr=127.0.0.1
RequestDumperValve[Standalone]: remoteHost=127.0.0.1
RequestDumperValve[Standalone]: remoteUser=null
RequestDumperValve[Standalone]: requestedSessionId=null
RequestDumperValve[Standalone]: scheme=http
RequestDumperValve[Standalone]: serverName=localhost
RequestDumperValve[Standalone]: serverPort=80
RequestDumperValve[Standalone]:servletPath=null
RequestDumperValve[Standalone]:   isSecure=false

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

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



Tomcat5, SSL, IBM JDK 1.4 and Linux

2003-09-25 Thread Halstead, Chris
OK, I'm tearing my hair out here ;-)

What's the secret to making SSL work in Tomcat 5.0.12 when running on Linux with IBM 
JDK 1.4?  I have followed the steps to the letter (thrice) and have nothing to show 
for it yet.  I found that you need to set algorithm to IbmX509 in the connector def, 
which stopped me from getting IOExceptions in JSSE14SocketFactory.init().  After doing 
that, the connector initializes and binds to the port, but attempts to connect with a 
browser immediately fail.  Netscape is nice enough to let me know that it could find 
no ciphers in common with the server, whereas IE just fails.  Non-secure works great.

I followed the exact same steps on a Sun box running Sun's 1.4 JDK (with the exact 
same install set, tarred and moved), and all works just fine.

This happens identically on an i386 machine as well as on an s/390 Linux partition.

I even tried plopping the JSSE stuff in JAVA_HOME/jre/lib/ext, but no joy.

I have tried using a self-signed cert as well as a demo cert from Verisign.

What on earth am I missing?

-chris

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



RE: Configuring server.xml for SSL breaks Tomcat

2003-09-25 Thread King,Daniel
I don't know what your time span has been for working with this, but I ran into a 
problem using WebLogic where my key had expired.  My self-signed certificate had not 
expired, but the key had.  I used the OpenSSL software.  When I recreated the key with 
arguments to make it expire in a year, instead of the default of 30 days, I did not 
have the problem again.
 

-Original Message- 
From: Matt Morgan [mailto:[EMAIL PROTECTED] 
Sent: Thu 9/25/2003 3:24 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Configuring server.xml for SSL breaks Tomcat



I'm using 4.1.27 on debian 3.0 with the JDK 1.3 from Blackdown, and the
last independent JSSE from Sun, the one intended for jdk1.3. Tomcat runs
as user tomcat4, whose home dir is /usr/share/tomcat4 and whose login
shell is /bin/false.

Tomcat runs fine when I don't try to get SSL working. Annoyingly enough,
it ran for a minute with SSL working, but that was with the default
password on the keystore which I thought was a bad idea, long-term. So I
created a new key, put it in the same place (with the same name), and
restarted tomcat. Only Tomcat wouldn't start at all, not even the
non-SSL connector.

So, I tried to go back to the old key. No good; same problem. Finally I
went back to a /conf/server.xml file with the SSL connector commented
out, and I could get Tomcat to restart (non-SSL only). I've tried about
ten times to recreate the key with the default password and every time I
reconfigure server.xml to start an SSL connector, Tomcat won't start.

I am creating the key as root, since I can't login as tomcat4; I use

/usr/lib/j2se/1.3/bin/keytool -genkey -alias tomcat -keyalg RSA

and then I copy the key to /usr/share/tomcat4 and chown it to tomcat4.
This is what worked the one time. I have also tried using -keystore
/usr/share/tomcat4/.keystore, which hasn't helped. I've deleted all the
old .keystores from the system, so I know it's not trying to open an old
one.

Basically, all I'm doing to server.xml is removing the comments around
the pre-configured SSL connector. So it looks like this:

Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
/Connector

I know certificates can be touchy, but I'm at a loss to understand why
this worked once, and is failing to work now. And why would it prevent
Tomcat from working in non-SSL?

Thanks,
Matt Morgan
Manager of Information Systems
Brooklyn Museum of Art


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

Re: tomcat shutdown.sh doesn't kill tomcat processes

2003-09-25 Thread Tim Funk
kill -3 tomcatprocessid to force a thread dump after you try to shut tomcat down.

From the thread dump look for any thread which is NOT a daemon thread. That 
is the thing keeping the JVM alive.

-Tim

Patrice Seyed wrote:
I've thumbed through the archives, can anyone give me larger hint?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 1:44 PM
To: Tomcat Users List
Subject: RE: tomcat shutdown.sh doesn't kill tomcat processes

Howdy,
Hey, you're virtually next door to me ;)
Anyways, you most likely have non-daemon threads in your app.  Tomcat
can't shut those down for you (see javadoc in java.lang.Thread as well
as many discussions on this list in the past).  That's why the process
is still alive, shutdown isn't properly completed, and you can't start
the server again because the socket is still bound.


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


Re: Configuring server.xml for SSL breaks Tomcat

2003-09-25 Thread Matt Morgan
Thanks. Well, the Tomcat docs don't say anything about what the default 
expiry is for keys self-generated with keytool, but this is work that I 
did all today, and in general I was trying to use the keys within 
seconds of creating them.

Any other thoughts? Are these keys I'm creating persistent in some 
way--cached somewhere, or anything like that? It doesn't seem like it.

King,Daniel wrote:

I don't know what your time span has been for working with this, but I ran into a problem using WebLogic where my key had expired.  My self-signed certificate had not expired, but the key had.  I used the OpenSSL software.  When I recreated the key with arguments to make it expire in a year, instead of the default of 30 days, I did not have the problem again.

	-Original Message- 
	From: Matt Morgan [mailto:[EMAIL PROTECTED] 
	Sent: Thu 9/25/2003 3:24 PM 
	To: [EMAIL PROTECTED] 
	Cc: 
	Subject: Configuring server.xml for SSL breaks Tomcat
	
	

I'm using 4.1.27 on debian 3.0 with the JDK 1.3 from Blackdown, and the
last independent JSSE from Sun, the one intended for jdk1.3. Tomcat runs
as user tomcat4, whose home dir is /usr/share/tomcat4 and whose login
shell is /bin/false.

Tomcat runs fine when I don't try to get SSL working. Annoyingly enough,
it ran for a minute with SSL working, but that was with the default
password on the keystore which I thought was a bad idea, long-term. So I
created a new key, put it in the same place (with the same name), and
restarted tomcat. Only Tomcat wouldn't start at all, not even the
non-SSL connector.

So, I tried to go back to the old key. No good; same problem. Finally I
went back to a /conf/server.xml file with the SSL connector commented
out, and I could get Tomcat to restart (non-SSL only). I've tried about
ten times to recreate the key with the default password and every time I
reconfigure server.xml to start an SSL connector, Tomcat won't start.

I am creating the key as root, since I can't login as tomcat4; I use

/usr/lib/j2se/1.3/bin/keytool -genkey -alias tomcat -keyalg RSA

and then I copy the key to /usr/share/tomcat4 and chown it to tomcat4.
This is what worked the one time. I have also tried using -keystore
/usr/share/tomcat4/.keystore, which hasn't helped. I've deleted all the
old .keystores from the system, so I know it's not trying to open an old
one.

Basically, all I'm doing to server.xml is removing the comments around
the pre-configured SSL connector. So it looks like this:

Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
/Connector

I know certificates can be touchy, but I'm at a loss to understand why
this worked once, and is failing to work now. And why would it prevent
Tomcat from working in non-SSL?

Thanks,
Matt Morgan
Manager of Information Systems
Brooklyn Museum of Art

 



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


Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-25 Thread Joe Mihalich
 

 

 

Hi,

 

   I've installed Apache version 2.0.47, and tomcat version
4.1.27 on a windows xp box.

 

   I've downloaded the mod_jk2-2.0.43.dll connector, and put it
in the modules directory

Under apache.

 

   I configured tomcat to auto generate the mod_jk.conf file.

 

   All that is working ok.so it seems.

 

   I then modified the httpd.conf file as follows:

 

LoadModule jk_module modules/mod_jk2-2.0.43.dll 

AddModule mod_jk.c

 

JkWorkersFile \Program Files\Apache
Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties

JkLogFile logs\mod_jk.log

JkLogLevel debug

 

   And added this include, at the end of the file

 

Include \Program Files\Apache
Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf

 

   Now, when I try to start up apache, I'm getting this error:

 

Syntax error on line 173 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:

Can't locate API module structure `jk_module' in file C:/Program
Files/Apache Gr

oup/Apache2/modules/mod_jk2.dll: No error

 

   Line 173 is the LoadModule line above.

 

   Can someone please tell me why I'm getting this error?  In
the download

Directory for mod_jk2-2.0.43.dll, it says that this file is only
for Apache 2.0.43.

I assume that it will work for 2.0.47.or is that the problem
here?  I can't

Find 2.0.43 to download anymore.

 

   Also, I'm confused as to why all the other modules in the
modules sub directory

Have the .so extension.  Aren't those unix shared library
objects?  Can they work

On windows?

 

   Anyway, any help would be appreciated.

 

Thanks,

Joe

 





RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-25 Thread Dean Searle
Joe,
 
You place the mod_jk2 file in the correct folder, however you have set up the 
parameters in your httpd.conf file incorrectly. The parameters you have are for the 
mod_jk module. For the mod_jk2 module you would need a workers2.properties file and a 
jk2.shm file.
 
I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on Windows 2000, 
but I have used the same instructions on my WinXP Pro with out any problems. If this 
mail list would not mind me sending this document please let me know.
 
This is information I have compiled from numerous mail lists and debugged for many 
months. The document is about 20 pages long give or take. I don't have it in front of 
me at this time. I can post it as a pdf or RTF. Let me know which version is more 
acceptable.
 

Dean

-Original Message- 
From: Joe Mihalich [mailto:[EMAIL PROTECTED] 
Sent: Thu 9/25/2003 7:29 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Tomcat connector for Apache 2.0.47 ... Please Help









Hi,



   I've installed Apache version 2.0.47, and tomcat version
4.1.27 on a windows xp box.



   I've downloaded the mod_jk2-2.0.43.dll connector, and put it
in the modules directory

Under apache.



   I configured tomcat to auto generate the mod_jk.conf file.



   All that is working ok.so it seems.



   I then modified the httpd.conf file as follows:



LoadModule jk_module modules/mod_jk2-2.0.43.dll

AddModule mod_jk.c



JkWorkersFile \Program Files\Apache
Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties

JkLogFile logs\mod_jk.log

JkLogLevel debug



   And added this include, at the end of the file



Include \Program Files\Apache
Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf



   Now, when I try to start up apache, I'm getting this error:



Syntax error on line 173 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:

Can't locate API module structure `jk_module' in file C:/Program
Files/Apache Gr

oup/Apache2/modules/mod_jk2.dll: No error



   Line 173 is the LoadModule line above.



   Can someone please tell me why I'm getting this error?  In
the download

Directory for mod_jk2-2.0.43.dll, it says that this file is only
for Apache 2.0.43.

I assume that it will work for 2.0.47.or is that the problem
here?  I can't

Find 2.0.43 to download anymore.



   Also, I'm confused as to why all the other modules in the
modules sub directory

Have the .so extension.  Aren't those unix shared library
objects?  Can they work

On windows?



   Anyway, any help would be appreciated.



Thanks,

Joe



   





RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-25 Thread Joe Mihalich

Dean,

Thanks for your reply.  I need to figure out how to 
Do this asap.

Can you email me your document to [EMAIL PROTECTED]  ?

Where did you read/find out about this workers2.properties and jk2.shm
File?  How did this change so much from the existing documentation?

Thanks,
Joe


 -Original Message-
 From: Dean Searle [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 4:44 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Tomcat connector for Apache 2.0.47 ... Please Help
 
 Joe,
 
 You place the mod_jk2 file in the correct folder, however you have set up
 the parameters in your httpd.conf file incorrectly. The parameters you
 have are for the mod_jk module. For the mod_jk2 module you would need a
 workers2.properties file and a jk2.shm file.
 
 I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on
 Windows 2000, but I have used the same instructions on my WinXP Pro with
 out any problems. If this mail list would not mind me sending this
 document please let me know.
 
 This is information I have compiled from numerous mail lists and debugged
 for many months. The document is about 20 pages long give or take. I don't
 have it in front of me at this time. I can post it as a pdf or RTF. Let me
 know which version is more acceptable.
 
 
 Dean
 
   -Original Message-
   From: Joe Mihalich [mailto:[EMAIL PROTECTED]
   Sent: Thu 9/25/2003 7:29 PM
   To: [EMAIL PROTECTED]
   Cc:
   Subject: Tomcat connector for Apache 2.0.47 ... Please Help
 
 
 
 
 
 
 
 
 
   Hi,
 
 
 
  I've installed Apache version 2.0.47, and tomcat
 version
   4.1.27 on a windows xp box.
 
 
 
  I've downloaded the mod_jk2-2.0.43.dll connector, and
 put it
   in the modules directory
 
   Under apache.
 
 
 
  I configured tomcat to auto generate the mod_jk.conf
 file.
 
 
 
  All that is working ok.so it seems.
 
 
 
  I then modified the httpd.conf file as follows:
 
 
 
   LoadModule jk_module modules/mod_jk2-2.0.43.dll
 
   AddModule mod_jk.c
 
 
 
   JkWorkersFile \Program Files\Apache
   Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties
 
   JkLogFile logs\mod_jk.log
 
   JkLogLevel debug
 
 
 
  And added this include, at the end of the file
 
 
 
   Include \Program Files\Apache
   Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf
 
 
 
  Now, when I try to start up apache, I'm getting this
 error:
 
 
 
   Syntax error on line 173 of C:/Program Files/Apache
   Group/Apache2/conf/httpd.conf:
 
   Can't locate API module structure `jk_module' in file C:/Program
   Files/Apache Gr
 
   oup/Apache2/modules/mod_jk2.dll: No error
 
 
 
  Line 173 is the LoadModule line above.
 
 
 
  Can someone please tell me why I'm getting this
 error?  In
   the download
 
   Directory for mod_jk2-2.0.43.dll, it says that this file
 is only
   for Apache 2.0.43.
 
   I assume that it will work for 2.0.47.or is that the
 problem
   here?  I can't
 
   Find 2.0.43 to download anymore.
 
 
 
  Also, I'm confused as to why all the other modules in
 the
   modules sub directory
 
   Have the .so extension.  Aren't those unix shared
 library
   objects?  Can they work
 
   On windows?
 
 
 
  Anyway, any help would be appreciated.
 
 
 
   Thanks,
 
   Joe
 
 
 
 
 
 




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



RE: Configuring server.xml for SSL breaks Tomcat

2003-09-25 Thread King,Daniel
You are just talking about the key, but what is actually needed to use SSL (if Tomcat 
is like WebLogic) is a self-signed certificate, and there are several steps that you 
have to go through to create that correctly, even before the challenge of configuring 
Tomcat to use it.
 
The example below uses OpenSSL, which comes standard with most flavors of Linux.
 
Assume directory /usr/local/temp where you are going to create your certificate.
1. Go to /usr/local/temp, and create directory cert,
2. Go to directory cert.  This will be referred to in the SSL section as the SSL 
working directory.  From the SSL working directory, create directory demoCA,
3. Go to directory demoCA, and create two directories:
  A. newcerts
  B. private
4. In directory demoCA, create 2 text files:
  A. serial (no extension), and insert the value 01 and a return,
  B. index.txt which should be left empty.
 
5. Return to directory cert, and from a command shell issue the  following command, to 
create a Certificate Authority (CA for short):
 
 openssl req -x509 -newkey rsa:512 -keyout ./demoCA/private/cakey.pem -out 
 ./demoCA/cacert.pem days 1095
 
Command Summary for readability:
openssl req -x509
-newkey rsa:512 
-keyout ./demoCA/private/cakey.pem 
-out ./demoCA/cacert.pem 
days 1095
 
openssl will ask you numerous questions:
 
   Pass Phrase  = **
   Country (2 chars)= US
   State (spell out)= Idaho
   Locality (City)  = Boise
   Organization = my org
   Org. Unit   = my division
   Common Name  = myorg.org
   emailAddress = [EMAIL PROTECTED]
 
openssl uses the configuration file mentioned above for default values.  If everything 
works, it will create the CA key, called cakey.pem, at:
 
./demoCA/private/cakey.pem
 
and will will create the CA, called cacert.pem, at:
 
./demoCA/cacert.pem
 
Store the pass phrase that you enter in a secure place.  You will need it in step 8 
ahead.
 
6. Next you need to create a key for a certificate request.  From the SSL working 
directory, issue the command:
 
 openssl genrsa -out ./key.pem 512 days 1095
 
which will create the key file called key.pem in the working directory.
 
7. Next you need to create the certificate request.  From the SSL working directory, 
issue the command:
 
 openssl req -new -key ./key.pem -out ./req.pem days 1095
 
You will once again be asked all the questions listed above.  Additionally, you will 
be asked to choose a Challenge Password.  Enter a Challenge Password; do not confuse 
this with the Pass Phrase in step 5.   Hit return for the prompt An optional 
company name[].
 
8. Next you will use the CA to create and sign cert.pem, an actual certificate.  The 
CA will use ./cert/req.pem (the Certificate request)  as the raw material from which 
to create the actual certificate.  The CA and its key (the one in the subdirectory 
called private, not the one in the working directory) are used to sign the request.  
From the SSL working directory issue the command:
 
 openssl ca -in ./req.pem -out ./cert.pem  days 1095
 
At that point you must enter the PEM pass phrase that you used to create the CA (see 
step 5 above).  It must be exactly the same as before.  Then you will have a signed 
certificate at:
 
/usr/local/temp/cert/cert.pem
 
Now make sure to change owner and permissions so that the server will be able to use 
all this stuff.  From the SSL working directory, issue the commands:
 cd ..
 chown R youruser:youruser ./cert
 chmod R 700 ./cert
 
9. Next you must open cert.pem with a text editor, and remove all of the stuff above 
the line:
 
-BEGIN CERTIFICATE-
 
I don't know why openssl puts that stuff in there, but WebLogic will not work with it 
there.  If you do not remove it, you will get an exception:
 
java.security.KeyManagementException: ASN.1: Unxpected ASN.1 tag

(that is Sun's misspelling of Unexpected, not mine).
 
 
Configure Tomcat to user certificate at this point, along with moving the certificate 
from /usr/local/temp to the location where Tomcat expects it to be.  This is stuff I 
do not know the details about yet.
 
 
Then if you did everything correctly, you can restart the, and it will use your new 
Certificate.  How will you know?  When you connect to the server, you will be prompted 
with two dialog boxes (from Internet Explorer).  The second one will say Security 
Alert.  Select the button labeled View Certificate, and you will see:
 
Issued to:  myorg.org
Issued by:   myorg.org
 
Instead of the default values used by Tomcat when it is using its demonstration 
certificates.

 

-Original Message- 
From: Matt Morgan [mailto:[EMAIL PROTECTED] 
Sent: Thu 9/25/2003 4:55 PM 
To: Tomcat Users List 
Cc: 
Subject: Re: Configuring server.xml for SSL breaks Tomcat



Thanks. Well, the Tomcat docs don't say anything about what the default
expiry is for keys self-generated with keytool, 

Re: JRun - maybe off topic

2003-09-25 Thread Kok Wei, Koh
Hi Steve,

Yes you can. Say you have machine A and B, with A running Apache (w/ 
mod_jrun) and B with JRun. You have to first configure JRun to disable 
the JRun web server (in this case you dont want to use it because it's 
always better to have Apache in front shielding JRun), and then 
configure the external webserver which will then open up the jcp (JRun 
connector port). This is the port on machine B that's opened up for 
mod_jrun on machine A to connect to.

On machine A, you need to have the local.properties file of the JRun 
server running on machine B, so that mod_jrun is able to look up the jcp 
to connect to.

I'm bad at illustrating this with words ... forgive me if the above is 
kinda misleading. I've done this kinda setup before and it works. I 
however, just got experience with JRun 3.0, and not 4.0.

Good luck! ;-) and happy trying.

Steve Harris wrote:
So can jrun be split off and run on a sperate box from apache like I
can with tomcat ?
Cheers - Steve

On Thu, 25 Sep 2003, Shapira, Yoav wrote:


Howdy,
JRun is a complete J2EE server.  It can replace just your tomcat piece
or whole apache-tomcat setup.  If you really need Apache, it probably
because your traffic is high enough that tomcat standalone can't handle
it.  In that case, you'll still need Apache in front o JRun.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: JRun - maybe off topic
Hi all,

I'm trying to get to grips with the architecture for an application we
are

going to be deploying.  I have no problem with the apache/tomcat set-up
but this app uses apache and JRun.  Am I reading this wrong or does
JRun

simply take the place of tomcat but runs the apps locally as opposed to
being able to be deployed under an apps server like tomcat on some
other

server somewhere ?

Cheers - Steve

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




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

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



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



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


Re: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-25 Thread Zepiroth Hong
Dear Dean,

If it is possible, I would like to get one of your copy of the full
installation documentation.
I have the same problem with Joe.

Thanks in advance.

Best regards.

Hong.

- Original Message -
From: Dean Searle [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED]@formalogix.com;
[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 6:43 AM
Subject: RE: Tomcat connector for Apache 2.0.47 ... Please Help


 Joe,

 You place the mod_jk2 file in the correct folder, however you have set up
the parameters in your httpd.conf file incorrectly. The parameters you have
are for the mod_jk module. For the mod_jk2 module you would need a
workers2.properties file and a jk2.shm file.

 I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on
Windows 2000, but I have used the same instructions on my WinXP Pro with out
any problems. If this mail list would not mind me sending this document
please let me know.

 This is information I have compiled from numerous mail lists and debugged
for many months. The document is about 20 pages long give or take. I don't
have it in front of me at this time. I can post it as a pdf or RTF. Let me
know which version is more acceptable.


 Dean

 -Original Message-
 From: Joe Mihalich [mailto:[EMAIL PROTECTED]
 Sent: Thu 9/25/2003 7:29 PM
 To: [EMAIL PROTECTED]
 Cc:
 Subject: Tomcat connector for Apache 2.0.47 ... Please Help









 Hi,



I've installed Apache version 2.0.47, and tomcat version
 4.1.27 on a windows xp box.



I've downloaded the mod_jk2-2.0.43.dll connector, and put
it
 in the modules directory

 Under apache.



I configured tomcat to auto generate the mod_jk.conf file.



All that is working ok.so it seems.



I then modified the httpd.conf file as follows:



 LoadModule jk_module modules/mod_jk2-2.0.43.dll

 AddModule mod_jk.c



 JkWorkersFile \Program Files\Apache
 Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties

 JkLogFile logs\mod_jk.log

 JkLogLevel debug



And added this include, at the end of the file



 Include \Program Files\Apache
 Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf



Now, when I try to start up apache, I'm getting this error:



 Syntax error on line 173 of C:/Program Files/Apache
 Group/Apache2/conf/httpd.conf:

 Can't locate API module structure `jk_module' in file C:/Program
 Files/Apache Gr

 oup/Apache2/modules/mod_jk2.dll: No error



Line 173 is the LoadModule line above.



Can someone please tell me why I'm getting this error?  In
 the download

 Directory for mod_jk2-2.0.43.dll, it says that this file is
only
 for Apache 2.0.43.

 I assume that it will work for 2.0.47.or is that the problem
 here?  I can't

 Find 2.0.43 to download anymore.



Also, I'm confused as to why all the other modules in the
 modules sub directory

 Have the .so extension.  Aren't those unix shared library
 objects?  Can they work

 On windows?



Anyway, any help would be appreciated.



 Thanks,

 Joe










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



Re: Tomcat5, SSL, IBM JDK 1.4 and Linux

2003-09-25 Thread Bill Barker
It seems that IBM's JSSE implementation has some limitations using the TLS
protocol.  However, Tomcat seems to work fine if you change the
sslProtocol=SSL.

Halstead, Chris [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
OK, I'm tearing my hair out here ;-)

What's the secret to making SSL work in Tomcat 5.0.12 when running on Linux
with IBM JDK 1.4?  I have followed the steps to the letter (thrice) and have
nothing to show for it yet.  I found that you need to set algorithm to
IbmX509 in the connector def, which stopped me from getting IOExceptions
in JSSE14SocketFactory.init().  After doing that, the connector initializes
and binds to the port, but attempts to connect with a browser immediately
fail.  Netscape is nice enough to let me know that it could find no ciphers
in common with the server, whereas IE just fails.  Non-secure works great.

I followed the exact same steps on a Sun box running Sun's 1.4 JDK (with the
exact same install set, tarred and moved), and all works just fine.

This happens identically on an i386 machine as well as on an s/390 Linux
partition.

I even tried plopping the JSSE stuff in JAVA_HOME/jre/lib/ext, but no joy.

I have tried using a self-signed cert as well as a demo cert from Verisign.

What on earth am I missing?

-chris




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



Re: curiosity kills tomcat

2003-09-25 Thread Bill Barker
Actually, there is no need to contact the expert-group, since the order
doesn't matter in Servlet-2.4:
spec-quote version=Servlet-2.4 section=13.2
The sub elements under web-app can be in an arbitrary order in this version
of
the specification.
/spec-quote

Shapira, Yoav [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

Howdy,

yes, I've always considered that a bug, but guess what,  it's a dtd !

so .. that 'bug' won't  dissapear in the future ?
( why on earth would anyone want it like that  ? :-)

You don't like it, contact the Expert Group / JSR for the Servlet
Specification and ask them to relax the DTD.  Good luck ;)

Yoav Shapira



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




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



Re: Choosing an appropriate JK2 Handler

2003-09-25 Thread Bill Barker
JNI is reported to be very good (I haven't tried it myself).  However, I'd
avoid it if you are using the pre-fork MPM (which includes all Apache 1.3.x
versions on *nix system).  If you are using a *nix box, then the unix-socket
may help a bit, but I'd guess that the improvement over the plain-vanilla
socket is probably pretty small in most usage cases.


Jeremy Nix [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running a configuration with Apache and Tomcat on the same machine.
Which handler(s) would I see the biggest performance improvement by
using them?  I figured it would be the JNI option, but I wanted to get
some input.

_
Jeremy Nix
Senior Application Developer
Southwest Financial Ltd.
[EMAIL PROTECTED]
(513) 621-6699 ext 1158





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



[ANNOUNCEMENT]: Tomcat Service Manager for Windows 1.0.0

2003-09-25 Thread Oxley, David
http://www.daveoxley.co.uk/tcsm

tcsm is a Service Manager for Tomcat that looks and works in a similar way
to the MS SQL Server Service Manager.

Enjoy.
Dave.
[EMAIL PROTECTED]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk