Re: ***SPAM*** Re: ***SPAM*** maxPostSize syntax

2011-06-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 6/2/2011 8:12 AM, David kerber wrote:
 I would think overriding Integer.parseInt(), or adding an equivalent
 method to the code section that loads the various configuration files
 would be the most efficient way to do this globally.

Of course, overriding Integer.parseInt isn't a Good Idea, but using some
other integer-parsing routine everywhere in Tomcat might not be a bad
idea, especially for things where specifying magnitude using things like
M, G, etc. seems reasonable.

 I'd love to have this abbreviation capability, but I can barely keep up
 with my own company's code-writing needs, so I just use a calculator and
 enter the actual integer value where it's needed.

Log it in BZ. In this case, it should be nearly trivial. Extending it to
other places would be trivial in each case, but identifying those cases
is labor-intensive.

If you review the documentation and just mention every setting in the
enhancement request, it'll be much easier to implement.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3s344ACgkQ9CaO5/Lv0PDSugCfcpI6g0hffIpvXfu0BO30VXFe
SsYAn1iXnsgGxz5MLBxBrpfc6G7vD0SV
=/ypz
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ***SPAM*** Re: ***SPAM*** maxPostSize syntax

2011-06-06 Thread Mark Thomas
On 06/06/2011 15:09, Christopher Schultz wrote:
 David,
 
 On 6/2/2011 8:12 AM, David kerber wrote:
 I would think overriding Integer.parseInt(), or adding an equivalent
 method to the code section that loads the various configuration files
 would be the most efficient way to do this globally.
 
 Of course, overriding Integer.parseInt isn't a Good Idea, but using some
 other integer-parsing routine everywhere in Tomcat might not be a bad
 idea, especially for things where specifying magnitude using things like
 M, G, etc. seems reasonable.
 
 I'd love to have this abbreviation capability, but I can barely keep up
 with my own company's code-writing needs, so I just use a calculator and
 enter the actual integer value where it's needed.
 
 Log it in BZ. In this case, it should be nearly trivial. Extending it to
 other places would be trivial in each case, but identifying those cases
 is labor-intensive.
 
 If you review the documentation and just mention every setting in the
 enhancement request, it'll be much easier to implement.

The pace to implement this for folks wanting to look at writing a patch
is likely to be in either the digester parsing code or in
IntrospectionUtils. (he says without looking at the codebase at all)

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ***SPAM*** Re: ***SPAM*** maxPostSize syntax

2011-06-02 Thread Mark Thomas
On 02/06/2011 02:37, Olivier Lefevre wrote:
 You guys have a chip on your shoulder. This is Java.
 xM, xm, xG and xg are accepted as
 sizes by all the -Xm? options, so why not by Tomcat.
 M and G are size units, too.
 
 Other than dudes with an attitude like you, nobody
 refers to 64M as 67108864.

When trying to persuade others to your point of view or to volunteer
some of their time to implement a feature you would like to see, taking
an antagonistic approach is rarely the most effective way to achieve
your objective.

To the best of my knowledge, you are the first person to suggest such a
feature. That doesn't mean that such a feature would be unwelcome. It
strikes me as a useful addition; if it can be implemented without having
to change the setter for every attribute that could use these abbreviations.

Tomcat is developed by the community. That means everyone - including
you - has a role to play. If there is a feature you would like to see,
you can open an enhancement request. Enhancement requests with patches
tend to find their way into the code base faster than enhancement
requests without patches. If you need some pointers on writing a patch
for this, you can ask here.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ***SPAM*** Re: ***SPAM*** maxPostSize syntax

2011-06-02 Thread David kerber

On 6/2/2011 7:52 AM, Mark Thomas wrote:

On 02/06/2011 02:37, Olivier Lefevre wrote:

You guys have a chip on your shoulder. This is Java.
xM, xm, xG and xg are accepted as
sizes by all the -Xm? options, so why not by Tomcat.
M and G are size units, too.

Other than dudes with an attitude like you, nobody
refers to 64M as 67108864.


When trying to persuade others to your point of view or to volunteer
some of their time to implement a feature you would like to see, taking
an antagonistic approach is rarely the most effective way to achieve
your objective.

To the best of my knowledge, you are the first person to suggest such a
feature. That doesn't mean that such a feature would be unwelcome. It
strikes me as a useful addition; if it can be implemented without having
to change the setter for every attribute that could use these abbreviations.


I would think overriding Integer.parseInt(), or adding an equivalent 
method to the code section that loads the various configuration files 
would be the most efficient way to do this globally.


I'd love to have this abbreviation capability, but I can barely keep up 
with my own company's code-writing needs, so I just use a calculator and 
enter the actual integer value where it's needed.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ***SPAM*** maxPostSize syntax

2011-06-01 Thread Olivier Lefevre

You guys have a chip on your shoulder. This is Java.
xM, xm, xG and xg are accepted as
sizes by all the -Xm? options, so why not by Tomcat.
M and G are size units, too.

Other than dudes with an attitude like you, nobody
refers to 64M as 67108864.

-- O.L.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ***SPAM*** maxPostSize syntax

2011-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 5/28/2011 12:14 PM, ma...@apache.org wrote:
 Olivier Lefevre lefev...@yahoo.com wrote:
 
 What is the syntax for the maxPostSize Connector parameter:
 are notations like 1M or 1G recognized? That would be expected,
 even thought the docs:
 http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
 are mum about it.

 Thanks,

 -- O.L.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 It might be expected but such an assumption would be incorrect.
 
 As an aside, the docs indicate the valid formats. They do not list all 
 possible invalid formats. Most attributes are simple numbers. Where this is 
 not the case the docs list (ok should list - there might be a few gaps) the 
 options.

What, you mean we also don't accept 2 * pi / 180.0 as a valid file
size? Maybe we should update the docs...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3lQ4MACgkQ9CaO5/Lv0PBOewCfWQ5Ar6nZyI4AYYfjWIYrFgXi
2KUAn1FGngDUGACSHGhpG6FfvxIjSIkr
=OUN0
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ***SPAM*** maxPostSize syntax

2011-05-28 Thread markt
Olivier Lefevre lefev...@yahoo.com wrote:

What is the syntax for the maxPostSize Connector parameter:
are notations like 1M or 1G recognized? That would be expected,
even thought the docs:
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
are mum about it.

Thanks,

-- O.L.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

It might be expected but such an assumption would be incorrect.

As an aside, the docs indicate the valid formats. They do not list all possible 
invalid formats. Most attributes are simple numbers. Where this is not the case 
the docs list (ok should list - there might be a few gaps) the options.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: ****SPAM**** RE: Error Question

2010-11-24 Thread Omar A. Barrera
I am currently at JVM 1.6.0_11 and am using JDK 1.6.20.  So updating the
JVM should resolve the issue?  I will give it a try.  Many thanks.

Regards,

--Omar Barrera

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, November 24, 2010 9:18 AM
To: Tomcat Users List
Subject: SPAM RE: Error Question

 From: Omar A. Barrera [mailto:oma...@southtexascollege.edu] 
 Subject: Error Question

 I am currently using Eclipse Helios and Tomcat 6.0.29

What JVM are you using?  There was a known bug in 6u* that threw an
erroneous string index out of bounds exception on occasion.  The problem
was fixed in 6u22 (or possibly earlier).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: ****SPAM**** RE: Error Question

2010-11-24 Thread Caldarale, Charles R
 From: Omar A. Barrera [mailto:oma...@southtexascollege.edu] 
 Subject: RE: SPAM RE: Error Question

 I am currently at JVM 1.6.0_11 and am using JDK 1.6.20.

Not sure how you can be two places at once...

 So updating the JVM should resolve the issue?
 
Might, rather than should.  It would at least eliminate one possibility.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Spam

2010-11-20 Thread Caldarale, Charles R
 From: Brian [mailto:bbprefix-m...@yahoo.com] 
 Subject: Spam

 Since I enrolled in this list, I started to receive spam.

If you've never gotten spam before, you must be nearly unique.

Since the mailing list messages are archived in numerous public locations, it's 
pretty much impossible to prevent the unscrupulous from harvesting members' 
e-mail addresses.

 Is there a way to avoid this?

Use a junk mail filter, either one provided by your ISP, or in your e-mail 
client.

 - Chuck



THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Spam

2010-11-20 Thread Brian
 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Saturday, November 20, 2010 11:48 AM
 To: Tomcat Users List
 Subject: RE: Spam
 
  From: Brian [mailto:bbprefix-m...@yahoo.com]
  Subject: Spam
 
  Since I enrolled in this list, I started to receive spam.
 
 If you've never gotten spam before, you must be nearly unique.

Well, I must admit I have received spam before  :-)
But I really don't get much spam, and I don't use any filters because they
have never been reliable enough. I prefer to get spam, than to use a filter
that blocks valid emails and having to check all the blocked emails to see
if something valid is there.
What I meant is that as soon as I enrolled, I started receiving this spam
with the classic scam that made Nigerians famous on the internet, as they
were on fax.

 
 Since the mailing list messages are archived in numerous public locations,
it's
 pretty much impossible to prevent the unscrupulous from harvesting
 members' e-mail addresses.

That's is why forums are better than lists.
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Spam

2010-11-20 Thread Caldarale, Charles R
 From: Brian [mailto:bbprefix-m...@yahoo.com] 
 Subject: RE: Spam

 That's is why forums are better than lists.
 
A matter of opinion.  I find forums to be nearly unusable.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Spam

2010-11-20 Thread Antonio Petrelli
2010/11/20 Caldarale, Charles R chuck.caldar...@unisys.com:
 From: Brian [mailto:bbprefix-m...@yahoo.com]
 Subject: Spam

 Since I enrolled in this list, I started to receive spam.

 If you've never gotten spam before, you must be nearly unique.

 Since the mailing list messages are archived in numerous public locations, 
 it's pretty much impossible to prevent the unscrupulous from harvesting 
 members' e-mail addresses.

Charles
the problem might be exactly the mail archive, take a look at this sample:
http://mail-archives.apache.org/mod_mbox/tomcat-users/201011.mbox/browser
Addresses, present in original message part (and similar) are not
anonymized. AFAIK other services, like Mail Archive, markmail, etc.
anonymize those.

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Spam

2010-11-20 Thread Antonio Petrelli
2010/11/20 Antonio Petrelli antonio.petre...@gmail.com:
 the problem might be exactly the mail archive

I meant the Apache mail archive not mail-archive.com

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Spam

2010-11-20 Thread André Warnier

Caldarale, Charles R wrote:
From: Brian [mailto:bbprefix-m...@yahoo.com] 
Subject: Spam



Since I enrolled in this list, I started to receive spam.


If you've never gotten spam before, you must be nearly unique.

Since the mailing list messages are archived in numerous public locations, it's 
pretty much impossible to prevent the unscrupulous from harvesting members' 
e-mail addresses.


Is there a way to avoid this?


Use a junk mail filter, either one provided by your ISP, or in your e-mail 
client.


Alternatively, you can let them come in and read them before you discard them.
Many are funny, my general preference being for the ones (purportedly) coming 
from Africa.
For the other boring ones, it is easy to filter them out.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



[OT] re : spam

2010-11-18 Thread André Warnier

Guys,
I am starting to receive quite a bit of spam from a guy named Ed about career 
moves etc..
Somehow it seems to originate from (or maybe simply mention) the tomcat users list as a 
reply-to.  I have also seen at least one message like that in the list itself.
Anything that should/can be done about this ?  Does it mean that someone harvested the 
list of subscribers to the list, or worse ?


Or is it just me ?

