Re: Session Timeout and Direct Reference to login page

2004-05-27 Thread Veniamin Fichin
Jonathan Eric Miller wrote:
The strange thing is that this page seems to only intermittently be
displayed. i.e. it is catching the case where the session expires, but, in
some cases since I'm using container based security, it is going back to the
login page. Sometimes it goes to this page first, and then brings up the
login page. Other times, it just goes straight to the login page. I need to
look into it further. I have SingleSignOn enabled, so, I'm not sure if that
   May be it's working so fast you sometimes don't notice this 
redirection, and sometimes do?

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


RE: RE: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-27 Thread Pavle

Try to make kill -QUIT on the tomcat process. This will make a thread dump. Most 
probaly the Thread dum will appear in the catalina.out

Check there to see if some of your threads are halting in some point in your code.

Pavle


-Original Message-
From: Antonio Fiol Bonnn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 8:35 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.30 Hung!!! With High Traffic

Innovest Ken wrote:

I only use tomcat, without using Apache... Because my
site are mainly jsp.

Yes, I have a script to kill the tomcat server before
starting again. And yes, I saw the 'All threads(150)
are busy' error message.

Innovest




As Denise said, you seem to be maxing out your threads.

Possible reasons include, but are most likely not limited to:

- Too high load.
--- Check with netstat -n --tcp if there are about so many (150)
ESTABLISHED connections. If so, your load is too high. If not, suspect
on servlets taking too long to respond and clients going away.

- Servlet instances not finishing execution of doGet or doPost or whatever.
--- Trace their starts and ends (possibly using a filter), and detect
whether the number of still executing servlets is steadily increasing
or not. If so, it will raise 150 and then you'll start getting errors
and Tomcat will start not responding. The thread dump should tell you
where the processors are stuck. Most of them in the same place? Then you
know where to look at.

- Database connections not working properly because of the firewall.
--- Not only you have to check that your app is using connections
properly, but also that your firewall does not drop them. There are some
properties for DBCP (testWhileIdle, validationQuery, and all the
eviction series, which I do not remember off-hand) that will help you
attack this problem. Set testWhileIdle, and make it test connections
every so often (say 3-5 minutes). Use a very simple query like SELECT 1
FROM DUAL (Oracle) or SELECT 1 (others that support it). This will
refresh your firewall's activity maps. Also check that your firewall
supports as many concurrent conenctions traversing it as you have (more
than likely it does, but would be fatal if it does not).

HTH,

Antonio Fiol



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



Verifying signatures

2004-05-27 Thread Justin Jaynes
I recently downloaded TOMCAT 5 and I read that I am
responsible to verify the integrity of the download
from the mirror using some key or signature.  How do I
do that?  I am running SuSE linux 9.1.

Please be specific.  What key's or signatures or
checksums do I download?  Where do I place them?  What
commands do I type?

I hope this is not a stupid question.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



standalone production?

2004-05-27 Thread Justin Jaynes
Is it considered safe to run tomcat as a stand-alone
production server on ports 80 and 443?  This requires
tomcat to run as root (or so I have read) and it is
therefore not recommended.  Using apache forks child
processes that run as nobody.  But I don' want to use
apache.  Again, is it safe to run tomcat as a
stand-alone production server on port 80 and 443 as
root?  Or is there some way to deny root permissions
and still use these ports?




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



JspWriter output disappearing

2004-05-27 Thread Keith Hankin
I have a custom taglib class that extends BodyTagSupport. The doStartTag() method 
returns EVAL_BODY_BUFFERED. I then have another custom taglib class that is a child of 
this tag, which extends TagSupport. In doStartTag(), this method gets the JspWriter 
and writes to it, however the output does not appear to come out. This child custom 
taglib does not even refer to the parent tag in any way. However if I remove the 
containing parent tag from the JSP page, the output *does* come out. I am using Tomcat 
5.0.19.



RE: standalone production?

2004-05-27 Thread Shane Linley
What I think you need to consider is the risk of running TC in this manner
dependant on where and what the TC instance is being deployed for.

The risk MAY be acceptable if you are intending on running a TC instance
internally on an intranet or something similar, as then you only have to
worry about internal threats to its operation. (Considering that your
external defenses [if you have an external access point] are up to the task
of keeping attackers out from the outside) But lets not forget that a large
proportion of attacks do come internally.

If you are running this TC in an internet facing environment it is generally
considered good practice to have a proxy of some sort for the TC instance in
an DMZ and have the TC running behind the DMZ protected (hopefully) from
most attacks. Putting an application server into the DMZ is generally
considered a bad practice due to the impact that can be had should an
attacker compromise it (of course dependant on the relative risk of having
it there).

Also you need to consider what exactly this TC is doing, and what risk is
posed by its operation being modifed/destroyed by an attacker and what the
impact of such a event could be. Once you know your risk on running it this
way then you can decide whether this configuration is safe for you or not.
Of course you should always aim to reduce your risk (and the exposure caused
by the risk) but balanced against the costs of implementing and maintaining
a highly secure system.

If you have system admins and whatnot for your production server then they
should know alot about this already and can help you out deciding what to
do.

Regards,
Shane.

-Original Message-
From: Justin Jaynes [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 May 2004 2:46 PM
To: [EMAIL PROTECTED]
Subject: standalone production?


Is it considered safe to run tomcat as a stand-alone
production server on ports 80 and 443?  This requires
tomcat to run as root (or so I have read) and it is
therefore not recommended.  Using apache forks child
processes that run as nobody.  But I don' want to use
apache.  Again, is it safe to run tomcat as a
stand-alone production server on port 80 and 443 as
root?  Or is there some way to deny root permissions
and still use these ports?




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

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


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



RE: standalone production?

2004-05-27 Thread Justin Jaynes
I am intending to run in a fully internet exposed
environment and I only have ONE physical machine to
use for deployment.  It will be directly connected to
the internet at co-location service provider.  So ...

In a conversation from yesterday, it appears another
user had a similar question.  How to run on port 80,
securly.

Is it possible to run tomcat with a non-priviliged
user?  What is this JSVC approach they referred to,
and what is the solution that was given?  Where can I
go to read more?

OK, I've been running tomcat behind apache for ages,
and
 now I want to go with Yoav's oft-stated advice to
just
 use tomcat (5.0.24) alone.  And I want it on port
80.
 
 So, I try to use the jsvc approach, telling it to
go to
 the nonprivileged tomcat user by (from the tomcat
site):
 
 ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed
-cp
./bin/bootstrap.jar \
  -outfile ./logs/catalina.out -errfile
./logs/catalina.err \
  org.apache.catalina.startup.Bootstrap
-user tomcat
 
 However, that chokes as follows, as it apparently
can't use port
 80 as I'm wanting it to.
 
 I'm sure this must be trivial, but all help would
be
 appreciated!





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Réf. : Re: Réf. : mod_jk error with Apache 2.0.49

2004-05-27 Thread meissa . Sakho

You've built jk2. that's ok. Your load instruction is not correct.
your httpc.conf contains LoadModule jk_module modules/mod_jk.so
instead ofLoadModule jk2_module modules/mod_jk2.so
The set of instructions I send to you must work.
You are using apache 2 and jk2. And the instructions you set
are for jk (not jk2)

___
NATEXIS ASSET MANAGEMENT
Meissa SAKHO
01 58 19 45 71. . . . . . . . . . . . (84571)
[EMAIL PROTECTED]




Barry Roberts [EMAIL PROTECTED]
26/05/2004 17:54
Veuillez répondre à Tomcat Users List


Pour :  Tomcat Users List [EMAIL PROTECTED]
cc :
Objet : Re: Réf. : mod_jk error with Apache 2.0.49


What do you mean the right one?  I built jk2 from the
jakarta-tomcat-connectors-jk2-src-current.tar.gz tarball.  Is that
right?

The problem I'm having with jk2 is a known issue
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28790).  I would love
to see that one figured out, but right now I would settle for just
getting jk1 to work.

I compiled a modified mod_jk.so and inside get_map (jk_map.c) the
jk_map_t* passed in is null.  That's why there's no worker found.  I
haven't had time to try and figure out what could cause it to be null.

Thanks,
Barry


On Wed, 2004-05-26 at 01:34, [EMAIL PROTECTED]
wrote:
 Barry,

 make sure you have built the right jk module.

 I've exactly the same config than you.
 Redhat ES 3.0, apache 2.0.49 jk2 and jboss 3.2.3 that
 comes with tomcat 3.2.3

 my httpd.conf file  contains :
 LoadModule jk2_module modules/mod_jk2.so
 IfModule mod_jk2.c
 JKSet config.file /opt/apachessl-2.0.49/inet/conf/workers2.properties
 /IfModule

 the workers2 file may contains
 [shm]
 file=/var/log/apache/inet/jk2.shm
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 # Uri mapping

 [uri:/apps/*]
 worker=ajp13:localhost:8009

 and it works fine.
 ___
 NATEXIS ASSET MANAGEMENT
 Meissa SAKHO
 01 58 19 45 71. . . . . . . . . . . . (84571)
 [EMAIL PROTECTED]




 Barry Roberts [EMAIL PROTECTED]
 25/05/2004 21:14
 Veuillez répondre à Tomcat Users List


 Pour :  [EMAIL PROTECTED]
 cc :
 Objet : mod_jk error with Apache 2.0.49


 I'm trying to get mod_jk working with apache 2.0.49 built from source on
 RedHat ES 3.0.  I've got the module built and in the modules directory,
 and my httpd.conf contains:

 LoadModule jk_module modules/mod_jk.so

 JkWorkersFile /usr/local/apache2/conf/workers.properties
 JkLogFile /var/log/mod_jk.log
 JkLogLevel debug
 JkMount /apps/* xsappa
 JkMount /admin xsappa

 This is towards the top of the file outside of any virtualhost or
 directory elements (I have also tried putting this at the bottom of
 the file).

 My workers.properties is:


 worker.list=xsappa

 worker.xsappa.port=139
 worker.xsappa.host=192.168.2.42
 worker.xsappa.type=ajp13
 worker.xsappa.lbfactor=1

 Every time I try to hit a servlet or jsp I get the following in my
 mod_jk.log:
 [Tue May 25 12:45:38 2004]  [jk_worker.c (136)]: wc_get_worker_for_name,
 done did not found a worker

 And of course a 500 in the browser.

 The tomcat server works fine.  I can put jk2 into the web server and it
 mostly works (I get Broken Pipe exceptions when I KNOW it's not a user
 pressing cancel in the browser, but that's another issue).  I can hit
 the tomcat server on port 8080 and it's just fine.

 I can't use jk2 because of the spurious broken pipes, and now I can't
 get jk1 working at all.  I have this suspicion that I'm missing
 something obvious, but I can't find it.

 Any help would be greatly appreciated.

 Thanks,
 Barry Roberts


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





 L'integrite de ce message n'etant pas assuree sur internet, Natexis
 Banques Populaires ne peut etre tenu responsable de
 son contenu. Toute utilisation ou diffusion non autorisee est
 interdite. Si vous n'etes pas destinataire de ce message, merci de le
 detruire et d'avertir l'expediteur.

 The integrity of this message cannot be guaranteed
 on the Internet. Natexis Banques Populaires can not therefore be
 considered responsible for the contents.Any unauthorized use or
dissemination is prohibited.
 If you are not the intended recipient of this message, then please
delete it and
 notify the sender.

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





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed

Fedora Core 2 and mod_jk2

2004-05-27 Thread Lars Nielsen Lind
Hi.

I have problems with mod_jk2 2.0.4 and Fedora Core 2.

I use Jakarta-Tomcat 4.1.30, Apache 2.0.49, OpenSSL 0.9.7d and J2SDK 1.4.2_04. I am 
able to execute *.html files from the server - but I cannot execute JSP files.

Previously I have used mod_jk2 2.0.2 and Fedora Core 1. I used to compile mod_jk2 this 
way:

1.) ./buildconf.sh
2.) /configure --with-apxs2=/opt/apache-2.0.49/bin/apxs 
--with-tomcat41=/opt/jakarta-tomcat-4.1.30 --with-java-home=/opt/j2sdk1.4.2_04 
--with-jni
3.) make


Are the any known problems that I should be aware of?

Any one that have the/a solution?


Lars Nielsen Lind


RE: apache2+tomcat5.0.19+mod_jk in-process

2004-05-27 Thread Dale, Matt

I think the problem is entirely on non-windows platforms. JVM autodetection doesnt 
even work unless on windows.

Ta
Matt

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 20:16
To: Tomcat Users List
Subject: Re: apache2+tomcat5.0.19+mod_jk in-process



Thist is my working example

a)  I used JVM autodetection
b) configured the jni channel
c)  add tools.jar for compiling jsp's

[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
#OPT=-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
OPT=-Xmx32m
OPT=-Xms32m
OPT=-Djava.home=D:/java/j2sdk1.4.2_03
OPT=-Dcatalina.home=D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build
OPT=-Djava.class.path=D:/java/j2sdk1.4.2_03/lib/tools.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/server/lib/tomcat-jni.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/bin/jmx.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/bin/bootstrap.jar
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=startd
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=stopd
disabled=0


I hope this help.

regards
peter

Timothy Suh schrieb:

I am now using Tomcat5.0.25 as you suggested but still getting same 
error. I don't think Apache is even getting to the part where it starts 
calling Tomcat (TomcatStarter) because the same error is generated when 
I completely remove Tomcat5.0.25 binary distribution from my machine.
I am thinking the solution is in my workers2.properties file but not 
sure what it is.

Here is my configuration:

$APACHE_HOME/modules
   mod_jk2.so (built from source)
   linjkjni.so (built from source)
$APACHE_HOME/conf
   workers2.properties
$TOMCAT_HOME/conf
   jk2.properties

workers2.properties contain (some unrelated properties omitted)

[uriMap:]

[shm:]
disabled=1

[channel.jni:jni]
disabled=0

[status:]

[vm:]
JVM=/j2sdk-1.4.2_03/jre/lib/i386/server/libjvm.so
OPT=-server
OPT=-Dtomcat.home=TOMCATHOME
OPT=-Dcatalina.home=TOMCATHOME
OPT=-Xnoclassgc
OPT=-Xcheck:jni
OPT=-verbose
classpath=TOMCATHOME/bin/bootstrap.jar
classpath=TOMCATHOME/common/lib/jmx.jar
classpath=TOMCATHOME/server/lib/commons-modeler.jar
classpath=TOMCATHOME/server/lib/tomcat-jni.jar
classpath=TOMCATHOME/common/lib/servlet-api.jar
OPT=-Xrs

[worker.jni:onStartup]
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0

[worker.jni:onShutdown]
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0

Peter Rossbach wrote on 5/26/2004, 12:27 PM:

  Hello Timothy,
 
  the JNI integration works only with Tomcat Release greater 5.0.20
  and the commands changed to (startd and stopd)
 
  used the coming Tomcat 5.0.25 it is very stable.
  (Must add jmx.jar to your classpath)
 


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

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: Can I change Tomcat's default character encoding?

2004-05-27 Thread rlipi
Thank you for the answer.

I know about this possibility using filters (and I have done something).


But the original question (and my question) is about simpler way: Is it
possible to globally set (somewhere in JVM or Tomcat configuration)
default character encoding for all created Writers?

Lipi


 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 7:45 PM
 To: 'Tomcat Users List'
 Subject: RE: Can I change Tomcat's default character encoding?
 
 Hi, quick response, you can use your own customized
OutputStreamWriter.
 You
 need to extend the abstract class ServletOutputStream.  And you
integrate
 your customized writer with tomcat by implementing a filter.
 
 For more info on how to use filters, you can do a search on google.
 
 This will only work for Tomcat 4 and up, or any other container that
 implement Servlet 2.3 and up.
 
 -Yan
 




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



Re: How does Tomcat manage sesssions ?

2004-05-27 Thread Xavier MOGHRABI
I used that example to write my Manager config. However when the manager 
is nested inside the host it doesn't look to work since I don't have any 
row in my database.
So I nest the manager in a context as below, and I can see my sessions 
in the database.

Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
...
Context path=/jsp-examples 
docBase=${catalina.home}/webapps/jsp-examples debug=10 
privileged=false
   Manager className=org.apache.catalina.session.PersistentManager 
debug=10 saveOnRestart=true checkInterval=1 maxActiveSessions=-1 
minIdleSwap=-1 maxIdleSwap=0 maxIdleBackup=0
   Store className=org.apache.catalina.session.JDBCStore 
debug=9 
connectionURL=jdbc:sapdb://192.168.1.3/COCHISE?user=DBAamp;password=DBA 
  driverName=com.sap.dbtech.jdbc.DriverSapDB
   sessionAppCol=app_name
   sessionDataCol=session_data
   sessionIdCol=session_id
   sessionLastAccessedCol=last_access
   sessionMaxInactiveCol=max_inactive
   sessionTable=DBA.tomcat_sessions
   sessionValidCol=valid_session/
/Manager
/Context
/Host

That solution doesn't pleased me a lot because I want to store the 
session for all deployed context. How can I do that ?

I have an other question : should I write something in my servlet to 
recover a session for example after a crash or does tomcat do it 
automatically ?

Thanks a lot
Xavier
Shapira, Yoav a écrit :
Hi,
 

I've read all the server.xml file and there is no marks of the Manager
configuration.
   

The example was removed a while ago, but you can still see it in older
versions of server.xml by going to the CVS or downloading an old
release:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/c
onf/server.xml?annotate=1.2 for example has a complete example of a
persistent manager commented out.
 

I saw in the documentation that A Manager element MAY be nested inside
a Context component. And In the server.xml there aren't any contexts.
   

It MAY be nested inside a Context, but doesn't have to be.  It can be
inside a Host or an Engine, both of which are more common than having a
Manager inside a Context.
 

So don't you think that the file to be configured must be
${CATALINA_HOME}\conf\Catalina\localhost\manager.xml ?
   

No, that's for tomcat's Manager webapp, which is not the same thing as
the session Manager.  I realize the names might be confusing.
 

By the way, don't you have an example ?
   

We used to ship one with tomcat in server.xml, so see above for
accessing older versions of that file.
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]

 




How to force only page login SSL and rest NON SSL

2004-05-27 Thread Mariano
Hi everybody

I want to force my page login via SSL, and i did it with:

security-constraint
web-resource-collection
  web-resource-nameSSL/web-resource-name
  url-pattern/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

but when i want validate an user i like to force rest of pages via NON SSL,
i have tried it with other security-constraint:

security-constraint
web-resource-collection
  web-resource-nameAplicacion de IGeSan/web-resource-name
  url-pattern/IGeSan/*/url-pattern
/web-resource-collection
user-data-constraint
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

But when i do the response.sendRedirect(user.getAppPage()); always do it
in SSL mode.

Any ideas.

Thanks

Mariano Lopez


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



Re: Fedora Core 2 and mod_jk2

2004-05-27 Thread Chong Yu Meng
Hi Lars,
You're lucky ! My FC2 system locks up hard when running any kind of 
Java. Complete freeze. I have to reboot the computer using the power 
switch because the keyboard doesn't work. Apparently, there is a known 
problem with running Java on FC2. See this : 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121902

I read somewhere that a possible work around is to use the i586 kernel 
instead of the i686 one. Or you could try with the testing kernel 
released recently, though the changelog doesn't mention a fix for Java yet.

Regards,
pascal chong

Lars Nielsen Lind wrote:
Hi.
I have problems with mod_jk2 2.0.4 and Fedora Core 2.
I use Jakarta-Tomcat 4.1.30, Apache 2.0.49, OpenSSL 0.9.7d and J2SDK 1.4.2_04. I am 
able to execute *.html files from the server - but I cannot execute JSP files.
Previously I have used mod_jk2 2.0.2 and Fedora Core 1. I used to compile mod_jk2 this 
way:
1.) ./buildconf.sh
2.) /configure --with-apxs2=/opt/apache-2.0.49/bin/apxs 
--with-tomcat41=/opt/jakarta-tomcat-4.1.30 --with-java-home=/opt/j2sdk1.4.2_04 
--with-jni
3.) make
Are the any known problems that I should be aware of?
Any one that have the/a solution?
Lars Nielsen Lind
 


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


