RE: Connecting Tomcat to Apache

2004-01-23 Thread David Grant
My Apache was builtin with redhat. I didn't install it, someone else did. I
did look in that directory and found no libtool.

 

I do have a /usr/bin/libtool, and a /usr/share/libtool.

 

David

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 4:42 PM
To: Tomcat Users List
Subject: RE: Connecting Tomcat to Apache

 


libtool comes with ur apache.. 
it will be in this directory.. 
/etc/httpd/build/libtool 

its a gnu tool which helps in build process.. 

how did u get ur apache? did u build it or u have binary? 

Kakaraparthi  Venkata Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



RE: Connecting Tomcat to Apache

2004-01-23 Thread pavan . k

then make sure that its in ur PATH and
make sure its the first entry..do 
a which libtool to know which libtool
is make picking up when u r configuring

its better to use the latest libtool
from gnu

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

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

RE: Connecting Tomcat to Apache

2004-01-23 Thread David Grant
I did a locate command and found a libtool, in the /native2 directory in the
jk install directory. I copied libtool over to /usr/lib/httpd/build. I ran
the make and it apparently worked, but now it's coming up with another
error.

 

../../common/jk_uriEnv.c:73:18: pcre.h No such file or directory

make[1]: *** [../../../build/jk2/apache2/jk_uriEnv.lo] Error 1

make[1]: Leaving directory
'/opt/Jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2'

make: *** [jk2-build] Error 1

 

There is a path in the configure command for pcre, it is:

 

--with-pcre

 

David

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 7:56 PM
To: Tomcat Users List
Subject: RE: Connecting Tomcat to Apache

 


then make sure that its in ur PATH and make sure its the first entry..do 
a which libtool to know which libtool is make picking up when u r
configuring 

its better to use the latest libtool from gnu 

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



RE: Connecting Tomcat to Apache

2004-01-23 Thread Yiannis Mavroukakis
Install the pcre (Perl Compatible Regular Expressions)libs..either via rpm
*retch*
or download and build the source from
sourceforge(http://sourceforge.net/projects/pcre/)

Yiannis

-Original Message-
From: David Grant [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 10:03
To: 'Tomcat Users List'
Subject: RE: Connecting Tomcat to Apache


I did a locate command and found a libtool, in the /native2 directory in the
jk install directory. I copied libtool over to /usr/lib/httpd/build. I ran
the make and it apparently worked, but now it's coming up with another
error.

 

../../common/jk_uriEnv.c:73:18: pcre.h No such file or directory

make[1]: *** [../../../build/jk2/apache2/jk_uriEnv.lo] Error 1

make[1]: Leaving directory
'/opt/Jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2'

make: *** [jk2-build] Error 1

 

There is a path in the configure command for pcre, it is:

 

--with-pcre

 

David

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 7:56 PM
To: Tomcat Users List
Subject: RE: Connecting Tomcat to Apache

 


then make sure that its in ur PATH and make sure its the first entry..do 
a which libtool to know which libtool is make picking up when u r
configuring 

its better to use the latest libtool from gnu 

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Problems connecting to db

2004-01-23 Thread fachhochschule.burkhart




Hi all,
this is the first time I try to connect to a database from Tomcat.
So I searched for (and found) examples and tutorials on how to do it. Most
noticeably
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
 .

The thing is ... it doesn't work.

In server.xml I defined this:
Context path=/sp2 debug=10 docBase=sp2 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger prefix=sp2.
suffix=.log /
  Resource name=jdbc/sp2 auth=Container type=javax.sql.DataSource /
  ResourceParams name=jdbc/sp2
parameter namedriverClassName/name
valueorg.postgresql.Driver/value /parameter
parameter namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter
parameter nameusername/name valuestnt1/value /parameter
parameter namepassword/name value/value /parameter
parameter nameurl/name valuejdbc:postgresql://127.0.0.1
/sp2/value /parameter
parameter namemaxActive/name value20/value /parameter
parameter namemaxIdle/name value10/value /parameter
parameter namemaxWait/name value-1/value /parameter
  /ResourceParams
/Context

and this in the application's web.xml:
resource-ref
  res-ref-namejdbc/sp2/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

Then I try to get a connection by
private Connection conn;
DataSource ds = null;
try
{
  InitialContext initContext = new InitialContext();
  Context envContext  = (Context)initContext.lookup(java:/comp/env);
  ds = (DataSource)envContext.lookup(jdbc/sp2);
}
catch (javax.naming.NamingException ne){ /* ... */   }
try
{  conn = ds.getConnection();}
catch (java.sql.SQLException se){ /* ... */ }

and in a jsp I try to send some select statements to the database.

The error I'll get in the browser is:
org.apache.jasper.JasperException: Cannot create JDBC driver of class ''
for connect URL 'null', cause: No suitable driver
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
[ ... ]

and the root cause is
javax.servlet.ServletException: Cannot create JDBC driver of class '' for
connect URL 'null', cause: No suitable driver
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)

[ ... ]

Of ourse I'm getting NullPointers and SQLExceptions as well. The
SQLExceptions are saying the same thing as the Jasper- and
ServletExceptions. The NullPointers occur because none of the database
related variables is being initialised.

The driver jar file is in the CLASSPATH as well as in the application's
WEB-INF/lib directory. Looks fine.

Any help or pointers appreciated ... it seems like I'm the first one ever
to have this error ;-)

Regards
B. Burkhart


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



Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward

Hi all,

In my Tomcat setup I have a Context called hal which
contains all my applications, HTML everything.

Context path=/hal docBase=hal debug=0 privileged=true
reloadable=true

Therefore I run things with a URL such including /hal 



Way back when I started with Tomcat I set the Tomcat Root Context
to point to the same docBase directory so any requests to /page.html
would resolve to /hal/page.html.

!-- Tomcat Root Context --
Context path= docBase=hal debug=0/


The problem I now have is that all the initialisation of /hal
is run twice.  Once for each context.  Since I have several
servlets with load-on-startup set this is a pain.

Question


What is the cleanest way to redirect requests made to / to /hal?
Can I do this by setting something up in the web.xml file for 
the / context.  Then I could remove the docBase=hal.



Best regards
Chris

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



Re: [ANN] Apache Tomcat 5.0.18 Stable released

2004-01-23 Thread Nikola Milutinovic
Is there an easy way to upgrade a Tomcat 5.0.16 that ships with JBoss
3.2.3? I can get a hold of sources, but does it require a lot of hacking?

Nix.


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



Re: [ANN] Apache Tomcat 5.0.18 Stable released

2004-01-23 Thread Remy Maucherat
Nikola Milutinovic wrote:
Is there an easy way to upgrade a Tomcat 5.0.16 that ships with JBoss
3.2.3? I can get a hold of sources, but does it require a lot of hacking?
The integration code also had updates, so it's a bit problematic.
A new 3.2.4 RC 1 release is planned soon (this WE from what I 
understood), and it will include Tomcat 5.0.18.

--
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]


Re: Tomcat 5 for production?

2004-01-23 Thread Remy Maucherat
Candyman wrote:
Sorry, my mistake. In my case SOMETIMES I have errors with 5.18 which i doesnt
have with Jboss3. SOMETIMES it doesnt repond, and SOMETIMES it has an
Internal error in one request, but in with the next try it works
perfectly. Ive tryed reinstall it and reconfigure more than 5 times
without any success. So for now I am using Jboss. Maybe I am wrong,
but I have problems with 18 - thats all.
This is not very conclusive ...

You should post some of the errors you get, maybe that will help.

On a general note, TC 5 is very close to 4.1 architecture wise. There 
can be oversights, such as that memory leak caused by JMX statistics, 
but I don't think there will be too many of these.

