NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Leonard Wolters
Hi,

I've got a question concerning the different REALM available for Tomcat 5.x.
The main (basic) question is that I want to secure my context annex websites
/ jsp
pages. I have some experience with JAAS (JBOSS) and was investigating the
possibility
to use / implement JAAS for Tomcat. After some efforts I stopped since I to
noticed it
would take me to much pain ;-( (I needed to create to much source code hence
it would
take me to much time).

Then I investigated the JDBC Realm and was trying to use this for securing
my website.
The question: Tomcat 5 delivers a pre-installed security JSP example
(/jsp-examples/security/protected) which (as stated in the documentation)
only works with
the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
own implementation)
as well.

Does anyone can provide me some configurations of how to achieve this ?
Basically, I think
I need to change the default JNDI UserBase (MemoryRealm) with my own one
(JDBCRealm for example).
However, is this the only thing I need to do ? If so, please provide me a
server.xml configuration

T.i.a,

Leonard

Leonard Wolters

JTeam B.V.
E: [EMAIL PROTECTED]
T: +31(0)20 486 20 36
M: +31(0)6 24 111 401
F: +31(0)8 48 370 000
W: www.jteam.nl


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



Re: HELP!

2004-03-23 Thread Bill Barker
Well, this is really more of a mod_joke question than a Tomcat 3 question
(seeing that Ms Clark seems to have Apache and Tomcat talking already :).

With as little as I know about the configuration, it looks like you want to
add something like:
  JkMount /*.bar ajp13
The usual reason to get unprocessed files with Apache+Tomcat is that Apache
doesn't know enough to send the file to Tomcat, and serves it itself.

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

Hi,

After spending a lot of time just trying to do a simple thing like
configure Tomcat 3.2 to work with Apache 1.3, I'm beginning to rethink
using Tomcat! Here is my question.

I don't have an answer for your question, but a couple of tips:
- There aren't as many people using Tomcat 3.x on this list.  You will
get significantly more support (though not necessarily higher quality
support, as Senor Barker [Tomcat 3.x guru] is da man) if you use tomcat
4 or 5.

- Connecting Apache to Tomcat isn't necessarily a simple thing as you
claim, depending on your setup.  For example, it sounds like you're
throwing in a redirection or two as well.

- Using HELP! as a subject line is likely to make people ignore your
post as a newbie/whiny request: try a more descriptive subject line and
remember the points brought forth on
http://jakarta.apache.org/tomcat/faq/tomcatuser.html.

- There won't be much people can tell you about your problem unless you
post the relevant setup filers, e.g. server.xml/workers.properties, etc.

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: caching static objects

2004-03-23 Thread Ronald Wildenberg
 We are running Tomcat-standalone and are having some caching 
 issues. It
 appears to be a browser issue, but there's got to be some workaround.
 We've got the headers set to pragma nocache, but it continues to cache
 objects, such as charts that are created dynamically. I suppose this
 wouldn't be an issue if the code worked with Apache. Also, creating
 unique identifiers for each object has been shot down. Does 
 anyone know
 of a way to get server.xml to set each object not to cache? Thanks.
 


The 'Pragma' header you use is from HTTP/1.0. Most caches, including
browser cache, by now use HTTP/1.1, where cache control is achieved
differently. You should use 'Cache-Control' headers (although it never
hurts to also use 'Pragma' headers, in case you encounter an older
HTTP/1.0 cache).

For more information you can look at the HTTP/1.1 RFC at:

   ftp://ftp.isi.edu/in-notes/rfc2616.txt

and search for the text 'Cache-Control'.


Regards, Ronald.

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



RE: Tomcat windows service

2004-03-23 Thread Andi Reinbrech
You need to set the ImagePath variable in the service parameters and
re-install the service.

-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2004 03:06 AM
To: Tomcat user list
Subject: Tomcat windows service

How do I set the classpath for Tomcat when it runs as a service? I can do it
in setclasspath.bat when I run it stand-alone, but this is not what I want
to do


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

**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the 
individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the 
sender immediately by email, facsimile 
or telephone and destroy the original message.
**

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



Re: Context mapping and war

2004-03-23 Thread Martin Monsorno
Jesse Vitrone [EMAIL PROTECTED] writes:

 So in TC5, the conext is part of the war file, and I don't need to do
 anything separate?  All that info can be in the war file?

In TC5, you can define the context in a special file 
in conf/Catalina/localhost/webapp.xml.  With this, everything
works as wanted.

-- 
Martin

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



Tomcat dies with no error.

2004-03-23 Thread Adam Brundrett
We are using Tomcat 4.1.29 on a Solaris 9 x86 web server (dual 3GHz 
Zeons) with 2gb RAM. 

Twice now Tomcat, which has been happily running under light load (only 
a couple of users currently) has simply stopped.  One second it is 
working, the next it is not.  No crashes, no error messages, no log 
entries beyond the usual removing application at context path x 
which are written to the localhost log when the server is shutting 
down.  It's almost as if the shutdown.sh script has been run automatically.

I can't see any reason why this should be happening and with no error 
messages or log entries to go on, I'm at a bit of a loss as to where to 
start!  A thorough Googling turned up nothing relevant.  The unix server 
logs show nothing other than the frantic emailing that occurred around 
the time of tomcat's demise.  After the first time Tomcat quit for no 
reason, I set up a script to monitor Tomcat and mail me if the process 
vanished.

Any ideas?

Adam.



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


AW: Tomcat dies with no error.

2004-03-23 Thread Nitschke Michael
This looks like there is somewhere an System.exit() hidden in your code.

-Ursprüngliche Nachricht-
Von: Adam Brundrett [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 23. März 2004 10:18
An: [EMAIL PROTECTED]
Betreff: Tomcat dies with no error.

We are using Tomcat 4.1.29 on a Solaris 9 x86 web server (dual 3GHz 
Zeons) with 2gb RAM. 

Twice now Tomcat, which has been happily running under light load (only 
a couple of users currently) has simply stopped.  One second it is 
working, the next it is not.  No crashes, no error messages, no log 
entries beyond the usual removing application at context path x 
which are written to the localhost log when the server is shutting 
down.  It's almost as if the shutdown.sh script has been run automatically.

I can't see any reason why this should be happening and with no error 
messages or log entries to go on, I'm at a bit of a loss as to where to 
start!  A thorough Googling turned up nothing relevant.  The unix server 
logs show nothing other than the frantic emailing that occurred around 
the time of tomcat's demise.  After the first time Tomcat quit for no 
reason, I set up a script to monitor Tomcat and mail me if the process 
vanished.

Any ideas?

Adam.



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



AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Marco Pöhler
Hi Leonard,

this works for me:

  Context path= docBase=/home/user1/trustedfeed debug=0
  ResourceLink name=jdbc/db global=jdbc/db
type=javax.sql.DataSource /
  Realm className=org.apache.catalina.realm.DataSourceRealm
debug=99
  dataSourceName=jdbc/db
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=roles roleNameCol=rolename/
  /Context

Of course, you have to define the jdbc/db Datasource in the
GlobalNamingResources, too.

hth

Marco

---
http://www.optik-preisvergleich.de
http://www.kontaktlinsen-preisvergleich.de


 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 09:22
 An: [EMAIL PROTECTED]
 Betreff: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi,

 I've got a question concerning the different REALM available for
 Tomcat 5.x.
 The main (basic) question is that I want to secure my context
 annex websites
 / jsp
 pages. I have some experience with JAAS (JBOSS) and was investigating the
 possibility
 to use / implement JAAS for Tomcat. After some efforts I stopped
 since I to
 noticed it
 would take me to much pain ;-( (I needed to create to much source
 code hence
 it would
 take me to much time).

 Then I investigated the JDBC Realm and was trying to use this for securing
 my website.
 The question: Tomcat 5 delivers a pre-installed security JSP example
 (/jsp-examples/security/protected) which (as stated in the documentation)
 only works with
 the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
 own implementation)
 as well.

 Does anyone can provide me some configurations of how to achieve this ?
 Basically, I think
 I need to change the default JNDI UserBase (MemoryRealm) with my own one
 (JDBCRealm for example).
 However, is this the only thing I need to do ? If so, please provide me a
 server.xml configuration

 T.i.a,

 Leonard

 Leonard Wolters

 JTeam B.V.
 E: [EMAIL PROTECTED]
 T: +31(0)20 486 20 36
 M: +31(0)6 24 111 401
 F: +31(0)8 48 370 000
 W: www.jteam.nl


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



AW: java.lang.OutOfMemoryError

2004-03-23 Thread Marco Pöhler
Hi Neal,

I increased the JVM Memory with -Xmx300m - that seem to work. I checked the
heap status using the manager application and the memory usage after 2 days
is now up to 90 MB. But the growth has stopped. That seem to work.

Thanks !

Marco

---
http://www.lenses-price-comparison.com
http://www.optik-preisvergleich.de

 -Ursprüngliche Nachricht-
 Von: Neal [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 21. März 2004 21:33
 An: 'Tomcat Users List'
 Betreff: RE: java.lang.OutOfMemoryError


 I was having a similar problem with a similar configuration but was
 having to restart every day.  For some reason the exact same JDK/tomcat
 install on my windows dev box performed just fine under stress testing
 and reclaimed memory just fine whereas my Linux production box had
 serious issues.  I increased the memory from the default 64mb to 128mb
 on my linux server and now it is behaving just as the prod server does -
 its reclaiming memory in a similar healthy pattern. So, just try
 increasing the heap size to 128mb first and see if you're still having
 the same issue.  It seems to work some magic.

 Cheers.
 Neal

 -Original Message-
 From: Marco Pöhler [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 21, 2004 4:54 AM
 To: tomcat-user
 Subject: java.lang.OutOfMemoryError

 Hi,

 I'm running tomcat 5.0.19  J2SDK1.4.2_03 on a suse linux 8.1. I wrote a
 really simple application, just one servlet and a few jsp pages, using
 dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I
 have to
 restart the tomcat to fix the problem. Here is the log entry:

 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]:
 Servlet.service()
 for servlet mapperServlet threw exception
 java.lang.OutOfMemoryError

 Okay, I've investigated my source code for some kind of memory leak, but
 without any success. How can I found what the problem is ? Are there
 tools
 which can help me ?

 thanks in advance

 Marco Poehler

 ---
 http://www.poehlerpoehler.de



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


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





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



RE: Tomcat and Apache on diff m/c's

2004-03-23 Thread Dale, Matt

Are you trying to perhaps use JNI to connect them? Thats the only thing I can think of.

-Original Message-
From: Steven Perry [mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 06:16
To: [EMAIL PROTECTED]
Subject: Tomcat and Apache on diff m/c's


Hello all,

I've successfully configured and run Apache 2.x and
Tomcat 5.x on the same machine numerous times without
any hitch. But, I'm having problems configuring them
on different machines.

I tried to use load-balancing but it seems not to be
working. I would appareciate any help.

Thank you,
Steven.



__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Leonard Wolters
Thanks marco,


However, can I also set this datasource for the Engine
element ? (I thought I read something about a bug, although
I'm not quite sure).

Then, after I specified this new datasource in the either
context or engine element, how do i confiugre the UserDatabase
in the JNDI lookup ? For example:


GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database that can
be updated and saved
/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name

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

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

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true/

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 enableLookups=false redirectPort=8443 
debug=0
protocol=AJP/1.3/

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/build_jplanner
connectionName=*** connectionPassword=**
userTable=JT_USER userNameCol=LOGINNAME 
userCredCol=PASSWORD
userRoleTable=JT_GROUP roleNameCol=NAME/
Host name=localhost debug=0 appBase=webapps 
unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Logger 
className=org.apache.catalina.logger.FileLogger
directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
/Host
/Engine
/Service

How does the GlobalNamingResources relate to the REALM specified in the
engine element ? Can someone
tell me if the UserBase as specified in the GlobalNamingResources is being
used by for the JSP security
stuff ? (for example the /webapps/jsp-examples/security/protected/login.jsp)

T.i.a,

Leonard


-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 10:45 AM
To: Tomcat Users List
Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


Hi Leonard,

this works for me:

  Context path= docBase=/home/user1/trustedfeed debug=0
  ResourceLink name=jdbc/db global=jdbc/db
type=javax.sql.DataSource /
  Realm className=org.apache.catalina.realm.DataSourceRealm
debug=99
  dataSourceName=jdbc/db
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=roles roleNameCol=rolename/
  /Context

Of course, you have to define the jdbc/db Datasource in the
GlobalNamingResources, too.

hth

Marco

---
http://www.optik-preisvergleich.de
http://www.kontaktlinsen-preisvergleich.de


 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 09:22
 An: [EMAIL PROTECTED]
 Betreff: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi,

 I've got a question concerning the different REALM available for
 Tomcat 5.x.
 The main (basic) question is that I want to secure my context
 annex websites
 / jsp
 pages. I have some experience with JAAS (JBOSS) and was investigating the
 possibility
 to use / implement JAAS for Tomcat. After some efforts I stopped
 since I to
 noticed it
 would take me to much pain ;-( (I needed to create to much source
 code hence
 it would
 take me to much time).

 Then I investigated the JDBC Realm and was trying to use this for securing
 my website.
 The question: Tomcat 5 delivers a pre-installed security JSP example
 (/jsp-examples/security/protected) which (as stated in the documentation)
 only works with
 the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
 own implementation)
 as well.

 Does anyone can provide me some configurations of how to achieve this ?
 Basically, I think
 I need to change the default JNDI UserBase (MemoryRealm) with my own 

Re: AW: Tomcat dies with no error.

2004-03-23 Thread Adam Brundrett
Cheers michael,

We have had a look at the servlets and there is nothing evident.  We 
have also tried duplicating what happened according to the user log 
entries that get written and what the user told us he was up to when it 
happenedwith no luck in duplicating the problem.

Nitschke Michael wrote:

This looks like there is somewhere an System.exit() hidden in your code.

-Ursprüngliche Nachricht-
Von: Adam Brundrett [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 23. März 2004 10:18
An: [EMAIL PROTECTED]
Betreff: Tomcat dies with no error.

We are using Tomcat 4.1.29 on a Solaris 9 x86 web server (dual 3GHz 
Zeons) with 2gb RAM. 

Twice now Tomcat, which has been happily running under light load (only 
a couple of users currently) has simply stopped.  One second it is 
working, the next it is not.  No crashes, no error messages, no log 
entries beyond the usual removing application at context path x 
which are written to the localhost log when the server is shutting 
down.  It's almost as if the shutdown.sh script has been run automatically.

I can't see any reason why this should be happening and with no error 
messages or log entries to go on, I'm at a bit of a loss as to where to 
start!  A thorough Googling turned up nothing relevant.  The unix server 
logs show nothing other than the frantic emailing that occurred around 
the time of tomcat's demise.  After the first time Tomcat quit for no 
reason, I set up a script to monitor Tomcat and mail me if the process 
vanished.

Any ideas?

Adam.



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

--
***
Adam Brundrett
DBA/Software Engineer
MLC Development
Medical Research Council
Harwell
Oxon.
OX11 0RD
Email: [EMAIL PROTECTED] 
Tel: +44(0)1235 841253
***



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


RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Marco Pöhler
Hi,

 How does the GlobalNamingResources relate to the REALM specified in the
 engine element ? Can someone
 tell me if the UserBase as specified in the GlobalNamingResources is being
 used by for the JSP security
 stuff ? (for example the
 /webapps/jsp-examples/security/protected/login.jsp)

In my thoughts, a realm in the context (or engine) overwrites the global
realm. So if you have defined a security-constraint in your
localhost-applicaions web.xml the user and roles used there for access
control are taken from the database. The memory-realm /tomcat-users.xml
won't be used. The security-constraints in the web.xml looks like:

security-constraint
display-nameAdmin Authentication/display-name
web-resource-collection
web-resource-nameProtected Area/web-resource-name
url-pattern/*/url-pattern
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

hth.

Marco