Re: standalone production?

2004-05-27 Thread Parsons Technical Services
Justin,

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
and
http://marc.theaimsgroup.com/?l=tomcat-userm=108373546715111w=2
and
http://jakarta.apache.org/commons/daemon/
Use directions from the first two. The third is for description of product.

Doug
www.parsonstechnical.com



- Original Message - 
From: Justin Jaynes [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 3:19 AM
Subject: RE: standalone production?


 I am intending to run in a fully internet exposed
 environment and I only have ONE physical machine to
 use for deployment.  It will be directly connected to
 the internet at co-location service provider.  So ...
 
 In a conversation from yesterday, it appears another
 user had a similar question.  How to run on port 80,
 securly.
 
 Is it possible to run tomcat with a non-priviliged
 user?  What is this JSVC approach they referred to,
 and what is the solution that was given?  Where can I
 go to read more?
 
 OK, I've been running tomcat behind apache for ages,
 and
  now I want to go with Yoav's oft-stated advice to
 just
  use tomcat (5.0.24) alone.  And I want it on port
 80.
  
  So, I try to use the jsvc approach, telling it to
 go to
  the nonprivileged tomcat user by (from the tomcat
 site):
  
  ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed
 -cp
 ./bin/bootstrap.jar \
   -outfile ./logs/catalina.out -errfile
 ./logs/catalina.err \
   org.apache.catalina.startup.Bootstrap
 -user tomcat
  
  However, that chokes as follows, as it apparently
 can't use port
  80 as I'm wanting it to.
  
  I'm sure this must be trivial, but all help would
 be
  appreciated!
 
 
 
 
 
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: How to force only page login SSL and rest NON SSL

2004-05-27 Thread Parsons Technical Services
Mariano,

Two thing come to mind:

1. Why not just leave it in SSL?

2. You have a problem of losing the session. When you move from  SSL to NON
SSL page you lose the session and create a new one. This is for security
reasons.

Past that the only thing that come to mind is Single sign on. There are
others more knowledgeable than me on this.

Doug
www.parsonstechnical.com


- Original Message - 
From: Mariano [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 6:37 AM
Subject: How to force only page login SSL and rest NON SSL


 Hi everybody

 I want to force my page login via SSL, and i did it with:

 security-constraint
 web-resource-collection
   web-resource-nameSSL/web-resource-name
   url-pattern/Comun/LoginUsuario.jsp/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint

 but when i want validate an user i like to force rest of pages via NON
SSL,
 i have tried it with other security-constraint:

 security-constraint
 web-resource-collection
   web-resource-nameAplicacion de IGeSan/web-resource-name
   url-pattern/IGeSan/*/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
 /security-constraint

 But when i do the response.sendRedirect(user.getAppPage()); always do it
 in SSL mode.

 Any ideas.

 Thanks

 Mariano Lopez


 -
 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: JK2 connector binary for solaris8

2004-05-27 Thread Kommuru, Bhaskar
Matt,

Thanks for your help so far. Now i am using Mod_jk2.0.2 + Apache2.0.43
+JBoss3.2.3. It is running perfect.

Now my problem is I will have to use 2 apache servers on 2 different
mechines. 

Apach_box_1 has two tomcat/jboss (load balanceing)
Apach_box_2 has two tomcat/jboss (load balanceing)




__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

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



RE: Worker2.properties VS Workers.properties

2004-05-27 Thread Kommuru, Bhaskar
Matt,

Sorry ignore my last mail. I tried to pin point the problem. But i could
not. In fact, I did not clearly understand following properties when i go
through them deeply.

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

[lb:lb_1]
info=A second load balancer.
debug=0

Can any one explain better about this?

Thanks
Bhaskar

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

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



RE: How to force only page login SSL and rest NON SSL

2004-05-27 Thread Mariano
For performance reasons.

I'll take a look at single sign on.

Thanks

Mariano López

-Mensaje original-
De: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 27 de mayo de 2004 13:48
Para: Tomcat Users List; [EMAIL PROTECTED]
Asunto: Re: How to force only page login SSL and rest NON SSL


Mariano,

Two thing come to mind:

1. Why not just leave it in SSL?

2. You have a problem of losing the session. When you move from  SSL to NON
SSL page you lose the session and create a new one. This is for security
reasons.

Past that the only thing that come to mind is Single sign on. There are
others more knowledgeable than me on this.

Doug
www.parsonstechnical.com


- Original Message -
From: Mariano [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 6:37 AM
Subject: How to force only page login SSL and rest NON SSL


 Hi everybody

 I want to force my page login via SSL, and i did it with:

 security-constraint
 web-resource-collection
   web-resource-nameSSL/web-resource-name
   url-pattern/Comun/LoginUsuario.jsp/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint

 but when i want validate an user i like to force rest of pages via NON
SSL,
 i have tried it with other security-constraint:

 security-constraint
 web-resource-collection
   web-resource-nameAplicacion de IGeSan/web-resource-name
   url-pattern/IGeSan/*/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
 /security-constraint

 But when i do the response.sendRedirect(user.getAppPage()); always do it
 in SSL mode.

 Any ideas.

 Thanks

 Mariano Lopez


 -
 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: standalone production?

2004-05-27 Thread RJ
The http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
isn't the way for doing jsvc that I used (it didn't work
right).
You should already have jsvc.tar.gz in the bin dir
for tomcat; unpack it, and follow the instructions
in INSTALL.txt for building jsvc.  There's a page for
it at http://jakarta.apache.org/commons/daemon/jsvc.html
as well.
Then, you use the tomcat/bin/jsvc-src/native/Tomcat5.sh
script to start and stop it, after first editing that
script to get the values in there right.  Mine is
as follows (that $DAEMON_HOME/jsvc-src/jsvc \ one
was important, since it defaulted to a different
directory structure than the one that was created by
my jsvc and tomcat unpacking).
Then I did chown on the files in the tomcat directory
to be my non-root 'tomcat' user, fixed the server.xml
to have non-SSL Coyote HTTP/1.1 Connector on port 80
and SSL Coyote HTTP/1.1 Connector on port 443
and it seems to be working like a champ.
I also got the logging running by un-commenting the
AccessLogValve at the end of server.xml, and changed
the pattern=common to pattern=combined
so I could get apache-type logs like I had before.
MUCH nicer than fooling with those connectors.
Now, if I can only figure out why the 'referer' is
always blank when somebody first hits my site, I'll
be very happy...
rj
#!/bin/sh
##
#
#   Copyright 2004 The Apache Software Foundation.
#
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
##
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the server.xml
# file:
#
#!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
#Connector className=org.apache.catalina.connector.http.HttpConnector
#   port=80 minProcessors=5 maxProcessors=75
#   enableLookups=true redirectPort=8443
#   acceptCount=10 debug=0 connectionTimeout=6/
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/j2sdk1.4.2_03
CATALINA_HOME=/usr/local/tomcat5
DAEMON_HOME=/usr/local/tomcat5/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=-Xms64m -Xmx200m
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
case $1 in
  start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc-src/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap
#
# To get a verbose JVM
#-verbose \
# To get a debug of jsvc.
#-debug \
;;
  stop)
#
# Stop Tomcat
#
PID=`cat /var/run/jsvc.pid`
kill $PID
;;
  *)
echo Usage tomcat.sh start/stop
exit 1;;
esac

At 03:19 AM 5/27/2004, Justin Jaynes wrote:
I am intending to run in a fully internet exposed
environment and I only have ONE physical machine to
use for deployment.  It will be directly connected to
the internet at co-location service provider.  So ...
In a conversation from yesterday, it appears another
user had a similar question.  How to run on port 80,
securly.
Is it possible to run tomcat with a non-priviliged
user?  What is this JSVC approach they referred to,
and what is the solution that was given?  Where can I
go to read more?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to know http port and https port on tomcat

2004-05-27 Thread Mariano
Hi all, can i know which port is using tomcat in http and https in jsp page
or servlet?

This values are sets in server.xml file in coyote connector port, for
example:

Connector port=8080 maxThreads=150  

Connector port=8443 maxTh ... scheme=https  

Thanks

Mariano López


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



RE: How does Tomcat manage sesssions ?

2004-05-27 Thread Shapira, Yoav

Hi,

That solution doesn't pleased me a lot because I want to store the
session for all deployed context. How can I do that ?

Put the Manager inside the Host, not the Context.

I have an other question : should I write something in my servlet to
recover a session for example after a crash or does tomcat do it
automatically ?

Depends on the type of crash.  It's safe to assume if tomcat can't
recover the session, you won't be able to either, so don't waste time
writing such code.

Yoav Shapira



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


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



RE: How to know http port and https port on tomcat

2004-05-27 Thread Shapira, Yoav

Hi,
Use HttpServletRequest#getLocalPort.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mariano [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 8:50 AM
To: 'Tomcat Users List'
Subject: How to know http port and https port on tomcat

Hi all, can i know which port is using tomcat in http and https in jsp page
or servlet?

This values are sets in server.xml file in coyote connector port, for
example:

Connector port=8080 maxThreads=150  

Connector port=8443 maxTh ... scheme=https  

Thanks

Mariano López


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



Betr.: How to know http port and https port on tomcat

2004-05-27 Thread R . Blom
Just 

%  request.getSchem() %

Ron Blom

 




Mariano [EMAIL PROTECTED]
27-05-2004 14:49
Antwoord a.u.b. aan Tomcat Users List

 
Aan:'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Onderwerp:  How to know http port and https port on tomcat


Hi all, can i know which port is using tomcat in http and https in jsp 
page
or servlet?

This values are sets in server.xml file in coyote connector port, for
example:

Connector port=8080 maxThreads=150  

Connector port=8443 maxTh ... scheme=https  

Thanks

Mariano López


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




Do the two Mod_Jk2 servers know each other??

2004-05-27 Thread Kommuru, Bhaskar
Hi friends,

Anyone knows how to use two mod_jks (two apache servers)to load balance
Tomcats.

My problem here is if we configure the two mod_jks to loadbalance four
tomcats,
 
1. Do these two mod_jks know each other? I think, It is important to know
the LOAD kept to one Tomcat by other mod_jk server

2. Or, If they (the two mod_jks) do not know each other, Do they see at
least howmuch is the current LOAD on the Tomcat.

3. And, what does this properties from Worker2.properties means?
   
   [lb:lb]
   info=Default load balancer.
   debug=0

   [lb:lb_1]
   info=A second load balancer.
   debug=0
   
   Does it mean we can use two load balancers (two mod_jks)??

Thanks
Bhaskar

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

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



RE: Verifying signatures

2004-05-27 Thread Shapira, Yoav

Hi,
It's not a stupid question and I bet for your one message there are at
least 1 times this should have been asked and wasn't.  And 10K is a
conservative estimate, not a typo, given the number of tomcat downloads.

The release manager signs the various distros with his (we haven't had a
female release manager yet ;)) PGP key.  The key is in the KEYS file in
the tomcat download directory: click the KEYS link on the binary or
source download pages on jakarta.apache.org next to where it says Tomcat
5.0.25.

I'm not going to give a PGP tutorial: get a free PGP command-line tool
(or graphical one for windows if you wish) such as
http://web.mit.edu/network/pgp.html.  Import the keys from the KEYS file
onto your ring.  In the download directory for tomcat releases, you will
see PGP links next to every download: this is the armored signature file
for the accompanying distro (so the one for tomcat-5.0.25.zip is
different than the one for tomcat-5.0.25.tar.gz for example).  The PGP
program will verify that the signature was indeed done by the key.  That
assures you the file isn't modified and is indeed the one signed by the
release manager.

MD5 is a checksum digest which is another way to assure your
distribution wasn't modified since its release.  You use another
command-line program
(http://www.google.com/search?sourceid=navclientq=md5+windows for
windows for example, most unix systems have one built-in) to verify the
integrity of the distribution.

You do this extra little step or two (after the first time, it takes
seconds literally: both pgp and md5 are extremely fast) to assure
yourself that what you're downloading is indeed the tomcat release and
not some hacked version that has a Runtime.exec(rm -rf /) as part of
the startup script ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Justin Jaynes [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 2:43 AM
To: [EMAIL PROTECTED]
Subject: Verifying signatures

I recently downloaded TOMCAT 5 and I read that I am
responsible to verify the integrity of the download
from the mirror using some key or signature.  How do I
do that?  I am running SuSE linux 9.1.

Please be specific.  What key's or signatures or
checksums do I download?  Where do I place them?  What
commands do I type?

I hope this is not a stupid question.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.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: Revisted: 302 Response When Request URI == Context Path

2004-05-27 Thread Shapira, Yoav

Hi,

After using Tomcat4 for a couple of years, we decided to try Tomcat5
for
our
next release. However, we immediately ran into the problem above.
Search as
I may, I have found little discussion of this problem and no way around
it.
Is there some configuration change that can be made to return to the
Tomcat4
behavior? If not, will there be? If so, is there any time frame?

No, no, no (the answer to the last question is always no).  If you think
a patch is in order, please explain and suggest one (as in submit a code
diff file).

Yoav




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: Re: tomcat 5.0.25 - Problem in running jsp

2004-05-27 Thread Rajesh_Narayanan
didn't read the email telling of the stableness of the 5.0.25... :) 

the error is strangem, since it's generated by jasper (JSP engine) 

it's trying to pass an throwable where is expected an exception, the 
inverse would be ok... 

Rajesh_Narayanan wrote: 
 I tried both... but the result is same... 
 
 Raj 
 
 
5.0.25 
 
 
could it be 5.0.24? 
 
 
Emerson 
 
 
 Rajesh_Narayanan wrote: 
 
When i try to run any .jsp file (even hello world).. its throwing 
 
 following 
 
error: 
 
- 
ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling file: 
/C:/workspace/VCE2/work/org/apache/jsp//org/apache/jsp\hw_jsp.java 
[javac] Compiling 1 source file 
 
C:\workspace\VCE2\work\org\apache\jsp\org\apache\jsp\hw_jsp.java:48: 
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext 
cannot be applied to (java.lang.Throwable) 
if (_jspx_page_context != null) 
_jspx_page_context.handlePageException(t); 
  ^ 
1 error 
-- 
 
Am I missing any .jar?... 
 
Your help is appreciated. 
 
Thanks 
**

 
 
This email (including any attachments) is intended for the sole use of the

 
 
intended recipient/s and may contain material that is CONFIDENTIAL AND 
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying 
 
 or 
 
distribution or forwarding of any or all of the contents in this message 
 
 is 
 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact

 
 
the sender by email and delete all copies; your cooperation in this regard

 
 
is appreciated. 
**

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



-- 
Emerson Cargnin 
Analista de Sistemas 
Setor de Desenvolvimento de Sistemas - TRE-SC 
tel : (048) - 251-3700 - Ramal
3181
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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



RE: Tomcat starts poorly on Windows XP

2004-05-27 Thread Shapira, Yoav

Hi,
Look for multiple or conflicting versions of the JSP API on your
classpath.  If you have a servlet.jar somewhere other than the ones that
ship with tomcat, remove them.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Joel Shprentz [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:41 AM
To: [EMAIL PROTECTED]
Subject: Tomcat starts poorly on Windows XP

A search of the tomcat-user archives suggests that this is a new way
for Tomcat to start poorly on Windows XP.

Below is stdout.log after a clean install of
j2sdk-1_4_2_04-windows-i586-
p.exe
and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system.  I
started
Tomcat from the Configure Tomcat application.

While installing and uninstalling j2sdk and Tomcat many times over the
past few days, I've found and removed older Tomcats, j2sdk, and jre
installations.  I suspect that this problem is caused by some residue
of those earlier installs.

I welcome your suggestions. Thanks.


May 26, 2004 1:12:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2937 ms
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat
5.0\conf\Catalina\localhost\admin.xml
May 26, 2004 1:12:55 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspException
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageRes
ourc
esFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageReso
urce
s.java:576)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:
1329
)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java
:105
)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:1
019)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
java
:3991)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:433
5)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl
oyer
.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
252)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j
ava:
76)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un
know
n 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:488)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at

RE: Re: tomcat 5.0.25 - Problem in running jsp

2004-05-27 Thread Shapira, Yoav

Hi,
I bet your JSP runtime classpath is messed up.  Are you running inside
an IDE?

(All JSPs and JSP tests worked for us before releasing, including the
official Sun JSP TCK -- these are prerequisites for any tomcat release).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rajesh_Narayanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 9:09 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Re: Re: tomcat 5.0.25 - Problem in running jsp

didn't read the email telling of the stableness of the 5.0.25... :)

the error is strangem, since it's generated by jasper (JSP engine)

it's trying to pass an throwable where is expected an exception, the
inverse would be ok...

Rajesh_Narayanan wrote:
 I tried both... but the result is same...

 Raj


5.0.25


