Using -server JVM option with jsvc

2004-02-12 Thread Mariano
Hi all, i like to use -server option JVM with jsvc.

If I use -server in CATALINA_OPTS doesn't work, i also use export
JAVA_OPTS=-server in the script but i don't know if this works. It seems
likes works fine, but i don't konw if -server option is working.

Thanks.

Mariano López




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

RE: Apache2 to Tomcat5.0.x

2004-02-12 Thread Yiannis Mavroukakis

Possibly. If I am not mistaken it has to do with the fact that Apache under
windows uses a single worker thread whereas under Linux that is not the
case..
I think Mladen Turk is the authority to speak on that though.

Yiannis

-Original Message-
From: Bill Dudney [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 23:03
To: [EMAIL PROTECTED]
Subject: Apache2 to Tomcat5.0.x


Hi,

I'm trying to connect Apache2 to Tomcat5.0.x on my mac (OS X) and I'm
unable to get jni to work. What is the expected/required/best way to
connect these two on a Unix platform? I read in the archive that
someone did not expect the jni connection to work on Linux, does that
apply to all unixes? Or did I just misunderstand...

I don't need (yet anyway) configuration files or anything. I'm trying
to find out if I'm running down a rat hole trying to connect Apache2 to
Tomcat with jni.

Thanks in advance for any help.

-bd-


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



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


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

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

How to determine whether a file exist or not in a remote host by using java?

2004-02-12 Thread Chris
Howdy,

I want to confirm if  there is a file in a romote machine, 
How could I do using Java?

TIA
Regards.


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



Re: How to determine whether a file exist or not in a remote host by using java?

2004-02-12 Thread jerome moliere

 Howdy,

hi,
 I want to confirm if  there is a file in a romote machine,
 How could I do using Java?

what is your context ? if you use tomcat (not uncommon on this mailing
list :))
you may use a servlet to enable your client to ask to do something on the
web server filesystem...

If you use SMB protocol (samba or windows sharing) you may look at the
excellent jcifs smaba project (jcifs.samba.org)

HTH
Jerome
-- 
Auteur cahier du programmeur Java tome 2 - Eyrolles 10/2003
http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212111941


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



tomcat connectionpooling/broken pipe

2004-02-12 Thread Mohammed Javid - CTD, Chennai.
Hi

 Is the tomcat connection pooling reliable.
 We are configuring database properties in server.xml and using the
DataSource to lookup the jdbc datasource and get the connection.  
 If in case the database goes down and later it is up, will the tomcat
recreate the connections in the pool as the previous connections of pool
will be stale. Does tomcat connection pooling has this feature.
 Though the database is up, we are sometimes noticing the 'broken pipe'
error in the log file, when does this error is thrown.

Thanks

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



Re: RE: Multiple instances of Tomcat - why would you do it ?

2004-02-12 Thread Carl Walker
We run several instances of Tomcat to keep users from affecting each other.  For 
example, since each Tomcat is a different process, if one app loaded in one of the 
Tomcat instances has a problem, we can bring that Tomcat instance down w/o affecting 
the others.  Also, the likelihood that one application in a Tomcat process will affect 
an app in a different process is diminished since they are distinct.

Also, each process can be started with different permissions.  For example, if there 
are a set of files (like digital certificates, etc), the different Tomcat instances 
will be prevented from -- at the OS level -- reading each other's files.

Also, can start one of the Tomcat's up with a very limiting java.policy file that 
constrains what users can do in a webapp.  The users are prohibited from calling % 
System.exit(1) %.

You may also want several Tomcat's to test different configurations or have different 
configurations tuned to production vs. development.  For example, in development you 
can limit the number of threads that a Connector uses since you aren't as concerned 
with # of concurrent users.
 