Among the headers in the messages themselves are :
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])   
...
Received-SPF: pass (athena.apache.org: domain of ed_b...@hotmail.com designates 
65.55.90.152 as permitted sender)

..

(full headers available on request)



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] re : spam

2010-11-18 Thread Mark Thomas
On 18/11/2010 11:04, André Warnier wrote:
 Guys,
 I am starting to receive quite a bit of spam from a guy named Ed about
 career moves etc..
 Somehow it seems to originate from (or maybe simply mention) the tomcat
 users list as a reply-to.  I have also seen at least one message like
 that in the list itself.
 Anything that should/can be done about this ?  Does it mean that someone
 harvested the list of subscribers to the list, or worse ?

A spammer subscribed themselves to the users list and started sending
messages.

As soon as the moderators woke up, had a shot of caffeine and started
wading through their inboxes, the idiot was spotted, removed from both
the users@ and dev@ lists and banned from further subscriptions.

How quickly something like this gets spotted and dealt with depends on
when it starts, which timezone the moderators are in at the time and
when they look at the list traffic. I'd be surprised if it went on for
more than 24 hours before being dealt with.

If you need to get hold of the moderators, email users-ow...@tomcat...

If that fails you can always escalate it to the ASF infra team but
please don't do that unless the moderators appear to have gone AWOL for
at least several days.

 Or is it just me ?

Nope.

 Among the headers in the messages themselves are :
 Received: from mail.apache.org (hermes.apache.org [140.211.11.3])   
 ...
 Received-SPF: pass (athena.apache.org: domain of ed_b...@hotmail.com
 designates 65.55.90.152 as permitted sender)

Yep. I see the same thing. The spammer was subscribed to the users list.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] re : spam

2010-11-18 Thread M . H . G . Emmerig

It is not just you. I received some emails from ed as well.


Milko

   
 André Warnier   
 a...@ice-sa.com   
To
 18-11-2010 12:04  Tomcat Users List   
   users@tomcat.apache.org   
cc
 Please respond to 
   Tomcat Users   Subject
   List   [OT] re : spam  
 us...@tomcat.apa 
 che.org  
   
   
   
   




Guys,
I am starting to receive quite a bit of spam from a guy named Ed about
career moves etc..
Somehow it seems to originate from (or maybe simply mention) the tomcat
users list as a
reply-to.  I have also seen at least one message like that in the list
itself.
Anything that should/can be done about this ?  Does it mean that someone
harvested the
list of subscribers to the list, or worse ?

Or is it just me ?

Among the headers in the messages themselves are :
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
...
Received-SPF: pass (athena.apache.org: domain of ed_b...@hotmail.com
designates
65.55.90.152 as permitted sender)
..

(full headers available on request)



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Please consider the environment before printing this email.

De informatie verzonden met dit e-mailbericht is vertrouwelijk en
uitsluitend bestemd voor de geadresseerde. Indien u als niet-geadresseerde
dit bericht ontvangt, wordt u verzocht direct de afzender hierover te
informeren en het bericht te vernietigen. Gebruik van informatie door
onbevoegden, openbaarmaking of vermenigvuldiging  is verboden en kan leiden
tot aansprakelijkheid. De afzender is niet aansprakelijk in geval van
onjuiste overbrenging van het e-mailbericht en/of bij ontijdige ontvangst
daarvan.

The information transmitted is confidential and intended only for the
person or entity to whom or which it is addressed. If you are not the
intended recipient of this communication, please inform us immediately and
destroy this communication. Unauthorised use, disclosure or copying of
information is strictly prohibited and may entail liability. The sender
accepts no liability for improper transmission of this communication nor
for any delay in its receipt.

Re: [SPAM] RE: Application stops responding, jk worker in error state

2010-06-19 Thread Rainer Jung

On 19.06.2010 03:46, Neil Aggarwal wrote:

Rainer:


Hmmm, errno 11 is often EAGAIN. What platform are you using
(OS, version)?


I am using CentOS 5.5 freshly installed, not an upgrade.
I tried that as a fix to this problem.  I wiped the server
clean and reinstalled everything from scratch.  It was on
CentOS 5.4 before and I had the same behavior.


What is really strange is the JK Status page says -48

connections.  It seems

like that number should always be positive or zero but not negative.


That should be unrelated (and yes: it's not OK).


It seems to me if jk is confused about the number of
backend connections, it may not be connecting correctly
to Tomcat.  That seems like it would cause the behavior
I am experiencing.


No, the total number of connections is shown only for convenience 
(monitoring etc.). The real process pool is local for each Apache 
process. there seems to be something wrong when tracking the total 
number via shared memory but that shouldn't influence in any way the 
usual functionality. It has only been added very recently.


What *is* a problem is EAGAIN while reading from the socket. We don't 
expect that and handle it as an error, though strictly speaking it is 
only a temporary error condition. i'll see whether I can provide a patch.


would you mind opening an issua in Bugzilla, attaching your log snippet 
and possibly your workers.properties (the property dump from the status 
worker is a little harder to digest, because it also shows all the 
defaults).


You can also open a second issue concering the obvisouly wrong 
connection count shown in the status worker.


Thanks and sory for the trouble

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [SPAM] - RE: Tomcat 6 Context, docBase and path - Found word(s) if you received this in error in the Text body

2009-10-27 Thread Nils Weinander

Caldarale, Charles R wrote:

From: Nils Weinander [mailto:nils.weinan...@mogul.com]
Subject: Tomcat 6 Context, docBase and path

Sorry if this is a common question, I didn't find anything
like it by Google.


Reading the actual Tomcat doc and FAQ is probably more productive.


Tried that too...



In a Tomcat 6, I have a Context declaration in server.xml


That's a bad idea right off; there shouldn't be any Context elements in 
server.xml.


I know, but as I read the docs, that's primarily if you
need to modify contexts without restarting Tomcat and
this isn't needed here. Any other reasons?


with a path and a docBase to a war file with a different
name than the path:


If you insist on having the webapp name be different than its URI
path, you must keep the webapp outside of the Host appBase directory,
and place the Context element in conf/Catalina/[host]/[appName].xml.
The Context element must include the docBase attribute pointing to the
absolute location of the webapp, and the path attribute must *not* be used.


Thanks!

--
mogul | nils weinander |
hudiksvallsgatan 4 113 30 stockholm sweden |
+46 8 4100 6456 | +46 709 78 28 37 |
nils.weinan...@mogul.com | skype: nils.weinander |
www.mogul.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Joost Nachtergaele

Tnx for the quick reply.
Reading about clusters I see all session data needs to be Serializable, in
our case this is not possible.
What we use today is a load-balancer, disconnecting one server for new
connections, waiting for all sessions to expire, upgrade, and put the server
back on the load-balancer. This takes time, as some users are working all
day long. As the number of servers grows, this becomes a nightmare.

Does anybody now of a tool to do this job easier?

Tnx!
Jst.


 Hot deployment of a new version of war file while users are still working
on
 the old one.
 
 On a Tomcat server, users are using our application. 
 
 I would like to be able to upload a new version, using the same name, so
 current users continue using the old version(until session timeout), and
new
 users use the new version.

Not possible with a single Tomcat instance. Easy with a simple two node
cluster.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Ronald Klop

You don't give much details about your problems. But I think you have some 
long-living big datastructures which are hold in the session, so you can't 
cluster your sessions.

You could redesign your application to make it more scalable. In the end that 
is your problem, so it's the solution also.
Other solutions wil be short term and only increase your nightmare on the long 
term.

Maybe you can put your datastructure in a database so you don't need to have it 
in a session.

Ronald.


Op maandag, 27 oktober 2008 om 13:44 uur schreef Tomcat Users List 
users@tomcat.apache.org:



Subject: RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new 
version of w...
Date: Mon Oct 27 13:44:05 CET 2008
From: Joost Nachtergaele [EMAIL PROTECTED]



Tnx for the quick reply.
Reading about clusters I see all session data needs to be Serializable, in
our case this is not possible.
What we use today is a load-balancer, disconnecting one server for new
connections, waiting for all sessions to expire, upgrade, and put the server
back on the load-balancer. This takes time, as some users are working all
day long. As the number of servers grows, this becomes a nightmare.

Does anybody now of a tool to do this job easier?

Tnx!
Jst.


 Hot deployment of a new version of war file while users are still working
on
 the old one.
 
 On a Tomcat server, users are using our application. 
 
 I would like to be able to upload a new version, using the same name, so

 current users continue using the old version(until session timeout), and
new
 users use the new version.

Not possible with a single Tomcat instance. Easy with a simple two node
cluster.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








Re: Spam Score

2008-07-26 Thread Mark Thomas

Len Popp wrote:

If you can't re-post the original email successfully, try:
- posting in plain text format, not HTML
- removing URLs
- posting from a different email account, or from a web gateway such
as nabble.com

Perhaps the mailing list admin can give us some hints about what to
avoid when sending email to this list. Or tell us what anti-spam
software is running on mx1.us.apache.org - maybe there is
documentation about how to compose emails so they're not scored as
spam.


Oddly enough we use http://spamassassin.apache.org/

The rules get modified as issues are identified.

That said, sending HTML mail and/or not specifying a subject continue to be 
the most frequent reasons for rejection.


Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Spam Score

2008-07-22 Thread Bill Davidson

Patrick Markiewicz wrote:

What is the tomcat mailing list spam score, and why am I unable to send
my email to post a question?
  


You just posted a question.

I don't know what you mean by spam score.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Spam Score

2008-07-22 Thread Patrick Markiewicz
For some reason, my original question is undeliverable, and the tomcat
mailing list sends me:
users@tomcat.apache.org on 7/22/2008 2:28 PM
The e-mail system was unable to deliver the message, but did
not report a specific reason.  Check the address and try again.  If it
still fails, contact your system administrator.
 XX; host
mx1.us.apache.org[140.211.11.136] said:552 spam score (5.6) exceeded
threshold (in reply to end of DATA command)

XX is a placeholder for my mailserver's actual
address.

Are there specific things that are not allowed?  Like having URLs in my
email?  I'll try reposting that message.

Patrick 

-Original Message-
From: Bill Davidson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2008 2:34 PM
To: Tomcat Users List
Subject: Re: Spam Score

Patrick Markiewicz wrote:
 What is the tomcat mailing list spam score, and why am I unable to
send
 my email to post a question?
   

You just posted a question.

I don't know what you mean by spam score.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Spam Score

2008-07-22 Thread David Smith

Don't know ... looks like you can send.

--David

Patrick Markiewicz wrote:

What is the tomcat mailing list spam score, and why am I unable to send
my email to post a question?

 


Patrick


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Spam Score

2008-07-22 Thread Len Popp
If you can't re-post the original email successfully, try:
- posting in plain text format, not HTML
- removing URLs
- posting from a different email account, or from a web gateway such
as nabble.com

Perhaps the mailing list admin can give us some hints about what to
avoid when sending email to this list. Or tell us what anti-spam
software is running on mx1.us.apache.org - maybe there is
documentation about how to compose emails so they're not scored as
spam.
-- 
Len


On Tue, Jul 22, 2008 at 14:46, Patrick Markiewicz
[EMAIL PROTECTED] wrote:
 For some reason, my original question is undeliverable, and the tomcat
 mailing list sends me:
 users@tomcat.apache.org on 7/22/2008 2:28 PM
The e-mail system was unable to deliver the message, but did
 not report a specific reason.  Check the address and try again.  If it
 still fails, contact your system administrator.
 XX; host
 mx1.us.apache.org[140.211.11.136] said:552 spam score (5.6) exceeded
 threshold (in reply to end of DATA command)

 XX is a placeholder for my mailserver's actual
 address.

 Are there specific things that are not allowed?  Like having URLs in my
 email?  I'll try reposting that message.

 Patrick

 -Original Message-
 From: Bill Davidson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 22, 2008 2:34 PM
 To: Tomcat Users List
 Subject: Re: Spam Score

 Patrick Markiewicz wrote:
 What is the tomcat mailing list spam score, and why am I unable to
 send
 my email to post a question?


 You just posted a question.

 I don't know what you mean by spam score.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Spam Score

2008-07-22 Thread Patrick Markiewicz
Apparently the plain text suggestion worked.  Thanks.

-Original Message-
From: Len Popp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2008 2:55 PM
To: Tomcat Users List
Subject: Re: Spam Score

If you can't re-post the original email successfully, try:
- posting in plain text format, not HTML
- removing URLs
- posting from a different email account, or from a web gateway such
as nabble.com

Perhaps the mailing list admin can give us some hints about what to
avoid when sending email to this list. Or tell us what anti-spam
software is running on mx1.us.apache.org - maybe there is
documentation about how to compose emails so they're not scored as
spam.
-- 

Len


On Tue, Jul 22, 2008 at 14:46, Patrick Markiewicz
[EMAIL PROTECTED] wrote:
 For some reason, my original question is undeliverable, and the tomcat
 mailing list sends me:
 users@tomcat.apache.org on 7/22/2008 2:28 PM
The e-mail system was unable to deliver the message, but
did
 not report a specific reason.  Check the address and try again.  If it
 still fails, contact your system administrator.
 XX; host
 mx1.us.apache.org[140.211.11.136] said:552 spam score (5.6)
exceeded
 threshold (in reply to end of DATA command)

 XX is a placeholder for my mailserver's actual
 address.

 Are there specific things that are not allowed?  Like having URLs in
my
 email?  I'll try reposting that message.

 Patrick

 -Original Message-
 From: Bill Davidson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 22, 2008 2:34 PM
 To: Tomcat Users List
 Subject: Re: Spam Score

 Patrick Markiewicz wrote:
 What is the tomcat mailing list spam score, and why am I unable to
 send
 my email to post a question?


 You just posted a question.

 I don't know what you mean by spam score.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Spam Score

2008-07-22 Thread tomcat

At 02:38 PM 7/22/2008, you wrote:

What is the tomcat mailing list spam score, and why am I unable to send
my email to post a question?



Patrick


Well, your first message that made it in looked like this:

X-ASF-Spam-Status: No, hits=4.1 required=10.0
tests=DNS_FROM_RFC_BOGUSMX,HTML_MESSAGE,SPF_PASS
X-Spam-Check-By: apache.org

So, apparently your mail server has a bdefective MX record, you don't 
use SPF and your first message was in HTML. Your second message, that 
made it to the group was not HTML.


Go fix that DNS! That's a BIG strike against your getting any mail 
anywhere! I probably would have scored you higher for that!


Cheers!
Received-SPF: pass (athena.apache.org: local policy)
Received: from [67.91.25.34] (HELO barracuda.sim-gtech.com) (67.91.25.34)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 18:29:27 +
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary=_=_NextPart_001_01C8EC2A.25F5E661


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to increase tomcat memory

2008-05-19 Thread Tomás Tormo
Thank you very much for you answer. Because of I was in a hurry, I 
examined the invocation of tomcat and I found that Tomcat was using 
128mb of memory, so, obviously , the lines I added weren't working at 
all... Then, I realized that the -Xmx128m argument was after a line 
-Djava.awt.headless=true, so I simply located that line (that can be 
found in catalina.sh) and changed the argument with -Xmx512m, and now my 
applicattion is working perfectly :)