could it be 5.0.24?


Emerson


 Rajesh_Narayanan wrote:

When i try to run any .jsp file (even hello world).. its throwing

 following

error:

-
ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling
file:
/C:/workspace/VCE2/work/org/apache/jsp//org/apache/jsp\hw_jsp.java
[javac] Compiling 1 source file

C:\workspace\VCE2\work\org\apache\jsp\org\apache\jsp\hw_jsp.java:48:
handlePageException(java.lang.Exception) in
javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
if (_jspx_page_context != null)
_jspx_page_context.handlePageException(t);
  ^
1 error
--

Am I missing any .jar?...

Your help is appreciated.

Thanks
*

*



This email (including any attachments) is intended for the sole use
of
the



intended recipient/s and may contain material that is CONFIDENTIAL
AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying

 or

distribution or forwarding of any or all of the contents in this
message

 is

STRICTLY PROHIBITED. If you are not the intended recipient, please
contact



the sender by email and delete all copies; your cooperation in this
regard



is appreciated.
*

*



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









--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal
3181***

*
**
This email (including any attachments) is intended for the sole use of
the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or
distribution or forwarding of any or all of the contents in this
message is
STRICTLY PROHIBITED. If you are not the intended recipient, please
contact
the sender by email and delete all copies; your cooperation in this
regard
is appreciated.
***
***

-
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: standalone production?

2004-05-27 Thread Shapira, Yoav

Hi,
Good post.  I've added it to the FAQ:
http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: RJ [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 8:17 AM
To: Tomcat Users List
Subject: RE: standalone production?

The http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
isn't the way for doing jsvc that I used (it didn't work
right).

You should already have jsvc.tar.gz in the bin dir
for tomcat; unpack it, and follow the instructions
in INSTALL.txt for building jsvc.  There's a page for
it at http://jakarta.apache.org/commons/daemon/jsvc.html
as well.

Then, you use the tomcat/bin/jsvc-src/native/Tomcat5.sh
script to start and stop it, after first editing that
script to get the values in there right.  Mine is
as follows (that $DAEMON_HOME/jsvc-src/jsvc \ one
was important, since it defaulted to a different
directory structure than the one that was created by
my jsvc and tomcat unpacking).

Then I did chown on the files in the tomcat directory
to be my non-root 'tomcat' user, fixed the server.xml
to have non-SSL Coyote HTTP/1.1 Connector on port 80
and SSL Coyote HTTP/1.1 Connector on port 443
and it seems to be working like a champ.

I also got the logging running by un-commenting the
AccessLogValve at the end of server.xml, and changed
the pattern=common to pattern=combined
so I could get apache-type logs like I had before.

MUCH nicer than fooling with those connectors.

Now, if I can only figure out why the 'referer' is
always blank when somebody first hits my site, I'll
be very happy...

rj

#!/bin/sh
###

###
#
#   Copyright 2004 The Apache Software Foundation.
#
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
###

###
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the
server.xml
# file:
#
#!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
#Connector
className=org.apache.catalina.connector.http.HttpConnector
#   port=80 minProcessors=5 maxProcessors=75
#   enableLookups=true redirectPort=8443
#   acceptCount=10 debug=0 connectionTimeout=6/
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/j2sdk1.4.2_03
CATALINA_HOME=/usr/local/tomcat5
DAEMON_HOME=/usr/local/tomcat5/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=-Xms64m -Xmx200m
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case $1 in
   start)
 #
 # Start Tomcat
 #
 $DAEMON_HOME/jsvc-src/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$TMP_DIR \
 -outfile $CATALINA_HOME/logs/catalina.out \
 -errfile '1' \
 $CATALINA_OPTS \
 -cp $CLASSPATH \
 org.apache.catalina.startup.Bootstrap
 #
 # To get a verbose JVM
 #-verbose \
 # To get a debug of jsvc.
 #-debug \
 ;;

   stop)
 #
 # Stop Tomcat
 #
 PID=`cat /var/run/jsvc.pid`
 kill $PID
 ;;

   *)
 echo Usage tomcat.sh start/stop
 exit 1;;
esac



At 03:19 AM 5/27/2004, Justin Jaynes wrote:
I am intending to run in a fully internet exposed
environment and I only have ONE physical machine to
use for deployment.  It will be directly connected to
the internet at co-location service provider.  So ...

In a conversation from yesterday, it appears another
user had a similar question.  How to run on port 80,
securly.

Is it possible to run tomcat with a non-priviliged
user?  What is this JSVC approach they referred to,
and what is the solution that was given?  Where can I
go to read more?


-
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 

X509 certificates and https

2004-05-27 Thread Julie McCabe
Hello,

I am trying to use SSL authenitcation with X509 certificates.  The certifcates 
are not in the Java keystore.  I would like to know how to get my certificate 
whichi is signed by a specific CA into the keystore and use the https 
connector. 

I have found some documentation on the web but have had little success with 
getting my certificates into the keystore and SSL Connector configuration.  I 
know my certificates are valid, maybe I am missing something with regards to 
the CA which signed the certifcate.  I am using tomcat 4.1.27, Red Hat Linix 
9.0.

Thanks,
Julie.



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



Re: Tomcat logging and the referer

2004-05-27 Thread Hassan Schroeder
RJ wrote:
I'm using the combined log format, and it seems to be OK,
except that on the first hit on my site (to the static
index.html page) the referer field is always -.
Subsequent hits from pages within the site show the correct
referer, but my main interest is that initial one.
Anybody have any thoughts on how I can get that to show?
I'm not seeing any problem with this, on TC4.1.29. Are you sure the
blank referers are *not* users just typing the URL (or bots)?
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Tomcat starts poorly on Windows XP

2004-05-27 Thread Jacob Kjome
At 12:41 AM 5/27/2004 -0400, you wrote:
A search of the tomcat-user archives suggests that this is a new way
for Tomcat to start poorly on Windows XP.
Below is stdout.log after a clean install of j2sdk-1_4_2_04-windows-i586-p.exe
and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system.  I started
Tomcat from the Configure Tomcat application.
While installing and uninstalling j2sdk and Tomcat many times over the
past few days, I've found and removed older Tomcats, j2sdk, and jre
installations.  I suspect that this problem is caused by some residue
of those earlier installs.
I welcome your suggestions. Thanks.
Save yourself a lot of trouble and forget the installer.  Just unzip the 
archive to a directly, set JAVA_HOME and CATALINA_HOME, and run.  If you 
want to use the service, just use service.bat [install | remove].

I've never seen any problems like this and I've never used the installer.
Jake

May 26, 2004 1:12:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2937 ms
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\admin.xml
May 26, 2004 1:12:55 AM org.apache.struts.util.MessageResourcesFactory 
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspException
at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at 
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at 
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(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:488)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482)
   

Betr.: X509 certificates and https

2004-05-27 Thread R . Blom
The only thing you have to do is running the java keytool utily with 
following command:

keytool -import -alias tomcat -keystore server.ks -trustcacerts -file 
server.crt

This inserts thet server.crt certificate into the keystore that tomcat 
uses.


Ron Blom

 




Julie McCabe [EMAIL PROTECTED]
27-05-2004 15:28
Antwoord a.u.b. aan Tomcat Users List

 
Aan:Tomcat Users List [EMAIL PROTECTED]
cc: 
Onderwerp:  X509 certificates and https


Hello,

I am trying to use SSL authenitcation with X509 certificates.  The 
certifcates
are not in the Java keystore.  I would like to know how to get my 
certificate
whichi is signed by a specific CA into the keystore and use the https
connector.

I have found some documentation on the web but have had little success 
with
getting my certificates into the keystore and SSL Connector configuration. 
 I
know my certificates are valid, maybe I am missing something with regards 
to
the CA which signed the certifcate.  I am using tomcat 4.1.27, Red Hat 
Linix
9.0.

Thanks,
Julie.



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




Re: X509 certificates and https

2004-05-27 Thread R . Blom
The only thing you have to do is running the java keytool utily with 
following command:

keytool -import -alias tomcat -keystore server.ks -trustcacerts -file 
server.crt

This inserts thet server.crt certificate into the keystore that tomcat 
uses.

Your CA scertificate needs to be in the trusted keystore of your JRE under 
which Tomcat runs.
If this is not the case put it in there as follows:

keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem 
-alias my_alias

This inserts the root certificate ca.pem into the trusted keystore of the 
JRE being used.

This should work.

Ron Blom

 

Re: How does Tomcat manage sesssions ?

2004-05-27 Thread Xavier MOGHRABI
Hello,
That solution doesn't pleased me a lot because I want to store the
session for all deployed context. How can I do that ?
   

Put the Manager inside the Host, not the Context.
 

I did it in the host but it doesn't seem to work. I don't see any 
Session stored in my database.
Do you know how can I ask Tomcat which Manager he is using ?

Thanks for your precious help.
Xavier


symbolic links fail after context reload

2004-05-27 Thread stimmins






I've been wrestling with this for  a few days now. We have an instance of
tomcat v5.0.16 using jdk 1.4.2_02 on a solaris 8 machine (kernel patch
108528-17).