- Original Message -
From: Derek Clarkson [EMAIL PROTECTED]
Date: Thursday, February 12, 2004 0:22 am
Subject: RE: Multiple instances of Tomcat - why would you do it ?

 He he, thanks. By the looks of the code I'm seeing - I'm going 
 with the
 space bats reason ;-) 
 
 -Original Message-
 From: Josh Rehman [EMAIL PROTECTED] 
 Sent: Thursday, 12 February 2004 12:41 PM
 To: Tomcat Users List
 Subject: Re: Multiple instances of Tomcat - why would you do it ?
 
 If the instances talk to each other via RMI, it's likely that the 
 originaldevelopers intended each instance to be run on a different 
 box. 
 They may have thought this would positively affect scalability.
 
 It may also be that they partitioned the app such that each 
 container has
 different priveledges and responsibilities, and therefore it made 
 sense to
 seperate them and configure them seperately.
 
 It may also be that the original developer was testing a theory 
 and so did
 it that way.
 
 It may also be that the developers were being paid per CPU.
 
 It may also be that one of the architects was driven mad by alien 
 spacebats, and so designed this system to prepare himself for 
 leaving this
 planet.
 
 The last one seems most likely to me. However, I could be wrong, 
 so I'd ask
 the original developer.
 
 Derek Clarkson wrote:
  Hello everyone,
  I've just started a new job where I've been asked to be the tech
 lead 
  on a project. The software originated from an external company 
 who 
  designed it to run on 3 instances of tomcat. There is an 
 instance for 
  the main applications for our customers, an instance for the 
 admin 
  section and another for secure transactions. All running on the 
 same 
  PC. These instances also communicate between each other in order 
 to 
  pass information from one to the other via RMI.
  
  I've never worked on a mulit instance installation before and no-
 one 
  here knows why it was done this way (it's not documented). Can 
 you 
  guys give me any thoughts on why a multi-instance might be setup 
 like 
  this ? What are the advantages over a single tomcat instance, 
 etc ?
  
  Essentially I'm trying to understand whether this was a good 
 solution 
  for our use. Understanding the sorts of reasons for doing it 
 will help 
  me to work out any possible future changes.
  
  
  Ciao
  Derek.
  
  
  
 __ This email, 
 including attachments, is intended only for the addressee 
  and may be confidential, privileged and subject to copyright.  
 If you 
  have received this email in error, please advise the sender and 
 delete 
  it.  If you are not the intended recipient of this email, you 
 must not 
  use, copy or disclose its content to anyone.  You must not copy 
 or 
  communicate to others content that is confidential or subject to 
  copyright, unless you have the consent of the content owner.
  
 
 --
 Josh Rehman
 citysearch.com
 213.739.3559
 
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Tomcat Sessions

2004-02-12 Thread Dale, Matt
Hi,

Currently it seems that sessions are serialised and kept through restarts of Tomcat. 
Is there any way to prevent this so that all sessions are wiped when Tomcat is 
restarted.

And even better would be to wipe them on a context basis, when a context is reloaded.

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

Installing tomcat 5 on BSD 5

2004-02-12 Thread Thomas Cherry
I'm trying to install tomcat onto a new FreeBSD system but I am getting  
an error when I try to start the server.  After modifying  
setclasspath.sh to output more information and to use classes.zip, I  
ran catalina.sh and got the following output:

# ./catalina.sh run
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.18
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.18
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.18/temp
Using JAVA_HOME:   /usr/local/jdk1.1.8
Using CLASSPATH:
/usr/local/jdk1.1.8/lib/classes.zip:/usr/local/jakarta-tomcat-5.0.18/ 
bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.18/bin/commons-logging- 
api.jar
Error loading class org.apache.catalina.startup.Bootstrap: Bad major  
version number

My java version is 1.1.8.  Will Tomcat 5 run under this version of  
java? (I'm starting to think no)

--
The ability to destroy a planet is insignificant next to the power of  
the Force. -Darth Vader, Sith Lord.

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


RE: Installing tomcat 5 on BSD 5

2004-02-12 Thread Arnab Chakravarty
Bad major version numbers are result of classes compiled on 2 different
version of jdk.

Please upgrade you jvm and then see if it helps (preferable jdk1.4 and
up).

Arnab C


-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 5:42 PM
To: Tomcat Users List
Subject: Installing tomcat 5 on BSD 5


I'm trying to install tomcat onto a new FreeBSD system but I am getting

an error when I try to start the server.  After modifying  
setclasspath.sh to output more information and to use classes.zip, I  
ran catalina.sh and got the following output:

# ./catalina.sh run
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.18
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.18
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.18/temp
Using JAVA_HOME:   /usr/local/jdk1.1.8
Using CLASSPATH:
/usr/local/jdk1.1.8/lib/classes.zip:/usr/local/jakarta-tomcat-5.0.18/ 
bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.18/bin/commons-logging- 
api.jar
Error loading class org.apache.catalina.startup.Bootstrap: Bad major  
version number

My java version is 1.1.8.  Will Tomcat 5 run under this version of  
java? (I'm starting to think no)

--
The ability to destroy a planet is insignificant next to the power of  
the Force. -Darth Vader, Sith Lord.


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



Logging: Tomcat5, RH ES, Apache2

2004-02-12 Thread Rich Baldwin
My deployment of tomcat5 and Apache2 on RedHat Enterprise Server is 
working fine except for the logging within a context.  Logging w/in a 
host works fine, setting up a value for access logs works, but I can't 
get  logging w/in a context to work.  All output still goes to 
catalina.out which is defined in the ~/bin/catalina.xml.  I have tried a 
FileLogger, SystemErrLogger, and SystemOutLogger; Tomcat just ignores 
the settings.  swallowOutput is set to false in the context so it 
shouldn't be forwarding the output.   Setting  this  stuff up  w/ Tomcat 
4 and 3 always worked fine.   Any ideas?

Thanks, Rich

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


Re: Installing tomcat 5 on BSD 5

2004-02-12 Thread Thomas Cherry
Do you know which versions of java are required for each of the 
versions of Tomcat (3, 4, 5)?  Specifically, which will run under 
1.1.8?  Upgrading my java is not a trivial task, I will have to compile 
my own copy of jdk.

--
It is pointless to resist. - Darth Vader, Sith Lord
On Feb 12, 2004, at 7:43 AM, Arnab Chakravarty wrote:

Bad major version numbers are result of classes compiled on 2 different
version of jdk.
Please upgrade you jvm and then see if it helps (preferable jdk1.4 and
up).
Arnab C

-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 5:42 PM
To: Tomcat Users List
Subject: Installing tomcat 5 on BSD 5
I'm trying to install tomcat onto a new FreeBSD system but I am getting

an error when I try to start the server.  After modifying
setclasspath.sh to output more information and to use classes.zip, I
ran catalina.sh and got the following output:
# ./catalina.sh run
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.18
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.18
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.18/temp
Using JAVA_HOME:   /usr/local/jdk1.1.8
Using CLASSPATH:
/usr/local/jdk1.1.8/lib/classes.zip:/usr/local/jakarta-tomcat-5.0.18/
bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.18/bin/commons-logging-
api.jar
Error loading class org.apache.catalina.startup.Bootstrap: Bad major
version number
My java version is 1.1.8.  Will Tomcat 5 run under this version of
java? (I'm starting to think no)
--
The ability to destroy a planet is insignificant next to the power of
the Force. -Darth Vader, Sith Lord.
-
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: Installing tomcat 5 on BSD 5

2004-02-12 Thread jerome moliere

 Bad major version numbers are result of classes compiled on 2 different
 version of jdk.

yes you're
 Please upgrade you jvm and then see if it helps (preferable jdk1.4 and
 up).

humm I guess that freebsd doesn't have a 1.4 JVM yet...
so I'll suggest to recompile Tomcat on your machine (using the complete
package or CVS code)
HTH
Jerome
-- 
Auteur cahier du programmeur Java tome 2 - Eyrolles 10/2003
http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212111941


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



Encrypted passwords in tomcat5

2004-02-12 Thread Rich Baldwin
I've used digest.sh in the past w/ tomcat 4 to generate encrypted 
passwords for tomcat-user.xml.  Has something changed w.r.t digest?  Why 
the class not found error for this bundled s/w?  Here is the command and 
error

[prompt]$ sh digest.sh -a sha password
/www/tomcat/bin/tool-wrapper.sh: line 56: [: =: unary operator expected
Tool: Exception creating instance of org.apache.catalina.realm.RealmBase
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
   at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
   at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
   at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
   at org.apache.catalina.startup.Tool.main(Tool.java:251)



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


Jboss + Tomcat and Database Stored Sessions

2004-02-12 Thread Hugo Kotsubo


Hi!

I'm using Jboss  3.2.1 with Tomcat 4.1.24, and Tomcat is running as a 
Jboss MBean.

I want to control the number of sessions each application can have. To 
do this, I'm trying to store
sessions in a postgresql database, and use the Tomcat PersistentManager 
Implementation.

The tomcat configuration is under the Jboss deploy directory, at the 
following path:

/opt/jboss/server/default/deploy/jbossweb-tomcat.sar/

In this directory I have all the jar files needed by tomcat, a web.xml 
file and a META-INF directory, with a manifest file and a jboss-service.xml file (shown below)

I guess that something is wrong with one of the xml files.
Can anyone help me?
thanks
Hugo Kotsubo

jboss-service.xml contents:
?xml version=1.0 encoding=UTF-8?
!-- The service configuration for the embedded Tomcat4.1.x web container--
server
mbean code=org.jboss.web.catalina.EmbeddedCatalinaService41
  name=jboss.web:service=WebServer
  attribute name=Java2ClassLoadingCompliancetrue/attribute
  !--
***
** CLUSTERING *
***
In order to activate HTTP Session clustering for Tomcat
make sure you run JBoss's all configuration i.e.
run -c all
(the default configuration doesn't contain clustering)
Furthermore, you may change SnapshotMode and
SnapshotInterval attributes below to indicate when to
synchronize changes with the other node(s).
If you use Apache+mod_jk(2) you will most probably use
the AJP1.3 connector below. Thus, if you so wish,
you may comment (i.e. deactivate) the HTTP connector
as it won't be used anymore.
***
***
***
   --
   
  !--
If you are using clustering, the following two attributes
define when the sessions are replicated to the other nodes.
The default value, instant, synchronously replicates changes
to the other nodes. In this case, the SnapshotInterval attribute
is not used.
The interval mode, in association with the SnapshotInterval
attribute, indicates that Tomcat will only replicates modified
sessions every SnapshotInterval miliseconds at most.
  --

  attribute name=SnapshotModeinstant/attribute !-- you may 
switch to interval --
  attribute name=SnapshotInterval2000/attribute
  attribute name=Config
Server
   Service name = JBoss-Tomcat
  Engine name=MainEngine defaultHost=localhost
 Logger className = org.jboss.web.catalina.Log4jLogger
verbosityLevel = debug category = org.jboss.web.localhost.Engine/
 Host name=localhost
!-- Access logger --
Valve className = org.apache.catalina.valves.AccessLogValve
   prefix = localhost_access suffix = .log
   pattern = common directory = ${jboss.server.home.dir}/log /

!-- Default context parameters --
DefaultContext cookies = true crossContext = true override = 
true
Manager className=org.apache.catalina.session.PersistentManager
 debug=0 saveOnRestart=true maxActiveSessions=-1
 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1
  Store className=org.apache.catalina.session.JDBCStore 
driverName=org.postgresql.Driver
 
connectionURL=jdbc:postgresql://localhost:5432/hugo-bi?user=hugoamp;password=hugo
 sessionTable=tomcatsessions sessionIdCol=id
 sessionDataCol=data sessionValidCol=valid 
sessionAppCol=appname
 sessionMaxInactiveCol=maxinactive 
sessionLastAccessedCol=lastaccess
 checkInterval=60 debug=99 /
/Manager
/DefaultContext
 /Host
  /Engine
  !-- A HTTP/1.1 Connector on port 8080 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8080 minProcessors=3 maxProcessors=10
 enableLookups=true acceptCount=10 debug=0
 connectionTimeout=2 useURIValidationHack=false /
  !-- A AJP 1.3 Connector on port 8009 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=2
 useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
   /Service
/Server
  /attribute
/mbean
/server


-
To 

Re: 404 Error in examples - found part

2004-02-12 Thread Didier McGillis
Make sure your DocumentRoot is NOT pointing to the webapps folder of 
Tomcat. Set it to any other place you like, but not there ;-)
DocRoot is point to apache2/htdocs


From: Antonio Fiol Bonnín [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: 404 Error in examples - found part
Date: Thu, 12 Feb 2004 07:35:25 +0100
Didier McGillis wrote:

Yes Tomcat wouldnt start properly due to port 8005 was already in use and 
the new Tomcat couldnt bind to it.  Now I have gotten to a point where I'm 
unsure of how I fixed this yesterday.

Stand alone version of Tomcat is fine, JSP code works fine.  Go through 
Apache and it renders the HTML properly but doesnt seem to understanding 
whats happening on the page.

http://ns.serverwerkz.com/examples/jsp/num/numguess.jsp

Congratulations! You got it. And after just tries.
Care to try again? Welcome to the Number Guess game.
I'm thinking of a number between 1 and 100.

What's your guess?
Good guess, but nope. Try . You have made guesses.
I'm thinking of a number between 1 and 100.

What's your guess?

again this only happens if I access through apache.


As I see you have everything in the same box...

Make sure your DocumentRoot is NOT pointing to the webapps folder of 
Tomcat. Set it to any other place you like, but not there ;-)

It seems that Apache is not asking Tomcat but is serving the content 
itself.

Yours,

Antonio Fiol
 smime.p7s 
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

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


disable Tomcat 4.1 error log

2004-02-12 Thread Lam Chee Choong
For some reason I need to disable tomcat 4.1 log service. Do everyone
out there try b 4??



RE: Best practice question: where to place project libraries

2004-02-12 Thread Shapira, Yoav

Howdy,

 Yes, there's an excellent way to do this: documentation.  End of
story

That is not the end of story, of course, or else you wouldn't support
META-INF/context.xml.

I personally wish we didn't support it, in fact.  I think it's caused
much more confusion than it's worth, and something that causes our power
users like you to be confused is usually not good.

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: Multiple instances of Tomcat - why would you do it ?

2004-02-12 Thread Shapira, Yoav

Howdy,
There's another reason: if any of the three crashes or is attacked for
whatever reason, the other two don't suffer.  That may or may not make
sense for your application.

For example, it's not unusual to have an admin console sit outside your
firewall so that developers/admins can do their job from home.  But you
don't want the main/secure servers outside the firewall.

Josh's scalability suggestion is also good.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Derek Clarkson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 8:25 PM
To: Tomcat Users List
Subject: Multiple instances of Tomcat - why would you do it ?


Hello everyone,
   I've just started a new job where I've been asked to be the tech
lead on a project. The software originated from an external company who
designed it to run on 3 instances of tomcat. There is an instance for
the
main applications for our customers, an instance for the admin section
and
another for secure transactions. All running on the same PC. These
instances
also communicate between each other in order to pass information from
one
to
the other via RMI.

I've never worked on a mulit instance installation before and no-one
here
knows why it was done this way (it's not documented). Can you guys give
me
any thoughts on why a multi-instance might be setup like this ? What
are
the
advantages over a single tomcat instance, etc ?

Essentially I'm trying to understand whether this was a good solution
for
our use. Understanding the sorts of reasons for doing it will help me
to
work out any possible future changes.


Ciao
Derek.


__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.



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: Re: Re: Re: Re: Re: Re: Re: Re: Another Try at MySQL Connection Pooling

2004-02-12 Thread Shapira, Yoav

Howdy,
Yup, but at least it stopped itself at 8 (at a glance) tries ;)  I kicked if off 
yesterday.  I'm much more familiar with the list admin functionality following the 
past couple of week's email craziness.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 6:22 PM
To: 'Tomcat Users List'
Subject: RE: Re: Re: Re: Re: Re: Re: Re: Re: Re: Another Try at MySQL
Connection Pooling

comicbook-guy
   Stupidest auto-responder *EVER*
/comicbook-guy


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 11, 2004 5:15 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Another Try
 at MySQL Connection Pooling


 Ya hemos recibido su solicitud de correo en breve le
 enviaremos su nombre de usuario y contreseña. Gracias por
 confiar en nosotros



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



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




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


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



Windows XP, TC 4.1.29 and logging question (catalina.out)...

2004-02-12 Thread Timothy Stone
List,

I must be too close to the problem, having a background in managing 
Tomcat on Linux, I can't seem to figure out what is so drastically 
different about Tomcat on Windows that logging doesn't behave the same.

Specifically:

c:\%tomcat_home%\bin\startup.bat

runs in a separate window (expected) but only the following logs are 
being generated:

localhost_examples*
localhost_admin*
localhost_log*
'catalina* is conspicuously missing. However, the Logger is defined in 
the server.xml file! There is some standard out logging going on, but 
not to a file.

What directive am I missing? The archives didn't seem to answer my 
question directly. The server.xml file seems to implied that the global 
logger could be overridden, but I have not explictly stated any such 
overriding the server.xml is out-of-the-box.

Many thanks in advance.
Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


manager webapp % digest auth

2004-02-12 Thread Peter Lin
 
has anyone here tried setting /manager webapp to use DIGEST instead of BASIC?
 
I just tried it this morning and it didn't work for me.
 
peter
 


-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

RE: Tomcat Sessions

2004-02-12 Thread Shapira, Yoav

Howdy,

Currently it seems that sessions are serialised and kept through
restarts
of Tomcat. Is there any way to prevent this so that all sessions are
wiped
when Tomcat is restarted.

And even better would be to wipe them on a context basis, when a
context is
reloaded.

Yes to both:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
http://jakarta.apache.org/tomcat/faq/misc.html#persist

Yoav Shapira



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


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



Tomcat 5 Apache 1.3x JK still problems

2004-02-12 Thread Pete Stokes
Does the combo of Tomcat 5, Apache 1.3x, and JK work? I can't get it to 
work. If I use the Connector syntax from Tomcat 4 for the ajp13 in 
sever.xml, it can't find the class.

I'd prefer this combo because Tomcat 5 offers easy view of treads/jvm 
memory, and I'd assume it's got better performance than Tomcat 4, but if 
 this does not work I suppose I have to use Tomcat 4 - I need Apache 
1.3x for mod_backhand to provide Apache redundancy.

Thanks,
Pete.
11/02/2004 17:00
Hi.
I've been following docs on setting this up (Apache 1.3x Tomcat 5.0.18, 
jk) for the Tomcat examples, but I get File does not exist: 
/wwwroot/htdocs/examples/ in apache logs. I have Apache and Tomcat on 
different boxes. I am not fussed about serving static content as I will 
eventually use Apache for load balancing.

I must be missing something! Any ideas are appreciated.
Pete.
NB Ta for the stuff on web monitoring.
My Tomcat server.xml snippet is:
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 enableLookups=false redirectPort=8443 
debug=0 protocol=AJP/1.3 /

My Apache httpd.conf snippet is:
LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c
JKWorkersFile /wwwroot/conf/workers.properties
JKLogFile /wwwroot/logs/mod_jk.log
JKLogLevel info
JKLogStampFormat [%a %b %d %H:%M%:%S %Y] 
JKRequestLogFormat %w %V %T
JKMount /examples/*.jsp worker1
JKMount /examples/servlet/* worker1
My workers.properties is (apache machine):
ps=/
worker.list=worker1
# Settings for worker1
worker.worker1.port=8009
worker.worker1.host=10.2.0.72
worker.worker1.type=ajp13




***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


final performance article

2004-02-12 Thread Peter Lin
http://nagoya.apache.org/wiki/apachewiki.cgi?JMeterLinks
 
 
I've posted the final version of the document. thanks to shirley and keith for their 
feedback. I fixed an error in the example test plan.
 
 
peter lin
 


-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

500 Error in examples - mod_jk

2004-02-12 Thread Didier McGillis
Okay attempt to access examples is giving me an Apache 500 error page.

Pulled from apache logs ...
12.16.100.100 - - [12/Feb/2004:09:13:34 -0500] GET 
/examples/jsp/num/numguess.jsp HTTP/1.1 500 648
12.16.100.100 - - [12/Feb/2004:09:13:36 -0500] GET 
/examples/jsp/dates/date.jsp HTTP/1.1 500 648

Look at all that information.  Accessing the standalone tomcat is fine.

any help?

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: How to write to a properties file

2004-02-12 Thread Shapira, Yoav

Howdy,


what is the best way to update (write) a properties file from a servlet
that is somewhere under /WEB-INF/src/. ? Does this work for a
properties file in a WAR file, too?

The servlet specification only leaves you with one standard place to
write files, the directory specified by javax.servlet.context.tempdir.
As its name implies, it's a temporary directory that the server may
clean up on shutdown.  So you don't want this.

Therefore you must specify the directory/file to write via some
configuration, e.g. a context-param or init-param in web.xml, or a JNDI
env-entry-ref if you wish.  The former is usually simpler.

But to write, you have to use the file IO APIs, and that won't work in a
packed WAR file.  It'll be OK in an exploded WAR file, but you probably
don't want to require your users to expand your WAR file.

One possible alternative is to have the properties file outside the
webapp (or better yet, change from properties file to a database?), and
configure the location of the file using one of the above approaches.
That way you can still deploy a packed WAR, write/update the properties
file, and (if you use the JNDI approach) the server admin can control
the location of the 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]



RE: tomcat 4.1/jdk1.4.2

2004-02-12 Thread Shapira, Yoav

Howdy,

Can we use tomcat 4.1 with java version 1.4.2 on production , is there
any
problem in that.

Go for it, we've been doing it for months and months without a problem.

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]



Limiting POST sizes to save bandwidth

2004-02-12 Thread Grim
Hi

I'm sorry if I'm asking this in the wrong place, but I'm not sure where my
problem is actually occuring, I thought Tomcat itself might be able to help.

I'm trying to build an app that allows users to upload files to the
webserver.
My problem is I need to prevent them uploading large (more than a few MB)
files, which will waste both their bandwidth and mine. I'm using Jakarta
Commons FileUpload (http://jakarta.apache.org/commons/fileupload/) to parse
the multipart form, but it can't seem to prevent the end-users uploading
large files. The user sends the large file and then once it's finished,
FileUpload will display the error. But the user still wasted all that
bandwidth. I even tried just throwing an exception straight away on the JSP
page the form submits to, but the file is still sent.

I tried placing a maxPostSize=200 in my server.xml Connector on port
8080. This didn't seem to have any effect though, even after restarting
Tomcat.

I'm using Tomcat 5.0.16 in standalone mode, port 8080.

If anyone has any suggestions on how I can prevent the waste of bandwidth
(and possible DoS attacks) please let me know.

Thanks
Brad Gorman






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



How to use custom URL Stream Handlers ?

2004-02-12 Thread Michel Lehon
Hi,

I am tryin to define some custom protocols in a web app.
However I wonder more and more how to get them recognized

As I can't use URL.setURLStreamHandlerFactory (as it has already been called
by tomcat)
And setting the java.protocol.handler.pkgs system property does not seem to
work
(I get malformed URL exception, because unknown protocol).
I should add the I would like to keep all my classes inside my webapp

Does anyone has an idea ?

This is under JDK 1.4.2 and Tomcat 4.1.29

Thanks for the help

Michel Lehon.




RE: Limiting POST sizes to save bandwidth

2004-02-12 Thread Shapira, Yoav

Howdy,
I'm not an expert on fileupload, but did you see the Exercising More
Control section of
http://jakarta.apache.org/commons/fileupload/using.html?
It has a setting to limit the size.  I don't know if that takes affect
before/after/during the upload.  IIRC (it's been a while), the server
can't know the full upload file size until the upload is done, because
the transfer is chunked and there's no initial header with the total
size.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Grim [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 10:17 AM
To: [EMAIL PROTECTED]
Subject: Limiting POST sizes to save bandwidth

Hi

I'm sorry if I'm asking this in the wrong place, but I'm not sure where
my
problem is actually occuring, I thought Tomcat itself might be able to
help.

I'm trying to build an app that allows users to upload files to the
webserver.
My problem is I need to prevent them uploading large (more than a few
MB)
files, which will waste both their bandwidth and mine. I'm using
Jakarta
Commons FileUpload (http://jakarta.apache.org/commons/fileupload/) to
parse
the multipart form, but it can't seem to prevent the end-users
uploading
large files. The user sends the large file and then once it's finished,
FileUpload will display the error. But the user still wasted all that
bandwidth. I even tried just throwing an exception straight away on the
JSP
page the form submits to, but the file is still sent.

I tried placing a maxPostSize=200 in my server.xml Connector on
port
8080. This didn't seem to have any effect though, even after restarting
Tomcat.

I'm using Tomcat 5.0.16 in standalone mode, port 8080.

If anyone has any suggestions on how I can prevent the waste of
bandwidth
(and possible DoS attacks) please let me know.

Thanks
Brad Gorman






-
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: Problem with Tomcat5 session replication.

2004-02-12 Thread Rick Szeto
Thanks Apu,
  I knw it was going to be something simple and stupid on my part, as these
things are always are. I added the distributable/ to my web.xml and they
are at least trying to replicate the sessions over to each other. Me thinks
a lot of them do not implement the Serializable interface. But at least I am
getting exceptions(who ever said exceptions are a bad thing? =)).

Thanks again for the help from people in this mailing list,
Rick Szeto

-Original Message-
From: Apu Shah [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 7:43 PM
To: Tomcat Users List
Subject: Re: Problem with Tomcat5 session replication.



also make sure that the web.xml for the webapp has the distributable /
element and all session vars are serializable.

apu

On Wed, 11 Feb 2004 15:13:39 -0800
Filip Hanik \(lists\) [EMAIL PROTECTED] wrote:

 on RH 9 you must also set,

 export LD_ASSUME_KERNEL=2.4

 Filip

 -Original Message-
 From: Rick Szeto [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 11, 2004 2:55 PM
 To: tomcat
 Subject: Problem with Tomcat5 session replication.


 Hi all,
   I am having quite a bit of trouble getting the sessions from one
   node in
 the cluster to the other nodes of the cluster. The multicast is
 working fine as I can see that each of the nodes can recognize when a
 new node is brought up as well as when they are removed.

   No where in the logs are there mention of sessions being replicated
   and/or
 errors encounter while trying to do so. I have Apache in front doing
 URL rewriting and forwarded via proxy so the client does not know the
 difference.

   I have pasted the relevant snippets from the server.xml, which are
 identical
 on both nodes. I am running Tomcat 5.0.18 with one node running on
 Windows XP
 and the other node on RH 9.0(which should not make any difference).

   I guess that what I am hoping for is someone can look at my
   replication
 config
 and tell me that I did something stupid. I rather have that happen
 then not being
 able to get the sessions replicated. =)

 ps. Out of curiousity, I have been unable to find any documentation on
 the JDBCManager, reference here:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

 Thanks in advance,
 Rick Szeto


 -
 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.577 / Virus Database: 366 - Release Date: 2/3/2004

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.577 / Virus Database: 366 - Release Date: 2/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]



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



RE: Limiting POST sizes to save bandwidth

2004-02-12 Thread Grim
Hi Yoav

Thanks for the reply. But yeah, those settings take place after the upload,
they seem to be used for preventing large files being written to disk or
controlling how large a file should be before being stored temporarily to
disk.

Maybe something there's something that could keep track of how many chunks
or how much data has been sent by the client, forcing an error after a
limit? I just imagine there must be some way to prevent this sort of
thing...

Brad Gorman 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 12, 2004 11:26 PM
To: Tomcat Users List
Subject: RE: Limiting POST sizes to save bandwidth


Howdy,
I'm not an expert on fileupload, but did you see the Exercising More
Control section of http://jakarta.apache.org/commons/fileupload/using.html?
It has a setting to limit the size.  I don't know if that takes affect
before/after/during the upload.  IIRC (it's been a while), the server can't
know the full upload file size until the upload is done, because the
transfer is chunked and there's no initial header with the total size.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Grim [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 10:17 AM
To: [EMAIL PROTECTED]
Subject: Limiting POST sizes to save bandwidth

Hi

I'm sorry if I'm asking this in the wrong place, but I'm not sure where
my
problem is actually occuring, I thought Tomcat itself might be able to 
help.

I'm trying to build an app that allows users to upload files to the 
webserver.
My problem is I need to prevent them uploading large (more than a few
MB)
files, which will waste both their bandwidth and mine. I'm using
Jakarta
Commons FileUpload (http://jakarta.apache.org/commons/fileupload/) to
parse
the multipart form, but it can't seem to prevent the end-users
uploading
large files. The user sends the large file and then once it's finished, 
FileUpload will display the error. But the user still wasted all that 
bandwidth. I even tried just throwing an exception straight away on the
JSP
page the form submits to, but the file is still sent.

I tried placing a maxPostSize=200 in my server.xml Connector on
port
8080. This didn't seem to have any effect though, even after restarting 
Tomcat.

I'm using Tomcat 5.0.16 in standalone mode, port 8080.

If anyone has any suggestions on how I can prevent the waste of
bandwidth
(and possible DoS attacks) please let me know.

Thanks
Brad Gorman






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



another newbie question?

2004-02-12 Thread FRANCOIS Dufour
hello

sombody could tell mee how to increase memory off the jvm?

got only 7mg left after aplication deployed

tanks

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc
_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

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


RE: another newbie question?

2004-02-12 Thread Shapira, Yoav

Howdy,
Use the -Xmx java runtime option, set via the JAVA_OPTS environment
variable as defined in $CATALINA_HOME/bin/catalina.sh.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 10:55 AM
To: [EMAIL PROTECTED]
Subject: another newbie question?

hello

sombody could tell mee how to increase memory off the jvm?

got only 7mg left after aplication deployed

tanks

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

_
MSN Search, le moteur de recherche qui pense comme vous !
http://fr.ca.search.msn.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: 500 Error in examples - wc_get_worker_for_name, done did not found a worker

2004-02-12 Thread Didier McGillis
Anyone know a solution for this, I have been over google and yahoo and found 
people with the same issue but no returns to their query about the problem.  
Anyone know how to fix, worker.properties seems to be what they asked for, 
anywhere else I can look.

dan

From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: 500 Error in examples - mod_jk
Date: Thu, 12 Feb 2004 14:38:27 +
Okay attempt to access examples is giving me an Apache 500 error page.

Pulled from apache logs ...
12.16.100.100 - - [12/Feb/2004:09:13:34 -0500] GET 
/examples/jsp/num/numguess.jsp HTTP/1.1 500 648
12.16.100.100 - - [12/Feb/2004:09:13:36 -0500] GET 
/examples/jsp/dates/date.jsp HTTP/1.1 500 648

Look at all that information.  Accessing the standalone tomcat is fine.

any help?

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

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


RE: another newbie question?

2004-02-12 Thread Edson Alves Pereira
In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 12 de fevereiro de 2004 12:59
 Para: Tomcat Users List
 Assunto:  RE: another newbie question?
 
 
 Howdy,
 Use the -Xmx java runtime option, set via the JAVA_OPTS environment
 variable as defined in $CATALINA_HOME/bin/catalina.sh.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 10:55 AM
 To: [EMAIL PROTECTED]
 Subject: another newbie question?
 
 hello
 
 sombody could tell mee how to increase memory off the jvm?
 
 got only 7mg left after aplication deployed
 
 tanks
 
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 _
 MSN Search, le moteur de recherche qui pense comme vous !
 http://fr.ca.search.msn.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: another newbie question?

2004-02-12 Thread STOCKHOLM, Raymond
If you don't set enough memory, you will have some day OutOfMemoryException,
that's sure, 
or you Garbage Collector will work as mad, and your application will stall.

-Message d'origine-
De : Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 12 février 2004 18:10
À : 'Tomcat Users List'
Objet : RE: another newbie question?


In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 12 de fevereiro de 2004 12:59
 Para: Tomcat Users List
 Assunto:  RE: another newbie question?
 
 
 Howdy,
 Use the -Xmx java runtime option, set via the JAVA_OPTS environment
 variable as defined in $CATALINA_HOME/bin/catalina.sh.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 10:55 AM
 To: [EMAIL PROTECTED]
 Subject: another newbie question?
 
 hello
 
 sombody could tell mee how to increase memory off the jvm?
 
 got only 7mg left after aplication deployed
 
 tanks
 
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 _
 MSN Search, le moteur de recherche qui pense comme vous !
 http://fr.ca.search.msn.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]
 

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



RE: another newbie question?

2004-02-12 Thread Shapira, Yoav

Howdy,

   In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

Someone else already corrected the above wrong statement, but I wanted to point out 
-Xmx is not the initial size of the heap, it's the maximum size.  Setting -Xmx does 
not affect initial heap size.

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: [OFF-TOPIC] Workflow Engines

2004-02-12 Thread Evgeny Gesin
I worked with IBM MQ Series Workflow and it is great
commercial software. Could you please list Open Source
workflow systems.

Evgeny Gesin
Javadesk

--- Ryan Lissack [EMAIL PROTECTED] wrote:
 Hi,
 
 I was wondering whether anyone on the list has
 experience with any workflow
 engines.  There are a number of open source products
 available but I am
 looking for comments or suggestions from someone who
 has actually used them.
 
 We want to integrate the engine into our web
 application running on Tomcat.
 
 All feedback is welcome!!
 
 Thanks,
 Ryan
 

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


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: Encrypted passwords in tomcat5

2004-02-12 Thread Rich Baldwin
Here is a solution.  Don't know why this stuff doesn't run correctly 
from the start.

To ~/tomat/bin/setclasspath.sh  add the following at the top of the file

if [ -z $BASEDIR ]; then
  echo Setting BASEDIR to CATALINA_HOME.
  export BASEDIR=$CATALINA_HOME
fi
To ~/tomcat/bin/tool-wrapper.sh modify

CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar

to

CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$YOUR_JAR_PATH/jmx.jar:$YOUR_JAR_PATH/jmx-remote.jar:$YOUR_JAR_PATH/jmx-remote-tools
.jar


Rich Baldwin wrote:

I've used digest.sh in the past w/ tomcat 4 to generate encrypted 
passwords for tomcat-user.xml.  Has something changed w.r.t digest?  
Why the class not found error for this bundled s/w?  Here is the 
command and error

[prompt]$ sh digest.sh -a sha password
/www/tomcat/bin/tool-wrapper.sh: line 56: [: =: unary operator expected
Tool: Exception creating instance of org.apache.catalina.realm.RealmBase
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
   at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) 

   at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) 

   at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) 

   at org.apache.catalina.startup.Tool.main(Tool.java:251)



-
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: Error 500 from ISAPI_REDIRECTOR2.DLL

2004-02-12 Thread Bill Haake
Allistair-

How about your jk2.properties file? You have a matching shm in there? I also
recall seeing something funny recently about a size of 100 not working,
but 1048576 does.

Bill

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 11:08 AM
To: TOMCAT USER (E-mail)
Subject: Error 500 from ISAPI_REDIRECTOR2.DLL


Hi Guys

I had my IIS 5 to TC 5.0.16 all working with JK2 ISAPI and then I decided to
move that installation to 5.0.18 today and it's all gone pear shaped and no
idea why

OK specifics...

The Error in the IIS Access Logs


2004-02-12 15:58:47 150.150.153.86 - 150.150.100.247 80 GET
/jakarta/isapi_redirector2.dll - 500
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

This is a good start ... I can see an error 500. IIS is running quite
happily and tested. Move on to ISAPI setup in IIS

IIS ISAPI Setup
===

The ISAPI dll is setup and called Tomcat to point to the
isapi_redirector2.dll in my Tomcat 5.0.18/win32/bin folder. There is a green
up arrow indicating it is ok.

Also have setup a virtual dir to the same directory which allows execute of
scripts and ISAPI filters. Fine.

So nothing appears wrong at my IIS side of things. Move to Tomcat.

Tomcat
==

workers2.properties in D:\Tomcat 5.0.18\conf specifies the following;

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

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=iQ2
context=/

[uri:/*.jsp]
info=iQ2
context=/

All OK .. same as before except for the

file=D:\Tomcat 5.0.18\work\jk2.shm line which used to be

file=D:\Tomcat 5.0.16\work\jk2.shm

I make sure in server.xml that an AJP port is open on 8009 and restart
Tomcat.

I note that 8009 is opened on init. I also note however that the SHM file as
specified in the workers2.props does not exist under Tomcat 5.0.18\work
whereas in my other working version it was. Not sure if that is a red
herring??

So, now I make sure my registry is ok

Registry


SOFTWARE  Apache Software Foundation  Jakarta Isapi Redirector  2.0

extensionUri = /jakarta/isapi_redirector2.dll
logLevel = debug
serverRoot = D:\Tomcat 5.0.18
workersFile = serverRoot = D:\Tomcat 5.0.18\conf\workers2.properties

Finally
===

Everything looks good to me. Bring Tomcat down and then IIS. Start Tomcat,
test that it is ok by going direct to HTTP port 8080. Then start IIS.

And back to Error 500. The browser hangs indefinately but the IIS log shows
the error I posted at the top.

Run out of ideas on this!? Anyone?

I restart IIS with Tomcat up for good measure.


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


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





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



RE: 500 Error in examples - got it

2004-02-12 Thread Didier McGillis
Got it.  There was a configuration error that must have been leftover from 
before.  Examples is now working through Apache.


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: 500 Error in examples - wc_get_worker_for_name, done did not 
found a worker
Date: Thu, 12 Feb 2004 16:05:45 +

Anyone know a solution for this, I have been over google and yahoo and 
found people with the same issue but no returns to their query about the 
problem.  Anyone know how to fix, worker.properties seems to be what they 
asked for, anywhere else I can look.

dan

From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: 500 Error in examples - mod_jk
Date: Thu, 12 Feb 2004 14:38:27 +
Okay attempt to access examples is giving me an Apache 500 error page.

Pulled from apache logs ...
12.16.100.100 - - [12/Feb/2004:09:13:34 -0500] GET 
/examples/jsp/num/numguess.jsp HTTP/1.1 500 648
12.16.100.100 - - [12/Feb/2004:09:13:36 -0500] GET 
/examples/jsp/dates/date.jsp HTTP/1.1 500 648

Look at all that information.  Accessing the standalone tomcat is fine.

any help?

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

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


Re: Problem with mail.jar and activation.jar.

2004-02-12 Thread Kenny Louveaux
Hello Yoav,

Thanks for your help. I'm going to try to be as explicit as possible.

I use the Smtp server from the place I'm working. Not on my computer, but in
the domain, and I use the Jdk 1.4.2_03, Tomcat 5.0.18 (last version) and I
downloaded the mail.jar and the activation.jar from Sun 4 days ago.

When I launch my class (with a main method) from Jbuilder, it works well and
I can send my message. (I put mail.jar and activation.jar in the
jdk/jre/lib/ext dir)
When I create a servlet (with the same code) and put the servlet into my
tomcat webapp/WEB-INF/classes dir, and try to connect from the same computer
using the 127.0.0.1 ip address or even if I use my internet ip address, I
always receive the error message. (Tomcat is working well for all my others
applications, but it's the first time I use the javamail api)
I tried to send a really simple text/plain message. I also tried to send a
multipart message (with an attachement), always the same problem.
I searched for my problem on the internet, and I found several peoples who
had the same problem.
The only answer I found where I didn't already do the correction was:
-There is a problem with the mailcap file from the mail.jar that must be
loaded before the activation.jar (seem to be a problem with an old version
of mail.jar, so normally, I shouldn't have it) - Don't know how to do that
and seem to be too deep manipulations to be a good answer, but I don't know
what else to do.

It seems the problem appears because Tomcat doesn't understand the encoding
type (correct me if I'm wrong). So I tried to explicitly write the encoding
of the message, but nothing changed.

Now, I don't know anymore what to do!
Did anyone have that problem?
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
...

Kenny Louveaux



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 3:54 PM
Subject: RE: Problem with mail.jar and activation.jar.



Howdy,

about a problem in the mailcap file in the mail.jar. They say the
mail.jar
must be loaded before the activation.jar because of that.
I don't know if it will correct my problem (I want to try because I'm
getting mad), but how can I know the order in wich Tomcat load the .jar
files, and thus choose myself?

Libraries in a given tomcat repository, e.g. common/lib, are loaded in
an unpredictable order: you should not count on the loading order.  You
can of course customize tomcat's classloaders to load jars
alphabetically or by any order you desire, but then you have a custom
version of tomcat.

I haven't seen your problem before, so I can't help much more.  What JDK
version are you using, and what versions of mail and activation?  Are
you using a local or remote SMTP server?

Yoav Shapira



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


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





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



RE: Error 500 from ISAPI_REDIRECTOR2.DLL

2004-02-12 Thread Allistair Crossley
There is nothing in the jk2.properties file. However, your suggestion to change the 
SHM value has done the trick!!?

If it works .. :)

Thanks!

-Original Message-
From: Bill Haake [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 16:27
To: Tomcat Users List
Subject: RE: Error 500 from ISAPI_REDIRECTOR2.DLL


Allistair-

How about your jk2.properties file? You have a matching shm in there? I also
recall seeing something funny recently about a size of 100 not working,
but 1048576 does.

Bill

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 11:08 AM
To: TOMCAT USER (E-mail)
Subject: Error 500 from ISAPI_REDIRECTOR2.DLL


Hi Guys

I had my IIS 5 to TC 5.0.16 all working with JK2 ISAPI and then I decided to
move that installation to 5.0.18 today and it's all gone pear shaped and no
idea why

OK specifics...

The Error in the IIS Access Logs


2004-02-12 15:58:47 150.150.153.86 - 150.150.100.247 80 GET
/jakarta/isapi_redirector2.dll - 500
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

This is a good start ... I can see an error 500. IIS is running quite
happily and tested. Move on to ISAPI setup in IIS

IIS ISAPI Setup
===

The ISAPI dll is setup and called Tomcat to point to the
isapi_redirector2.dll in my Tomcat 5.0.18/win32/bin folder. There is a green
up arrow indicating it is ok.

Also have setup a virtual dir to the same directory which allows execute of
scripts and ISAPI filters. Fine.

So nothing appears wrong at my IIS side of things. Move to Tomcat.

Tomcat
==

workers2.properties in D:\Tomcat 5.0.18\conf specifies the following;

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

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=iQ2
context=/

[uri:/*.jsp]
info=iQ2
context=/

All OK .. same as before except for the

file=D:\Tomcat 5.0.18\work\jk2.shm line which used to be

file=D:\Tomcat 5.0.16\work\jk2.shm

I make sure in server.xml that an AJP port is open on 8009 and restart
Tomcat.

I note that 8009 is opened on init. I also note however that the SHM file as
specified in the workers2.props does not exist under Tomcat 5.0.18\work
whereas in my other working version it was. Not sure if that is a red
herring??

So, now I make sure my registry is ok

Registry


SOFTWARE  Apache Software Foundation  Jakarta Isapi Redirector  2.0

extensionUri = /jakarta/isapi_redirector2.dll
logLevel = debug
serverRoot = D:\Tomcat 5.0.18
workersFile = serverRoot = D:\Tomcat 5.0.18\conf\workers2.properties

Finally
===

Everything looks good to me. Bring Tomcat down and then IIS. Start Tomcat,
test that it is ok by going direct to HTTP port 8080. Then start IIS.

And back to Error 500. The browser hangs indefinately but the IIS log shows
the error I posted at the top.

Run out of ideas on this!? Anyone?

I restart IIS with Tomcat up for good measure.


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


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





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



Virtual Host

2004-02-12 Thread Didier McGillis
Are there any good virtual host examples to look at.  Tutorials.  I just 
need to setup one domain that isnt the default domain and have it use Tomcat 
from the root dir.

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=dept/featurespgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

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


RE: [OFF-TOPIC] Workflow Engines

2004-02-12 Thread Ryan Lissack
Hi Evgeny,

 I worked with IBM MQ Series Workflow and it is great
 commercial software. Could you please list Open Source
 workflow systems.

Thanks for the response.  Below is a list of the open source engines I have
found so far:

OpenFlow
http://www.openflow.it/EN/index_html

Shark
http://shark.objectweb.org/

OpenSymphony OSWorkflow
http://www.opensymphony.com/osworkflow/

jBpm
http://www.jbpm.org/

WfMOpen
http://wfmopen.sourceforge.net/

Bonita
http://bonita.objectweb.org/

Bossa
http://www.bigbross.com/bossa/

XFlow
http://xflow.sourceforge.net/

As you can see, there are quite a number of them.

Regards,
Ryan.

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



RE: Virtual Host

2004-02-12 Thread Didier McGillis
Is there away in http.conf to setup a Virtual Host for a domain and then it 
only needs to know where to look for Tomcat

Is that a good way?


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Virtual Host
Date: Thu, 12 Feb 2004 16:32:10 +
Are there any good virtual host examples to look at.  Tutorials.  I just 
need to setup one domain that isnt the default domain and have it use 
Tomcat from the root dir.

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=dept/featurespgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

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


Re: Apache2 to Tomcat5.0.x

2004-02-12 Thread Bill Dudney
Thanks Yiannis,

Any idea what the best way to connect the two on unix? I'm happy with  
the socket approach but it seems that  the JNI connection would perform  
better.

Thanks!

-bd-

On Feb 12, 2004, at 2:06 AM, Yiannis Mavroukakis wrote:

Possibly. If I am not mistaken it has to do with the fact that Apache  
under
windows uses a single worker thread whereas under Linux that is not the
case..
I think Mladen Turk is the authority to speak on that though.

Yiannis

-Original Message-
From: Bill Dudney [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 23:03
To: [EMAIL PROTECTED]
Subject: Apache2 to Tomcat5.0.x
Hi,

I'm trying to connect Apache2 to Tomcat5.0.x on my mac (OS X) and I'm
unable to get jni to work. What is the expected/required/best way to
connect these two on a Unix platform? I read in the archive that
someone did not expect the jni connection to work on Linux, does that
apply to all unixes? Or did I just misunderstand...
I don't need (yet anyway) configuration files or anything. I'm trying
to find out if I'm running down a rat hole trying to connect Apache2 to
Tomcat with jni.
Thanks in advance for any help.

-bd-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___ 
_
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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


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


jsp deployment

2004-02-12 Thread Jerry Ford
The webapp I am writing has until today used html pages, JavaScript, and 
servlets, but no jsp files. 

Now I want to add one, so I placed the file open.jsp in the webapp's 
root directory (where the html files are).  I thought that's all I 
needed to do, but Tomcat chokes when the jsp is requested.  I get a 404 
error, the requested resoruce is not available.

What do I need to configure to get Tomcat to serve the jsp? 

My setup is:  Apache 1.3.27 - Tomcat 4.1.27 via mod_jk, on a Linux 
box.  All Tomcat examples (jsps and servlets) work fine, my webapp 
servlets work fine.   Apache config includes this statement:  JkMount 
/mywebapp/* .jsp ajp13 (and anyway the error comes from Tomcat, so I 
know I'm getting through Apache).

I have not made any jsp-related changes to my webapp's web.xml file, 
which is where I define the servlets. 

All the docs I have on Tomcat agree with this statement in the O'Reilly 
book Tomcat: The Definitive Guide:

JSPs can be installed anywhere in a web applicationJSPs can be 
copied to the root of your web application or placed in any subdirectory 
other than WEB-INF.

So here's my structure:

$TOMCAT_HOME
'---webapps
'---mywebapp
...'---index.html
...'---open.jsp
index.html hands off to open.jsp by way of this JasvaScript statement:

document.location=open.jsp

And Tomcat serves up the 404 error.

What to do?

Thanks.

Jerry

 

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


RE: Problem with mail.jar and activation.jar.

2004-02-12 Thread Shapira, Yoav

Howdy,

When I launch my class (with a main method) from Jbuilder, it works
well
and
I can send my message. (I put mail.jar and activation.jar in the
jdk/jre/lib/ext dir)

Does your class work if you launch it from the command-line (not from
Jbuilder), and put mail.jar/activation.jar on the classpath rather than
in the jdk/jre/lib/ext directory?  Take it out of lib/ext before you try
this.

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: Problem with mail.jar and activation.jar.

2004-02-12 Thread Kenny Louveaux
Well, well,

I guess everything was ok with my classpath, mail.jar and others stuffs,
because I found a way to solve the problem, not the way I like, but it
works.
I just uninstalled Tomcat 5.0.18 and installed the version 4.1.29.
I just put mail.jar and activation.jar in my webapp/WEB-INF/lib dir (I also
tried that with the Tomcat 5.0.18), so no need to configure Tomcat at all
and everything is ok.

I'm quite unhappy because it's not a good solution for me, but what else can
I do!
Shouldn't be the 5.0.18  better than older version?!

Thanks a lot for your help Yoav. (I'll try tomorrow what you said, I would
like it to work also on Tomcat 5)

I Need to drink a good beer and forget all about that 'til tomorrow. (0_-)
Cheers

Kenny Louveaux



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



RE: Limiting POST sizes to save bandwidth

2004-02-12 Thread Mike Curwen
Yoav's recollection of the spec is correct.  There is nothing in the
headers indicating a size. So you need to read in the entire request to
determine you've gone over a limit.  And even if you could keep track of
bytes/chunks as they come in... you've still wasted all that bandwidth
up to that point, if indeed the user goes over the limit.
 
I think you're down to client-side tools.  Perhaps an applet with some
nice drag and drop features.   It would keep track of file size either
'real time' or during the preparation phase of submitting the file(s)..
and would warn the user *before* sending a single byte that they were
over the limit.
 


 -Original Message-
 From: Grim [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 12, 2004 9:41 AM
 To: 'Tomcat Users List'
 Subject: RE: Limiting POST sizes to save bandwidth
 
 
 Hi Yoav
 
 Thanks for the reply. But yeah, those settings take place 
 after the upload, they seem to be used for preventing large 
 files being written to disk or controlling how large a file 
 should be before being stored temporarily to disk.
 
 Maybe something there's something that could keep track of 
 how many chunks or how much data has been sent by the client, 
 forcing an error after a limit? I just imagine there must be 
 some way to prevent this sort of thing...
 
 Brad Gorman 
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 12, 2004 11:26 PM
 To: Tomcat Users List
 Subject: RE: Limiting POST sizes to save bandwidth
 
 
 Howdy,
 I'm not an expert on fileupload, but did you see the 
 Exercising More Control section of 
 http://jakarta.apache.org/commons/fileupload/using.html?
 It has a setting to limit the size.  I don't know if that 
 takes affect before/after/during the upload.  IIRC (it's been 
 a while), the server can't know the full upload file size 
 until the upload is done, because the transfer is chunked and 
 there's no initial header with the total size.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Grim [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: Limiting POST sizes to save bandwidth
 
 Hi
 
 I'm sorry if I'm asking this in the wrong place, but I'm not 
 sure where
 my
 problem is actually occuring, I thought Tomcat itself might 
 be able to
 help.
 
 I'm trying to build an app that allows users to upload files to the
 webserver.
 My problem is I need to prevent them uploading large (more than a few
 MB)
 files, which will waste both their bandwidth and mine. I'm using
 Jakarta
 Commons FileUpload (http://jakarta.apache.org/commons/fileupload/) to
 parse
 the multipart form, but it can't seem to prevent the end-users
 uploading
 large files. The user sends the large file and then once 
 it's finished,
 FileUpload will display the error. But the user still wasted 
 all that 
 bandwidth. I even tried just throwing an exception straight 
 away on the
 JSP
 page the form submits to, but the file is still sent.
 
 I tried placing a maxPostSize=200 in my server.xml Connector on
 port
 8080. This didn't seem to have any effect though, even after 
 restarting
 Tomcat.
 
 I'm using Tomcat 5.0.16 in standalone mode, port 8080.
 
 If anyone has any suggestions on how I can prevent the waste of
 bandwidth
 (and possible DoS attacks) please let me know.
 
 Thanks
 Brad Gorman
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Problem with mail.jar and activation.jar.

2004-02-12 Thread Shapira, Yoav

Howdy,


I guess everything was ok with my classpath, mail.jar and others
stuffs,
because I found a way to solve the problem, not the way I like, but it
works.
I just uninstalled Tomcat 5.0.18 and installed the version 4.1.29.

Hmm... That should not matter ;(

Shouldn't be the 5.0.18  better than older version?!

Yes, it should.

I Need to drink a good beer and forget all about that 'til tomorrow.
(0_-)
Cheers

Always a good option -- have fun ;)

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]



Problems getting Tomcat 5.0.18 to work with IIS 5

2004-02-12 Thread Alex L.
I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5.  I've
followed the guides online and have everything apparently set up.  Tomcat
works, IIS works, but IIS refuses to load .jsp files as if it can't find
them.  Any help is greatly appreciated!

Here is my setup:
Tomcat installation Dir: C:\Program Files\Tomcat 5.0\

JK2.properties file

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess


Workers2.properties file
-
[shm:]
info=Shared memory file. Required for multiprocess servers
file=D:\Program Files\tomcat 5.0\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.jsp]
info=All JSP
context=/

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

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples
-

ISAPI File:

isapi_redirector2.dll in C:\Program Files\Tomcat 5.0\bin\win32\i386

IIS has isapi file loaded for default website and its a green arrow up with
High settings.

Registry file:
---
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
workersFile=c:\\Program Files\\tomcat 5.0\\conf\\workers2.properties
extensionUri=/jakarta/isapi_redirector2.dll
logLevel=debug
serverRoot=c:\\Program Files\\tomcat 5.0\\

http://localhost:8080/jsp-examples/   works and loads jsp files
http://localhost/jsp-examples/doesn't work
http://localhost/jakarta/jsp-examples/ doesn't work.


Thanks,
Alex Letichevsky


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



NTLM Authentication POST Method

2004-02-12 Thread Kumar Abhay-CAK203C
Hello,

I am using post method of sending data to servlet  from a JSP page. I am unable to get 
the data by request.getParameter(). 
If I am using get method I am able to retrieve data from JSP page

I was just searching on Google. Actually I am using NTLM Authentication in my Login 
Servlet. I think there is some conflict between NTLM Authentication and POST method. 

Any body has an idea what to do or set to get the things done ?

http://support.microsoft.com/default.aspx?scid=kb;DE;308074 
http://support.microsoft.com/default.aspx?scid=kb;DE;308074 

I am using code from below link: 
http://www.jguru.com/faq/view.jsp?EID=1045412 
http://www.jguru.com/faq/view.jsp?EID=1045412 

Best Regards
Abhay Kumar



Re: jsp deployment

2004-02-12 Thread QM

: Tomcat chokes when the jsp is requested.  I get a 404
: error, the requested resoruce is not available.
:
: What do I need to configure to get Tomcat to serve the jsp?


Chances are it's a permissions issue on the file.  (Unless you've
tweaked Tomcat's config, it should already be able to serve JSPs.)

-QM

-- 

software  -- http://www.brandxdev.net (C++ / Java / SSL)
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat hangs

2004-02-12 Thread Chris Rolfe
Hello,

I posted a query last week about Tomcat 4.0.6 under OS X hanging, but
haven't seen any response (was: SocketInputStream hanging Tomcat 4.0.6).

Is there anything more I can do ( more information I can provide, for
example ) to illicit feedback from the list or the developer of the code
section? 

This appears to be a vulnerability in Tomcat 4.0.6 - 4.1.x.

-
The problem: 

Stage 1: According to the catalina log, SocketInputStream.readHeader is
throwing ArrayIndexOutOfBounds exceptions at line 487.

Stage 2: Successive throws eventually cause Tomcat to respond to  all
requests with error 400: bad request.

The original http requests stemmed from one IP range, whose access I've
since disabled. I'm very concerned that a single user was able to bring down
the server. 

Does anyone have a feel for what's happening here?

Chris


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



RE: Tomcat hangs

2004-02-12 Thread Shapira, Yoav

Howdy,
Have you tried this with a more recent tomcat version?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chris Rolfe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 2:01 PM
To: Tomcat
Subject: Re: Tomcat hangs

Hello,

I posted a query last week about Tomcat 4.0.6 under OS X hanging, but
haven't seen any response (was: SocketInputStream hanging Tomcat
4.0.6).

Is there anything more I can do ( more information I can provide, for
example ) to illicit feedback from the list or the developer of the
code
section?

This appears to be a vulnerability in Tomcat 4.0.6 - 4.1.x.

-
The problem:

Stage 1: According to the catalina log, SocketInputStream.readHeader is
throwing ArrayIndexOutOfBounds exceptions at line 487.

Stage 2: Successive throws eventually cause Tomcat to respond to  all
requests with error 400: bad request.

The original http requests stemmed from one IP range, whose access I've
since disabled. I'm very concerned that a single user was able to bring
down
the server.

Does anyone have a feel for what's happening here?

Chris


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




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


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



Re: jsp deployment

2004-02-12 Thread Jerry Ford
Permissions on the .jsp file are identical to permissions on all of the 
html, javascript, and servlet class files in the webapp, all of which 
work:  -rw--r--r--  owner/group is jford:user (which is the uid under 
which tomcat was started).

And I know it will serve .jsp's, the Tomcat example .jsp's all work.

Jerry

QM wrote:

: Tomcat chokes when the jsp is requested.  I get a 404
: error, the requested resoruce is not available.
:
: What do I need to configure to get Tomcat to serve the jsp?
Chances are it's a permissions issue on the file.  (Unless you've
tweaked Tomcat's config, it should already be able to serve JSPs.)
-QM

 

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


JBoss AOP

2004-02-12 Thread David Ramsey
I work for a company that has developed a Java version of one of their
products. Many of our customers use Tomcat as their application server
and it works wonderfully for that.

Recently, we've started looking hard at aspect oriented programming.
Looking at the practitioner's list of AOP frameworks, we took an
initial strong liking to JBoss AOP. JBoss AOP allows for use outside of
JBoss but requires that the framework have complete control of the
class loader to do its thing.

The simple solution, which JBoss recommends is this:

JBoss AOP must have total control over the ClassLoader to work at all.
The reason for this is that there is no compilation step for using the
framework. JBoss AOP does bytecode manipulation on aspected classes as
they are loaded into the VM. So, when using JBoss AOP standalone, you
must override the default system classloader to use a JBoss AOP system
classloader. This is done as follows:

java
-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader
YourMainClass


But this then requires that the JBoss classloader be used for all other
webapps in the container.


So here is my question - is there a clean way that I can replace just
the classloader for my application in Tomcat without impacting the
classloaders for other applications? A Tomcat developer might see this
answer more clearly than myself but I'm missing it if any such mechanic
exists.

And further, is there a portable way to replace the class loader for an
entire single webapp, regardless of container? I am doubting that this
is possible but I did want to ask.

Thank you in advance for your feedback!



Dave Ramsey


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



RE: NTLM Authentication POST Method

2004-02-12 Thread Yansheng Lin

From the servlet API:
If the parameter data was sent in the request body, such as occurs with an HTTP
POST request, then reading the body directly via getInputStream() or getReader()
can interfere with the execution of this method.

Just wondering if any of the method mentioned above being called in your
doPost()?

Hope this helps.

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 11, 2004 12:08 PM
To: 'Tomcat Users List'
Subject: NTLM Authentication  POST Method
Importance: High


Hello,

I am using post method of sending data to servlet  from a JSP page. I am unable
to get the data by request.getParameter(). 
If I am using get method I am able to retrieve data from JSP page

I was just searching on Google. Actually I am using NTLM Authentication in my
Login Servlet. I think there is some conflict between NTLM Authentication and
POST method. 

Any body has an idea what to do or set to get the things done ?

http://support.microsoft.com/default.aspx?scid=kb;DE;308074
http://support.microsoft.com/default.aspx?scid=kb;DE;308074 

I am using code from below link: 
http://www.jguru.com/faq/view.jsp?EID=1045412
http://www.jguru.com/faq/view.jsp?EID=1045412 

Best Regards
Abhay Kumar



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



Re: jsp deployment

2004-02-12 Thread Parsons Technical Services
Jerry,

Just for a test, change the file name to end with .txt and see if the page
is displayed.

If it still fails. I would double check the permissions/ownership on that
file.

If it works, then try a restart. After a restart if it still fails, check
your configs
for an entry that might be blocking or redirecting the request.

Just a novice throwing out ideas.

Doug Parsons
www.parsonstechnical.com


- Original Message - 
From: Jerry Ford [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 2:33 PM
Subject: Re: jsp deployment


 Permissions on the .jsp file are identical to permissions on all of the
 html, javascript, and servlet class files in the webapp, all of which
 work:  -rw--r--r--  owner/group is jford:user (which is the uid under
 which tomcat was started).

 And I know it will serve .jsp's, the Tomcat example .jsp's all work.

 Jerry

 QM wrote:

 : Tomcat chokes when the jsp is requested.  I get a 404
 : error, the requested resoruce is not available.
 :
 : What do I need to configure to get Tomcat to serve the jsp?
 
 
 Chances are it's a permissions issue on the file.  (Unless you've
 tweaked Tomcat's config, it should already be able to serve JSPs.)
 
 -QM
 
 
 

 -
 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 write to a properties file

2004-02-12 Thread Ralf Schneider
Am Donnerstag, 12. Februar 2004 15:51 schrieb Shapira, Yoav:
 One possible alternative is to have the properties file outside the
 webapp (or better yet, change from properties file to a database?), and
 configure the location of the file using one of the above approaches.
 That way you can still deploy a packed WAR, write/update the properties
 file, and (if you use the JNDI approach) the server admin can control
 the location of the file.

I think I'll do it this way.

Thanks for your suggestions.

Ralf.


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



RE: jsp deployment

2004-02-12 Thread Mike Curwen
You have a space in your JKMount?
/mywebapp/* .jsp ajp13
should be:
/mywebapp/*.jsp ajp13
 
Also, where does JAVA_HOME point to?  If it's only a JRE, your JSP's
won't compile.  The example ones may work if they were pre-compiled
(though I'm pretty sure they didn't start doing that until 5.0.x).
 
Also, try this javascript instead (perhaps it's a browser issue)

window.location.replace(http://www.mydomain.com/mywebapp/open.jsp;);

 -Original Message-
 From: Jerry Ford [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 12, 2004 10:47 AM
 To: Tomcat Users List
 Subject: jsp deployment
 
 
 The webapp I am writing has until today used html pages, 
 JavaScript, and 
 servlets, but no jsp files. 
 
 Now I want to add one, so I placed the file open.jsp in the webapp's 
 root directory (where the html files are).  I thought that's all I 
 needed to do, but Tomcat chokes when the jsp is requested.  I 
 get a 404 
 error, the requested resoruce is not available.
 
 What do I need to configure to get Tomcat to serve the jsp? 
 
 My setup is:  Apache 1.3.27 - Tomcat 4.1.27 via mod_jk, on a Linux 
 box.  All Tomcat examples (jsps and servlets) work fine, my webapp 
 servlets work fine.   Apache config includes this statement:  JkMount 
 /mywebapp/* .jsp ajp13 (and anyway the error comes from Tomcat, so I 
 know I'm getting through Apache).
 
 I have not made any jsp-related changes to my webapp's web.xml file, 
 which is where I define the servlets. 
 
 All the docs I have on Tomcat agree with this statement in 
 the O'Reilly 
 book Tomcat: The Definitive Guide:
 
 JSPs can be installed anywhere in a web applicationJSPs can be 
 copied to the root of your web application or placed in any 
 subdirectory 
 other than WEB-INF.
 
 So here's my structure:
 
 $TOMCAT_HOME
 '---webapps
 '---mywebapp
 ...'---index.html
 ...'---open.jsp
 
 index.html hands off to open.jsp by way of this JasvaScript statement:
 
 document.location=open.jsp
 
 And Tomcat serves up the 404 error.
 
 What to do?
 
 Thanks.
 
 Jerry
 
   
 
 
 -
 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: Virtual Host

2004-02-12 Thread Anthony Gray
You can see how to config multiple vhosts with apache mod_jk and tomcat here 
:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Virtual Host
Date: Thu, 12 Feb 2004 16:37:31 +
Is there away in http.conf to setup a Virtual Host for a domain and then it 
only needs to know where to look for Tomcat

Is that a good way?


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Virtual Host
Date: Thu, 12 Feb 2004 16:32:10 +
Are there any good virtual host examples to look at.  Tutorials.  I just 
need to setup one domain that isnt the default domain and have it use 
Tomcat from the root dir.

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=dept/featurespgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp

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


RE: Virtual Host

2004-02-12 Thread Didier McGillis
sorry need one for mod_jk 1.2


From: Anthony Gray [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Virtual Host
Date: Fri, 13 Feb 2004 07:03:10 +1000
You can see how to config multiple vhosts with apache mod_jk and tomcat 
here :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Virtual Host
Date: Thu, 12 Feb 2004 16:37:31 +
Is there away in http.conf to setup a Virtual Host for a domain and then 
it only needs to know where to look for Tomcat

Is that a good way?


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Virtual Host
Date: Thu, 12 Feb 2004 16:32:10 +
Are there any good virtual host examples to look at.  Tutorials.  I just 
need to setup one domain that isnt the default domain and have it use 
Tomcat from the root dir.

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=dept/featurespgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

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


Re: include files

2004-02-12 Thread Ankur Shah
...and if you're a windowz fanatic, you still have hope. You can 
download a copy of touch from:

ftp://ftp.microsoft.com/Services/TechNet/samples/ps/win98/Reskit/FILE/

(TOUCH.EXE, is what you're looking for)

or you could simply install Cygwin, the greatest unix emulator on the 
face of this planet! (Sorry, couldn't resist)

Yiannis Mavroukakis wrote:

The touch command is on Unix OS'es. It hasn't got anything to do with
tomcat. What it does is it updates (among other things) the last modified
attribute
of a file, but in your case the purpose is (at least if my head is screwed
on right)
to trigger Tomcat into detecting a file change in the work directory, hence
doing a reload.
If I got the Tomcat bit wrong, shoot at the bright red target on my
forehead :)
Yiannis.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 14:50
To: Tomcat Users List
Subject: Re: include files
thanks.

do i delete the name of the app under tomcat, for example 
work/Standalone/localhost/Website ?  and all the $... files and the two 
directories -  Help and WEB-INF under this directory ?

what is the touch cmd ?  i cant find it in my wrox tomcat book ?

cheers

chris
 

snip

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


Re: Tomcat hangs

2004-02-12 Thread Chris Rolfe
on 2/12/04 11:17 AM, Shapira, Yoav wrote:

 Have you tried this with a more recent tomcat version?

No. I've not been able to isolate the bug well enough to reproduce it, so
there's nothing to test with. I have only observed the vulnerability in our
current production server.  I've since disabled access for the IP range that
was generating the problematic http requests.

Chris


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



Re: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver

2004-02-12 Thread Dan
Andreas,

Not sure if you got a response yet. Generally, when I have seen the 
error above, it seemed to be coming from the web app saying that it 
didn't get the parameters. I am fighting this same error. Strange 
enough, though, I had it working as you have yours setup. Another thing 
is that the order that the XML elements are in is critical...i.e. it 
needs to follow the dtd. This means that resource-ref elements need to 
be in the right order relative to the other elements(like servlet and 
servlet-mapping).

Anyway, if it was a driver problem like the jar was in the wrong place, 
the log would have told you it can't find the class.

If you have figured out how to get this working or if you have gotten it 
to work with the gloabal jndi resource context, please let me know. I 
will check back later and I will help you figure it out as I will be 
working on it too.

Dan



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


Re: Re: done did not found a worker

2004-02-12 Thread Charles Daniel
Hi Dwayne, 

If I remember from my own experience then mod_jk binaries are only available for 
Solaris.  Others have tried to use these and got the error that read something like 
... encoding not little-endian. To avoid this, get the jk module from source or CSV 
that is appropriate for your operating system.  You'll need to compile whatever 
version you need.

Osensei

  - Original Message - 
  From: Dwayne Ghantmailto:[EMAIL PROTECTED] 
  To: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] 
  Sent: Thursday, February 12, 2004 9:17 AM
  Subject: Fwd: Re: done did not found a worker


  I have tried to go to 
http://jakarta.apache.org/site/binindex.cgihttp://jakarta.apache.org/site/binindex.cgi
 and
  download mod_jk 1.2 , it's not available. Does anybody know how I can 
  get mod_jk1.2 ?

  David O'Brien wrote:

   If you are using mod_jk and NOT mod_jk2 then this file's content makes 
   no difference in your configuration.
   You need to tell apache to use the workers.properties NOT the 
   workers2.properties in your httpd.conf file
   -Dave
  
  
   At 11:58 AM 2/10/2004, you wrote:
  
   But Dave you didn't address this stuff below?
   I think this is where I'm having the most problems.
  
   ##=
   ##Other needed configuratoin(s)
   ##=
   ##define the shared memory file
  
   [shm]
   file=/usr/local/tomcat-4.1.24/work/jk2.shm
   file=1048576
  
   ## Define the communication channel
  
   [channel.socket:localhost:8009]
   #tomcatId=localhost:8009
   port=8009
   host=127.0.0.1
  
   #define the worker
   [balance_all_workers:localhost:8009]
   channel=channel.socket:localhost:8009
  
  
  
  
   #Uri mapping
   [uri:saturn.temple.edu/examples/*]
   #worker=ajp13:localhost:8009
   worker=balance_all_workers:localhost:8009
  
   [uri:saturn.temple.edu/developers/*]
   #worker=ajp13:localhost:8009
   worker=balance_all_workers:localhost:8009
  
   [uri:saturn.temple.edu/product/*]
   #worker=ajp13:localhost:8010
   worker=balance_all_workers:localhost:8010
  
   [uri:saturn.temple.edu/uPortal/*]
   #worker=ajp13:localhost:8010
   worker=balance_all_workers:localhost:8010
  
  
   #[status:]
  
   #info=Status worker, displays runtime information
   channel=channel.socket:localhost:8009
  
   #[uri:/status/*]
   #worker=status:localhost:8009
   #group=status:
  
  
   David Rees wrote:
  
   Dwayne Ghant wrote, On 2/9/2004 7:02 PM:
  
   Dave, I have been having semular issues would it be impossible for 
   to post the four files listed below:
  
   1. http.conf
   2. ssl.conf
   3. server.xml
   4. workers2.properties
  
  
  
   Here's a sample for setting up Apache.  This will work on either 
   Apache 2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of 
   Tomcat will work, use the example connector config included with 
   every default server.xml as it varies a little between Tomcat versions.
  
   httpd.conf
   # This only shows the portions relevant to mod_jk, you should stick the
   # lines somewhere in your config file.  This config also works for
   # Apache 1.3.X as well as Apache 2.0.X.
   ---
   LoadModule jk_module modules/mod_jk.so
  
   JkWorkersFile path-to-apache-conf/tomcat_workers.properties
   JkLogFile path-to-apache-logs/mod_jk.log
   JkLogLevel error
  
   VirtualHost *:80
   ServerName www.example.comhttp://www.example.com/
   JkMount /*.jsp tomcat
   JkMount /servlet/* tomcat
   /VirtualHost
   ---
  
   path-to-apache-conf/tomcat_workers.properties
   ---
   worker.list=tomcat
   worker.tomcat.port=8007
   worker.tomcat.host=localhost
   worker.tomcat.type=ajp13
   ---
  
   That's it!
  
   -Dave
aka the mod_jk expert
NOT a mod_jk2 expert!
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  
  
   -- 
  
   Dwayne A. Ghant
   Application Developer
   Temple University
   215.204.
   [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  
  
  
   David G. O'Brien
   Web Services Coordinator / Systems Administrator
  
   NACCRRA
   The Nation's Network of Child Care Resource  Referral
   1319 F Street NW, Suite 500
   Washington, DC 20004
   (202) 393-5501 ext. 113
   (202) 393-1109 fax
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  

  -- 

  Dwayne A. Ghant
  Application Developer
  Temple University
  215.204.
  [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]





  

tomcat 5 mod_jk.conf

2004-02-12 Thread developer
Installed tomcat 5 on my linux box and it works no problem stand alone. 
However I don't see that the auto/mod_jk.conf directory or file is being
created.  Does anyone know if you have to do something special with the
tomcat  5 dist to tell it to create these files?
thanks
-Ryan

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



Re: Tomcat 5 Autoconfig

2004-02-12 Thread Bill Barker

John B. Moore [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Ah, further checking on the Sun website indicates that it is:

 Apache Tomcat Version 5.0.18

   So... why did it not work...

I don't know.  Maybe Sun packages Tomcat differently than Apache does.  The
class should be in server/lib/jkconfig.jar.


 Catalina.start: java.lang.ClassNotFoundException:
 org.apache.jk.config.ApacheConfig
   java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig




 Bill Barker wrote:

 In 5.0.18 it was added back as org.apache.jk.config.ApacheConfig.
 
 John B. Moore [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
 
 Greetings..
 
 Can't seem to find the documenation for Autoconfig for Tomcat 5 to
 Apache..
 
In Tomcat4 I used..
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true
   forwardAll=false
   modJk=/usr/libexec/httpd/mod_jk.so
 
 ..tried...
 
Listener className=org.apache.ajp.tomcat5.config.ApacheConfig
   append=true
   forwardAll=false
   modJk=/usr/libexec/httpd/mod_jk.so
 
no joy... throws a ClassDefNotFound..  searched the docs but can seem
 to find the right rock to look under..
 
Could someone give me a kick in the right direction...
 
 Thanks..
 
  John..
 
 
 
 
 
 
 -
 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: Problems getting Tomcat 5.0.18 to work with IIS 5

2004-02-12 Thread Daniel Schmitt
Can't find an error so far, but

Alex L. wrote:

Workers2.properties file
-
[shm:]
info=Shared memory file. Required for multiprocess servers
file=D:\Program Files\tomcat 5.0\work\jk2.shm
size=1048576
In my setup file path is without quotation marks.
Any Messages in your win32 Event Viewer Application log?
--
Daniel Schmitt
http://www.shiftomat.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Problems getting Tomcat 5.0.18 to work with IIS 5

2004-02-12 Thread Michael Südkamp
The online docs are not clear. You can use the JK2/IIS setup provided here  
http://www.shiftomat.com/opensource/

Michael

 -Ursprüngliche Nachricht-
 Von: Alex L. [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 12. Februar 2004 18:43
 An: Tomcat Users List
 Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5
 
 
 I'm having some issues gettin tomcat 5.0.18 to work with 
 win2k IIS 5.  I've
 followed the guides online and have everything apparently set 
 up.  Tomcat
 works, IIS works, but IIS refuses to load .jsp files as if it 
 can't find
 them.  Any help is greatly appreciated!


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