Anyway... does anybody know the correct way to do this? (or maybe, this 
is the good one... :p )


Thank you again!

Alan Chaney escribió:

You seem to be using linux. If you go:

ps alx | grep java

after you have started tomcat you should be able to find the 
invocation for tomcat. Please check to see whether or not the options 
you have specified below appear in that list and check very carefully 
that there is whitespace around the options. I would look for two 
things were I debugging this:


1. The option isn't being included in the tomcat java invocation

2. The option is corrupted (misspelt, incorrect spacing etc).

HTH

Alan Chaney


Tomás Tormo wrote:

Hi

   here it comes my question again... :D How to increase tomcat 
memory? I'm getting GC overhead limit exceeded.


I tried putting export JAVA_OPTS=-Xms256m -Xmx512m in 
setclasspath.sh file as well as putting CATALINA_OPTS=-server 
-Xms256m -Xmx512m in /etc/init.d/tomcat5.5 script file, but when I 
go to tomcat administration webpage and list the server status I 
always get Max memory: 113.81 MB.


Thank you very much



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47 
http://www.indenova.com
mailto:[EMAIL PROTECTED]  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to increase tomcat memory

2008-05-19 Thread Tomás Tormo
Sorry, the file i edited was the one in /etc/init.d/tomcatX (where X 
is the version of Tomcat)


too much working.. :D

Greetings!

Tomás Tormo escribió:
Thank you very much for you answer. Because of I was in a hurry, I 
examined the invocation of tomcat and I found that Tomcat was using 
128mb of memory, so, obviously , the lines I added weren't working at 
all... Then, I realized that the -Xmx128m argument was after a line 
-Djava.awt.headless=true, so I simply located that line (that can be 
found in catalina.sh) and changed the argument with -Xmx512m, and now 
my applicattion is working perfectly :)


Anyway... does anybody know the correct way to do this? (or maybe, 
this is the good one... :p )


Thank you again!

Alan Chaney escribió:

You seem to be using linux. If you go:

ps alx | grep java

after you have started tomcat you should be able to find the 
invocation for tomcat. Please check to see whether or not the options 
you have specified below appear in that list and check very carefully 
that there is whitespace around the options. I would look for two 
things were I debugging this:


1. The option isn't being included in the tomcat java invocation

2. The option is corrupted (misspelt, incorrect spacing etc).

HTH

Alan Chaney


Tomás Tormo wrote:

Hi

   here it comes my question again... :D How to increase tomcat 
memory? I'm getting GC overhead limit exceeded.


I tried putting export JAVA_OPTS=-Xms256m -Xmx512m in 
setclasspath.sh file as well as putting CATALINA_OPTS=-server 
-Xms256m -Xmx512m in /etc/init.d/tomcat5.5 script file, but when I 
go to tomcat administration webpage and list the server status I 
always get Max memory: 113.81 MB.


Thank you very much



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47 
http://www.indenova.com
mailto:[EMAIL PROTECTED]  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to increase tomcat memory

2008-05-19 Thread David Smith
/etc/init.d/tomcatX is not a file provided by any packages from 
tomcat.apache.org.  I would suspect it's probably the best place for 
your adjustments when launching tomcat as a service -- especially since 
it already contained -Xmx128m.  Check documentation provided by the 
packager to get an authoritative answer though.


--David


Tomás Tormo wrote:

Sorry, the file i edited was the one in /etc/init.d/tomcatX (where 
X is the version of Tomcat)


too much working.. :D

Greetings!

Tomás Tormo escribió:

Thank you very much for you answer. Because of I was in a hurry, I 
examined the invocation of tomcat and I found that Tomcat was using 
128mb of memory, so, obviously , the lines I added weren't working at 
all... Then, I realized that the -Xmx128m argument was after a line 
-Djava.awt.headless=true, so I simply located that line (that can 
be found in catalina.sh) and changed the argument with -Xmx512m, and 
now my applicattion is working perfectly :)


Anyway... does anybody know the correct way to do this? (or maybe, 
this is the good one... :p )


Thank you again!

Alan Chaney escribió:


You seem to be using linux. If you go:

ps alx | grep java

after you have started tomcat you should be able to find the 
invocation for tomcat. Please check to see whether or not the 
options you have specified below appear in that list and check very 
carefully that there is whitespace around the options. I would look 
for two things were I debugging this:


1. The option isn't being included in the tomcat java invocation

2. The option is corrupted (misspelt, incorrect spacing etc).

HTH

Alan Chaney


Tomás Tormo wrote:


Hi

   here it comes my question again... :D How to increase tomcat 
memory? I'm getting GC overhead limit exceeded.


I tried putting export JAVA_OPTS=-Xms256m -Xmx512m in 
setclasspath.sh file as well as putting CATALINA_OPTS=-server 
-Xms256m -Xmx512m in /etc/init.d/tomcat5.5 script file, but when I 
go to tomcat administration webpage and list the server status I 
always get Max memory: 113.81 MB.


Thank you very much



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]











-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* RE: How to increase memory form Tomcat 5.5

2008-05-13 Thread Tomás Tormo
I tried what you told me (actually, I put the line 
*export JAVA_OPTS=-Xms256m -Xmx512m* in the beginning of the setclasspath.sh file), but it didn't make anychange... (it is still saying 113mb avaliable in the Server Status in the Administration webpage...)


Any solution?

Thank you very much.



--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47 
http://www.indenova.com
mailto:[EMAIL PROTECTED]  




James Law escribió:

I believe in Linux the command is

Export JAVA_OPTS= etc

I put it in the setclasspath.sh file though I don't think its that important?