The use of symbolic links by the webapps is turned on in the default
context (I've also tried it in the individual contexts) using:
DefaultContext cookies=false reloadable=false override=true
allowLinking=true

Example context is:
Context cookies=false displayName=pathCda docBase=pathCda
path=/pathCda reloadable=true

When the tomcat is started and the Contexts load for the first time
everything is fine (no errors in catalina.out), however, if I reload a
Context (again no errors in catalina.out) using the management interface it
suddenly looses the ability to follow symbolic links. I have to stop and
start tomcat to fix this.

The status code returned by tomcat is:
HTTP Status 404
Description: The requested resouce (/path/to/file) is not available

I must be doing something wrong but cant determine what it is.

Sean Timmins

---
Sean Timmins
Systems Administrator
John Wiley  Sons Ltd.
The Atrium
Southern Gate
Chichester
West Sussex
PO19 8SQ

Tel: +44 (0) 1243 770395
Fax +44 (0) 1243 770379
Mob: +44 (0) 7703 203546


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



Re: X509 certificates and https

2004-05-27 Thread Julie McCabe
Hi,

I tried the following command 

keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
server.crt

with my certificate and key which are in pem format and it returned 
keytool error: java.lang.Exception: Input not an X.509 certificate


I have the CA certifcate stored in my browser but cant see how I can export 
it?

Thanks
Julie.

On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote:
 The only thing you have to do is running the java keytool utily with
 following command:

 keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
 server.crt

 This inserts thet server.crt certificate into the keystore that tomcat
 uses.

 Your CA scertificate needs to be in the trusted keystore of your JRE under
 which Tomcat runs.
 If this is not the case put it in there as follows:

 keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem
 -alias my_alias

 This inserts the root certificate ca.pem into the trusted keystore of the
 JRE being used.

 This should work.

 Ron Blom


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



Betr.: Re: X509 certificates and https

2004-05-27 Thread R . Blom
If you use Internet Explorer you simple go to the Trusted Certificate 
Authorties, select the CA certificate and export it to some format.
You should then be able to import it into your trusted keystore.

Ron
 




Julie McCabe [EMAIL PROTECTED]
27-05-2004 16:21
Antwoord a.u.b. aan Tomcat Users List

 
Aan:Tomcat Users List [EMAIL PROTECTED]
cc: 
Onderwerp:  Re: X509 certificates and https


Hi,

I tried the following command

keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
server.crt

with my certificate and key which are in pem format and it returned
keytool error: java.lang.Exception: Input not an X.509 certificate


I have the CA certifcate stored in my browser but cant see how I can 
export
it?

Thanks
Julie.

On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote:
 The only thing you have to do is running the java keytool utily with
 following command:

 keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
 server.crt

 This inserts thet server.crt certificate into the keystore that tomcat
 uses.

 Your CA scertificate needs to be in the trusted keystore of your JRE 
under
 which Tomcat runs.
 If this is not the case put it in there as follows:

 keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem
 -alias my_alias

 This inserts the root certificate ca.pem into the trusted keystore of 
the
 JRE being used.

 This should work.

 Ron Blom


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




Re: Betr.: Re: X509 certificates and https

2004-05-27 Thread Julie McCabe
Hello,

I should have included this in my original mail but I am using Mozilla 1.4.1 
on RedHat Linuz 9.0 - any ideas?

Julie.

On Thursday 27 May 2004 15:47, [EMAIL PROTECTED] wrote:
 If you use Internet Explorer you simple go to the Trusted Certificate
 Authorties, select the CA certificate and export it to some format.
 You should then be able to import it into your trusted keystore.

 Ron





 Julie McCabe [EMAIL PROTECTED]
 27-05-2004 16:21
 Antwoord a.u.b. aan Tomcat Users List


 Aan:Tomcat Users List [EMAIL PROTECTED]
 cc:
 Onderwerp:  Re: X509 certificates and https


 Hi,

 I tried the following command

 keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
 server.crt

 with my certificate and key which are in pem format and it returned
 keytool error: java.lang.Exception: Input not an X.509 certificate


 I have the CA certifcate stored in my browser but cant see how I can
 export
 it?

 Thanks
 Julie.

 On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote:
  The only thing you have to do is running the java keytool utily with
  following command:
 
  keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
  server.crt
 
  This inserts thet server.crt certificate into the keystore that tomcat
  uses.
 
  Your CA scertificate needs to be in the trusted keystore of your JRE

 under

  which Tomcat runs.
  If this is not the case put it in there as follows:
 
  keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem
  -alias my_alias
 
  This inserts the root certificate ca.pem into the trusted keystore of

 the

  JRE being used.
 
  This should work.
 
  Ron Blom

 -
 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: Réf. : Re: Réf. : mod_jk error with Apache 2.0.49

2004-05-27 Thread Barry Roberts
As I've stated in both my previous messages I've tried both and jk1 is
the one I really want to get to work.

On Thu, 2004-05-27 at 01:25, [EMAIL PROTECTED]
wrote:
 You've built jk2. that's ok. Your load instruction is not correct.
 your httpc.conf contains LoadModule jk_module modules/mod_jk.so
 instead ofLoadModule jk2_module modules/mod_jk2.so
 The set of instructions I send to you must work.

It does under VERY low load.  With any reasonable load I get Broken
Pipe messages in the tomcat log and pages that just never load.  Again,
this is a known issue that doesn't appear to have a resolution yet.

 You are using apache 2 and jk2. And the instructions you set
 are for jk (not jk2)

No, I'm using jk1.  I'm well aware of the difference. I've used both and
I've never gotten jk2 to work reliably under Linux or Solaris.  That's
why I would prefer jk1.  I only replied to you about jk2 because you
said that's what you're using.  My original message clearly states that
I've tried both.  I have a workers.properties and a workers2.properties,
and I have verified that I'm loading jk2/jk1 when I think I am (by the
log files) and that deleting the applicable .properties prevents apache
from starting.

 
 
 
 Barry Roberts [EMAIL PROTECTED]
 26/05/2004 17:54
 Veuillez rpondre  Tomcat Users List
 
 
 Pour :  Tomcat Users List [EMAIL PROTECTED]
 cc :
 Objet : Re: Rf. : mod_jk error with Apache 2.0.49
 
 
 What do you mean the right one?  I built jk2 from the
 jakarta-tomcat-connectors-jk2-src-current.tar.gz tarball.  Is that
 right?
 
 The problem I'm having with jk2 is a known issue
 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28790).  I would love
 to see that one figured out, but right now I would settle for just
 getting jk1 to work.
 
 I compiled a modified mod_jk.so and inside get_map (jk_map.c) the
 jk_map_t* passed in is null.  That's why there's no worker found.  I
 haven't had time to try and figure out what could cause it to be null.
 
 Thanks,
 Barry
 
 
 On Wed, 2004-05-26 at 01:34, [EMAIL PROTECTED]
 wrote:
  Barry,
 
  make sure you have built the right jk module.
 
  I've exactly the same config than you.
  Redhat ES 3.0, apache 2.0.49 jk2 and jboss 3.2.3 that
  comes with tomcat 3.2.3
 
  my httpd.conf file  contains :
  LoadModule jk2_module modules/mod_jk2.so
  IfModule mod_jk2.c
  JKSet config.file /opt/apachessl-2.0.49/inet/conf/workers2.properties
  /IfModule
 
  the workers2 file may contains
  [shm]
  file=/var/log/apache/inet/jk2.shm
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
 
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
 
  # Uri mapping
 
  [uri:/apps/*]
  worker=ajp13:localhost:8009
 
  and it works fine.
  ___
  NATEXIS ASSET MANAGEMENT
  Meissa SAKHO
  01 58 19 45 71. . . . . . . . . . . . (84571)
  [EMAIL PROTECTED]
 
 
 
 
  Barry Roberts [EMAIL PROTECTED]
  25/05/2004 21:14
  Veuillez rpondre  Tomcat Users List
 
 
  Pour :  [EMAIL PROTECTED]
  cc :
  Objet : mod_jk error with Apache 2.0.49
 
 
  I'm trying to get mod_jk working with apache 2.0.49 built from source on
  RedHat ES 3.0.  I've got the module built and in the modules directory,
  and my httpd.conf contains:
 
  LoadModule jk_module modules/mod_jk.so
 
  JkWorkersFile /usr/local/apache2/conf/workers.properties
  JkLogFile /var/log/mod_jk.log
  JkLogLevel debug
  JkMount /apps/* xsappa
  JkMount /admin xsappa
 
  This is towards the top of the file outside of any virtualhost or
  directory elements (I have also tried putting this at the bottom of
  the file).
 
  My workers.properties is:
 
 
  worker.list=xsappa
 
  worker.xsappa.port=139
  worker.xsappa.host=192.168.2.42
  worker.xsappa.type=ajp13
  worker.xsappa.lbfactor=1
 
  Every time I try to hit a servlet or jsp I get the following in my
  mod_jk.log:
  [Tue May 25 12:45:38 2004]  [jk_worker.c (136)]: wc_get_worker_for_name,
  done did not found a worker
 
  And of course a 500 in the browser.
 
  The tomcat server works fine.  I can put jk2 into the web server and it
  mostly works (I get Broken Pipe exceptions when I KNOW it's not a user
  pressing cancel in the browser, but that's another issue).  I can hit
  the tomcat server on port 8080 and it's just fine.
 
  I can't use jk2 because of the spurious broken pipes, and now I can't
  get jk1 working at all.  I have this suspicion that I'm missing
  something obvious, but I can't find it.
 
  Any help would be greatly appreciated.
 
  Thanks,
  Barry Roberts
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  L'integrite de ce message n'etant pas assuree sur internet, Natexis
  Banques Populaires ne peut etre tenu responsable de
  son contenu. Toute utilisation ou diffusion non autorisee est
  interdite. Si vous n'etes pas destinataire de ce 

Re: standalone production?

2004-05-27 Thread Parsons Technical Services
If this is the case, then why not fix the
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
page to show the correct(updated) information?

Doug

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 9:19 AM
Subject: RE: standalone production?



Hi,
Good post.  I've added it to the FAQ:
http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: RJ [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 8:17 AM
To: Tomcat Users List
Subject: RE: standalone production?

The http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
isn't the way for doing jsvc that I used (it didn't work
right).

You should already have jsvc.tar.gz in the bin dir
for tomcat; unpack it, and follow the instructions
in INSTALL.txt for building jsvc.  There's a page for
it at http://jakarta.apache.org/commons/daemon/jsvc.html
as well.

Then, you use the tomcat/bin/jsvc-src/native/Tomcat5.sh
script to start and stop it, after first editing that
script to get the values in there right.  Mine is
as follows (that $DAEMON_HOME/jsvc-src/jsvc \ one
was important, since it defaulted to a different
directory structure than the one that was created by
my jsvc and tomcat unpacking).

Then I did chown on the files in the tomcat directory
to be my non-root 'tomcat' user, fixed the server.xml
to have non-SSL Coyote HTTP/1.1 Connector on port 80
and SSL Coyote HTTP/1.1 Connector on port 443
and it seems to be working like a champ.

I also got the logging running by un-commenting the
AccessLogValve at the end of server.xml, and changed
the pattern=common to pattern=combined
so I could get apache-type logs like I had before.

MUCH nicer than fooling with those connectors.

Now, if I can only figure out why the 'referer' is
always blank when somebody first hits my site, I'll
be very happy...

rj

#!/bin/sh
###

###
#
#   Copyright 2004 The Apache Software Foundation.
#
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
###

###
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the
server.xml
# file:
#
#!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
#Connector
className=org.apache.catalina.connector.http.HttpConnector
#   port=80 minProcessors=5 maxProcessors=75
#   enableLookups=true redirectPort=8443
#   acceptCount=10 debug=0 connectionTimeout=6/
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/j2sdk1.4.2_03
CATALINA_HOME=/usr/local/tomcat5
DAEMON_HOME=/usr/local/tomcat5/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=-Xms64m -Xmx200m
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case $1 in
   start)
 #
 # Start Tomcat
 #
 $DAEMON_HOME/jsvc-src/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$TMP_DIR \
 -outfile $CATALINA_HOME/logs/catalina.out \
 -errfile '1' \
 $CATALINA_OPTS \
 -cp $CLASSPATH \
 org.apache.catalina.startup.Bootstrap
 #
 # To get a verbose JVM
 #-verbose \
 # To get a debug of jsvc.
 #-debug \
 ;;

   stop)
 #
 # Stop Tomcat
 #
 PID=`cat /var/run/jsvc.pid`
 kill $PID
 ;;

   *)
 echo Usage tomcat.sh start/stop
 exit 1;;
esac



At 03:19 AM 5/27/2004, Justin Jaynes wrote:
I am intending to run in a fully internet exposed
environment and I only have ONE physical machine to
use for deployment.  It will be directly connected to
the internet at co-location service provider.  So ...

In a conversation from yesterday, it appears another
user had a similar question.  How to run on port 80,
securly.

Is it possible to run tomcat with a non-priviliged
user?  What is this JSVC approach they referred to,
and what is the solution that was given?  Where can I
go to read more?


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



This e-mail, including any attachments, is a 

Betr.: Re: Betr.: Re: X509 certificates and https

2004-05-27 Thread R . Blom
Sorry, I'm not familiar with this environment.
Which CA certificate your server certificate is signed with?
Give me some important attributes.
Perhaps I can send you this certificate as an attachment.

 




Julie McCabe [EMAIL PROTECTED]
27-05-2004 16:47
Antwoord a.u.b. aan Tomcat Users List

 
Aan:Tomcat Users List [EMAIL PROTECTED]
cc: 
Onderwerp:  Re: Betr.: Re: X509 certificates and https


Hello,

I should have included this in my original mail but I am using Mozilla 
1.4.1
on RedHat Linuz 9.0 - any ideas?

Julie.

On Thursday 27 May 2004 15:47, [EMAIL PROTECTED] wrote:
 If you use Internet Explorer you simple go to the Trusted Certificate
 Authorties, select the CA certificate and export it to some format.
 You should then be able to import it into your trusted keystore.

 Ron





 Julie McCabe [EMAIL PROTECTED]
 27-05-2004 16:21
 Antwoord a.u.b. aan Tomcat Users List


 Aan:Tomcat Users List [EMAIL PROTECTED]
 cc:
 Onderwerp:  Re: X509 certificates and https


 Hi,

 I tried the following command

 keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
 server.crt

 with my certificate and key which are in pem format and it returned
 keytool error: java.lang.Exception: Input not an X.509 certificate


 I have the CA certifcate stored in my browser but cant see how I can
 export
 it?

 Thanks
 Julie.

 On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote:
  The only thing you have to do is running the java keytool utily with
  following command:
 
  keytool -import -alias tomcat -keystore server.ks -trustcacerts -file
  server.crt
 
  This inserts thet server.crt certificate into the keystore that tomcat
  uses.
 
  Your CA scertificate needs to be in the trusted keystore of your JRE

 under

  which Tomcat runs.
  If this is not the case put it in there as follows:
 
  keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file 
ca.pem
  -alias my_alias
 
  This inserts the root certificate ca.pem into the trusted keystore of

 the

  JRE being used.
 
  This should work.
 
  Ron Blom

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


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




How to make Apache direct Servlet to Tomcat

2004-05-27 Thread Daxin Zuo
My Apache 2.0.49 can direct JSP to Tomcat 5.0.19, but it cannot direct
Servlet to Tomcat. I can run it  on Tomcat:
http://localhost:8008/servlet/myapp/testServlet
But I cannot run it on Apache (port number is 82) like:
http://localhost:82/servlet/myapp/testServlet. The error log says:
File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/servlet.
I guess I may need to put servlet in some configuration file in
Apache/conf. Please tell me

1) How to make Apache direct servlet to Tomcat?
2) Suppose my application base folder is myApp, is there a way to run the
servlet on Apache and with the url like:
http://localhost:82/myapp/testServlet (without /Servlet)?
Thanks.


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



RE: standalone production?

2004-05-27 Thread Shapira, Yoav

Hi,
That'll be done too, but those docs only get updated when we do a new
release, and I didn't want to wait to post the content.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Parsons Technical Services
[mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:00 AM
To: Tomcat Users List
Subject: Re: standalone production?

If this is the case, then why not fix the
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
page to show the correct(updated) information?

Doug

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 9:19 AM
Subject: RE: standalone production?



Hi,
Good post.  I've added it to the FAQ:
http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: RJ [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 8:17 AM
To: Tomcat Users List
Subject: RE: standalone production?

The http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
isn't the way for doing jsvc that I used (it didn't work
right).

You should already have jsvc.tar.gz in the bin dir
for tomcat; unpack it, and follow the instructions
in INSTALL.txt for building jsvc.  There's a page for
it at http://jakarta.apache.org/commons/daemon/jsvc.html
as well.

Then, you use the tomcat/bin/jsvc-src/native/Tomcat5.sh
script to start and stop it, after first editing that
script to get the values in there right.  Mine is
as follows (that $DAEMON_HOME/jsvc-src/jsvc \ one
was important, since it defaulted to a different
directory structure than the one that was created by
my jsvc and tomcat unpacking).

Then I did chown on the files in the tomcat directory
to be my non-root 'tomcat' user, fixed the server.xml
to have non-SSL Coyote HTTP/1.1 Connector on port 80
and SSL Coyote HTTP/1.1 Connector on port 443
and it seems to be working like a champ.

I also got the logging running by un-commenting the
AccessLogValve at the end of server.xml, and changed
the pattern=common to pattern=combined
so I could get apache-type logs like I had before.

MUCH nicer than fooling with those connectors.

Now, if I can only figure out why the 'referer' is
always blank when somebody first hits my site, I'll
be very happy...

rj

#!/bin/sh
##
#

###
#
#   Copyright 2004 The Apache Software Foundation.
#
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing,
software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
#   See the License for the specific language governing permissions
and
#   limitations under the License.
##
#

###
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the
server.xml
# file:
#
#!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
#Connector
className=org.apache.catalina.connector.http.HttpConnector
#   port=80 minProcessors=5 maxProcessors=75
#   enableLookups=true redirectPort=8443
#   acceptCount=10 debug=0 connectionTimeout=6/
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/j2sdk1.4.2_03
CATALINA_HOME=/usr/local/tomcat5
DAEMON_HOME=/usr/local/tomcat5/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=-Xms64m -Xmx200m
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case $1 in
   start)
 #
 # Start Tomcat
 #
 $DAEMON_HOME/jsvc-src/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$TMP_DIR \
 -outfile $CATALINA_HOME/logs/catalina.out \
 -errfile '1' \
 $CATALINA_OPTS \
 -cp $CLASSPATH \
 org.apache.catalina.startup.Bootstrap
 #
 # To get a verbose JVM
 #-verbose \
 # To get a debug of jsvc.
 #-debug \
 ;;

   stop)
 #
 # Stop Tomcat
 #
 PID=`cat /var/run/jsvc.pid`
 kill $PID
 ;;

   *)
 echo Usage tomcat.sh start/stop
 exit 1;;
esac



At 03:19 AM 5/27/2004, Justin Jaynes wrote:
I am intending to run in a fully internet exposed
environment and I only have ONE physical machine to
use for deployment.  It will be directly connected to
the internet at co-location service provider.  So ...

In a conversation from yesterday, it appears another
user had a similar question.  How to run on port 80,
securly.

Is it possible to run tomcat with 

Order of Initializing Context-Elements?

2004-05-27 Thread Sebastian Hofmann
Hi,
I have a big problem - it is necessary for me to initialize the 
context-elements of a host in a specific order. Here is a snip of my 
web.xml:

Host name=itv appBase=. autoDeploy=true debug=0 
unpackWARs=true xmlNamespaceAware=false  mlValidation=false   

Context path=
 docBase=/home/sebastian/projekte/itv/itv-web
 reloadable=true/
Context path=/temp
 docBase=/home/sebastian/projekte/itv/temp
 reloadable=true/
Context path=/content
 docBase=/home/sebastian/projekte/itv/content
 reloadable=true/
 
   /Host

The context with path= should be loaded at first, followed by the 
others. I tried to change the order in server.xml-file, but always 
tomcat loads context with path=/content first...

Has anybody any idea?
Thanks a lot
bye
Sebastian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: HTTP Servlet - How to use the same connection for GET URL?

2004-05-27 Thread tiago_mendonca
Thanks to all,
I forget to tell you that the HTTP Servlet and its request to URL of another 
SW are located on the same host. Maybe I didn't understand quite well some of 
your answers but I do believe that for the Server performance it is better to 
have one remain connection (socket) to the URL when doing the GET URL for 
1 requests to that SW, than to open/close connections for each of the 
1 (sockets) requests.
I also undertood that it would not be easy to do so with an HTTP Servlet :-(
Did I understand well? Does anybody had the same problem before, if solved, 
could somebody provide me a good solution.

Once again thank you for all your time wasted on this matter

Tiago

Citando SH Solutions [EMAIL PROTECTED]:

 Hi
 
  I considered HTTP/1.1 but left it out for a few reasons, mostly that in
 this case it would lead to hackishness. ;)
 
 Hey, noone said it's gonne be easy. :D
 
  For example, the socket may timeout if there aren't enough requests within
 a given timeframe.  Another is that, if the servlet and server aren't
 managed/owned by the same people, it's a little rude to maintain a 24/7
 socket to someone else's machine for a stateless protocol...
 
 But an open socket between these would be even bettern than thousands of
 connections opening and closing all the time.
 Further, most systems only do at most around 100 request on persistent
 connections, so the sockets would not be connected that long.
 
 Regards,
   Steffen
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__
O email preferido dos portugueses agora com 
100Mb de espaço e acesso gratuito à Internet
http://www.portugalmail.com/gold/

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



RE: How to make Apache direct Servlet to Tomcat

2004-05-27 Thread Dale, Matt
Hi,

1) You need to set up a URI mapping in your workers2.properties in your apache conf 
directory for the servlets to work, its enough to just put yourapp/*, from the sounds 
of it you must have yourapp/*.jsp or something like that.

2) You need to set up URL mappings in the applications web.xml file and then you can 
have the URL as anything you want to each servlet.

Ta
Matt


-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: 27 May 2004 16:14
To: Tomcat Users List
Subject: How to make Apache direct Servlet to Tomcat


My Apache 2.0.49 can direct JSP to Tomcat 5.0.19, but it cannot direct
Servlet to Tomcat. I can run it  on Tomcat:
http://localhost:8008/servlet/myapp/testServlet
But I cannot run it on Apache (port number is 82) like:
http://localhost:82/servlet/myapp/testServlet. The error log says:
File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/servlet.
I guess I may need to put servlet in some configuration file in
Apache/conf. Please tell me

1) How to make Apache direct servlet to Tomcat?
2) Suppose my application base folder is myApp, is there a way to run the
servlet on Apache and with the url like:
http://localhost:82/myapp/testServlet (without /Servlet)?
Thanks.


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

can CGI Servlet handle Perl taint checking?

2004-05-27 Thread Larry Levin
Hi;
I am trying to get Bugzilla to work with Tomcat and have run into a 
problem. The latest stable release of Bugzilla (2.16) has implemented 
taint checking in all of the CGI perl scripts as a security feature. 
When I attempt to access Bugzilla via Tomcat, I get a message in the log 
file from the CGI servlet that its too late to turn on the -T option.

The problem as I understand it, is that the perl executable must be 
started up with taint checking enabled if the scripts are going to 
invoke it. Is there any way I can set an option in Tomcat to have the 
CGI servlet properly handle this aspect of perl? Does it matter whether 
I run Tomcat 4.1 or 5.0 ?

Thanks
Larry Levin

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


Re: Tomcat 5 going to sleep

2004-05-27 Thread Mark Lowe
Well 2 days have passed, and the problem seems to have gone away.
Nothing as clever or as exciting as a memory profiler I'm afraid. Those 
crazy tomcat developer kids seemed to have nailed the apj coyote stuff 
in the 5.24 release.

On 25 May 2004, at 19:52, Mark Lowe wrote:
well time will only tell, but assuming the
org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
had something to do with it (which I suspect it does) upgrading to 
5.0.24 certainly gets rid of that.

I'll give it a couple of days, but its where my money is.
Cheers Mark
On 25 May 2004, at 19:30, Mark Lowe wrote:
Thanks I do test everything on my dev machine, but I don't have this 
issue on osx. The live server however is linux, and thus i'm a little 
restricted in terms of the tests I can run.

Restarting the server is of course what i do do, but I've never had 
this sort of error previously on a live deployment only when using 
the manager app via ant scripts.

See what you mean with the memory leak thread.. I guess its time to 
see if 5.24 does any better..

On 25 May 2004, at 18:53, Filip Hanik - Dev wrote:
java.lang.OutOfMemoryError
after this you are pretty much SOL and have to restart the server.
Look for other threads with the subject memory leak
Filip
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 11:47 AM
Subject: Tomcat 5 going to sleep
Hello
Sorry for the subject title but didn't know how better to put it.
Tomcat throws an outofmemory exception when left for a day or so
depending on how much ram i've assigned to an application and how 
much
traffic there has been.

I've seen various postings on this and a lot of clever sounding
theories one of which seem to end with Woohoo it works thats great.
The exception when thrown looks like this
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
org.apache.jk.co
[EMAIL PROTECTED], terminating thread
and for each request made via mod_jk i get this
org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
I was using jk2 for a while but stopped doing do as it had various
quirks that kept wrecking my head.
the jk version I'm using is
mod_jk/1.2.3-dev compliled against  Apache/2.0.47 and tomcat 5.19 and
java 1.4.2_04
Anybody know where I should start looking?
Thanks
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
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: HTTP Servlet - How to use the same connection for GET URL?

2004-05-27 Thread Tim Funk
If your client implements keepalives then you can maintain the same socket 
connection for many requests.

-Tim
[EMAIL PROTECTED] wrote:
Thanks to all,
I forget to tell you that the HTTP Servlet and its request to URL of another 
SW are located on the same host. Maybe I didn't understand quite well some of 
your answers but I do believe that for the Server performance it is better to 
have one remain connection (socket) to the URL when doing the GET URL for 
1 requests to that SW, than to open/close connections for each of the 
1 (sockets) requests.
I also undertood that it would not be easy to do so with an HTTP Servlet :-(
Did I understand well? Does anybody had the same problem before, if solved, 
could somebody provide me a good solution.

Once again thank you for all your time wasted on this matter
Tiago
Citando SH Solutions [EMAIL PROTECTED]:
 Hi
 
  I considered HTTP/1.1 but left it out for a few reasons, mostly that in
 this case it would lead to hackishness. ;)
 
 Hey, noone said it's gonne be easy. :D
 
  For example, the socket may timeout if there aren't enough requests within
 a given timeframe.  Another is that, if the servlet and server aren't
 managed/owned by the same people, it's a little rude to maintain a 24/7
 socket to someone else's machine for a stateless protocol...
 
 But an open socket between these would be even bettern than thousands of
 connections opening and closing all the time.
 Further, most systems only do at most around 100 request on persistent
 connections, so the sockets would not be connected that long.
 
 Regards,
   Steffen
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


__
O email preferido dos portugueses agora com 
100Mb de espaço e acesso gratuito à Internet
http://www.portugalmail.com/gold/

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


Why so many sessions?

2004-05-27 Thread Leonard Sitongia
Hello,
I find that the number of Sessions displayed by the Manager is 
surprisingly high.  My application has the session timeout set to 5.   
The access_log shows 8 hits in the last five minutes.  But, the number 
of Sessions is 140.

I'm running Tomcat 5.0.19 on Solaris 5.9.  I use two servers in a 
Tomcat 5 session-replicated cluster.

My application is a few JSP pages that use custom tags I wrote that use 
Hibernate persistence to MySQL.
The pages use OpenSymphony cache tags to keep the number of hits to the 
database low.

The high session count doesn't seem to be a problem.  Still, I'd like 
to learn why the number is so high.

Thanks for your help!
==Leonard E. Sitongia
  VETS / Scientific Computing Division
  National Center for Atmospheric Research
  P.O. Box 3000 Boulder CO 80307  USA
  [EMAIL PROTECTED]voice: (303)497-2454   fax: (303)497-1829
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Which connector to use JK 1.2 or JK 2

2004-05-27 Thread Reis, Tom
I am confused as to which connector to use for connecting II 6.0 Tomcat 
4.1.30. It appears that either the JK 1.2 or the JK 2 will work but I am uncertain. If 
someone could clarify the difference between these connectors and which to use I would 
greatly appreciate it. Thanks.

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



Securing communications between apaceh and Servlet/JSP container

2004-05-27 Thread Johnny Fulcrum
Hi-
I have apache and tomcat (running as a Servlet/JSP container) running on  
separate servers and I'm using mod_jk to redirect.  Apache is all buttoned  
up with mod_ssl but I'd like the communication between apache (with  
mod_jk) and Tomcat (running as a Servlet/JSP container) to be  
encrypted/secure.  Per the tomcat 4 SSL configuration Howto:

snip
When running Tomcat primarily as a Servlet/JSP container behind another  
web server, such as Apache or Microsoft IIS, it is usually necessary to  
configure the primary web server to handle the SSL connections from users.  
Typically, this server will negotiate all SSL-related functionality, then  
pass on any requests destined for the Tomcat container only after  
decrypting those requests. Likewise, Tomcat will return cleartext  
responses, that will be encrypted before being returned to the user's  
browser.
/snip

Is there a way to have tomcat not send data cleartext back to apache?
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: Re: tomcat 5.0.25 - Problem in running jsp

2004-05-27 Thread Rajesh_Narayanan
Hi,

I am running it from Eclipse.  How can i find out if my JSP runtime
classpath is messed up?.. and how can I rectify it??..

Thanks for ur response..
Raj

Hi, 
I bet your JSP runtime classpath is messed up.  Are you running inside 
an IDE? 

(All JSPs and JSP tests worked for us before releasing, including the 
official Sun JSP TCK -- these are prerequisites for any tomcat release). 

Yoav Shapira 
Millennium Research Informatics 



-Original Message- 
From: Rajesh_Narayanan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 9:09 AM 
To: '[EMAIL PROTECTED]' 
Cc: '[EMAIL PROTECTED]' 
Subject: Re: Re: tomcat 5.0.25 - Problem in running jsp 
 
didn't read the email telling of the stableness of the 5.0.25... :) 
 
the error is strangem, since it's generated by jasper (JSP engine) 
 
it's trying to pass an throwable where is expected an exception, the 
inverse would be ok... 
 
Rajesh_Narayanan wrote: 
 I tried both... but the result is same... 
 
 Raj 
 
 
5.0.25 
 
 
could it be 5.0.24? 
 
 
Emerson 
 
 
 Rajesh_Narayanan wrote: 
 
When i try to run any .jsp file (even hello world).. its throwing 
 
 following 
 
error: 
 
- 
ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling 
file: 
/C:/workspace/VCE2/work/org/apache/jsp//org/apache/jsp\hw_jsp.java 
[javac] Compiling 1 source file 
 
C:\workspace\VCE2\work\org\apache\jsp\org\apache\jsp\hw_jsp.java:48: 
handlePageException(java.lang.Exception) in 
javax.servlet.jsp.PageContext 
cannot be applied to (java.lang.Throwable) 
if (_jspx_page_context != null) 
_jspx_page_context.handlePageException(t); 
  ^ 
1 error 
-- 
 
Am I missing any .jar?... 
 
Your help is appreciated. 
 
Thanks 
* 
 
* 
 
 
 
This email (including any attachments) is intended for the sole use 
of 
the 
 
 
 
intended recipient/s and may contain material that is CONFIDENTIAL 
AND 
PRIVATE COMPANY INFORMATION. Any review or reliance by others or 
copying 
 
 or 
 
distribution or forwarding of any or all of the contents in this 
message 
 
 is 
 
STRICTLY PROHIBITED. If you are not the intended recipient, please 
contact 
 
 
 
the sender by email and delete all copies; your cooperation in this 
regard 
 
 
 
is appreciated. 
* 
 
* 
 
 
 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 
 
 
 
 
 
 
-- 
Emerson Cargnin 
Analista de Sistemas 
Setor de Desenvolvimento de Sistemas - TRE-SC 
tel : (048) - 251-3700 - Ramal 
3181*** 
 
* 
** 
This email (including any attachments) is intended for the sole use of 
the 
intended recipient/s and may contain material that is CONFIDENTIAL AND 
PRIVATE COMPANY INFORMATION. Any review or reliance by others or 
copying or 
distribution or forwarding of any or all of the contents in this 
message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please 
contact 
the sender by email and delete all copies; your cooperation in this 
regard 
is appreciated. 
*** 
*** 
 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 





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



- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail:
[EMAIL PROTECTED]
* 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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

Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-27 Thread Emerson Cargnin
Thanks a lot bill!!!
Bill Barker wrote:
Emerson Cargnin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...
I've seen a sugestion of the request.registerRequests=false to put in
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
try this too. But... where do I put this conf, as mod_jk does not have a
jk.properties file. could be it worker.properties?

You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls the
settings for the java side of the JK Connector, regardless of which native
connector you are using.

thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-27 Thread Emerson Cargnin
AFAIK, most os the attributes used in jk2.properties as related to mod_jk2.
What other attributes can be used to configure later mod_jk?
Thanks
Bill Barker wrote:
Emerson Cargnin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...
I've seen a sugestion of the request.registerRequests=false to put in
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
try this too. But... where do I put this conf, as mod_jk does not have a
jk.properties file. could be it worker.properties?

You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls the
settings for the java side of the JK Connector, regardless of which native
connector you are using.

thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: mod_jk problems - Need help!

2004-05-27 Thread Carl Olivier
Greetings.

In the post below - I detail the error I was encountering prior to using
mod_jk2.04 with Tomcat 5.0.19.

After deploying mod_jk2.04 with TC 5.0.19 the problem did not appear again.

Unfortunately the problem is now back (see below for details).  It
re-appeared after I upgraded to Tomcat 5.0.24 using mod_jk2.04.  I then
rebuilt the mod_jk2.so using the source provided with the TC 5.0.24 source
bundle (which seems to be mod_jk2.05 dev.  This did not sort the problem out
at all.

Does anyone have ANY ideas?

Thanks and regards,

Carl Olivier

-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED] 
Sent: 07 May 2004 02:21 PM
To: 'Tomcat Users List'
Subject: RE: mod_jk problems - Need help!


Hey.

In reply to my own post:

I have now deployed the latest mod_jk2 buiild (2.04) that I compiled to the
server mentioned below.  The problem has now gone!

Unfortunately there is one small problem though - which I detailed in a
Bugzilla post:

http://issues.apache.org/bugzilla/show_bug.cgi?id=28758

Any input would still be appreciated!

Best regards,

Carl

-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED] 
Sent: 07 May 2004 01:53 PM
To: '[EMAIL PROTECTED]'
Subject: mod_jk problems - Need help!


Greetings.

Having a problem with mod_jk2 in some instances.  Am hoping someone has some
sort of feedback as to what could be causing it.

Right the scenario:

WinXP Pro
Apache 2.0.49 (with the WinSock2 API disabled - same even with it enabled)
Tomcat 5.0.19 mod_jk2/2.02

The JSP:

A JSP page with a large amount of processing and/or generating a large
amount of HTML to return to the client.  The processing is mostly handled
with custom tags on the JSP page.  the output uses tables for positioning of
the returning data - and in the offending JSP(s) there is a fair amount of
processing that occurs while builiding the output buffer (note that we are
buffering te output before sending it back to the client.

The problems that occur:

When running through Apache (mod_jk2) to the JSP page all works fine on a
number of JSP pages.  At a certain point (always the JSP described above)
the output that is generated from the request is REALLY messed up!  Below is
a chunk of the HTML that is returned from the request (sorry it is ugly!):

= BROKEN OUTPUT CHUNK ===

input type=text name=materialQty_52 tabindex=3 onblur=setZero(this)
onkeyup=alterValues(52, false) value=1 size=5
/td

 td$input class=readonlyinputs type=text readonl XT
*8  X        %  !     `   H      r
|+ I.E{j  0   p
 T     $ r  |[EMAIL PROTECTED]:E{ 
e x c e l . x l sH        @
  1  5yG
!
!FILE0  ;     8  X        %  !     `   H
s  |+C.yj
0   p  V     $  s  |+ y   
 

a m i p r o . s a m  H        @   
  1 5yG
!
!FILE0       8       %  !     `   H
s2r:. %y'j
0   x  Z     $  s0(?0(?y    
   
W I N D O W ~ 1 . L N K a   P 0 r     $
s0(?0(?y     W i n d o w 
s   M e
d i a   P l a y e r . l n k  H     @
    1J 5yG  !
!FILE0  v%     8       %  !     `   H
sbG`d7.  4   j
0   p  X     $  sbGbG0)uX
   T
   d e s k t o p . i n ip     T      [.ShellClassInfo]
[EMAIL PROTECTED],-21787
yG
!
!FILE0  z*8       %    `   H
   G [EMAIL PROTECTED]'j
0   x  Z     $ 
GG   ?
R E M O T E ~ 1 . L N K t a n 0 l     $
GG   ?  R e 
m o t e   A s
s i s t a n c e . l n kH     @
?  ?  1 5yG  
 FILE0  t     8        %    `   H
    ' .N'j
0   x  Z     $ 
((   
W I N D O W ~ 1 . L N K o r e 0 j     $
((     W 
i n d o w s   E
x p l o r e r . l n k  H     @
    1Y yyG  
 FILE0  v%     8  8        
%   ln   `   H      2 .  4
j  0   p  X     $
GG d e 
s k t o p . i n
i(    
     [.ShellClassInfo]
[EMAIL PROTECTED],-21782
[LocalizedFileNames]
Windows Media [EMAIL PROTECTED]:\WINDOWS\inf\unregmp2.exe,-4
Remote [EMAIL PROTECTED],-152
Outlook Express. [EMAIL PROTECTED],-22053
   yG
 

n00b cannot get jar files to work.

2004-05-27 Thread Michael Labhard
How do I get jar files to work?

Learning Tomcat I have a simple HelloServlet class.  When compiled and the 
class file is inserted into the directory

/opt/tomcat/webapps/test/WEB-INF/classes/example

and the web.xml file given below is placed in 

/opt/tomcat/webapps/test/WEB-INF/

and tomcat is restarted then the url

http://localhost:8080/test/hello

page reads:

Hello, world!

But if the same class is placed in a jar file and this jar file is inserted 
into any of the following directories and given permissions tomcat:tomcat

/opt/tomcat/webapps/test/WEB-INF/lib
/opt/tomcat/common/lib
/opt/tomcat/shared/lib

when tomcat is restarted and the same url is addressed first there is

 Blank page 

the second time the page is refreshed there is

Status 500:
javax.servlet.ServletException: Wrapper cannot find servlet class 

example.HelloServlet or a class it depends on

and the third and all subsequent times the page is refreshed there is

Status 400:
 Servlet hello is not available

How do I get jar files to work?  Thank you.

-- Michael

Appendix:

web.xml file:

?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
  servlet
servlet-namehello/servlet-name
servlet-classexample.HelloServlet/servlet-class
  /servlet

  servlet-mapping
url-pattern/hello/url-pattern
servlet-namehello/servlet-name
  /servlet-mapping
/web-app


HelloServlet.java:

package example;

import java.io.*;
import java.util.*;

import javax.servlet.http.*;
import javax.servlet.*;

public class HelloServlet extends HttpServlet {
  public void doGet (
HttpServletRequest  req,
HttpServletResponse res
) throws ServletException, IOException
  {
res.setContentType(text/html);
PrintWriter pw = res.getWriter();

pw.println(!DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0 
Transitional//EN\);
pw.println();
pw.println(head);
pw.println(meta http-equiv=\Content-Type\ content=\text/html; 
charset=ISO-8859-1\);
pw.println();
pw.println(!-- The Servlet expression tags interpolate script variables 
into the HTML --);
pw.println();
pw.println(titleHello, world!/title);
pw.println(/head);
pw.println();
pw.println(body bgcolor=white);
pw.println();
pw.println(h1Hello, world!/h1);
pw.println();
pw.println(/body);
pw.close();
  }

  public HelloServlet() {}
}


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



Re: Which connector to use JK 1.2 or JK 2

2004-05-27 Thread Emerson Cargnin
Jk2 is a refactoring of jk. Jk2 uses APR library, and AFAIK, it's easier 
to build against apache 2. I tried some days to make jk2 to work, 
without too much success. mod_jk is a lot easier. jk2  gives you 
statistics of the connector from the apache side.

Emerson
Reis, Tom wrote:
I am confused as to which connector to use for connecting II 6.0 Tomcat 
4.1.30. It appears that either the JK 1.2 or the JK 2 will work but I am uncertain. If 
someone could clarify the difference between these connectors and which to use I would 
greatly appreciate it. Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Can I change Tomcat's default character encoding?

2004-05-27 Thread Yansheng Lin
From Javadoc for OutputStreamWriter:

An OutputStreamWriter is a bridge from character streams to byte streams:
Characters written to it are encoded into bytes using a specified charset.
The charset that it uses may be specified by name or may be given
explicitly, or the platform's default charset may be accepted.

So the answer is verdor-specific.  Of course, you can tell javac and java
runtime to use the desired encoding, but that's not fool-proof.

To do a conversion from one encoding to another, you can use the new
String(oldBytes, charset) constructor.  You can implement that in your
customized Writer.

Hope it helps:).

-Yan

-Original Message-
From: rlipi [mailto:[EMAIL PROTECTED] 
Sent: May 27, 2004 03:20
To: 'Tomcat Users List'
Subject: RE: Can I change Tomcat's default character encoding?


Thank you for the answer.

I know about this possibility using filters (and I have done something).


But the original question (and my question) is about simpler way: Is it
possible to globally set (somewhere in JVM or Tomcat configuration)
default character encoding for all created Writers?

Lipi


 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 7:45 PM
 To: 'Tomcat Users List'
 Subject: RE: Can I change Tomcat's default character encoding?
 
 Hi, quick response, you can use your own customized
OutputStreamWriter.
 You
 need to extend the abstract class ServletOutputStream.  And you
integrate
 your customized writer with tomcat by implementing a filter.
 
 For more info on how to use filters, you can do a search on google.
 
 This will only work for Tomcat 4 and up, or any other container that
 implement Servlet 2.3 and up.
 
 -Yan
 




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



Using OpenJMS in Tomcat Valve

2004-05-27 Thread Rui Zhang
Hi Filip,

   Thanks for your reply.

   I've got pass that point but am now having new problem...(I'm using
OpenJMS)

   After successfully creating the connectionFactory and the Connection, I
was prompted the following when Tomcat starts and the OpenJMS server is
alreay up and running:

   [main] ERROR digester.Digester  - Begin event threw exception
javax.jms.JMSException: Failed to createSession  java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.net.MalformedURLException: no protocol: Group/Tomcat
at org.exolab.jms.client.rmi.RmiJmsConnectionStub.createSession(RmiJmsCo
nnectionStub.java:155)
at org.exolab.jms.client.JmsSession.init(JmsSession.java:225)
at org.exolab.jms.client.JmsTopicSession.init(JmsTopicSession.java:89)
at org.exolab.jms.client.JmsTopicConnection.createTopicSession(JmsTopicC
onnection.java:105)
at uk.org.hwlm.agent.TomcatARMValve.init(TomcatARMValve.java:70)
..


My code looks like this:

Hashtable prop = new Hashtable();

   
prop.put(Context.INITIAL_CONTEXT_FACTORY,org.exolab.jms.jndi.InitialContextFactory);
  prop.put(Context.PROVIDER_URL, rmi://localhost:1099/);

Context cxt = new InitialContext(prop);

cf =  (TopicConnectionFactory)cxt.lookup(JmsTopicConnectionFactory);

con = cf.createTopicConnection();

session = con.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);

..

  Please note that the same code runs fine in a standalone J2ee
program. Any help would be greatly appreciated.

  Thanks a lot.

Rui

On Wed, 26 May 2004, Filip Hanik (lists) wrote:

 what initial context are you trying to connect to
 you can do this:

 Properties props = new Properties();
 props.setProperty(...);
 Context cxt = new InitialContext(props);

 where you set the machine and port of the machine hosting your initial
 context. (should be the URL to the server where your JMS server is running)
 Filip


 -Original Message-
 From: Rui Zhang [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 6:45 PM
 To: Tomcat Users List
 Subject: Using JMS in Tomcat Valve


 Hi all,

   How can I configure tomcat to use JMS in its valve?

   I failed at the very beginning, when I tried to obtain the JNDI
 context, after moving the J2EE jms.jar to under server/lib.

 ---
   The Exception I got was:

   [main] ERROR digester.Digester  - Begin event threw exception
 javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property, or as an applet parameter, or in an
 application
 resource file:  java.naming.factory.initial

 ---
   My code in the valve constructor looks like the following. The same code
 runs perfectly fine in a normal J2EE application.

   Context cxt = new InitialContext();
   cf = (ConnectionFactory)cxt.lookup(jms/TopicConnectionFactory);

   con = cf.createConnection();

   session = con.createSession(false,Session.AUTO_ACKNOWLEDGE);

   dest = (Topic)cxt.lookup(jms/hWLMTopic);

   producer = session.createProducer(dest);

 ---

   Any advice will be hugely appreciated.

 Best regards,

 Rui


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004


 -
 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: n00b cannot get jar files to work.

2004-05-27 Thread Shapira, Yoav

Hi,
The class itself and web.xml look fine (though we usually tell people to
put servlet-name before url-pattern in the servlet-mapping element, for
backwards compatibility and/or historical reasons).  There's no reason
it should work in a jar.  Webapps/test/WEB-INF/lib is the right place to
put that jar.  What are tomcat:tomcat permissions?  The permissions
should be such that the server user can read the jar.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michael Labhard [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:39 PM
To: [EMAIL PROTECTED]
Subject: n00b cannot get jar files to work.

How do I get jar files to work?

Learning Tomcat I have a simple HelloServlet class.  When compiled
and
the
class file is inserted into the directory

   /opt/tomcat/webapps/test/WEB-INF/classes/example

and the web.xml file given below is placed in

   /opt/tomcat/webapps/test/WEB-INF/

and tomcat is restarted then the url

http://localhost:8080/test/hello

page reads:

   Hello, world!

But if the same class is placed in a jar file and this jar file is
inserted
into any of the following directories and given permissions
tomcat:tomcat

   /opt/tomcat/webapps/test/WEB-INF/lib
   /opt/tomcat/common/lib
   /opt/tomcat/shared/lib

when tomcat is restarted and the same url is addressed first there is

Blank page 

the second time the page is refreshed there is

   Status 500:
   javax.servlet.ServletException: Wrapper cannot find servlet
class

   example.HelloServlet or a class it depends on

and the third and all subsequent times the page is refreshed there is

   Status 400:
Servlet hello is not available

How do I get jar files to work?  Thank you.

-- Michael

Appendix:

web.xml file:

?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
  servlet
servlet-namehello/servlet-name
servlet-classexample.HelloServlet/servlet-class
  /servlet

  servlet-mapping
url-pattern/hello/url-pattern
servlet-namehello/servlet-name
  /servlet-mapping
/web-app


HelloServlet.java:

package example;

import java.io.*;
import java.util.*;

import javax.servlet.http.*;
import javax.servlet.*;

public class HelloServlet extends HttpServlet {
  public void doGet (
HttpServletRequest  req,
HttpServletResponse res
) throws ServletException, IOException
  {
res.setContentType(text/html);
PrintWriter pw = res.getWriter();

pw.println(!DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0
Transitional//EN\);
pw.println();
pw.println(head);
pw.println(meta http-equiv=\Content-Type\ content=\text/html;
charset=ISO-8859-1\);
pw.println();
pw.println(!-- The Servlet expression tags interpolate script
variables
into the HTML --);
pw.println();
pw.println(titleHello, world!/title);
pw.println(/head);
pw.println();
pw.println(body bgcolor=white);
pw.println();
pw.println(h1Hello, world!/h1);
pw.println();
pw.println(/body);
pw.close();
  }

  public HelloServlet() {}
}


-
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: Using OpenJMS in Tomcat Valve

2004-05-27 Thread Shapira, Yoav

Hi,
Try using the TCP factories instead of the RMI ones (they also ship with
open JMS, same jars, it'll just be a tcp://somehost:someport connection
URL).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rui Zhang [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:48 PM
To: Tomcat Users List
Subject: Using OpenJMS in Tomcat Valve

Hi Filip,

   Thanks for your reply.

   I've got pass that point but am now having new problem...(I'm using
OpenJMS)

   After successfully creating the connectionFactory and the
Connection, I
was prompted the following when Tomcat starts and the OpenJMS server is
alreay up and running:

   [main] ERROR digester.Digester  - Begin event threw exception
javax.jms.JMSException: Failed to createSession
java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested
exception is:
java.net.MalformedURLException: no protocol: Group/Tomcat
at
org.exolab.jms.client.rmi.RmiJmsConnectionStub.createSession(RmiJmsCo
nnectionStub.java:155)
at org.exolab.jms.client.JmsSession.init(JmsSession.java:225)
at
org.exolab.jms.client.JmsTopicSession.init(JmsTopicSession.java:89)
at
org.exolab.jms.client.JmsTopicConnection.createTopicSession(JmsTopicC
onnection.java:105)
at
uk.org.hwlm.agent.TomcatARMValve.init(TomcatARMValve.java:70)
..


My code looks like this:

Hashtable prop = new Hashtable();


prop.put(Context.INITIAL_CONTEXT_FACTORY,org.exolab.jms.jndi.InitialCo
ntex
tFactory);
  prop.put(Context.PROVIDER_URL, rmi://localhost:1099/);

Context cxt = new InitialContext(prop);

cf =
(TopicConnectionFactory)cxt.lookup(JmsTopicConnectionFactory);

   con = cf.createTopicConnection();

session =
con.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);

..

  Please note that the same code runs fine in a standalone J2ee
program. Any help would be greatly appreciated.

  Thanks a lot.

Rui

On Wed, 26 May 2004, Filip Hanik (lists) wrote:

 what initial context are you trying to connect to
 you can do this:

 Properties props = new Properties();
 props.setProperty(...);
 Context cxt = new InitialContext(props);

 where you set the machine and port of the machine hosting your
initial
 context. (should be the URL to the server where your JMS server is
running)
 Filip


 -Original Message-
 From: Rui Zhang [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 6:45 PM
 To: Tomcat Users List
 Subject: Using JMS in Tomcat Valve


 Hi all,

   How can I configure tomcat to use JMS in its valve?

   I failed at the very beginning, when I tried to obtain the JNDI
 context, after moving the J2EE jms.jar to under server/lib.

 ---
   The Exception I got was:

   [main] ERROR digester.Digester  - Begin event threw exception
 javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property, or as an applet parameter, or in an
 application
 resource file:  java.naming.factory.initial

 ---
   My code in the valve constructor looks like the following. The same
code
 runs perfectly fine in a normal J2EE application.

   Context cxt = new InitialContext();
   cf = (ConnectionFactory)cxt.lookup(jms/TopicConnectionFactory);

   con = cf.createConnection();

   session = con.createSession(false,Session.AUTO_ACKNOWLEDGE);

   dest = (Topic)cxt.lookup(jms/hWLMTopic);

   producer = session.createProducer(dest);

 ---

   Any advice will be hugely appreciated.

 Best regards,

 Rui


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004


 -
 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 

Re: Which connector to use JK 1.2 or JK 2

2004-05-27 Thread Mark Lowe
I've used both.. With 4.1 and 5. In fact our staging server uses jk2 
and live server jk1.

I would say use 1. Its less bother. Less configuration and I've also 
found that jk2 has issues when you want to load balance java content 
from static

I've seen loads of examples where the whole webapp is mounted e.g.
JkMount /examples/*
which seems to me plain nonsense
JkMount /servlet/* myworker
JkMount /*.jsp myworker
JkMount /*.do myworker
would seem to fit the bill.
With Jk2 however I had a problem where you needed to mount the webapp 
name (context) to get it to play

  Location /examples/servlet/*
  JkUriSet group ajp13:localhost:8009
  /Location
Which was a pain in the arse and you also had to do similar jiggery 
pockery in workers2.properties.

I had it working once when i checked a version out of cvs. But this 
seems to change with every release.

Jk seems the stable release i'll be sticking to it, at least for the 
time being.

HTH Mark
On 27 May 2004, at 18:10, Reis, Tom wrote:
	I am confused as to which connector to use for connecting II 6.0 
Tomcat 4.1.30. It appears that either the JK 1.2 or the JK 2 will work 
but I am uncertain. If someone could clarify the difference between 
these connectors and which to use I would greatly appreciate it. 
Thanks.

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


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


Re: n00b cannot get jar files to work.

2004-05-27 Thread Michael Labhard
Thank you for the reply.

I assume that you meant the opposite when you wrote, There's no reason it 
should work in a jar, and it SHOULD work in a jar.

When tomcat was installed it inserted a user and a group both named tomcat 
on my machine (I'm using Gentoo Linux 2.6.4).  However, I changed the 
permissions to the jar file to my own permissions and group users but that 
did not help.  Anything else I can investigate?  I'm really stuck and have 
been working for days on just this one problem of getting Tomcat to see 
classes in jar files.  Any help would be much appreciated.

-- Michael

On Thursday 27 May 2004 09:48 am, Shapira, Yoav wrote:
 Hi,
 The class itself and web.xml look fine (though we usually tell people to
 put servlet-name before url-pattern in the servlet-mapping element, for
 backwards compatibility and/or historical reasons).  There's no reason
 it should work in a jar.  Webapps/test/WEB-INF/lib is the right place to
 put that jar.  What are tomcat:tomcat permissions?  The permissions
 should be such that the server user can read the jar.

 Yoav Shapira
 Millennium Research Informatics

 -Original Message-
 From: Michael Labhard [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 12:39 PM
 To: [EMAIL PROTECTED]
 Subject: n00b cannot get jar files to work.
 
 How do I get jar files to work?
 
 Learning Tomcat I have a simple HelloServlet class.  When compiled

 and

 the
 class file is inserted into the directory
 
  /opt/tomcat/webapps/test/WEB-INF/classes/example
 
 and the web.xml file given below is placed in
 
  /opt/tomcat/webapps/test/WEB-INF/
 
 and tomcat is restarted then the url
 
 http://localhost:8080/test/hello
 
 page reads:
 
  Hello, world!
 
 But if the same class is placed in a jar file and this jar file is

 inserted

 into any of the following directories and given permissions

 tomcat:tomcat

  /opt/tomcat/webapps/test/WEB-INF/lib
  /opt/tomcat/common/lib
  /opt/tomcat/shared/lib
 
 when tomcat is restarted and the same url is addressed first there is
 
   Blank page 
 
 the second time the page is refreshed there is
 
  Status 500:
  javax.servlet.ServletException: Wrapper cannot find servlet

 class

  example.HelloServlet or a class it depends on
 
 and the third and all subsequent times the page is refreshed there is
 
  Status 400:
   Servlet hello is not available
 
 How do I get jar files to work?  Thank you.
 
 -- Michael
 
 Appendix:
 
 web.xml file:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
   servlet
 servlet-namehello/servlet-name
 servlet-classexample.HelloServlet/servlet-class
   /servlet
 
   servlet-mapping
 url-pattern/hello/url-pattern
 servlet-namehello/servlet-name
   /servlet-mapping
 /web-app
 
 
 HelloServlet.java:
 
 package example;
 
 import java.io.*;
 import java.util.*;
 
 import javax.servlet.http.*;
 import javax.servlet.*;
 
 public class HelloServlet extends HttpServlet {
   public void doGet (
 HttpServletRequest  req,
 HttpServletResponse res
 ) throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter pw = res.getWriter();
 
 pw.println(!DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0
 Transitional//EN\);
 pw.println();
 pw.println(head);
 pw.println(meta http-equiv=\Content-Type\ content=\text/html;
 charset=ISO-8859-1\);
 pw.println();
 pw.println(!-- The Servlet expression tags interpolate script
 variables
 into the HTML --);
 pw.println();
 pw.println(titleHello, world!/title);
 pw.println(/head);
 pw.println();
 pw.println(body bgcolor=white);
 pw.println();
 pw.println(h1Hello, world!/h1);
 pw.println();
 pw.println(/body);
 pw.close();
   }
 
   public HelloServlet() {}
 }
 
 
 -
 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: 

RE: n00b cannot get jar files to work.

2004-05-27 Thread Shapira, Yoav

Hi,
Try installing it from the normal distribution at jakarta.apache.org,
not an RPM or another package specific to your system.  The normal
distro installation is simple: download and unzip to a directory of your
choice.  It doesn't created any new users or groups and doesn't require
special permissions setup.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michael Labhard [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:58 PM
To: Tomcat Users List
Subject: Re: n00b cannot get jar files to work.

Thank you for the reply.

I assume that you meant the opposite when you wrote, There's no reason
it
should work in a jar, and it SHOULD work in a jar.

When tomcat was installed it inserted a user and a group both named
tomcat
on my machine (I'm using Gentoo Linux 2.6.4).  However, I changed the
permissions to the jar file to my own permissions and group users but
that
did not help.  Anything else I can investigate?  I'm really stuck and
have
been working for days on just this one problem of getting Tomcat to see
classes in jar files.  Any help would be much appreciated.

-- Michael

On Thursday 27 May 2004 09:48 am, Shapira, Yoav wrote:
 Hi,
 The class itself and web.xml look fine (though we usually tell people
to
 put servlet-name before url-pattern in the servlet-mapping element,
for
 backwards compatibility and/or historical reasons).  There's no
reason
 it should work in a jar.  Webapps/test/WEB-INF/lib is the right place
to
 put that jar.  What are tomcat:tomcat permissions?  The permissions
 should be such that the server user can read the jar.

 Yoav Shapira
 Millennium Research Informatics

 -Original Message-
 From: Michael Labhard [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 12:39 PM
 To: [EMAIL PROTECTED]
 Subject: n00b cannot get jar files to work.
 
 How do I get jar files to work?
 
 Learning Tomcat I have a simple HelloServlet class.  When compiled

 and

 the
 class file is inserted into the directory
 
 /opt/tomcat/webapps/test/WEB-INF/classes/example
 
 and the web.xml file given below is placed in
 
 /opt/tomcat/webapps/test/WEB-INF/
 
 and tomcat is restarted then the url
 
 http://localhost:8080/test/hello
 
 page reads:
 
 Hello, world!
 
 But if the same class is placed in a jar file and this jar file is

 inserted

 into any of the following directories and given permissions

 tomcat:tomcat

 /opt/tomcat/webapps/test/WEB-INF/lib
 /opt/tomcat/common/lib
 /opt/tomcat/shared/lib
 
 when tomcat is restarted and the same url is addressed first there
is
 
  Blank page 
 
 the second time the page is refreshed there is
 
 Status 500:
 javax.servlet.ServletException: Wrapper cannot find servlet

 class

 example.HelloServlet or a class it depends on
 
 and the third and all subsequent times the page is refreshed there
is
 
 Status 400:
  Servlet hello is not available
 
 How do I get jar files to work?  Thank you.
 
 -- Michael
 
 Appendix:
 
 web.xml file:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
   servlet
 servlet-namehello/servlet-name
 servlet-classexample.HelloServlet/servlet-class
   /servlet
 
   servlet-mapping
 url-pattern/hello/url-pattern
 servlet-namehello/servlet-name
   /servlet-mapping
 /web-app
 
 
 HelloServlet.java:
 
 package example;
 
 import java.io.*;
 import java.util.*;
 
 import javax.servlet.http.*;
 import javax.servlet.*;
 
 public class HelloServlet extends HttpServlet {
   public void doGet (
 HttpServletRequest  req,
 HttpServletResponse res
 ) throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter pw = res.getWriter();
 
 pw.println(!DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0
 Transitional//EN\);
 pw.println();
 pw.println(head);
 pw.println(meta http-equiv=\Content-Type\
content=\text/html;
 charset=ISO-8859-1\);
 pw.println();
 pw.println(!-- The Servlet expression tags interpolate script
 variables
 into the HTML --);
 pw.println();
 pw.println(titleHello, world!/title);
 pw.println(/head);
 pw.println();
 pw.println(body bgcolor=white);
 pw.println();
 pw.println(h1Hello, world!/h1);
 pw.println();
 pw.println(/body);
 pw.close();
   }
 
   public HelloServlet() {}
 }
 
 

-
 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 

RE: Revisted: 302 Response When Request URI == Context Path

2004-05-27 Thread Blair Cooper
I thought this was the User list, not the Dev list. As such, why should I be
expected to submit code suggestions or diffs.

I think a patch is in order for the obvious reason that something that
worked fine in Tomcat4 doesn't work in Tomcat5. It's called backwards
compatibility.

Blair

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 6:04 AM
To: Tomcat Users List
Subject: RE: Revisted: 302 Response When Request URI == Context Path


Hi,

After using Tomcat4 for a couple of years, we decided to try Tomcat5
for
our
next release. However, we immediately ran into the problem above.
Search as
I may, I have found little discussion of this problem and no way around
it.
Is there some configuration change that can be made to return to the
Tomcat4
behavior? If not, will there be? If so, is there any time frame?

No, no, no (the answer to the last question is always no).  If you think
a patch is in order, please explain and suggest one (as in submit a code
diff file).

Yoav




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: Which connector to use JK 1.2 or JK 2

2004-05-27 Thread Chad Morris

I seem to remember there were problems if you tried to run jk1 with virtual hosts and 
also apache https.  Does that sound right?

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Which connector to use JK 1.2 or JK 2


I've used both.. With 4.1 and 5. In fact our staging server uses jk2
and live server jk1.

I would say use 1. Its less bother. Less configuration and I've also
found that jk2 has issues when you want to load balance java content
from static

I've seen loads of examples where the whole webapp is mounted e.g.

JkMount /examples/*

which seems to me plain nonsense

JkMount /servlet/* myworker
JkMount /*.jsp myworker
JkMount /*.do myworker

would seem to fit the bill.

With Jk2 however I had a problem where you needed to mount the webapp
name (context) to get it to play

   Location /examples/servlet/*
   JkUriSet group ajp13:localhost:8009
   /Location

Which was a pain in the arse and you also had to do similar jiggery
pockery in workers2.properties.

I had it working once when i checked a version out of cvs. But this
seems to change with every release.

Jk seems the stable release i'll be sticking to it, at least for the
time being.

HTH Mark

On 27 May 2004, at 18:10, Reis, Tom wrote:

   I am confused as to which connector to use for connecting II 6.0
 Tomcat 4.1.30. It appears that either the JK 1.2 or the JK 2 will work
 but I am uncertain. If someone could clarify the difference between
 these connectors and which to use I would greatly appreciate it.
 Thanks.

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




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


This e-mail and any files transmitted with it are confidential and are intended solely 
for the use of the individual or entity to whom it is addressed.  If you are not the 
intended recipient or the person responsible for delivering the e-mail to the intended 
recipient, be advised that you have received this e-mail in error, and that any use, 
dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

If you received this e-mail in error, please return the e-mail to the sender and 
delete it from your computer. Although our company attempts to sweep e-mail and 
attachments for viruses, it does not guarantee that either are virus-free and accepts 
no liability for any damage sustained as a result of viruses.

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



Getting messages: INFO: Unknown message 0

2004-05-27 Thread Emerson Cargnin
The errors sttoped, but I still get the following messges in catalina.log
May 27, 2004 1:52:48 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:54:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:55:20 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:56:09 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Emerson Cargnin wrote:
AFAIK, most os the attributes used in jk2.properties as related to mod_jk2.
What other attributes can be used to configure later mod_jk?
Thanks
Bill Barker wrote:
Emerson Cargnin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...
I've seen a sugestion of the request.registerRequests=false to put in
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
try this too. But... where do I put this conf, as mod_jk does not have a
jk.properties file. could be it worker.properties?

You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls the
settings for the java side of the JK Connector, regardless of which 
native
connector you are using.


thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181



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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: n00b cannot get jar files to work.

2004-05-27 Thread Parsons Technical Services
Yoav,

Trying to learn something here. From what I am reading, I can create several
servlets, place them in a jar and put this jar in WEB-INF/lib . Then these
servlets are available in my context? Just add mappings!

That is what I am reading from this thread.

My current understanding is different than this.

Doug

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:01 PM
Subject: RE: n00b cannot get jar files to work.



Hi,
Try installing it from the normal distribution at jakarta.apache.org,
not an RPM or another package specific to your system.  The normal
distro installation is simple: download and unzip to a directory of your
choice.  It doesn't created any new users or groups and doesn't require
special permissions setup.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michael Labhard [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:58 PM
To: Tomcat Users List
Subject: Re: n00b cannot get jar files to work.

Thank you for the reply.

I assume that you meant the opposite when you wrote, There's no reason
it
should work in a jar, and it SHOULD work in a jar.

When tomcat was installed it inserted a user and a group both named
tomcat
on my machine (I'm using Gentoo Linux 2.6.4).  However, I changed the
permissions to the jar file to my own permissions and group users but
that
did not help.  Anything else I can investigate?  I'm really stuck and
have
been working for days on just this one problem of getting Tomcat to see
classes in jar files.  Any help would be much appreciated.

-- Michael

On Thursday 27 May 2004 09:48 am, Shapira, Yoav wrote:
 Hi,
 The class itself and web.xml look fine (though we usually tell people
to
 put servlet-name before url-pattern in the servlet-mapping element,
for
 backwards compatibility and/or historical reasons).  There's no
reason
 it should work in a jar.  Webapps/test/WEB-INF/lib is the right place
to
 put that jar.  What are tomcat:tomcat permissions?  The permissions
 should be such that the server user can read the jar.

 Yoav Shapira
 Millennium Research Informatics

 -Original Message-
 From: Michael Labhard [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 12:39 PM
 To: [EMAIL PROTECTED]
 Subject: n00b cannot get jar files to work.
 
 How do I get jar files to work?
 
 Learning Tomcat I have a simple HelloServlet class.  When compiled

 and

 the
 class file is inserted into the directory
 
  /opt/tomcat/webapps/test/WEB-INF/classes/example
 
 and the web.xml file given below is placed in
 
  /opt/tomcat/webapps/test/WEB-INF/
 
 and tomcat is restarted then the url
 
 http://localhost:8080/test/hello
 
 page reads:
 
  Hello, world!
 
 But if the same class is placed in a jar file and this jar file is

 inserted

 into any of the following directories and given permissions

 tomcat:tomcat

  /opt/tomcat/webapps/test/WEB-INF/lib
  /opt/tomcat/common/lib
  /opt/tomcat/shared/lib
 
 when tomcat is restarted and the same url is addressed first there
is
 
   Blank page 
 
 the second time the page is refreshed there is
 
  Status 500:
  javax.servlet.ServletException: Wrapper cannot find servlet

 class

  example.HelloServlet or a class it depends on
 
 and the third and all subsequent times the page is refreshed there
is
 
  Status 400:
  Servlet hello is not available
 
 How do I get jar files to work?  Thank you.
 
 -- Michael
 
 Appendix:
 
 web.xml file:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
   servlet
 servlet-namehello/servlet-name
 servlet-classexample.HelloServlet/servlet-class
   /servlet
 
   servlet-mapping
 url-pattern/hello/url-pattern
 servlet-namehello/servlet-name
   /servlet-mapping
 /web-app
 
 
 HelloServlet.java:
 
 package example;
 
 import java.io.*;
 import java.util.*;
 
 import javax.servlet.http.*;
 import javax.servlet.*;
 
 public class HelloServlet extends HttpServlet {
   public void doGet (
 HttpServletRequest  req,
 HttpServletResponse res
 ) throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter pw = res.getWriter();
 
 pw.println(!DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0
 Transitional//EN\);
 pw.println();
 pw.println(head);
 pw.println(meta http-equiv=\Content-Type\
content=\text/html;
 charset=ISO-8859-1\);
 pw.println();
 pw.println(!-- The Servlet expression tags interpolate script
 variables
 into the HTML --);
 pw.println();
 pw.println(titleHello, world!/title);
 pw.println(/head);
 pw.println();
 pw.println(body bgcolor=white);
 pw.println();
 pw.println(h1Hello, world!/h1);
 pw.println();
 

Why don't updated unpacked WAR files get reloaded automatically?

2004-05-27 Thread Jonathan Eric Miller
I noticed that if you have unpackWARs set to false and you update a WAR
file, it doesn't reload it.

According to the Tomcat documentation at the following link, it only does it
for unpacked WAR files. Why?

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic%20Application%20Deployment

Jon


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



Re: n00b cannot get jar files to work.

2004-05-27 Thread Michael Labhard
Yoav:

I would except the machine I am working on is an amd64 Opteron processor and I 
doubt that the binaries would work.  Gentoo built tomcat from the 5.0.18 
source and that what I am working with.

Any way to confirm that tomcat's classpath actually contains the jar file?

-- Michael

 Hi,
 Try installing it from the normal distribution at jakarta.apache.org,
 not an RPM or another package specific to your system.  The normal
 distro installation is simple: download and unzip to a directory of your
 choice.  It doesn't created any new users or groups and doesn't require
 special permissions setup.

 Yoav Shapira
 Millennium Research Informatics

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



Possible to forward a request to another server?

2004-05-27 Thread Wendell Holmes
Is it possible to forward a request from one Tomcat server to another?  I
looked at the API's and it seems to say the resource must be located on the
same server and in the same servlet context.  I'm needing to have some way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent to an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a servlet
to wrap the original request and forward on?

Thanks 

Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107


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



RE: n00b cannot get jar files to work.

2004-05-27 Thread Shapira, Yoav

Hi,

I would except the machine I am working on is an amd64 Opteron
processor
and I
doubt that the binaries would work.  Gentoo built tomcat from the
5.0.18
source and that what I am working with.

Why do you doubt they'd work?  I'd give them a shot if I were you --
after all, that IS on of the main points of Java ;)

Any way to confirm that tomcat's classpath actually contains the jar
file?

Displaying the runtime classpath of a webapp can be a bit tricky.  It's
NOT System.getProperty(java.class.path).  The classloader how-to
document that ships with tomcat descibres the classpath and loading
order.  You can configure the logging system to tell you what jars it's
deploying on startup.

Trying to learn something here. From what I am reading, I can create
several servlets, place them in a jar and put this jar in WEB-INF/lib .
Then these servlets are available in my context? Just add mappings!

That is what I am reading from this thread.

My current understanding is different than this.

Not just mappings, but also servlet elements.  But yes, of course, the
rest is correct.  What was your understanding??

Yoav



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: Possible to forward a request to another server?

2004-05-27 Thread Shapira, Yoav

Hi,
Like HttpServletResponse#sendRedirect?  It's not like a forward in that
the client URL changes, but it does pass the request to another server.
Beyond that, you COULD write something that'd wrap the request, invoke
another server to handle it, and stream the response to your own client.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Wendell Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: Possible to forward a request to another server?

Is it possible to forward a request from one Tomcat server to another?
I
looked at the API's and it seems to say the resource must be located on
the
same server and in the same servlet context.  I'm needing to have some
way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent
to
an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a
servlet
to wrap the original request and forward on?

Thanks

Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107


-
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: Why don't updated unpacked WAR files get reloaded automatically?

2004-05-27 Thread Shapira, Yoav

Hi,
Because you may have changed the contents of the unpacked directory, and
a redeployment of the WAR (which includes unpacking it) would overwrite
your changes.  We'd rather be extra careful and require the user to
explicitly redeploy the app via the manager (or whatever mechanism
he/she wants to use).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:20 PM
To: Tomcat User List
Subject: Why don't updated unpacked WAR files get reloaded
automatically?

I noticed that if you have unpackWARs set to false and you update a
WAR
file, it doesn't reload it.

According to the Tomcat documentation at the following link, it only
does
it
for unpacked WAR files. Why?

http://jakarta.apache.org/tomcat/tomcat-5.0-
doc/config/host.html#Automatic%20Application%20Deployment

Jon


-
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: n00b cannot get jar files to work.

2004-05-27 Thread Parsons Technical Services
Yoav,

So use to doing imports that I didn't think (key words here) about Tomcat
making the servlets available from a jar. Was thinking that it would have to
be imported to be used. Learn something new each day.

Thanks

Wonder if the manifest or index of the jar is not correct? That could cause
problems.

Doug


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:51 PM
Subject: RE: n00b cannot get jar files to work.



Hi,

I would except the machine I am working on is an amd64 Opteron
processor
and I
doubt that the binaries would work.  Gentoo built tomcat from the
5.0.18
source and that what I am working with.

Why do you doubt they'd work?  I'd give them a shot if I were you --
after all, that IS on of the main points of Java ;)

Any way to confirm that tomcat's classpath actually contains the jar
file?

Displaying the runtime classpath of a webapp can be a bit tricky.  It's
NOT System.getProperty(java.class.path).  The classloader how-to
document that ships with tomcat descibres the classpath and loading
order.  You can configure the logging system to tell you what jars it's
deploying on startup.

Trying to learn something here. From what I am reading, I can create
several servlets, place them in a jar and put this jar in WEB-INF/lib .
Then these servlets are available in my context? Just add mappings!

That is what I am reading from this thread.

My current understanding is different than this.

Not just mappings, but also servlet elements.  But yes, of course, the
rest is correct.  What was your understanding??

Yoav



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: Revisted: 302 Response When Request URI == Context Path

2004-05-27 Thread Shapira, Yoav

Hi,

I thought this was the User list, not the Dev list. As such, why should
I
be
expected to submit code suggestions or diffs.

This IS the user list.  Most tomcat users are developers, and as such
the idea of submitting code fixes when they find bugs is not foreign to
them.  I didn't say to submit the patch to this list: if you do choose
to submit a patch, the process is outlined at
http://jakarta.apache.org/site/getinvolved.html.

I think a patch is in order for the obvious reason that something that
worked fine in Tomcat4 doesn't work in Tomcat5. It's called backwards
compatibility.

OK, thanks for the explanation.  FYI, tomcat 5 is fully compliant with
the Servlet and JSP specifications.

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: Possible to forward a request to another server?

2004-05-27 Thread Wendell Holmes
Thanks, Yoav.

I will try to write something to wrap the request.  The streaming back part
answers my question about how to handle the response.

I could simply use IIS to redirect the original request, but the server
address would be unreachable for the client as only the web server would
have a route across the firewall.

Wendell

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:53 AM
To: Tomcat Users List
Subject: RE: Possible to forward a request to another server?



Hi,
Like HttpServletResponse#sendRedirect?  It's not like a forward in that
the client URL changes, but it does pass the request to another server.
Beyond that, you COULD write something that'd wrap the request, invoke
another server to handle it, and stream the response to your own client.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Wendell Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: Possible to forward a request to another server?

Is it possible to forward a request from one Tomcat server to another?
I
looked at the API's and it seems to say the resource must be located on
the
same server and in the same servlet context.  I'm needing to have some
way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent
to
an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a
servlet
to wrap the original request and forward on?

Thanks

Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107


-
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: Possible to forward a request to another server?

2004-05-27 Thread Tim Funk
Look at JSTL's c:import tag. If you don't do posts (or images) - it might 
be enough of a quick kludge.

For example, call this page cowbell.jsp:
--
%@ taglib uri=http://java.sun.com/jstl/core/c.tld; prefix=c %
c:import url=http://otherserver${pageContext.request.requestURI}/
--
Then in web.xml:
 servlet
servlet-namefever/servlet-name
jsp-file/WEB-INF/cowbell.jsp/jsp-file
  /servlet
 servlet-mapping
servlet-namefever/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping
The poor man's proxy in a quick webapp.
-Tim
Wendell Holmes wrote:
Is it possible to forward a request from one Tomcat server to another?  I
looked at the API's and it seems to say the resource must be located on the
same server and in the same servlet context.  I'm needing to have some way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent to an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a servlet
to wrap the original request and forward on?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: n00b cannot get jar files to work.

2004-05-27 Thread Michael Labhard

 Why do you doubt they'd work?  I'd give them a shot if I were you --
 after all, that IS on of the main points of Java ;)

Oh, I see.  It didn't occur to me that Tomcat was itself written in java.  
But, of course!

So I downloaded the binaries and used them for the same tests just as you 
recommended, however there was no difference at all in the results.  The jar 
file still does not work.  By the way, I have double and triple checked that 
the jar file does indeed contain the very same class.

-- Michael

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



Re: n00b cannot get jar files to work.

2004-05-27 Thread Michael Labhard
On Thursday 27 May 2004 11:04 am, Parsons Technical Services wrote:
 Wonder if the manifest or index of the jar is not correct? That could cause
 problems.

The jar manifest is empty:

Manifest-Version: 1.0
Created-By: 1.4.2-rc1 (Blackdown Java-Linux Team)

I think this is right.  Only signed files should be listed.

-- Michael

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



Mail Session JNDI Lookup fails on 5.0.25

2004-05-27 Thread Matt Raible
I've been using 4.1.x and 5.0.x for quite some time with the sample 
application.  This application does a JNDI lookup of a mail session.  
This session is configured in my app's context with the following:

Resource name=mail/Session auth=Container 
type=javax.mail.Session/
ResourceParams name=mail/Session
parameter
namemail.smtp.host/name
valuelocalhost/value
/parameter
/ResourceParams

My code has worked flawlessly on all Tomcat 4.1.x and Tomcat 5.0.x 
releases (even 5.0.24), but it doesn't work on 5.0.25.

Here's my code:
session =
(Session) new InitialContext().lookup(java:comp/env/ +
  
Constants.JNDI_MAIL);

Where Constants.JNDI_MAIL is:
public static final String JNDI_MAIL = mail/Session;
I noticed that I didn't have a resource-ref in my web.xml for this 
resource, but adding it didn't fix the problem.

Any idea what changed in 5.0.25?
Thanks,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: n00b cannot get jar files to work.

2004-05-27 Thread Shapira, Yoav

Hi,
I have no more ideas, but I'm curious as to what JDK you're using.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michael Labhard [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 2:27 PM
To: Tomcat Users List
Subject: Re: n00b cannot get jar files to work.

On Thursday 27 May 2004 11:04 am, Parsons Technical Services wrote:
 Wonder if the manifest or index of the jar is not correct? That could
cause
 problems.

The jar manifest is empty:

   Manifest-Version: 1.0
   Created-By: 1.4.2-rc1 (Blackdown Java-Linux Team)

I think this is right.  Only signed files should be listed.

-- Michael

-
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: Why so many sessions?

2004-05-27 Thread Leonard Sitongia
On May 27, 2004, at 10:05 AM, Leonard Sitongia wrote:
But, the number of Sessions is 140.
The number appears to have fluctuations up and down, but the overall 
trend is to increase.  There are now 170 sessions.  Some sessions 
apparently expire but others do not, hence the overall increase.

Is this going to eventually hit a wall?
Thanks for your help,
==Leonard
==Leonard E. Sitongia
  VETS / Scientific Computing Division
  National Center for Atmospheric Research
  P.O. Box 3000 Boulder CO 80307  USA
  [EMAIL PROTECTED]voice: (303)497-2454   fax: (303)497-1829
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Vedr.: Getting messages: INFO: Unknown message 0

2004-05-27 Thread Thomas Nybro Bolding
Hi Emerson,
these are non-critical but will stop to occur upon upgrading to 5.0.25.

/Thomas





Emerson Cargnin [EMAIL PROTECTED]
27-05-2004 14:14
Besvar venligst til Tomcat Users List

 
Til:Tomcat Users List [EMAIL PROTECTED]
cc: 
Vedr.:  Getting messages: INFO: Unknown message 0



The errors sttoped, but I still get the following messges in catalina.log


May 27, 2004 1:52:48 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:54:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:55:20 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:56:09 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0

Emerson Cargnin wrote:
 AFAIK, most os the attributes used in jk2.properties as related to 
mod_jk2.
 
 What other attributes can be used to configure later mod_jk?
 
 Thanks
 
 Bill Barker wrote:
 
 Emerson Cargnin [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

 I'm running out of memory with the msg:

 ...
 WARNING: Error registering request
 May 25, 2004 5:36:44 PM
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
 SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
 [EMAIL PROTECTED], terminating thread
 May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
 INFO: Unknown message 0
 java.lang.OutOfMemoryError
 java.lang.OutOfMemoryError
 java.lang.OutOfMemoryError
 ...


 I've seen a sugestion of the request.registerRequests=false to put 
in
 jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
 try this too. But... where do I put this conf, as mod_jk does not have 
a
 jk.properties file. could be it worker.properties?



 You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls 
the
 settings for the java side of the JK Connector, regardless of which 
 native
 connector you are using.


 thanks in advance


 -- 
 Emerson Cargnin
 Analista de Sistemas
 Setor de Desenvolvimento de Sistemas - TRE-SC
 tel : (048) - 251-3700 - Ramal 3181






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


 
 


-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT



Re: n00b cannot get jar files to work.

2004-05-27 Thread Michael Labhard
Yoav:

As happens the realization of the solution came to me as a result of our 
exchanges.  I had improperly built the jar file.  The servlet was in a 
package example but the jar file did not contain a directory example that 
contained the class.  It just contained the class.  What I should have done 
is created the jar file and then EXPANDED it in the tomcat webapps class 
location.  Then it would have been clear that the problem was the structure 
of the jar.  Once the jar had a valid structure everything worked.

This is the JDK I'm using: blackdown-jdk-1.4.2_rc1.

Thank you very much for helping me with this.

-- Michael

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



RE: n00b cannot get jar files to work.

2004-05-27 Thread Shapira, Yoav

Hi,
No problem, glad to help -- those little things can be frustrating ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michael Labhard [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 3:05 PM
To: Tomcat Users List
Subject: Re: n00b cannot get jar files to work.

Yoav:

As happens the realization of the solution came to me as a result of
our
exchanges.  I had improperly built the jar file.  The servlet was in a
package example but the jar file did not contain a directory
example
that
contained the class.  It just contained the class.  What I should have
done
is created the jar file and then EXPANDED it in the tomcat webapps
class
location.  Then it would have been clear that the problem was the
structure
of the jar.  Once the jar had a valid structure everything worked.

This is the JDK I'm using: blackdown-jdk-1.4.2_rc1.

Thank you very much for helping me with this.

-- Michael

-
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: Why don't updated unpacked WAR files get reloaded automatically?

2004-05-27 Thread Jonathan Eric Miller
Thanks, but, since, I have unpackWARs set to false, I have no unpacked
directory, so, I don't see why that would make a difference.

Jon

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:58 PM
Subject: RE: Why don't updated unpacked WAR files get reloaded
automatically?



 Hi,
 Because you may have changed the contents of the unpacked directory, and
 a redeployment of the WAR (which includes unpacking it) would overwrite
 your changes.  We'd rather be extra careful and require the user to
 explicitly redeploy the app via the manager (or whatever mechanism
 he/she wants to use).

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 1:20 PM
 To: Tomcat User List
 Subject: Why don't updated unpacked WAR files get reloaded
 automatically?
 
 I noticed that if you have unpackWARs set to false and you update a
 WAR
 file, it doesn't reload it.
 
 According to the Tomcat documentation at the following link, it only
 does
 it
 for unpacked WAR files. Why?
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-
 doc/config/host.html#Automatic%20Application%20Deployment
 
 Jon
 
 
 -
 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: Mail Session JNDI Lookup fails on 5.0.25

2004-05-27 Thread Shapira, Yoav

Hi,
Hmm.  I wasn't aware of anything in the naming/JNDI area that changed in
5.0.25 that could cause this.  Yet I can reproduce your problem, so it's
clearly not specific to you.  You get a javax.naming.NamingException:
Cannot create resource instance exception, right?

Digging a bit deeper, I see nothing related to this in the 5.0.25
changelog, and none of the files under org.apache.naming have changed in
the last two months.  So we need to dig deeper still ;(

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 2:39 PM
To: Tomcat Users List
Subject: Mail Session JNDI Lookup fails on 5.0.25

I've been using 4.1.x and 5.0.x for quite some time with the sample
application.  This application does a JNDI lookup of a mail session.
This session is configured in my app's context with the following:

 Resource name=mail/Session auth=Container
type=javax.mail.Session/
 ResourceParams name=mail/Session
 parameter
 namemail.smtp.host/name
 valuelocalhost/value
 /parameter
 /ResourceParams

My code has worked flawlessly on all Tomcat 4.1.x and Tomcat 5.0.x
releases (even 5.0.24), but it doesn't work on 5.0.25.

Here's my code:

session =
 (Session) new InitialContext().lookup(java:comp/env/
+

Constants.JNDI_MAIL);

Where Constants.JNDI_MAIL is:

public static final String JNDI_MAIL = mail/Session;

I noticed that I didn't have a resource-ref in my web.xml for this
resource, but adding it didn't fix the problem.

Any idea what changed in 5.0.25?

Thanks,

Matt


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



JK2 MX4J Dependancies

2004-05-27 Thread Wilson Jimmy - jiwils
Is there any work being done to support MX4J 2.0.x?  MX4J's 1.1.1 release is
no longer available from the MX4J web site.

Does anyone have any idea how big of a project this would be?  I might be
interested in helping to contribute if it is not too large.

Jimmy


**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


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



RE: Mail Session JNDI Lookup fails on 5.0.25

2004-05-27 Thread Shapira, Yoav

Hi,
After adding some debugging statement to the code (on a local build of
5.0.26 that has no relevant changes):
getting mail session factory.
factory class name = org.apache.naming.factory.MailSessionFactory
java.lang.ClassNotFoundException:
org.apache.naming.factory.MailSessionFactory
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:854)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:721)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceF
actory.java:125)

And further, jar tvf $CATALINA_HOME/common/lib/naming-factory.jar shows
org.apache.naming.factory.MailSessionFactory is indeed missing.  The
same command on tomcat 5.0.24's common/lib shows the class present.

I have a vague theory on why this happened.  Regardless, this is a good
catch on your part.  I've opened a bugzilla item for it
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29255), and noted in
the item that a quick workaround until the next build is available is to
copy the naming-factory.jar from 5.0.24 to the common/lib directory.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 2:39 PM
To: Tomcat Users List
Subject: Mail Session JNDI Lookup fails on 5.0.25

I've been using 4.1.x and 5.0.x for quite some time with the sample
application.  This application does a JNDI lookup of a mail session.
This session is configured in my app's context with the following:

 Resource name=mail/Session auth=Container
type=javax.mail.Session/
 ResourceParams name=mail/Session
 parameter
 namemail.smtp.host/name
 valuelocalhost/value
 /parameter
 /ResourceParams

My code has worked flawlessly on all Tomcat 4.1.x and Tomcat 5.0.x
releases (even 5.0.24), but it doesn't work on 5.0.25.

Here's my code:

session =
 (Session) new InitialContext().lookup(java:comp/env/
+

Constants.JNDI_MAIL);

Where Constants.JNDI_MAIL is:

public static final String JNDI_MAIL = mail/Session;

I noticed that I didn't have a resource-ref in my web.xml for this
resource, but adding it didn't fix the problem.

Any idea what changed in 5.0.25?

Thanks,

Matt


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




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


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



RE: How to make Apache direct Servlet to Tomcat

2004-05-27 Thread Daxin Zuo
Thank for your reply.
Yes, I did it.
in the tomcat\webapps\ROOT\web.xml or tomcat\webapps\ROOT\WEB-INF (not
both):
  servlet
servlet-nametest1/test1/servlet-name
servlet-classtest1/test1/servlet-class
  /servlet
  servlet-mapping
servlet-nametest1/test1/servlet-name
url-pattern/test1/test1/url-pattern
  /servlet-mapping

in Apache/conf/workers2.properties
[uri:/ROOT/*]
group=lb

The servlet classes test1.class is compiled to
tomcat\webapps\ROOT\WEB-INF\classes, in package test1.
only URL http://localhost:8008/servlet/test1.test1 works.(Tomcat port 8008)
I would run it with URL http://localhost:82/test1/test1 (Apach port 82)
Thanks.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 8:55 AM
To: Tomcat Users List
Subject: RE: How to make Apache direct Servlet to Tomcat


Hi,

1) You need to set up a URI mapping in your workers2.properties in your
apache conf directory for the servlets to work, its enough to just put
yourapp/*, from the sounds of it you must have yourapp/*.jsp or something
like that.

2) You need to set up URL mappings in the applications web.xml file and then
you can have the URL as anything you want to each servlet.

Ta
Matt


-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: 27 May 2004 16:14
To: Tomcat Users List
Subject: How to make Apache direct Servlet to Tomcat


My Apache 2.0.49 can direct JSP to Tomcat 5.0.19, but it cannot direct
Servlet to Tomcat. I can run it  on Tomcat:
http://localhost:8008/servlet/myapp/testServlet
But I cannot run it on Apache (port number is 82) like:
http://localhost:82/servlet/myapp/testServlet. The error log says:
File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/servlet.
I guess I may need to put servlet in some configuration file in
Apache/conf. Please tell me

1) How to make Apache direct servlet to Tomcat?
2) Suppose my application base folder is myApp, is there a way to run the
servlet on Apache and with the url like:
http://localhost:82/myapp/testServlet (without /Servlet)?
Thanks.


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



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



RE: JK2 MX4J Dependancies

2004-05-27 Thread Shapira, Yoav

Hi,
It's probably not a huge deal, and it's definitely on the radar screen.
Take a shot at building tomcat with MX4J 2.0 and let us help you if you
run into problems.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Wilson Jimmy - jiwils [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 3:37 PM
To: 'Tomcat Users List'
Subject: JK2  MX4J Dependancies

Is there any work being done to support MX4J 2.0.x?  MX4J's 1.1.1
release
is
no longer available from the MX4J web site.

Does anyone have any idea how big of a project this would be?  I might
be
interested in helping to contribute if it is not too large.

Jimmy


**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


-
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: Load balancing

2004-05-27 Thread Charles P. Killmer
Well I have it set up like this, but it isnt working quite right.

Workers2.properties
[shm:]
info=Shared memory file. Required for multiprocess servers
file=C:\Tomcat\work\jk2.shm
size=100

[channel.socket:172.16.10.39:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=SITE1
route=SITE1
lbfactor=1 
local_worker=1 

[channel.socket:172.16.10.38:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=SITE2
route=SITE2
lbfactor=1 
local_worker=1 

[uri:/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/



Server.xml
?xml version='1.0' encoding='utf-8'?
Server
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=SITE1
Connector port=8009 address=172.16.10.39 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine defaultHost=SITE1.com name=SITE1 jvmRoute=SITE1
Host name=SITE1.com debug=0 appBase=c:\sites\SITE1
unpackWARs=true autoDeploy=false xmlValidation=false
xmlNamespaceAware=false
Context path= docBase=c:/sites/SITE1 debug=0/
Valve
className=org.apache.catalina.authenticator.SingleSignOn debug=0/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=client-domain. suffix=.txt pattern=common
resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=client-domain2. suffix=.txt
timestamp=true//Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=SITE1_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
  /Service
  
  Service name=SITE2
Connector port=8009 address=172.16.10.38 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine defaultHost=SITE2.com name=SITE2 jvmRoute=SITE2
Host name=SITE2.com debug=0 appBase=c:\sites\SITE2
unpackWARs=true autoDeploy=false xmlValidation=false
xmlNamespaceAware=false
Context path= docBase=c:/sites/SITE2 debug=0/
Valve
className=org.apache.catalina.authenticator.SingleSignOn debug=0/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=client-domain. suffix=.txt pattern=common
resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=client-domain2. suffix=.txt
timestamp=true//Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=SITE2_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
  /Service
/Server


I have for host pointing to each IP.  This is my hosts file

172.16.10.39site-1.com  Works
172.16.10.39www.site-1.com  Gives me site2's content
172.16.10.39other.site-1.comWorks
172.16.10.39site1.com   Works
172.16.10.39www.site1.com   Works
172.16.10.39other.site1.com Works

172.16.10.38site-2.com  Works
172.16.10.38www.site-2.com  Gives me site1's content
172.16.10.38other.site-2.comWorks
172.16.10.38site2.com   Works
172.16.10.38www.site2.com   Works
172.16.10.38other.site2.com Works


This is very weird.
Any ideas?
Charles

 

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 26, 2004 4:49 PM
To: 'Tomcat Users List'
Subject: RE: Load balancing

the docs for jk2 suggest :

tomcatId is Automatically set to the localname ( host:port ) and
that it Must match the JVM route on tomcat the server.xml Engine
element, for load balancing
 
So maybe:
[channel.socket:172.16.10.39:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=site1
 
[channel.socket:172.16.10.38:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=site2
 
and in server.xml:

   Engine defaultHost=Site1.com name=Site1 jvmRoute=site1
... etc ...
   Engine defaultHost=Site2.com name=Site2 jvmRoute=site2



 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 3:33 PM
 To: Tomcat Users List
 

RE: Using OpenJMS in Tomcat Valve

2004-05-27 Thread Rui Zhang
Thanks a lot, Yoav, it works now.

Rui


On Thu, 27 May 2004, Shapira, Yoav wrote:


 Hi,
 Try using the TCP factories instead of the RMI ones (they also ship with
 open JMS, same jars, it'll just be a tcp://somehost:someport connection
 URL).

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Rui Zhang [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 12:48 PM
 To: Tomcat Users List
 Subject: Using OpenJMS in Tomcat Valve
 
 Hi Filip,
 
Thanks for your reply.
 
I've got pass that point but am now having new problem...(I'm using
 OpenJMS)
 
After successfully creating the connectionFactory and the
 Connection, I
 was prompted the following when Tomcat starts and the OpenJMS server is
 alreay up and running:
 
[main] ERROR digester.Digester  - Begin event threw exception
 javax.jms.JMSException: Failed to createSession
 java.rmi.ServerException:
 RemoteException occurred in server thread; nested exception is:
 java.rmi.UnmarshalException: error unmarshalling arguments;
 nested
 exception is:
 java.net.MalformedURLException: no protocol: Group/Tomcat
 at
 org.exolab.jms.client.rmi.RmiJmsConnectionStub.createSession(RmiJmsCo
 nnectionStub.java:155)
 at org.exolab.jms.client.JmsSession.init(JmsSession.java:225)
 at
 org.exolab.jms.client.JmsTopicSession.init(JmsTopicSession.java:89)
 at
 org.exolab.jms.client.JmsTopicConnection.createTopicSession(JmsTopicC
 onnection.java:105)
 at
 uk.org.hwlm.agent.TomcatARMValve.init(TomcatARMValve.java:70)
 ..
 
 
 My code looks like this:
 
 Hashtable prop = new Hashtable();
 
 
 prop.put(Context.INITIAL_CONTEXT_FACTORY,org.exolab.jms.jndi.InitialCo
 ntex
 tFactory);
   prop.put(Context.PROVIDER_URL, rmi://localhost:1099/);
 
 Context cxt = new InitialContext(prop);
 
 cf =
 (TopicConnectionFactory)cxt.lookup(JmsTopicConnectionFactory);
 
  con = cf.createTopicConnection();
 
 session =
 con.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
 
 ..
 
   Please note that the same code runs fine in a standalone J2ee
 program. Any help would be greatly appreciated.
 
   Thanks a lot.
 
 Rui
 
 On Wed, 26 May 2004, Filip Hanik (lists) wrote:
 
  what initial context are you trying to connect to
  you can do this:
 
  Properties props = new Properties();
  props.setProperty(...);
  Context cxt = new InitialContext(props);
 
  where you set the machine and port of the machine hosting your
 initial
  context. (should be the URL to the server where your JMS server is
 running)
  Filip
 
 
  -Original Message-
  From: Rui Zhang [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, May 26, 2004 6:45 PM
  To: Tomcat Users List
  Subject: Using JMS in Tomcat Valve
 
 
  Hi all,
 
How can I configure tomcat to use JMS in its valve?
 
I failed at the very beginning, when I tried to obtain the JNDI
  context, after moving the J2EE jms.jar to under server/lib.
 
  ---
The Exception I got was:
 
[main] ERROR digester.Digester  - Begin event threw exception
  javax.naming.NoInitialContextException: Need to specify class name in
  environment or system property, or as an applet parameter, or in an
  application
  resource file:  java.naming.factory.initial
 
  ---
My code in the valve constructor looks like the following. The same
 code
  runs perfectly fine in a normal J2EE application.
 
Context cxt = new InitialContext();
cf = (ConnectionFactory)cxt.lookup(jms/TopicConnectionFactory);
 
con = cf.createConnection();
 
session = con.createSession(false,Session.AUTO_ACKNOWLEDGE);
 
dest = (Topic)cxt.lookup(jms/hWLMTopic);
 
producer = session.createProducer(dest);
 
  ---
 
Any advice will be hugely appreciated.
 
  Best regards,
 
  Rui
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004
 
 
  -
  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 

NoClassDefFoundError

2004-05-27 Thread Worley Brent - bworle
Hi everyone,

I'm fairly new to Java and Tomcat.  I hope this problem can be easily
explained.

I am using Tomcat 5.0.24.

I have an application, packaged it in a WAR file, and deployed it.  This
application has a login page.  After logging in, the application redirects
to a page named search.jsp.  This page loads a package (import search.*).
Package search includes several classes.  The two in question are
Search.class and SearchSession.class.  SearchSession is started as a bean
and it has an instance of the Search class in it.  However, when search.jsp
loads (and loads SearchSession) I get a java.lang.NoClassDefFoundError. When
I view the source, it is where SearchSession creates an instance of the
Search class.

I have verified that the classes are under WEB-INF/classes/search.

Any ideas of what could be going wrong?

Thanks,
Brent Worley



**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.



RE: Load balancing

2004-05-27 Thread Charles P. Killmer
I played around with it a little more and noticed that if I close the
browser and reopen the sites, I get different ones working.  It appears
that Tomcat is setting a cookie to stick me to a particular worker.
So it appears that this is not the ideal way to have one server, many
sites, each with many host names.

Charles 

-Original Message-
From: Charles P. Killmer 
Sent: Thursday, May 27, 2004 3:14 PM
To: Tomcat Users List
Subject: RE: Load balancing

Well I have it set up like this, but it isnt working quite right.

Workers2.properties
[shm:]
info=Shared memory file. Required for multiprocess servers
file=C:\Tomcat\work\jk2.shm size=100

[channel.socket:172.16.10.39:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=SITE1
route=SITE1
lbfactor=1
local_worker=1 

[channel.socket:172.16.10.38:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=SITE2
route=SITE2
lbfactor=1
local_worker=1 

[uri:/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/



Server.xml
?xml version='1.0' encoding='utf-8'?
Server
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=SITE1
Connector port=8009 address=172.16.10.39 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine defaultHost=SITE1.com name=SITE1 jvmRoute=SITE1
Host name=SITE1.com debug=0 appBase=c:\sites\SITE1
unpackWARs=true autoDeploy=false xmlValidation=false
xmlNamespaceAware=false
Context path= docBase=c:/sites/SITE1 debug=0/
Valve
className=org.apache.catalina.authenticator.SingleSignOn debug=0/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=client-domain. suffix=.txt pattern=common
resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=client-domain2. suffix=.txt
timestamp=true//Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=SITE1_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
  /Service
  
  Service name=SITE2
Connector port=8009 address=172.16.10.38 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine defaultHost=SITE2.com name=SITE2 jvmRoute=SITE2
Host name=SITE2.com debug=0 appBase=c:\sites\SITE2
unpackWARs=true autoDeploy=false xmlValidation=false
xmlNamespaceAware=false
Context path= docBase=c:/sites/SITE2 debug=0/
Valve
className=org.apache.catalina.authenticator.SingleSignOn debug=0/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=client-domain. suffix=.txt pattern=common
resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=client-domain2. suffix=.txt
timestamp=true//Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=SITE2_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
  /Service
/Server


I have for host pointing to each IP.  This is my hosts file

172.16.10.39site-1.com  Works
172.16.10.39www.site-1.com  Gives me site2's content
172.16.10.39other.site-1.comWorks
172.16.10.39site1.com   Works
172.16.10.39www.site1.com   Works
172.16.10.39other.site1.com Works

172.16.10.38site-2.com  Works
172.16.10.38www.site-2.com  Gives me site1's content
172.16.10.38other.site-2.comWorks
172.16.10.38site2.com   Works
172.16.10.38www.site2.com   Works
172.16.10.38other.site2.com Works


This is very weird.
Any ideas?
Charles

 

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 4:49 PM
To: 'Tomcat Users List'
Subject: RE: Load balancing

the docs for jk2 suggest :

tomcatId is Automatically set to the localname ( host:port ) and
that it Must match the JVM route on tomcat the server.xml Engine
element, for load balancing
 
So maybe:
[channel.socket:172.16.10.39:8009]
info=Ajp13 worker, connects to tomcat instance using 

  1   2   >