---
http://www.druckerpatronen--preisvergleich.de
http://www.tintenpatronen-preisvergleich.de

 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 11:21
 An: Tomcat Users List
 Betreff: RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Thanks marco,


 However, can I also set this datasource for the Engine
 element ? (I thought I read something about a bug, although
 I'm not quite sure).

 Then, after I specified this new datasource in the either
 context or engine element, how do i confiugre the UserDatabase
 in the JNDI lookup ? For example:


   GlobalNamingResources
   Environment name=simpleValue
 type=java.lang.Integer value=30/
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase description=User
 database that can
 be updated and saved
   /Resource
   ResourceParams name=UserDatabase
   parameter
   namefactory/name

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

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

   !-- Define a non-SSL Coyote HTTP/1.1 Connector on
 port 8080 --
   Connector port=8080 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75 enableLookups=false redirectPort=8443
 acceptCount=100 debug=0 connectionTimeout=2
 disableUploadTimeout=true/

   !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector port=8009 enableLookups=false
 redirectPort=8443 debug=0
 protocol=AJP/1.3/

   !-- Define the top level container in our
 container hierarchy --
   Engine name=Catalina defaultHost=localhost debug=0
   Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true/
   Realm
 className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver

 connectionURL=jdbc:mysql://localhost/build_jplanner
 connectionName=*** connectionPassword=**
   userTable=JT_USER
 userNameCol=LOGINNAME userCredCol=PASSWORD
   userRoleTable=JT_GROUP
 roleNameCol=NAME/
   Host name=localhost debug=0
 appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
   Logger
 className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
   /Host
   /Engine
   /Service

 How does the GlobalNamingResources relate to the REALM specified in the
 engine element ? Can someone
 tell me if the UserBase as specified in the GlobalNamingResources is being
 used by for the JSP security
 stuff ? (for example the
 /webapps/jsp-examples/security/protected/login.jsp)

 T.i.a,

 Leonard


 -Original Message-
 From: Marco Pöhler [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 10:45 AM
 To: Tomcat Users List
 Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi Leonard,

 this works for me:

   Context path= docBase=/home/user1/trustedfeed debug=0
   ResourceLink name=jdbc/db global=jdbc/db
 type=javax.sql.DataSource /
   Realm className=org.apache.catalina.realm.DataSourceRealm
 debug=99
   dataSourceName=jdbc/db
   userTable=users 

Primo Censimento della Musica Italiana

2004-03-23 Thread [EMAIL PROTECTED]
 Grazie per aver scritto a  [EMAIL PROTECTED], il tuo messaggio è giunto a 
destinazione!

Approfittiamo per informarti che è nato all'indirizzo www.censimentomusica.it un nuovo 
progetto a carattere nazionale: Il I° Censimento Italiano della Musica .

Se non l'hai già fatto ti preghiamo di iscriverti!

Grazie

Lo Staff di
AttikMusic.com


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



Re: Primo Censimento della Musica Italiana

2004-03-23 Thread Adam Buglass
Que ?

On Tue, 2004-03-23 at 10:51, [EMAIL PROTECTED] wrote:
  Grazie per aver scritto a  [EMAIL PROTECTED], il tuo messaggio  giunto a 
 destinazione!
 
 Approfittiamo per informarti che  nato all'indirizzo www.censimentomusica.it un 
 nuovo progetto a carattere nazionale: Il I Censimento Italiano della Musica .
 
 Se non l'hai gi fatto ti preghiamo di iscriverti!
 
 Grazie
 
 Lo Staff di
 AttikMusic.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Adam Hardy
Leonard,
I went the other way. I wrote a login module for tomcat's JAAS 
implementation and recently found it relatively easy to adapt it to 
JBoss. However I see you're going down the JDBC route.

Adam

On 03/23/2004 09:22 AM Leonard Wolters wrote:
Hi,

I've got a question concerning the different REALM available for Tomcat 5.x.
The main (basic) question is that I want to secure my context annex websites
/ jsp
pages. I have some experience with JAAS (JBOSS) and was investigating the
possibility
to use / implement JAAS for Tomcat. After some efforts I stopped since I to
noticed it
would take me to much pain ;-( (I needed to create to much source code hence
it would
take me to much time).
Then I investigated the JDBC Realm and was trying to use this for securing
my website.
The question: Tomcat 5 delivers a pre-installed security JSP example
(/jsp-examples/security/protected) which (as stated in the documentation)
only works with
the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
own implementation)
as well.
Does anyone can provide me some configurations of how to achieve this ?
Basically, I think
I need to change the default JNDI UserBase (MemoryRealm) with my own one
(JDBCRealm for example).
However, is this the only thing I need to do ? If so, please provide me a
server.xml configuration
T.i.a,

Leonard

Leonard Wolters

JTeam B.V.
E: [EMAIL PROTECTED]
T: +31(0)20 486 20 36
M: +31(0)6 24 111 401
F: +31(0)8 48 370 000
W: www.jteam.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Help,error while trying to integrate apache and tomcat with jni

2004-03-23 Thread Zheng Neil
I tried hard these days to make tomcat and apache work together with jni
but only to find these in the [apache_home_dir]/logs/error_log
*
error_log
*
[Tue Mar 23 08:37:46 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.2
configure
d -- resuming normal operations
[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25455 in
scoreboa
rd
[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25456 in
scoreboa
rd
[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25457 in
scoreboa
rd
.and many many as this
Then my site(was served ok by apache) become unvisible
It seemed the apache child proccess was unable to startup,it starts and down 
immediately and it try again to start and ...

I am using Redhat linux 9.0,j2sdk1.4.2_03,apache 2.0.49 and tomcat 4.1.30
Here is my workers2.properties
***
workers2.properties
***
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[shm:]
disabled=1
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[vm:]
info=Parameters used to load a JVM in the server process
JVM=/usr/java/j2sdk1.4.2_03/jre/lib/i386/server/libjvm.so
classpath=/usr/tomcat/tomcat4/lib
OPT=-Dtomcat.home=/usr/tomcat/tomcat4
OPT=-Dcatalina.home=/usr/tomcat/tomcat4
OPT=-Xmx128M
disabled=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
ARG=start
disabled=0
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/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
disabled=0

[status:]
info=Status worker, displays runtime informations
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:/jsp-examples/*]
info=Map the whole webapp (for tomcat5)
And here is the jk2.properties
***
jk2.properties
***
handler.list=apr,request,channelJni
apr.jniModeSo=inprocess
the comments was ommited
I really don't know what to do, please help me.

_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://clk.atdmt.com/AVE/go/onm00200413ave/direct/01/

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


workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello,

I've searched the archives and docs, but so far haven't found any hints 
on this topic:

I am trying to install tomcat5 with apache 1.3 using the mod_jk connector.

On my test system I've got several virtual hosts. Do I have to create a 
separate worker for each virtual host?

E.g.:

worker.list= worker1, worker2, worker3

worker.worker1.type=ajp13
worker.worker1.host=host1.linuxstation2
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=host2.linuxstation2
worker.worker2.port=8009
worker.worker3.type=ajp13
worker.worker3.host=host3.linuxstation2
worker.worker3.port=8009
Any help is very much appreciated.

Sincerely

Michael Kastner

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


Re: Configuration Help

2004-03-23 Thread Adrian Lanning
Hi Dave,
Did you ever solve this problem?

Actually, 400 error is malformed syntax. Basically doesn't tell us much in
this situation besides configuration screwed up.

I don't use IIS so don't know how to from first-hand experience.  Searching
turns up stuff on connecting using jk rather than jk2.  Have you tried
getting jk to work?

Have you looked at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

Also try:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

hth,
Adrian



- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:15 AM
Subject: RE: Configuration Help


Adrian,

The 400 error is indicating that the page has been moved, server might not
be available... blah, blah

This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com

I think I'm close I just don't know what configuration change I need to make
at this point. I've been told that by mapping the isapi_redirector2.dll in
IIS it should work

There has to be someone else who is successfully using IIS and Tomcat 5 out
there

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.

Thanks,
Dave

-
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: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-23 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,

 

I don't see any session.cer file anywhere. $CATALINA_HOME/work, or
anywhere along the path
work/Catalina/localhost/chartms
   

Whoa ;)  Tomcat must be reading and deserializing the sessions from
somewhere, no?  Do you have a custom session manager (Manager element in
server.xml)?
 

No I am using the default out-of-the-box manager.  It worried me that I 
didn't see Session.ser (or whatever) anywhere which is what made me 
think I somehow
farkled the permissions.

Every class I have includes a line like this for logging

public final class UploadAction extends Action {
   private Log log = LogFactory.getLog(this.getClass());
   public ActionForward execute(
   .
This worked fine with tc4.  also I am using the latest log4j jar.  If 
this isn't quit right is there a more appropriate way to set the logger?

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]
 



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Login by parameters (no prompts)

2004-03-23 Thread Adrian Lanning
Hi Jonathan,
Did you solve your problem?

Earlier you asked if you could send two requests, one to log in and another
to download the stuff.  You absolutely can as this is how browsers work.
You just need to keep the session id that tomcat sends back in the header
once you log in and resend it in the header with your new request to
download.  Tomcat can't tell and doesn't care what kind of client you are
using.  I have done this before to make a mass upload desktop tool for a
webapp that only let users upload photos one-at-a-time.

I've never used wget so the next question is can you use wget with custom
headers?  Googling real quick I found you can tell wget to save the cookies
like this:
  wget --keep-session-cookies --save-cookies login.txt PAGE-URL
Since it lets you save the cookies, I'm sure there's a way to use the
cookies again...

If you don't want to do that and you are still having problems you could do
your own authentication rather than container-based.  I mean let all
requests come through as far as Tomcat is concerned but then validate
against a session var in your webapp.  Then you can set up your app to check
for GET vars as well as POST vars (ie. check with
request.getParameter(...) too).  Try JPetStore 3 by Clinton Begin
(www.ibatis.com) as a reference if you've never done this before.  I haven't
tried version 4 yet so don't know if it uses container-based authentication
or not.

hth,
Adrian Lanning



- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 7:21 PM
Subject: Re: Login by parameters (no prompts)


  I don't think so.  The server doesn't care what is requesting the file
  (wget, curl, lynx, Mozilla, Netscape, IE, etc, ...) -- just as long as
  it's a valid request.  Your options are still open there.

 This is true.  Although the means of getting the username and password
 into the request is the crux of the problem.  That is where I need a
 solution.  If you are saying that every client will have its own method of
 achieving this, then I agree.  Except that we still haven't established
 that Tomcat will handle it properly using FORM authentication.

  What you might actually be looking at is designing an app to take a
 couple of
  authentication methods (basic  form) depending on the client and just
  send back the file.

 Are you suggesting a second web container that will only handle
 programmatic downloads?  I don't think that the company will go for that
 solution.  If this is not your suggestion, then I assume we are talking
 about configuring Tomcat to handle both types (FORM and BASIC) at the same
 time.  I haven't figured out how to do that.

 Thanks for all the time you're putting into this.  I appreciate it.
 Jonathan.





 David Smith [EMAIL PROTECTED]
 03/22/2004 04:19 PM
 Please respond to Tomcat Users List

 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: Login by parameters (no prompts)


 I don't think so.  The server doesn't care what is requesting the file
 (wget, curl, lynx, Mozilla, Netscape, IE, etc, ...) -- just as long as
 it's a valid request.  Your options are still open there.  What you
 might actually be looking at is designing an app to take a couple of
 authentication methods (basic  form) depending on the client and just
 send back the file.

 As far as wget is concerned, take a look at the man pages for it or even
 curl.  Corporate policy shouldn't prohibit it given it does the same
 thing your Netscape or IE is doing, but then again all my work
 experience is at a university.  I have no idea what a corporate
 environment would be like.  I'm not a student - those lucky dogs are on
 Spring Break now :-(.

 --David

 [EMAIL PROTECTED] wrote:

 Yeah, that might work (we'd have to test it).  However, this implies that


 we tie ourselves to WGET as a client app, which we cannot do.  The
 customer controls his own infrastructure and may not have WGET (he might
 be on one of the many Windows platforms out there) or may have a
 corporate
 policy that prohibits the use of WGET.  The same is true of any possible
 client app.  They may even have written their own solution for polling
 the
 downloadable data (as I've seen done in the past).
 
 *sigh*  The best solution would be to authenticate and download in a
 single request.  But how?
 
 Thanks.
 Jonathan.
 
 
 
 
 
 David Smith [EMAIL PROTECTED]
 03/22/2004 03:04 PM
 Please respond to Tomcat Users List
 
 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: Login by parameters (no prompts)
 
 
 I was just looking through the man page for wget.  It looks like you
 have the option of using --http-user=... and --http-passwd=... on the
 command line.  Wget will use BASIC or Digest depending on what the
 server wants.  Is that anything you might be able to use?
 
 --David
 
 [EMAIL PROTECTED] wrote:
 
 
 
 Generally, David, I would agree with you about 

Re: Struts 1.1 +Tomcat 4.0.4 -- RequestProcessor - Exception

2004-03-23 Thread Adrian Lanning
Hi,
You might have more luck with this in the struts-user mailing list.

Are you using a custom request processor?  If so did you extend
org.apache.struts.action.RequestProcessor or
org.apache.struts.tiles.TilesRequestProcessor?

Adrian


- Original Message - 
From: Namasivayam, Sudhakar (Cognizant) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 12:27 AM
Subject: Struts 1.1 +Tomcat 4.0.4 -- RequestProcessor - Exception




Hi all,

This error happens only in Tomcat 4.0  and not Tomcat 5.0.19 in Linux 7.0.
Am i missing any library files? I have put the latest library files. I did
find similar mail in the struts archives but no response to that...  Or is
this the problem with my manager webapp?

  I do not get Class cast exception message when i stop and start the
webapp. Only when a action is invoked this exception occurs!!
Both the times( stop-start   and   action.do ) it is trying to get the same
RequestProcessor object but the second time it throws an error.

If i insert a try catch block in the ActionServlet class,it works fine...
Can any one explain me why this exception occurs?
I did  verify that  getServletContext().getAttribute(key);  in
ActionServlet.java:855 returns a RequestProcessor object.
Pls find the log and my server.xml at the end of the mail.

Thanks in advance,
Sudhakar


 2004-03-22 15:18:09 Manager: start: Starting web application at '/sfpsr2'
 2004-03-22 15:18:09 StandardHost[localhost]: standardHost.start /sfpsr2
 2004-03-22 15:18:09 StandardContext[/sfpsr2]: Configuring ProxyDirContext
[EMAIL PROTECTED]
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploying class repositories to
work directory /usr/local/tomcat4.0.4/work/Agent8050/localhost/sfpsr2
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/activation.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/activation.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/classes12.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/classes12.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-beanutils.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-collections.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-dbcp-1.1.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-dbcp-1.1.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-digester.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-fileupload.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-fileupload.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-lang.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-lang.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-logging.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-logging1.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-logging1.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/commons-validator.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/jakarta-oro.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/log4j-1.2.8.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/log4j-1.2.8.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR /WEB-INF/lib/mail.jar
to /usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/mail.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/servlet.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/servlet.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/struts.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/struts.jar
 2004-03-22 15:18:09 WebappLoader[/sfpsr2]: Deploy JAR
/WEB-INF/lib/struts2.jar to
/usr/local/tomcat4.0.4/webapps/sfpsr2/WEB-INF/lib/struts2.jar
 2004-03-22 15:18:09 StandardManager[/sfpsr2]: Seeding random number
generator class java.security.SecureRandom
 2004-03-22 15:18:09 StandardManager[/sfpsr2]: Seeding of random number
generator has been completed
 2004-03-22 15:18:10 ContextConfig[/sfpsr2]: Added certificates - request
attribute Valve
 2004-03-22 15:18:10 Initializing application variables
 2004-03-22 15:18:11 StandardWrapper[/sfpsr2:default]: Loading container
servlet default
 2004-03-22 15:18:11 default: init
 2004-03-22 15:18:11 jsp: init
 2004-03-22 15:18:12 StandardWrapper[/sfpsr2:ssi]: Loading container servlet
ssi
 2004-03-22 15:18:12 ssi: 

RE: Tomcat Deployment with JBuilder

2004-03-23 Thread LILES, DAVID (CONTRACTOR)
Have you tried using Ant? That way you can build your web app the way you like...

-Original Message-
From: Kayley Ma [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:51 PM
To: Tomcat Users List
Subject: Tomcat Deployment with JBuilder


Hi,

Just wondering if there are any tips on using JBuilder to create a
WebApplication which generates a WAR that can be deployed into Tomcat5 so
that an application can be deployed.

I think JBuilder organizes and creates a structure that is different than
the specified structure for Tomcat5 deployment... when I try to manually
include class files to the WEB-INF/classes folder, I notice that once I
rebuild in JBuilder, the classes that I manually add in disappear...

how can I modify the Jbuilder autoformat for a WebApplication compatible for
Tomcat Deployment use?

Thank you,
Kayley



-
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: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-23 Thread Shapira, Yoav

Hi,

No I am using the default out-of-the-box manager.  It worried me that I
didn't see Session.ser (or whatever) anywhere which is what made me
think I somehow
farkled the permissions.

I mispelled the file name, it's sessions.ser as others have pointed out.
(Don't delete .cer files if you have them, as they might be security
certificates, that's what I had in mind when writing my message, too
much multitasking on my part ;))

public final class UploadAction extends Action {
private Log log = LogFactory.getLog(this.getClass());

Make it static.  Someone else pointed out how the above will lead to
your error: Log (the commons-logging interface) may have
non-serializable implementations, making UploadAction itself not
serializable, and therefore not suitable as a session attribute.

Tomcat 5 is more restrictive about enforcing serializable session
attributes than tomcat 4 was.

When you make it static you can't use the this.getClass() construct
unfortunately.  You can use private static Log log =
LogFactory.getLog(UploadAction.class).

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: AW: Tomcat dies with no error.

2004-03-23 Thread Shapira, Yoav

Hi,
Are there core or hs_err_pid ( being the process ID) files around your tomcat 
installation?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Adam Brundrett [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 5:17 AM
To: Tomcat Users List
Subject: Re: AW: Tomcat dies with no error.

Cheers michael,

We have had a look at the servlets and there is nothing evident.  We
have also tried duplicating what happened according to the user log
entries that get written and what the user told us he was up to when it
happenedwith no luck in duplicating the problem.


Nitschke Michael wrote:

This looks like there is somewhere an System.exit() hidden in your code.

-Ursprüngliche Nachricht-
Von: Adam Brundrett [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 23. März 2004 10:18
An: [EMAIL PROTECTED]
Betreff: Tomcat dies with no error.

We are using Tomcat 4.1.29 on a Solaris 9 x86 web server (dual 3GHz
Zeons) with 2gb RAM.

Twice now Tomcat, which has been happily running under light load (only
a couple of users currently) has simply stopped.  One second it is
working, the next it is not.  No crashes, no error messages, no log
entries beyond the usual removing application at context path x
which are written to the localhost log when the server is shutting
down.  It's almost as if the shutdown.sh script has been run
automatically.

I can't see any reason why this should be happening and with no error
messages or log entries to go on, I'm at a bit of a loss as to where to
start!  A thorough Googling turned up nothing relevant.  The unix server
logs show nothing other than the frantic emailing that occurred around
the time of tomcat's demise.  After the first time Tomcat quit for no
reason, I set up a script to monitor Tomcat and mail me if the process
vanished.

Any ideas?

Adam.



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




--
***
Adam Brundrett
DBA/Software Engineer
MLC Development
Medical Research Council
Harwell
Oxon.
OX11 0RD

Email: [EMAIL PROTECTED]
Tel: +44(0)1235 841253
***



-
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: Broken Pipe (continued) - Thread Dump Results

2004-03-23 Thread Shapira, Yoav

Hola,

I did a thread dump (SIG-QUIT) on both the JRun and Tomcat environments
during the refresh button load test and the differences are
significant.

The differences in internal thread management between any two servers
are likely to be significant.

Tomcat:  Java CPU% exceeds 80%.  Site becomes unusable.  Thread dump
yields approximately 70 threads, just over half are waiting for the DB.

Maybe a connection pool problem?

I realize this test and its methodology are somewhat arbitrary, but can
ANYONE explain what Tomcat (with mod_jk or mod_jk2) is doing with its
thread management with excessive broken pipes and why the threads pile
up out of control?

Can you provide a webapp and test script for us to reproduce your
results?

PS.  I presumed it was bad form to attach documents, but I do have
thread dumps available if anyone is willing to take a gander.

Not necessarily bad form, but the list won't allow most attachment
types.  Snip the relevant parts of the tomcat thread dump (the JRun is
useless, as the servers are completely different) and post it as a
normal message, not an attachment.

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: Configuration Help

2004-03-23 Thread LILES, DAVID (CONTRACTOR)
Thanks for the links below. I've been looking at anything I can find and as far as I 
can tell, I have IIS configured to support Tomcat.

The following link serves the web app I'm trying to configure, but it only serves it 
from the ip address and not the URL

http://66.80.144.156/dynamichostings

I'm trying to get it to work from this url: http://dev.dynamichostings.com

I'm almost 100% positive it has something to do with the server.xml file because if my 
IIS wasn't configured correctly, the first url example wouldn't work.

I've even tried to contact the support people at JBoss but they wouldn't talk with me 
unless I purchased either a $5K or $10K support package

This shouldn't be this difficult to get working

-Dave

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:30 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hi Dave,
Did you ever solve this problem?

Actually, 400 error is malformed syntax. Basically doesn't tell us much in
this situation besides configuration screwed up.

I don't use IIS so don't know how to from first-hand experience.  Searching
turns up stuff on connecting using jk rather than jk2.  Have you tried
getting jk to work?

Have you looked at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

Also try:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

hth,
Adrian



- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:15 AM
Subject: RE: Configuration Help


Adrian,

The 400 error is indicating that the page has been moved, server might not
be available... blah, blah

This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com

I think I'm close I just don't know what configuration change I need to make
at this point. I've been told that by mapping the isapi_redirector2.dll in
IIS it should work

There has to be someone else who is successfully using IIS and Tomcat 5 out
there

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.

Thanks,
Dave

-
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: Configuration Help

2004-03-23 Thread Zheng Neil
Hi,
I got the same problem when i config the iis6 with tomcat5 using mod_jk2,but 
i can't remember how it happened.
However, i do remember i followed the instructions on the following page,and 
the problem was solved.
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html


From: Adrian Lanning [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Configuration Help
Date: Tue, 23 Mar 2004 08:29:43 -0500
Hi Dave,
Did you ever solve this problem?
Actually, 400 error is malformed syntax. Basically doesn't tell us much in
this situation besides configuration screwed up.
I don't use IIS so don't know how to from first-hand experience.  Searching
turns up stuff on connecting using jk rather than jk2.  Have you tried
getting jk to work?
Have you looked at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
Also try:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
hth,
Adrian


- Original Message -
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:15 AM
Subject: RE: Configuration Help
Adrian,

The 400 error is indicating that the page has been moved, server might not
be available... blah, blah
This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com
I think I'm close I just don't know what configuration change I need to 
make
at this point. I've been told that by mapping the isapi_redirector2.dll in
IIS it should work

There has to be someone else who is successfully using IIS and Tomcat 5 out
there
-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help
Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?
Adrian

- Original Message -
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help
For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...
I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.
In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.
Can anyone help explain what I need to do in order to access the web app by
the URL?
In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.
Thanks,
Dave
-
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]
_
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
(Limited-time offer) http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/

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


Re: Tomcat Deployment with JBuilder

2004-03-23 Thread k2ma


I'm a newbie so I don't know ant at all is there a way i can do in from the 
automatic generate and build in JBuilder?

thanks,
~Kayley~ 
- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:01 AM
Subject: RE: Tomcat Deployment with JBuilder


 Have you tried using Ant? That way you can build your web app the way you 
like...
 
 -Original Message-
 From: Kayley Ma [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 10:51 PM
 To: Tomcat Users List
 Subject: Tomcat Deployment with JBuilder
 
 
 Hi,
 
 Just wondering if there are any tips on using JBuilder to create a
 WebApplication which generates a WAR that can be deployed into Tomcat5 so
 that an application can be deployed.
 
 I think JBuilder organizes and creates a structure that is different than
 the specified structure for Tomcat5 deployment... when I try to manually
 include class files to the WEB-INF/classes folder, I notice that once I
 rebuild in JBuilder, the classes that I manually add in disappear...
 
 how can I modify the Jbuilder autoformat for a WebApplication compatible for
 Tomcat Deployment use?
 
 Thank you,
 Kayley
 
 
 
 -
 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 mail sent through www.mywaterloo.ca

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



RE: Tomcat Deployment with JBuilder

2004-03-23 Thread LILES, DAVID (CONTRACTOR)
You can build your WAR file in JBuilder. Verify your web app structure in JBuilder by 
viewing the properties and make sure you're getting everything you want.

As for Ant, it isn't as difficult as you might think and once you start using it you 
might actually prefer it over the IDE build process.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:21 AM
To: Tomcat Users List
Subject: Re: Tomcat Deployment with JBuilder




I'm a newbie so I don't know ant at all is there a way i can do in from the 
automatic generate and build in JBuilder?

thanks,
~Kayley~ 
- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:01 AM
Subject: RE: Tomcat Deployment with JBuilder


 Have you tried using Ant? That way you can build your web app the way you 
like...
 
 -Original Message-
 From: Kayley Ma [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 10:51 PM
 To: Tomcat Users List
 Subject: Tomcat Deployment with JBuilder
 
 
 Hi,
 
 Just wondering if there are any tips on using JBuilder to create a
 WebApplication which generates a WAR that can be deployed into Tomcat5 so
 that an application can be deployed.
 
 I think JBuilder organizes and creates a structure that is different than
 the specified structure for Tomcat5 deployment... when I try to manually
 include class files to the WEB-INF/classes folder, I notice that once I
 rebuild in JBuilder, the classes that I manually add in disappear...
 
 how can I modify the Jbuilder autoformat for a WebApplication compatible for
 Tomcat Deployment use?
 
 Thank you,
 Kayley
 
 
 
 -
 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 mail sent through www.mywaterloo.ca

-
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: workers.properties and virtual hosts

2004-03-23 Thread staf wagemakers
On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:
 
 I am trying to install tomcat5 with apache 1.3 using the mod_jk connector.
 
 On my test system I've got several virtual hosts. Do I have to create a 
 separate worker for each virtual host?
 
 E.g.:
 
 worker.list= worker1, worker2, worker3
 
 worker.worker1.type=ajp13
 worker.worker1.host=host1.linuxstation2
 worker.worker1.port=8009
 
 worker.worker2.type=ajp13
 worker.worker2.host=host2.linuxstation2
 worker.worker2.port=8009
 
 worker.worker3.type=ajp13
 worker.worker3.host=host3.linuxstation2
 worker.worker3.port=8009
 
 
 Any help is very much appreciated.


Depends on what you mean by virtualhosts, if you have one tomcat
server with several virtualnamehosts it's possible to do it with one ajp
connector.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is very
similar.

-- 
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

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



Re: Configuration Help

2004-03-23 Thread Adrian Lanning
Hmm,

Do you have Tomcat set up to listen on port 80? (you shouldn't)

Can you get to your webapp correctly using localhost?  Try setting up a test
host in your server.xml file with name=www.example.com and then edit your
hosts file to point 127.0.0.1 to www.example.com.  Then try connecting to
http://www.example.com:8080/yourWebApp and report your findings.

Earlier you said:

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.


Do you mean that you've set defaultHost to your IP address?  Try setting
your engine's defaultHost and your host's name to the domain name:
dev.dynamichostings.com


Please post your server.xml file.

Adrian


- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:10 AM
Subject: RE: Configuration Help


Thanks for the links below. I've been looking at anything I can find and as
far as I can tell, I have IIS configured to support Tomcat.

The following link serves the web app I'm trying to configure, but it only
serves it from the ip address and not the URL

http://66.80.144.156/dynamichostings

I'm trying to get it to work from this url: http://dev.dynamichostings.com

I'm almost 100% positive it has something to do with the server.xml file
because if my IIS wasn't configured correctly, the first url example
wouldn't work.

I've even tried to contact the support people at JBoss but they wouldn't
talk with me unless I purchased either a $5K or $10K support package

This shouldn't be this difficult to get working

-Dave

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:30 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hi Dave,
Did you ever solve this problem?

Actually, 400 error is malformed syntax. Basically doesn't tell us much in
this situation besides configuration screwed up.

I don't use IIS so don't know how to from first-hand experience.  Searching
turns up stuff on connecting using jk rather than jk2.  Have you tried
getting jk to work?

Have you looked at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

Also try:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

hth,
Adrian



- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:15 AM
Subject: RE: Configuration Help


Adrian,

The 400 error is indicating that the page has been moved, server might not
be available... blah, blah

This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com

I think I'm close I just don't know what configuration change I need to make
at this point. I've been told that by mapping the isapi_redirector2.dll in
IIS it should work

There has to be someone else who is successfully using IIS and Tomcat 5 out
there

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.

Thanks,
Dave

-
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: caching static objects

2004-03-23 Thread Shapira, Yoav

Howdy,

We are running Tomcat-standalone and are having some caching issues. It
appears to be a browser issue, but there's got to be some workaround.
We've got the headers set to pragma nocache, but it continues to cache
objects, such as charts that are created dynamically. I suppose this
wouldn't be an issue if the code worked with Apache. Also, creating
unique identifiers for each object has been shot down. Does anyone know
of a way to get server.xml to set each object not to cache? Thanks.

There's no server.xml way to do this, but it's a trivial filter to
write.  Just add the pragma-nocache and the cache-control headers to
every outgoing response.

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: Dump of Beans in catalina.out

2004-03-23 Thread Shapira, Yoav

Howdy,

Recently I have been seeing what appears to be a dump of the active
Javabeans in my catalina.out log file.  There is not apparent error
listed
with the information but after the dump happens, the application is
either
very sluggish or doesn't respond at all.

Tomcat isn't just going to dump your application data to catalina.out
because it feels like it ;)  Look for System.out/System.err statements
in your code that do this.  Then look for what triggers these logging
statements, as that's the likely cause for your sluggish behavior.

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: workers.properties and virtual hosts

2004-03-23 Thread Adrian Lanning
JK tut:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html

As staf pointed out you can use the same worker.  Use localhost.

Adrian

- Original Message - 
From: staf wagemakers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:28 AM
Subject: Re: workers.properties and virtual hosts


 On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:
 
  I am trying to install tomcat5 with apache 1.3 using the mod_jk
connector.
 
  On my test system I've got several virtual hosts. Do I have to create a
  separate worker for each virtual host?
 
  E.g.:
 
  worker.list= worker1, worker2, worker3
 
  worker.worker1.type=ajp13
  worker.worker1.host=host1.linuxstation2
  worker.worker1.port=8009
 
  worker.worker2.type=ajp13
  worker.worker2.host=host2.linuxstation2
  worker.worker2.port=8009
 
  worker.worker3.type=ajp13
  worker.worker3.host=host3.linuxstation2
  worker.worker3.port=8009
 
 
  Any help is very much appreciated.
 

 Depends on what you mean by virtualhosts, if you have one tomcat
 server with several virtualnamehosts it's possible to do it with one ajp
 connector.

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

 describes howto setup virtualhosts with jk2. The setup for jk1 is very
 similar.

 -- 
 Staf Wagemakers

 email: staf at patat.org
 homepage: http://staf.patat.org

 -
 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: HELP!

2004-03-23 Thread Shapira, Yoav


Well, this is really more of a mod_joke question than a Tomcat 3
question

mod_joke - ROFL ;)

Yoav Shapira



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


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



RE: Tomcat documentation in book format (in contrast to the myriad files in a Web documentation)

2004-03-23 Thread Shapira, Yoav

Hi,
You know, that would make for an EXCELLENT ant task or maven plugin.
Feel like writing it? ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rudolf Nottrott [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:57 PM
To: Tomcat Users List
Subject: Tomcat documentation in book format (in contrast to the
myriad
files in a Web documentation)

Hi,

I know the Tomcat documentation at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
it's excellent in content and complete, but I still vastly prefer the
kind
of documentation that I can read like a book, rather than navigating a
myriad of file pieces linked together in Web fashion.

My question is, does something like this exist for Tomcat?  I mean the
documentation as a single file (PDF, html, or whatever), that I could
download and then read beginning to end?

Thanks

Rudolf


-
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: Configuration Help

2004-03-23 Thread LILES, DAVID (CONTRACTOR)
The server.xml file is using the default port settings (8080 and 8009) and instead of 
localhost or 127.0.0.1, I'm using the server's ip address.

Even though this is a web server, should I have the server.xml file configured to use 
localhost instead of the server's ip address?

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:43 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hmm,

Do you have Tomcat set up to listen on port 80? (you shouldn't)

Can you get to your webapp correctly using localhost?  Try setting up a test
host in your server.xml file with name=www.example.com and then edit your
hosts file to point 127.0.0.1 to www.example.com.  Then try connecting to
http://www.example.com:8080/yourWebApp and report your findings.

Earlier you said:

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.


Do you mean that you've set defaultHost to your IP address?  Try setting
your engine's defaultHost and your host's name to the domain name:
dev.dynamichostings.com


Please post your server.xml file.

Adrian


- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:10 AM
Subject: RE: Configuration Help


Thanks for the links below. I've been looking at anything I can find and as
far as I can tell, I have IIS configured to support Tomcat.

The following link serves the web app I'm trying to configure, but it only
serves it from the ip address and not the URL

http://66.80.144.156/dynamichostings

I'm trying to get it to work from this url: http://dev.dynamichostings.com

I'm almost 100% positive it has something to do with the server.xml file
because if my IIS wasn't configured correctly, the first url example
wouldn't work.

I've even tried to contact the support people at JBoss but they wouldn't
talk with me unless I purchased either a $5K or $10K support package

This shouldn't be this difficult to get working

-Dave

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:30 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hi Dave,
Did you ever solve this problem?

Actually, 400 error is malformed syntax. Basically doesn't tell us much in
this situation besides configuration screwed up.

I don't use IIS so don't know how to from first-hand experience.  Searching
turns up stuff on connecting using jk rather than jk2.  Have you tried
getting jk to work?

Have you looked at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

Also try:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

hth,
Adrian



- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:15 AM
Subject: RE: Configuration Help


Adrian,

The 400 error is indicating that the page has been moved, server might not
be available... blah, blah

This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com

I think I'm close I just don't know what configuration change I need to make
at this point. I've been told that by mapping the isapi_redirector2.dll in
IIS it should work

There has to be someone else who is successfully using IIS and Tomcat 5 out
there

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have 

RE: webapp inaccessible - SEVERE error in catalina.out

2004-03-23 Thread Shapira, Yoav

Hi,
5.0.16 was the first stable 5.x version, so any version you use before
that is likely to have issues and be less supported.

This particular error, I haven't seen before.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: lists [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:50 PM
To: [EMAIL PROTECTED]
Subject: webapp inaccessible - SEVERE error in catalina.out

our users reported that a webapp was handing back resource
unavailable
errors when accessing a servlet.  this was in catalina.out:

org.apache.coyote.tomcat5.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the
request processing
java.lang.NullPointerException
 at
org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.jav
a:71
2)
 at
org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:627)
 at
org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:517)
 at
org.apache.coyote.tomcat5.CoyoteAdapter.postParseRequest(CoyoteAdapter.
java
:298)
 at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:201)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:6
47)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
ection(Http11Protocol.java:497)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
75)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
va:649)
 at java.lang.Thread.run(Thread.java:534)

we're using tomcat5 - i believe the version is the one prior to 5.0.16.
  we're not using any servlets, and we're using Velocity.  Java version
is build 1.4.2_01-b06.

any idea what this might be?


-
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: where is setUserPrincipal() ?

2004-03-23 Thread Shapira, Yoav

Howdy,
HttpRequest is a tomcat-specific class, unlike HttpServletRequest.  I
know the names are similar, but be careful not to confuse them.

HttpServletRequest does not include setUserPrincipal in its interface.
You can use a custom HttpServletRequestWrapper in combination with a
filter to provide this functionality.  What most containers do in the
J2EE world, however, is connect the authentication/authorization
mechanisms (Realms in the tomcat implementation) such that they set the
user principal on a custom server implementation of the
HttpServletRequest interface.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 8:52 PM
To: Tomcat Users List
Subject: Re: where is setUserPrincipal() ?

In case you haven't already gotten to the bottom of this, here's a
perspective;
afaik, HttpRequest.setUserPrincipal() is implemented by the container
(ie - Tomcat).

 From the docs:

public void *setUserPrincipal*(java.security.Principal principal)

   Set the Principal who has been authenticated for this Request.
This value is also used to calculate the value to be returned
by the |getRemoteUser()| method.

http://jakarta.apache.org/tomcat/tomcat-4.0-
doc/catalina/docs/api/org/apache/catalina/HttpRequest.html

Robert

Bob Langford wrote:

 I've been looking at the various methods of doing access control, and
 many of the messages I've seen (on this list and elsewhere) mention
 doing something like:

 hrequest.setUserPrincipal( new MyPrincipal(username) );

 so that other code can call getUserPrincipal(), etc.

 But there is no setUserPrincipal method on the HttpServletRequest,
 as far as I (and my compiler) can see.  What's going on?  Am I
supposed
 to use some non-standard wrapper for the request?

 Thanks for any help!

 --
 Bob Langford
 Silicon Masters Consulting, Inc.8207 Stone River Court, Richmond,
 VA  23235
 phone:  804-674-1253  fax:  804-745-7803
 http://www.silicon-masters.com/


 -
 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: Configuration Help

2004-03-23 Thread Adrian Lanning
As I understand it, you should not be using the IP address in server.xml
except to limit the connector to a specific IP address if you don't want
Tomcat to answer requests for other IPs.

In production you can use localhost for a host and use your domain as an
alias.  Or you can get rid of localhost altogether and just set up your
domain as a host.

We need to set up a control so follow the steps I recommended in my last
email and post your results to the list.  Also, please post your server.xml
file.

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:42 AM
Subject: RE: Configuration Help


The server.xml file is using the default port settings (8080 and 8009) and
instead of localhost or 127.0.0.1, I'm using the server's ip address.

Even though this is a web server, should I have the server.xml file
configured to use localhost instead of the server's ip address?

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:43 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hmm,

Do you have Tomcat set up to listen on port 80? (you shouldn't)

Can you get to your webapp correctly using localhost?  Try setting up a test
host in your server.xml file with name=www.example.com and then edit your
hosts file to point 127.0.0.1 to www.example.com.  Then try connecting to
http://www.example.com:8080/yourWebApp and report your findings.

Earlier you said:

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.


Do you mean that you've set defaultHost to your IP address?  Try setting
your engine's defaultHost and your host's name to the domain name:
dev.dynamichostings.com


Please post your server.xml file.

Adrian


- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:10 AM
Subject: RE: Configuration Help


Thanks for the links below. I've been looking at anything I can find and as
far as I can tell, I have IIS configured to support Tomcat.

The following link serves the web app I'm trying to configure, but it only
serves it from the ip address and not the URL

http://66.80.144.156/dynamichostings

I'm trying to get it to work from this url: http://dev.dynamichostings.com

I'm almost 100% positive it has something to do with the server.xml file
because if my IIS wasn't configured correctly, the first url example
wouldn't work.

I've even tried to contact the support people at JBoss but they wouldn't
talk with me unless I purchased either a $5K or $10K support package

This shouldn't be this difficult to get working

-Dave

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:30 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hi Dave,
Did you ever solve this problem?

Actually, 400 error is malformed syntax. Basically doesn't tell us much in
this situation besides configuration screwed up.

I don't use IIS so don't know how to from first-hand experience.  Searching
turns up stuff on connecting using jk rather than jk2.  Have you tried
getting jk to work?

Have you looked at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

Also try:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

hth,
Adrian



- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:15 AM
Subject: RE: Configuration Help


Adrian,

The 400 error is indicating that the page has been moved, server might not
be available... blah, blah

This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com

I think I'm close I just don't know what configuration change I need to make
at this point. I've been told that by mapping the isapi_redirector2.dll in
IIS it should work

There has to be someone else who is successfully using IIS and Tomcat 5 out
there

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are 

Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Hari Om
SUBJECT: Apache+Tomcat + MOD_JK on different machine

I am using Apache 2.0.47 and Tomcat 4.1.27 on my SuSE Linux. I had 
configured my mod_jk and it works just great! (My Web and App Server were on 
same box)

Now I have a Web Server and App Server on a different box and was wondering 
what changes do I have to make to MOD_JK for the Integration to work.

My old settings were:
--
httpd.conf
--
LoadModule jk_module modules/mod_jk.so
ServerName abc.com
Include /usr/local/tomcat4/conf/auto/mod_jk.conf

JkWorkersFile /usr/local/apa2047/conf/workers.properties
JkLogFile /usr/local/apa2047/logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13

workers.properties

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
Now that I have both APACHE and TOMCAT on DIFFERENT Boxes, I was wondering 
what changes do I have to make for the above to work.

My Web Server is xyz.com and my App Server is abc.com. I have mod_jk 
configured in my Web Server.

My new HTTPD.CONF file is:
My NEW settings are:
--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com
Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13

workers.properties (on Web Server)

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


major tomcat problem with hyperthreaded processor

2004-03-23 Thread Daniil Sosonkin
Hi,

I'm hoping I'm posting to the right place since I'm in a bit of troubles. So
here is the problem. I've downloaded latest Tomcat (4.1.30) and installed it
on Mandrake Linux 9.2 to run under JDK 1.4 (1.4.2_04-b05). It runs nicely;
starts fine; loads my hosts; starts applications; connects to mysql to
create a pool; everthings seems to be working fine. Then I've installed
mod_jk onto apache 1.39 and connected it to tomcat via ajp13. It runs fine;
everything is ok and working. The problem is when I'm trying to shutdown the
tomcat. I run bin/shutdown.sh; it sends the command I guess and quits. But
the Tomcat doesn't quit. I do `ps -ef` and the processes are still there.
I'm trying to access it and it doesn't work, neither through mod_jk (which
hangs at this point) nor directly. The only way is to kill the process via
`kill -9 pid` and even that doesn't always work. At first I thought that was
the only problem; but it seems to me that now it is deeper than that.
Recently I was getting problems with connection pool. I was getting wierd
exception: javax.servlet.jsp.JspException: Cannot get a connection, pool
exhausted, cause: Timeout waiting for idle object

At this point I'm lost. There is an exactly the same setup on different
mashine which works just fine.

Any help would be greatly appreciated since this is going to be a production
problem soon.

 Here are the specs:
 Mandrake Linux 9.2 with hyperthreading enabled
 mySQL 4.0.15
 tomcat 4.1.30
 JVM 1.4.2_04-b05
 mod_jk
 apache 1.39

 thanx in advance

 daniil



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



Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Thanks Adrian,

that's very kind. Of cource, I had checked the documentation before I 
posted my initial question. It doesn't say anything about virtual hosts.

Thanks for your reply

Michael Kastner

Adrian Lanning schrieb:
JK tut:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
As staf pointed out you can use the same worker.  Use localhost.

Adrian

- Original Message - 
From: staf wagemakers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:28 AM
Subject: Re: workers.properties and virtual hosts



On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:

I am trying to install tomcat5 with apache 1.3 using the mod_jk
connector.

On my test system I've got several virtual hosts. Do I have to create a
separate worker for each virtual host?
E.g.:

worker.list= worker1, worker2, worker3

worker.worker1.type=ajp13
worker.worker1.host=host1.linuxstation2
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=host2.linuxstation2
worker.worker2.port=8009
worker.worker3.type=ajp13
worker.worker3.host=host3.linuxstation2
worker.worker3.port=8009
Any help is very much appreciated.

Depends on what you mean by virtualhosts, if you have one tomcat
server with several virtualnamehosts it's possible to do it with one ajp
connector.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is very
similar.
--
Staf Wagemakers
email: staf at patat.org
homepage: http://staf.patat.org
-
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: major tomcat problem with hyperthreaded processor

2004-03-23 Thread Shapira, Yoav

Hi,
Search the list archives ;)  It has to do with your threading library
most likely, and you can get around this by setting LD_ASSUME_KERNEL to
a lower version.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Daniil Sosonkin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:59 AM
To: [EMAIL PROTECTED]
Subject: major tomcat problem with hyperthreaded processor

Hi,

I'm hoping I'm posting to the right place since I'm in a bit of
troubles.
So
here is the problem. I've downloaded latest Tomcat (4.1.30) and
installed
it
on Mandrake Linux 9.2 to run under JDK 1.4 (1.4.2_04-b05). It runs
nicely;
starts fine; loads my hosts; starts applications; connects to mysql to
create a pool; everthings seems to be working fine. Then I've installed
mod_jk onto apache 1.39 and connected it to tomcat via ajp13. It runs
fine;
everything is ok and working. The problem is when I'm trying to
shutdown
the
tomcat. I run bin/shutdown.sh; it sends the command I guess and quits.
But
the Tomcat doesn't quit. I do `ps -ef` and the processes are still
there.
I'm trying to access it and it doesn't work, neither through mod_jk
(which
hangs at this point) nor directly. The only way is to kill the process
via
`kill -9 pid` and even that doesn't always work. At first I thought
that
was
the only problem; but it seems to me that now it is deeper than that.
Recently I was getting problems with connection pool. I was getting
wierd
exception: javax.servlet.jsp.JspException: Cannot get a connection,
pool
exhausted, cause: Timeout waiting for idle object

At this point I'm lost. There is an exactly the same setup on different
mashine which works just fine.

Any help would be greatly appreciated since this is going to be a
production
problem soon.

 Here are the specs:
 Mandrake Linux 9.2 with hyperthreading enabled
 mySQL 4.0.15
 tomcat 4.1.30
 JVM 1.4.2_04-b05
 mod_jk
 apache 1.39

 thanx in advance

 daniil



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



What are you using for Failover Notification? (mod_jk)

2004-03-23 Thread Clute, Andrew
It seems to me the one large missing component of the mod_jk* connectors
is notification of a failover -- either via email, pager, etc.

I am sure there are people that are using mod_jk in production with a
cluster and have a solution for being notified with a Tomcat instances
goes down, via either scripts, or some other component. I would love to
get some pointers on what is available in the market. A search didn't
seem to turn up much.

Thanks!

-Andrew




Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello Staf,

thanks for your reply. Yes indeed, I mean virtual name hosts. I am 
wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc.

What do you mean with similar? What exactly is the difference?

Sincerely

Michael Kastner

staf wagemakers schrieb:
On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:

I am trying to install tomcat5 with apache 1.3 using the mod_jk connector.

On my test system I've got several virtual hosts. Do I have to create a 
separate worker for each virtual host?

E.g.:

worker.list= worker1, worker2, worker3

worker.worker1.type=ajp13
worker.worker1.host=host1.linuxstation2
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=host2.linuxstation2
worker.worker2.port=8009
worker.worker3.type=ajp13
worker.worker3.host=host3.linuxstation2
worker.worker3.port=8009
Any help is very much appreciated.



Depends on what you mean by virtualhosts, if you have one tomcat
server with several virtualnamehosts it's possible to do it with one ajp
connector.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is very
similar.


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


RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
I would leave your httpd.conf file the same as  you have it shown below.  I would also 
confirm in you logs that everything is working ok.  However, Apache should not even 
startup if the included configuration file, mod_jk.conf is not present.  

--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com

Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13


The trick here is to make some changes to your workers.properties in order to connect 
to another box.
It looks as if your are trying to configure a load balancer.  If you are connecting to 
only one instance 
of tomcat this is not necessary.  Also you need to look in your server.xml and see 
that you have the coyote connector 
running on port 8009.  I would exclude the line: worker.ajp13.lbfactor=5 from this 
configuration.  Besides, you have not defined
a worker for load balancer, so i believe this line is not necessary.  
I would probably write your workers.properties files the following way:


workers.properties (on Web Server)


workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
#Remove the following line.
#worker.ajp13.lbfactor=5



I am going to send you my workers.properties for reference.  IF AND ONLY IF you do 
configure a load balancer, then make sure in your server.xml to 
change following line from:
 Engine name=Standalone defaultHost=localhost debug=0

to

 Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=worker2 
This is necessary for load balancing.  The value of jvmRoute should be equal to the 
worker that you want to connect to that particular instance of tomcat.  


#*Begin worker.properties*
#
worker.worker2.type=ajp13
worker.worker1.type=ajp13
#
#Specifies the load balance factor when used with a load balancing worker.
#Note:
#- lbfactor must be  0
#- Low lbfactor means less work done by the worker.
#
worker.worker1.lbfactor=1
worker.worker2.lbfactor=10
#
#Specify the size of the open connection cache.
#worker.ajp13.cachesize
#
#--DEFAULT LOAD BALANCER WORKER DEFINITION---
#
#The loadbalancer (type lb) worker perform weighted round-robin
#load balancing with sticky sessions.
#Note:
#--- If a worker dies, the load balancer will check its state once
#in a while. Until then all work is redirected to peer worker.
#
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker2,worker1
#
#worker.tomcat_home should point to the location where you installed
#tomcat. This is where you have your conf, webapps and lib directories.
#Note: Please make sure to enter the appropriate path from your machine.
#
worker.tomcat_home=/usr/local/tomcat
#
#worker.java_home should point to your Java installation.
#Normally you should have a bin and lib directories beneath it.
#Note: Please make sure to enter the appropriate path from your machine.
#
worker.java_home=/usr/local/java
#
#You should configure your environment slash...ps=\on NT and / on UNIX
#and may be different elsewhere.
#
ps=/
#---ADVANCED MODE---
#--
#
#
#---DEFAULT worker list--
#--
#
#The worker that your plugins should create and work with
#
worker.list=worker2,loadbalancer, worker1
#
#DEFAULT ajp13 WORKER DEFINITION-
#
#Defining a worker named ajp13 and of type ajp13
#Note that the name and the type do not have to match.
#
worker.worker2.port=8009
worker.worker2.host=localhost
worker.worker2.cachesize=100
worker.worker2.cache_timeout=1000
worker.worker2.socket_keepalive=3
worker.worker2.socket_timeout=1000

worker.worker1.port=8019
worker.worker1.host=216.222.102.252
worker.worker1.cachesize=100
worker.worker1.cache_timeout=1000
worker.worker1.socket_keepalive=3
worker.worker1.socket_timeout=1000

#
#*End worker.properties*









workers.properties (on Web Server)


workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5



-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Apache+Tomcat + MOD_JK on different machine 


SUBJECT: Apache+Tomcat + MOD_JK on different machine

I am using Apache 2.0.47 and Tomcat 4.1.27 on my SuSE Linux. I had 
configured my mod_jk and it works just great! (My Web and App Server were on 
same box)

Now I have a Web Server and App Server on a 

RE: Which Engine is Which

2004-03-23 Thread Schalk
Hi there

 

This is probably something I should know but, for clarification, is the
engine that processes jsp's different to the one that processes servlets?
Also what is the name of the engine that processes JSP's and, if different,
the name of the engine that processes servlets.

 

Thanks!

 

Kind Regards

Schalk Neethling

Web Developer.Designer.Programmer.President

Volume4.Development.Multimedia.Branding

emotionalize.conceptualize.visualize.realize

Tel: +27125468436

Fax: +27125468436

email:[EMAIL PROTECTED]

web: www.volume4.com

 

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

 



Re: major tomcat problem with hyperthreaded processor

2004-03-23 Thread Daniil Sosonkin
Hi,

Thank you for reply. I did some googling around and added
LD_ASSUME_KERNEL=2.2.5 to catalina.sh and yet there is still that same
problem. I've decided to do `catalina.sh run` and at this moment still
waiting for it to shutdown:

[EMAIL PROTECTED] bin]# ./catalina.sh run
Using CATALINA_BASE:   /home/tomcat
Using CATALINA_HOME:   /home/tomcat
Using CATALINA_TMPDIR: /home/tomcat/temp
Using JAVA_HOME:   /home/jdk1.4.2_04
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
Mar 23, 2004 10:24:16 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 23, 2004 10:24:16 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/93  config=/home/tomcat/conf/jk2.properties
Stopping service Tomcat-Standalone

It did shutdown now after 3 minutes of waiting. Is that normal or am I still
missing something? Since I'm not really an expert in Linux any help is
greatly appreciated.

Thank you in advance,

Daniil

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 10:01 AM
Subject: RE: major tomcat problem with hyperthreaded processor



Hi,
Search the list archives ;)  It has to do with your threading library
most likely, and you can get around this by setting LD_ASSUME_KERNEL to
a lower version.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Daniil Sosonkin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:59 AM
To: [EMAIL PROTECTED]
Subject: major tomcat problem with hyperthreaded processor

Hi,

I'm hoping I'm posting to the right place since I'm in a bit of
troubles.
So
here is the problem. I've downloaded latest Tomcat (4.1.30) and
installed
it
on Mandrake Linux 9.2 to run under JDK 1.4 (1.4.2_04-b05). It runs
nicely;
starts fine; loads my hosts; starts applications; connects to mysql to
create a pool; everthings seems to be working fine. Then I've installed
mod_jk onto apache 1.39 and connected it to tomcat via ajp13. It runs
fine;
everything is ok and working. The problem is when I'm trying to
shutdown
the
tomcat. I run bin/shutdown.sh; it sends the command I guess and quits.
But
the Tomcat doesn't quit. I do `ps -ef` and the processes are still
there.
I'm trying to access it and it doesn't work, neither through mod_jk
(which
hangs at this point) nor directly. The only way is to kill the process
via
`kill -9 pid` and even that doesn't always work. At first I thought
that
was
the only problem; but it seems to me that now it is deeper than that.
Recently I was getting problems with connection pool. I was getting
wierd
exception: javax.servlet.jsp.JspException: Cannot get a connection,
pool
exhausted, cause: Timeout waiting for idle object

At this point I'm lost. There is an exactly the same setup on different
mashine which works just fine.

Any help would be greatly appreciated since this is going to be a
production
problem soon.

 Here are the specs:
 Mandrake Linux 9.2 with hyperthreading enabled
 mySQL 4.0.15
 tomcat 4.1.30
 JVM 1.4.2_04-b05
 mod_jk
 apache 1.39

 thanx in advance

 daniil



-
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: What are you using for Failover Notification? (mod_jk)

2004-03-23 Thread David Rees
Clute, Andrew wrote, On 3/23/2004 7:02 AM:
It seems to me the one large missing component of the mod_jk* connectors
is notification of a failover -- either via email, pager, etc.
I am sure there are people that are using mod_jk in production with a
cluster and have a solution for being notified with a Tomcat instances
goes down, via either scripts, or some other component. I would love to
get some pointers on what is available in the market. A search didn't
seem to turn up much.
This is probably overkill if all you are monitoring is a few Tomcat 
instances, but I've found Nagios to work very well.

http://www.nagios.org/

-Dave

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


RE: Which Engine is Which

2004-03-23 Thread Shapira, Yoav

Hi,

This is probably something I should know but, for clarification, is the
engine that processes jsp's different to the one that processes
servlets?
Also what is the name of the engine that processes JSP's and, if
different,
the name of the engine that processes servlets.

I thought I just answered this on tomcat-dev? ;)

Jasper is the nickname for the JSP processor: it evaluates JSPs and
processes them into java servlets to be compiled.  The JSP servlet in
tomcat is mapped to the *.jsp url-pattern by default in conf/web.xml: it
calls jasper to handle JSP requests.

Don't use the term engine here as it's confusing.

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: Which Engine is Which

2004-03-23 Thread Adrian Lanning
Hi,
Let's define some terminology so we don't confuse ourselves.
Engine - when talking about Tomcat engine means engine as per tomcat's
configuration file.
Servlet - programs that process / handle requests.

The program (servlet) that processes jsps is a servlet just like any custom
servlet you write.

The only difference is that the servlet that handles jsps is defined for you
TOMCAT_HOME/conf/web.xml as:

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

!-- The mapping for the JSP servlet --
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping

servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jspx/url-pattern
/servlet-mapping



For your own servlets you define your own web.xml file with your own
mappings and place it in the WEB-INF directory of your app.

Hope that clears it up.
Adrian


- Original Message - 
From: Schalk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 10:03 AM
Subject: RE: Which Engine is Which


Hi there



This is probably something I should know but, for clarification, is the
engine that processes jsp's different to the one that processes servlets?
Also what is the name of the engine that processes JSP's and, if different,
the name of the engine that processes servlets.



Thanks!



Kind Regards

Schalk Neethling

Web Developer.Designer.Programmer.President

Volume4.Development.Multimedia.Branding

emotionalize.conceptualize.visualize.realize

Tel: +27125468436

Fax: +27125468436

email:[EMAIL PROTECTED]

web: www.volume4.com



This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.




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



Re: workers.properties and virtual hosts

2004-03-23 Thread staf wagemakers
On Tue, Mar 23, 2004 at 04:14:56PM +0100, Michael Kastner wrote:
 
 Depends on what you mean by virtualhosts, if you have one tomcat
 server with several virtualnamehosts it's possible to do it with one
 ajp
 connector.
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
 
 describes howto setup virtualhosts with jk2. The setup for jk1 is
 very
 similar.

 thanks for your reply. Yes indeed, I mean virtual name hosts. I am 
 wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc.
 
 What do you mean with similar? What exactly is the difference?
 
 

It has been a while since I've setup apache with tomcat virtual hosting,
so I dont know it by heart.

Basically you've to define the hosts in the server.xml as describes in the
howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
in apache's httpd.conf (the virtual hosts in apache must have the same name 
as in tomcat) :

NameVirtualHost your_ip:80

VirtualHost your_ip
ServerName site1
DocumentRoot /var/www/site1
JkMount /servlet/* ajp13 
/VirtualHost

Virtualhost your_ip
ServerName site2
DocumentRoot /var/www/site2
JkMount /servlet/* ajp13
/VirtualHost

If I recall it correctly...


-- 
Staf Wagemakers

email:  staf at patat.org
Homepage:   http://staf.patat.org

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



Is it possible to auto generation the mod_jk conf in Tomcat 5.1.19?

2004-03-23 Thread Galam

 

Hi,

Is it possible to auto generation the mod_jk conf in Tomcat 5.1.19?  I knows how to do 
that in Tomcat 3.x and Tomcat 4.x, but I don't see it in the Tomcat5.x's documentation.

Thanks!

Galam

 

 

 

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello Staf,

thanks for the reply. I wasn't explicit when I was asking about the 
differences.

I need to know what the differences in the workers.properties file are 
regarding the virtual name hosts and whether each virtual host requires 
a separate worker.

If not so, how would I assign several virtual hosts to a worker?

Sincerely

Michael Kastner

staf wagemakers schrieb:
On Tue, Mar 23, 2004 at 04:14:56PM +0100, Michael Kastner wrote:

Depends on what you mean by virtualhosts, if you have one tomcat
server with several virtualnamehosts it's possible to do it with one
ajp
connector.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is
very
similar.
thanks for your reply. Yes indeed, I mean virtual name hosts. I am 
wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc.

What do you mean with similar? What exactly is the difference?




It has been a while since I've setup apache with tomcat virtual hosting,
so I dont know it by heart.
Basically you've to define the hosts in the server.xml as describes in the
howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
in apache's httpd.conf (the virtual hosts in apache must have the same name 
as in tomcat) :

NameVirtualHost your_ip:80

VirtualHost your_ip
ServerName site1
DocumentRoot /var/www/site1
JkMount /servlet/* ajp13 
/VirtualHost

Virtualhost your_ip
ServerName site2
DocumentRoot /var/www/site2
JkMount /servlet/* ajp13
/VirtualHost
If I recall it correctly...




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


RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Hari Om
Thanks Randall for your reply... appreciate that!

My MOD_JK.CONF file is AUTOGENERATED on my AppServer. I start my App Server 
FIRST which AUTOGENERATES mod_jk.conf file. So, how can I reference this 
file on my HTTPD.CONF (Include conf/mod_jk.conf) - which is indeed located 
on a different machine?

Where should I place my workers.properties? should it be on App Server or 
Web Server?

Should I first start App Server or Web Server or it does'nt matter?

In my HTTPD.CONF I have different mount points (example 'abc') so when I 
type http://IPADDRESS/abc it shows HTTP 400 Bad Request on my browser 
Howevere, when I type http://IPADDRESS/lmn it shows HTTP 404 Page Not 
Found (Note: lmn is not added a JKMount in my Httpd.conf)

My MOD_JK.log file shows it added all the JKMounts.
My ACCESS_LOG file shows:
[23/Mar/2004:08:44:05 -0700] GET /abc HTTP/1.1 400 0
[23/Mar/2004:08:50:24 -0700] GET /lmn HTTP/1.1 404 301
My ERROR_LOG file shows:
[Tue Mar 23 08:41:46 2004] [notice] Apache/2.0.47 (Unix) mod_jk/1.2.2 
configured -- resuming normal operations

Any related information on above is appreciated.

THANKS again!

HARI OM



From: Randall Svancara [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine Date: Tue, 23 Mar 
2004 08:15:40 -0700

I would leave your httpd.conf file the same as  you have it shown below.  I 
would also confirm in you logs that everything is working ok.  However, 
Apache should not even startup if the included configuration file, 
mod_jk.conf is not present.

--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com
Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13
The trick here is to make some changes to your workers.properties in order 
to connect to another box.
It looks as if your are trying to configure a load balancer.  If you are 
connecting to only one instance
of tomcat this is not necessary.  Also you need to look in your server.xml 
and see that you have the coyote connector
running on port 8009.  I would exclude the line: worker.ajp13.lbfactor=5 
from this configuration.  Besides, you have not defined
a worker for load balancer, so i believe this line is not necessary.
I would probably write your workers.properties files the following way:


workers.properties (on Web Server)

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
#Remove the following line.
#worker.ajp13.lbfactor=5


I am going to send you my workers.properties for reference.  IF AND ONLY IF 
you do configure a load balancer, then make sure in your server.xml to
change following line from:
 Engine name=Standalone defaultHost=localhost debug=0

to

 Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=worker2 
This is necessary for load balancing.  The value of jvmRoute should be 
equal to the worker that you want to connect to that particular instance of 
tomcat.

#*Begin worker.properties*
#
worker.worker2.type=ajp13
worker.worker1.type=ajp13
#
#Specifies the load balance factor when used with a load balancing worker.
#Note:
#- lbfactor must be  0
#- Low lbfactor means less work done by the worker.
#
worker.worker1.lbfactor=1
worker.worker2.lbfactor=10
#
#Specify the size of the open connection cache.
#worker.ajp13.cachesize
#
#--DEFAULT LOAD BALANCER WORKER DEFINITION---
#
#The loadbalancer (type lb) worker perform weighted round-robin
#load balancing with sticky sessions.
#Note:
#--- If a worker dies, the load balancer will check its state once
#in a while. Until then all work is redirected to peer worker.
#
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker2,worker1
#
#worker.tomcat_home should point to the location where you installed
#tomcat. This is where you have your conf, webapps and lib directories.
#Note: Please make sure to enter the appropriate path from your machine.
#
worker.tomcat_home=/usr/local/tomcat
#
#worker.java_home should point to your Java installation.
#Normally you should have a bin and lib directories beneath it.
#Note: Please make sure to enter the appropriate path from your machine.
#
worker.java_home=/usr/local/java
#
#You should configure your environment slash...ps=\on NT and / on UNIX
#and may be different elsewhere.
#
ps=/
#---ADVANCED MODE---
#--
#
#
#---DEFAULT worker list--
#--
#
#The worker that your plugins should create and work with
#
worker.list=worker2,loadbalancer, worker1
#
#DEFAULT ajp13 WORKER 

Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-23 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,

 

No I am using the default out-of-the-box manager.  It worried me that I
didn't see Session.ser (or whatever) anywhere which is what made me
think I somehow
farkled the permissions.
   

I mispelled the file name, it's sessions.ser as others have pointed out.
(Don't delete .cer files if you have them, as they might be security
certificates, that's what I had in mind when writing my message, too
much multitasking on my part ;))
 

public final class UploadAction extends Action {
  private Log log = LogFactory.getLog(this.getClass());
   

Make it static.  Someone else pointed out how the above will lead to
your error: Log (the commons-logging interface) may have
non-serializable implementations, making UploadAction itself not
serializable, and therefore not suitable as a session attribute.
Tomcat 5 is more restrictive about enforcing serializable session
attributes than tomcat 4 was.
When you make it static you can't use the this.getClass() construct
unfortunately.  You can use private static Log log =
LogFactory.getLog(UploadAction.class).
 

Thanks :-) I made the logs static and another class in another 
ActionForm static and I don't get the errors on autodeploying.  
However, the really wierd thing is that  my 
$CATALINA_HOME/work/Catalina/localhost/myapp still doesn't show a 
SESSIONS.ser when I stop tomcat and as is to be expected, my session 
doesn't persist when I start it again.  I am not using any funny 
Manager. I also tried nesting
Manager distributable=true/  in my context .xml but it didn't do 
anything.

Mark Shifman

Yoav Shapira

 



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


Ajp13Connector Versus

2004-03-23 Thread Galam

 

 

Connector in Tomcat5.x
---

Service name= Tomcat-Apache13   
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --  
Connector className= org.apache.coyote.tomcat5.CoyoteConnector  port= 8009  
minProcessors= 5  
maxProcessors= 150  enableLookups= true  redirectPort= 8443  acceptCount= 100  
debug= 0  connectionTimeout= 2  
useURIValidationHack= false  protocolHandlerClassName= 
org.apache.jk.server.JkCoyoteHandler /  
/Service  


Connector in Tomcat4.x

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

 

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Can I use Ajp13Connector instead of CoyoteConnector in Tomcat5.x?

2004-03-23 Thread Galam

Hi,

Can I use the Ajp13Connector  instead of the CoyoteConnector in Tomcat5.x?  I know the 
Ajp13Connector  is available in Tomcat4, but I don't see any example of using it in 
Tomcat5.  Is it discontinued and no longer supported? 

Below is two Connector samples from 4.x and 5.x. 

 

Connector in Tomcat5.x
---

Service name= Tomcat-Apache13   
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --  
Connector className= org.apache.coyote.tomcat5.CoyoteConnector  port= 8009  
minProcessors= 5  
maxProcessors= 150  enableLookups= true  redirectPort= 8443  acceptCount= 100  
debug= 0  connectionTimeout= 2  
useURIValidationHack= false  protocolHandlerClassName= 
org.apache.jk.server.JkCoyoteHandler /  
/Service  


Connector in Tomcat4.x

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

 

 

 

Thanks!

Galam.

 

 


Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Henry Martin
On Tuesday, March 23, 2004, at 09:55 AM, Hari Om wrote:

My MOD_JK.CONF file is AUTOGENERATED on my AppServer. I start my App 
Server FIRST which AUTOGENERATES mod_jk.conf file. So, how can I 
reference this file on my HTTPD.CONF (Include conf/mod_jk.conf) - 
which is indeed located on a different machine?
I am still new to Tomcat and learning way too much every day. I have 
spent a lot of time studying the documentation recently. I don't know 
how to do all the setup, but remembered that the documentation says you 
cannot use auto configuration when the web server and app server are on 
different machines.

In tomcat-docs/jk2/jk/aphowto.html:
Custom mod_jk configuration

You should use custom configuration when :

 You couldn't use mod_jk.conf-auto  since Tomcat engine isn't on the 
same machine that your Apache WebServer,  ie when you have an Apache 
in front of a Tomcat Farm.

Another case for custom configuration is when your Apache is in front 
of many differents Tomcat engines, each one having it's own 
configuration, a general case in ISP hosting
Henry Martin
Little Planet Learning, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
Your workers.properties should be on your webserver where apache is located.  I 
typically place the workers.properties in the same directory where httpd.conf is 
located. 

workers.properties is needed for mod_jk so it makes sense that it needs to be in the 
same machine where mod_jk and apache are installed.  At least far as I know anyways. 
Sometimes apache has a difficult time finding it.  I have used this line to tell 
apache where to find the workers.properties.  You might try
including a line like this in your apache configuration file:


IfModule mod_jk.c
  JkSet config.file /etc/apache2/conf/workers.properties
  Include /etc/apache2/conf/mod_jk2.conf
/IfModule

If anyone else has anything to add to this or correct me on, please feel free because 
I am still learning to, but then again who isn't??
I hope that helps.  

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:56 AM
To: [EMAIL PROTECTED]
Cc: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks Randall for your reply... appreciate that!

My MOD_JK.CONF file is AUTOGENERATED on my AppServer. I start my App Server 
FIRST which AUTOGENERATES mod_jk.conf file. So, how can I reference this 
file on my HTTPD.CONF (Include conf/mod_jk.conf) - which is indeed located 
on a different machine?

Where should I place my workers.properties? should it be on App Server or 
Web Server?

Should I first start App Server or Web Server or it does'nt matter?

In my HTTPD.CONF I have different mount points (example 'abc') so when I 
type http://IPADDRESS/abc it shows HTTP 400 Bad Request on my browser 
Howevere, when I type http://IPADDRESS/lmn it shows HTTP 404 Page Not 
Found (Note: lmn is not added a JKMount in my Httpd.conf)

My MOD_JK.log file shows it added all the JKMounts.
My ACCESS_LOG file shows:
[23/Mar/2004:08:44:05 -0700] GET /abc HTTP/1.1 400 0
[23/Mar/2004:08:50:24 -0700] GET /lmn HTTP/1.1 404 301


My ERROR_LOG file shows:
[Tue Mar 23 08:41:46 2004] [notice] Apache/2.0.47 (Unix) mod_jk/1.2.2 
configured -- resuming normal operations

Any related information on above is appreciated.

THANKS again!

HARI OM



From: Randall Svancara [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine Date: Tue, 23 Mar 
2004 08:15:40 -0700

I would leave your httpd.conf file the same as  you have it shown below.  I 
would also confirm in you logs that everything is working ok.  However, 
Apache should not even startup if the included configuration file, 
mod_jk.conf is not present.

--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com

Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13


The trick here is to make some changes to your workers.properties in order 
to connect to another box.
It looks as if your are trying to configure a load balancer.  If you are 
connecting to only one instance
of tomcat this is not necessary.  Also you need to look in your server.xml 
and see that you have the coyote connector
running on port 8009.  I would exclude the line: worker.ajp13.lbfactor=5 
from this configuration.  Besides, you have not defined
a worker for load balancer, so i believe this line is not necessary.
I would probably write your workers.properties files the following way:


workers.properties (on Web Server)


workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
#Remove the following line.
#worker.ajp13.lbfactor=5



I am going to send you my workers.properties for reference.  IF AND ONLY IF 
you do configure a load balancer, then make sure in your server.xml to
change following line from:
  Engine name=Standalone defaultHost=localhost debug=0

to

  Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=worker2 
This is necessary for load balancing.  The value of jvmRoute should be 
equal to the worker that you want to connect to that particular instance of 
tomcat.


#*Begin worker.properties*
#
worker.worker2.type=ajp13
worker.worker1.type=ajp13
#
#Specifies the load balance factor when used with a load balancing worker.
#Note:
#- lbfactor must be  0
#- Low lbfactor means less work done by the worker.
#
worker.worker1.lbfactor=1
worker.worker2.lbfactor=10
#
#Specify the size of the open connection cache.
#worker.ajp13.cachesize
#
#--DEFAULT LOAD BALANCER WORKER DEFINITION---
#
#The loadbalancer (type lb) worker perform weighted round-robin
#load balancing with sticky sessions.
#Note:
#--- If a worker dies, the load 

screen template '/Home.vm' not found!!

2004-03-23 Thread Inandjo Taurel
hi all,

i have been having this error for the past week and any modifications on my 
side on the TurbineResources.properties file hasn't given out any concrete 
result.
I am using tomcat 4.0, along with turbine 2.1 and velocity, on a unix 
machine!
What could be other causes to the screen template not being found??

thanx

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


FileNotFoundException - how is /work/Catalina/localhost dir created

2004-03-23 Thread todd runstein
I've deployed 2 war files to $TOMCAT_HOME/webapps. 
The first is working fine.  The second appears to not
compile the jsps.

This nonworking application is deployed on another
system, and it works there.  It requires ssl, which
I've got up and running on both systems using a
self-cert (I can hit https://localhost:8443 on both
systems).  Below is the error I receive.  Any ideas
are most appreciated!

exception

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

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:559)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
edu.yale.its.tp.cas.servlet.Login.doGet(Unknown
Source)

javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.io.FileNotFoundException:
/opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/cas/org/apache/jsp/login_jsp.java
java.io.FileOutputStream.open(Native Method)

java.io.FileOutputStream.init(FileOutputStream.java:179)

java.io.FileOutputStream.init(FileOutputStream.java:70)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
edu.yale.its.tp.cas.servlet.Login.doGet(Unknown
Source)

javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Thanks in advance!

=
The only dumb question is the one you were too afraid to ask.


Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
http://routeruler.sourceforge.net


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



RE: Which Engine is Which

2004-03-23 Thread Schalk
Thanks

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Adrian Lanning [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, March 23, 2004 5:54 PM
:: To: Tomcat Users List
:: Subject: Re: Which Engine is Which
:: 
:: Hi,
:: Let's define some terminology so we don't confuse ourselves.
:: Engine - when talking about Tomcat engine means engine as per
tomcat's
:: configuration file.
:: Servlet - programs that process / handle requests.
:: 
:: The program (servlet) that processes jsps is a servlet just like any
custom
:: servlet you write.
:: 
:: The only difference is that the servlet that handles jsps is defined for
you
:: TOMCAT_HOME/conf/web.xml as:
:: 
:: servlet
:: servlet-namejsp/servlet-name
::
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
:: init-param
:: param-namefork/param-name
:: param-valuefalse/param-value
:: /init-param
:: init-param
:: param-namexpoweredBy/param-name
:: param-valuefalse/param-value
:: /init-param
:: load-on-startup3/load-on-startup
:: /servlet
:: 
:: !-- The mapping for the JSP servlet --
:: servlet-mapping
:: servlet-namejsp/servlet-name
:: url-pattern*.jsp/url-pattern
:: /servlet-mapping
:: 
:: servlet-mapping
:: servlet-namejsp/servlet-name
:: url-pattern*.jspx/url-pattern
:: /servlet-mapping
:: 
:: 
:: 
:: For your own servlets you define your own web.xml file with your own
:: mappings and place it in the WEB-INF directory of your app.
:: 
:: Hope that clears it up.
:: Adrian
:: 
:: 
:: - Original Message -
:: From: Schalk [EMAIL PROTECTED]
:: To: [EMAIL PROTECTED]
:: Sent: Tuesday, March 23, 2004 10:03 AM
:: Subject: RE: Which Engine is Which
:: 
:: 
:: Hi there
:: 
:: 
:: 
:: This is probably something I should know but, for clarification, is the
:: engine that processes jsp's different to the one that processes
servlets?
:: Also what is the name of the engine that processes JSP's and, if
different,
:: the name of the engine that processes servlets.
:: 
:: 
:: 
:: Thanks!
:: 
:: 
:: 
:: Kind Regards
:: 
:: Schalk Neethling
:: 
:: Web Developer.Designer.Programmer.President
:: 
:: Volume4.Development.Multimedia.Branding
:: 
:: emotionalize.conceptualize.visualize.realize
:: 
:: Tel: +27125468436
:: 
:: Fax: +27125468436
:: 
:: email:[EMAIL PROTECTED]
:: 
:: web: www.volume4.com
:: 
:: 
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
error,
:: please notify me immediately so that I can correct and delete the
original
:: email. 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]



ClassNotFoundException implementing new WebappLoader

2004-03-23 Thread Setera, Craig
Hello,

I'm trying to implement and register a new WebappLoader implementation with Tomcat 
5.0.19.  I've created a subclass of the standard WebappLoader class.  In addition, I 
have added the Loader element to my Context element with my new class name specified.  
When starting the server, I get a ClassNotFound exception when it attempts to do a 
Class.forName for my class in the CreateLoaderRule.begin method.  I've tried my class 
in tomcat-root/common/classes and also in tomcat-root/server/classes with no luck. 
 Can anyone offer any idea what I might be doing wrong and how I might solve the 
problem?

Thanks,
Craig

 SEVERE: Begin event threw exception
 java.lang.ClassNotFoundException: com.spss.catalina.loader.SPSSWebappLoader
 at java/lang/Throwable.init(Throwable.java:217) 
 
 at java/lang/Exception.init(Exception.java:59)  
 
 at java/lang/ClassNotFoundException.init(ClassNotFoundException.java:65)
 
 at 
org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassLoader.java:891) 
 
 at 
org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassLoader.java:756) 
 
 at java/lang/ClassLoader.loadClassInternal(ClassLoader.java:312)  
 
 at java/lang/Class.forName(Class.java:141)
 
 at 
org/apache/catalina/startup/CreateLoaderRule.begin(ContextRuleSet.java:314)
 
 at org/apache/commons/digester/Digester.startElement(Digester.java:1273)  
 
 at 
org/apache/catalina/util/CatalinaDigester.startElement(CatalinaDigester.java:112)  
 
 at org/apache/xerces/parsers/AbstractSAXParser.startElement(Unknown Source)   
 
 at org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
 at 
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) 
 
 at 
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
 at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)  
 at org/apache/xerces/parsers/XML11Configuration.parse(Unknown Source) 
 
 at org/apache/xerces/parsers/XML11Configuration.parse(Unknown Source) 
 
 at org/apache/xerces/parsers/XMLParser.parse(Unknown Source)  
 
 at org/apache/xerces/parsers/AbstractSAXParser.parse(Unknown Source)  
 
at org/apache/commons/digester/Digester.parse(Digester.java:1567)  
   
at 
org/apache/catalina/core/StandardHostDeployer.install(StandardHostDeployer.java:519)   
at org/apache/catalina/core/StandardHost.install(StandardHost.java:906)
   
at 
org/apache/catalina/startup/HostConfig.deployDescriptors(HostConfig.java:527)  
at org/apache/catalina/startup/HostConfig.deployApps(HostConfig.java:472)  
   
at org/apache/catalina/startup/HostConfig.start(HostConfig.java:1008)  
   
at org/apache/catalina/startup/HostConfig.lifecycleEvent(HostConfig.java:394)  
   
at 
org/apache/catalina/util/LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1134)   
   
at org/apache/catalina/core/StandardHost.start(StandardHost.java:832)  
   
at org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1126)   
   
at org/apache/catalina/core/StandardEngine.start(StandardEngine.java:521)  
   
at org/apache/catalina/core/StandardService.start(StandardService.java:519)
   
at org/apache/catalina/core/StandardServer.start(StandardServer.java:2345) 
   
at org/apache/catalina/startup/Catalina.start(Catalina.java:594)   
   
at 
sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
at 
sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
at java/lang/reflect/Method.invoke(Method.java:324)
   
at org/apache/catalina/startup/Bootstrap.start(Bootstrap.java:297) 
 

  
Craig Setera
Master Software Engineer, SPSS, Rochester MN

Sun Certified 

AJP13 errors with Tomcat

2004-03-23 Thread Reis, Tom
I am running Tomcat version 4.0.4 with IIS 5.0 with tha AJP13
connector. I am receiving the following message in the error log and was
trying to understand what it means I would appreciate any help. Thanks.

[Mon Mar 22 22:43:52 2004]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed
[Mon Mar 22 22:43:52 2004]  [jk_isapi_plugin.c (498)]:
jk_ws_service_t::write, WriteClient failed

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



Error Tomcat

2004-03-23 Thread Aquison - A. Angeloni Cia Ltda.
Hi all

I have a Sun Box with Solaris 8, Progress 91D08, Tomcat 4.1 and a Java
aplication.
I'm try using Tomcat with Java instaled from progress, but de Tomcat not
running with is java instalation.
Using the Java Instalation 1.4.2 (Sun), Tomcat running perfectly.

# Environment Variables

CLASSPATH=/u/wsrt91d/java/jdbc.jar
DLC=/u/wsrt91d  # Progress HOME
JAVA_HOME=/u/wsrt91d/jdk
JDKHOME=/u/wsrt91d/jdk
JRECP=/u/wsrt91d/jre/lib/rt.jar
JREHOME=/u/wsrt91d/jre
LD_LIBRARY_PATH=/u/wsrt91d/lib


# Error :
[ERROR] Digester - -Begin event threw 
exceptionjava.util.MissingResourceException: Can't find bundle for base name 
org.apache.coyote.tomcat4.LocalStrings, locale enjava.util.MissingResourceException: 
Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en

Does anybody have suggestions for me?

Thanks.

Aquison R. Machado
[EMAIL PROTECTED]
Brasil


RE: tomcat certificate

2004-03-23 Thread Idoia Murua Belacortu

I have configured the files as you said in the e-mail, but when I start
Tomcat I get the following error in catalina.out file:
 Exception creating UserDatabase MBeans for UserDatabase
javax.management.MalformedObjectNameException:  Invalid  character  '='  in
value part of property

And it is because of the following property value in the tomcat-users.xml
file:
username=CN=Mark Thomas, OU=WWW, O=XXX, L=YYY, ST=ZZZ, C=GB
It seems tomcat does not like the ´=' character inside a property value.
I have also tried writing:
username=CN\=Mark Thomas, OU\=WWW, O\=XXX, L\=YYY, ST\=ZZZ, C\=GB
But I still get the same error.

Don´t you get the same error message? How can I avoid this?

Thanks in advance and regards,
Idoia




   

  Mark Thomas

  [EMAIL PROTECTED]Para: 'Tomcat Users List' 
[EMAIL PROTECTED]
  cc: 

   Asunto:   RE: tomcat certificate

  18/03/04 20:46   

  Por favor,   

  responda a   

  Tomcat Users

  List

   

   




The important files are:
server.xml:
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory className
=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   keystoreFile=conf/.keystore
   clientAuth=false protocol=TLS /
/Connector
...
Realm className=org.apache.catalina.realm.MemoryRealm /

tomcat-users.xml:
  user username=CN=Mark Thomas, OU=WWW, O=XXX, L=YYY, ST=ZZZ, C=GB
password=null roles=tomcat,certs/

web.xml:
?xml version=1.0 encoding=ISO-8859-1?

!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

display-nameBug 12218/display-name
description
  Test web app for bug 12218.
/description

security-constraint
 web-resource-collection
 web-resource-nameApp/web-resource-name
 url-pattern/protected.jsp/url-pattern
 /web-resource-collection
 auth-constraint
 role-nametomcat/role-name
 /auth-constraint
 user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
/security-constraint

login-config
  auth-methodCLIENT-CERT/auth-method
/login-config

security-role
  role-nametomcat/role-name
/security-role

/web-app


The steps I tend to follow when setting this sort of thing up are:
1. Build simple two page web app.
2. Configure one page to require basic authentication
3. Test basic auth - checks tomcat-users.xml and realm set up correctly
4. Configure SSL
5. Test http://localhost:8443/ - checks SSL set up
6. Test app with SSL - not really necessary but best to double check
7. Reconfigure app to use CLIENT-CERT

 -Original Message-
 From: Idoia Murua Belacortu [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 18, 2004 8:01 AM
 To: Tomcat Users List
 Subject: RE: tomcat certificate


 Could you send us a sample of that web.xml file?
 I  am  also  using client certificates over SSL with Tomcat,
 but as I could
 not find much information about it in Tomcat I configured it
 with Apache.

 Idoia





   Mark Thomas


   [EMAIL PROTECTED]Para:
 'Tomcat Users List' [EMAIL PROTECTED]

   cc:



Re: error running JSP Config on tomcat examples - tomcat 5.0.19

2004-03-23 Thread Erin O'Neill
Thanks for your input. I've already checked what version of java I've got:

 $JAVA_HOME/bin/java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
My first impulse was that I was missing the java compiler but it's there:
  ls $JAVA_HOME/bin/javac
/usr/java/bin/javac
I have a startup script in /etc/init.d. In that script I set up a number of 
ENV vars, including JAVA_HOME, CLASSPATH, PATH. I have both the catalina.sh 
 the setclasspath.sh echo what those variables hold (after I found that 
setclasspath reset the CLASSPATH to something limited I commented out that 
line).

When I google for this problem, the hints are that either the java version 
and the tomcat version are not compatible OR the CLASSPATH is lacking some 
jar file

My CLASSPATH has this:
/usr/java/lib/tools.jar:/usr/jre/lib:/usr/local/tomcat/bin/commons-daemon.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
Am I missing some important Sun Java classpath? I have the general jre/lib 
directory but should I point to a special jar file? Do I need more than the 
tools.jar file in the /usr/java/lib in my CLASSPATH??

I have a symlink set up so that /usr/java points to /usr/java - 
/usr/j2se  and /usr/jre -- j2re1.4.2_04.

Should I NOT use symlinks??

Any other suggestions?

thanks all!

erin

At 08:59 PM 3/22/2004 -0600, you wrote:
On Mon, Mar 22, 2004 at 02:20:03PM -0800, Erin O'Neill wrote:
: My error message says this (in a small part):
: org.apache.jasper.JasperException: Unable to compile class for JSP
Two gut feelings strike me:

1/ the Java you have installed, what version is it?  You said you
have 1.4.x, but which one is Tomcat calling?
${JAVA_HOME}/bin/java -version

Back in the day, and perhaps still, Solaris shipped with Java version
1.2 in /usr/bin.
2/  JDK or JRE?  -as in, do you have

${JAVA_HOME}/bin/javac

If this is still a no-go for you, I'll think it over when I'm awake. ;)
-QM
--

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: ClassNotFoundException implementing new WebappLoader

2004-03-23 Thread Shapira, Yoav

Hi,
Hmm... I'd guess it should go in the same repository as the normal
WebappLoader, which is $CATALINA_HOME/server/lib.
$CATALINA_HOME/server/classes should be functionally equivalent for
unpacked classes, so it's strange you get the CNFE when you put your
loader there.  Try packaging your loader in a jar file and putting that
jar in server/lib.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Setera, Craig [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 11:55 AM
To: [EMAIL PROTECTED]
Subject: ClassNotFoundException implementing new WebappLoader

Hello,

I'm trying to implement and register a new WebappLoader implementation
with
Tomcat 5.0.19.  I've created a subclass of the standard WebappLoader
class.
In addition, I have added the Loader element to my Context element with
my
new class name specified.  When starting the server, I get a
ClassNotFound
exception when it attempts to do a Class.forName for my class in the
CreateLoaderRule.begin method.  I've tried my class in tomcat-
root/common/classes and also in tomcat-root/server/classes with no
luck.
Can anyone offer any idea what I might be doing wrong and how I might
solve
the problem?

Thanks,
Craig

 SEVERE: Begin event threw exception
 java.lang.ClassNotFoundException:
com.spss.catalina.loader.SPSSWebappLoader
 at java/lang/Throwable.init(Throwable.java:217)
 at java/lang/Exception.init(Exception.java:59)
 at
java/lang/ClassNotFoundException.init(ClassNotFoundException.java:65)
 at
org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassL
oade
r.java:891)
 at
org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassL
oade
r.java:756)
 at
java/lang/ClassLoader.loadClassInternal(ClassLoader.java:312)
 at java/lang/Class.forName(Class.java:141)
 at
org/apache/catalina/startup/CreateLoaderRule.begin(ContextRuleSet.java:
314)
 at
org/apache/commons/digester/Digester.startElement(Digester.java:1273)
 at
org/apache/catalina/util/CatalinaDigester.startElement(CatalinaDigester
.jav
a:112)
 at
org/apache/xerces/parsers/AbstractSAXParser.startElement(Unknown
Source)
 at
org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Unknow
n
Source)
 at
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
own Source)
 at
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
cher.dispatch(Unknown Source)
 at
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
Source)
 at org/apache/xerces/parsers/XML11Configuration.parse(Unknown
Source)
 at org/apache/xerces/parsers/XML11Configuration.parse(Unknown
Source)
 at org/apache/xerces/parsers/XMLParser.parse(Unknown Source)
 at org/apache/xerces/parsers/AbstractSAXParser.parse(Unknown
Source)
at
org/apache/commons/digester/Digester.parse(Digester.java:1567)
at
org/apache/catalina/core/StandardHostDeployer.install(StandardHostDeplo
yer.
java:519)
at
org/apache/catalina/core/StandardHost.install(StandardHost.java:906)
at
org/apache/catalina/startup/HostConfig.deployDescriptors(HostConfig.jav
a:52
7)
at
org/apache/catalina/startup/HostConfig.deployApps(HostConfig.java:472)
at
org/apache/catalina/startup/HostConfig.start(HostConfig.java:1008)
at
org/apache/catalina/startup/HostConfig.lifecycleEvent(HostConfig.java:3
94)
at
org/apache/catalina/util/LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:166)
at
org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1134)
at
org/apache/catalina/core/StandardHost.start(StandardHost.java:832)
at
org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1126)
at
org/apache/catalina/core/StandardEngine.start(StandardEngine.java:521)
at
org/apache/catalina/core/StandardService.start(StandardService.java:519
)
at
org/apache/catalina/core/StandardServer.start(StandardServer.java:2345)
at
org/apache/catalina/startup/Catalina.start(Catalina.java:594)
at
sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
at
sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
at java/lang/reflect/Method.invoke(Method.java:324)
at
org/apache/catalina/startup/Bootstrap.start(Bootstrap.java:297)


Craig Setera
Master Software Engineer, SPSS, Rochester MN

Sun Certified Java Programmer, Developer and
Web Component Developer

-
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 

RE: Tomcat documentation in book format (in contrast to the myriad files in a Web documentation)

2004-03-23 Thread Rudolf Nottrott
I'm not really sure what this involves.  It didn't occur to me that 
documentation might be written as an Ant task.  What would be the benefits 
of that?  Any examples of that kind of thing somebody else might have done 
for other documentation?

Rudolf

At 09:40 AM 3/23/2004 -0500, you wrote:

Hi,
You know, that would make for an EXCELLENT ant task or maven plugin.
Feel like writing it? ;)
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Rudolf Nottrott [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:57 PM
To: Tomcat Users List
Subject: Tomcat documentation in book format (in contrast to the
myriad
files in a Web documentation)

Hi,

I know the Tomcat documentation at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
it's excellent in content and complete, but I still vastly prefer the
kind
of documentation that I can read like a book, rather than navigating a
myriad of file pieces linked together in Web fashion.

My question is, does something like this exist for Tomcat?  I mean the
documentation as a single file (PDF, html, or whatever), that I could
download and then read beginning to end?

Thanks

Rudolf

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


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


RE: Tomcat documentation in book format (in contrast to the myriad files in a Web documentation)

2004-03-23 Thread Shapira, Yoav

Hi,
I suppose some background information is in order.

All of tomcat's documentation (and a vast majority of Apache
documentation in general, so this will have wide applicability) is in
XML format.  Much of that for tomcat is visible at
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/docs/.

There are Ant and Maven tasks (you can use either one, we use Ant for
tomcat as we're not mavenized) that will transform this XML docs to HTML
using XSLT.  Some transformers use Ant's style (aka xslt) task, some use
Anakia (http://jakarta.apache.org/velocity/anakia.html), some use
Maven's XDoc (http://maven.apache.org/reference/plugins/xdoc/).  The
XDoc plugin is probably the most full-featured one.

The end result is at least one HTML file for each XML file.  I say at
least because some of these transformers generate menus and top pages.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rudolf Nottrott [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 12:31 PM
To: Tomcat Users List
Cc: Shapira, Yoav
Subject: RE: Tomcat documentation in book format (in contrast to the
myriad files in a Web documentation)

I'm not really sure what this involves.  It didn't occur to me that
documentation might be written as an Ant task.  What would be the
benefits
of that?  Any examples of that kind of thing somebody else might have
done
for other documentation?

Rudolf

At 09:40 AM 3/23/2004 -0500, you wrote:

Hi,
You know, that would make for an EXCELLENT ant task or maven plugin.
Feel like writing it? ;)

Yoav Shapira
Millennium Research Informatics


 -Original Message-
 From: Rudolf Nottrott [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 5:57 PM
 To: Tomcat Users List
 Subject: Tomcat documentation in book format (in contrast to the
myriad
 files in a Web documentation)
 
 Hi,
 
 I know the Tomcat documentation at
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
 it's excellent in content and complete, but I still vastly prefer
the
kind
 of documentation that I can read like a book, rather than navigating
a
 myriad of file pieces linked together in Web fashion.
 
 My question is, does something like this exist for Tomcat?  I mean
the
 documentation as a single file (PDF, html, or whatever), that I
could
 download and then read beginning to end?
 
 Thanks
 
 Rudolf
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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




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


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



Re: Tomcat documentation in book format (in contrast to the myriad files in a Web documentation)

2004-03-23 Thread Chong Yu Meng
I use Docbook to write my documentation, and the same docbook XML file 
can be used to generate a single PDF document. Problem is, when you use 
it to generate HTML, the filenames are sometimes randomly generated. 
This can play havoc on search engines, like Google, because the location 
can change arbitrarily. And for just-released products, the amount of 
doc changes can sometimes make the documentation unsearchable (if the 
document is updated frequently).

On the plus side:
- Docbook is easy to learn
- you get consistent formatting
- you only need to code the document once to be able to generate it into 
HTML and PDF format (and it even looks like one of those authoritative 
manuals published by commercial software companies)

Regards,
pascal chong


Rudolf Nottrott wrote:

I'm not really sure what this involves.  It didn't occur to me that 
documentation might be written as an Ant task.  What would be the 
benefits of that?  Any examples of that kind of thing somebody else 
might have done for other documentation?

Rudolf

At 09:40 AM 3/23/2004 -0500, you wrote:

Hi,
You know, that would make for an EXCELLENT ant task or maven plugin.
Feel like writing it? ;)
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Rudolf Nottrott [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 5:57 PM
To: Tomcat Users List
Subject: Tomcat documentation in book format (in contrast to the
myriad
files in a Web documentation)

Hi,

I know the Tomcat documentation at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
it's excellent in content and complete, but I still vastly prefer the
kind
of documentation that I can read like a book, rather than navigating a
myriad of file pieces linked together in Web fashion.

My question is, does something like this exist for Tomcat?  I mean the
documentation as a single file (PDF, html, or whatever), that I could
download and then read beginning to end?

Thanks

Rudolf

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


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


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


Tomcat 3.x mailing list

2004-03-23 Thread Akash Jauhar
Shapira

Can you please let me know what is the tomcat 3.x mailing list. Our
application currently uses tomcat 3.x and I wanted to be a part of that
list so that I cud get better answers to issues that we face with tomcat
3.x.  Would appreciate if you cud let me know the tomcat 3.x mailing
list

thanks

Akash Jauhar
Sapient

YIM: akashjauhar
AIM: akashjauhar
e-mail: [EMAIL PROTECTED]



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 7:11 AM
To: Tomcat Users List
Subject: RE: HELP!



Hi,

After spending a lot of time just trying to do a simple thing like
configure Tomcat 3.2 to work with Apache 1.3, I'm beginning to rethink
using Tomcat! Here is my question.

I don't have an answer for your question, but a couple of tips:
- There aren't as many people using Tomcat 3.x on this list.  You will
get significantly more support (though not necessarily higher quality
support, as Senor Barker [Tomcat 3.x guru] is da man) if you use tomcat
4 or 5.

- Connecting Apache to Tomcat isn't necessarily a simple thing as you
claim, depending on your setup.  For example, it sounds like you're
throwing in a redirection or two as well.

- Using HELP! as a subject line is likely to make people ignore your
post as a newbie/whiny request: try a more descriptive subject line and
remember the points brought forth on
http://jakarta.apache.org/tomcat/faq/tomcatuser.html.

- There won't be much people can tell you about your problem unless you
post the relevant setup filers, e.g. server.xml/workers.properties, etc.

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: Tomcat 3.x mailing list

2004-03-23 Thread Shapira, Yoav

Hi,
This is it.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Akash Jauhar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 12:49 PM
To: Tomcat Users List
Subject: Tomcat 3.x mailing list

Shapira

Can you please let me know what is the tomcat 3.x mailing list. Our
application currently uses tomcat 3.x and I wanted to be a part of that
list so that I cud get better answers to issues that we face with
tomcat
3.x.  Would appreciate if you cud let me know the tomcat 3.x mailing
list

thanks

Akash Jauhar
Sapient

YIM: akashjauhar
AIM: akashjauhar
e-mail: [EMAIL PROTECTED]



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 7:11 AM
To: Tomcat Users List
Subject: RE: HELP!



Hi,

After spending a lot of time just trying to do a simple thing like
configure Tomcat 3.2 to work with Apache 1.3, I'm beginning to rethink
using Tomcat! Here is my question.

I don't have an answer for your question, but a couple of tips:
- There aren't as many people using Tomcat 3.x on this list.  You will
get significantly more support (though not necessarily higher quality
support, as Senor Barker [Tomcat 3.x guru] is da man) if you use tomcat
4 or 5.

- Connecting Apache to Tomcat isn't necessarily a simple thing as you
claim, depending on your setup.  For example, it sounds like you're
throwing in a redirection or two as well.

- Using HELP! as a subject line is likely to make people ignore your
post as a newbie/whiny request: try a more descriptive subject line and
remember the points brought forth on
http://jakarta.apache.org/tomcat/faq/tomcatuser.html.

- There won't be much people can tell you about your problem unless you
post the relevant setup filers, e.g. server.xml/workers.properties,
etc.

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]




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 3.3.1 takes a high time for Minor GC

2004-03-23 Thread Akash Jauhar
Hi All

Cisco CNAMS application runs on the following platform
OS: Solaris 9
Webserver: Apache 1.3.27
JDK: JDK 1.4.2 build 28
Servlet Engine: tomcat 3.3.1a

We are noticing some weird GC behaviour when the tomcat does Minor GC. I
am pasting some garbage collection logs below

231867.984: [GC 231867.985: [DefNew: 127232K-3840K(127232K), 0.1125831
secs] 288818K-170206K(350384K), 0.1128485 secs]
231946.970: [GC 231946.970: [DefNew: 127232K-3840K(127232K), 0.1348222
secs] 293598K-177196K(350384K), 0.1350464 secs]
231968.052: [GC 231968.052: [DefNew: 127232K-3840K(127232K), 0.1818662
secs] 300588K-182066K(350384K), 0.1821628 secs]
231969.314: [GC 231969.315: [DefNew: 127232K-3543K(127232K), 16.4172505
secs] 305458K-185389K(350384K), 16.4175191 secs]
231987.248: [GC 231987.248: [DefNew: 126935K-3840K(127232K), 10.7419554
secs] 308781K-189356K(350384K), 10.7422411 secs]
231999.225: [GC 231999.225: [DefNew: 127232K-3840K(127232K), 16.1320322
secs] 312748K-196413K(350384K), 16.1323798 secs]
232015.949: [GC 232015.950: [DefNew: 127232K-3840K(127232K), 42.2998381
secs] 319805K-201339K(350384K), 42.3001041 secs]
232058.781: [GC 232058.781: [DefNew: 127232K-3840K(127232K),
146.5896470 secs] 324731K-206361K(350384K), 146.5898922 secs]
232206.831: [GC 232206.832: [DefNew: 127232K-3840K(127232K),
110.785 secs] 329753K-211019K(350384K), 110.7862726 secs]
232318.209: [GC 232318.209: [DefNew: 127232K-3840K(127232K), 68.5541489
secs] 334411K-215994K(350384K), 68.5544029 secs]
232387.893: [GC 232387.893: [DefNew: 127232K-3840K(127232K),
126.8755081 secs] 339386K-221793K(350384K), 126.8757738 secs]
232515.276: [GC 232515.276: [DefNew: 127232K-3840K(127232K),
139.7813258 secs]232655.058: [Tenured: 223686K-154822K(223792K),
278.7132327 secs] 345201K-154822K(351024K), 418.4964431 secs]
232934.349: [GC 232934.349: [DefNew: 123392K-3840K(127232K),
164.3069723 secs] 278214K-163782K(385272K), 164.3072616 secs]
233099.848: [GC 233099.848: [DefNew: 127232K-3840K(127232K), 91.4000872
secs] 287174K-169894K(385272K), 91.4005897 secs]
233191.652: [GC 233191.652: [DefNew: 127232K-3840K(127232K),
204.1755072 secs] 293286K-176929K(385272K), 204.1757747 secs]
233396.272: [GC 233396.272: [DefNew: 127232K-3840K(127232K),
101.8621946 secs] 300321K-183426K(385272K), 101.8624498 secs]


Note how the minor collection takes high GC times (highlighted in bold).
It takes as high as 204 seconds. We are using the default GC algo both
for the old generation and the young generation(which happens to be stop
the world collector for young generation and mark - compact collector
for the old generation). Our heap size when the tomcat starts is bounded
by 256 MB on the lower side to 778 MB on the higher side. 

I am unable to understand what would cause tomcat to do GC for such a
long time esp in the young generation. what is even more wierd is that
the time between consecutive GC for young generation is almost equal to
time for which the GC happened . what would cause the young generation
to fill so quickly.

Anyone has any ideas what is going on ?

-Akash 



catalina-ant task (deploy) question

2004-03-23 Thread Brice Ruth
I was reading up on the context.xml file yesterday in the Tomcat-5.0 
documentation on the main Jakarta Tomcat site and came across the 
information that the context.xml file can be placed in 
conf/Catalina/localhost -OR- it can be placed in the META-INF directory 
of your web-app.

Now, when I use the catalina-ant deploy task, with the localWar 
attribute pointing to file:///${basedir} -- where ${basedir} is the 
directory containing the exploded WAR for my project -- it doesn't seem 
to pick up that context.xml file that I've placed in the META-INF 
directory (leaving out the config attribute to explicitly point it to 
that file). I'm leaving out the config attribute, because it appears 
that the deploy task then copies the XML file provided to the 
conf/Catalina/localhost directory ... and I want to be able to drive the 
web-app from the context.xml file provided in the META-INF directory (so 
when I edit the context.xml file in META-INF, the application will 
reload (hot)) - to get this same effect with the context placed in 
conf/Catalina/localhost, I'd have to remove and re-install the context 
(since that file lives outside of the deployment directory, at that point).

I guess I'm getting caught up in the fact that the catalina-ant tasks 
seem to arbitrarily limit what can be done with deploying projects to 
Tomcat ... versus what Tomcat's true abilities are.

Any clarity here would be appreciated!!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AJP13 errors with Tomcat

2004-03-23 Thread E Cunningham

The error is basically stating that IIS can not write
to the AJP13 socket.
This is probably a result of a configuration problem.


--- Reis, Tom [EMAIL PROTECTED] wrote:
   I am running Tomcat version 4.0.4 with IIS 5.0 with
 tha AJP13
 connector. I am receiving the following message in
 the error log and was
 trying to understand what it means I would
 appreciate any help. Thanks.
 
 [Mon Mar 22 22:43:52 2004]  [jk_ajp13_worker.c
 (381)]: Error
 ajp13_process_callback - write failed
 [Mon Mar 22 22:43:52 2004]  [jk_isapi_plugin.c
 (498)]:
 jk_ws_service_t::write, WriteClient failed
 

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


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: workers.properties and virtual hosts

2004-03-23 Thread staf wagemakers
 staf wagemakers schrieb:
 
 It has been a while since I've setup apache with tomcat virtual hosting,
 so I dont know it by heart.
 
 Basically you've to define the hosts in the server.xml as describes in the
 howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
 in apache's httpd.conf (the virtual hosts in apache must have the same 
 name as in tomcat) :
 
 NameVirtualHost your_ip:80
 
 VirtualHost your_ip
 ServerName site1
 DocumentRoot /var/www/site1
 JkMount /servlet/* ajp13 
 /VirtualHost
 
 Virtualhost your_ip
 ServerName site2
 DocumentRoot /var/www/site2
 JkMount /servlet/* ajp13
 /VirtualHost
 
 If I recall it correctly...
 
 
 
 thanks for the reply. I wasn't explicit when I was asking about the 
 differences.
 
 I need to know what the differences in the workers.properties file are 
 regarding the virtual name hosts and whether each virtual host requires 
 a separate worker.
 
 If not so, how would I assign several virtual hosts to a worker?


you dont need to modify your workers.properties, the default will do
fine.

mod_jk passes the hostname as defined in the apache's virtualhost to 
tomcat.

regards,

--
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

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



RE: ClassNotFoundException implementing new WebappLoader

2004-03-23 Thread Setera, Craig
Yoav,

I didn't even think to try using a jar file because it should have been the same.  
But, it turns out that a jar file works in this case for some reason.  Thanks for the 
tip.

Craig

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 11:20 AM
To: Tomcat Users List
Subject: RE: ClassNotFoundException implementing new WebappLoader



Hi,
Hmm... I'd guess it should go in the same repository as the normal WebappLoader, which 
is $CATALINA_HOME/server/lib. $CATALINA_HOME/server/classes should be functionally 
equivalent for unpacked classes, so it's strange you get the CNFE when you put your 
loader there.  Try packaging your loader in a jar file and putting that jar in 
server/lib.

Yoav Shapira
Millennium Research Informatics


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



Re: error running JSP Config on tomcat examples - tomcat 5.0.19

2004-03-23 Thread todd runstein
Erin,

Thank you!  Your post looks a lot like mine, which
gave me an idea.  The Unable to compile class for
JSP has only shown up for me in version 5.0.19.

I switched to tomcat 5.0.16 and the problem is gone. 
Trying switching to a different version of tomcat and
see if the problem disappears for you too.  Maybe
there's something in 5.0.19 that's messed up. 

Todd


--- Erin O'Neill [EMAIL PROTECTED] wrote:
 Thanks for your input. I've already checked what
 version of java I've got:
 
   $JAVA_HOME/bin/java -version
 java version 1.4.2_03
 Java(TM) 2 Runtime Environment, Standard Edition
 (build 1.4.2_03-b02)
 Java HotSpot(TM) Client VM (build 1.4.2_03-b02,
 mixed mode)
 
 My first impulse was that I was missing the java
 compiler but it's there:
ls $JAVA_HOME/bin/javac
 /usr/java/bin/javac
 
 I have a startup script in /etc/init.d. In that
 script I set up a number of 
 ENV vars, including JAVA_HOME, CLASSPATH, PATH. I
 have both the catalina.sh 
  the setclasspath.sh echo what those variables hold
 (after I found that 
 setclasspath reset the CLASSPATH to something
 limited I commented out that 
 line).
 
 When I google for this problem, the hints are that
 either the java version 
 and the tomcat version are not compatible OR the
 CLASSPATH is lacking some 
 jar file
 
 My CLASSPATH has this:

/usr/java/lib/tools.jar:/usr/jre/lib:/usr/local/tomcat/bin/commons-daemon.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
 
 Am I missing some important Sun Java classpath? I
 have the general jre/lib 
 directory but should I point to a special jar file?
 Do I need more than the 
 tools.jar file in the /usr/java/lib in my
 CLASSPATH??
 
 I have a symlink set up so that /usr/java points to
 /usr/java - 
 /usr/j2se  and /usr/jre -- j2re1.4.2_04.
 
 Should I NOT use symlinks??
 
 Any other suggestions?
 
 thanks all!
 
 erin
 
 At 08:59 PM 3/22/2004 -0600, you wrote:
 On Mon, Mar 22, 2004 at 02:20:03PM -0800, Erin
 O'Neill wrote:
 : My error message says this (in a small part):
 : org.apache.jasper.JasperException: Unable to
 compile class for JSP
 
 Two gut feelings strike me:
 
 1/ the Java you have installed, what version is it?
  You said you
 have 1.4.x, but which one is Tomcat calling?
 
  ${JAVA_HOME}/bin/java -version
 
 Back in the day, and perhaps still, Solaris shipped
 with Java version
 1.2 in /usr/bin.
 
 
 2/  JDK or JRE?  -as in, do you have
 
  ${JAVA_HOME}/bin/javac
 
 If this is still a no-go for you, I'll think it
 over when I'm awake. ;)
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 

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

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

=
The only dumb question is the one you were too afraid to ask.


Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
http://routeruler.sourceforge.net


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: FileNotFoundException - how is /work/Catalina/localhost dir created

2004-03-23 Thread todd runstein
I've switched to version 5.0.16 and the problem went
away.  Could this be an issue with 5.0.19?


--- todd runstein [EMAIL PROTECTED] wrote:
 I've deployed 2 war files to $TOMCAT_HOME/webapps. 
 The first is working fine.  The second appears to
 not
 compile the jsps.
 
 This nonworking application is deployed on another
 system, and it works there.  It requires ssl, which
 I've got up and running on both systems using a
 self-cert (I can hit https://localhost:8443 on both
 systems).  Below is the error I receive.  Any ideas
 are most appreciated!
 
 exception
 
 org.apache.jasper.JasperException: Unable to compile
 class for JSP
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:559)
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   edu.yale.its.tp.cas.servlet.Login.doGet(Unknown
 Source)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 root cause
 
 java.io.FileNotFoundException:

/opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/cas/org/apache/jsp/login_jsp.java
   java.io.FileOutputStream.open(Native Method)
 

java.io.FileOutputStream.init(FileOutputStream.java:179)
 

java.io.FileOutputStream.init(FileOutputStream.java:70)
 

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   edu.yale.its.tp.cas.servlet.Login.doGet(Unknown
 Source)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 
 Thanks in advance!
 
 =
 The only dumb question is the one you were too
 afraid to ask.
 
 
 Check out RouteRuler - Free software for runners,
 cyclists, walkers, etc.
 http://routeruler.sourceforge.net
 
 
 __
 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on
 time.
 http://taxes.yahoo.com/filing.html
 

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

=
The only dumb question is the one you were too afraid to ask.


Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
http://routeruler.sourceforge.net


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: error running JSP Config on tomcat examples - tomcat 5.0.19

2004-03-23 Thread Erin O'Neill
I found out what my configuration error was! I'm sending it to this list so 
if another newbie has problems they might google out this answer! :)

(I really hate it when someone just replies to the list -- oh never mind I 
got it! and then doesn't give the answer!)

I found this link:
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
AND even though it was for Tomcat 4 and linux I figured it might have *the* 
answer for me. It did.

I needed to run tomcat as the tomcat user (this involved changing the 
ownership of the tomcat directory  files as I'd already set it up as 
root). While the ENV variables were being set in the /etc/init.d/tomcat 
script and EXPORTED -- they weren't making it to catalina.sh. I explicitly 
set JAVA_HOME, CLASSPATH, PATH in setclasspath.sh.

CLASSPATH is set thusly in setclasspath.sh:
CLASSPATH=$JAVA_HOME/lib/tools.jar
It seems to add to the already setup CLASSPATH in the startup script.  PATH 
needed to include $JAVA_HOME/bin, $CATALINA_HOME/bin and $JRE_HOME/bin. 
Suddenly the java compiler was found!

Now I'm on to my next error in the jsp examples (repeat tag):
 StandardWrapperValve[org.apache.jsp.jsp2.simpletag.repeat_jsp]: Servlet.serv
ice() for servlet org.apache.jsp.jsp2.simpletag.repeat_jsp threw exception
java.lang.NoSuchFieldError: _jspx_page_context
Do I need to add a jar file to my CLASSPATH?

thanks all!

erin

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


Loading JDBC driver with jdbc.drivers property

2004-03-23 Thread RobWunderlich




With  Tomcat 4 or 5, with JDK 1.4, I cannot load my JDBC drive from a *.jar
in shared\lib, unless that driver has already been loaded by a webapp class
using Class.forName(). I normally use the system property
jdbc.drivers=xxx mechanism to allow java.sql.DriverManager to load the
driver. For this mecahnism to work, it appears I have to put the JDBC
Driver jar in either common\endorsed or the system classpath. Is this
working as designed? Is there any problem with putting my jdbc jar in the
common\endorsed dir?

Thanks,
Rob Wunderlich


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



RE: AJP13 errors with Tomcat

2004-03-23 Thread Reis, Tom
I guess my problem is I don't know exactly what to configure. Is there any
documentation or anything on this.

-Original Message-
From: E Cunningham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 12:06 PM
To: Tomcat Users List
Subject: Re: AJP13 errors with Tomcat



The error is basically stating that IIS can not write
to the AJP13 socket.
This is probably a result of a configuration problem.


--- Reis, Tom [EMAIL PROTECTED] wrote:
   I am running Tomcat version 4.0.4 with IIS 5.0 with
 tha AJP13
 connector. I am receiving the following message in
 the error log and was
 trying to understand what it means I would
 appreciate any help. Thanks.
 
 [Mon Mar 22 22:43:52 2004]  [jk_ajp13_worker.c
 (381)]: Error
 ajp13_process_callback - write failed
 [Mon Mar 22 22:43:52 2004]  [jk_isapi_plugin.c
 (498)]:
 jk_ws_service_t::write, WriteClient failed
 

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


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

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



Tomcat's default web.xml

2004-03-23 Thread Schalk
Hi there

 

Can anyone point to a place where I can see the basic layout of the Tomcat
web.xml. The located at TOMCAT_HOME/conf/web.xml

 

Kind Regards

Schalk Neethling

Web Developer.Designer.Programmer.President

Volume4.Development.Multimedia.Branding

emotionalize.conceptualize.visualize.realize

Tel: +27125468436

Fax: +27125468436

email:[EMAIL PROTECTED]

web: www.volume4.com

 

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

 



RE: Tomcat's default web.xml

2004-03-23 Thread Schalk
The reason I ask this is, I am very comfortable with the web.xml structure
and use it on a daily basis but, I am currently developing a site for a
client hosted by a third party and there seems to be a problem with
processing JSP's.

When you click on a link to a JSP page, it start to load in the status bar
but the page never shows up. I have even left it to try and load it for more
that an hour with no success.

Therefore I am trying to see whether their web.xml is set-up correctly to
process JSP's.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, March 23, 2004 9:02 PM
:: To: [EMAIL PROTECTED]
:: Subject: Tomcat's default web.xml
:: Importance: High
:: 
:: Hi there
:: 
:: 
:: 
:: Can anyone point to a place where I can see the basic layout of the
Tomcat
:: web.xml. The located at TOMCAT_HOME/conf/web.xml
:: 
:: 
:: 
:: Kind Regards
:: 
:: Schalk Neethling
:: 
:: Web Developer.Designer.Programmer.President
:: 
:: Volume4.Development.Multimedia.Branding
:: 
:: emotionalize.conceptualize.visualize.realize
:: 
:: Tel: +27125468436
:: 
:: Fax: +27125468436
:: 
:: email:[EMAIL PROTECTED]
:: 
:: web: www.volume4.com
:: 
:: 
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
:: 
:: 




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



Simulation of POST HTTP (I can not use a GET)

2004-03-23 Thread Narciso Rodrigues
Hi there...
I see your post on TomCat User List
 
If you mean simulate a POST HTTP operation, that's significantly
more complicated so I won't go into it unless that's what you really want.
 
Yoav Shapira
And i need help on this
 
I'm trying to do a post  from a servlet to another servlet but, does not
work I 
 
The servlet that make de POST have this code
   
 {
String event;
event = request.getParameter(event-source);
URL url = new URL( http, localhost, , /servletDEST);
URLConnection connection = url.openConnection();
((HttpURLConnection)connection).setRequestMethod( POST);
connection.setDoInput( true);
connection.setDoOutput( true);
OutputStreamWriter out = new
OutputStreamWriter(connection.getOutputStream());
out.write( event-source=+evento+event-name=+comando);
out.write( \r\n);
out.flush();
out.close();

  }
But this don't work. He do not make de post into the servlet /servletDEST
If I make a post from a FORM in a browser no problem... but if I use this
code, just don't work... and I need to make a Post from a servlet..
 
Thks.
 
./narciso
 


RE: Simulation of POST HTTP (I can not use a GET)

2004-03-23 Thread Shapira, Yoav

Howdy,

The servlet that make de POST have this code

 {
String event;
event = request.getParameter(event-source);
URL url = new URL( http, localhost, ,
/servletDEST);
URLConnection connection = url.openConnection();
((HttpURLConnection)connection).setRequestMethod( POST);
connection.setDoInput( true);
connection.setDoOutput( true);
OutputStreamWriter out = new
OutputStreamWriter(connection.getOutputStream());
out.write( event-source=+evento+event-name=+comando);
out.write( \r\n);
out.flush();
out.close();

Is there a connect() call somewhere in there?  After openConnection and
setting your various parameters, but before getting the output stream,
call URLConnection#connect() explicitly.  Maybe that'll make a
difference.

If all you're doing is writing the event-source and event-name
parameters on the URL, why not do a GET request?

Yoav Shapira



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


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



RE: tomcat certificate

2004-03-23 Thread Mark Thomas
Which version of tomact are you using?

Mark

 -Original Message-
 From: Idoia Murua Belacortu [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 23, 2004 5:00 PM
 To: Tomcat Users List
 Subject: RE: tomcat certificate
 
 
 I have configured the files as you said in the e-mail, but 
 when I start
 Tomcat I get the following error in catalina.out file:
  Exception creating UserDatabase MBeans for UserDatabase
 javax.management.MalformedObjectNameException:  Invalid  
 character  '='  in
 value part of property
 
 And it is because of the following property value in the 
 tomcat-users.xml
 file:
 username=CN=Mark Thomas, OU=WWW, O=XXX, L=YYY, ST=ZZZ, C=GB
 It seems tomcat does not like the ´=' character inside a 
 property value.
 I have also tried writing:
 username=CN\=Mark Thomas, OU\=WWW, O\=XXX, L\=YYY, ST\=ZZZ, C\=GB
 But I still get the same error.
 
 Don´t you get the same error message? How can I avoid this?
 
 Thanks in advance and regards,
 Idoia
 
 
 
 
   
   

   Mark Thomas   
   

   [EMAIL PROTECTED]Para: 
 'Tomcat Users List' [EMAIL PROTECTED]
 
   cc:
   

Asunto:   RE: 
 tomcat certificate
 
   18/03/04 20:46  
   

   Por favor,  
   

   responda a  
   

   Tomcat Users   
   

   List   
   

   
   

   
   

 
 
 
 The important files are:
 server.xml:
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=100 debug=0 scheme=https secure=true
useURIValidationHack=false 
 disableUploadTimeout=true
   Factory className
 =org.apache.coyote.tomcat4.CoyoteServerSocketFactory
keystoreFile=conf/.keystore
clientAuth=false protocol=TLS /
 /Connector
 ...
 Realm className=org.apache.catalina.realm.MemoryRealm /
 
 tomcat-users.xml:
   user username=CN=Mark Thomas, OU=WWW, O=XXX, L=YYY, ST=ZZZ, C=GB
 password=null roles=tomcat,certs/
 
 web.xml:
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !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
 
 display-nameBug 12218/display-name
 description
   Test web app for bug 12218.
 /description
 
 security-constraint
  web-resource-collection
  web-resource-nameApp/web-resource-name
  url-pattern/protected.jsp/url-pattern
  /web-resource-collection
  auth-constraint
  role-nametomcat/role-name
  /auth-constraint
  user-data-constraint
  
 transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint
 
 login-config
   auth-methodCLIENT-CERT/auth-method
 /login-config
 
 security-role
   role-nametomcat/role-name
 /security-role
 
 /web-app
 
 
 The steps I tend to follow when setting this sort of thing up are:
 1. Build simple two page web app.
 2. Configure one page to require basic authentication
 3. Test basic auth - checks tomcat-users.xml and realm set up 
 correctly
 4. Configure SSL
 5. Test http://localhost:8443/ - checks SSL set up
 6. Test app with SSL - not really necessary but best to double check
 7. Reconfigure app to use CLIENT-CERT
 
  -Original Message-
  From: Idoia Murua Belacortu [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 18, 2004 8:01 AM
  To: Tomcat Users List
  Subject: RE: tomcat certificate
 
 
  Could you send us a sample of that web.xml file?
  I  am  

RE: Loading JDBC driver with jdbc.drivers property

2004-03-23 Thread FRANCOIS Dufour
wel sory for my bad english simply copy  
mysql-connector-java-3.0.10-stable-bin available from mysql
download page under your comon/lib folder and under you app/lib folder
your config file should look like this
DRIVERcom.mysql.jdbc.Driver/DRIVER
URLjdbc:mysql://localhost:port/database/URL
LOGINroot/LOGIN
PASSWORD/PASSWORD

ive tried it under tomcat 4 and 5 both were working perfectly

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc
mandrake 9.1 running and connected



From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Loading JDBC driver with jdbc.drivers property
Date: Tue, 23 Mar 2004 10:49:19 -0800




With  Tomcat 4 or 5, with JDK 1.4, I cannot load my JDBC drive from a *.jar
in shared\lib, unless that driver has already been loaded by a webapp class
using Class.forName(). I normally use the system property
jdbc.drivers=xxx mechanism to allow java.sql.DriverManager to load the
driver. For this mecahnism to work, it appears I have to put the JDBC
Driver jar in either common\endorsed or the system classpath. Is this
working as designed? Is there any problem with putting my jdbc jar in the
common\endorsed dir?
Thanks,
Rob Wunderlich
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Messenger : discutez en direct avec vos amis !  
http://messenger.fr.msn.ca/

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


RE: tomcat 3.3.1 takes a high time for Minor GC

2004-03-23 Thread Larry Isaacs
I'm not a GC expert, so please note that the following
speculation is based upon memories of some GC document I
read a while back.  I vaguely recall that GC performance
drops if the survivor space fills up while collecting the
young generation.  I think the result is that what might
have been short-lived objects instead get pushed into the
tenured generation because they weren't short-lived enough.

From your log output I note that about the 231968 mark, the
time between GCs drops dramatically.  Evidentially the rate
of garbage generation has substantially increased.  I believe
if the rate is too high, temporary objects get tenured for
the reason stated above.  Handling these tenured temporary
objects adds to the GC time.  Even more so if they are small
and lots of them.

It may help to try to determine what has caused the generation
of garbage to increase so much.  If a culprit is found, reducing
the amount of garbage is the best way to improve performance.
If that isn't possible, then GC tuning may be your only
alternative.

I'm not aware of anything in Tomcat 3.3.1 that would account
for such garbage generation.  One of Tomcat 3.3.x's strengths
over Tomcat 3.2.x is the reduced garbage generation from the
overhead of handling requests.

I have experienced the pleasure of watching Optimizeit show me
how a JSP page, via some support classes, was creating ~3.7Gb
of StringBuffer/String/char[] data.  This made finding what to
fix much easier.  I don't know in your case if you will need a
profiler to get a good picture of where the garbage is coming
from.

HTH.

Cheers,
Larry

 -Original Message-
 From: Akash Jauhar [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 23, 2004 12:53 PM
 To: Tomcat Users List
 Subject: tomcat 3.3.1 takes a high time for Minor GC
 
 
 Hi All
 
 Cisco CNAMS application runs on the following platform
 OS: Solaris 9
 Webserver: Apache 1.3.27
 JDK: JDK 1.4.2 build 28
 Servlet Engine: tomcat 3.3.1a
 
 We are noticing some weird GC behaviour when the tomcat does 
 Minor GC. I
 am pasting some garbage collection logs below
 
 231867.984: [GC 231867.985: [DefNew: 127232K-3840K(127232K), 
 0.1125831
 secs] 288818K-170206K(350384K), 0.1128485 secs]
 231946.970: [GC 231946.970: [DefNew: 127232K-3840K(127232K), 
 0.1348222
 secs] 293598K-177196K(350384K), 0.1350464 secs]
 231968.052: [GC 231968.052: [DefNew: 127232K-3840K(127232K), 
 0.1818662
 secs] 300588K-182066K(350384K), 0.1821628 secs]
 231969.314: [GC 231969.315: [DefNew: 127232K-3543K(127232K), 
 16.4172505
 secs] 305458K-185389K(350384K), 16.4175191 secs]
 231987.248: [GC 231987.248: [DefNew: 126935K-3840K(127232K), 
 10.7419554
 secs] 308781K-189356K(350384K), 10.7422411 secs]
 231999.225: [GC 231999.225: [DefNew: 127232K-3840K(127232K), 
 16.1320322
 secs] 312748K-196413K(350384K), 16.1323798 secs]
 232015.949: [GC 232015.950: [DefNew: 127232K-3840K(127232K), 
 42.2998381
 secs] 319805K-201339K(350384K), 42.3001041 secs]
 232058.781: [GC 232058.781: [DefNew: 127232K-3840K(127232K),
 146.5896470 secs] 324731K-206361K(350384K), 146.5898922 secs]
 232206.831: [GC 232206.832: [DefNew: 127232K-3840K(127232K),
 110.785 secs] 329753K-211019K(350384K), 110.7862726 secs]
 232318.209: [GC 232318.209: [DefNew: 127232K-3840K(127232K), 
 68.5541489
 secs] 334411K-215994K(350384K), 68.5544029 secs]
 232387.893: [GC 232387.893: [DefNew: 127232K-3840K(127232K),
 126.8755081 secs] 339386K-221793K(350384K), 126.8757738 secs]
 232515.276: [GC 232515.276: [DefNew: 127232K-3840K(127232K),
 139.7813258 secs]232655.058: [Tenured: 223686K-154822K(223792K),
 278.7132327 secs] 345201K-154822K(351024K), 418.4964431 secs]
 232934.349: [GC 232934.349: [DefNew: 123392K-3840K(127232K),
 164.3069723 secs] 278214K-163782K(385272K), 164.3072616 secs]
 233099.848: [GC 233099.848: [DefNew: 127232K-3840K(127232K), 
 91.4000872
 secs] 287174K-169894K(385272K), 91.4005897 secs]
 233191.652: [GC 233191.652: [DefNew: 127232K-3840K(127232K),
 204.1755072 secs] 293286K-176929K(385272K), 204.1757747 secs]
 233396.272: [GC 233396.272: [DefNew: 127232K-3840K(127232K),
 101.8621946 secs] 300321K-183426K(385272K), 101.8624498 secs]
 
 
 Note how the minor collection takes high GC times 
 (highlighted in bold).
 It takes as high as 204 seconds. We are using the default GC algo both
 for the old generation and the young generation(which happens 
 to be stop
 the world collector for young generation and mark - compact collector
 for the old generation). Our heap size when the tomcat starts 
 is bounded
 by 256 MB on the lower side to 778 MB on the higher side. 
 
 I am unable to understand what would cause tomcat to do GC for such a
 long time esp in the young generation. what is even more wierd is that
 the time between consecutive GC for young generation is 
 almost equal to
 time for which the GC happened . what would cause the young generation
 to fill so quickly.
 
 Anyone has any ideas what is going on ?
 
 -Akash 
 
 


form-based authentication question

2004-03-23 Thread Koes, Derrick
Using Tomcat 4.1.X, I'm attempting to switch a web app from basic auth to
form-based.  I'm having difficulty in one area.  After creating the new form
and posting to j_security_check, I wish to GET my welcome page.  It
appears to be doing this from the URL in the address bar, but the page looks
exactly like my login page.  That is, it seems to have posted to itself.
What's the appropriate way to forward to the welcome page?

 

A working example login page, welcome page, and deployment descriptor would
be appreciated.

 

Thanks,

Derrick

 

 

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


RE: form-based authentication question

2004-03-23 Thread Koes, Derrick


It may be good for someone to answer this, but I figured out my problem.  I
accidentally used the login page name where the welcome page name should
have been in the servlet configuration.

Cockpit error.



-Original Message-
From: Koes, Derrick 
Sent: Tuesday, March 23, 2004 2:49 PM
To: '[EMAIL PROTECTED]'
Subject: form-based authentication question

Using Tomcat 4.1.X, I'm attempting to switch a web app from basic auth
to
form-based.  I'm having difficulty in one area.  After creating the new
form
and posting to j_security_check, I wish to GET my welcome page.  It
appears to be doing this from the URL in the address bar, but the page
looks
exactly like my login page.  That is, it seems to have posted to itself.
What's the appropriate way to forward to the welcome page?

 

A working example login page, welcome page, and deployment descriptor
would
be appreciated.

 

Thanks,

Derrick

 

 

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

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



default Locale, how to set or change

2004-03-23 Thread Paul
how does the default Locale get set in Java 1.4 / Tomcat 4.x?

having an issue with real numbers displaying with commas instead of period for decimal 
separator.
currently have en_CA locale, but want en_US locale.

-paul.


Re: ClassNotFoundException implementing new WebappLoader

2004-03-23 Thread Antonio Fiol Bonnín
Did you have your class in .../server/classes/com/spss/catalina/loader 
or directly in .../server/classes ?

If it was the former, it would probably be interesting to file a bug on 
that.

Antonio Fiol

Setera, Craig wrote:

Yoav,

I didn't even think to try using a jar file because it should have been the same.  But, it turns out that a jar file works in this case for some reason.  Thanks for the tip.

Craig

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 11:20 AM
To: Tomcat Users List
Subject: RE: ClassNotFoundException implementing new WebappLoader



Hi,
Hmm... I'd guess it should go in the same repository as the normal WebappLoader, which 
is $CATALINA_HOME/server/lib. $CATALINA_HOME/server/classes should be functionally 
equivalent for unpacked classes, so it's strange you get the CNFE when you put your 
loader there.  Try packaging your loader in a jar file and putting that jar in 
server/lib.
Yoav Shapira
Millennium Research Informatics
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




smime.p7s
Description: S/MIME Cryptographic Signature


RE: tomcat 3.3.1 takes a high time for Minor GC

2004-03-23 Thread Akash Jauhar
Larry

Thanks for the note. A few questions
A) my understanding of GC makes me think that no garbage can be
generated when young generation is being collected. As mentioned that
for young generation we use the default stop the world collector. When
that happens all other application threads stop. Hence no garbage can be
generated. Can you explain why do you think that more garbage can be
created (to fill the survivor space). Is my understanding of stop the
world garbage collector incorrect

Thanks for letting me know

Akash Jauhar
Sapient

YIM: akashjauhar
AIM: akashjauhar
e-mail: [EMAIL PROTECTED]



-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 12:39 PM
To: Tomcat Users List
Subject: RE: tomcat 3.3.1 takes a high time for Minor GC


I'm not a GC expert, so please note that the following
speculation is based upon memories of some GC document I
read a while back.  I vaguely recall that GC performance
drops if the survivor space fills up while collecting the
young generation.  I think the result is that what might
have been short-lived objects instead get pushed into the
tenured generation because they weren't short-lived enough.

From your log output I note that about the 231968 mark, the
time between GCs drops dramatically.  Evidentially the rate
of garbage generation has substantially increased.  I believe
if the rate is too high, temporary objects get tenured for
the reason stated above.  Handling these tenured temporary
objects adds to the GC time.  Even more so if they are small
and lots of them.

It may help to try to determine what has caused the generation
of garbage to increase so much.  If a culprit is found, reducing
the amount of garbage is the best way to improve performance.
If that isn't possible, then GC tuning may be your only
alternative.

I'm not aware of anything in Tomcat 3.3.1 that would account
for such garbage generation.  One of Tomcat 3.3.x's strengths
over Tomcat 3.2.x is the reduced garbage generation from the
overhead of handling requests.

I have experienced the pleasure of watching Optimizeit show me
how a JSP page, via some support classes, was creating ~3.7Gb
of StringBuffer/String/char[] data.  This made finding what to
fix much easier.  I don't know in your case if you will need a
profiler to get a good picture of where the garbage is coming
from.

HTH.

Cheers,
Larry

 -Original Message-
 From: Akash Jauhar [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 23, 2004 12:53 PM
 To: Tomcat Users List
 Subject: tomcat 3.3.1 takes a high time for Minor GC
 
 
 Hi All
 
 Cisco CNAMS application runs on the following platform
 OS: Solaris 9
 Webserver: Apache 1.3.27
 JDK: JDK 1.4.2 build 28
 Servlet Engine: tomcat 3.3.1a
 
 We are noticing some weird GC behaviour when the tomcat does 
 Minor GC. I
 am pasting some garbage collection logs below
 
 231867.984: [GC 231867.985: [DefNew: 127232K-3840K(127232K), 
 0.1125831
 secs] 288818K-170206K(350384K), 0.1128485 secs]
 231946.970: [GC 231946.970: [DefNew: 127232K-3840K(127232K), 
 0.1348222
 secs] 293598K-177196K(350384K), 0.1350464 secs]
 231968.052: [GC 231968.052: [DefNew: 127232K-3840K(127232K), 
 0.1818662
 secs] 300588K-182066K(350384K), 0.1821628 secs]
 231969.314: [GC 231969.315: [DefNew: 127232K-3543K(127232K), 
 16.4172505
 secs] 305458K-185389K(350384K), 16.4175191 secs]
 231987.248: [GC 231987.248: [DefNew: 126935K-3840K(127232K), 
 10.7419554
 secs] 308781K-189356K(350384K), 10.7422411 secs]
 231999.225: [GC 231999.225: [DefNew: 127232K-3840K(127232K), 
 16.1320322
 secs] 312748K-196413K(350384K), 16.1323798 secs]
 232015.949: [GC 232015.950: [DefNew: 127232K-3840K(127232K), 
 42.2998381
 secs] 319805K-201339K(350384K), 42.3001041 secs]
 232058.781: [GC 232058.781: [DefNew: 127232K-3840K(127232K),
 146.5896470 secs] 324731K-206361K(350384K), 146.5898922 secs]
 232206.831: [GC 232206.832: [DefNew: 127232K-3840K(127232K),
 110.785 secs] 329753K-211019K(350384K), 110.7862726 secs]
 232318.209: [GC 232318.209: [DefNew: 127232K-3840K(127232K), 
 68.5541489
 secs] 334411K-215994K(350384K), 68.5544029 secs]
 232387.893: [GC 232387.893: [DefNew: 127232K-3840K(127232K),
 126.8755081 secs] 339386K-221793K(350384K), 126.8757738 secs]
 232515.276: [GC 232515.276: [DefNew: 127232K-3840K(127232K),
 139.7813258 secs]232655.058: [Tenured: 223686K-154822K(223792K),
 278.7132327 secs] 345201K-154822K(351024K), 418.4964431 secs]
 232934.349: [GC 232934.349: [DefNew: 123392K-3840K(127232K),
 164.3069723 secs] 278214K-163782K(385272K), 164.3072616 secs]
 233099.848: [GC 233099.848: [DefNew: 127232K-3840K(127232K), 
 91.4000872
 secs] 287174K-169894K(385272K), 91.4005897 secs]
 233191.652: [GC 233191.652: [DefNew: 127232K-3840K(127232K),
 204.1755072 secs] 293286K-176929K(385272K), 204.1757747 secs]
 233396.272: [GC 233396.272: [DefNew: 127232K-3840K(127232K),
 101.8621946 secs] 300321K-183426K(385272K), 101.8624498 secs]
 
 
 Note how the minor collection takes high GC 

Fw: default Locale, how to set or change

2004-03-23 Thread Paul
it is alright, found answer myself, as follows:

forced the locale setting for Tomcat/Java by adding following lines to the file 
named, workers2.properties
OPT=-Duser.language=en
OPT=-Duser.region=US


- Original Message - 
From: Paul 
To: Tomcat Users List 
Sent: Tuesday, March 23, 2004 4:01 PM
Subject: default Locale, how to set or change


how does the default Locale get set in Java 1.4 / Tomcat 4.x?

having an issue with real numbers displaying with commas instead of period for decimal 
separator.
currently have en_CA locale, but want en_US locale.

-paul.


JK2 Connections from Apache2 URL Rewriting

2004-03-23 Thread Peter Johnson

I have been reading through
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ and other sources
via google trying to work out the best way of mapping live URLs to
specific webapps. e.g.

Map www.mydomain.com/myshortcut - www.domain.com/mywebapp/subpath/url

My environment is Apache2 mod_jk2 and Tomcat 5.

So far I have implemented it using mod_proxy in apache as
RewriteRule ^/myshortcut(.*)
http://www.domain.com/mywebapp/subpath/url$1 [P]

However I don't feel that this a clean solution. Does Tomcat5 or JK2
support some form of URI mapping / aliasing? e.g. Resin has an alias
directive.

Thanks in advance,
Peter


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



  1   2   >