-Original Message-
From: Tomás Tormo [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2008 09:25

To: Tomcat Users List
Subject: How to increase memory form Tomcat 5.5

Hi

I'm getting the OutOfMemory exception sometimes with some 
applications in tomcat 5.5 on Ubuntu. I've been searching on the 
internet how to give more memory to Tomcat, but the only way i found is 
to add the line set JAVA_OPTS=-server -Xms256m -Xmx512m (cause in this 
case i need that amount of memory) in the beginning of catalina.sh, but 
it doesn't work: when i check the Server Status in the Web 
Administration page of Tomcat, i always get the same value: 113 mb. 
Could you please help me to resolve this issue?


Thank you very much.

  





Re: [SPAM] - Re: Tomcat was shutdown by self - Bayesian Filter detected spam

2008-05-07 Thread Roland Brassous (SILOGIC)

Hi

without log files, it's difficult to determine the shutdown cause.
But search in process defined in the cron(crontab) syntax: crontab -l .

Roland



Christopher Schultz a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ronny,

Ronny Sisworo wrote:
| No body to do that, but in log file of Tomcat, I can see process
| shutdown and no body login OS admin.

So, what is in the log files? Does Tomcat emit standard shutdown log
messages, or does the JVM crash?

| Setting parameter Tomcat: not start and shutdown automatically.

I do not understand.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkggrPwACgkQ9CaO5/Lv0PBaGACeJv3vjxLQNQH5lkzC0jtqq/SK
JQIAniUhRtQMJHbi7gMea26gRwAB4ij5
=R0xS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to set a maximun log size?

2008-03-18 Thread Tomás Tormo

Mark Thomas escribió:

Tomás Tormo wrote:

Hello

 I'm a newbie Tomcat user and my catalina.out log file is getting too 
big. How could I set a maximun size in order to force Tomcat to build 
a new one when the maximun size is reached? I've been searching on 
the internet but nothing matches what i want to do.


http://wiki.apache.org/tomcat/FAQ/Logging#Q4

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thank you very much! I don't know how I didn't see this before hehehe. 
In spite of this solution, I think I'll use the logrotate daemon in 
order to control the size of the logs. What do you think about this one?


Thank you again.

--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47 
http://www.indenova.com
mailto:[EMAIL PROTECTED]  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-02-18 Thread doepain

I have the same exact problem with my installation of Tomcat and the ISAPI
redirector. I have the Web Service Extension in IIS, mapped to the location
of the isapi redirector dll, and set it to allowed? 

If anyone can follow-up with the post it would be greatly appreciated.






Leo Donahue - PLANDEVX wrote:
 
 Did you create a Web Service Extension in IIS, mapped to the location of
 the isapi redirector dll, and set it to allowed? 
 
 
 Leo D
 
 -Original Message-
 From: sbell [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 19, 2006 11:47 AM
 To: users@tomcat.apache.org
 Subject: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP
 TO: and MIME TO: fields in the email addresses
 
 Hello,
 
 I am having troubles setting up the Tomcat Redirector (binary version
 1.2.15) on Windows 2000 server. 
 
 Java 1.5_07 is installed, and I am using the base binary installation of
 Tomcat 5.5.17.
 After installing the redirector dll, I configured an isapi filter on my
 web site (not the default web though. That was setup automatically from
 the install.) 
 
 Restarted Tomcat, IIS, checked on the ISAPI filter and had the green
 upward arrow.
 
 Went to the /jsp-examples/index.html page, and got an error 404.
 
 Curiously on the page it claimed to be powered by Jetty. 
 Jetty is not installed on the server at all, unless it comes as part of
 JSpell or the redirector dll.
 
 The site is password protected, using NTLM After the isapi discovery,
 there is hexidecimal / ascii dump of the http headers.
 
 Any advice would be greatly appreciated.
 
 Thank you, Steve.
 
 The isapi dll log file:
 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (762):
 Filter started [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
 jk_isapi_plugin.c (828): Virtual Host redirection of
 /jsp-examples/index.html [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
 jk_uri_worker_map.c (449): Attempting to map URI
 '/jsp-examples/index.html' from 4 maps [Wed Jul 19 14:10:03 2006]
 [2260:2232] [debug] jk_uri_worker_map.c (461): Attempting to map context
 URI '/servlets-examples/*'
 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c
 (461): Attempting to map context URI '/jsp-examples/*'
 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c
 (475): Found a wildchar match wlb - /jsp-examples/* [Wed Jul 19
 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (845): check if
 [/jsp-examples/index.html] is points to the web-inf directory [Wed Jul
 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (863):
 [/jsp-examples/index.html] is a servlet url - should redirect to wlb
 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_worker.c (301):
 Maintaining worker wlb [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
 jk_worker.c (111): found a worker wlb [Wed Jul 19 14:10:03 2006]
 [2260:2232] [debug] jk_isapi_plugin.c (1018): got a worker for name wlb
 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (592):
 service sticky_session=1 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
 jk_ajp_common.c (2131): acquired connection cache slot=0 [Wed Jul 19
 14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (612): service
 worker=ajp13w jvm_route=ajp13w [Wed Jul 19 14:10:03 2006] [2260:2232]
 [debug] jk_ajp_common.c (566): ajp marshaling done [Wed Jul 19 14:10:03
 2006] [2260:2232] [debug] jk_ajp_common.c (1670): processing with 3
 retries [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_connect.c
 (328): socket TCP_NODELAY set to On [Wed Jul 19 14:10:03 2006]
 [2260:2232] [debug] jk_connect.c (426): trying to connect socket 2708 to
 127.0.0.1:8009 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
 jk_connect.c (452): socket 2708 connected to 127.0.0.1:8009 [Wed Jul 19
 14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (864): Connected
 socket 2708 to (127.0.0.1:8009) [Wed Jul 19 14:10:03 2006] [2260:2232]
 [debug] jk_ajp_common.c (909): sending to ajp13 pos=4 len=972 max=8192
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/IIS-and-Tomcat-Redirector.-tp5401962p15547046.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frank,

frank wrote:
| I try to arrange all the services on one webserver, anyway if it need
| to be devided into several servers, I have to find a way to communicate
| between the servers, and I may use JMS or RMI to implement this. How
| about the diffierence between JMS and RMI?

RMI is used for passing objects (and issuing remote method calls), while
JMS is used more for passing messages. JMS can be used to bridge
between Java and other languages, since IIRC the messages can be
transformed to some other format (like MQ, etc.). With RMI, you're stuck
with Java.

RMI has always seemed to be a PITA to me. I don't think either of these
technologies are the way you really want to go.

I think the best thing for you to do is either store the information in
a shared database (or not) and then trade keys (or whole data sets)
through SOAP or REST-based services.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeWEEUACgkQ9CaO5/Lv0PBOWwCeM3SI4hwm4sN2x318YnT/6xD+
xjMAmwcyH2S98z592er4TsBsadMedcRg
=PFle
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread David Brown
Hello, are talking about between TC instances or one or more applications 
(dot).war deployed under one or more TC instances?

Christopher Schultz wrote ..
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Frank,
 
 frank wrote:
 | I try to arrange all the services on one webserver, anyway if it need
 | to be devided into several servers, I have to find a way to communicate
 | between the servers, and I may use JMS or RMI to implement this. How
 | about the diffierence between JMS and RMI?
 
 RMI is used for passing objects (and issuing remote method calls), while
 JMS is used more for passing messages. JMS can be used to bridge
 between Java and other languages, since IIRC the messages can be
 transformed to some other format (like MQ, etc.). With RMI, you're stuck
 with Java.
 
 RMI has always seemed to be a PITA to me. I don't think either of these
 technologies are the way you really want to go.
 
 I think the best thing for you to do is either store the information in
 a shared database (or not) and then trade keys (or whole data sets)
 through SOAP or REST-based services.
 
 - -chris
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkeWEEUACgkQ9CaO5/Lv0PBOWwCeM3SI4hwm4sN2x318YnT/6xD+
 xjMAmwcyH2S98z592er4TsBsadMedcRg
 =PFle
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Brown wrote:
| Hello, are talking about between TC instances or one or more
| applications (dot).war deployed under one or more TC instances?

The OP indicated that separate Tomcat instances were involved.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeWjE8ACgkQ9CaO5/Lv0PAPMwCgq/T8jROI9nHVXHZYasIR4x1+
wbsAn2ps6RZyQWM6W/RXGfHctAgF/Bmo
=4lux
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread frank
Thank you chris for your reply.
I try to arrange all the services on one webserver, anyway if it need to be 
devided into several servers, I have to find a way to communicate between the 
servers, and I may use JMS or RMI to implement this. How about the diffierence 
between JMS and RMI?

Thanks a lot




frank
2008-01-22



发件人: Christopher Schultz
发送时间: 2008-01-18 01:51:45
收件人: Tomcat Users List
抄送: 
主题: [!! SPAM] Re: how to communicate between different tomcat servers

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frank,

印华 wrote:
| In my design, I
| [have divided] the server side into several separate logic parts, and each
| part is deployed on a separate Tomcat server. e.g. the first tomcat
| server is to process login request, second tomcat server is to
| calculate user data, the third tomcat server is to store all the user
| information. It is a [distributed] architecture, and I hope in this way,
| this system can be extended by adding tomcat server when the
| application load on one Tomcat server is big enough.

I'm not sure you need all that complexity... most people just run the
whole application on a single server. When the load gets too high for
one server, you duplicate the web app onto a second server (and so on)
and then load balance between them. There's no reason to have physically
separated login, calculation, and data storage mechanisms.

| So currently, I meet a problem of how to
| communicate between the tomcat servers, I think http or webservice
| can do this work simply, but the efficiency is not good, and I don't
| know whether JMS is a good choice for this.

JSM isn't really any better or worse than SOAP, REST, or other
standard forms of communication.

| I wonder if there is any
| other way to communicate between the tomcat server?

Servers can communicate in lots of ways:
1. Records through a database
2. Binary or text data through a socket
3. Binary or text data through a named pipe (on a shared filesystem)
4. Objects through JNDI
5. Objects through RMI

| Any help and suggestion will be welcome.

Honestly, the best thing to do would be to put everything into a single
web app and just load balance between (identical) Tomcat servers. I
don't see any advantage of the separation you have created.

If you need sessions to be replicated in a cluster, you can simply turn
on distributable sessions and configure the Tomcat instances to
participate in the cluster. If you can tolerate the loss of information
resulting from a Tomcat instance going down while a user is logged-in,
then you don't even have to do that.

Less complexity results in easier maintenance. Hardware is cheap.
Manpower is expensive.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkePj6kACgkQ9CaO5/Lv0PCp8QCgirMzuuO3iuUgh0Ql3tZZ7qUZ
tEYAmgMFDz227mn6yf/wYQsITodDJIVU
=93Cr
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-21 Thread frank
Thank you chris for your reply.
I try to arrange all the services on one webserver, anyway if it need to be 
devided into several servers, I have to find a way to communicate between the 
servers, and I may use JMS or RMI to implement this. How about the diffierence 
between JMS and RMI?

Thanks a lot




frank
2008-01-22



发件人: Christopher Schultz
发送时间: 2008-01-18 01:51:45
收件人: Tomcat Users List
抄送: 
主题: [!! SPAM] Re: how to communicate between different tomcat servers

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frank,

印华 wrote:
| In my design, I
| [have divided] the server side into several separate logic parts, and each
| part is deployed on a separate Tomcat server. e.g. the first tomcat
| server is to process login request, second tomcat server is to
| calculate user data, the third tomcat server is to store all the user
| information. It is a [distributed] architecture, and I hope in this way,
| this system can be extended by adding tomcat server when the
| application load on one Tomcat server is big enough.

I'm not sure you need all that complexity... most people just run the
whole application on a single server. When the load gets too high for
one server, you duplicate the web app onto a second server (and so on)
and then load balance between them. There's no reason to have physically
separated login, calculation, and data storage mechanisms.

| So currently, I meet a problem of how to
| communicate between the tomcat servers, I think http or webservice
| can do this work simply, but the efficiency is not good, and I don't
| know whether JMS is a good choice for this.

JSM isn't really any better or worse than SOAP, REST, or other
standard forms of communication.

| I wonder if there is any
| other way to communicate between the tomcat server?

Servers can communicate in lots of ways:
1. Records through a database
2. Binary or text data through a socket
3. Binary or text data through a named pipe (on a shared filesystem)
4. Objects through JNDI
5. Objects through RMI

| Any help and suggestion will be welcome.

Honestly, the best thing to do would be to put everything into a single
web app and just load balance between (identical) Tomcat servers. I
don't see any advantage of the separation you have created.

If you need sessions to be replicated in a cluster, you can simply turn
on distributable sessions and configure the Tomcat instances to
participate in the cluster. If you can tolerate the loss of information
resulting from a Tomcat instance going down while a user is logged-in,
then you don't even have to do that.

Less complexity results in easier maintenance. Hardware is cheap.
Manpower is expensive.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkePj6kACgkQ9CaO5/Lv0PCp8QCgirMzuuO3iuUgh0Ql3tZZ7qUZ
tEYAmgMFDz227mn6yf/wYQsITodDJIVU
=93Cr
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: *SPAM* Re: How to initialize variables when tomcat load a webservice?

2007-11-27 Thread Tomás Tormo

Delian Krustev wrote:

On Tue, 27 Nov 2007 13:18:47 +0100 Tomás Tormo wrote:
  

I'm developing a webservice wich has to initialize some variables
when it is loaded by tomcat (just because otherwise it is too slow). Can
this be done? Has the client to initialize the class by means of the
constructor or is tomcat the one that will initialize it?



You need to define a listener and handle the context initialized event.

This should give you enough tips for searching :-)


P.S. this looks like a general java web apps programming question, not a 
tomcat one.



Cheers
Delian

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Thank you!!!

Yes, it's enough for searching. Well, it is a general question about 
java web programming, but i didn't know if i could apply this to tomcat 
environment, and i didn't find anything useful on the web... With this 
is enough to start :)


Thank you again!!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to change the CLASSPATH in tomcat 5.028 for a concrete webservice

2007-09-10 Thread Tomás Tormo

Hi David

  I'm using tomcat 5.028 in Ubuntu 6.10 . I've written a java 
applicattion wich uses a wrapper to communicate with an applicattion 
written in C, wich is the core of my applicattion. Both the wrapper 
and the core are third party applicattions, and because of that i don't 
have the source code, I just have the API.


The third party sent me an example application wich uses the core. And, 
as I could see in the script wich lauches the application, this folder 
should be added to the classpath in order to be able to be located by 
the wrapper applicattion. The documentation of the wrapper just says 
that this folder has to exist with an specific name.


My problem is that my applicattion works fine launched from shell (it 
founds the folder and uses the core perfectly) but it doesn't work as a 
webservice. It is not able to find the resource folder (let's call it 
cfg). As I can see in the catalina log, the application tries to load 
the resources (via ClassLoader I guess) and then launches an exception 
saying that is not able to find it. The client  gets a HTTPErrorCode0.


I think I've tried everything to make it find the folder, but I wasn't 
successful. do you have any idea?


thank you very  much

David Smith escribió:
I wold STRONLY recommend you DO NOT touch the CLASSPATH env variable.  
It's just a horrible idea.  What is it about your webservice that 
requires the alteration of CLASSPATH?  Can you describe that a bit 
more?  The standard classloader structure works very well in virtually 
all other cases.


--David

Tomás Tormo wrote:

Hi again

 I've tried to set the classpath in catalina.sh in order to have my 
own classpath set when tomcat starts up ( I show it in catalina.sh as 
well and it looks good). But my problem is that when I show it in my 
webservice (using 
System.out.println(System.getProperty(java.class.path))) it is 
changed again (it only points to a few jar files in /bin folder) and 
therefore my webservice can't work properly. Shouldn't it be pinting 
to my my /webapp/webservice/WEB-INF/lib folder as well? Does anybody 
know how to fix this problem?


Hakan: I've tried the solution you gave me (create a setenv.sh script 
called from startup.sh) but tomcat don't start up!


Thank you very much for your future answers :p

Tomás Tormo escribió:

Hi Hakan

First of all thank you for your fast answer ;).

Do you mean to create an script called setenv.sh wich will set the 
CLASSPATH (by export CLASSPATH.. etc)? This script should be called 
by a modified startup.sh?


By they way, I printed the CLASSPATH in my webservice (using 
System.out.println(System.getProperty(java.class.path)); ) and it 
says that my CLASSPATH is only pointing to a few jars in the bin 
folder, not even to my /lib folder in my webservice folder (I hope I 
explained myself well, I'm not using war files). Shouldn't it be 
pointing to my /webapp/webservice/WEB-INF/lib folder as well?


Thank you!!

Greetings!!



Hakan Koseoglu escribió:

Hi Tomás,
Tomás Tormo said the following on 09/10/2007 08:26 AM:
I would like to change the classpath for a concrete webservice in 
Tomcat 5.028 because the webservice has to use a concrete folder 
in order to work. This folder should be in the CLASSPATH in order 
to make the webservice work properly and because the webservice 
can't find it, it doesn't work.
With Tomcat 5, creating a setenv.sh solves the problem for me. It 
gets called if you start the Tomcat using startup.sh.


Any variable you define there will be used, including the 
classpath. We use it to point to the libraries which we don't put 
into common/lib nor war files.







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to change the CLASSPATH in tomcat 5.028 for a concrete webservice

2007-09-10 Thread David Smith
Can you post a) the working classpath from the command line and b) the 
stack trace you get when it's launched as a webservice?


One other thought that comes to mind is you might want to check all your 
environment variables as a user and as a webservice -- see if the 
installation created something that's not in the profile tomcat is 
running under.


I still think setting CLASSPATH should be an absolutely last resort.

--David

Tomás Tormo wrote:

Hi David

  I'm using tomcat 5.028 in Ubuntu 6.10 . I've written a java 
applicattion wich uses a wrapper to communicate with an applicattion 
written in C, wich is the core of my applicattion. Both the wrapper 
and the core are third party applicattions, and because of that i 
don't have the source code, I just have the API.


The third party sent me an example application wich uses the core. 
And, as I could see in the script wich lauches the application, this 
folder should be added to the classpath in order to be able to be 
located by the wrapper applicattion. The documentation of the wrapper 
just says that this folder has to exist with an specific name.


My problem is that my applicattion works fine launched from shell (it 
founds the folder and uses the core perfectly) but it doesn't work as 
a webservice. It is not able to find the resource folder (let's call 
it cfg). As I can see in the catalina log, the application tries to 
load the resources (via ClassLoader I guess) and then launches an 
exception saying that is not able to find it. The client  gets a 
HTTPErrorCode0.


I think I've tried everything to make it find the folder, but I wasn't 
successful. do you have any idea?


thank you very  much

David Smith escribió:
I wold STRONLY recommend you DO NOT touch the CLASSPATH env 
variable.  It's just a horrible idea.  What is it about your 
webservice that requires the alteration of CLASSPATH?  Can you 
describe that a bit more?  The standard classloader structure works 
very well in virtually all other cases.


--David

Tomás Tormo wrote:

Hi again

 I've tried to set the classpath in catalina.sh in order to have my 
own classpath set when tomcat starts up ( I show it in catalina.sh 
as well and it looks good). But my problem is that when I show it in 
my webservice (using 
System.out.println(System.getProperty(java.class.path))) it is 
changed again (it only points to a few jar files in /bin folder) and 
therefore my webservice can't work properly. Shouldn't it be pinting 
to my my /webapp/webservice/WEB-INF/lib folder as well? Does anybody 
know how to fix this problem?


Hakan: I've tried the solution you gave me (create a setenv.sh 
script called from startup.sh) but tomcat don't start up!


Thank you very much for your future answers :p

Tomás Tormo escribió:

Hi Hakan

First of all thank you for your fast answer ;).

Do you mean to create an script called setenv.sh wich will set the 
CLASSPATH (by export CLASSPATH.. etc)? This script should be called 
by a modified startup.sh?


By they way, I printed the CLASSPATH in my webservice (using 
System.out.println(System.getProperty(java.class.path)); ) and it 
says that my CLASSPATH is only pointing to a few jars in the bin 
folder, not even to my /lib folder in my webservice folder (I hope 
I explained myself well, I'm not using war files). Shouldn't it be 
pointing to my /webapp/webservice/WEB-INF/lib folder as well?


Thank you!!

Greetings!!



Hakan Koseoglu escribió:

Hi Tomás,
Tomás Tormo said the following on 09/10/2007 08:26 AM:
I would like to change the classpath for a concrete webservice in 
Tomcat 5.028 because the webservice has to use a concrete folder 
in order to work. This folder should be in the CLASSPATH in order 
to make the webservice work properly and because the webservice 
can't find it, it doesn't work.
With Tomcat 5, creating a setenv.sh solves the problem for me. It 
gets called if you start the Tomcat using startup.sh.


Any variable you define there will be used, including the 
classpath. We use it to point to the libraries which we don't put 
into common/lib nor war files.







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: *SPAM* Re: How to change the CLASSPATH in tomcat 5.028 for aconcrete webservice

2007-09-10 Thread Caldarale, Charles R
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Subject: Re: *SPAM* Re: How to change the CLASSPATH in tomcat 
 5.028 for aconcrete webservice
 
 I still think setting CLASSPATH should be an absolutely last resort.

Strongly agree, and even trying to do so is likely a complete waste of
time.

There shouldn't be any need for the native library to be in the same
location as the .jar (or .class) file that refers to it; the compiled
Java code should be placed in WEB-INF/lib or WEB-INF/classes, and the
location of the native code given on he LD_LIBRARY_PATH environment
variable.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: *SPAM* Re: How to change the CLASSPATH in tomcat 5.028 for a concrete webservice

2007-09-10 Thread Bill Barker

Tomás Tormo [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi David

   I'm using tomcat 5.028 in Ubuntu 6.10 . I've written a java applicattion 
 wich uses a wrapper to communicate with an applicattion written in C, wich 
 is the core of my applicattion. Both the wrapper and the core are third 
 party applicattions, and because of that i don't have the source code, I 
 just have the API.

 The third party sent me an example application wich uses the core. And, as 
 I could see in the script wich lauches the application, this folder should 
 be added to the classpath in order to be able to be located by the wrapper 
 applicattion. The documentation of the wrapper just says that this folder 
 has to exist with an specific name.

 My problem is that my applicattion works fine launched from shell (it 
 founds the folder and uses the core perfectly) but it doesn't work as a 
 webservice. It is not able to find the resource folder (let's call it 
 cfg). As I can see in the catalina log, the application tries to load 
 the resources (via ClassLoader I guess) and then launches an exception 
 saying that is not able to find it. The client  gets a HTTPErrorCode0.

 I think I've tried everything to make it find the folder, but I wasn't 
 successful. do you have any idea?


I agree with David and Chuck:  Setting the CLASSPATH is evil.  If you 
*really* need to do this, then put the third-party jar in shared/lib and 
edit conf/catalina.properties to add your external directory to the 
classpath.

 thank you very  much

 David Smith escribió:
 I wold STRONLY recommend you DO NOT touch the CLASSPATH env variable. 
 It's just a horrible idea.  What is it about your webservice that 
 requires the alteration of CLASSPATH?  Can you describe that a bit more? 
 The standard classloader structure works very well in virtually all other 
 cases.

 --David

 Tomás Tormo wrote:
 Hi again

  I've tried to set the classpath in catalina.sh in order to have my own 
 classpath set when tomcat starts up ( I show it in catalina.sh as well 
 and it looks good). But my problem is that when I show it in my 
 webservice (using 
 System.out.println(System.getProperty(java.class.path))) it is changed 
 again (it only points to a few jar files in /bin folder) and therefore 
 my webservice can't work properly. Shouldn't it be pinting to my my 
 /webapp/webservice/WEB-INF/lib folder as well? Does anybody know how to 
 fix this problem?

 Hakan: I've tried the solution you gave me (create a setenv.sh script 
 called from startup.sh) but tomcat don't start up!

 Thank you very much for your future answers :p

 Tomás Tormo escribió:
 Hi Hakan

 First of all thank you for your fast answer ;).

 Do you mean to create an script called setenv.sh wich will set the 
 CLASSPATH (by export CLASSPATH.. etc)? This script should be called by 
 a modified startup.sh?

 By they way, I printed the CLASSPATH in my webservice (using 
 System.out.println(System.getProperty(java.class.path)); ) and it 
 says that my CLASSPATH is only pointing to a few jars in the bin 
 folder, not even to my /lib folder in my webservice folder (I hope I 
 explained myself well, I'm not using war files). Shouldn't it be 
 pointing to my /webapp/webservice/WEB-INF/lib folder as well?

 Thank you!!

 Greetings!!



 Hakan Koseoglu escribió:
 Hi Tomás,
 Tomás Tormo said the following on 09/10/2007 08:26 AM:
 I would like to change the classpath for a concrete webservice in 
 Tomcat 5.028 because the webservice has to use a concrete folder in 
 order to work. This folder should be in the CLASSPATH in order to 
 make the webservice work properly and because the webservice can't 
 find it, it doesn't work.
 With Tomcat 5, creating a setenv.sh solves the problem for me. It gets 
 called if you start the Tomcat using startup.sh.

 Any variable you define there will be used, including the classpath. 
 We use it to point to the libraries which we don't put into common/lib 
 nor war files.




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SPAM Same thread for calls to Native methods

2007-03-21 Thread Peter . Henningsen
Hi Khurram,

As a Pure Java workaround, I would use a Singleton to collect work 
orders from various servlet-threads. That singleton would create one 
worker thread and feed it sequentially with work for the native code. 

Regards,

Peter Henningsen
Senior Consultant


Is it possible to configure Tomcat so that it spawns just one thread for
calling all the methods of native code (the native methods are called from
servlets)?
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [SPAM]Re: Tomcat 4.1 Issue - Strange

2006-11-29 Thread Bruno Vilardo
Hey Martin, 

Thanks for the usefull information :-) 
I am going to try to disable the HotSpot option. 

About the 1.42 version, I need to check with the Application Vendor if java
1.5 is compatible with out Application version. 

Thanks again for the info. :-)

Best Regards,

Bruno

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 29 de novembro de 2006 21:15
To: Tomcat Users List
Subject: [SPAM]Re: Tomcat 4.1 Issue - Strange

This bug was fixed in all VMs under JVM  - J2SE 5
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4946706
You can also get around it by looking at jvm.cfg by disabling Hotspot VM
(basically placing a # in the hotspot VM as in 
#-hotspot ALIASED_TO -client)

Any reason why you're stuck on 1.42?

M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient,
you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination,
distribution or copying of it or its 
contents
- Original Message - 
From: Bruno Vilardo [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org; 'Martin Gainty'
[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 5:56 PM
Subject: Tomcat 4.1 Issue - Strange


Hey Martin,

Please see below the error message. It a part of the errors I guess.

Heap at VM Abort:

Heap

 def new generation   total 31488K, used 30321K [0x59fc, 0x5c1e,
0x6118)

  eden space 28032K, 100% used [0x59fc, 0x5bb2, 0x5bb2)

  from space 3456K,  66% used [0x5bb2, 0x5bd5c400, 0x5be8)

  to   space 3456K,   0% used [0x5be8, 0x5be823a8, 0x5c1e)

 tenured generation   total 278608K, used 214153K [0x6118, 0x72194000,
0x99fc)

   the space 278608K,  76% used [0x6118, 0x6e2a2408, 0x6e2a2600,
0x72194000)

 compacting perm gen  total 56832K, used 56608K [0x99fc, 0x9d74,
0x9dfc)

   the space 56832K,  99% used [0x99fc, 0x9d7080a0, 0x9d708200,
0x9d74)

 

Local Time = Sun Nov 26 02:58:27 2006

Elapsed Time = 42834

#

# HotSpot Virtual Machine Error : 11

# Error ID : 4F530E43505002EF

# Please report this error at

# http://java.sun.com/cgi-bin/bugreport.cgi

#

# Java VM: Java HotSpot(TM) Server VM (1.4.2_08-b03 mixed mode)

#

# An error report file has been saved as hs_err_pid22350.log.

# Please refer to the fil
 

Thanks a lot,
Regards,

Bruno

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 29 de novembro de 2006 20:48
To: Tomcat Users List
Subject: [SPAM]Re: Tomcat 4.1 Issue - Strange

Bruno-

This posting has so many Re that I could'nt see the original error you are
getting..please re-post the original error

M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient,
you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination,
distribution or copying of it or its 
contents
- Original Message - 
From: Bruno Vilardo [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org; 'Martin Gainty'
[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 5:42 PM
Subject: RE: Tomcat 4.1 Issue - Strange


Hello Martin,

Thanks for the reply.
I am not in the server now which is having the problem. But I have a linux
box here in which my jvm.cfg file has the be-client KNOWN

-server KNOWN
-hotspot ALIASED_TO -client
-classic WARN
-native ERROR
-green ERRORlow contents:

What would be the right values for these parms?

TIA,

Bruno



-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 28 de novembro de 2006 23:13
To: Tomcat Users List
Subject: Re: Tomcat 4.1 Issue - Strange

run those tests so we can verify its not HW 
also :
what version JVM? 
java -version
what is the default JVM..generally this is the 1st non commented (#) entry
in $JAVA_HOME/jre/lib/i386/jvm.cfg which should say something like

-client KNOWN
-server ?
-hotspot ?
-classic?
-native ?
-green ?
-ojvm ?

M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient,
you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination,
distribution or copying of it or its 
contents
- Original Message - 
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 28, 2006 7:48 PM
Subject: Re: Tomcat 4.1 Issue - Strange


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Bruno,
 
 Bruno Vilardo wrote:
 Hello Chris,
 Yes I can give you details about the hardware configuration.
 
 It is a Linux 

Re: ***SPAM 6.3*** Enabling CGI's in Tomcat

2006-10-20 Thread Rob Truxler

Hi Kevin,

It sounds like Chuck already pointed to the most valuable resources.  
Keep in mind that cgi is supported by tomcat but may not necessarily be 
the best option for future development.  If you're using legacy code, 
that's a different story and so sometimes its the only option.  I've 
found that JSP can do pretty much whatever you would want to do with 
CGI, but a lot easier (especially the way it interfaces with java 
classes that you may already be using for a particular servlet).


Anyhow... since the WEB-INF subdirectory of each servlet hides its 
contents, it is the preferred place to put cgi files.  In the past, 
imprudent cgi programmers would place their scripts in a folder that was 
readable by the public, and thus expose the bowels of their scripts (and 
sometimes therefore, the bowels of their system configuration).  This is 
why tomcat wants you to place your scripts in the WEB-INF folders.  
There are multiple WEB-INF folders, so if you're using a theoretical 
servlet helloworld, you would place your cgi script in 
/helloworld/WEB-INF/cgi/ and the URL which tomcat maps to that 
location is just /helloworld/cgi-bin/yourscript.cgi .  If you're one 
of those folks who like to use shtml files with execute cgi's, then 
you'll also have to enable SSI (in addition to CGI) in your 
tomcat-5.5/conf/web.xml file.  The changes to web.xml are minimal, 
apache already wrote the code, all you have to do is search for CGI or 
SSI and uncomment xml code blocks.


--Rob

Kevin Mullin wrote:


I'm using the book Tomcat: the definitive guide from O'reilly, but 
it was written for Tomcat 4.x, and I'm using 5.5.17.  In doing things 
to enable servlet processing it says (on pg. 65, step 4) to:


Either place the CGI scripts under the WEB-INF/cgi directory 

well, I have lots of WEB-INF directories, I suspect it wants me to do 
it in the ROOT/WEB-INF.  However, I don't have a cgi directory 
anywhere.  Can somebody tell  me what I need to do (in addition to the 
changes in web.xml) to enable CGI processing in Tomcat?

*


Kevin Mullin
Sr. Analyst
IBM Corporation**
(206) 345-7068
[EMAIL PROTECTED]   http://www.ibm.com/ibm/values/






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ***SPAM 6.3*** Enabling CGI's in Tomcat

2006-10-20 Thread Caldarale, Charles R
 From: Rob Truxler [mailto:[EMAIL PROTECTED] 
 Subject: Re: ***SPAM 6.3*** Enabling CGI's in Tomcat
 
 There are multiple WEB-INF folders, so if you're using a
 theoretical servlet helloworld, you would place your cgi
 script in /helloworld/WEB-INF/cgi/ and the URL which tomcat
 maps to that location is just /helloworld/cgi-bin/yourscript.cgi .

Just one minor comment, since Kevin is rather new at this: servlet in
the above sentence should be web app, since a web app can include many
servlets.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-08-28 Thread Leo Donahue - PLANDEVX
Try this support article.  May not be what you're looking for, but it
does setup Tomcat and IIS using a mod_jk you download.


Leo D

-Original Message-
From: Timothy Collett [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 11:19 AM
To: Tomcat Users List
Subject: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email
has different SMTP TO: and MIME TO: fields in the email addresses

On Aug 28, 2006, at 10:30 AM, Reynir Hubner wrote:
 try the following instructions...

 http://reynir.net/java/greinar/nr/52/ath

 regards,
 - -reynir

I tried that, but I'm not able to get the green arrow in the ISAPI
Filters tab on IIS6.  I've tried with a variety of different
combinations of jk versions, isapi_redirect.dll locations, and IIS6
settings, but none have gotten me anywhere...

Do you know of any other configuration issues that can mess with it?

Thanks.

Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-08-28 Thread Leo Donahue - PLANDEVX
http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleS
howd=29051 


Leo Donahue
GIS Programmer/Analyst
Maricopa County Planning  Development
602-506-2474
602-372-3950 - fax

-Original Message-
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 3:35 PM
To: Tomcat Users List
Subject: RE: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? -
Email has different SMTP TO: and MIME TO: fields in the email addresses

Try this support article.  May not be what you're looking for, but it
does setup Tomcat and IIS using a mod_jk you download.


Leo D

-Original Message-
From: Timothy Collett [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 11:19 AM
To: Tomcat Users List
Subject: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email
has different SMTP TO: and MIME TO: fields in the email addresses

On Aug 28, 2006, at 10:30 AM, Reynir Hubner wrote:
 try the following instructions...

 http://reynir.net/java/greinar/nr/52/ath

 regards,
 - -reynir

I tried that, but I'm not able to get the green arrow in the ISAPI
Filters tab on IIS6.  I've tried with a variety of different
combinations of jk versions, isapi_redirect.dll locations, and IIS6
settings, but none have gotten me anywhere...

Do you know of any other configuration issues that can mess with it?

Thanks.

Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[SPAM ?]Re: [SPAM ?][SPAM ?]Re: [SPAM ?]Error in dependencyCheck when using Connection pooling

2006-08-15 Thread Tom Bednarz
Well I found this message on Google too. Fact is, that nobody really 
knows what the problem is. And it seems to appear with many different 
containers, not only Tomcat. Fact is, that I use this same JDBC driver 
(it is a Sybase / iAnywhere driver) without any problems on an other 
machine with exactly the same Tomcat Version. The only difference is 
that there I use Eclipse 3.1 while the machine causing the problems has 
3.2. It looks like there are some problems with the new WTP project in 
Eclipse.


Lots of new versions of J2EE plugins base now on WTP. I currently 
experience only problems with this. Deployment does not work correctly, 
some of the XML Files (web.xml etc) are corrupted with funny tags and 
file terminators etc.


On the eclipse.webtools newgroup nobody seems to answer the questions. 
So better stay with the 'old' environment which (at least for me) works 
fine.


Tom

Mark Eggers wrote:

From looking for this error message with Google, it
appears that there is a problem with the manifest
information in your jar file.

Use the following two search items in Google:

java.io.IOException invalid header field
error in dependencycheck

What JDBC driver (DB and version), Tomcat version, and
JDK version are you using?

HTH

/mde/
just my two cents . . . .


--- Tom Bednarz [EMAIL PROTECTED] wrote:

  

I get a very strange error when starting my web-app:

---
14.08.2006 18:38:25
org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error in dependencyCheck
java.io.IOException: invalid header field
at
java.util.jar.Attributes.read(Attributes.java:393)
at
java.util.jar.Manifest.read(Manifest.java:167)
at
java.util.jar.Manifest.init(Manifest.java:52)
at 



org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:152)
  
at 



org.apache.catalina.core.StandardContext.start(StandardContext.java:3998)
  

at



org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
  

at



org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
  

at



org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
  
at 



org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
  
at 



org.apache.catalina.core.StandardService.start(StandardService.java:450)
  
at 



org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
  

at



org.apache.catalina.startup.Catalina.start(Catalina.java:536)
  

at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at 



sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  
at 



sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  

at
java.lang.reflect.Method.invoke(Method.java:585)
at



org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
  

at



org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
  

14.08.2006 18:38:25
org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error getConfigured
14.08.2006 18:38:25
org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/mytrixpert] startup failed
due to previous errors
14.08.2006 18:38:25
org.apache.catalina.core.StandardContext stop
-

This happens since I copied my JDBC driver to
%CATALINA_HOME%/common/lib.

If the JDBC driver is deployed with my web-app in
WEB-INF\lib I get an 
error that the JDBC driver cannot be loaded. It
seems that the driver 
needs to be in the common/lib directory of the
container to make 
connection pooling work.


Unfortunately I get now the above error. Any help
with this would be 
greatly apreciated, since I am stuck with this

problem.




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [SPAM ?]Error in dependencyCheck when using Connection pooling

2006-08-14 Thread Mark Eggers
From looking for this error message with Google, it
appears that there is a problem with the manifest
information in your jar file.

Use the following two search items in Google:

java.io.IOException invalid header field
error in dependencycheck

What JDBC driver (DB and version), Tomcat version, and
JDK version are you using?

HTH

/mde/
just my two cents . . . .


--- Tom Bednarz [EMAIL PROTECTED] wrote:

 I get a very strange error when starting my web-app:
 
 ---
 14.08.2006 18:38:25
 org.apache.catalina.core.StandardContext start
 SCHWERWIEGEND: Error in dependencyCheck
 java.io.IOException: invalid header field
 at
 java.util.jar.Attributes.read(Attributes.java:393)
 at
 java.util.jar.Manifest.read(Manifest.java:167)
 at
 java.util.jar.Manifest.init(Manifest.java:52)
 at 

org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:152)
 at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3998)
 at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at

org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at 

org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at 

org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
 at

org.apache.catalina.startup.Catalina.start(Catalina.java:536)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at
 java.lang.reflect.Method.invoke(Method.java:585)
 at

org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
 at

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 14.08.2006 18:38:25
 org.apache.catalina.core.StandardContext start
 SCHWERWIEGEND: Error getConfigured
 14.08.2006 18:38:25
 org.apache.catalina.core.StandardContext start
 SCHWERWIEGEND: Context [/mytrixpert] startup failed
 due to previous errors
 14.08.2006 18:38:25
 org.apache.catalina.core.StandardContext stop
 -
 
 This happens since I copied my JDBC driver to
 %CATALINA_HOME%/common/lib.
 
 If the JDBC driver is deployed with my web-app in
 WEB-INF\lib I get an 
 error that the JDBC driver cannot be loaded. It
 seems that the driver 
 needs to be in the common/lib directory of the
 container to make 
 connection pooling work.
 
 Unfortunately I get now the above error. Any help
 with this would be 
 greatly apreciated, since I am stuck with this
 problem.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-07-28 Thread Raju Balugu

Hi My comments in line with 

On 7/28/06, Leo Donahue - PLANDEVX [EMAIL PROTECTED] wrote:



From the Tomcat 5.0 setup page:
http://tomcat.apache.org/tomcat-5.0-doc/setup.html


Java location: The installer will use the registry or the JAVA_HOME
environment variable to determine the base path of the JDK or a JRE. If
only a JRE (or an incorrect path) is specified, Tomcat will run but will
be unable to compile JSP pages at runtime. Either all webapps will need
to be precompiled (this can be easily done using the Tomcat deployer),
or the lib\tools.jar file from a JDK installation must be copied to the
common\lib path of the Tomcat installation.

Using the JAVA_HOME on my windoze box didn't work and I ultimately
copied the tools.jar file, which worked.  Now I just have to remember I
did that in the future.

Leo D

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 11:19 AM
To: users@tomcat.apache.org
Subject: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; -
Email has different SMTP TO: and MIME TO: fields in the email addresses

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle pain.
Ok enough whinning.

so when i try to display a jsp is get the error Unable to find a javac
compiler; com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program
Files\Java\jdk1.5.0_04



try to remove the spaces in program files (lets say
progra~1\java\jdk1.5.0_04)
and also copy the tools.jar file which is stated in above

Now its going to compile the jsp files default jdk1.5(lets say u have the
jdk1.4 ,u can make use of that also by setting the web.xml file compiler
entry

Regards
Raju

so what have i missed


Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-07-27 Thread Leo Donahue - PLANDEVX
 
From the Tomcat 5.0 setup page:
http://tomcat.apache.org/tomcat-5.0-doc/setup.html


Java location: The installer will use the registry or the JAVA_HOME
environment variable to determine the base path of the JDK or a JRE. If
only a JRE (or an incorrect path) is specified, Tomcat will run but will
be unable to compile JSP pages at runtime. Either all webapps will need
to be precompiled (this can be easily done using the Tomcat deployer),
or the lib\tools.jar file from a JDK installation must be copied to the
common\lib path of the Tomcat installation.

Using the JAVA_HOME on my windoze box didn't work and I ultimately
copied the tools.jar file, which worked.  Now I just have to remember I
did that in the future.

Leo D

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 11:19 AM
To: users@tomcat.apache.org
Subject: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; -
Email has different SMTP TO: and MIME TO: fields in the email addresses

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle pain.
Ok enough whinning.

so when i try to display a jsp is get the error Unable to find a javac
compiler; com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program
Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-07-19 Thread Leo Donahue - PLANDEVX
Did you create a Web Service Extension in IIS, mapped to the location of
the isapi redirector dll, and set it to allowed? 


Leo D

-Original Message-
From: sbell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 11:47 AM
To: users@tomcat.apache.org
Subject: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP
TO: and MIME TO: fields in the email addresses

Hello,

I am having troubles setting up the Tomcat Redirector (binary version
1.2.15) on Windows 2000 server. 

Java 1.5_07 is installed, and I am using the base binary installation of
Tomcat 5.5.17.
After installing the redirector dll, I configured an isapi filter on my
web site (not the default web though. That was setup automatically from
the install.) 

Restarted Tomcat, IIS, checked on the ISAPI filter and had the green
upward arrow.

Went to the /jsp-examples/index.html page, and got an error 404.

Curiously on the page it claimed to be powered by Jetty. 
Jetty is not installed on the server at all, unless it comes as part of
JSpell or the redirector dll.

The site is password protected, using NTLM After the isapi discovery,
there is hexidecimal / ascii dump of the http headers.

Any advice would be greatly appreciated.

Thank you, Steve.

The isapi dll log file:
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (762):
Filter started [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_isapi_plugin.c (828): Virtual Host redirection of
/jsp-examples/index.html [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_uri_worker_map.c (449): Attempting to map URI
'/jsp-examples/index.html' from 4 maps [Wed Jul 19 14:10:03 2006]
[2260:2232] [debug] jk_uri_worker_map.c (461): Attempting to map context
URI '/servlets-examples/*'
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c
(461): Attempting to map context URI '/jsp-examples/*'
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_uri_worker_map.c
(475): Found a wildchar match wlb - /jsp-examples/* [Wed Jul 19
14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (845): check if
[/jsp-examples/index.html] is points to the web-inf directory [Wed Jul
19 14:10:03 2006] [2260:2232] [debug] jk_isapi_plugin.c (863):
[/jsp-examples/index.html] is a servlet url - should redirect to wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_worker.c (301):
Maintaining worker wlb [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_worker.c (111): found a worker wlb [Wed Jul 19 14:10:03 2006]
[2260:2232] [debug] jk_isapi_plugin.c (1018): got a worker for name wlb
[Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (592):
service sticky_session=1 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_ajp_common.c (2131): acquired connection cache slot=0 [Wed Jul 19
14:10:03 2006] [2260:2232] [debug] jk_lb_worker.c (612): service
worker=ajp13w jvm_route=ajp13w [Wed Jul 19 14:10:03 2006] [2260:2232]
[debug] jk_ajp_common.c (566): ajp marshaling done [Wed Jul 19 14:10:03
2006] [2260:2232] [debug] jk_ajp_common.c (1670): processing with 3
retries [Wed Jul 19 14:10:03 2006] [2260:2232] [debug] jk_connect.c
(328): socket TCP_NODELAY set to On [Wed Jul 19 14:10:03 2006]
[2260:2232] [debug] jk_connect.c (426): trying to connect socket 2708 to
127.0.0.1:8009 [Wed Jul 19 14:10:03 2006] [2260:2232] [debug]
jk_connect.c (452): socket 2708 connected to 127.0.0.1:8009 [Wed Jul 19
14:10:03 2006] [2260:2232] [debug] jk_ajp_common.c (864): Connected
socket 2708 to (127.0.0.1:8009) [Wed Jul 19 14:10:03 2006] [2260:2232]
[debug] jk_ajp_common.c (909): sending to ajp13 pos=4 len=972 max=8192


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM] RE: Best Practice for properties files

2006-06-27 Thread Paul Mendelson
Richard,

Thanks for the suggestion.  I appreciate the elegance of your ant
targets to create war files targeted for each runtime environment.

The reason that I am looking for a different approach is this approach
would require me to create a new war file if the managers of the runtime
environment want to reconfigure.

I'm trying to find ways that I can put more configuration information
outside of the war file, perhaps in the context.xml or in some file that
context.xml references.

Paul

-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 24, 2006 9:44 PM
To: 'Tomcat Users List'
Subject: [SPAM] RE: Best Practice for properties files

Paul, are you using the deployer application to deploy your app (e.g.
apache-tomcat-5.5.17-deployer)?

If so, then it is very easy to modify the build.xml to customize the
log4j.properties, app.properties and any other file, and then deploy it
properly. You could even have a different ant target for each different
instance of the webapp.war file.

Here's an example of the build.xml that we setup. In this case most of
the
example deals with setting the JDBC connection to the correct database.

HTH - Richard

  ...
  !--
===
--
  !-- Deploy for development (basically customize and copy to webapps
dir
--
  !--
===
--
  target name=devDeploy description=Development Deploy
  depends=clean,customizeContext

  ... !--- note we added the customizeContext target in the above
depends
--

  !-- The target below can have anything you wish in it --
  !--
===
--
  !-- Customize context for web application
--
  !--
===
--
  target name=customizeContext
  description=Customizes web application context if its stored in
META-INF/${webapp}.xml
  !-- Customizing ${webapp.path}/META-INF/${webapp}.xml --
  echo level=infoCustomizing
${webapp.path}/META-INF/${webapp}.xml/echo
  move tofile=${webapp}/META-INF/context.xml_bak
  file=${webapp}/META-INF/context.xml
 overwrite=false failonerror=false/
  delete file=${webapp}/META-INF/context.xml
failonerror=false/
  echo level=infoChanging hibernate.connection.driver_class to
${jdbc.connection.driver_class}/echo
  copy tofile=${webapp}/META-INF/context.xml
  file=${webapp}/META-INF/context.xml_bak
  overwrite=true failonerror=true verbose=true
filterset
filter token=webapp.name value=${webapp.name}/
filter token=docbase.dir value=${docbase.dir}/
filter token=workdir.dir value=${workdir.dir}/
filter token=database.url value=${database.url}/
filter token=app.username value=${app.username}/
filter token=app.password value=${app.password}/
/filterset
  /copy
  ...
  /target

-Original Message-
From: Paul Mendelson [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 9:46 AM
To: Tomcat Users List
Subject: Best Practice for properties files

I have a fairly normal application that I am deploying on a tomcat 5.5
server.

My application uses log4j for its internal logging and I have a
log4j.properties file that I keep in web/WEB-INF/classes.  I also have a
regular app.properties file that I keep in web/WEB-INF.

I deploy my application to my tomcat server by placing app.war in the
proper
directory.

My question is if I am running my application on 4 or 5 different tomcat
servers and toe log4j.properties and app.properties file needs to be set
up
different on each server what is the best way to deploy and maintain
those
files?  I very much want to create a single app.war file and let each
system
administrator customer there properties without needing to synchronize
with
me.

Any advice is appreciated.

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM] RE: Best Practice for properties files

2006-06-27 Thread Richard Mixon
Paul,

I can understand the reluctance to create and deploy the war just to change
a configuration setting - it seems so heavyweight.

You could try a variation and have an ant target (or a shell script for that
matter) update the properties under WEB-INF from a know location that is
custom for each webapp context. Just remember  you will probably need to do
a reload on the context to make the configuration changes effective ... Or
you will need to write code that checks for resource changes periodically
and reloads them.

HTH - Richard


-Original Message-
From: Paul Mendelson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 9:47 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: [SPAM] RE: Best Practice for properties files

Richard,

Thanks for the suggestion.  I appreciate the elegance of your ant targets to
create war files targeted for each runtime environment.

The reason that I am looking for a different approach is this approach would
require me to create a new war file if the managers of the runtime
environment want to reconfigure.

I'm trying to find ways that I can put more configuration information
outside of the war file, perhaps in the context.xml or in some file that
context.xml references.

Paul

-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 24, 2006 9:44 PM
To: 'Tomcat Users List'
Subject: [SPAM] RE: Best Practice for properties files

Paul, are you using the deployer application to deploy your app (e.g.
apache-tomcat-5.5.17-deployer)?

If so, then it is very easy to modify the build.xml to customize the
log4j.properties, app.properties and any other file, and then deploy it
properly. You could even have a different ant target for each different
instance of the webapp.war file.

Here's an example of the build.xml that we setup. In this case most of the
example deals with setting the JDBC connection to the correct database.

HTH - Richard

  ...
  !--
===
--
  !-- Deploy for development (basically customize and copy to webapps dir
--
  !--
===
--
  target name=devDeploy description=Development Deploy
  depends=clean,customizeContext

  ... !--- note we added the customizeContext target in the above depends
--

  !-- The target below can have anything you wish in it --
  !--
===
--
  !-- Customize context for web application
--
  !--
===
--
  target name=customizeContext
  description=Customizes web application context if its stored in
META-INF/${webapp}.xml
  !-- Customizing ${webapp.path}/META-INF/${webapp}.xml --
  echo level=infoCustomizing
${webapp.path}/META-INF/${webapp}.xml/echo
  move tofile=${webapp}/META-INF/context.xml_bak
  file=${webapp}/META-INF/context.xml
 overwrite=false failonerror=false/
  delete file=${webapp}/META-INF/context.xml
failonerror=false/
  echo level=infoChanging hibernate.connection.driver_class to
${jdbc.connection.driver_class}/echo
  copy tofile=${webapp}/META-INF/context.xml
  file=${webapp}/META-INF/context.xml_bak
  overwrite=true failonerror=true verbose=true
filterset
filter token=webapp.name value=${webapp.name}/
filter token=docbase.dir value=${docbase.dir}/
filter token=workdir.dir value=${workdir.dir}/
filter token=database.url value=${database.url}/
filter token=app.username value=${app.username}/
filter token=app.password value=${app.password}/
/filterset
  /copy
  ...
  /target

-Original Message-
From: Paul Mendelson [mailto:[EMAIL PROTECTED]
Sent: Friday, June 23, 2006 9:46 AM
To: Tomcat Users List
Subject: Best Practice for properties files

I have a fairly normal application that I am deploying on a tomcat 5.5
server.

My application uses log4j for its internal logging and I have a
log4j.properties file that I keep in web/WEB-INF/classes.  I also have a
regular app.properties file that I keep in web/WEB-INF.

I deploy my application to my tomcat server by placing app.war in the proper
directory.

My question is if I am running my application on 4 or 5 different tomcat
servers and toe log4j.properties and app.properties file needs to be set up
different on each server what is the best way to deploy and maintain those
files?  I very much want to create a single app.war file and let each system
administrator customer there properties without needing to synchronize with
me.

Any advice is appreciated.

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL

RE: [SPAM:] - RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-08 Thread Leo Donahue - PLANDEVX
In your server.xml you will add an address element and specify it as:
127.0.0.1
 
!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port
specified
 during installation  --
Connector 
   address=127.0.0.1
   port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
 
 
Leo



From: Mark Claassen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 10:51 AM
To: 'Tomcat Users List'
Subject: [SPAM:] - RE: Restricting access to localhost for an HTTP
connector - Email has different SMTP TO: and MIME TO: fields in the
email addresses


Thanks.  I thought I heard that it was possible though the address, but
was not sure.  I read this in the docs, but I guess I didn't / don't
understand the short explanation of address.
 



From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 1:24 PM
To: Tomcat Users List
Subject: Re: Restricting access to localhost for an HTTP connector


yes, you can bind the connector the 127.0.0.1, meaning it will only
listen on that address
use the address attribute in the connector 
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


Mark Claassen wrote: 

Is there to configure an HTTP Connector to only allow
connections from
localhost?  We have a server that has an HTTPS port that handles
all public
access.  However, we would like to leave a non SSL port open for
a
monitoring program we have running on the same machine.  We
would like to
not allow anyone else to be able to access the non-SSL port.  

I know that the apache webserver has mechanism to do this, but I
was
wondering if a standalone tomcat could also do what we need.

Thanks,
Mark
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-- 


Filip Hanik
 


RE: [SPAM:] - RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-08 Thread Dan Toomey
How do I get this tomcat email to stop?  I have sent messages to unsubscribe
to no avail.

-Original Message-
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 2:13 PM
To: Tomcat Users List
Subject: RE: [SPAM:] - RE: Restricting access to localhost for an HTTP
connector - Email has different SMTP TO: and MIME TO: fields in the email
addresses

In your server.xml you will add an address element and specify it as:
127.0.0.1
 
!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port
specified
 during installation  --
Connector 
   address=127.0.0.1
   port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
 
 
Leo



From: Mark Claassen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 10:51 AM
To: 'Tomcat Users List'
Subject: [SPAM:] - RE: Restricting access to localhost for an HTTP
connector - Email has different SMTP TO: and MIME TO: fields in the
email addresses


Thanks.  I thought I heard that it was possible though the address, but
was not sure.  I read this in the docs, but I guess I didn't / don't
understand the short explanation of address.
 



From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 1:24 PM
To: Tomcat Users List
Subject: Re: Restricting access to localhost for an HTTP connector


yes, you can bind the connector the 127.0.0.1, meaning it will only
listen on that address
use the address attribute in the connector 
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


Mark Claassen wrote: 

Is there to configure an HTTP Connector to only allow
connections from
localhost?  We have a server that has an HTTPS port that handles
all public
access.  However, we would like to leave a non SSL port open for
a
monitoring program we have running on the same machine.  We
would like to
not allow anyone else to be able to access the non-SSL port.  

I know that the apache webserver has mechanism to do this, but I
was
wondering if a standalone tomcat could also do what we need.

Thanks,
Mark
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-- 


Filip Hanik
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [SPAM:] - RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-08 Thread Mark Thomas
Dan Toomey wrote:
 How do I get this tomcat email to stop?  I have sent messages to unsubscribe
 to no avail.

You e-mail [EMAIL PROTECTED]

I have removed you from the list.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM] - Problems with extracting beans from a JavaServer Page - Bayesian Filter detected spam

2006-03-02 Thread Day, Ron
If I have followed your code fragments correctly, it looks like your
bean is in request scope and it will go away between requests.

Ron Day
Senior Developer
e-Rewards, Inc.
8401 N. Central Expressway, Suite 900
Dallas, TX 75225
Voice: 214.782.2834
Fax: 214.782.2900


-Original Message-
From: Mark Whitby [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 02, 2006 1:47 PM
To: Tomcat Users List
Subject: [SPAM] - Problems with extracting beans from a JavaServer Page
- Bayesian Filter detected spam

Hey all,

This may seem like a really dense question so apologies if it is but I
have the following code on a jsp page:

 jsp:useBean id=gameBean type=FYPCode.GameBean scope=request /
 FORM ACTION=MatchController
  p  
   jsp:getProperty name=gameBean property=day /nbsp;
   jsp:getProperty name=gameBean property=dayNumber /nbsp;
   jsp:getProperty name=gameBean property=month /nbsp;
   jsp:getProperty name=gameBean property=year /br
   jsp:getProperty name=gameBean property=homeTeam /nbsp;vsnbsp;
   jsp:getProperty name=gameBean property=awayTeam /br
   jsp:getProperty name=gameBean property=venue /nbsp;
   jsp:getProperty name=gameBean property=kickOffTime /, kick
off.br
   bAllocated Tickets:nbsp;/bjsp:getProperty name=gameBean
property=allocatedTickets /
  /p
  p
   To choose to buy tickets for this match, click on the button below
which will take you to the ground page where you can choose which stand
to sit in.br
   INPUT TYPE=SUBMIT NAME=BuyMatch VALUE=Buy Tickets for this
matchbr
   INPUT TYPE=SUBMIT NAME=ViewMatch VALUE=View Stadium Plan of the
match venue
  /p
 /FORM

Now when I press one of the buttons it diverts to the right servlet but
I am having a problem with the JavaBean in the servlet.  You see I want
to extract the Bean from the page and use it in the code in my servlet.
Now the servlet that loads up that page is different (it's called
SearchServlet) to the one that deals with the button pressing
(MatchServlet).

SearchServlet passes it to the page as follows:

GameBean gameBean = (GameBean) matches.get(0);
request.setAttribute(gameBean, gameBean);
address = /match.jsp;
RequestDispatcher dispatcher = request.getRequestDispatcher(address);
dispatcher.forward(request, response);

Now in the MatchServlet servlet I have tried extracting the Bean using
the code:

GameBean gb = (GameBean) request.getAttribute(gameBean);

But it is coming back as a null pointer error.  I've also tried getting
it using this code:

HttpSession session = request.getSession(true);
GameBean gb = (GameBean) session.getAttribute(gameBean);

But again I'm getting a null pointer error.

Can anyone help me and tell me how I can extract the gameBean from the
page?

Many thanks

Mark Whitby
[EMAIL PROTECTED]

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



RE: [SPAM] - Avoid duplication of database settings - Number of numbers in MIME From exceeds maximum threshold

2006-01-09 Thread Fredrik Rubensson
Hi,

 I have an application consisting of a web application and some stand
alone java 
 clients. Both the web application and the java clients use a database.
The 
 problem is that the database configuration is duplicated.

 When I change the database settings, I have to reconfigure both the
webapp 
 (META-INF/context.xml) and the java clients
(mydatabasesettings.properties).

 I'd like to avoid this duplication. One possible solution would be to
generate 
 the context.xml based on mydatabasesettings.properties with an Ant
script. Are 
 there any better solutions?

If you are doing it the ant way I recommend using filtering. There is a
task called filter (see
http://ant.apache.org/manual/CoreTasks/filter.html). You put the values
you want to use at several places in its own property file for example
dbname=mydb, in the places you want to insert it you go @dbname@ instead
of the actual name. When you run the filter task all values in the
filter property file is put in its correct places.

(I use this now to build for different environments. One property file
for development, one for test and one for production. But in you case
you onle need on file I guess.)

If you are using Maven there is some more support for filtering although
the ant task still needs to be called explicilty.

Regards,
Fredrik Rubensson


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