--
x
Re'my Maucherat
Senior Developer  Consultant
JBoss Group (Europe) Sa`RL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re[2]: Tomcat 5 for production?

2004-01-23 Thread Ben Souther
Did you contact whomever wrote the app that you are trying to run to ask if 
it is supported on Tomcat 5x?  You might want to do that before getting on 
the this list and dispensing advise regarding the stability of Tomcat.  

If you're not a J developer [sic] and the app works perfectly on version  4, 
why are you trying to upgrade to version 5?  The goal/mission for Tomcat is 
to be in 100% compliance with the Servlet/JSP specs, not to maintain backward 
compatibility with every app written for it.   If the specs shift or become 
more specific, the next version of tomcat will will change to accommodate 
them.  It's then up to the application developers to ensure that their apps 
are spec compliant if they want them to continue to run on current releases.




On Thursday 22 January 2004 10:14 pm, you wrote:
 Yeah, but I have upgraded to 18 and I still have this memory
 problem. Why? I've tried to use one scientific server-based
 application, which documentation recommends to use Apache Tomcat. And its
 doesnt work well (sometimes tomcat doesnt respond to requests,
 sometimes shows 500). So I've reinstalled on thesame server Apache but
 with Jboss and I dont have any problem till now. In this case I dont
 care which purposes have the server, this application must work;) And
 the real problem, I think - in version 5, because 4 (which engine
 uses Jboss) works perfectly. But who knows...

 Hello, Ben. You wrote:

 BS JBoss uses Tomcat as it's servlet engine.
 BS They server two different purposes.

 BS There was a memory leak fixed in 5.0.18. Other than that Tomcat 5x is
 very BS solid.  It's been out of beta for over a month.

 BS On Tuesday 20 January 2004 07:25 pm, you wrote:
  Tomcat 5.0.18 more stable than 16, but it still have a lot of errors and
  bugs. If somebody will ask me I will recommend Jboss for the same
  purposes.
 
  Hello, Katz.
 
  19  2004 ., 5:54:18 you wrote:
 
  KG Hi;
  KG I am a bi confused.
  KG It the current release of 5.0.16 stable a production ready release?
  KG If not, when could we expect a tomcat 5.x which is ready for
  production. KG P.S: when I say ready for production I think of non beta
  and ok with KG licensing. (never mind the bugs)
  KG Thanks in advance.

 BS -
 BS To unsubscribe, e-mail: [EMAIL PROTECTED]
 BS For additional commands, e-mail:
 BS [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: connectionTimeout

2004-01-23 Thread Krause Karin
Hi,
I think, I finally found out what the problem is.

As Bill already said each child process in Apache (Apache 1.3) tries to
generate a connection to Tomcat. If there are more child processes on Apache site
that try to connect than maximal possible Threads in Tomcat (defined by means
of the property maxProcessor) everythings hangs (no more requests will reach
Tomcat). 

So I think I must set the maxProcessors on the Tomcat side equal or a little bit 
higher 
than the property maxClients on the Apache side. 

What do you think?

Regards Karin

-Original Message-
From: Krause Karin 
Sent: Donnerstag, 22. Januar 2004 09:19
To: 'Tomcat Users List'
Subject: RE: connectionTimeout


I agree with you that closing the socket on each request isn't 
a good idea. 

But I have the feeling that only if the socket is closed the thread
is freed and Tomcat can accept new input on this thread.

Yesterday I did some more tests and I'd like to explain you one in more detail:
I use
Apache (Apache/1.3.26 (Unix) mod_jk/1.2.4) - Tomcat 4.1.27
I work with the default sample servlets (the Helloworld Servlet)

The configuration of my CoyoteConnector looks like this:
Connector 
className=org.apache.coyote.tomcat4.CoyoteConnector port=9003 
minProcessors=1 maxProcessors=3  acceptCount=10 debug=3 
connectionTimeout=12 
useURIValidationHack=true 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
proxyPort=443 scheme=https/

I did only sequential requests. So I did my first and get the answer back, the second 
and again I get
the answer back. So than I did the third request and I had to wait quite a while (and 
as I recognized
in my mod_jk logging output I had to wait 2 minutes (like I set my timeout)).
SEE:

[Wed Jan 21 16:32:50 2004]  [jk_ajp_common.c (966)]: ajp_send_request 2: request body 
to send 0 - request body to resend 0
-- Here the Request is sent to Tomcat
[Wed Jan 21 16:34:21 2004]  [jk_ajp_common.c (804)]: received from ajp13 #60
-- Here I got the answer back (takes 2 minutes)

In the Tomcat log I saw the following output:

20040122:085055.660 LFFM01 NO_PROJ common.ChannelSocket DEBUG T-59219Accepted 
socket Socket[addr=/194.40.39.77,port=16058,localport=9000] 
20040122:085122.547 LFFM01 NO_PROJ JK   INFO  T-12985263 
org.apache.jk.common.ChannelSocket: connection timeout reached 

- The request is only processed further when the connection 
timeout is received ...

20040122:085122.550 LFFM01 NO_PROJ JK   DEBUG T-12985263 
org.apache.jk.common.ChannelSocket: receive()  
20040122:085122.551 LFFM01 NO_PROJ JK   DEBUG T-12985263 
org.apache.jk.common.ChannelSocket: read() [EMAIL PROTECTED] 8192 0 4 = 4 


When I set the connection timeout to 2000 I never will get something back.
(I tried it also with a connection timeout with -1 and also I got nothing back.)
As you would certainly agree I did not generate heavy load (even if I worked with a 
maximal thread number of three,
I did only sequential requests).

So what do you think?

Cheers Karin




-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 22. Januar 2004 04:28
To: [EMAIL PROTECTED]
Subject: Re: connectionTimeout


connectionTimeout=-1 (or channelSocket.soTimeout=-1 in jk2.properties)
disables it.

The reason that the socket isn't closed on each request is to avoid the cost
of setting up and tearing down sockets.  By leaving it open, the Apache
child can just send the next request that gets handed to it down the same
open socket.  It's the same reasoning as the HTTP/1.1 keep-alive, except
that since the Apache -- Tomcat socket has nothing to do with the browser
-- Apache socket, there isn't a reason to close it.

Krause Karin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 thanx for your answer (again )

 As far as I know I cannot disable the connectionTimeout.
 The connectionTimeout I mean here is a property of the CoyoteConnector
 (and if not set the default value is 60 sec). What I do not understand is,
 why the socket is not free again after the response is sent back to the
client.
 Tomcat can only accept new requests if the socket is removed (and it is
removed
 when the connectionTimeout is reached).

 Cheers Karin

 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]
 Sent: Mittwoch, 21. Januar 2004 10:34
 To: [EMAIL PROTECTED]
 Subject: Re: connectionTimeout



 Krause Karin [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
   Hi everybody,
   I have a question regarding the configuration/behaviour of the
 org.apache.coyote.tomcat4.CoyoteConnector (Tomcat 4.1.27).
  I use Tomcat together with Apache (over mod_jk).
  When I set the connectionTimeout to a very high value (for example 5
 hours) and the maxProcessors to a very
  low value (for example 3) I can see the following behaviour. I can only
 make 2 

Tomcat Nt Service Log

2004-01-23 Thread thuret olivier
Hi all,

I have install my tomcat 5.18 as a service NT with the parameter --Java 
C:\j2sdk1.4.2_03\jre\bin\client\jvm.dll and --StdOutputFile 
%CATALINA_HOME%\logs\stdout.log --StdErrorFile %CATALINA_HOME%\logs\stderr.log.

%CATALINA_HOME% is correctly set

When i start the service there is no log print into stdout.log why ???

When i use --Java java it's work.

thanks a lot for your answer.
Olivier.

RE: reloading classes and struts

2004-01-23 Thread Hume, John - NA US HQ Delray
Do you have struts.jar in common/lib?  It sounds like you might.

(If struts were getting loaded by the web app classloader, then it could see
your WEB-INF/classes without you doing anything to the classpath.)

-john.

-Original Message-
From: Kurt Overberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 11:03 AM
To: Tomcat Users List
Subject: reloading classes and struts


Hi all,

I've poked around a bit and have been fairly unsuccesful in finding and 
answer to this problem.

I'm running tomcat 4.1.18 on Debian (woody).  I'm using struts (1.0) and 
for the longest time, everything was great.  I could reload my classes 
using the manager server reload feature.  Then, a few months ago, it 
stopped reloading my classes when I'd tell it to.  It would say they're 
reloaded, but they're really not.   I'm not sure exactly when this 
started happening, so something must've changed in my system.

My question is- is there anything in my webapp that could cause it to 
not actually reload the classes?  Static classes?  That sort of thing? 
One thing I did do was play around with moving to struts 1.1.  Could 
there be some version of some library thats screwing me up?

Another thing I'm not sure about is where to keep all the libraries I'm 
using.  Generally, I'm keeping all my .jar files in my WEB-INF/lib 
directory.  I'm wondering if keeping ALL my jar files there is screwing 
something up.  I don't have anything in my server/shared/lib directory. 
  I've listed the entries of my WEB-INF/lib at the bottom of my email.

One other somewhat related problem has to do with struts.  If I don't 
include my WEB-INF/classes directory in my classpath (set in 
setclasspath.sh), then I get:

HTTP Status 500 - No action instance for path

...when accessing a struts action form.  An error appears in my 
localhost_log to the effect of:

2004-01-22 10:59:44 StandardContext[]:  Mapped to servlet 'action' with 
servlet path '/admin/MemberInfo.do' and path info 'null' and update=true
2004-01-22 10:59:44 action: Error creating ActionForm instance of class 
'com.bzzagent.webapp.beans.MemberBean'
java.lang.ClassNotFoundException: com.myapp.webapp.beans.MemberBean
 at java.net.URLClassLoader$1.run(URLClassLoader.java:198)


The weird part is that if I DO include my WEB-INF/classes dir in 
setclasspath.sh, struts is happy, but then my classes won't reload.

SO- to sum up:

1. Including myapp/WEB-INF/classes in setclasspath.sh makes struts 
happy, but makes it so I can't reload my classes

2. Not including myapp/WEB-INF/classes in setclasspath.sh breaks struts, 
but reloading actually appears to work.  Auto-detection of classes 
changing also appears to work (reload=true in server.xml)

Can anyone explain this behavior?

Thanks for any light someone can shed!

/kurt



Files in WEB-INF/lib:

activation.jar
application.jar
batik-awt-util.jar
batik-dom.jar
batik-svggen.jar
batik-util.jar
batik-xml.jar
cewolf.jar
commons-beanutils.jar
commons-collections.jar
commons-lang-2.0.jar
commons-logging.jar
commons-validator.jar
displaytag-1.0-b2.jar
dom.jar
jakarta-oro-2.0.7.jar
jakarta-regexp-1.2.jar
jaxen-full.jar
jaxp-api.jar
jcommon-0.7.1.jar
jdbc2_0-stdext.jar
jfreechart-0.9.4.jar
jstl.jar
mail.jar
mm.mysql-2.0.11-bin.jar
pg73jdbc3.jar
pgjdbc2.jar
postgresql.jar
rchart.jar
sax.jar
saxpath.jar
session.jar
standard.jar
struts.jar
utils.jar




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

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



How to Import java classes in a jsp file?

2004-01-23 Thread Apostolidis Apostolos
   Hi all!!I'm a newbie in Tomcat, and have a slight problem.
I wrote a simple .jsp file, don't use any extra servlets, and want to
create in the .jsp file an object belonging to a Dummy.java file class
in it.

   The error i get is the following :

cannot resolve symbol
symbol  : class Dummy
location: class org.apache.jsp.try_jsp
Dummy a = new Dummy(4, 2);

I have added the TOMCAT_HOME/webapps/webapp-name/classes/ 
TOMCAT_HOME/webapps/webapp-name/lib paths to the CLASSPATH variable.

Can you help me please?

Thanx in advance


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



RE: disable taglib pooling jspc

2004-01-23 Thread Subir Sengupta
You cannot.  JSPC enables tag pooling by default and there is no switch
to disable it.

-Original Message-
From: Faine, Mark [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 22, 2004 10:02 AM
To: '[EMAIL PROTECTED]'
Subject: disable taglib pooling jspc


I have successfully configured tomcat 4.1.27 to disable tag pooling by
using the enablePooling init parameter but how do I do the same with an
ant precompile script.
 
I am using the script from http://www.apache.org/~fhanik/precompile.html
http://www.apache.org/~fhanik/precompile.html 
 
The script workds correctly but the resulting class files have taglib
pooling issues.
 
Thanks,
-Mark

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



Tomcat 3.2 compatible with JDK1.4

2004-01-23 Thread Ratnakar Palle
Hi !

Has anyone run into any issues using Tomcat 3.2 in JDK1.4 environment on
Windows 2000? Or, do you foresee any issues with it?

Thanks in advance.

-Ratnakar


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



Re: How to Import java classes in a jsp file?

2004-01-23 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/classnotfound.html

-Tim

Apostolidis Apostolos wrote:
   Hi all!!I'm a newbie in Tomcat, and have a slight problem.
I wrote a simple .jsp file, don't use any extra servlets, and want to
create in the .jsp file an object belonging to a Dummy.java file class
in it.
   The error i get is the following :

cannot resolve symbol
symbol  : class Dummy
location: class org.apache.jsp.try_jsp
Dummy a = new Dummy(4, 2);
I have added the TOMCAT_HOME/webapps/webapp-name/classes/ 
TOMCAT_HOME/webapps/webapp-name/lib paths to the CLASSPATH variable.


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


RE: Problems connecting to db

2004-01-23 Thread Tomcat-user-list
Note that the JDBC libraries are required by a definition of a resource
in server.xml (not by your application ). Try putting them drivers in
$TOMCAT_BASE/common/lib, to make them available to that resource.

 -Original Message-
 From: [EMAIL PROTECTED] 
 Subject: Problems connecting to db
 
 

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



JavaScript Doubt

2004-01-23 Thread Pinguti Sridevi
hey);
 
If the user does not touch the browser means moving the mouse onto the browser within 
60 seconds
the control has to transfer to another page. How to do that any ideas?. Ensure that 
there is no controls in my browser.



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

RE: JavaScript Doubt

2004-01-23 Thread Allistair Crossley
this is not the list for these questions, stop cross posting

-Original Message-
From: Pinguti Sridevi [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 11:56
To: anand; javagroup; parvez; tomcat
Cc: mahesh; siva; wipro
Subject: JavaScript Doubt


hey);
 
If the user does not touch the browser means moving the mouse onto the browser within 
60 seconds
the control has to transfer to another page. How to do that any ideas?. Ensure that 
there is no controls in my browser.



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: JavaScript Doubt

2004-01-23 Thread pavan . k

as already said..pls maintain list protocols...

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

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

Classpath Tomcat Service Using procrun

2004-01-23 Thread thuret olivier
hi all,

i want to set the classpath for tomcat 5.18 sevices whith the option : 

In exemple of service.bat : 

 set CLASS_PATH=c:\jar\toto.jar
%EXECUTABLE% //US//Tom4 --JavaOptions 
-Dcatalina.home=\%CATALINA_HOME%\#-Djava.endorsed.dirs=\%CATALINA_HOME%\common\endorsed\#-Xrs#-classpath#%CLASS_PATH%

that's modify the register well

but when a start tomcat as service the classpath doens't work ...

thanks a lot for your answer.

Olivier.

RE: Problems connecting to db

2004-01-23 Thread fachhochschule.burkhart







 Note that the JDBC libraries are required by a definition of a resource
 in server.xml (not by your application ). Try putting them drivers in
 $TOMCAT_BASE/common/lib, to make them available to that resource.

Hello,
I tried it and it didn't help.
But as far as I understood, it shouldn't matter where the classes or jar
files are, as long as they're in the classpath. Correct?

The problem, I think, is rather that something is wrong with the data I put
into server.xml ... is that possible?

Regards
B. Burkhart


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



Re: Connecting Tomcat to Apache

2004-01-23 Thread Timothy Stone
Yiannis Mavroukakis wrote:

Install the pcre (Perl Compatible Regular Expressions)libs..either via rpm
*retch*
or download and build the source from
sourceforge(http://sourceforge.net/projects/pcre/)
Yiannis
PCRE should build out of the box in Red Hat 8+. It did on Mac OS X.

For Mac OS X, it was as simple as:

$./configure --enable-utf8
$make
$make install
NB: I enabled utf8 for my use, it may not be appropriate for your 
environment, but I'm using a webapp with very specific support for UTF-8.

$ locate pcre

will list all of the possible matches for pcre, including the libpcre 
and libpcreposix libraries that the configure will look for.

$ man pcretest  AND
$ pcretest
are also helpful the former providing detailed information about its use 
(not relevant to this topic, but nice to know) and the latter will 
output the version installed (my RH8 box has v3.9, the current version 
is v4.4 | v4.5, the pcre website is not united on this) then drop you 
into a regex interface. ^C will exit.

That said make sure that both libpcre and libpcreposix are available as 
the configure is going create Makefiles with the flags -lpcre and 
-lpcreposix.

Hope This Helps,
Tim






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


Special URL servlet request.

2004-01-23 Thread matsmobil
This request works:http://digfi.com/digfidl/digfidl and calls my Servlet OK.

The question is how can I call my servlet with the following URL:
http://digfi.com/digfidl/digfidl/dAc/OM1617RbR/YT4075/Uk5673We/qih/dFOE1051/1gpus/LYxx/tKG0/iXcaP.rm/?copyright=digfi.comauthor=Chine 
 The Slippery Hornstitle=Scatterminded

I have to make this request like this because my calling applikation can't
use '?' in the URL-requests.
Could this be done in TC 5.0.18 only ore do I have to have apache as 
frontend for
TC 5.0.18.
-
In TC/conf/server.xml I have added the following row:
Context path=/digfidl docBase=digfidl debug=0 reloadable=true /

-
TC/webapps/digfidl/WEB-INF/web.xml contains:
web-app
-
servlet
servlet-namedigfidl/servlet-name
servlet-classse.two4hr.servlet.DLServlet/servlet-class
/servlet
-
servlet-mapping
servlet-namedigfidl/servlet-name
url-pattern/digfidl/url-pattern
/servlet-mapping
/web-app
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


5.0.18 Catalina.out, stdout and stderr Missing

2004-01-23 Thread Allistair Crossley
My 5.0.18 TC has no Catalina.out, stdout and stderr whereas the 5.0.16 one had them 
straight off. I DO have localhost_logs. 

Am I missing a simple switch? Cheers

ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



Re: Special URL servlet request.

2004-01-23 Thread Tim Funk
2 Ways:

1) Map /digfidl like you are currently doing. But you won't have access to 
request parameters since there are none. You'll need a custom api/code to 
decode the request. Or you could use a Filter and HttpServletRequestWrapper 
to handle the decoding for you so you could use getParameter()

2) Use mod rewrite to rewrite the request so it places all the parameters in 
a key valued query string. Use google and the mod_rewrite guide on the 
specifics of how to do that.

-Tim

matsmobil wrote:

This request works:http://digfi.com/digfidl/digfidl and calls my Servlet 
OK.

The question is how can I call my servlet with the following URL:
http://digfi.com/digfidl/digfidl/dAc/OM1617RbR/YT4075/Uk5673We/qih/dFOE1051/1gpus/LYxx/tKG0/iXcaP.rm/?copyright=digfi.comauthor=Chine 
 The Slippery Hornstitle=Scatterminded

I have to make this request like this because my calling applikation can't
use '?' in the URL-requests.
Could this be done in TC 5.0.18 only ore do I have to have apache as 
frontend for
TC 5.0.18.
-
In TC/conf/server.xml I have added the following row:
Context path=/digfidl docBase=digfidl debug=0 reloadable=true /

-
TC/webapps/digfidl/WEB-INF/web.xml contains:
web-app
-
servlet
servlet-namedigfidl/servlet-name
servlet-classse.two4hr.servlet.DLServlet/servlet-class
/servlet
-
servlet-mapping
servlet-namedigfidl/servlet-name
url-pattern/digfidl/url-pattern
/servlet-mapping
/web-app


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


Re: Problems connecting to db

2004-01-23 Thread BAO RuiXian


[EMAIL PROTECTED] wrote:

Note that the JDBC libraries are required by a definition of a resource
in server.xml (not by your application ). Try putting them drivers in
$TOMCAT_BASE/common/lib, to make them available to that resource.
   

Hello,
I tried it and it didn't help.
But as far as I understood, it shouldn't matter where the classes or jar
files are, as long as they're in the classpath. Correct?
 

Hmm, not quite. Actually, Tomcat does not use classpath info. It has its 
own rule to load library files. To know more, please have a look at this 
link:

   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Best

Bao

The problem, I think, is rather that something is wrong with the data I put
into server.xml ... is that possible?
Regards
B. Burkhart
-
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: Special URL servlet request.

2004-01-23 Thread Bodycombe, Andrew
In web.xml:

web-app
servlet
servlet-namedigfidl/servlet-name
servlet-classse.two4hr.servlet.DLServlet/servlet-class
/servlet
servlet-mapping
servlet-namedigfidl/servlet-name
url-pattern/digfidl/url-pattern
/servlet-mapping
servlet-mapping
servlet-namedigfidl/servlet-name
url-pattern/digfidl/*/url-pattern
/servlet-mapping
/web-app

-Original Message-
From: matsmobil [mailto:[EMAIL PROTECTED] 
Sent: 23 January 2004 13:25
To: [EMAIL PROTECTED]
Subject: Special URL servlet request.



This request works:http://digfi.com/digfidl/digfidl and calls my Servlet OK.

The question is how can I call my servlet with the following URL:
http://digfi.com/digfidl/digfidl/dAc/OM1617RbR/YT4075/Uk5673We/qih/dFOE1051/
1gpus/LYxx/tKG0/iXcaP.rm/?copyright=digfi.comauthor=Chine 
 The Slippery Hornstitle=Scatterminded

I have to make this request like this because my calling applikation can't
use '?' in the URL-requests.

Could this be done in TC 5.0.18 only ore do I have to have apache as 
frontend for
TC 5.0.18.
-
In TC/conf/server.xml I have added the following row:
Context path=/digfidl docBase=digfidl debug=0 reloadable=true /

-
TC/webapps/digfidl/WEB-INF/web.xml contains:
web-app
-
servlet
servlet-namedigfidl/servlet-name
servlet-classse.two4hr.servlet.DLServlet/servlet-class
/servlet
-
servlet-mapping
servlet-namedigfidl/servlet-name
url-pattern/digfidl/url-pattern
/servlet-mapping
/web-app
--


-
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]



Problem with HTTP-PUT in Tomcat 5.0.16

2004-01-23 Thread Schöpf Mirco
Hi Everyone,

I run a Tomcat 5.0.16 with a j2sdk1.4.2_03. I get HTTP ERROR 400 when I try to send a 
HTTP-PUT Request to a Servlet.
The Servlet extends the HttpServlet class and overrides the doPut-method (everything 
as it is supposed to be, I guess).
It never executes the code in this doPut method though. 
I have also changed the the $TOMCAT_HOME/conf/web.xml and added an init parameter 
(readonly) to the default servlet:
This, according to the documentation, is the switch to enable HTTP-PUT on the server.

servlet
servlet-namedefault/servlet-name
servlet-class
  org.apache.catalina.servlets.DefaultServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
init-param
param-namereadonly/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

Switing to Tomcat 4.1.29 did not really solve the problem. This version of Tomcat did 
process PUT-Requests but only after I have sent a HTTP-GET Request before sending the 
PUT.

What else do I have to do to process PUT-Requests on Tomcat 5.0.16?
I have googled alot on this subject and read (most) of the tomcat documentation. 
Have I overlooked something?

I would appreciate any help on this topic.


Mit freundlichen Grüßen / Best regards

Mirco Schöpf
Manager Application Development Connectivity Group
   
   
Make your documents live -  DocuWare


DocuWare AG
Technical Services
Therese-Giehse-Platz 2
D-82110 Germering
Germany
Tel.: +49 (0)89 894433-0
Fax: +49 (0)89 8419966



Re: javax.naming.NameNotFoundException: Name blah.blahHome is not bound in this context

2004-01-23 Thread Walter Moore
thanks. The spelling was the problem.

Is there a way to specify this in an xml file, so the application does 
not need to this,
but the system administrators can modify it when/if they move the app 
server?

thanks,
Walter Moore
Filip Hanik wrote:

I have added these parameters to tomcat (in catalina.bat):
-Djava.naming.provider.url=t3://lac-appserv.corp.fedex.com:7001
-Djava.naming.factory.intial=weblogic.jndi.WLInitialContextFactory
   

(check your spelling of ^ initial)

instead of adding these to catalina.bat, you may want to do this

Hashtable props = new Hashtable();
props.put(java.naming.provider.url,t3://lac-appserv.corp.fedex.com:7001)
;
props.put(java.naming.factory.initial,weblogic.jndi.WLInitialContextFacto
ry);
Context ctx = new InitialContext(props);
Filip



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


RE: Finding out connections

2004-01-23 Thread Shapira, Yoav

Howdy,
On unix, netstat ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ravandra K. Bhat [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 4:59 PM
To: Tomcat Users List
Subject: Finding out connections


Hello:

How do I find out if I have any open connections to my tomcat server?
Thanks

-
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: Geomatica Webserver

2004-01-23 Thread Shapira, Yoav

Howdy,
Many people on the list use tomcat5, including in production systems.
What errors/problems are you experiencing?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Candyman [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:50 PM
To: Tomcat Users List
Subject: Geomatica Webserver

Hi. I make some silly comments about Tomcat Apache, which
interpretation was incorrect. My native language is not english, so I
told it with the words that I find fast to express my dissapointment:(
The thing is I'm using Apache+Tomcat+Perl to run Geomatica Webserver.
And I have some specific problems whith v.5.* which I dont have with
Tomcat
4.*
Does anybody have tryed to work with this server? I am not an J
developer,
so my objective is install-configure-run. If anybody have expirience
to work with this server, any help will be useful. Maybe its errors of
this program but why it works well with versions 4 and doesnt works
well with 5?
Thank you in advance.


-
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: Repeated load-on-startup niggle

2004-01-23 Thread Shapira, Yoav

Howdy,
A javax.servlet.Filter is one nice clean way.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 5:34 AM
To: Tomcat Users List
Subject: Repeated load-on-startup niggle


Hi all,

In my Tomcat setup I have a Context called hal which
contains all my applications, HTML everything.

   Context path=/hal docBase=hal debug=0 privileged=true
reloadable=true

Therefore I run things with a URL such including /hal



Way back when I started with Tomcat I set the Tomcat Root Context
to point to the same docBase directory so any requests to /page.html
would resolve to /hal/page.html.

   !-- Tomcat Root Context --
   Context path= docBase=hal debug=0/


The problem I now have is that all the initialisation of /hal
is run twice.  Once for each context.  Since I have several
servlets with load-on-startup set this is a pain.

Question


What is the cleanest way to redirect requests made to / to /hal?
Can I do this by setting something up in the web.xml file for
the / context.  Then I could remove the docBase=hal.



Best regards
Chris

-
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: Geomatica Webserver

2004-01-23 Thread Yiannis Mavroukakis
TC 5.0.18 both in development and production, paired with httpd 2.0.x and
jk2.
I havent had any noticeable errors or problems, even in 5.0.16 with the
memory
leak issue.

Yiannis.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 14:40
To: Tomcat Users List
Subject: RE: Geomatica Webserver



Howdy,
Many people on the list use tomcat5, including in production systems.
What errors/problems are you experiencing?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Candyman [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:50 PM
To: Tomcat Users List
Subject: Geomatica Webserver

Hi. I make some silly comments about Tomcat Apache, which
interpretation was incorrect. My native language is not english, so I
told it with the words that I find fast to express my dissapointment:(
The thing is I'm using Apache+Tomcat+Perl to run Geomatica Webserver.
And I have some specific problems whith v.5.* which I dont have with
Tomcat
4.*
Does anybody have tryed to work with this server? I am not an J
developer,
so my objective is install-configure-run. If anybody have expirience
to work with this server, any help will be useful. Maybe its errors of
this program but why it works well with versions 4 and doesnt works
well with 5?
Thank you in advance.


-
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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward
Thanks.  That's exactly what I'd started to use.  What's
the best way to add the /hal and redirect while preserving all
the request parameters etc.

i.e. 

Original URL = /somedir/somefile.html

Filtered URL = /hal/somedir/somefile.html

Should I be using a request dispatcher or response.sendRedirct()?

I'm trying to do it in the best way.

Best regards
Chris

-- 

Chris Ward, Horizon Asset Limited
mailto:[EMAIL PROTECTED]
Tel +44 (20) 7367 7028, Fax 7367 7029

-- 


THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.
IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE RECEIVED THIS E-MAIL
IN ERROR) PLEASE NOTIFY THE SENDER IMMEDIATELY AND DESTROY THIS E-
MAIL.  ANY UNAUTHORISED COPYING, DISCLOSURE OR DISTRIBUTION OF THE
MATERIAL IN THIS E-MAIL IS STRICTLY FORBIDDEN.

 HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED
BY THE FINANCIAL SERVICES AUTHORITY.



 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 23, 2004 2:43 PM
 To: Tomcat Users List
 Subject: RE: Repeated load-on-startup niggle
 
 
 
 Howdy,
 A javax.servlet.Filter is one nice clean way.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Chris Ward [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 5:34 AM
 To: Tomcat Users List
 Subject: Repeated load-on-startup niggle
 
 
 Hi all,
 
 In my Tomcat setup I have a Context called hal which 
 contains all my 
 applications, HTML everything.
 
  Context path=/hal docBase=hal debug=0 privileged=true 
 reloadable=true
 
 Therefore I run things with a URL such including /hal
 
 
 
 Way back when I started with Tomcat I set the Tomcat Root 
 Context to 
 point to the same docBase directory so any requests to /page.html 
 would resolve to /hal/page.html.
 
  !-- Tomcat Root Context --
  Context path= docBase=hal debug=0/
 
 
 The problem I now have is that all the initialisation of /hal is run 
 twice.  Once for each context.  Since I have several servlets with 
 load-on-startup set this is a pain.
 
 Question
 
 
 What is the cleanest way to redirect requests made to / to /hal? 
 Can I do this by setting something up in the web.xml file 
 for the / 
 context.  Then I could remove the docBase=hal.
 
 
 
 Best regards
 Chris
 
 -
 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: Repeated load-on-startup niggle

2004-01-23 Thread Mike Curwen
Is it simpler in this case to have an index.html file sitting at '/' and
all it does is a meta refresh to the '/hal' context?
 
That way, once you're at /hal, you'll stay at /hal, and won't worry
about request parameters, etc.

 -Original Message-
 From: Chris Ward [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 23, 2004 9:02 AM
 To: Tomcat Users List
 Subject: RE: Repeated load-on-startup niggle
 
 
 Thanks.  That's exactly what I'd started to use.  What's
 the best way to add the /hal and redirect while preserving 
 all the request parameters etc.
 
 i.e. 
 
   Original URL = /somedir/somefile.html
 
   Filtered URL = /hal/somedir/somefile.html
 
 Should I be using a request dispatcher or response.sendRedirct()?
 
 I'm trying to do it in the best way.
 
 Best regards
 Chris
 
 -- 
 
 Chris Ward, Horizon Asset Limited mailto:[EMAIL PROTECTED]
 Tel +44 (20) 7367 7028, Fax 7367 7029
 
 -- 
 
 
 THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED 
 INFORMATION. IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE 
 RECEIVED THIS E-MAIL IN ERROR) PLEASE NOTIFY THE SENDER 
 IMMEDIATELY AND DESTROY THIS E- MAIL.  ANY UNAUTHORISED 
 COPYING, DISCLOSURE OR DISTRIBUTION OF THE MATERIAL IN THIS 
 E-MAIL IS STRICTLY FORBIDDEN.
 
  HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED
 BY THE FINANCIAL SERVICES AUTHORITY.
 
 
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 2:43 PM
  To: Tomcat Users List
  Subject: RE: Repeated load-on-startup niggle
  
  
  
  Howdy,
  A javax.servlet.Filter is one nice clean way.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Chris Ward [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 5:34 AM
  To: Tomcat Users List
  Subject: Repeated load-on-startup niggle
  
  
  Hi all,
  
  In my Tomcat setup I have a Context called hal which
  contains all my
  applications, HTML everything.
  
 Context path=/hal docBase=hal debug=0 privileged=true
  reloadable=true
  
  Therefore I run things with a URL such including /hal
  
  
  
  Way back when I started with Tomcat I set the Tomcat Root
  Context to
  point to the same docBase directory so any requests to /page.html
  would resolve to /hal/page.html.
  
 !-- Tomcat Root Context --
 Context path= docBase=hal debug=0/
  
  
  The problem I now have is that all the initialisation of 
 /hal is run
  twice.  Once for each context.  Since I have several servlets with 
  load-on-startup set this is a pain.
  
  Question
  
  
  What is the cleanest way to redirect requests made to / 
 to /hal?
  Can I do this by setting something up in the web.xml file 
  for the /
  context.  Then I could remove the docBase=hal.
  
  
  
  Best regards
  Chris
  
  
 -
  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: Repeated load-on-startup niggle

2004-01-23 Thread Shapira, Yoav

Howdy,

Thanks.  That's exactly what I'd started to use.  What's
the best way to add the /hal and redirect while preserving all
the request parameters etc.

i.e.

   Original URL = /somedir/somefile.html

   Filtered URL = /hal/somedir/somefile.html

Should I be using a request dispatcher or response.sendRedirct()?

I would use sendRedirect in this case for two reasons:
- To really make it look/act as if the request was for the /hal URL,
- To avoid getting a RequestDispatcher for a resource outside your
docBase

sendRedirect would preserve all the request parameters, including POST
data.

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: Repeated load-on-startup niggle

2004-01-23 Thread Shapira, Yoav

Howdy,
But he wants to redirect all requests, not just those for /.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:10 AM
To: 'Tomcat Users List'
Subject: RE: Repeated load-on-startup niggle

Is it simpler in this case to have an index.html file sitting at '/'
and
all it does is a meta refresh to the '/hal' context?

That way, once you're at /hal, you'll stay at /hal, and won't worry
about request parameters, etc.

 -Original Message-
 From: Chris Ward [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 9:02 AM
 To: Tomcat Users List
 Subject: RE: Repeated load-on-startup niggle


 Thanks.  That's exactly what I'd started to use.  What's
 the best way to add the /hal and redirect while preserving
 all the request parameters etc.

 i.e.

  Original URL = /somedir/somefile.html

  Filtered URL = /hal/somedir/somefile.html

 Should I be using a request dispatcher or response.sendRedirct()?

 I'm trying to do it in the best way.

 Best regards
 Chris

 --

 Chris Ward, Horizon Asset Limited mailto:[EMAIL PROTECTED]
 Tel +44 (20) 7367 7028, Fax 7367 7029

 --


 THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED
 INFORMATION. IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE
 RECEIVED THIS E-MAIL IN ERROR) PLEASE NOTIFY THE SENDER
 IMMEDIATELY AND DESTROY THIS E- MAIL.  ANY UNAUTHORISED
 COPYING, DISCLOSURE OR DISTRIBUTION OF THE MATERIAL IN THIS
 E-MAIL IS STRICTLY FORBIDDEN.

  HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED
 BY THE FINANCIAL SERVICES AUTHORITY.



  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 2:43 PM
  To: Tomcat Users List
  Subject: RE: Repeated load-on-startup niggle
 
 
 
  Howdy,
  A javax.servlet.Filter is one nice clean way.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Chris Ward [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 5:34 AM
  To: Tomcat Users List
  Subject: Repeated load-on-startup niggle
  
  
  Hi all,
  
  In my Tomcat setup I have a Context called hal which
  contains all my
  applications, HTML everything.
  
Context path=/hal docBase=hal debug=0 privileged=true
  reloadable=true
  
  Therefore I run things with a URL such including /hal
  
  
  
  Way back when I started with Tomcat I set the Tomcat Root
  Context to
  point to the same docBase directory so any requests to
/page.html
  would resolve to /hal/page.html.
  
!-- Tomcat Root Context --
Context path= docBase=hal debug=0/
  
  
  The problem I now have is that all the initialisation of
 /hal is run
  twice.  Once for each context.  Since I have several servlets with
  load-on-startup set this is a pain.
  
  Question
  
  
  What is the cleanest way to redirect requests made to /
 to /hal?
  Can I do this by setting something up in the web.xml file
  for the /
  context.  Then I could remove the docBase=hal.
  
  
  
  Best regards
  Chris
  
 

-
  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]




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]



Unclear on Host vs. Service concept

2004-01-23 Thread Wendell Holmes
I've read the docs but am unclear on what actually happens if I have muliple
Services defined vs. multiple ( virtual) hosts.  I have some web apps that
are used by about 30 clients.  Each client accesses a unique database.  I
have been running these on JRun 4 for over a year, but would like to migrate
to Tomcat.  Do I need to have a separate Service for each client or just a
virtual host for each one?  In JRun, I create a JRun 'server' for each
client, drop in the web apps and configure the web.xml file.  Each client
runs in it's own process ( Win2k server task mgr shows 30 jrun.exe's running
).  

If I set up virtual hosts for each client, will I have enough integrity for
each client to insure that one crashing doesn't affect the others?  Can
host1 and host2 both run distinct instances of mapServlet w/o mixups?  Or do
I need to have separate Service/Connector/Host elements for each client?

Thanks for any help or pointers,

Wendell Holmes
Education Logistics, Inc.


jsp and bean error

2004-01-23 Thread xavier manohar
hello all
 I am a  newbie to tocat and I have a problem in running a
jsp and bean.
the following error I get in compiling ajsp
 cannot find any information on x of a bean y.
pls help to find a solution
thanx in advance
mano

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

RE: Repeated load-on-startup niggle

2004-01-23 Thread Mike Curwen
I guess I'm imagining this situation...

www.foo.com/

and 

www.foo.com/hal/

Someone types in the first one, because they're lazy.  Immediately
they're redirected to /hal, and from then on, they stay there.

ie: There's nothing at all at / other than the redirect. (he'd modify
the root context to be NOT the same docbase as /hal)

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 23, 2004 9:10 AM
 To: Tomcat Users List
 Subject: RE: Repeated load-on-startup niggle
 
 
 
 Howdy,
 But he wants to redirect all requests, not just those for /.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 10:10 AM
 To: 'Tomcat Users List'
 Subject: RE: Repeated load-on-startup niggle
 
 Is it simpler in this case to have an index.html file sitting at '/'
 and
 all it does is a meta refresh to the '/hal' context?
 
 That way, once you're at /hal, you'll stay at /hal, and won't worry 
 about request parameters, etc.
 
  -Original Message-
  From: Chris Ward [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 9:02 AM
  To: Tomcat Users List
  Subject: RE: Repeated load-on-startup niggle
 
 
  Thanks.  That's exactly what I'd started to use.  What's
  the best way to add the /hal and redirect while 
 preserving all the 
  request parameters etc.
 
  i.e.
 
 Original URL = /somedir/somefile.html
 
 Filtered URL = /hal/somedir/somefile.html
 
  Should I be using a request dispatcher or response.sendRedirct()?
 
  I'm trying to do it in the best way.
 
  Best regards
  Chris
 
  --
 
  Chris Ward, Horizon Asset Limited 
 mailto:[EMAIL PROTECTED]
  Tel +44 (20) 7367 7028, Fax 7367 7029
 
  --
 
 
  THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED 
 INFORMATION. 
  IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE RECEIVED 
 THIS E-MAIL 
  IN ERROR) PLEASE NOTIFY THE SENDER IMMEDIATELY AND DESTROY THIS E- 
  MAIL.  ANY UNAUTHORISED COPYING, DISCLOSURE OR DISTRIBUTION OF THE 
  MATERIAL IN THIS E-MAIL IS STRICTLY FORBIDDEN.
 
   HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED
  BY THE FINANCIAL SERVICES AUTHORITY.
 
 
 
   -Original Message-
   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 23, 2004 2:43 PM
   To: Tomcat Users List
   Subject: RE: Repeated load-on-startup niggle
  
  
  
   Howdy,
   A javax.servlet.Filter is one nice clean way.
  
   Yoav Shapira
   Millennium ChemInformatics
  
  
   -Original Message-
   From: Chris Ward [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 23, 2004 5:34 AM
   To: Tomcat Users List
   Subject: Repeated load-on-startup niggle
   
   
   Hi all,
   
   In my Tomcat setup I have a Context called hal which
   contains all my
   applications, HTML everything.
   
   Context path=/hal docBase=hal debug=0 
 privileged=true 
   reloadable=true
   
   Therefore I run things with a URL such including /hal
   
   
   
   Way back when I started with Tomcat I set the Tomcat Root
   Context to
   point to the same docBase directory so any requests to
 /page.html
   would resolve to /hal/page.html.
   
   !-- Tomcat Root Context --
   Context path= docBase=hal debug=0/
   
   
   The problem I now have is that all the initialisation of
  /hal is run
   twice.  Once for each context.  Since I have several 
 servlets with 
   load-on-startup set this is a pain.
   
   Question
   
   
   What is the cleanest way to redirect requests made to /
  to /hal?
   Can I do this by setting something up in the web.xml file
   for the /
   context.  Then I could remove the docBase=hal.
   
   
   
   Best regards
   Chris
   
  
 
 -
   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]
 
 
 
 
 This 

RE: Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward
 
 Howdy,
 But he wants to redirect all requests, not just those for /.
 

Exactly.  I did in fact have an index.html which did a redirect
to /hal so it looks like I'd tried that solution in the dim and
distant past.

Obviously once I had pointed / at /hal using it's docBase attribute
(in server.xml) the /index.html never got processed.

All of this is required to keep current users from having to 
update their URLs (they do a lot of web query imports to Excel)
whilst avoiding the stuff in the /hal Context being initialised
for both / and /hal.

I'm going to try a response.sendRedirect() from a Filter running
in under /.  



Chris

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



RE: Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward


Hi,

This would be fine if the everyone started at the entry level of the
web site, but a lot of my problems are caused by including/importing
resources like javascript files, servlets, etc. etc.

e.g.Most od my generated HTML files have

SCRIPT SRC=/JavaScript/HAL_CommonJavaScript.js 
LANGUAGE=JAVASCRIPT TYPE=TEXT/JAVASCRIPT  
/SCRIPT

But that JavaScript file really should be

/hal/JavaScript/HAL_CommonJavaScript.js

So it would never see the redirection from /index.html. 

I was lazy in the early stages and now it's biting me in the bum!



 
 I guess I'm imagining this situation...
 
 www.foo.com/
 
 and 
 
 www.foo.com/hal/
 
 Someone types in the first one, because they're lazy.  
 Immediately they're redirected to /hal, and from then on, 
 they stay there.
 
 ie: There's nothing at all at / other than the redirect. 
 (he'd modify the root context to be NOT the same docbase as /hal)
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 9:10 AM
  To: Tomcat Users List
  Subject: RE: Repeated load-on-startup niggle
  
  
  
  Howdy,
  But he wants to redirect all requests, not just those for /.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Mike Curwen [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 10:10 AM
  To: 'Tomcat Users List'
  Subject: RE: Repeated load-on-startup niggle
  
  Is it simpler in this case to have an index.html file 
 sitting at '/'
  and
  all it does is a meta refresh to the '/hal' context?
  
  That way, once you're at /hal, you'll stay at /hal, and won't worry
  about request parameters, etc.
  
   -Original Message-
   From: Chris Ward [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 23, 2004 9:02 AM
   To: Tomcat Users List
   Subject: RE: Repeated load-on-startup niggle
  
  
   Thanks.  That's exactly what I'd started to use.  What's 
 the best 
   way to add the /hal and redirect while
  preserving all the
   request parameters etc.
  
   i.e.
  
Original URL = /somedir/somefile.html
  
Filtered URL = /hal/somedir/somefile.html
  
   Should I be using a request dispatcher or response.sendRedirct()?
  
   I'm trying to do it in the best way.
  
   Best regards
   Chris
  
   --
  
   Chris Ward, Horizon Asset Limited
  mailto:[EMAIL PROTECTED]
   Tel +44 (20) 7367 7028, Fax 7367 7029
  
   --
  
  
   THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED
  INFORMATION.
   IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE RECEIVED
  THIS E-MAIL
   IN ERROR) PLEASE NOTIFY THE SENDER IMMEDIATELY AND 
 DESTROY THIS E-
   MAIL.  ANY UNAUTHORISED COPYING, DISCLOSURE OR 
 DISTRIBUTION OF THE 
   MATERIAL IN THIS E-MAIL IS STRICTLY FORBIDDEN.
  
HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED
   BY THE FINANCIAL SERVICES AUTHORITY.
  
  
  
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:43 PM
To: Tomcat Users List
Subject: RE: Repeated load-on-startup niggle
   
   
   
Howdy,
A javax.servlet.Filter is one nice clean way.
   
Yoav Shapira
Millennium ChemInformatics
   
   
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 5:34 AM
To: Tomcat Users List
Subject: Repeated load-on-startup niggle


Hi all,

In my Tomcat setup I have a Context called hal which
contains all my
applications, HTML everything.

  Context path=/hal docBase=hal debug=0
  privileged=true
reloadable=true

Therefore I run things with a URL such including /hal



Way back when I started with Tomcat I set the Tomcat Root
Context to
point to the same docBase directory so any requests to
  /page.html
would resolve to /hal/page.html.

  !-- Tomcat Root Context --
  Context path= docBase=hal debug=0/


The problem I now have is that all the initialisation of
   /hal is run
twice.  Once for each context.  Since I have several
  servlets with
load-on-startup set this is a pain.

Question


What is the cleanest way to redirect requests made to /
   to /hal?
Can I do this by setting something up in the web.xml file
for the /
context.  Then I could remove the docBase=hal.



Best regards
Chris

   
  
  
 -
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 

Removing ROOT as default path to tomcat 5

2004-01-23 Thread Drinkwater, GJ (Glen)
Hi


I wish to remove ROOT as the default path to Tomcat 5, I have added Context
path=/ to the server.xml file but the default
$CATALINA_HOME/webapps/ROOT/index.jsp page still appears with
http://localhost:8080.  This is how I did it with tomcat 4, has anything
changed??





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



running tomcat5 in-process

2004-01-23 Thread Phil Adams
Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading correctly.
no more errors anyway...   

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.  

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
Connector port=8019 minProcessors=5 maxProcessors=75
enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

Is probably what you want. This is for my devel server, so change the values
according to your needs.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 15:42
To: tomcat
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...   

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.  

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

How to access Server/Container from a web application (tomcat 4.1)

2004-01-23 Thread Vincent Gogan
Could someone please point me at some sample code to 
access the Server/Containers from the web application. 
In particular, I would like to add a host alias dynamically.
Is this possible without changing server.xml and restarting?

Thanks,

Vincent


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



RE: running tomcat5 in-process

2004-01-23 Thread David Short
Hi Paul,

Would you mind posting your workers2.properties file?  I've been trying to
get Apache 2.0.48 to load Tomcat 4.1.29/5.0.16 in-process without much
success.

Thanks,

Dave

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 7:42 AM
To: tomcat
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas



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



RE: How to access Server/Container from a web application (tomcat 4.1)

2004-01-23 Thread Shapira, Yoav

Howdy,
I've posted answers to questions like this in the past, so you can
search the archives if you wish.  In summary:

- Your code needs to reside in the common classloader repository, not
under your webapp
- You probably want to make your webapp privileged (it's a Context
attribute in server.xml)
- Then you crawl down the tomcat container hierarchy, e.g.:
Server server = ServerFactory.getServer();
Service service = server.findService(Catalina);
Container engine = service.getContainer();
Container host = engine.findChild(localhost);
...

I'm using the default names of Catalina and localhost as the
example.  Your actual arguments should match whatever you define in
server.xml.  The above classes are in the org.apache.catalina package.

As for adding an alias dynamically: you can try re-initializing the
container, but I don't know if it will work, I haven't tried it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vincent Gogan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:55 AM
To: Tomcat Users List
Subject: How to access Server/Container from a web application (tomcat
4.1)

Could someone please point me at some sample code to
access the Server/Containers from the web application.
In particular, I would like to add a host alias dynamically.
Is this possible without changing server.xml and restarting?

Thanks,

Vincent


-
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: running tomcat5 in-process

2004-01-23 Thread Phil Adams
Thank you.
my understanding is that ajp/1.3 is for out-of-process communication
thus the need for a port number.  with tomcat3's running in-process
all that was needed was a jni worker for apache and the jniendpointconnector
for tomcat with no port number specified and they would talk to each
other.  If I user the ajp with port number 8009 I can get them to work
perfectly, however my goal is to get apache to start tomcat in-process
which requires the jni connector.


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:53 AM
Subject: RE: running tomcat5 in-process


 Connector port=8019 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

 Is probably what you want. This is for my devel server, so change the
values
 according to your needs.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 15:42
 To: tomcat
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas

 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


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



RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis

I am a fool, I didn't realise that you were running tomcat as in process, my
apologies.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:02
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Thank you.
my understanding is that ajp/1.3 is for out-of-process communication
thus the need for a port number.  with tomcat3's running in-process
all that was needed was a jni worker for apache and the jniendpointconnector
for tomcat with no port number specified and they would talk to each
other.  If I user the ajp with port number 8009 I can get them to work
perfectly, however my goal is to get apache to start tomcat in-process
which requires the jni connector.


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:53 AM
Subject: RE: running tomcat5 in-process


 Connector port=8019 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

 Is probably what you want. This is for my devel server, so change the
values
 according to your needs.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 15:42
 To: tomcat
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas

 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
Maybe i should read the subject more closely next time;)

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:02
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Thank you.
my understanding is that ajp/1.3 is for out-of-process communication
thus the need for a port number.  with tomcat3's running in-process
all that was needed was a jni worker for apache and the jniendpointconnector
for tomcat with no port number specified and they would talk to each
other.  If I user the ajp with port number 8009 I can get them to work
perfectly, however my goal is to get apache to start tomcat in-process
which requires the jni connector.


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:53 AM
Subject: RE: running tomcat5 in-process


 Connector port=8019 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

 Is probably what you want. This is for my devel server, so change the
values
 according to your needs.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 15:42
 To: tomcat
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas

 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: running tomcat5 in-process

2004-01-23 Thread Alvaro Seixas
Aren't you getting this error in Apache's error.log:
[error] mod_jk child init 1 0
???


- Original Message -
From: Phil Adams [EMAIL PROTECTED]
To: tomcat [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 1:42 PM
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


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



RE: running tomcat5 in-process

2004-01-23 Thread David Short
Meant to address this to Phil, sorry about that!

Hi Paul,

Would you mind posting your workers2.properties file?  I've been trying to
get Apache 2.0.48 to load Tomcat 4.1.29/5.0.16 in-process without much
success.

Thanks,

Dave

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 7:42 AM
To: tomcat
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas



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



RE: running tomcat5 in-process

2004-01-23 Thread David Short
I'm getting that error.  DO you know what causes this error?

-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:10 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Aren't you getting this error in Apache's error.log:
[error] mod_jk child init 1 0
???


- Original Message -
From: Phil Adams [EMAIL PROTECTED]
To: tomcat [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 1:42 PM
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


-
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: running tomcat5 in-process

2004-01-23 Thread Phil Adams
Here is where I am so far.
I finally got past all of the errors with Apache by compiling my own
mod_jk2.dll.
I also compiled the jkjni.dll for the apr.NativeSo but this created even
more errors.
so I have it currently commented out of jk2.properties.

I also found that I needed an 'apache2_home' as well as 'apache_home' in my
environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
and 'java_home'.

As you can read from my original post I am searching for the jni connector
for tomcat5.
I believe this is the missing key to the puzzle.

--
jk2.properties
--
shm.file=c:/Apache2/logs/jk2.shm
#apr.NativeSo=C:/tomcat/bin/jkjni.dll
handler.list=apr,request,channelJni
apr.jniModeSo=inprocess
channelJni.disabled = 0

--
workers2.properties
--
[logger]
level=DEBUG

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

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

[shm]
file=c:/Apache2/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[lb:lb]
info=Default load balancer.
debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
debug=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
# For Tomcat 5 use the 'stard' for startup argument
ARG=stard
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
lib/catalina.jar;c:/java2/lib/tools.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Dcatalina.base=c:/Tomcat
OPT=-Djava.home=c:/java2
OPT=-Dserverroot=c:/apache2
OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
OPT=-Djava.io.tmpdir=C:/Tomcat/temp
OPT=-Dstdout=c:/Apache2/logs/stdout.log
OPT=-Dstderr=c:/Apache2/logs/stderr.log
OPT=-Xmx128M

# Map the Tomcat webapps to the Web server uri space
[uri:/servlets-examples/*]
context=/servlets-examples

[uri:/jsp-examples/*]
context=/jsp-examples

[uri:/tomcat-docs/*]
context=/tomcat-docs

[uri:/jetspeed/*]
context=/jetspeed

###
[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

--
End of workers2.properties
--

_Phil
[EMAIL PROTECTED]
Fort Worth, Texas


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



Re: running tomcat5 in-process

2004-01-23 Thread Alvaro Seixas
Allan Bruce post this one and I'm using it and so far it's ok.
I've made only some adjustments to work with win 2k.

--workers2.properties
$ cd /etc/httpd2/conf
Open the file workers2.properties in a text editor and modify the file
tolook like this:
[logger]
level=DEBUG

[config:]
file=/etc/httpd2/conf/workers2.properties
debug=0
debugEnv=0

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

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/httpd2/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/var/run/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=tc1
lb_factor=1
group=lb

[channel.socket:localhost:8019]
info=A second tomcat instance.
debug=0
tomcatId=tc2
lb_factor=1
group=lb
disabled=0

[channel.socket:X.X.X.X:8009]  // put your own IP in
info=Ajp13 forwarding over socket
debug=0
tomcatId=tc3
lb_factor=1
group=lb

[status:]
info=Status worker, displays runtime informations

[uri:/YYY/*]// replace the YYYs with your directory chosen, e.g.servlets
info=Display status information and checks the config file for changes.
group=status:

[uri:/YYY/*.do]
info=Prefix mapping

[uri:/YYY/*.jsp]
info=Extension mapping

[uri:/YYY/*]
info=The Legacy webapp.
debug=0



- Original Message -
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:11 PM
Subject: RE: running tomcat5 in-process


 Meant to address this to Phil, sorry about that!

 Hi Paul,

 Would you mind posting your workers2.properties file?  I've been trying to
 get Apache 2.0.48 to load Tomcat 4.1.29/5.0.16 in-process without much
 success.

 Thanks,

 Dave

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 7:42 AM
 To: tomcat
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas



 -
 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: running tomcat5 in-process

2004-01-23 Thread Phil Adams
it's all cool!

- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:07 AM
Subject: RE: running tomcat5 in-process



 I am a fool, I didn't realise that you were running tomcat as in process,
my
 apologies.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 16:02
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Thank you.
 my understanding is that ajp/1.3 is for out-of-process communication
 thus the need for a port number.  with tomcat3's running in-process
 all that was needed was a jni worker for apache and the
jniendpointconnector
 for tomcat with no port number specified and they would talk to each
 other.  If I user the ajp with port number 8009 I can get them to work
 perfectly, however my goal is to get apache to start tomcat in-process
 which requires the jni connector.


 - Original Message - 
 From: Yiannis Mavroukakis [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 9:53 AM
 Subject: RE: running tomcat5 in-process


  Connector port=8019 minProcessors=5 maxProcessors=75
  enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/
 
  Is probably what you want. This is for my devel server, so change the
 values
  according to your needs.
 
  -Original Message-
  From: Phil Adams [mailto:[EMAIL PROTECTED]
  Sent: 23 January 2004 15:42
  To: tomcat
  Subject: running tomcat5 in-process
 
 
  Well...
  I am and have been for about a week trying to get Apache2 to start
Tomcat5
  in-process on Windows XP.  I have finally gotten Apache2 to process thru
  the workers2.properties file without errors.  I can start Tomcat5
manually
  without errors. I have mod_jk2, what appears to be at least, loading
  correctly.
  no more errors anyway...
 
  The one piece I believe that is missing is a connector entry in
 server.xml
  for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as
well
  as a class  org.apache.tomcat.service.JNIEndpointConnector.
  I cannot find these for Tomcat5.  Any suggestions?  I have tried using
 older
  versions of components before wihtour success.
 
  Thanks for all your help...
 
  _Phil Adams
  Fort Worth, Texas
 
  
  This e-mail has been scanned for all viruses by Star Internet. The
  service is powered by MessageLabs.
 
 
  Note:__
  This message is for the named person's use only. It may contain
  confidential, proprietary or legally privileged information. No
  confidentiality or privilege is waived or lost by any mistransmission.
  If you receive this message in error, please immediately delete it and
  all copies of it from your system, destroy any hard copies of it and
  notify the sender. You must not, directly or indirectly, use, disclose,
  distribute, print, or copy any part of this message if you are not the
  intended recipient. Jaguar Freight Services and any of its subsidiaries
  each reserve the right to monitor all e-mail communications through its
  networks.
  Any views expressed in this message are those of the individual sender,
  except where the message states otherwise and the sender is authorized
  to state them to be the views of any such entity.
  
  This e-mail has been scanned for all viruses by Star Internet. The
  service is powered by MessageLabs.


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


 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star 

RE: running tomcat5 in-process

2004-01-23 Thread David Short
Excellent, I'll give it a try.  Any chance of getting a copy of mod_jk2.dll
that you compiled?
Thanks.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:17 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Here is where I am so far.
I finally got past all of the errors with Apache by compiling my own
mod_jk2.dll.
I also compiled the jkjni.dll for the apr.NativeSo but this created even
more errors.
so I have it currently commented out of jk2.properties.

I also found that I needed an 'apache2_home' as well as 'apache_home' in my
environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
and 'java_home'.

As you can read from my original post I am searching for the jni connector
for tomcat5.
I believe this is the missing key to the puzzle.

--
jk2.properties
--
shm.file=c:/Apache2/logs/jk2.shm
#apr.NativeSo=C:/tomcat/bin/jkjni.dll
handler.list=apr,request,channelJni
apr.jniModeSo=inprocess
channelJni.disabled = 0

--
workers2.properties
--
[logger]
level=DEBUG

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

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

[shm]
file=c:/Apache2/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[lb:lb]
info=Default load balancer.
debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
debug=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
# For Tomcat 5 use the 'stard' for startup argument
ARG=stard
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
lib/catalina.jar;c:/java2/lib/tools.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Dcatalina.base=c:/Tomcat
OPT=-Djava.home=c:/java2
OPT=-Dserverroot=c:/apache2
OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
OPT=-Djava.io.tmpdir=C:/Tomcat/temp
OPT=-Dstdout=c:/Apache2/logs/stdout.log
OPT=-Dstderr=c:/Apache2/logs/stderr.log
OPT=-Xmx128M

# Map the Tomcat webapps to the Web server uri space
[uri:/servlets-examples/*]
context=/servlets-examples

[uri:/jsp-examples/*]
context=/jsp-examples

[uri:/tomcat-docs/*]
context=/tomcat-docs

[uri:/jetspeed/*]
context=/jetspeed

###
[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

--
End of workers2.properties
--

_Phil
[EMAIL PROTECTED]
Fort Worth, Texas


-
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: running tomcat5 in-process

2004-01-23 Thread Phil Adams
that one does work...  however...
this is using the out-of-process communications.
What I would like to achieve is Apache starting tomcat5 in-process using the
jni.

_phil


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



Re: running tomcat5 in-process

2004-01-23 Thread Alvaro Seixas
This is a known bug.
You can check it on http://issues.apache.org/bugzilla/show_bug.cgi?id=25851

- Original Message -
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:12 PM
Subject: RE: running tomcat5 in-process


 I'm getting that error.  DO you know what causes this error?

 -Original Message-
 From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 8:10 AM
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Aren't you getting this error in Apache's error.log:
 [error] mod_jk child init 1 0
 ???


 - Original Message -
 From: Phil Adams [EMAIL PROTECTED]
 To: tomcat [EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 1:42 PM
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas


 -
 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]



Can I use symbolic links to define contexts

2004-01-23 Thread Glanville, Jay
Hello all

Can I use a symbolic links to help me define a web application /
context?

For example, if this is my webapps directory:
  admin - admin.0.19.0
  admin.0.19.0

The reason that I'm asking is in Tomcat 5, I'm getting the following
exception being reported in my logs/catalina.out log:


SEVERE: Error deploying web application directory admin
java.lang.IllegalArgumentException: Context path /admin must match the
directory or WAR file name: admin.0.19.0
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:293)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:723)
 deleted

Our company likes this usage of links as it allows us to quickly switch
between versions of our application.

Why would I be getting this exception?  What can I do to enable this
behaviour?

Thanks

JDG

--
Jay Glanville

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



RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
Phill, unless I am mistaken, you do not need a connector element in TC for
in-process calls to happen..I've had a look around various posts and
configs,
and there is no mention of needing to tweak server.xml for JNI to work.
Unfortunately I cannot verify this myself, as I am using Linux as my OS and
JNI in-process is not possible at the moment.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:22
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


it's all cool!

- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:07 AM
Subject: RE: running tomcat5 in-process



 I am a fool, I didn't realise that you were running tomcat as in process,
my
 apologies.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 16:02
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Thank you.
 my understanding is that ajp/1.3 is for out-of-process communication
 thus the need for a port number.  with tomcat3's running in-process
 all that was needed was a jni worker for apache and the
jniendpointconnector
 for tomcat with no port number specified and they would talk to each
 other.  If I user the ajp with port number 8009 I can get them to work
 perfectly, however my goal is to get apache to start tomcat in-process
 which requires the jni connector.


 - Original Message - 
 From: Yiannis Mavroukakis [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 9:53 AM
 Subject: RE: running tomcat5 in-process


  Connector port=8019 minProcessors=5 maxProcessors=75
  enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/
 
  Is probably what you want. This is for my devel server, so change the
 values
  according to your needs.
 
  -Original Message-
  From: Phil Adams [mailto:[EMAIL PROTECTED]
  Sent: 23 January 2004 15:42
  To: tomcat
  Subject: running tomcat5 in-process
 
 
  Well...
  I am and have been for about a week trying to get Apache2 to start
Tomcat5
  in-process on Windows XP.  I have finally gotten Apache2 to process thru
  the workers2.properties file without errors.  I can start Tomcat5
manually
  without errors. I have mod_jk2, what appears to be at least, loading
  correctly.
  no more errors anyway...
 
  The one piece I believe that is missing is a connector entry in
 server.xml
  for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as
well
  as a class  org.apache.tomcat.service.JNIEndpointConnector.
  I cannot find these for Tomcat5.  Any suggestions?  I have tried using
 older
  versions of components before wihtour success.
 
  Thanks for all your help...
 
  _Phil Adams
  Fort Worth, Texas
 
  
  This e-mail has been scanned for all viruses by Star Internet. The
  service is powered by MessageLabs.
 
 
  Note:__
  This message is for the named person's use only. It may contain
  confidential, proprietary or legally privileged information. No
  confidentiality or privilege is waived or lost by any mistransmission.
  If you receive this message in error, please immediately delete it and
  all copies of it from your system, destroy any hard copies of it and
  notify the sender. You must not, directly or indirectly, use, disclose,
  distribute, print, or copy any part of this message if you are not the
  intended recipient. Jaguar Freight Services and any of its subsidiaries
  each reserve the right to monitor all e-mail communications through its
  networks.
  Any views expressed in this message are those of the individual sender,
  except where the message states otherwise and the sender is authorized
  to state them to be the views of any such entity.
  
  This e-mail has been scanned for all viruses by Star Internet. The
  service is powered by MessageLabs.


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


 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this 

Problem compiling JSP under TOMCAT 5.0.16

2004-01-23 Thread De Toffoli Garry
Hi to all,

	my name is De Toffoli Garry, and I have installed the Tomcat 5.0.16;

	I have the same problem reported by Simone Chiaretta:

	on a my site, under the WEB-INF/classes exist a package named db, but 
when I run a test page, I have this error:

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

	and the class the is not found exist on WEB-INF/classes;

	on previous release of Tomcat I have no problem;

	on catalina.log I read that Jasper doesn't have the WEB-INF/classes 
or WEB-INF/lib on the path, and this is why it cannot compile my test page;

	but WHY is not present?

	may be a bag on Tomcat version 5.0.16?

	here you will find catalina.log;

	Thank you very much.

on the log catalina.log I read these informations:
19-gen-2004 18.00.05 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile: 
javaFileName=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_//org/apache/jsp/ricerche_jsp.java

classpath=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_:/usr/jakarta-tomcat-5.0.16/shared/classes/:/usr/jakarta-tomcat-5.0.16/common/classes/:/usr/jakarta-tomcat-5.0.16/common/endorsed/xercesImpl.jar:/usr/jakarta-tomcat-5.0.16/common/endorsed/xmlParserAPIs.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jasper-compiler.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote-tools.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-dbcp-1.1.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jmx.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-el.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-collections.jar:/usr/jakarta-tomcat-5.0.16/common/lib/naming-java.jar:/usr/jakarta-tomcat-5.0.16/common/lib/commons-pool-1.1.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jasper-runtime.jar:/usr/jakarta-tomcat-5.0.16/common/lib/naming-factory.jar:/usr/jakarta-tomcat-5.0.16/common/lib/servlet-api.jar:/usr/jakarta-tomcat-5.0.16/common/lib/namin
g-resources.jar:/usr/jakarta-tomcat-5.0.16/common/lib/ant.jar:/usr/jakarta-tomcat-5.0.16/common/lib/naming-common.jar:/usr/jakarta-tomcat-5.0.16/common/lib/jsp-api.jar:/usr/j2sdk1.4.2_02/lib/tools.jar:/usr/jakarta-tomcat-5.0.16/bin/bootstrap.jar:/usr/jakarta-tomcat-5.0.16/bin/commons-logging-api.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/sunjce_provider.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/dnsns.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/ldapsec.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/localedata.jar
cp=/usr/java/lib/tools.jar:/usr/tomcat/bin/bootstrap.jar:/usr/tomcat/bin/commons-logging-api.jar
cp=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_
cp=/usr/jakarta-tomcat-5.0.16/shared/classes
cp=/usr/jakarta-tomcat-5.0.16/common/classes
cp=/usr/jakarta-tomcat-5.0.16/common/endorsed/xercesImpl.jar
cp=/usr/jakarta-tomcat-5.0.16/common/endorsed/xmlParserAPIs.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jasper-compiler.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote-tools.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-dbcp-1.1.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jmx.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-el.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-collections.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-java.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/commons-pool-1.1.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jmx-remote.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jasper-runtime.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-factory.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/servlet-api.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-resources.jar 
cp=/usr/j2sdk1.4.2_02/lib/tools.jar
cp=/usr/jakarta-tomcat-5.0.16/bin/bootstrap.jar
cp=/usr/jakarta-tomcat-5.0.16/bin/commons-logging-api.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/sunjce_provider.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/dnsns.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/ldapsec.jar
cp=/usr/j2sdk1.4.2_02/jre/lib/ext/localedata.jar
work dir=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_
extension dir=/usr/j2sdk1.4.2_02/jre/lib/ext
srcDir=/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_
include=org/apache/jsp/ricerche_jsp.java

19-gen-2004 18.00.05 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Error compiling file: 
/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_//org/apache/jsp/ricerche_jsp.java 
[javac] Compiling 1 source file

/usr/jakarta-tomcat-5.0.16/work/Catalina/www.vishopping.it/_/org/apache/jsp/ricerche_jsp.java:6: 
package db does not exist

cp=/usr/jakarta-tomcat-5.0.16/common/lib/ant.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/naming-common.jar
cp=/usr/jakarta-tomcat-5.0.16/common/lib/jsp-api.jar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
If everything works ok, you can safely ignore this error. Check the source
code for mod_jk2 for
more info.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:12
To: 'Tomcat Users List'
Subject: RE: running tomcat5 in-process


I'm getting that error.  DO you know what causes this error?

-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:10 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Aren't you getting this error in Apache's error.log:
[error] mod_jk child init 1 0
???


- Original Message -
From: Phil Adams [EMAIL PROTECTED]
To: tomcat [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 1:42 PM
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


-
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 has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: running tomcat5 in-process

2004-01-23 Thread Alvaro Seixas
Yeah man, would be great if you post your mod_jk2.dll.
Cause my workers2.properties looks pretty much like yours, but I'm getting
these errors:

This one occurs when I add '[worker.jni:onStartup]'
[error] Can't find class org/apache/jk/apr/AprImpl


This one all the time:
[error] mod_jk child init 1 0


Thanks a lot,
Alvaro

- Original Message -
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:26 PM
Subject: RE: running tomcat5 in-process


 Excellent, I'll give it a try.  Any chance of getting a copy of
mod_jk2.dll
 that you compiled?
 Thanks.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 8:17 AM
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Here is where I am so far.
 I finally got past all of the errors with Apache by compiling my own
 mod_jk2.dll.
 I also compiled the jkjni.dll for the apr.NativeSo but this created even
 more errors.
 so I have it currently commented out of jk2.properties.

 I also found that I needed an 'apache2_home' as well as 'apache_home' in
my
 environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
 and 'java_home'.

 As you can read from my original post I am searching for the jni connector
 for tomcat5.
 I believe this is the missing key to the puzzle.

 --
 jk2.properties
 --
 shm.file=c:/Apache2/logs/jk2.shm
 #apr.NativeSo=C:/tomcat/bin/jkjni.dll
 handler.list=apr,request,channelJni
 apr.jniModeSo=inprocess
 channelJni.disabled = 0

 --
 workers2.properties
 --
 [logger]
 level=DEBUG

 [config:]
 file=c:/Apache2/conf/workers2.properties
 debug=0
 debugEnv=0

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

 [shm]
 file=c:/Apache2/logs/jk2.shm
 size=1048576
 debug=0
 disabled=0

 [workerEnv:]
 info=Global server options
 timing=1
 debug=0

 [lb:lb]
 info=Default load balancer.
 debug=0

 [channel.jni:jni]
 info=The jni channel, used if tomcat is started inprocess
 debug=0

 [worker.jni:onStartup]
 info=Command to be executed by the VM on startup. This one will start
 tomcat.
 class=org/apache/jk/apr/TomcatStarter
 # For Tomcat 5 use the 'stard' for startup argument
 ARG=stard
 stdout=c:/Apache2/logs/stdout.log
 stderr=c:/Apache2/logs/stderr.log

 [worker.jni:onShutdown]
 info=Command to be executed by the VM on shutdown. This one will stop
 tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=stop

 [vm:]
 info=Parameters used to load a JVM in the server process

OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l

ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/

lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste

r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common

s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc

at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/

lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
 lib/catalina.jar;c:/java2/lib/tools.jar
 OPT=-Dtomcat.home=c:/Tomcat
 OPT=-Dcatalina.home=c:/Tomcat
 OPT=-Dcatalina.base=c:/Tomcat
 OPT=-Djava.home=c:/java2
 OPT=-Dserverroot=c:/apache2
 OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
 OPT=-Djava.io.tmpdir=C:/Tomcat/temp
 OPT=-Dstdout=c:/Apache2/logs/stdout.log
 OPT=-Dstderr=c:/Apache2/logs/stderr.log
 OPT=-Xmx128M

 # Map the Tomcat webapps to the Web server uri space
 [uri:/servlets-examples/*]
 context=/servlets-examples

 [uri:/jsp-examples/*]
 context=/jsp-examples

 [uri:/tomcat-docs/*]
 context=/tomcat-docs

 [uri:/jetspeed/*]
 context=/jetspeed

 ###
 [status:]
 info=Status worker, displays runtime informations

 [uri:/jkstatus/*]
 info=Display status information and checks the config file for changes.
 group=status:

 --
 End of workers2.properties
 --

 _Phil
 [EMAIL PROTECTED]
 Fort Worth, Texas


 -
 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: LogSetter in Context

2004-01-23 Thread Mike Anderson
This probably is an issue with the JVM on NetWare.  Unfortunately,
because of the underlying filesystem, when a flush is called in Java,
all the JVM can do is schedule a flush with the filesystem.  This sounds
like the behavior you are seeing where you have to wait several minutes
to see anything in the filesystem.  The only way I've been able to see a
complete log is to either log it to the logger screen (which is special
in it's own right because of all of the other stuff that is intermingled
in) or perform the behavior that causes the error and then shutdown
tomcat which forces the logs to be flushed and closed.

Mike Anderson

 [EMAIL PROTECTED] 1/22/2004 11:38:13 PM 
Ok, I don't have access to NetWare, but trying your example on Windows
works
fine.  The logs are flushed as soon as the error occurs.  The only
change I
made was to log as well in ClassNotFoundException (so I don't actually
have
to set up a database :).

This suggests that the problem is really either with you DB vendor
(unlikely, but I can't rule out that the Driver isn't doing something
funky
:), or with your JVM vendor (e.g. Writer.flush isn't really doing what
it is
supposed to do).

Also I was testing with the CVS HEAD (aka 3.3.2-dev nightly).  The CVS
logs
don't show any real changes in the logging code from this and
3.3.1(a),
however.  If you are feeling frustrated enough, you could try
downloading
the nightly and see if there is any difference :).

Howard Watson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
See Attachement

 [EMAIL PROTECTED] 01/15/04 11:34PM 
If you could strip-down your web-app to a minimal version that
reproduces
this problem, and post it to BugZilla (or even here, if you don't mind
p**sing off everyone on the list with a big download :), I'd really
like to
take a look at it.  With a quick eyeballing, I can't see anything in
the
code that would produce what you describe.

Howard Watson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Thanks for the reply:

 I'm using Tomcat3.3.1a for Netware. Took a look at what you talked
 about and had the same problems. But, I did learn a little more
about
 the problem. Apparently, I was hacking the context file, deleting
log
 files and restarting Tomcat before results were being written.

 The problem is not a failure to write to the log, but that it is
taking
 about 5 minutes after restarting Tomcat before it will write to the
log.
 Then I have exit out of the browser, start a new browser session and
 recreate the error. It then writes everything for that 5 minutes and
up
 to the most recent error.

 Later, if I generate an error in a new browser session it will write
 that one error, but if I generate multiple errors in a browser
session
 (the same error) I have to start a new browser session, recreate the
 error and then it writes all the missing errors including the most
 current one.

 Howard

  [EMAIL PROTECTED] 01/14/04 11:31PM 
 Using the CVS HEAD (aka 3.3.2-dev), I have no problems with the
 default
 setup (which defines a LogSetter in the 'examples' Context).

 Howard Watson [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Does any know of good document or a tutorial for using LogSetter
 within
  a Tomcat3.3 Context? The log file is created but nothing is
written
 to
  it.
 
  I've searched the list and the Internet and find nothing explicit
 about
  using name= or servletLogger= in ContextLogSetter //Context.
 
  If I don't use LogSetter within the Context; servlet:inits are
  written and getServletContext().log(Test ServertLog:  , eSQL);
 writes
  an error to the ContextManager servlet_log correctly.
 
  Any ideas?





-
 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: running tomcat5 in-process

2004-01-23 Thread David Short
Phil posted his mod_jk2.dll a few posts ago.  He also posted his
workers2.properties file a few posts back.  Check out his [vm:] section for
the JAR list (OPT=-Djava.class.path=) directive and the Can't find class
org/apache/jk/apr/AprImpl error  should go away.  It looks like the
[error] mod_jk child init 1 0 is a bug, as you pointed out.

-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:47 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Yeah man, would be great if you post your mod_jk2.dll.
Cause my workers2.properties looks pretty much like yours, but I'm getting
these errors:

This one occurs when I add '[worker.jni:onStartup]'
[error] Can't find class org/apache/jk/apr/AprImpl


This one all the time:
[error] mod_jk child init 1 0


Thanks a lot,
Alvaro

- Original Message -
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:26 PM
Subject: RE: running tomcat5 in-process


 Excellent, I'll give it a try.  Any chance of getting a copy of
mod_jk2.dll
 that you compiled?
 Thanks.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 8:17 AM
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Here is where I am so far.
 I finally got past all of the errors with Apache by compiling my own
 mod_jk2.dll.
 I also compiled the jkjni.dll for the apr.NativeSo but this created even
 more errors.
 so I have it currently commented out of jk2.properties.

 I also found that I needed an 'apache2_home' as well as 'apache_home' in
my
 environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
 and 'java_home'.

 As you can read from my original post I am searching for the jni connector
 for tomcat5.
 I believe this is the missing key to the puzzle.

 --
 jk2.properties
 --
 shm.file=c:/Apache2/logs/jk2.shm
 #apr.NativeSo=C:/tomcat/bin/jkjni.dll
 handler.list=apr,request,channelJni
 apr.jniModeSo=inprocess
 channelJni.disabled = 0

 --
 workers2.properties
 --
 [logger]
 level=DEBUG

 [config:]
 file=c:/Apache2/conf/workers2.properties
 debug=0
 debugEnv=0

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

 [shm]
 file=c:/Apache2/logs/jk2.shm
 size=1048576
 debug=0
 disabled=0

 [workerEnv:]
 info=Global server options
 timing=1
 debug=0

 [lb:lb]
 info=Default load balancer.
 debug=0

 [channel.jni:jni]
 info=The jni channel, used if tomcat is started inprocess
 debug=0

 [worker.jni:onStartup]
 info=Command to be executed by the VM on startup. This one will start
 tomcat.
 class=org/apache/jk/apr/TomcatStarter
 # For Tomcat 5 use the 'stard' for startup argument
 ARG=stard
 stdout=c:/Apache2/logs/stdout.log
 stderr=c:/Apache2/logs/stderr.log

 [worker.jni:onShutdown]
 info=Command to be executed by the VM on shutdown. This one will stop
 tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=stop

 [vm:]
 info=Parameters used to load a JVM in the server process

OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l

ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/

lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste

r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common

s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc

at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/

lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
 lib/catalina.jar;c:/java2/lib/tools.jar
 OPT=-Dtomcat.home=c:/Tomcat
 OPT=-Dcatalina.home=c:/Tomcat
 OPT=-Dcatalina.base=c:/Tomcat
 OPT=-Djava.home=c:/java2
 OPT=-Dserverroot=c:/apache2
 OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
 OPT=-Djava.io.tmpdir=C:/Tomcat/temp
 OPT=-Dstdout=c:/Apache2/logs/stdout.log
 OPT=-Dstderr=c:/Apache2/logs/stderr.log
 OPT=-Xmx128M

 # Map the Tomcat webapps to the Web server uri space
 [uri:/servlets-examples/*]
 context=/servlets-examples

 [uri:/jsp-examples/*]
 context=/jsp-examples

 [uri:/tomcat-docs/*]
 context=/tomcat-docs

 [uri:/jetspeed/*]
 context=/jetspeed

 ###
 [status:]
 info=Status worker, displays runtime informations

 [uri:/jkstatus/*]
 info=Display status information and checks the config file for changes.
 group=status:

 --
 End of workers2.properties
 --

 _Phil
 [EMAIL PROTECTED]
 Fort Worth, Texas


 -
 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 

jasper exception

2004-01-23 Thread xavier manohar
Hello 
 I am a newbie .can any one suggest me what this exception is?
Please help me to come out of this problem
org.apache.jasper.JasperException: Cannot find any information on property 'nam' in a 
bean of type 'Name'

thanx 
in advance
mano
 
 
 
 

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

RE: jasper exception

2004-01-23 Thread Shapira, Yoav

Howdy,

 I am a newbie .can any one suggest me what this exception is?
Please help me to come out of this problem
org.apache.jasper.JasperException: Cannot find any information on
property
'nam' in a bean of type 'Name'

Look at the java code of your bean class Name.  What are its member
variables name and scope, and are there public read accessors for them?
If so, then look at your JSP to see if you misspelled the attribute
you're trying to read from the bean (e.g. nam instead of name).

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: running tomcat5 in-process

2004-01-23 Thread Phil Adams
I should point out that I have also commented out the connector entry
for port 8009 in the server.xml file for tomcat/conf.

based on all of my testing... almost a week now.

I came to the conslusion that this [error] means that apache is failing to
start tomcat.
the reason I surmised this is that, when I started tomcat using 'catalina
run' from a
cmd line.  I was getting an error on jkjni.  so, I compiled jkjni.dll, but
this just
made it worse because it wants to read the workers2.properties file and it
just
gets ugly from there... can't be right!
well... from many years of mainframe work and trying to create wrapper
processes,
I learned that typically if your wrapper process, when trying to start some
other process internally,
sees _any_ error it will claim failure even if the error is benign.
Therefore not starting your process.  So I concentrated on tomcat and
getting
it to start without any errors or Warnings.  (I don't know if its relevant,
but I did get
the 5.0.18 server/lib and bootstrap.jar.)  Using the previously supplied jk2
and having
commented the 8009 port connector from server.xml, tomcat will start without
complaint.

and... with the workers2 file previously supplied,
Now when I start apache, I no longer get an error message from mod_jk.
which I believe
means that it has started tomcat, but if you try to surf to one of the uri's
you will get a server failure
and the apache error log will spew messages about not being able to talk to
tomcat.
[error] mod_jk.handler() Error connecting to tomcat
this is what leads me to the fact that there is no connector configured
in server.xml for jni.  A search of the internet will produce all sorts of
references to jni_conenct.dll for tomcat 3.  and now you know the rest of
the story...

-- as a disclaimer -- :-)
I was never good a chemistry because I refused to take notes as I went
thru the
process of the experiment.  Meaning, that I am sure I have forgotten
something.
feel free to ask any question, because I feel your pain!!!

_phil


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



Re: running tomcat5 in-process

2004-01-23 Thread Alvaro Seixas
Phil / David,

I'm not being able to get mod_jk2.dll.
Please, would you mind to send it to [EMAIL PROTECTED]

Thank you very much!!!

- Original Message -
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:54 PM
Subject: RE: running tomcat5 in-process


 Phil posted his mod_jk2.dll a few posts ago.  He also posted his
 workers2.properties file a few posts back.  Check out his [vm:] section
for
 the JAR list (OPT=-Djava.class.path=) directive and the Can't find class
 org/apache/jk/apr/AprImpl error  should go away.  It looks like the
 [error] mod_jk child init 1 0 is a bug, as you pointed out.

 -Original Message-
 From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 8:47 AM
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Yeah man, would be great if you post your mod_jk2.dll.
 Cause my workers2.properties looks pretty much like yours, but I'm getting
 these errors:

 This one occurs when I add '[worker.jni:onStartup]'
 [error] Can't find class org/apache/jk/apr/AprImpl


 This one all the time:
 [error] mod_jk child init 1 0


 Thanks a lot,
 Alvaro

 - Original Message -
 From: David Short [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 2:26 PM
 Subject: RE: running tomcat5 in-process


  Excellent, I'll give it a try.  Any chance of getting a copy of
 mod_jk2.dll
  that you compiled?
  Thanks.
 
  -Original Message-
  From: Phil Adams [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 23, 2004 8:17 AM
  To: Tomcat Users List
  Subject: Re: running tomcat5 in-process
 
 
  Here is where I am so far.
  I finally got past all of the errors with Apache by compiling my own
  mod_jk2.dll.
  I also compiled the jkjni.dll for the apr.NativeSo but this created even
  more errors.
  so I have it currently commented out of jk2.properties.
 
  I also found that I needed an 'apache2_home' as well as 'apache_home' in
 my
  environment vars.  also, make sure you have 'catalina_home',
'tomcat_home'
  and 'java_home'.
 
  As you can read from my original post I am searching for the jni
connector
  for tomcat5.
  I believe this is the missing key to the puzzle.
 
  --
  jk2.properties
  --
  shm.file=c:/Apache2/logs/jk2.shm
  #apr.NativeSo=C:/tomcat/bin/jkjni.dll
  handler.list=apr,request,channelJni
  apr.jniModeSo=inprocess
  channelJni.disabled = 0
 
  --
  workers2.properties
  --
  [logger]
  level=DEBUG
 
  [config:]
  file=c:/Apache2/conf/workers2.properties
  debug=0
  debugEnv=0
 
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
 
  [shm]
  file=c:/Apache2/logs/jk2.shm
  size=1048576
  debug=0
  disabled=0
 
  [workerEnv:]
  info=Global server options
  timing=1
  debug=0
 
  [lb:lb]
  info=Default load balancer.
  debug=0
 
  [channel.jni:jni]
  info=The jni channel, used if tomcat is started inprocess
  debug=0
 
  [worker.jni:onStartup]
  info=Command to be executed by the VM on startup. This one will start
  tomcat.
  class=org/apache/jk/apr/TomcatStarter
  # For Tomcat 5 use the 'stard' for startup argument
  ARG=stard
  stdout=c:/Apache2/logs/stdout.log
  stderr=c:/Apache2/logs/stderr.log
 
  [worker.jni:onShutdown]
  info=Command to be executed by the VM on shutdown. This one will stop
  tomcat.
  class=org/apache/jk/apr/TomcatStarter
  ARG=stop
 
  [vm:]
  info=Parameters used to load a JVM in the server process
 

OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
 

ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
 

lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
 

r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
 

s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
 

at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
 

lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
  lib/catalina.jar;c:/java2/lib/tools.jar
  OPT=-Dtomcat.home=c:/Tomcat
  OPT=-Dcatalina.home=c:/Tomcat
  OPT=-Dcatalina.base=c:/Tomcat
  OPT=-Djava.home=c:/java2
  OPT=-Dserverroot=c:/apache2
  OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
  OPT=-Djava.io.tmpdir=C:/Tomcat/temp
  OPT=-Dstdout=c:/Apache2/logs/stdout.log
  OPT=-Dstderr=c:/Apache2/logs/stderr.log
  OPT=-Xmx128M
 
  # Map the Tomcat webapps to the Web server uri space
  [uri:/servlets-examples/*]
  context=/servlets-examples
 
  [uri:/jsp-examples/*]
  context=/jsp-examples
 
  [uri:/tomcat-docs/*]
  context=/tomcat-docs
 
  [uri:/jetspeed/*]
  context=/jetspeed
 
  ###
  [status:]
  info=Status worker, displays runtime informations
 
  [uri:/jkstatus/*]
  info=Display status information and checks the config file for changes.
  group=status:
 
  --
  End of workers2.properties
  --
 
  _Phil
  

[OT] Re: JavaScript Doubt

2004-01-23 Thread Ankur Shah
[EMAIL PROTECTED] wrote:


 as already said..pls maintain list protocols...

 Pavan Kumar
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

[Redundant disclaimer snipped]

which, BTW includes the following section from the Netiquette Guidelines
(RFC 1855)



- If you include a signature keep it short.  Rule of thumb
  is no longer than 4 lines.  Remember that many people pay for
  connectivity by the minute, and the longer your message is,
  the more they pay.

Is it really necessary to include a 20-line legal disclaimer in a 20 character long 
response?


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



response commit question

2004-01-23 Thread Cindy Ballreich

I just noticed that when I get the ServletResponse using pageContext.getResponse() in 
a custom tag, that the response seems to always be already committed. Is this always 
the case with tags or am I doing something wrong? I couldn't find any documentation 
that spells out the response-commit process. Could someone point me in the right 
direction?

Thanks!

Cindy

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



Conflict openssl versus keytool

2004-01-23 Thread Ignacio Barrancos Martinez
Hi all,

  I am running two web servers on the same Linux machine.
1) is running Apache 1.3.19 and,
2) Jakarta-Tomcat-4.0.5. 

I have been able to successfully import and configure a Digital
Certificate from Verisign into the Apache web server. 

When I attempt to import the Digital Certificate into the keystore for
Tomcat I receive the following error
message:

keytool error: java.lang.Exception: Public keys in reply and keystore
don't match

Here are the steps that I have been following:

To generate the original csar:

# openssl req -new -nodes -keyout private.key -out public.csr
# openssl rsa -in private.key -des3 -out secureprivate.key

To import the file into Tomcat I did the following:

# keytool -genkey -alias tomcat -keyalg RSA
(This created the keystore in the home directory)

# keytool -import -alias root -keystore .keystore \-trustcacerts
  -file /etc/httpd/ssl.crt/intermediate.crt
(The chain certificate from Verisign)

# keytool -import -alias tomcat -keystore .keystore -trustcacerts -file
/etc/httpd/ssl.crt/server.crt
Enter keystore password:  changeit

QUESTIONS:
==
1) Is there a way to import this CAcertificate into a keystore that was
generated using keytool, when the original CSR was generated using
OpenSSL?

2) Can i import RSA key generated with openSSL, into a new keystore made 
with keytool? I want to import the server.crt (signed from Verisign) to 
my keystore using keytool.

- I have read   http://marc.theaimsgroup.com/?l=tomcat-userm=106293430225790w=2
and i have done all the steps until Step 11. Using IExplorer 6 (windows XP SP1) 
going to jakarta's app url, the browser Can't find the site, and in the bottom of 
the page shows little message: Can't find the name server in DNS (without error 
number), but the same URL using Mozilla shows validate Certificate window.

Thanks in advance,
Ignacio Barrancos


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



RE: [OT] Re: JavaScript Doubt

2004-01-23 Thread Shapira, Yoav

Howdy,

Is it really necessary to include a 20-line legal disclaimer in a 20
character long response?

I'm a fan of mailing list etiquette, but in defense of this poster, many
companies add disclaimers to outgoing messages without knowledge,
(explicit) consent, or control of the individual sender.

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: Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward
 
 I would use sendRedirect in this case for two reasons:
 - To really make it look/act as if the request was for the /hal URL,
 - To avoid getting a RequestDispatcher for a resource outside 
 your docBase
 
 sendRedirect would preserve all the request parameters, 
 including POST data.


Hi Yoav,

Below is the filter I've been using.  It seems to mostly work,
but any image files from a path such as /images/Delete.gif
seem to not get updated to /hal/images/Delete.gif in the
HTML.

However, the output I get to System.out *does* show the filter
processing these requests.  Any ideas?  Is this the correct way
to implement the filter?

Chris




public void doFilter(ServletRequest req, ServletResponse resp,
FilterChain chain)
throws IOException, ServletException 
{
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) resp;


try
{
System.out.println( REQ : getRequestURI   :  + request.getRequestURI()
);
String filteredURL = /hal+request.getRequestURI();
System.out.println( filteredURL );
//chain.doFilter(request, response);  
 
response.sendRedirect(response.encodeRedirectURL(filteredURL));

} 
catch (IOException io) 
{
System.out.println (IOException raised in Filter);
}   
}

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



5.0.18 Ignoring security-constraint?

2004-01-23 Thread Merrill Cornish
I had been running Tomcat 5.0.16 standalone (it wouldn't start as a service) on 
Windows 2000 and j2sdk1.4.2 successfully.  Yesterday, I installed 5.0.18 and was 
finally able to get it to run as a service.  However, when I launch my timesheet 
application in the usual way,  http://localhost/timesheet;, I get Page Cannot Be 
Displayed.

My timesheet context has the index.html welcome page shown below in the docbase 
directory of that context so the user will automatically be redirected to the login 
page.  (I also have a copy of index.html is all other directories in the application 
so attempts to drill down into the application aways result in the login page.)

I want the login to be done over SSL, so I have specified connectors for port 80 and 
443 as shown below in the server.xml excerpt.

In my original implementation, I had the index.html welcome page redirect to 
https://localhost/timesheet/login.jsp;.  Also, I had a check at the top fo the 
login.jsp page to redirect via HTTPS if the connection wasn't secure.  Then I found 
out about the security-constraint element in my application's web.xml.  Under 
5.0.16, I added the security-constraint element to my web.xml, and it all worked, so 
I could simplify my JSP pages.

Under 5.0.18, entering http://localhost/timesheet; in the browser results in Page Not 
Found. However, if I enter https://localhost/timesheet; (note the explicit HTTPS), 
the application launches correctly.  So, it appears (to my understanding) that 5.0.18 
is ignoring the security-constraint element in the application's web.xml.  

I know that Tomcat is sensitive to the ordering of elements in web.xml.  In my case, 
the security-constraint element is the last element in web-app, which according to 
the DTD:

   !ELEMENT web-app ( . . . security-constraint*, login-config?, 
 security-role*, env-entry*, ejb-ref*,  ejb-local-ref*)

is acceptable, since I don't have any of the other elements that follows 
security-constraint.

Is the problem with 5.0.18, or am I missing something?

Merrill

--- index.html 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN 
http://www.w3.org/TR/html4/strict.dtd;
html
head
  meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'
  meta http-equiv='refresh' content='0;URL=/timesheet/login.jsp'
/head
body/body
/html

--- server.xml 
. . .
Connector port=80
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=443 acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
Connector port=443 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
. . .


--- context web.xml --
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  . . .
  security-constraint
display-nameConnectTel Timesheet Application Security Constraint/display-name
web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  url-pattern*.jsp/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
/web-app

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



tomcat5 in-process (more info for you guys)

2004-01-23 Thread Phil Adams
here is my error.log file from just a few minutes ago when I started apache

[Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
worker.jni:onStartup
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
worker.jni:onShutdown
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done status:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/*
[Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done logger
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done config:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uriMap:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done shm
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done workerEnv:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done lb:lb
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done channel.jni:jni
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
worker.jni:onStartup
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
worker.jni:onShutdown
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done vm:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jetspeed/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done status:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jkstatus/*
[Fri Jan 23 11:09:58 2004] [notice] Child 2432: Child process is running
[Fri Jan 23 11:09:58 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 2432
[Fri Jan 23 11:09:58 2004] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.2_03\bin\client\jvm.dll
[Fri Jan 23 11:09:59 2004] [notice] vm.open2() done
[Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
stdout=c:/Apache2/logs/stdout.log...
[Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
stderr=c:/Apache2/logs/stderr.log...
[Fri Jan 23 11:09:59 2004] [notice] jni.init() ARG start
[Fri Jan 23 11:09:59 2004] [notice] jni.init() calling main()...
[Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] jni.init() disabling the non init hook
worker
[Fri Jan 23 11:09:59 2004] [notice] uriMap: creating context
*/servlets-examples
[Fri Jan 23 11:09:59 2004] [notice] uriMap: creating context */jsp-examples
[Fri Jan 23 11:10:00 2004] [notice] uriMap: creating context */tomcat-docs
[Fri Jan 23 11:10:00 2004] [notice] uriMap: creating context */jetspeed
[Fri Jan 23 11:10:00 2004] [notice] workerEnv.init() ok
C:/Apache2/conf/workers2.properties
[Fri Jan 23 11:10:00 2004] [notice] mod_jk child 0 initialized
[Fri Jan 23 11:10:00 2004] [notice] Child 2432: Acquired the start mutex.
[Fri Jan 23 11:10:00 2004] [notice] Child 2432: Starting 250 worker threads.


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



RE: Repeated load-on-startup niggle

2004-01-23 Thread Shapira, Yoav

Howdy,

Below is the filter I've been using.  It seems to mostly work,
but any image files from a path such as /images/Delete.gif
seem to not get updated to /hal/images/Delete.gif in the
HTML.

However, the output I get to System.out *does* show the filter
processing these requests.  Any ideas?  Is this the correct way
to implement the filter?

Hmm, that's strange.  Enable the AccessLogValve (in server.xml) so that
you can see what's actually being requested from the server.

try
{
System.out.println( REQ : getRequestURI   :  +
request.getRequestURI()
);
String filteredURL = /hal+request.getRequestURI();
System.out.println( filteredURL );
//chain.doFilter(request, response);

response.sendRedirect(response.encodeRedirectURL(filteredURL));

It might not matter to you, but I think this code would drop the query
string from the forward URL.  Test to make sure it doesn't, or it if
does add the request.getQueryStrign() to filterURL (before encoding).

So you get the image forward URLs in your System.out output?

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]



Dual Web Apps (IIS), Dual Tomcat instances, How-to?

2004-01-23 Thread KKolle
Hi,

Tomcat: 4.1
IIS: 5.0
OS: Windows2000

I currently have a web app. configured in IIS to talk to a Tomcat instance,
fine, no problem. But, now, I want to setup a development web app (instance) and
a separate QA/Testing web app (instance).

The ISAPI_Redirector2.dll has registry settings. In the registry, one of the
entries needs to point to the location of the installed Tomcat. So, when I
configure IIS with two different web apps, I would need two different installed
Tomcat instances, correct?

When I installed a new Tomcat (using the .exe), it configured the services to
the same name as my original Tomcat instance. So, in the services window, I had
a Tomcat 4.1 service. Now, I still have that same service, but it's still
pointing to my original Tomcat instance. I was expecting a 2nd service for my
2nd Tomcat instance.

Are there instructions for manually installing a specific service?

SORRY, more than one question here:
Also, when I manually started my 2nd Tomcat instance (while my 1st instance was
running), I got a JVM Bind to port message. It said that port 8009 was already
in use. I changed all port numbers in the server.xml (I just added one to each
number). Those new ports are open on the box. Any ideas?

Thanks,
Kevin



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



RE: tomcat5 in-process (more info for you guys)

2004-01-23 Thread Yiannis Mavroukakis
Phil,
here is the code related to your error

 rc = worker-service(env, worker, s);
 []
 rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
if( rc1 == JK_OK ) {
rPool=NULL;
}
if( rPool!=NULL ) {
rPool-close(env, rPool);
}

if(rc==JK_OK) {
workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
return OK;/* NOT r-status, even if it has changed. */
}
env-l-jkLog(env, env-l, JK_LOG_ERROR,
  mod_jk.handler() Error connecting to tomcat %d\n, rc);
workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
return 500;

the worker is derived from the apache pool of workers (i think), so I'd need
to
look at the worker code to make more sense of it..worker-service(env,
worker, s) is
returning something else other than the equivalent of JK_OK, so this is
where it fails..
Dig in the source code for workers, it might help..The lad who wrote mod_jk2
is also
frequenting the list so he might be able to enlighten us on the specifics :)

Yiannis.
-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 17:12
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: tomcat5 in-process (more info for you guys)


here is my error.log file from just a few minutes ago when I started apache

[Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
worker.jni:onStartup
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
worker.jni:onShutdown
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done status:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/*
[Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done logger
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done config:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uriMap:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done shm
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done workerEnv:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done lb:lb
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done channel.jni:jni
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
worker.jni:onStartup
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
worker.jni:onShutdown
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done vm:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jetspeed/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done status:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jkstatus/*
[Fri Jan 23 11:09:58 2004] [notice] Child 2432: Child process is running
[Fri Jan 23 11:09:58 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 2432
[Fri Jan 23 11:09:58 2004] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.2_03\bin\client\jvm.dll
[Fri Jan 23 11:09:59 2004] [notice] vm.open2() done
[Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
stdout=c:/Apache2/logs/stdout.log...
[Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
stderr=c:/Apache2/logs/stderr.log...
[Fri Jan 23 11:09:59 2004] [notice] jni.init() ARG start
[Fri Jan 23 11:09:59 2004] [notice] jni.init() calling main()...
[Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] jni.init() disabling the non init hook
worker
[Fri Jan 23 11:09:59 2004] [notice] uriMap: creating context
*/servlets-examples
[Fri Jan 23 11:09:59 2004] [notice] uriMap: creating context */jsp-examples
[Fri Jan 23 11:10:00 2004] [notice] uriMap: creating context */tomcat-docs
[Fri Jan 23 11:10:00 2004] [notice] uriMap: creating 

RE: Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward

 
 Hmm, that's strange.  Enable the AccessLogValve (in 
 server.xml) so that you can see what's actually being 
 requested from the server.

Seems to request both versions...





 try
 {
 System.out.println( REQ : getRequestURI   :  +
 request.getRequestURI()
 );
 String filteredURL = /hal+request.getRequestURI(); 
 System.out.println( filteredURL );
 //chain.doFilter(request, response);
 
 response.sendRedirect(response.encodeRedirectURL(filteredURL));
 
 It might not matter to you, but I think this code would drop 
 the query string from the forward URL.  Test to make sure it 
 doesn't, or it if does add the request.getQueryStrign() to 
 filterURL (before encoding).
 
 So you get the image forward URLs in your System.out output?
 
 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]
 
 

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



RE: Repeated load-on-startup niggle

2004-01-23 Thread Chris Ward

 
 Hmm, that's strange.  Enable the AccessLogValve (in 
 server.xml) so that you can see what's actually being 
 requested from the server.
 

Seems to request both versions...

 - - [23/Jan/2004:17:31:22 00] GET /images/buttons/Delete.gif HTTP/1.1
302 -
 - - [23/Jan/2004:17:31:22 00] GET /images/buttons/Clone.gif HTTP/1.1
302 -
 - - [23/Jan/2004:17:31:22 00] GET /hal/images/buttons/Delete.gif
HTTP/1.1 304 -
 - - [23/Jan/2004:17:31:22 00] GET /hal/images/buttons/Clone.gif
HTTP/1.1 304 -
 - - [23/Jan/2004:17:31:22 00] GET /images/buttons/Filter.gif HTTP/1.1
302 -
 - - [23/Jan/2004:17:31:22 00] GET /hal/images/buttons/Filter.gif
HTTP/1.1 304 -

Or is this what you'd expect to see (i.e. a before and after)?

I'm not convinced my Filter is correct since there are other things that
have not had the /hal added to them...

 - - [23/Jan/2004:17:31:22 00] GET /stylesheets/HAL_Styles.css
HTTP/1.1 302 -
 - - [23/Jan/2004:17:31:22 00] GET /JavaScript/HAL_CommonJavaScript.js
HTTP/1.1 302 -

I was kinda hoping there would be nothing other than /hal/
entries in
here.




 It might not matter to you, but I think this code would drop 
 the query string from the forward URL.  Test to make sure it 
 doesn't, or it if does add the request.getQueryStrign() to 
 filterURL (before encoding).

Ah. True.  Thanks for the tip.


 So you get the image forward URLs in your System.out output?

Oddly, yes...

...
REQ : getRequestURI   : /images/buttons/Filter.gif
/hal/images/buttons/Filter.gif
...


Chris


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



RE: Repeated load-on-startup niggle

2004-01-23 Thread Shapira, Yoav

Howdy,
The response code tell a ton.

Seems to request both versions...

 - - [23/Jan/2004:17:31:22 00] GET /images/buttons/Delete.gif
HTTP/1.1
302 -
 - - [23/Jan/2004:17:31:22 00] GET /images/buttons/Clone.gif HTTP/1.1
302 -
 - - [23/Jan/2004:17:31:22 00] GET /hal/images/buttons/Delete.gif
HTTP/1.1 304 -
 - - [23/Jan/2004:17:31:22 00] GET /hal/images/buttons/Clone.gif
HTTP/1.1 304 -

302 -- found (redirect), this is expected and good.  304 -- not
modified, means it's in your browser's cache.  Try clearing your
browser's cache.

Or is this what you'd expect to see (i.e. a before and after)?

Yeah, this is fine.

I'm not convinced my Filter is correct since there are other things
that
have not had the /hal added to them...

 - - [23/Jan/2004:17:31:22 00] GET /stylesheets/HAL_Styles.css
HTTP/1.1 302 -
 - - [23/Jan/2004:17:31:22 00] GET /JavaScript/HAL_CommonJavaScript.js
HTTP/1.1 302 -

Is there a matching 304 with /hal for these requests?

I was kinda hoping there would be nothing other than /hal/
entries in here.

No: all requests are logged (because of where in server.xml the
AccessLogValve is defined -- you can change this), so you see requests
for / as well as /hal.

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]



Tomcat with SSL

2004-01-23 Thread Ralf Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I want to try out SSL connections with Tomcat 5.0.16. I followed the 
instructions in the docs and generated a certificate with keytool which is 
stored under /root/.keystore and uncommented the SSL connector in server.xml:

Connector port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=/root/.keystore keystorePass=mypasswd /

After that I restarted tomcat and tried to access my application via 
https://..:8443/index.jsp but nothing happens. After some time I get a 
timeout, but nothing appears in the logfile.

What can I do to get some information about what's going wrong?

BTW: Normal access via http and port 8080 still works fine.

Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAEV607YyyfykA0YkRAiLPAJwLFg+94nxPCNt3Mgf4llO5LPw0cQCgk6tp
7jAWmcMwUukUPlG6yHI6j34=
=fGUj
-END PGP SIGNATURE-


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



Re: tomcat5 in-process (more info for you guys)

2004-01-23 Thread Phil Adams
now that I have apache started without error
and it would appear that it has tomcat started in-process  (maybe)
I went to a cmd line to start tomcat and received an error that port 8005
is already in use, which a netstat proves to be true.
the only place that port 8005 is configured to be used is in server.xml
for tomcat.   therefore, this lends some credence to the logic that
apache is starting tomcat in-process.
But... apache cannot talk to it.  Why-not?
I still believe it must have something to do with a lack of a connector.

Now when I surf to my uri's and get the 500 server failure the log shows
this.
notice on the second attempt that it 'reenable'd ajp13:jni.
this is not something that I have configured. must be a default.  h...

[Fri Jan 23 11:37:02 2004] [notice] shm.createSlot() Create 1 0x64
0x642000
[Fri Jan 23 11:37:02 2004] [notice] workerEnv.init() create slot epStat.0
[Fri Jan 23 11:37:02 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:37:02 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:37:02 2004] [notice] vm.detach() ok
[Fri Jan 23 11:37:02 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Fri Jan 23 11:39:03 2004] [error] lb.getWorker() reenable ajp13:jni
[Fri Jan 23 11:39:03 2004] [notice] lb.getWorker() All workers in error
state, use the one with oldest error
[Fri Jan 23 11:39:03 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:39:03 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:39:04 2004] [notice] vm.detach() ok
[Fri Jan 23 11:39:04 2004] [error] mod_jk.handler() Error connecting to
tomcat 12


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 11:36 AM
Subject: RE: tomcat5 in-process (more info for you guys)


 Phil,
 here is the code related to your error

  rc = worker-service(env, worker, s);
  []
  rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
 if( rc1 == JK_OK ) {
 rPool=NULL;
 }
 if( rPool!=NULL ) {
 rPool-close(env, rPool);
 }

 if(rc==JK_OK) {
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return OK;/* NOT r-status, even if it has changed. */
 }
 env-l-jkLog(env, env-l, JK_LOG_ERROR,
   mod_jk.handler() Error connecting to tomcat %d\n, rc);
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return 500;

 the worker is derived from the apache pool of workers (i think), so I'd
need
 to
 look at the worker code to make more sense of it..worker-service(env,
 worker, s) is
 returning something else other than the equivalent of JK_OK, so this is
 where it fails..
 Dig in the source code for workers, it might help..The lad who wrote
mod_jk2
 is also
 frequenting the list so he might be able to enlighten us on the specifics
:)

 Yiannis.
 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 17:12
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: tomcat5 in-process (more info for you guys)


 here is my error.log file from just a few minutes ago when I started
apache

 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onStartup
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onShutdown
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/servlets-examples/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/jsp-examples/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/tomcat-docs/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done status:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/*
 [Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done logger
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done config:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uriMap:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done shm
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done workerEnv:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done lb:lb
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done channel.jni:jni
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done
 

RE: javax.naming.NameNotFoundException: Name blah.blahHome is not bound in this context

2004-01-23 Thread Filip Hanik
use your imagination on how you can store the properties in an xml file,
then read them before looking up the namespace, see my second option

Filip

-Original Message-
From: Walter Moore [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 6:31 AM
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name blah.blahHome is
not bound in this context


thanks. The spelling was the problem.

Is there a way to specify this in an xml file, so the application does 
not need to this,
but the system administrators can modify it when/if they move the app 
server?

thanks,
Walter Moore

Filip Hanik wrote:

I have added these parameters to tomcat (in catalina.bat):
-Djava.naming.provider.url=t3://lac-appserv.corp.fedex.com:7001
-Djava.naming.factory.intial=weblogic.jndi.WLInitialContextFactory



(check your spelling of ^ initial)

instead of adding these to catalina.bat, you may want to do this

Hashtable props = new Hashtable();
props.put(java.naming.provider.url,t3://lac-appserv.corp.fedex.c
om:7001)
;
props.put(java.naming.factory.initial,weblogic.jndi.WLInitialCon
textFacto
ry);
Context ctx = new InitialContext(props);

Filip



-
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/Tomcat Integration. Urgent!!

2004-01-23 Thread rohit chugh
Hi,
I am trying to integrate Apache 1.3 and Tomcat 4.0

The apache logs shows that it has started with mod_jk
and mod_ssl.However when i send a request for a
webapplication it gives errors saying page not found.
Apache log shows that it is trying to find the
application under htdocs
Following is the apache and tomcat configuration.
Any help would be highly appreciated.
Thanks in advance

//excerpt from the tomcat

LoadModule jk_module/opt/libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log 
JkLogLevel debug 

Include /home/tomcat4.1/conf/auto/mod_jk.conf
//-Tomcat
server.xml-

Server port=8005 shutdown=SHUTDOWN debug=0
Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=opt/libexec/mod_jk.so jkDebug=info

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
jkLog=/home/tomcat4.1/logs/mod_jk.log/

  !-- Comment these entries out to disable JMX MBeans
support --
  !-- You may also configure custom components (e.g.
Valves/Realms) by
   including your own mbean-descriptor file(s),
and setting the
   descriptors attribute to point to a ';'
seperated list of paths
   (in the ClassLoader sense) of files to add to
the default list.
   e.g.
descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  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

  !-- A Service is a collection of one or more
Connectors that share
   a single Container (and therefore the web
applications visible
   within that Container).  Normally, that
Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container,
so you may not
   define subcomponents such as Valves or
Loggers at this level.
   --

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

!-- A Connector represents an endpoint by which
requests are received
 and responses are returned.  Each Connector
passes requests on to the
 associated Container (normally an Engine)
for processing.

 By default, a non-SSL HTTP/1.1 Connector is
established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector
on port 8443 by
 following the instructions below and
uncommenting the second Connector
 entry.  SSL support requires the following
steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle
for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later,
and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias
tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias
tomcat -keyalg RSA  (Unix)
   with a password value of changeit for
both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a
web application calls
 request.getRemoteHost().  This can have an
adverse impact on
 performance, so you can disable it by setting
the
 enableLookups attribute to false.  When
DNS lookups are disabled,
 request.getRemoteHost() will return the
String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on
port 8080 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5
maxProcessors=75
   enableLookups=true
redirectPort=8443
   acceptCount=100 debug=0
connectionTimeout=2
   useURIValidationHack=false
disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set
connectionTimeout value
 to -1 --

!-- Define a SSL Coyote HTTP/1.1 Connector on
port 8443 --
!--
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5
maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 

I have a bundle of problems with Tomcat 4.1.29

2004-01-23 Thread Doyle, Daniel C
For starters, Tomcat is not autoDeploying my wars from the /webapps
directory. I looked at the class file in the war and the class file in
/DBTest/WEB-INF/classes/foo/DBTest.class. Here is my host line in
server.xml. It seems to be pointing at the webapps directory because I can
access my app through a browser. But for some reason, the war is not getting
deployed. In addition, I have tried to use the HTML manager to deploy the
app. I have hit reload several times and it seems to be redeloying the same
class because it is throwing the same exception, but it should be fixed in
the new version of the war.

 

Here are my host element and context element from server.xml: 

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

Context path=/DBTest docBase=DBTest debug=5 reloadable=true
crossContext=true

 

Thank you to anyone that can help me,

 

Dan Doyle



RE: Geomatica Webserver

2004-01-23 Thread Goehring, Chuck Mr., RCI - San Diego
Candyman,

If you don't want to develop and just want to set it and forget it, you may as well 
use the version and configuration the maker of Geomatica recommends. 

Chuck


-Original Message-
From: Candyman [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 7:50 PM
To: Tomcat Users List
Subject: Geomatica Webserver


Hi. I make some silly comments about Tomcat Apache, which
interpretation was incorrect. My native language is not english, so I
told it with the words that I find fast to express my dissapointment:(
The thing is I'm using Apache+Tomcat+Perl to run Geomatica Webserver.
And I have some specific problems whith v.5.* which I dont have with Tomcat 4.*
Does anybody have tryed to work with this server? I am not an J developer,
so my objective is install-configure-run. If anybody have expirience
to work with this server, any help will be useful. Maybe its errors of
this program but why it works well with versions 4 and doesnt works
well with 5?
Thank you in advance.


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


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



Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread Jeff Tulley
What are the contents of your auto-generated mod_jk.conf, and how do
they match the web application you are trying to access?
Also, it would be helpful to post the (relevant) contents of your
workers.properties file.

 [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
Hi,
I am trying to integrate Apache 1.3 and Tomcat 4.0

The apache logs shows that it has started with mod_jk
and mod_ssl.However when i send a request for a
webapplication it gives errors saying page not found.
Apache log shows that it is trying to find the
application under htdocs
Following is the apache and tomcat configuration.
Any help would be highly appreciated.
Thanks in advance

//excerpt from the tomcat

LoadModule jk_module/opt/libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log 
JkLogLevel debug 

Include /home/tomcat4.1/conf/auto/mod_jk.conf
//-Tomcat
server.xml-

Server port=8005 shutdown=SHUTDOWN debug=0
Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=opt/libexec/mod_jk.so jkDebug=info

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
jkLog=/home/tomcat4.1/logs/mod_jk.log/

  !-- Comment these entries out to disable JMX MBeans
support --
  !-- You may also configure custom components (e.g.
Valves/Realms) by
   including your own mbean-descriptor file(s),
and setting the
   descriptors attribute to point to a ';'
seperated list of paths
   (in the ClassLoader sense) of files to add to
the default list.
   e.g.
descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  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

  !-- A Service is a collection of one or more
Connectors that share
   a single Container (and therefore the web
applications visible
   within that Container).  Normally, that
Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container,
so you may not
   define subcomponents such as Valves or
Loggers at this level.
   --

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

!-- A Connector represents an endpoint by which
requests are received
 and responses are returned.  Each Connector
passes requests on to the
 associated Container (normally an Engine)
for processing.

 By default, a non-SSL HTTP/1.1 Connector is
established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector
on port 8443 by
 following the instructions below and
uncommenting the second Connector
 entry.  SSL support requires the following
steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle
for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later,
and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias
tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias
tomcat -keyalg RSA  (Unix)
   with a password value of changeit for
both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a
web application calls
 request.getRemoteHost().  This can have an
adverse impact on
 performance, so you can disable it by setting
the
 enableLookups attribute to false.  When
DNS lookups are disabled,
 request.getRemoteHost() will return the
String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on
port 8080 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5
maxProcessors=75
   enableLookups=true
redirectPort=8443
   acceptCount=100 debug=0
connectionTimeout=2
   useURIValidationHack=false
disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set
connectionTimeout value
 to -1 --

!-- 

Re: response commit question

2004-01-23 Thread Cindy Ballreich
At 09:07 AM 1/23/04 -0800, Cindy Ballreich wrote:

I just noticed that when I get the ServletResponse using 
pageContext.getResponse() in a custom tag, that the response 
seems to always be already committed. Is this always the 
case with tags or am I doing something wrong? I couldn't 
find any documentation that spells out the response-commit 
process. Could someone point me in the right direction?


I managed to answer my own question. The response is committed when something is 
written to the output page. 

I KNEW that!

Cindy

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



Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread rohit chugh
Hi,
Thanks for the reply.
The contents of the workers.properties are given
below, which i copied of the net.
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
-
The contents of mod_jk.conf are given below.

## Auto generated on Fri Jan 23 12:20:23 EST
2004##

IfModule !mod_jk.c
  LoadModule jk_module /opt/libexec/mod_jk.so
/IfModule

JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
ServerName localhost
JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost



--- Jeff Tulley [EMAIL PROTECTED] wrote:
 What are the contents of your auto-generated
 mod_jk.conf, and how do
 they match the web application you are trying to
 access?
 Also, it would be helpful to post the (relevant)
 contents of your
 workers.properties file.
 
  [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
 Hi,
 I am trying to integrate Apache 1.3 and Tomcat 4.0
 
 The apache logs shows that it has started with
 mod_jk
 and mod_ssl.However when i send a request for a
 webapplication it gives errors saying page not
 found.
 Apache log shows that it is trying to find the
 application under htdocs
 Following is the apache and tomcat configuration.
 Any help would be highly appreciated.
 Thanks in advance
 
 //excerpt from the tomcat
 
 LoadModule jk_module  /opt/libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile
 /home/tomcat4.1/conf/jk/workers.properties
 JkLogFile /home/tomcat4.1/logs/mod_jk.log 
 JkLogLevel debug 
 
 Include /home/tomcat4.1/conf/auto/mod_jk.conf
 //-Tomcat
 server.xml-
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=opt/libexec/mod_jk.so jkDebug=info
 

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
   jkLog=/home/tomcat4.1/logs/mod_jk.log/
 
   !-- Comment these entries out to disable JMX
 MBeans
 support --
   !-- You may also configure custom components
 (e.g.
 Valves/Realms) by
including your own mbean-descriptor file(s),
 and setting the
descriptors attribute to point to a ';'
 seperated list of paths
(in the ClassLoader sense) of files to add to
 the default list.
e.g.

descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
   --
   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
 
   !-- A Service is a collection of one or more
 Connectors that share
a single Container (and therefore the web
 applications visible
within that Container).  Normally, that
 Container is an Engine,
but this is not required.
 
Note:  A Service is not itself a
 Container,
 so you may not
define subcomponents such as Valves or
 Loggers at this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by
 which
 requests are received
  and responses are returned.  Each Connector
 passes requests on to the
  associated Container (normally an Engine)
 for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is
 established on port 8080.
  You can also enable an SSL HTTP/1.1
 Connector
 on port 8443 by
  following the instructions below and
 uncommenting the second Connector
  entry.  SSL support requires the following
 steps (see the SSL Config
  HOWTO in the Tomcat 4.0 documentation
 bundle
 for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later,
 and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  

help me to use tag

2004-01-23 Thread xavier manohar
Hello ,
 I am a new user of tomcat 4.1.29. can any one pls help me use a tag and the 
necessary modifications to be made in the conf file
regards 
mano
 

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Re: I have a bundle of problems with Tomcat 4.1.29

2004-01-23 Thread rohit chugh
There could be problem with the structure of your .war
file.
What is the structure of your .war files


--- Doyle, Daniel C [EMAIL PROTECTED]
wrote:
 For starters, Tomcat is not autoDeploying my wars
 from the /webapps
 directory. I looked at the class file in the war and
 the class file in
 /DBTest/WEB-INF/classes/foo/DBTest.class. Here is my
 host line in
 server.xml. It seems to be pointing at the webapps
 directory because I can
 access my app through a browser. But for some
 reason, the war is not getting
 deployed. In addition, I have tried to use the HTML
 manager to deploy the
 app. I have hit reload several times and it seems to
 be redeloying the same
 class because it is throwing the same exception, but
 it should be fixed in
 the new version of the war.
 
  
 
 Here are my host element and context element from
 server.xml: 
 
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true
 autoDeploy=true
 
 Context path=/DBTest docBase=DBTest debug=5
 reloadable=true
 crossContext=true
 
  
 
 Thank you to anyone that can help me,
 
  
 
 Dan Doyle
 
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: tomcat5 in-process (more info for you guys)

2004-01-23 Thread Hamilton Andrew
I'm attempting this on a Linux machine and I keep getting this:

INFO:  APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

I followed the install directions and put the jkjni.so file in
$APACHE_HOME/modules.  Can anyone help me with this?

Thanks,

Drew

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 12:53 PM
To: Tomcat Users List
Subject: Re: tomcat5 in-process (more info for you guys)


now that I have apache started without error
and it would appear that it has tomcat started in-process  (maybe)
I went to a cmd line to start tomcat and received an error that port 8005
is already in use, which a netstat proves to be true.
the only place that port 8005 is configured to be used is in server.xml
for tomcat.   therefore, this lends some credence to the logic that
apache is starting tomcat in-process.
But... apache cannot talk to it.  Why-not?
I still believe it must have something to do with a lack of a connector.

Now when I surf to my uri's and get the 500 server failure the log shows
this.
notice on the second attempt that it 'reenable'd ajp13:jni.
this is not something that I have configured. must be a default.  h...

[Fri Jan 23 11:37:02 2004] [notice] shm.createSlot() Create 1 0x64
0x642000
[Fri Jan 23 11:37:02 2004] [notice] workerEnv.init() create slot epStat.0
[Fri Jan 23 11:37:02 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:37:02 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:37:02 2004] [notice] vm.detach() ok
[Fri Jan 23 11:37:02 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Fri Jan 23 11:39:03 2004] [error] lb.getWorker() reenable ajp13:jni
[Fri Jan 23 11:39:03 2004] [notice] lb.getWorker() All workers in error
state, use the one with oldest error
[Fri Jan 23 11:39:03 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:39:03 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:39:04 2004] [notice] vm.detach() ok
[Fri Jan 23 11:39:04 2004] [error] mod_jk.handler() Error connecting to
tomcat 12


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 11:36 AM
Subject: RE: tomcat5 in-process (more info for you guys)


 Phil,
 here is the code related to your error

  rc = worker-service(env, worker, s);
  []
  rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
 if( rc1 == JK_OK ) {
 rPool=NULL;
 }
 if( rPool!=NULL ) {
 rPool-close(env, rPool);
 }

 if(rc==JK_OK) {
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return OK;/* NOT r-status, even if it has changed. */
 }
 env-l-jkLog(env, env-l, JK_LOG_ERROR,
   mod_jk.handler() Error connecting to tomcat %d\n, rc);
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return 500;

 the worker is derived from the apache pool of workers (i think), so I'd
need
 to
 look at the worker code to make more sense of it..worker-service(env,
 worker, s) is
 returning something else other than the equivalent of JK_OK, so this is
 where it fails..
 Dig in the source code for workers, it might help..The lad who wrote
mod_jk2
 is also
 frequenting the list so he might be able to enlighten us on the specifics
:)

 Yiannis.
 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 17:12
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: tomcat5 in-process (more info for you guys)


 here is my error.log file from just a few minutes ago when I started
apache

 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onStartup
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onShutdown
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/servlets-examples/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/jsp-examples/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/tomcat-docs/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done status:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/*
 [Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432
 [Fri Jan 23 

Problems TOMCAT / SSL activation

2004-01-23 Thread Shockley, Gerard C
Title: Message



I'm attempting to enable SSL 
with Tomcat 4 -
I'm getting an exception 
pointing to an issue with JSSE-

Caused by: java.lang.NoClassDefFoundError: 
com/sun/net/ssl/SSLContext

I'm using 

usl0:/opt/IBMJava2-s390-141/bin # ./java -versionjava version 
"1.4.1"Java(TM) 2 Runtime Environment, Standard Edition (build 
1.4.1)Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cx390141-20030522 (JIT 
enabled: jitc))usl0:/opt/IBMJava2-s390-141/bin 
#
On z/Series Linux SuSE 8 
and I thought I did not need to install JSSE?

HELP?




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

Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread Jeff Tulley
Your worker name does not match the name in the generated mod_jk.conf. 
That file wants the worker name to be ajp13, whereas yours is named
testWorker.

Change that and restart apache and see what happens.

 [EMAIL PROTECTED] 1/23/04 12:00:40 PM 
Hi,
Thanks for the reply.
The contents of the workers.properties are given
below, which i copied of the net.
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
-
The contents of mod_jk.conf are given below.

## Auto generated on Fri Jan 23 12:20:23 EST
2004##

IfModule !mod_jk.c
  LoadModule jk_module /opt/libexec/mod_jk.so
/IfModule

JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
ServerName localhost
JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost



--- Jeff Tulley [EMAIL PROTECTED] wrote:
 What are the contents of your auto-generated
 mod_jk.conf, and how do
 they match the web application you are trying to
 access?
 Also, it would be helpful to post the (relevant)
 contents of your
 workers.properties file.
 
  [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
 Hi,
 I am trying to integrate Apache 1.3 and Tomcat 4.0
 
 The apache logs shows that it has started with
 mod_jk
 and mod_ssl.However when i send a request for a
 webapplication it gives errors saying page not
 found.
 Apache log shows that it is trying to find the
 application under htdocs
 Following is the apache and tomcat configuration.
 Any help would be highly appreciated.
 Thanks in advance
 
 //excerpt from the tomcat
 
 LoadModule jk_module  /opt/libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile
 /home/tomcat4.1/conf/jk/workers.properties
 JkLogFile /home/tomcat4.1/logs/mod_jk.log 
 JkLogLevel debug 
 
 Include /home/tomcat4.1/conf/auto/mod_jk.conf
 //-Tomcat
 server.xml-
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=opt/libexec/mod_jk.so jkDebug=info
 

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
   jkLog=/home/tomcat4.1/logs/mod_jk.log/
 
   !-- Comment these entries out to disable JMX
 MBeans
 support --
   !-- You may also configure custom components
 (e.g.
 Valves/Realms) by
including your own mbean-descriptor file(s),
 and setting the
descriptors attribute to point to a ';'
 seperated list of paths
(in the ClassLoader sense) of files to add to
 the default list.
e.g.

descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
   --
   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
 
   !-- A Service is a collection of one or more
 Connectors that share
a single Container (and therefore the web
 applications visible
within that Container).  Normally, that
 Container is an Engine,
but this is not required.
 
Note:  A Service is not itself a
 Container,
 so you may not
define subcomponents such as Valves or
 Loggers at this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by
 which
 requests are received
  and responses are returned.  Each Connector
 passes requests on to the
  associated Container (normally an Engine)
 for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is
 established on port 8080.
  You can also enable an SSL HTTP/1.1
 Connector
 on port 8443 by
  following the instructions below and
 uncommenting the second Connector
  entry.  SSL support requires the following
 steps (see the SSL Config
  HOWTO in the 

  1   2   >