Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Endre Stølsvik
On Mon, 20 Sep 2004, Bjørn T Johansen wrote:

| I am taking over a project that's running on Weblogic 8.1 SP3 today.. They are only 
using
| the jsp-container and it is time to renew the support agreement with BEA.

Kjoer med Tomcat! Serioest - hvis du vet hva det er snakk om, og vet hva
du gjoer, saa er jo Tomcat -vesentlig- bedre enn noe som helst
kommersielt.

Sjekk denne:
  http://www.webperformanceinc.com/library/ServletReport/
  (Selskap som hindrer en i aa "publish performance benchmarks"
simpelthe1n ber om aa -aldri- faa en dollar av meg - det er regelrett
forkastelig! )

Mvh,
Endre


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



Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Endre Stølsvik
Ehh, oops.  ;)

I was about to post personally to this dude, which obviously is a
Norwegian, when I hit the send button (ctrl+x, y) slightly early!

Endre!


On Mon, 20 Sep 2004, Endre Stølsvik wrote:

| On Mon, 20 Sep 2004, Bjørn T Johansen wrote:
|
| | I am taking over a project that's running on Weblogic 8.1 SP3 today.. They are 
only using
| | the jsp-container and it is time to renew the support agreement with BEA.
|
| Kjoer med Tomcat! Serioest - hvis du vet hva det er snakk om, og vet hva
| du gjoer, saa er jo Tomcat -vesentlig- bedre enn noe som helst
| kommersielt.
|
| Sjekk denne:
|   http://www.webperformanceinc.com/library/ServletReport/
|   (Selskap som hindrer en i aa "publish performance benchmarks"
| simpelthe1n ber om aa -aldri- faa en dollar av meg - det er regelrett
| forkastelig! )
|
| Mvh,
| Endre


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



Re: Tomcat 5.0.28 form post encoding problem

2004-09-20 Thread Krzysztof Cieniuch

- Original Message - 
From: "Martin Schaefer" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 17, 2004 4:54 PM
Subject: Re: Tomcat 5.0.28 form post encoding problem


>
> Again (there was a similar problem today), it might help to run tomcat
> with -Dfile.encoding=ISO-8859-2
> Or better use UTF-8 if applicable...
>
>

That didn't help what now ?? Any hint how to debug this problem what check
first ???

KC


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



RE: why is tomcat-users.xml rewritten ?

2004-09-20 Thread Dale, Matt

1. I think that Yoav explained that in unix this function actually will change the 
file permissions as part of its test.

2. This may be a good idea but it also means that the test will occur more than once, 
perhaps frequently for a heavy user of the admin app, lending to an overhead, however 
small.

-Original Message-
From: Fred Stluka [mailto:[EMAIL PROTECTED]
Sent: 19 September 2004 23:20
To: Tomcat Users List
Subject: Re: why is tomcat-users.xml rewritten ?


I've just searched the archives and it seems that this question
comes up every few months at least.  The behavior of rewriting
tomcat-users.xml and changing its permissions to match the
Tomcat umask surprises enough people that it seems worth
changing if possible.  I put a lot of faith in "the principal of
least astonishment".

My understanding is that the only reason for the rewrite is to
confirm that the Tomcat admin app will have write access
to the tomcat-users.xml file if the admin app is ever used.

Two questions:

1.  Why not use java.io.File.canWrite()?  It confirms the ability
 to rewrite the file without actually doing so.  Works fine
 on both Linux and Windows 2000, so I assume it is a
 fully portable solution.

2.  Couldn't the rewrite be deferred until necessary?  Perhaps
 when the admin app accepts a valid login?  Or when a user
 tries to use the admin app to modify the tomcat-users.xml file?
 Why check so far in advance?  There is always the risk that
 the permissions could be modified manually after the check
 at startup, and before the admin app actually needs to write,
 so the admin app must be prepared for failure anyhow.  Why
 not just have it check when it needs to and report the error to
 the user then?

--Fred
--
 Fred Stluka -- mailto:[EMAIL PROTECTED] -- http://bristle.com/~fred/
 Bristle Software, Inc -- http://bristle.com -- "Glad to be of service!"
--

Steffen Heil wrote:

> Hi
>
> > Each time tomcat is restarted the file tomcat-users.xml is rewritten. It
> is horrible since my umask being 0022 the file which stores passwords become
> world readable. Obviously this file has to be read my the server but I do
> not see any valuable reason to write it back opening a serious security
> hole.
>
> PLEASE, search the archive of this list before mailing.
> This question, including some ways around it have been on the list recently.
>
> See also posting of Yoav below.
>
> Regards,
>   Steffen
>
> -Ursprüngliche Nachricht-
> Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 15. September 2004 20:48
> An: Tomcat Users List
> Betreff: RE: Why does startup of Tomcat 5.0.28 server make tomcat-users.xml
> world-readable?...
>
> Hi,
>
> >However, I still wonder:
> >1.  Why does Tomcat re-write the tomcat-users.xml file at
> > startup?
>
> This I already answered: Tomcat rewrites the tomcat-users.xml at startup to
> ensure it has permissions on it, because the admin webapp must have these
> permissions to allow editing of user information.
>
> >2.  Why does it use the umask value instead of just leaving
> > the protections as they were before it updated the file?
>
> This is the java.io.File default behavior: we don't modify anything and
> don't want to have platform-specific or native code in Tomcat.  If you look
> at the java.io.File JavaDoc, you'll see there's no portable way to control
> this.
>
> >3.  Isn't this a problem for most Tomcat installations, since
> > without the umask I had applied to my tomcat user, the
> > default umask is 002, not 022, so the tomcat-users.xml
> > file would be changed to 664, not merely 644, at each
> > startup?  Seems like the default Tomcat behavior
> > introduces a security risk.
>
> Judging by the fact this is raised about once a year on the mailing list,
> I'd say the majority of people don't care.  Secure installations take care
> with their umasks from the beginning, so for them this is not an issue.
>
> Yoav



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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus 

Permission problem

2004-09-20 Thread Lorenzo Medici
Hi list

We have ported a web-application from a windows base tomcat installation to
a macosX 10.3.4 (java 1.4.2 tomcat v. ) installation. Under mac os we have
now a strange behabiour...

When we create a instace of a JEditorPane we run into the error
"...internalError  Can't connect to window server Not enougth permissions."
We need this JEditorPane for detect how many characters is in a RTF File...

Does anybody encountered the same problem? We suppse this must be a
installation problem but we really didn't know where we have to "screw".

Best thanks for any hints

Lorenzo Medici

 


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



JAASRealm & reference to JAAS Subject

2004-09-20 Thread KoflerI.external

Hi!

I'm using the Tomcat 5 JAASRealm for authenticating users with my own
LoginModule. In my LoginModule I am populating the Subject object
delivered by the Realm with Principals, Role Principals and Credentials.


The authentication and the mapping of my user defined roles to tomcat
roles work fine, but how can I get a reference to the Subject object in
my servlets, JSPs etc. I need them to access the credentials added by my
LoginModule.

please help, thanks

Ingo

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



Tomcat 5.0.28 broken character encoding handling

2004-09-20 Thread Krzysztof Cieniuch
Hi,
Could someone clearly explain me
how exactly tomcat 5.0.28 handles
character encodings in requests.
Especialy I'm interested in method POST character handling.
Recently I've posted question about that
but didn't get answer so i did
little more investigation
and tested tomcat 5.0.28 with jdk 1.4.2_05,1.4.2_04
1.4.0_04,1.4.1_07 tried to write all pages in UTF-8
set meta header content-type to UTF-8
set encodiong UTF-8 in jsp <%page %> tag
then pass -Dfile.encoding=UTF-8 jvm in startup parameters
nothing helps, also tested this configuration under linux
with LANG set to pl_PL (ISO-8859-2) results are the same
I've downloaded tomcat 4.1.30 did the same test no difference
did the same test with ISO-8859-2 encoding also without success
It seems that whatever I do tomcat always encodes/decodes charcters
returned from browser in ISO-8859-1 even if they are in body part of request
(I use method POST in my forms).
searched google like maniac read couple hundrets of posts.
I realy don't understand why this is so hard to set character encoding
corectly.
In some post i've read that iso8859-1 character encoding was hardcoded into
tomcat 4.1.29
Is this realy true ?
do i realy always must write:
new
String(request.getParameter("parameter_name")).getBytes(ISO-8859-1),"whateve
r_encoding_i_need").

KC

PS. OT: Thinking about switching to Jetty or with this web container also
are such problems ?


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



Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Tim Funk
If you are only using a servlet/jsp container. Ditch weblogic right now. Look 
at resin, servletexec, jetty, or any other (much cheaper) servlet container.

I had a bad experience with weblogic:
- I would provide bugs with cases to them and their support would take 
forever to understand the issue.
- Their compliance to the servlet and JSP spec is comparable to Microsoft's 
IE. (Just because it looks right and runs right - doesn't mean compliance)
- Converting to tomcat was an undertaking because the site originally coded 
by a consulting firm which knew buzzwords, but not coding.
- We had massive stability issues with the site. (It was as stable as a 4 
year old running on the beach on a windy day carrying a giant beach ball) 
They recommended a firm and with a straight face - the firm recommended that 
they recode the entire site (offshore) for an incredible price tag.  (And 4 
months of frozen dev time)

After switching to tomcat + apache over 2 years ago, I can count on one hand 
 the number of times we had unexpected outages due to tomcat's bugs. (Which 
were easily diagnosed and fixed(worked around) since we had the source)

The site was also significantly faster after the move.
In summary - I'm kind of jaded against weblogic.
-Tim
Bjørn T Johansen wrote:
I am taking over a project that's running on Weblogic 8.1 SP3 today.. 
They are only using the jsp-container and it is time to renew the 
support agreement with BEA.
So I was just wondering, is it worth it? Or is Tomcat as good as WL or 
maybe better? Does WL have features that is missing in Tomcat? When the 
time comes to use EJB, is JBoss as good as/better than WL?

So basically, I would like some advice on why I should/shouldn't 
continue with Weblogic? :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error page problem

2004-09-20 Thread Igor
Hello! 

 Is it possible to exclude certain servlets from "error page" mechanism?
 
 Thank you,
Igor

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



Re: JAASRealm & reference to JAAS Subject

2004-09-20 Thread Martin_Schaefer

This should do the job:

import java.security.AccessController;
import java.security.AccessControlContext;
import javax.security.auth.Subject;
...
AccessControlContext context = AccessController.getContext();
Subject subject = Subject.getSubject(context);

Regards,
Martin


[EMAIL PROTECTED] schrieb am 20.09.2004, 12:30:50:
> 
> Hi!
> 
> I'm using the Tomcat 5 JAASRealm for authenticating users with my own
> LoginModule. In my LoginModule I am populating the Subject object
> delivered by the Realm with Principals, Role Principals and Credentials.
> 
> 
> The authentication and the mapping of my user defined roles to tomcat
> roles work fine, but how can I get a reference to the Subject object in
> my servlets, JSPs etc. I need them to access the credentials added by my
> LoginModule.
> 
> please help, thanks
> 
> Ingo
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

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



Re: Tomcat 4.1.23

2004-09-20 Thread John Villar
Use a servlet that loads the xml data from a file pointed by "web.xml" 
or even better, use servlets parameters to load your data (if you can 
control the generation of the xml file).

John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com

Sudhrasun Ramalingam escribió:
Hello there,

I'm Running TC 4.1


I've created a jar file which processes some xml. And the package names goes
like x.y.z. 


For test this application I created a sample project (stand alone) under
c:\test and placed the xml file under c:\test\rule.xml. This works fine!

My problem is when I use the same jar in a webapp. Say my webapp name is
demo, and I run this using a jsp, I get an error saying "rule.xml" not
found.(rule.xml is inside WEB-INF)

When I put the file under $CATALINA_HOME this works fine. 


Since it is a xml process rule for digester, this will be changed very
often. 


How do I set my jar file to look at the webapp path?

Sudharsun

 


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

RE: is out by factor of 100?

2004-09-20 Thread Shapira, Yoav

Hi,
How are you checking the time remaining for a session?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Peter Johnson [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 20, 2004 12:24 AM
>To: Tomcat Users List
>Subject:  is out by factor of 100?
>
>Hi,
>
>Is anyone successfully using the web.xml session timeout configuration
>with Tomcat 5.0.25? Testing seems to indicate that this setting is out
>by a factor of 100 however using session.setMaxInactiveInterval seems
to
>yield the desired result.
>
>E.g. Printing the time remaining (in ms) in a session when using:
>session.setMaxInactiveInterval(180) // 3 min in seconds
>  ---> presents 179226 == ~3 min
>however, setting
>
>  5
>
>  ---> presents 29992101 == ~500min
>
>Thanks,
>PJ
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: Permission problem

2004-09-20 Thread Oliver Hirschi

"Lorenzo Medici" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi list
>
> We have ported a web-application from a windows base tomcat
installation to
> a macosX 10.3.4 (java 1.4.2 tomcat v. ) installation. Under mac os we
have
> now a strange behabiour...
>
> When we create a instace of a JEditorPane we run into the error
> "...internalError  Can't connect to window server Not enougth
permissions."
> We need this JEditorPane for detect how many characters is in a RTF
File...

Just use:

System.setProperty("java.awt.headless", "true");

:-), Oli



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



Re: Permission problem

2004-09-20 Thread Alex

Alternately,

CATALINA_OPTS="-Djava.awt.headless=true"; export CATALINA_OPTS

> Just use:
>
> System.setProperty("java.awt.headless", "true");


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



Re: Permission problem

2004-09-20 Thread Oliver Hirschi

"Alex" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
>
> Alternately,
>
> CATALINA_OPTS="-Djava.awt.headless=true"; export CATALINA_OPTS

In which configuration file?



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



RE: performance problem

2004-09-20 Thread Shapira, Yoav

Hi,
Clues no, but a question to ask yourself: do you really need Apache
HTTPd in front?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 17, 2004 3:06 PM
>To: [EMAIL PROTECTED]
>Subject: performance problem
>
>I have an apache/tomcat environment that is experiencing performance
>problems.
>
>My production environment has apache on one win2k box, and the two
tomcat
>instances on another win 2k box.
>
>When I load test the my application directly against either of the
tomcat
>instances, I get about 150 req/s. When I test with apache in front, I
get
>10 req/s. This was with apache server temporarily placed on same
network
>segment as tomcat box.
>
>I recreated the production setup on a couple of developer workstations
>(slightly slower hardware than the production environment), and got >
70
>req/s.
>
>Apache and tomcat conf files are essentially identical in both
>environments.
>
>Does anyone have any clues?



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


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



RE: Renaming the ROOT directory ?

2004-09-20 Thread Shapira, Yoav

Hi,
Oh, I had a good morning until reading this message.

>Your path attribute should have "/" and not "".

No No No No No No.  Use path="" for the "default" context, use
path="/something" for others, but never path="/".  This has been
repeated over and over on this list.

Simply remove the ROOT webapp by deleting its directory, and define your
Context to have path="".  That's it.  Tomcat won't create a ROOT
directory.

Yoav



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


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



RE: performance problem

2004-09-20 Thread Dale, Matt

and could there be some network congestion in your live environment?

Ta
Matt

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 15:05
To: Tomcat Users List
Subject: RE: performance problem



Hi,
Clues no, but a question to ask yourself: do you really need Apache
HTTPd in front?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 17, 2004 3:06 PM
>To: [EMAIL PROTECTED]
>Subject: performance problem
>
>I have an apache/tomcat environment that is experiencing performance
>problems.
>
>My production environment has apache on one win2k box, and the two
tomcat
>instances on another win 2k box.
>
>When I load test the my application directly against either of the
tomcat
>instances, I get about 150 req/s. When I test with apache in front, I
get
>10 req/s. This was with apache server temporarily placed on same
network
>segment as tomcat box.
>
>I recreated the production setup on a couple of developer workstations
>(slightly slower hardware than the production environment), and got >
70
>req/s.
>
>Apache and tomcat conf files are essentially identical in both
>environments.
>
>Does anyone have any clues?



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


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

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


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

Connections backup for modjk, all w's

2004-09-20 Thread Michael Medwith
I am really lost on this one, my application at work (running with
apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
solaris machines running tomcat and 5 more with apache (1 to 1
relationship).

The application seems to lock up on a regular basis.  The most useful
information to this point is our apache server-status which shows
hundreds of "W"'s  implying that we are writing responses back to
users.  The fact is none of these responses are supposed to be long
writes.

Has anyone ever filled up their apache queue with all "W"s?  What are
somethings to look into on this.

Some things that we have looked into that have resulted in no leads:

Connections to all databases are low in any,
No apparent network clogs on internal network,
Unable to reproduce under software load testing,

Anyone with any suggestions or more questions would be much
appreciated, we have been dealing with this for quite some time now
with no hope of a remedy in the near future.

-Mike Medwith

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



RE: Connections backup for modjk, all w's

2004-09-20 Thread Dale, Matt

What versions of the 3 components are you using?

-Original Message-
From: Michael Medwith [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 15:11
To: [EMAIL PROTECTED]
Subject: Connections backup for modjk, all w's


I am really lost on this one, my application at work (running with
apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
solaris machines running tomcat and 5 more with apache (1 to 1
relationship).

The application seems to lock up on a regular basis.  The most useful
information to this point is our apache server-status which shows
hundreds of "W"'s  implying that we are writing responses back to
users.  The fact is none of these responses are supposed to be long
writes.

Has anyone ever filled up their apache queue with all "W"s?  What are
somethings to look into on this.

Some things that we have looked into that have resulted in no leads:

Connections to all databases are low in any,
No apparent network clogs on internal network,
Unable to reproduce under software load testing,

Anyone with any suggestions or more questions would be much
appreciated, we have been dealing with this for quite some time now
with no hope of a remedy in the near future.

-Mike Medwith

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

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


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

RE: Tomcat vs BEA Weblogic?

2004-09-20 Thread Shapira, Yoav

Hi,
I would add a couple of minor points, as others have already covered the main ones.

You say you're only using Weblogic's JSP container.  Tomcat's JSP container (known as 
Jasper) is used not only by Tomcat, but by JBoss, JonAS, IBM's Websphere, and a number 
of other commercial products.  So by switching, you not only get a free solution (BEA 
is $ as others have noted), but one that's used by a huge customer base and with 
many support options.

As QM noted, there's no official professional services provider for Tomcat, or Apache 
in general.  The ASF cannot sanction such an "official" provider because of its legal 
formulation.  However, there are a number of support companies which will do Apache, 
Tomcat, and Jasper.  Some of them, such as Covalent, have an excellent track record, 
numerous Fortune 1000 customers, and 24x7 support.  That should be sufficient to CYA 
for management, which as someone mentioned is always a consideration.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
>Sent: Sunday, September 19, 2004 7:32 PM
>To: Tomcat Users List
>Subject: Tomcat vs BEA Weblogic?
>
>I am taking over a project that's running on Weblogic 8.1 SP3 today.. They
>are only using
>the jsp-container and it is time to renew the support agreement with BEA.
>So I was just wondering, is it worth it? Or is Tomcat as good as WL or
>maybe better? Does
>WL have features that is missing in Tomcat? When the time comes to use EJB,
>is JBoss as
>good as/better than WL?
>
>So basically, I would like some advice on why I should/shouldn't continue
>with Weblogic? :)
>
>
>
>Regards,
>
>BTJ
>--
>---
>
>Bjørn T Johansen
>[EMAIL PROTECTED]
>
>---
>
>Someone wrote:
>"I understand that if you play a Windows CD backwards you hear strange
>Satanic messages"
>To which someone replied:
>"It's even worse than that; play it forwards and it installs Windows"
>---
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: 505 Error in Tomcat 5.0

2004-09-20 Thread Shapira, Yoav

Hi,

>I am using Tomcat 5.0 and Struts 1.1.  I also use a Filter that zips
the
>requests and responses.

First step: ditch your own filter and use one of the freely available,
well-tested ones.  Tomcat ships with one, in the servlet example webapp,
called CompressionFilter.  This way we eliminate the possibility of bugs
in your filter.

Alternatively, and even simpler: ditch the Filter altogether for
testing.  I imagine with a chat client the pages aren't that big
anyways, so the performance gained from compression is negligible.  You
can benchmark this if you want.

>gets 505 messages.

Are they really 505's, or more common 500's?  Do you have the
AccessLogValve enabled?  If not, enable it and see what it says when she
gets the errors.

If the user has the 'show friendly http error message' option enabled in
IE, ask her to disable this option.  This will aid in your debugging.

>What do you think?

Recreate the errors in a test environment if you can.  It sounds like
that won't be easy to do given the type of error.  If your app supports
different browsers, and the user is willing to try a different browser,
that's a good thing to test as well.

As an aside, please wait a bit longer before cross-posting to tomcat-dev
;)  Many of us tomcat-dev people like to take weekends off ;)

Yoav



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


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



Re: Connections backup for modjk, all w's

2004-09-20 Thread Michael Medwith
apache 2.050
tomcat 4.1.27
mod jk, 1.41_05, sometimes _06 

-Mike

On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> What versions of the 3 components are you using?
> 
> 
> 
> -Original Message-
> From: Michael Medwith [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:11
> To: [EMAIL PROTECTED]
> Subject: Connections backup for modjk, all w's
> 
> I am really lost on this one, my application at work (running with
> apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> solaris machines running tomcat and 5 more with apache (1 to 1
> relationship).
> 
> The application seems to lock up on a regular basis.  The most useful
> information to this point is our apache server-status which shows
> hundreds of "W"'s  implying that we are writing responses back to
> users.  The fact is none of these responses are supposed to be long
> writes.
> 
> Has anyone ever filled up their apache queue with all "W"s?  What are
> somethings to look into on this.
> 
> Some things that we have looked into that have resulted in no leads:
> 
> Connections to all databases are low in any,
> No apparent network clogs on internal network,
> Unable to reproduce under software load testing,
> 
> Anyone with any suggestions or more questions would be much
> appreciated, we have been dealing with this for quite some time now
> with no hope of a remedy in the near future.
> 
> -Mike Medwith
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

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



RE: Connections backup for modjk, all w's

2004-09-20 Thread Dale, Matt

Out of interest is there any reason why you aren't using JK2? Have you tried it? This 
was designed for Apache 2 so may work better. I'm sure this isn't relevant but it 
might be worth a shot.

Ta
Matt

-Original Message-
From: Michael Medwith [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 15:42
To: Tomcat Users List
Subject: Re: Connections backup for modjk, all w's


apache 2.050
tomcat 4.1.27
mod jk, 1.41_05, sometimes _06 

-Mike

On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> What versions of the 3 components are you using?
> 
> 
> 
> -Original Message-
> From: Michael Medwith [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:11
> To: [EMAIL PROTECTED]
> Subject: Connections backup for modjk, all w's
> 
> I am really lost on this one, my application at work (running with
> apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> solaris machines running tomcat and 5 more with apache (1 to 1
> relationship).
> 
> The application seems to lock up on a regular basis.  The most useful
> information to this point is our apache server-status which shows
> hundreds of "W"'s  implying that we are writing responses back to
> users.  The fact is none of these responses are supposed to be long
> writes.
> 
> Has anyone ever filled up their apache queue with all "W"s?  What are
> somethings to look into on this.
> 
> Some things that we have looked into that have resulted in no leads:
> 
> Connections to all databases are low in any,
> No apparent network clogs on internal network,
> Unable to reproduce under software load testing,
> 
> Anyone with any suggestions or more questions would be much
> appreciated, we have been dealing with this for quite some time now
> with no hope of a remedy in the near future.
> 
> -Mike Medwith
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

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

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


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

Re: Connections backup for modjk, all w's

2004-09-20 Thread Michael Medwith
Our company uses covalent for support, I am a mere developer.  I don't
even have control or major influence of the platforms or
administration.  I will mention that right away...

To be honest, I have a feeling its something code/network related
because it was happening prior to apache 2.0...

Any more suggestions would be much appreciated, is there anything I
can research or look for in code or logs or status pages?

-Mike

On Mon, 20 Sep 2004 15:44:36 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Out of interest is there any reason why you aren't using JK2? Have you tried it? 
> This was designed for Apache 2 so may work better. I'm sure this isn't relevant but 
> it might be worth a shot.
> 
> Ta
> Matt
> 
> 
> 
> -Original Message-
> From: Michael Medwith [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:42
> To: Tomcat Users List
> Subject: Re: Connections backup for modjk, all w's
> 
> apache 2.050
> tomcat 4.1.27
> mod jk, 1.41_05, sometimes _06
> 
> -Mike
> 
> On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> >
> > What versions of the 3 components are you using?
> >
> >
> >
> > -Original Message-
> > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > Sent: 20 September 2004 15:11
> > To: [EMAIL PROTECTED]
> > Subject: Connections backup for modjk, all w's
> >
> > I am really lost on this one, my application at work (running with
> > apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> > solaris machines running tomcat and 5 more with apache (1 to 1
> > relationship).
> >
> > The application seems to lock up on a regular basis.  The most useful
> > information to this point is our apache server-status which shows
> > hundreds of "W"'s  implying that we are writing responses back to
> > users.  The fact is none of these responses are supposed to be long
> > writes.
> >
> > Has anyone ever filled up their apache queue with all "W"s?  What are
> > somethings to look into on this.
> >
> > Some things that we have looked into that have resulted in no leads:
> >
> > Connections to all databases are low in any,
> > No apparent network clogs on internal network,
> > Unable to reproduce under software load testing,
> >
> > Anyone with any suggestions or more questions would be much
> > appreciated, we have been dealing with this for quite some time now
> > with no hope of a remedy in the near future.
> >
> > -Mike Medwith
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

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



Re: Connections backup for modjk, all w's

2004-09-20 Thread Michael Medwith
I use the term support loosely when talking about covalent.  They are
unable to provide us with any direction regarding this problem.


On Mon, 20 Sep 2004 10:51:38 -0400, Michael Medwith <[EMAIL PROTECTED]> wrote:
> Our company uses covalent for support, I am a mere developer.  I don't
> even have control or major influence of the platforms or
> administration.  I will mention that right away...
> 
> To be honest, I have a feeling its something code/network related
> because it was happening prior to apache 2.0...
> 
> Any more suggestions would be much appreciated, is there anything I
> can research or look for in code or logs or status pages?
> 
> -Mike
> 
> On Mon, 20 Sep 2004 15:44:36 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> > 
> > Out of interest is there any reason why you aren't using JK2? Have you tried it? 
> > This was designed for Apache 2 so may work better. I'm sure this isn't relevant 
> > but it might be worth a shot.
> 
> 
> >
> > Ta
> > Matt
> >
> >
> >
> > -Original Message-
> > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > Sent: 20 September 2004 15:42
> > To: Tomcat Users List
> > Subject: Re: Connections backup for modjk, all w's
> >
> > apache 2.050
> > tomcat 4.1.27
> > mod jk, 1.41_05, sometimes _06
> >
> > -Mike
> >
> > On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> > >
> > > What versions of the 3 components are you using?
> > >
> > >
> > >
> > > -Original Message-
> > > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > > Sent: 20 September 2004 15:11
> > > To: [EMAIL PROTECTED]
> > > Subject: Connections backup for modjk, all w's
> > >
> > > I am really lost on this one, my application at work (running with
> > > apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> > > solaris machines running tomcat and 5 more with apache (1 to 1
> > > relationship).
> > >
> > > The application seems to lock up on a regular basis.  The most useful
> > > information to this point is our apache server-status which shows
> > > hundreds of "W"'s  implying that we are writing responses back to
> > > users.  The fact is none of these responses are supposed to be long
> > > writes.
> > >
> > > Has anyone ever filled up their apache queue with all "W"s?  What are
> > > somethings to look into on this.
> > >
> > > Some things that we have looked into that have resulted in no leads:
> > >
> > > Connections to all databases are low in any,
> > > No apparent network clogs on internal network,
> > > Unable to reproduce under software load testing,
> > >
> > > Anyone with any suggestions or more questions would be much
> > > appreciated, we have been dealing with this for quite some time now
> > > with no hope of a remedy in the near future.
> > >
> > > -Mike Medwith
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > 
> > -
> 
> 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>

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



Re: cannot find server

2004-09-20 Thread Hassan Schroeder
Brian Roberts wrote:
Yep I tried 'catalina.bat run' at 
the bin directory of tomcat and the reply was. " 'catalina.bat' not 
recognized as an internal or external command, operable program or batch 
file" 
Then your path doesn't include the current directory. Try either
".\catalina.bat run" (in the bin directory) or, having checked that
your CATALINA_HOME environment variable's set properly, you can try
"%CATALINA_HOME%\bin\catalina.bat run" which should work from any
directory.
I think version 5 is a lot different from version 4. I've tried to 
install both version without success
My development desktop runs Windows 2000, and I've got 4.1.30 *and*
5.0.28 running simultaneously right now, so...
BTW, did you install from an .exe? If so, I'd recommend uninstalling
that, and re-installing from a tar/zip version (in a directory with
no spaces in the path names). That's what I do with each new release
and it *always* "just works"...
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: Connections backup for modjk, all w's

2004-09-20 Thread Dale, Matt

Then personally the things i'd look at would be a thread dump of tomcat to find out if 
some of the requests are hung, look for bad loops or bits of code that might wait and 
therefore not freeing up the response. A profiler may help here but you'd have to 
profile the live app if you are unable to replicate this outside your live environment.

Perhaps the app is using more memory than is required and spending too much time in 
garbage collection causing the connections to back up. You can monitor this in a 
profiler and a more visual representation with jvmstat from sun.

Apache logs and catalina.out are often full of useful error messages but it doesnt 
sound like you have a specific error here.

-Original Message-
From: Michael Medwith [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 15:52
To: Tomcat Users List
Subject: Re: Connections backup for modjk, all w's


Our company uses covalent for support, I am a mere developer.  I don't
even have control or major influence of the platforms or
administration.  I will mention that right away...

To be honest, I have a feeling its something code/network related
because it was happening prior to apache 2.0...

Any more suggestions would be much appreciated, is there anything I
can research or look for in code or logs or status pages?

-Mike

On Mon, 20 Sep 2004 15:44:36 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Out of interest is there any reason why you aren't using JK2? Have you tried it? 
> This was designed for Apache 2 so may work better. I'm sure this isn't relevant but 
> it might be worth a shot.
> 
> Ta
> Matt
> 
> 
> 
> -Original Message-
> From: Michael Medwith [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:42
> To: Tomcat Users List
> Subject: Re: Connections backup for modjk, all w's
> 
> apache 2.050
> tomcat 4.1.27
> mod jk, 1.41_05, sometimes _06
> 
> -Mike
> 
> On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> >
> > What versions of the 3 components are you using?
> >
> >
> >
> > -Original Message-
> > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > Sent: 20 September 2004 15:11
> > To: [EMAIL PROTECTED]
> > Subject: Connections backup for modjk, all w's
> >
> > I am really lost on this one, my application at work (running with
> > apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> > solaris machines running tomcat and 5 more with apache (1 to 1
> > relationship).
> >
> > The application seems to lock up on a regular basis.  The most useful
> > information to this point is our apache server-status which shows
> > hundreds of "W"'s  implying that we are writing responses back to
> > users.  The fact is none of these responses are supposed to be long
> > writes.
> >
> > Has anyone ever filled up their apache queue with all "W"s?  What are
> > somethings to look into on this.
> >
> > Some things that we have looked into that have resulted in no leads:
> >
> > Connections to all databases are low in any,
> > No apparent network clogs on internal network,
> > Unable to reproduce under software load testing,
> >
> > Anyone with any suggestions or more questions would be much
> > appreciated, we have been dealing with this for quite some time now
> > with no hope of a remedy in the near future.
> >
> > -Mike Medwith
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this ema

Re: Connections backup for modjk, all w's

2004-09-20 Thread Michael Medwith
Thanks for the input we are in the process of getting a Profiler
purchased but the time to get it into production will be a couple of
months unless we can speed up the paperwork.  As for garbage
collection I will look into that is there a happy medium for memory
usage... these boxes are huge with lots of memory (several GB) and
multi processors per box


Someone at work recently thought it could be garbage collection
kicking in as well... is there something I can do before the profilers
are installed, maybe a core dump?

-Mike


On Mon, 20 Sep 2004 16:01:32 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Then personally the things i'd look at would be a thread dump of tomcat to find out 
> if some of the requests are hung, look for bad loops or bits of code that might wait 
> and therefore not freeing up the response. A profiler may help here but you'd have 
> to profile the live app if you are unable to replicate this outside your live 
> environment.
> 
> Perhaps the app is using more memory than is required and spending too much time in 
> garbage collection causing the connections to back up. You can monitor this in a 
> profiler and a more visual representation with jvmstat from sun.
> 
> Apache logs and catalina.out are often full of useful error messages but it doesnt 
> sound like you have a specific error here.
> 
> 
> 
> -Original Message-
> From: Michael Medwith [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:52
> To: Tomcat Users List
> Subject: Re: Connections backup for modjk, all w's
> 
> Our company uses covalent for support, I am a mere developer.  I don't
> even have control or major influence of the platforms or
> administration.  I will mention that right away...
> 
> To be honest, I have a feeling its something code/network related
> because it was happening prior to apache 2.0...
> 
> Any more suggestions would be much appreciated, is there anything I
> can research or look for in code or logs or status pages?
> 
> -Mike
> 
> On Mon, 20 Sep 2004 15:44:36 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> >
> > Out of interest is there any reason why you aren't using JK2? Have you tried it? 
> > This was designed for Apache 2 so may work better. I'm sure this isn't relevant 
> > but it might be worth a shot.
> >
> > Ta
> > Matt
> >
> >
> >
> > -Original Message-
> > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > Sent: 20 September 2004 15:42
> > To: Tomcat Users List
> > Subject: Re: Connections backup for modjk, all w's
> >
> > apache 2.050
> > tomcat 4.1.27
> > mod jk, 1.41_05, sometimes _06
> >
> > -Mike
> >
> > On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> > >
> > > What versions of the 3 components are you using?
> > >
> > >
> > >
> > > -Original Message-
> > > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > > Sent: 20 September 2004 15:11
> > > To: [EMAIL PROTECTED]
> > > Subject: Connections backup for modjk, all w's
> > >
> > > I am really lost on this one, my application at work (running with
> > > apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> > > solaris machines running tomcat and 5 more with apache (1 to 1
> > > relationship).
> > >
> > > The application seems to lock up on a regular basis.  The most useful
> > > information to this point is our apache server-status which shows
> > > hundreds of "W"'s  implying that we are writing responses back to
> > > users.  The fact is none of these responses are supposed to be long
> > > writes.
> > >
> > > Has anyone ever filled up their apache queue with all "W"s?  What are
> > > somethings to look into on this.
> > >
> > > Some things that we have looked into that have resulted in no leads:
> > >
> > > Connections to all databases are low in any,
> > > No apparent network clogs on internal network,
> > > Unable to reproduce under software load testing,
> > >
> > > Anyone with any suggestions or more questions would be much
> > > appreciated, we have been dealing with this for quite some time now
> > > with no hope of a remedy in the near future.
> > >
> > > -Mike Medwith
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> 
> -
> To unsu

RE: Connections backup for modjk, all w's

2004-09-20 Thread Dale, Matt

As I mentioned you can get a thread dump by issuing a kill -SIGQUIT to the java 
process. Its probably not that pretty and I don't know of any tools to make it more 
readable but i'm sure there are some.

Jvmstat is a free tool provided by sun which hooks into your jvm and gives a graph of 
the time that your jvm spends during garbage collection. The standard collectors stop 
the whole jvm during the collection so obviously you want it to spend as little time 
as possible in this phase. I've put a couple of links for some articles i've found 
useful in the past below.

http://java.sun.com/docs/hotspot/gc1.4.2/
http://java.sun.com/developer/technicalArticles/Programming/turbo/
http://java.sun.com/developer/technicalArticles/Programming/GCPortal/ReadMe_Solaris.html

Good luck
Matt

-Original Message-
From: Michael Medwith [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 16:22
To: Tomcat Users List
Subject: Re: Connections backup for modjk, all w's


Thanks for the input we are in the process of getting a Profiler
purchased but the time to get it into production will be a couple of
months unless we can speed up the paperwork.  As for garbage
collection I will look into that is there a happy medium for memory
usage... these boxes are huge with lots of memory (several GB) and
multi processors per box


Someone at work recently thought it could be garbage collection
kicking in as well... is there something I can do before the profilers
are installed, maybe a core dump?

-Mike


On Mon, 20 Sep 2004 16:01:32 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Then personally the things i'd look at would be a thread dump of tomcat to find out 
> if some of the requests are hung, look for bad loops or bits of code that might wait 
> and therefore not freeing up the response. A profiler may help here but you'd have 
> to profile the live app if you are unable to replicate this outside your live 
> environment.
> 
> Perhaps the app is using more memory than is required and spending too much time in 
> garbage collection causing the connections to back up. You can monitor this in a 
> profiler and a more visual representation with jvmstat from sun.
> 
> Apache logs and catalina.out are often full of useful error messages but it doesnt 
> sound like you have a specific error here.
> 
> 
> 
> -Original Message-
> From: Michael Medwith [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:52
> To: Tomcat Users List
> Subject: Re: Connections backup for modjk, all w's
> 
> Our company uses covalent for support, I am a mere developer.  I don't
> even have control or major influence of the platforms or
> administration.  I will mention that right away...
> 
> To be honest, I have a feeling its something code/network related
> because it was happening prior to apache 2.0...
> 
> Any more suggestions would be much appreciated, is there anything I
> can research or look for in code or logs or status pages?
> 
> -Mike
> 
> On Mon, 20 Sep 2004 15:44:36 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> >
> > Out of interest is there any reason why you aren't using JK2? Have you tried it? 
> > This was designed for Apache 2 so may work better. I'm sure this isn't relevant 
> > but it might be worth a shot.
> >
> > Ta
> > Matt
> >
> >
> >
> > -Original Message-
> > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > Sent: 20 September 2004 15:42
> > To: Tomcat Users List
> > Subject: Re: Connections backup for modjk, all w's
> >
> > apache 2.050
> > tomcat 4.1.27
> > mod jk, 1.41_05, sometimes _06
> >
> > -Mike
> >
> > On Mon, 20 Sep 2004 15:21:04 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> > >
> > > What versions of the 3 components are you using?
> > >
> > >
> > >
> > > -Original Message-
> > > From: Michael Medwith [mailto:[EMAIL PROTECTED]
> > > Sent: 20 September 2004 15:11
> > > To: [EMAIL PROTECTED]
> > > Subject: Connections backup for modjk, all w's
> > >
> > > I am really lost on this one, my application at work (running with
> > > apache/tomcat/modjk) is locking up with all "W"s.  We have 5 new
> > > solaris machines running tomcat and 5 more with apache (1 to 1
> > > relationship).
> > >
> > > The application seems to lock up on a regular basis.  The most useful
> > > information to this point is our apache server-status which shows
> > > hundreds of "W"'s  implying that we are writing responses back to
> > > users.  The fact is none of these responses are supposed to be long
> > > writes.
> > >
> > > Has anyone ever filled up their apache queue with all "W"s?  What are
> > > somethings to look into on this.
> > >
> > > Some things that we have looked into that have resulted in no leads:
> > >
> > > Connections to all databases are low in any,
> > > No apparent network clogs on internal network,
> > > Unable to reproduce under software load testing,
> > >
> > > Anyone with any suggestions or more questions would be much
> > > appreciated, we have been dealing with this for quite some time

Tomcat QueryString Encoding/Decoding Issue

2004-09-20 Thread koney krishna

I am struck up with getQueryString() method in HTTPServletResponse?

I have a query String which is UTF-8 based ; 

ex:
http://localhost:8080/test.html?user=H%C3%BC%C3%9F


When I use HTTPServeletRequest.getQueryString() I get a garbled QueryString.
I get H%C3%83%C2%BC%C3%83%C2%9F where as I should get it as 
H%C3%BC%C3%9F
Which UrlEncoding does getQueryString() ???

It looks like Tomcat is URLEncoding again the QueryString so I am getting garbled 
QueryString.
Is there anyway to get the raw Query_String than using getQueryString() in Tomcat ?

I have changed the Server.xml ( for setting URLEncoding="UTF-8" ) & web.xml ( to 
enable setCharacterEncoding = UTF8 )

Please help me !!

I am struck up with this error from last 2 weeks.

thanks

kris


-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

shutdown problems tomcat 5.0.28

2004-09-20 Thread SSchattenberg
I am running tomcat 5.0.28 on Redhat 9.0 with java 1.4.2_05.

Starting tomcat using startup.sh shows no errors in any of the log files.
The application is running fine.  However, when I use shutdown.sh, tomcat
hangs for a few minutes, prints the below message in catalina.out, and
finally exits.  Obviously, I can kill the process using the kill command
but I am afraid that this problem might be a symptom of a larger problem.

The server.xml file is the default that came with the release.  All JNDI
configurations are done in a separate context file that lives in
$TOMCAT/conf//Catalina/localhost/.

I have found some similar posts on the net but none seem to address my
problem sufficiently.  Any advice on how to debug this would be
appreciated.

Here is the Catalina.out error:

Sep 20, 2004 12:44:28 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 20, 2004 12:47:37 PM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at
org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
at org.apache.jk.server.JkMain.pause(JkMain.java:657)
at
org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:202)
at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:521)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at org.apache.catalina.startup.Catalina.start(Catalina.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /admin
Sep 20, 2004 12:47:38 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,path=/admin,host=localhost
Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /webdav
Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /servlets-examples
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /jsp-examples
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /balancer
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /iht
Sep 20, 2004 12:47:39 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,path=/iht,host=localhost
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /DBTest
Sep 20, 2004 12:47:39 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,path=/DBTest,host=localhost
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /tomcat-docs
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path
Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /manager
Sep 20, 2004 12:47:39 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,host=localhost
Sep 20, 2004 12:47:39 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger
Sep 20, 2004 12:47:39 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080



-

getQueryString() returns garbled text when a UTF-8 International Characters passed

2004-09-20 Thread koney krishna

I am struck up with getQueryString() method in HTTPServletResponse?
I am writing to the Client ( IE Browser ) a String which is UTF-8 based.

ex:
http://localhost:8080/test.html?user=H%C3%BC%C3%9F

My browser reloads the same page again .

When I use HTTPServeletRequest.getQueryString() I get a garbled QueryString.
I get H%C3%83%C2%BC%C3%83%C2%9F where as I should get it as 
H%C3%BC%C3%9F
Which UrlEncoding does getQueryString() ???

It looks like Tomcat is URLEncoding again the QueryString so I am getting garbled 
QueryString.
Is there anyway to get the raw Query_String than using getQueryString() in Tomcat ?
I have changed the Server.xml ( for setting URLEncoding="UTF-8" ) & web.xml ( to 
enable setCharacterEncoding = UTF8 )
Please help me !!


I am struck up with this error from last 2 weeks.

Please help me !!!

thanks
kris






-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

ROOT Problem

2004-09-20 Thread e-Denton Subscriber
Hi,

I set my context to use my app as the default app:



It does call my app with this URL http://127.0.0.1:8080/, but it also starts
up the app in /e-Denton. In other words, it is running both as the default
app and as its own app. What am I doing wrong?

Thx.


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



RE: ROOT Problem

2004-09-20 Thread Shapira, Yoav

Hi,
You have autoDeploy enabled (this is the default).  Turn it off by
modifying the Host element in your server.xml.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 20, 2004 12:08 PM
>To: Tomcat Users List
>Subject: ROOT Problem
>
>Hi,
>
>I set my context to use my app as the default app:
>
> docBase="e-Denton"
> path=""
> reloadable="true"
> useNaming="true"
> debug="5">
>
>It does call my app with this URL http://127.0.0.1:8080/, but it also
>starts
>up the app in /e-Denton. In other words, it is running both as the
default
>app and as its own app. What am I doing wrong?
>
>Thx.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: shutdown problems tomcat 5.0.28

2004-09-20 Thread Shapira, Yoav

Hi,
If you remove your separate JNDI configurations file, does the problem
go away?

Can you verify the shutdown socket (8005 by default) is open and
listening (use a program like netstat to do this)?

Have you tried setting the LD_ASSUME_KERNEL parameter that many Linux
users suggest on RedHat> (search the archives of this list for
LD_ASSUME_KERNEL) for details)

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 20, 2004 11:52 AM
>To: [EMAIL PROTECTED]
>Subject: shutdown problems tomcat 5.0.28
>
>I am running tomcat 5.0.28 on Redhat 9.0 with java 1.4.2_05.
>
>Starting tomcat using startup.sh shows no errors in any of the log
files.
>The application is running fine.  However, when I use shutdown.sh,
tomcat
>hangs for a few minutes, prints the below message in catalina.out, and
>finally exits.  Obviously, I can kill the process using the kill
command
>but I am afraid that this problem might be a symptom of a larger
problem.
>
>The server.xml file is the default that came with the release.  All
JNDI
>configurations are done in a separate context file that lives in
>$TOMCAT/conf//Catalina/localhost/.
>
>I have found some similar posts on the net but none seem to address my
>problem sufficiently.  Any advice on how to debug this would be
>appreciated.
>
>Here is the Catalina.out error:
>
>Sep 20, 2004 12:44:28 PM org.apache.coyote.http11.Http11Protocol pause
>INFO: Pausing Coyote HTTP/1.1 on http-8080
>Sep 20, 2004 12:47:37 PM org.apache.coyote.tomcat5.CoyoteConnector
pause
>SEVERE: Protocol handler pause failed
>java.net.ConnectException: Connection timed out
>at java.net.PlainSocketImpl.socketConnect(Native Method)
>at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
>at
>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
>at java.net.Socket.connect(Socket.java:452)
>at java.net.Socket.connect(Socket.java:402)
>at java.net.Socket.(Socket.java:309)
>at java.net.Socket.(Socket.java:153)
>at
>org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
>at
org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
>at org.apache.jk.server.JkMain.pause(JkMain.java:657)
>at
>org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:202)
>at
>org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:14
44)
>at
>org.apache.catalina.core.StandardService.stop(StandardService.java:521)
>at
>org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
>at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
>at
org.apache.catalina.startup.Catalina.start(Catalina.java:580)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardService stop
>INFO: Stopping service Catalina
>Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /admin
>Sep 20, 2004 12:47:38 PM org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger
Catalina:type=Logger,path=/admin,host=localhost
>Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /webdav
>Sep 20, 2004 12:47:38 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /servlets-examples
>Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /jsp-examples
>Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /balancer
>Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /iht
>Sep 20, 2004 12:47:39 PM org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger
Catalina:type=Logger,path=/iht,host=localhost
>Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path /DBTest
>Sep 20, 2004 12:47:39 PM org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger
Catalina:type=Logger,path=/DBTest,host=localhost
>Sep 20, 2004 12:47:39 PM org.apache.catalina.core.StandardHostDeployer
>remove
>INFO: Removing web application at context path

Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread dhay
Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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



org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause:

2004-09-20 Thread Shilpa Nalgonda
Hi,  I am getting the timeout exception for connection pooling, i am using
Tomca 4.1 and datasource to retrieve connections.
I am attaching all the soure code and configuration files used in my
application, please suggest where iam doing wrong...

SEVERE: getConnection()--SQLException
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
exhausted, cause:
java.util.NoSuchElementException: Timeout waiting for idle object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
l.java:801)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:140)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
at
com.mypublisher.oemapi.DAO.DBAccess.getConnection(DBAccess.java:47)
at com.mypublisher.oemapi.DAO.Persister.(Persister.java:46)
at
com.mypublisher.oemapi.SubmitOrder.SubmitOrder(SubmitOrder.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.xmlrpc.Invoker.execute(Invoker.java:168)
at
org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:123)
at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:185)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:151)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:128)
at
com.mypublisher.oemapi.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java

===
server.xml
-




   



  factory
  org.apache.commons.dbcp.BasicDataSourceFactory




  maxActive
  5




 maxIdle
 2


 

 maxWait
 1




  username
  ioeadmin


  password
  ioeadmin




  driverClassName
  oracle.jdbc.driver.OracleDriver




url
jdbc:oracle:thin:@ipaddress:1521:MYDB





===
DatasourceFactory is a singleton class used to retrieve the datasource from
tomcat using JNDi..and connection is obtained from datasource...
  public static DataSource getInstance() throws SystemException
{
if (!isDataSrcAvaliable)
{
if (dataSource == null)
{
new DataSourceFactory();
doLookUp();
isDataSrcAvaliable = true;
} //end if (dataSource == null)
}// end if (!isDataSrcAvaliable)
return dataSource;
} /* end getInstance() */

doLookUp method does this:
Context ctx = new InitialContext();
String dataSrc =
msgResource.getMessage(OEMAPIConstants.DATA_SOURCE_NAME);
Context env = (Context)ctx.lookup("java:comp/env");
dataSource = (DataSource) env.lookup(dataSrc);


public static Connection getConnection() throws DAOException
{
   DataSource ds = (DataSource) DataSourceFactory.getInstance();
   Connection con = ds.getConnection();
   return ds.getConnection();
}
and every database lookup class, gets this connection and closes the
connection after the query to database...



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



Re: performance problem

2004-09-20 Thread Cymen Vig
Another place to look is DNS -- can you ping your tomcat servers from
the apache server? Can you do the reverse? I mean by name not IP. Try
specifying IP to host relations in hosts/lmhosts.


On Mon, 20 Sep 2004 15:10:36 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> and could there be some network congestion in your live environment?
> 
> Ta
> Matt
> 
> 
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2004 15:05
> To: Tomcat Users List
> Subject: RE: performance problem
> 
> Hi,
> Clues no, but a question to ask yourself: do you really need Apache
> HTTPd in front?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> >-Original Message-
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: Friday, September 17, 2004 3:06 PM
> >To: [EMAIL PROTECTED]
> >Subject: performance problem
> >
> >I have an apache/tomcat environment that is experiencing performance
> >problems.
> >
> >My production environment has apache on one win2k box, and the two
> tomcat
> >instances on another win 2k box.
> >
> >When I load test the my application directly against either of the
> tomcat
> >instances, I get about 150 req/s. When I test with apache in front, I
> get
> >10 req/s. This was with apache server temporarily placed on same
> network
> >segment as tomcat box.
> >
> >I recreated the production setup on a couple of developer workstations
> >(slightly slower hardware than the production environment), and got >
> 70
> >req/s.
> >
> >Apache and tomcat conf files are essentially identical in both
> >environments.
> >
> >Does anyone have any clues?
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

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



Re: ROOT Problem

2004-09-20 Thread e-Denton Subscriber
That doesn't seem to work. I still have both running. I changed the Host as
below:

  

I am running Tomcat 5.0.27

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "e-Denton
Subscriber" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 11:12 AM
Subject: RE: ROOT Problem



Hi,
You have autoDeploy enabled (this is the default).  Turn it off by
modifying the Host element in your server.xml.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 20, 2004 12:08 PM
>To: Tomcat Users List
>Subject: ROOT Problem
>
>Hi,
>
>I set my context to use my app as the default app:
>
> docBase="e-Denton"
> path=""
> reloadable="true"
> useNaming="true"
> debug="5">
>
>It does call my app with this URL http://127.0.0.1:8080/, but it also
>starts
>up the app in /e-Denton. In other words, it is running both as the
default
>app and as its own app. What am I doing wrong?
>
>Thx.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



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



RE: ROOT Problem

2004-09-20 Thread Shapira, Yoav

Hi,

>That doesn't seem to work. I still have both running. I changed the
Host as
>below:
>
> unpackWARs="true" autoDeploy="false"
>   xmlValidation="false" xmlNamespaceAware="false"
>   debug="5">

I see I wasn't clear enough in my response.  autoDeploy is not the right
attribute for the Host for Tomcat 5.0.27.  Check the docs: you want
deployOnStartup set to false
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html).

Yoav Shapira



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


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



Re: Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread Filip Hanik - Dev
David,
not sure what you are asking.

Filip

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 11:59 AM
Subject: Single Point of Failure Solutions for clustering Tomcat 5?


Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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

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



RE: Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread Dale, Matt

DNS round robin over 2 or more load balancers over the cluster would be 1 way although 
there are many others.

There are numerous open source load balancers, I use and like Pen.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 18:00
To: [EMAIL PROTECTED]
Subject: Single Point of Failure Solutions for clustering Tomcat 5?


Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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

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


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

RE: Tomcat QueryString Encoding/Decoding Issue

2004-09-20 Thread Mark Thomas
From: koney krishna [mailto:[EMAIL PROTECTED] 
> I have changed the Server.xml ( for setting 
> URLEncoding="UTF-8" ) & web.xml ( to enable 
> setCharacterEncoding = UTF8 )

Are you really using URLEncoding="UTF-8"? It should be URIEncoding="UTF-8"

Also, what version of tomcat?

Mark



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



Re: Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread Filip Hanik - Dev
if you are really into loadbalancers, get www.loadbalancer.org (its open source, not 
sure what the licensing is)

obviously, buying your own hardware can be cheaper.

Filip

- Original Message - 
From: "Dale, Matt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 12:53 PM
Subject: RE: Single Point of Failure Solutions for clustering Tomcat 5?



DNS round robin over 2 or more load balancers over the cluster would be 1 way although 
there are many others.

There are numerous open source load balancers, I use and like Pen.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 18:00
To: [EMAIL PROTECTED]
Subject: Single Point of Failure Solutions for clustering Tomcat 5?


Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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







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

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



RE: Tomcat 5.0.28 broken character encoding handling

2004-09-20 Thread Mark Thomas
> From: Krzysztof Cieniuch [mailto:[EMAIL PROTECTED] 
> Could someone clearly explain me
> how exactly tomcat 5.0.28 handles
> character encodings in requests.

This is not a trivial thing to explain. The short answer is "as the spec
requires".

If you are only interested in request parameters then the following will work (I
have tested this on a clean build of 5.0.x from CVS).

1. Make sure URIEncoding="UTF-8" is set on your connector. Be careful that you
set URIEncoding, not URLEncoding.

2. You can you the following test JSP (saved using default ASCII encoding).
<%@ page language="java" import="java.lang.*,java.util.*"
contentType="text/html; charset=UTF-8" %>


  
UTF-8 Encoding
  
  
Text from JSP page (which is ASCII encoded).

  
  

Text obtained from parameter is:
<%
  request.setCharacterEncoding("UTF-8");
  String param = request.getParameter("anyText");
  out.println(param);
%>
  


I have pasted a range a weird and wonderful characters to this and they all
appear as expected.

> set meta header content-type to UTF-8
meta headers have no effect in tomcat.

> pass -Dfile.encoding=UTF-8 jvm in startup parameters
Not necessary for the above test case. If you want to use UTF-8 text in your JSP
files things get a little more interesting. I haven't looked into this very
much.

> I've downloaded tomcat 4.1.30 did the same test no difference
The TC4.1.x branch will also work using the example above

> I realy don't understand why this is so hard to set character encoding
> corectly.
Again, the short answer is because the early internet technologies didn't handle
this at all. Support for this has been added subsequently whilst retaining
backwards compatability and hence the complexities. The moral here is if you
don't want your application to get into the same mess, design it for i18n from
the start and test it carefully.

> In some post i've read that iso8859-1 character encoding was 
> hardcoded into
> tomcat 4.1.29
> Is this realy true ?
It was in the early 4.1.x releases. It was fixed somewhere between 4.1.24 and
4.1.30 but I can't remember (and don't really have the time to search the CVS
changelog / mail archives to find out exactly when)

> do i realy always must write:
> new
> String(request.getParameter("parameter_name")).getBytes(ISO-88
> 59-1),"whateve
> r_encoding_i_need").
No, you don't ;)  - see above.

> PS. OT: Thinking about switching to Jetty or with this web 
> container also are such problems ?
Feel free. 



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



RE: Application-level security

2004-09-20 Thread Ghanakota, Vishu
Hi,
This is an old issue, but have a small twist in the requirements that I need
to satisfy and that can't be done using the solution outlined in the
following article. I am just wondering if things have changed in tha past
one year. Also, I apologize for the cross-post, but I thought it was
relevant.
Here is my scenario.
I want to expose my Struts based site to our recently added business
partners, either a web service or like a "portlet". And of course, I need to
authenticate them and authorize the resource against their role.  I want to
be able to take the "j_username","j_password" and accomplish everything in
one call other than asking them to authenticate as a "side-effect" of
requesting a resource? My quick and dirty solution was to make an internal
http request and deal with authentication and send the "extracted" response
back. 


I had tough time making my manager understand why it took a little longer
than it should have been, who gave "30 mts" as estimate to our customer to
accomplish this. I ended up taking an hour, including testing :-). 


Thank you,
Vishu 

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 10:19 AM
To: Tomcat Users List
Subject: Re: Application-level security


Chris,

The August 2003 Java Developer's Journal (vol 8 issue 8) has an
article you might want to take a look at:  "ActiveAuthentication -
Extending J2EE form-based authentication" by Thomas Beck;
.

Yes, logout is implemented by invalidating the session.

Since you provide the login module code you can do whatever is
required/desired after the user is authenticated before returning
control to the app server (Tomcat).

If you aren't familiar with JAAS (Java Authentication and Authorization
Service) you should take a look at 
and  before deciding to
roll your own authentication/authorization layer.

Regards,
Robert

Christopher Schultz wrote:

> All,
> I've been involved in quite a few web-based applications, and every 
> time I've done one, the team has a different kind of application-level 
> security.
>
> I'm interested in people's thoughts on the following methods.
>
> 1. Using container-based authentication and authorization (in the form 
> of j_security_check and the  sections of web.xml).
>
> Here are the advantages I see for this:
>
> - Declarative security restrictions. I think this is great! No matter 
> what I decide to do, the fact that I can change the security 
> restrictions using a file instead of code will be mandatory.
>
> - Container supports the actual login procedure, so I don't have to 
> write/manage the code.
>
> Unfortunately, there are also some disadvantages, and some of them are 
> deal-breakers:
>
> - No logout function (does session.invalidate() kill it? it occurs to 
> me that it doesn't, but I haven't yet tried)
>
> - If you hit a resource that requires auth, you go to the login page, 
> login, and then go to the page you were trying to hit. I need to be 
> able to first send the request to an action that will set up the 
> user's session before the "destination" resource is accessed. 
> (deal-breaker)
>
> - If I want to modify usernames or passwords as they are read by 
> j_security_check, I cannot do this. A concrete example: often, it is 
> preferable to have case-insensitive usernames and passwords. Using 
> j_security_check, I cannot flatten-out the case before the 
> authorization is done. (I suppose this might be solved using a custom 
> Realm). (deal-breaker)
>
> Given that container authorization has a few shortcomings, there are 
> also two other obvious styles of AAA:
>
> 2. Do it myself using action-level code. Each action (in my case, 
> struts, but it really doesn't matter) must perform its own check.
>
> This burdon can be lessened by inserting a common superclass that can 
> handle the checks, redirections to login, etc., but that would require 
> me to re-code most of my existing actions because they either need to 
> call an authorization method provided by the superclass or the 
> superclass must implement a "final" version of the request handler 
> method and then call an abstract method defined in the subclass. This 
> seems cleaner yet requires more code changes.
>
> On the upside, I have complete control over the login flow, and I get 
> to keep the desired declarative security model. (Does anyone know if 
> there's an easy way to grab the  stuff from the 
> web.xml file, or would I have to parse it myself and keep my own data 
> structure for this purpose?)
>
> On the downside, I now have to write this code and maintain it. Also, 
> the  and j_security_check conspire together to do 
> really sexy things like cache POST data and send it ultimately to the 
> desired resource. It would take me some time to clone that functionality.
>
> 3. Do it myself using a Filter. This has the same 

Re: Tomcat 5.0.28 broken character encoding handling

2004-09-20 Thread Michael J. Makunas
Mark Thomas wrote:
From: Krzysztof Cieniuch [mailto:[EMAIL PROTECTED] 

set meta header content-type to UTF-8
meta headers have no effect in tomcat.
Is this true of all meta headers (e.g, ,, , etc)? I'm using Tomcat 4.1.

Thanks...
--
** Michael J. Makunas ** http://www.makunas.com/ **
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ROOT Problem

2004-09-20 Thread Steve R. Burrus
Shapira, how do you successfully use the "autodeploy" feature in tomcat 
version 5.5.1 anyway???!!! I have done the usual editing of the 
conf/server.xml file to specify ", 
but alas, after I did this, it won't re-start the context for me!!! Can 
you help please?

Shapira, Yoav wrote:
Hi,
You have autoDeploy enabled (this is the default).  Turn it off by
modifying the Host element in your server.xml.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 12:08 PM
To: Tomcat Users List
Subject: ROOT Problem
Hi,
I set my context to use my app as the default app:

It does call my app with this URL http://127.0.0.1:8080/, but it also
starts
up the app in /e-Denton. In other words, it is running both as the
   

default
 

app and as its own app. What am I doing wrong?
Thx.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



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




RE: ROOT Problem

2004-09-20 Thread Shapira, Yoav

Hi,

>-Original Message-
>From: Steve R. Burrus [mailto:[EMAIL PROTECTED]

It's been a while since I've seen you on this list ;)

> Shapira, how do you successfully use the "autodeploy" feature in
tomcat
>version 5.5.1 anyway???!!!

You download the distribution and unzip it.

>I have done the usual editing of the
>conf/server.xml file to specify ",

You might want to RTFM.  ContextDefault was never a valid Tomcat
configuration element, DefaultContext was valid up to 5.0 but is invalid
in 5.5.

Yoav



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


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



RE: Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread dhay

Hi Matt,

I'm pretty new to all this - would you mind expanding a little on your
"there are many others" comment?

Thanks!

David



|-+>
| |   "Dale, Matt" |
| |   <[EMAIL PROTECTED]|
| |   nt.com>  |
| ||
| |   09/20/2004 01:53 |
| |   PM   |
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>|
  |
|
  |   To:   "Tomcat Users List" <[EMAIL PROTECTED]>
   |
  |   cc:  
|
  |   Subject:  RE: Single Point of Failure Solutions for clustering Tomcat 5? 
|
  
>|





DNS round robin over 2 or more load balancers over the cluster would be 1
way although there are many others.

There are numerous open source load balancers, I use and like Pen.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 18:00
To: [EMAIL PROTECTED]
Subject: Single Point of Failure Solutions for clustering Tomcat 5?


Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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

(See attached file: InterScan_Disclaimer.txt)
-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Re: Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread dhay

Hi Filip,

Couldn't see much software over on loadbalancer.org!!

cheers,

David



|-+>
| |   "Filip Hanik -   |
| |   Dev" |
| |   <[EMAIL PROTECTED]|
| |   om>  |
| ||
| |   09/20/2004 02:05 |
| |   PM   |
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>|
  |
|
  |   To:   "Tomcat Users List" <[EMAIL PROTECTED]>
   |
  |   cc:  
|
  |   Subject:  Re: Single Point of Failure Solutions for clustering Tomcat 5? 
|
  
>|




if you are really into loadbalancers, get www.loadbalancer.org (its open
source, not sure what the licensing is)

obviously, buying your own hardware can be cheaper.

Filip

- Original Message -
From: "Dale, Matt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 12:53 PM
Subject: RE: Single Point of Failure Solutions for clustering Tomcat 5?



DNS round robin over 2 or more load balancers over the cluster would be 1
way although there are many others.

There are numerous open source load balancers, I use and like Pen.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 18:00
To: [EMAIL PROTECTED]
Subject: Single Point of Failure Solutions for clustering Tomcat 5?


Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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








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

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






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



Re: ROOT Problem

2004-09-20 Thread Steve R. Burrus
Shapira, re. me not being "heard from " in a while in this group, I 
have actually been trying to get one of my posts seen for the past 1 -2 
weeks, so it's really nice to FINALLY get a response from someone!! and 
then as to tomcat re-loading, I meant to say "DefaultContext = 
..."!! So how DO you get tomcat v. 5.5.1 to reload???!

Shapira, Yoav wrote:
Hi,
 

-Original Message-
From: Steve R. Burrus [mailto:[EMAIL PROTECTED]
   

It's been a while since I've seen you on this list ;)
 

Shapira, how do you successfully use the "autodeploy" feature in
   

tomcat
 

version 5.5.1 anyway???!!!
   

You download the distribution and unzip it.
 

I have done the usual editing of the
conf/server.xml file to specify ",
   

You might want to RTFM.  ContextDefault was never a valid Tomcat
configuration element, DefaultContext was valid up to 5.0 but is invalid
in 5.5.
Yoav

 




RE: Tomcat 5.0.28 broken character encoding handling

2004-09-20 Thread Mark Thomas
From: Michael J. Makunas [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 20, 2004 8:29 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.0.28 broken character encoding handling
> 
> Mark Thomas wrote:
> >>From: Krzysztof Cieniuch [mailto:[EMAIL PROTECTED] 
> > 
> >>set meta header content-type to UTF-8
> > 
> > meta headers have no effect in tomcat.
> 
> Is this true of all meta headers (e.g,  content="0">, content="no-cache">,  name="Pragma" content="no-cache">, etc)? I'm using Tomcat 4.1.

As far as I am aware yes, as it would require tomcat to reparse the output of
any dynamically generated page to work out what meta headers had been added and
then what to do as a result of them.

Mark



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



Know of a group for JSP development?

2004-09-20 Thread Justin Jaynes
I realize this group is NOT for JSP development
questions.  Does anyone know of such a group?

I have exhausted my books in looking for answers and
would like to chat with other JSP developers.

My appreciation for all this list has already done for
me.

Justin Jaynes



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



RE: Know of a group for JSP development?

2004-09-20 Thread Shapira, Yoav

Hi,
This group is fine for JSP development.  Java.sun.com, Java Ranch,
JGuru, and some other Java sites also have active JSP forums.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Justin Jaynes [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 20, 2004 4:15 PM
>To: [EMAIL PROTECTED]
>Subject: Know of a group for JSP development?
>
>I realize this group is NOT for JSP development
>questions.  Does anyone know of such a group?
>
>I have exhausted my books in looking for answers and
>would like to chat with other JSP developers.
>
>My appreciation for all this list has already done for
>me.
>
>Justin Jaynes
>
>
>
>___
>Do you Yahoo!?
>Declare Yourself - Register online to vote today!
>http://vote.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



a question or two

2004-09-20 Thread Didier McGillis
This site that I'm moving over to an Apache/Tomcat intergrated site has jsp 
and html pages intermingled, so when I move these over and sperate the jsp 
file from the html file I have to create a folder in the Tomcat folders that 
are named the same as the one in the html side?  Is that correct.

_
Scan and help eliminate destructive viruses from your inbound and outbound 
e-mail and attachments. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


Re: a question or two

2004-09-20 Thread QM
On Mon, Sep 20, 2004 at 08:19:44PM +, Didier McGillis wrote:
: This site that I'm moving over to an Apache/Tomcat intergrated site has jsp 
: and html pages intermingled, so when I move these over and sperate the jsp 
: file from the html file I have to create a folder in the Tomcat folders 
: that are named the same as the one in the html side?  Is that correct.

I'm not sure I get you here.  If all of the webapp data is within the
context's path (i.e. you could serve it all from a WAR file) then:
1/ set Apache's doc root to the Tomcat context path
2/ tell Apache to serve the static content and let Tomcat handle the
Java

A slight twist on #1, you could setup Apache with a separate document
root and copy all static content there.  This has the added benefit that
Java code never touches the web server (should you separate the web/app
servers) but will require some fancy script work if the app is not
organized by content, i.e.
{context}
|
+- jsp/
|
+- images/
|
+- html/

... and so on.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: a question or two

2004-09-20 Thread Didier McGillis
I'm used to the slight twist that you were talking to.  I have never seen it 
done in the manner that I am trying to replace.

Anyway I thnk I have just figured out what I need to do :)  dumb brain not 
working today.

From: QM <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: a question or two
Date: Mon, 20 Sep 2004 15:44:52 -0500
On Mon, Sep 20, 2004 at 08:19:44PM +, Didier McGillis wrote:
: This site that I'm moving over to an Apache/Tomcat intergrated site has 
jsp
: and html pages intermingled, so when I move these over and sperate the 
jsp
: file from the html file I have to create a folder in the Tomcat folders
: that are named the same as the one in the html side?  Is that correct.

I'm not sure I get you here.  If all of the webapp data is within the
context's path (i.e. you could serve it all from a WAR file) then:
1/ set Apache's doc root to the Tomcat context path
2/ tell Apache to serve the static content and let Tomcat handle the
Java
A slight twist on #1, you could setup Apache with a separate document
root and copy all static content there.  This has the added benefit that
Java code never touches the web server (should you separate the web/app
servers) but will require some fancy script work if the app is not
organized by content, i.e.
{context}
|
+- jsp/
|
+- images/
|
+- html/
... and so on.
-QM
--
software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new 
MSN Search! Check it out!

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


help to deploy to dir other than webapps

2004-09-20 Thread Wick, Daniel
Hi.

I'm a newbie to the list!

I have a .war file that deploys fine if I put it into the default webapps
directory.  If I add this (below) xml file to the webapps directory
specifying a different spot than webapps, then it doesn't work.  It
partially deploys, but the app can't get some of it's init parameters/files
when it tries to load up.

I have:

my.xml  (put into my webapps directory)






I get:

A WEB-INF directory under /foo/my/work, but it doesn't unpack
everything in the WEB-INF directory. I just the lib and classes directories.
The file my servlet is looking for doesn't get there, or any of the other
directories in my war file (images, etc).

Like I said, it all works if I put the war into webapps.   Anyone know what
might be going wrong?

I'm on HP-UX 11.11 and using Tomcat 4.1 (distrib by HP).

--Dan

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



Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread nyhgan
Dear all,
 
I would like to suggest the jakarta team to host a dedicated forum for all jakarta 
projects, especially the TOMCAT project.
 
Tomcat has evolved from 3.x to 5.5.x, capable of supporting the latest jsp and servlet 
specifications. It is time for Tomcat to rival against other commercial products. I 
believe that having an open discussion forum is the first step toward such a goal as 
it will attract a vast number of new users to the tomcat world.
 
 
nyhgan.
 
 


-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Bjørn T Johansen
So the conclusion would be that BEA isn't worth the cost...
And since I am used to using opensource, including Tomcat, then Tomcat seems to be the 
right way to go... (and maybe JBoss if we get that far...)

Thanks for your replies... :)
BTJ
Shapira, Yoav wrote:
Hi,
I would add a couple of minor points, as others have already covered the main ones.
You say you're only using Weblogic's JSP container.  Tomcat's JSP container (known as 
Jasper) is used not only by Tomcat, but by JBoss, JonAS, IBM's Websphere, and a number 
of other commercial products.  So by switching, you not only get a free solution (BEA 
is $ as others have noted), but one that's used by a huge customer base and with 
many support options.
As QM noted, there's no official professional services provider for Tomcat, or Apache in 
general.  The ASF cannot sanction such an "official" provider because of its legal 
formulation.  However, there are a number of support companies which will do Apache, Tomcat, and 
Jasper.  Some of them, such as Covalent, have an excellent track record, numerous Fortune 1000 
customers, and 24x7 support.  That should be sufficient to CYA for management, which as someone 
mentioned is always a consideration.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 19, 2004 7:32 PM
To: Tomcat Users List
Subject: Tomcat vs BEA Weblogic?
I am taking over a project that's running on Weblogic 8.1 SP3 today.. They
are only using
the jsp-container and it is time to renew the support agreement with BEA.
So I was just wondering, is it worth it? Or is Tomcat as good as WL or
maybe better? Does
WL have features that is missing in Tomcat? When the time comes to use EJB,
is JBoss as
good as/better than WL?
So basically, I would like some advice on why I should/shouldn't continue
with Weblogic? :)

Regards,
BTJ
--
---

Bjørn T Johansen
[EMAIL PROTECTED]
---

Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange
Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

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


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

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


Re: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread QM
On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
: I believe that having an open discussion forum is the first step toward such a goal 
as it will attract a vast number of new users to the tomcat world.

[EMAIL PROTECTED]

??

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Mysql JDBC Drivers: Use 2.x or 3.x?

2004-09-20 Thread Chuck Carson

I am starting to build an application using Tomcat 5.0x and am having problems getting 
the
connection pool setup. Should I be using the 3.x or 2.x Mysql drivers?

The 2 files I have downloaded are:
mysql-connector-java-2.0.14.tar.gz
mysql-connector-java-3.0.15-ga.tar.gz

I am currently trying to get it working with the 3.x driver and have copied it into
$CATALINA_HOME/common/lib. 

However, when I try my sample webapp out I get this following error in the 
logs/catalina.out file:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for 
connect URL
'null'
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at chuck.DBTest1.init(DBTest1.java:20)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:50)


Thanks for any help,
rhugga


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



[Possibly Off Topic - sorry] Class Loading question

2004-09-20 Thread Robert Bateman
I have Tomcat 5.0.25 loaded on a test server where I'm attempting to build a 
web service.  I'm using Axis to handle the SOAP interractions.

So far, I've been able to get Axis to load.  But it seems that Axis is 
attempting to load a module that I'm responsible for in order to process the 
incomming SOAP message in it's SerializerFactory.  All well and good.  Except 
that Axis is bubbling up a call to my module named 
com.sequoiallc.services.RegisterUser.MortgageCompanyType.

I've tried placing the .class file for this module in my WEB-INF/classes 
folder (no luck, class not found.)  I've also tried building a .jar file with 
this class file and all other classes that are part of the web service and 
placing that in WEB-INF/lib.  Again, no luck (class not found).

In the scheme of things, when running Tomcat 5.0.xx *with* -security, do I 
need to grant permission to the jar file that I've created?  Tomcat is 
finding all of the other .jar files that Axis uses within WEB-INF/lib of my 
.war file - so I would think my .jar file would be located too.

Thoughts?


Thanks much!

Bob



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



Re: Mysql JDBC Drivers: Use 2.x or 3.x?

2004-09-20 Thread Robert Bateman
we are using a combination of 3.0.8-stable and 3.0.14-production on our 
servers.  The jar files are placed into the same folder you have placed 
yours.

What connect string are you using?

Bob


On Monday 20 September 2004 05:48 pm, Chuck Carson wrote:
> I am starting to build an application using Tomcat 5.0x and am having
> problems getting the connection pool setup. Should I be using the 3.x or
> 2.x Mysql drivers?
>
> The 2 files I have downloaded are:
> mysql-connector-java-2.0.14.tar.gz
> mysql-connector-java-3.0.15-ga.tar.gz
>
> I am currently trying to get it working with the 3.x driver and have copied
> it into $CATALINA_HOME/common/lib.
>
> However, when I try my sample webapp out I get this following error in the
> logs/catalina.out file: org.apache.commons.dbcp.SQLNestedException: Cannot
> create JDBC driver of class '' for connect URL 'null'
> at


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



RE: is out by factor of 100?

2004-09-20 Thread Peter Johnson
Yoav, 

Thanks for replying,

long timeLeft = session.getLastAccessedTime() +
session.getMaxInactiveInterval() * 1000 - System.currentTimeMillis();

PJ

On Mon, 2004-09-20 at 22:54, Shapira, Yoav wrote:
> Hi,
> How are you checking the time remaining for a session?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Peter Johnson [mailto:[EMAIL PROTECTED]
> >Sent: Monday, September 20, 2004 12:24 AM
> >To: Tomcat Users List
> >Subject:  is out by factor of 100?
> >
> >Hi,
> >
> >Is anyone successfully using the web.xml session timeout configuration
> >with Tomcat 5.0.25? Testing seems to indicate that this setting is out
> >by a factor of 100 however using session.setMaxInactiveInterval seems
> to
> >yield the desired result.
> >
> >E.g. Printing the time remaining (in ms) in a session when using:
> >session.setMaxInactiveInterval(180) // 3 min in seconds
> >  ---> presents 179226 == ~3 min
> >however, setting
> >
> >  5
> >
> >  ---> presents 29992101 == ~500min
> >
> >Thanks,
> >PJ
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Chuck Carson

--- Bjørn T Johansen <[EMAIL PROTECTED]> wrote:

> So the conclusion would be that BEA isn't worth the cost...
> 
> And since I am used to using opensource, including Tomcat, then Tomcat seems to be 
> the 
> right way to go... (and maybe JBoss if we get that far...)
> 
> Thanks for your replies... :)
> 
> 
> BTJ
> 
> Shapira, Yoav wrote:
> > Hi,
> > I would add a couple of minor points, as others have already covered the main ones.
> > 
> > You say you're only using Weblogic's JSP container.  Tomcat's JSP container (known 
> > as Jasper)
> is used not only by Tomcat, but by JBoss, JonAS, IBM's Websphere, and a number of 
> other
> commercial products.  So by switching, you not only get a free solution (BEA is 
> $ as others
> have noted), but one that's used by a huge customer base and with many support 
> options.
> > 
> > As QM noted, there's no official professional services provider for Tomcat, or 
> > Apache in
> general.  The ASF cannot sanction such an "official" provider because of its legal 
> formulation. 
> However, there are a number of support companies which will do Apache, Tomcat, and 
> Jasper.  Some
> of them, such as Covalent, have an excellent track record, numerous Fortune 1000 
> customers, and
> 24x7 support.  That should be sufficient to CYA for management, which as someone 
> mentioned is
> always a consideration.
> > 
> > Yoav Shapira
> > Millennium Research Informatics
> > 
> > 
> > 
> >>-Original Message-
> >>From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
> >>Sent: Sunday, September 19, 2004 7:32 PM
> >>To: Tomcat Users List
> >>Subject: Tomcat vs BEA Weblogic?
> >>
> >>I am taking over a project that's running on Weblogic 8.1 SP3 today.. They
> >>are only using
> >>the jsp-container and it is time to renew the support agreement with BEA.
> >>So I was just wondering, is it worth it? Or is Tomcat as good as WL or
> >>maybe better? Does
> >>WL have features that is missing in Tomcat? When the time comes to use EJB,
> >>is JBoss as
> >>good as/better than WL?
> >>
> >>So basically, I would like some advice on why I should/shouldn't continue
> >>with Weblogic? :)
> >>
> >>
> >>
> >>Regards,
> >>
> >>BTJ
> >>--
> >>---
> >>
> >>Bjørn T Johansen
> >>[EMAIL PROTECTED]
> >>
> >>---
> >>
> >>Someone wrote:
> >>"I understand that if you play a Windows CD backwards you hear strange
> >>Satanic messages"
> >>To which someone replied:
> >>"It's even worse than that; play it forwards and it installs Windows"
> >>---
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > 
> > This e-mail, including any attachments, is a confidential business communication, 
> > and may
> contain information that is confidential, proprietary and/or privileged.  This 
> e-mail is
> intended only for the individual(s) to whom it is addressed, and may not be saved, 
> copied,
> printed, disclosed or used by anyone else.  If you are not the(an) intended 
> recipient, please
> immediately delete this e-mail from your computer system and notify the sender.  
> Thank you.
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

We are also looking to migrate all our apps from weblogic to tomcat. When you look at 
the "real
world" TCO, tomcat is defintely the way to go. If you need better performance just 
scale out
behind an IP load balancer or use Tomcat clustering.

Our main reason was BEA's Nazi licensing practices, development license costs, support 
costs,
etc We are now down to only 1 app that use EJB's and it is getting ready to be 
decommisioned.

I am also damn impressed in how far the Tomcat project has come in the recent years. 
Support for
tomcat is as good if not better than BEA's support for weblogic, it best of all it's 
free.

As far as JBoss goes, I heard a nasty rumor that JBoss might not be around much longer.

-rhugga

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



Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)

2004-09-20 Thread Chuck Carson

--- Robert Bateman <[EMAIL PROTECTED]> wrote:

> we are using a combination of 3.0.8-stable and 3.0.14-production on our 
> servers.  The jar files are placed into the same folder you have placed 
> yours.
> 
> What connect string are you using?
> 
> Bob
 

I am basically just trying to setup a connection pool as in the documentaion. I am 
relatively new
to java but have several years of C/C++. I am also a System Engineer during the day, 
but I am
writing a network mangement app for my company and decided to go with tomcat/java. So 
I am a bit
rusty on the nitty-gritty of the app server setup.

First, here is my server.xml (sorry long)


  
  
  




  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
validationQuery
SELECT * FROM TEST_USER
  
  
maxWait
5000
  
  
maxActive
4
  
  
password
c4milez
  
  
url
jdbc:mysql://localhost:3306/tomcat-test1?autoReconnect=true
  
  
driverClassName
org.gjt.mm.mysql.Driver
  
  
maxIdle
2
  
  
username
tomcat5
  

  
  





  

  
  
  

  


And here is my webapps/testapp1/WEB-INF/web.xml file:



  Test App 1

  
DB Connection
jdbc/MysqlTest1
javax.sql.DataSource
Container
  



I created the DataSource using the Admin app within Tomcat but then I noticed it did 
not add a
factory line as in the docs, so I added this by hand and restarted tomcat:
  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  

Here is a simple class I am using to test with:
package chuck;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest1
{
String foo = "Not Connected";
int bar = -1;

public void init() {
try {
Context ctx = new InitialContext();
if (ctx == null)
throw new Exception("Error: No context.");
DataSource ds = (DataSource) 
ctx.lookup("java:comp/env/jdbc/MysqlTest1");

if (ds != null) {
Connection conn = ds.getConnection();

if (conn != null) {
foo = "Database connection established: " +
conn.toString();
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select * from
TEST_USER");
if (rs.next()) {
foo = rs.getString(2);
bar = rs.getInt(1);
}
conn.close();
}
}
 } catch (Exception e) {
e.printStackTrace();
 }
}

public String getFoo() { return foo; }
public int getBar() { return bar; }
}

Any suggestions?
Thx,
rhugga

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



classpath with a service help

2004-09-20 Thread John MccLain
Howdy,
I wish to deploy Tomct5.0.28 along with a webapp. I want to be able to
insure that Tomcat is deployed as a service, uses the standard classpath AND
1 more classpath entry. How can I set up the Tomcat windows installer to
setup Tomcat as a service and include a specific directory on the classpath?
Do I simply change ...tomcat/bin/service.bat (is that all that the installer
runs)? if so, then how? I would prefer to not haveto have clients manually
configuring classpath's for windows services.

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes."


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



Tomcat 4.x or 5.0x???

2004-09-20 Thread Chuck Carson

I am somewhat new to java development (although I have been writing C/C++ for 10+ yrs) 
and am
writing a network mangement app and decided to use java/tomcat. Just a question: Would 
I be better
off using 4.x or should I use 5.0x? The app I am writing will not likely be ready for 
at least a
year so I kinda want to use the latest possible stable version so I'm still pretty up 
to date 1
year from now. I want to use j2se 1.4.2 and support Mysql, PostgreSQL, and Oracle. 
(This app is
currently for proprietary use in my company but I may spin it off into a open-source 
project at a
later date, thus I want to support those 3 RDBMS's)  My OS is currently Solaris 9 but 
might
eventually be either SuSE or Fedora using the 2.6 kernel. 

My current plans don't call for anything fancy, but not sure what roadblocks I will 
encounter
along the way and what work-arounds I will need. So I would like to select the best 
possible app
server version now and roll with it.

Thx,
rhugga

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



Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)

2004-09-20 Thread Robert Bateman
Chuck,

I think you need to move your connection pooling over to your context.xml at 
the web application level.  Here is my pool definition from one of my apps:





url
jdbc:mysql://localhost:3306/Sequoia_Admin?autoReconnect=true,maxReconnects=3
 



username
x


password




maxActive
100



maxWait
15000



validationQuery
SELECT version()



testOnBorrow
true


driverClassName
com.mysql.jdbc.Driver



maxIdle
100


removeAbandoned
true



removeAbandonedTimeout
60


logAbandoned
true




it may not be perfect, but it works on our end.


Hope that helps!

Bob

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



Re: classpath with a service help

2004-09-20 Thread QM
On Mon, Sep 20, 2004 at 03:16:10PM -0700, John MccLain wrote:
: I wish to deploy Tomct5.0.28 along with a webapp. I want to be able to
: insure that Tomcat is deployed as a service, uses the standard classpath AND
: 1 more classpath entry. How can I set up the Tomcat windows installer to
: setup Tomcat as a service and include a specific directory on the classpath?
: Do I simply change ...tomcat/bin/service.bat (is that all that the installer
: runs)? if so, then how? I would prefer to not haveto have clients manually
: configuring classpath's for windows services.

Tomcat (and most other web containers) don't use the classpath as set as
an environment variable or on the commandline.  They use

1/ the JARs in the webapp's WEB-INF/lib and bare class files in
WEB-INF/classes

2/ some container-specific hierarchy of classloaders, usually in a
chain-of-responsibility pattern.  Tomcat uses
{Tomcat install}/common/lib
{Tomcat install}/common/classes
{Tomcat install}/shared/lib
{Tomcat install}/shared/classes
{Tomcat install}/server/lib
{Tomcat install}/server/classes

(though probably not in that order ;)

Long story short: if you use the container's (and the spec's) method of
making classes available, there should be no need to set a classpath.
Make your "one other entry" available in one of the places mentioned
above.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat 4.x or 5.0x???

2004-09-20 Thread QM
On Mon, Sep 20, 2004 at 03:17:49PM -0700, Chuck Carson wrote:
: Would I be better
: off using 4.x or should I use 5.0x? The app I am writing will not likely be ready 
for at least a
: year so I kinda want to use the latest possible stable version so I'm still pretty 
up to date 1
: year from now.

A year is a long time =)

1/ the "latest" Tomcat is v5.5, but that's still in alpha (or beta?) so
you probably don't want to use that if you're writing an app anew

2/ Tomcat 5.0 is stable and fairly modern (servlet spec 2.4/ JSP 2.0).

A safe bet would be to use 5.0 for now, but keep an eye on 5.5 (and
whatever else comes out in the next year).

Generally speaking, as long as you keep an eye on the relevant J2EE
specs and don't code to container-specific features, migration between
containers/versions is straightforward.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Simple server.xml config question... AJP13 Connector vs. CoyoteConnector

2004-09-20 Thread Montz, James C. (James Tower)
Are these 2 Connector's mutually exclusive and/or redundant in the same
server.xml?
...



...




I have also seen variations of these documented in books & online;



And




What should the proper configuration of connector's be for Apache 2.0
Front Ending Tomcat 4.1 using mod_jk2?
Could someone explain what the differences between the different classes
are (org.apache.coyote.tomcat4.CoyoteConnector,
org.apache.ajp.tomcat4.Ajp13Connector)?

My original understanding was that Coyote is basically a stand alone
HTTP Server for Tomcat, and Ajp13Connector handled the inter process
communication for Apache to Tomcat.


Thanks,

James


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



JAASRealm / ClassCastException

2004-09-20 Thread Rene Paulokat
hello,
since a couple days i try to increase my understanding of JAASRealm.
but this ongoing classcastexceptions do give me a hard time...

tomcat 5.0.28

my goal is to authenticate users via servlet (FORM).
so i tried this;

[LoginServlet]:
 
 MyCallbackHandler handler = new MyCallbackHandler(name,password);
 LoginContext context = new LoginContext("ModulName", handler);
 context.login();


which results in that wellknown cce, as soon as my modul in its
login-method wants to retrieve 'MyCallbackHandler'

[AuthModul]:
...

 public boolean login() throws LoginException {
   ...
   MyCallBackHandler handler = (MyCallBackHandler) this.handler;
   // right here the cce is thrown
   ...
...

so my thinking melts down to the following:
i would like to keep all classes below WEB-INF and dont want to touch 
$CATALINA_HOME/server/lib or - /common/lib

but where to put the custom AuthenticationModule, Handler, Principals
if this results in the reported loader-issue

the changelog for 5.0.28 mentions that u can define in your Realm-definition,
if the Auth-Module should be loaded by your context-classloader.
useContextClassLoader="true" //default

but even if i set it to false, its still loaded by the webappclassloader
AuthModule/MyCallbackhandler loaded by  WebAppClassloader, 
LoginContext / SecureCallbackhandler loaded by 'null' 

can anybody point me in the right direction?

thanks in advance

rene



-- 
gpg-key 8FC78254 http://www.so36.net/keys/rene.asc
fingerprint: E883 D359 3F56 51AF 0294  8BEB 16B3 15BD 8FC7 8254

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



RE: Tomcat vs BEA Weblogic?

2004-09-20 Thread Mike Curwen
Mwah-h!

I would **love** to know your source on that.  Hani S. doesn't count 

> 
> As far as JBoss goes, I heard a nasty rumor that JBoss might 
> not be around much longer.
> 
> -rhugga
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Tomcat vs BEA Weblogic?

2004-09-20 Thread Chuck Carson

It was the Director of PR for JBoss as of about 5 months ago. We were trying to buy the
documentation and he was the only one we could even get ahold of. I think his name was 
Gary but I
will have to dig thru my contact to be sure. Also, I don't think he was a JBoss 
employee but a
consultant for them.

Just what I heard. I know the product is good, I just got the impression they were 
having
political problems... Our developers really like it.

-rhugga
--- Mike Curwen <[EMAIL PROTECTED]> wrote:

> Mwah-h!
> 
> I would **love** to know your source on that.  Hani S. doesn't count 
> 
> > 
> > As far as JBoss goes, I heard a nasty rumor that JBoss might 
> > not be around much longer.
> > 
> > -rhugga
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


=
Chuck Carson - Sr. Systems Engineer
Syrrx, Inc. - www.syrrx.com
10410 Science Center Drive
San Diego, CA 92121
Work: 858.731.3540
Fax:  858.550.0526

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



How to get tomcat 5.5.1 to re-start

2004-09-20 Thread Steve R. Burrus
Can anyone/anybody please tell me just how exactly I can go about 
getting Tomcat version 5.5.1 to re-start it's context???!! It doesn't 
seem to wanna do it thru the old method of editing the server.xml file 
with !!

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


Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Dennis Dai
On 9/20/2004 3:00 PM, Chuck Carson wrote:
As far as JBoss goes, I heard a nasty rumor that JBoss might not be around much longer.
Well, you do know that there're tomcat developers that work for JBoss on 
this list, right? ;-)

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


Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)

2004-09-20 Thread Chuck Carson

--- Robert Bateman <[EMAIL PROTECTED]> wrote:

> Chuck,
> 
> I think you need to move your connection pooling over to your context.xml at 
> the web application level.  Here is my pool definition from one of my apps:
> 
>  scope="Shareable"
> type="javax.sql.DataSource"/>
> 
>   
>   
>   url
> jdbc:mysql://localhost:3306/Sequoia_Admin?autoReconnect=true,maxReconnects=3
>  
>   
> 
>   
>   username
>   x
>   
>   
>   password
>   
>   
>   
>   
>   maxActive
>   100
>   
>   
>   
>   maxWait
>   15000
>   
>   
>   
>   validationQuery
>   SELECT version()
>   
>   
>   
>   testOnBorrow
>   true
>   
>   
>   driverClassName
>   com.mysql.jdbc.Driver
>   
>   
>   
>   maxIdle
>   100
>   
>   
>   removeAbandoned
>   true
>   
>   
>   
>   removeAbandonedTimeout
>   60
>   
>   
>   logAbandoned
>   true
>   
> 
> 
> 
> it may not be perfect, but it works on our end.
> 
> 
> Hope that helps!
> 
> Bob

Thanks, I give that a shot...
-rhugga


=
Chuck Carson - Sr. Systems Engineer
Syrrx, Inc. - www.syrrx.com
10410 Science Center Drive
San Diego, CA 92121
Work: 858.731.3540
Fax:  858.550.0526

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



Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Chuck Carson

--- Dennis Dai <[EMAIL PROTECTED]> wrote:

> On 9/20/2004 3:00 PM, Chuck Carson wrote:
> 
> > As far as JBoss goes, I heard a nasty rumor that JBoss might not be around much 
> > longer.
> 
> Well, you do know that there're tomcat developers that work for JBoss on 
> this list, right? ;-)
> 
> -- 
> Dennis Dai
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Im just relaying what this guy told me. Obviously jboss would not disappear, just 
whatever
'entity' this was in Georgia I believe is where they were located. We tried contacting 
them when
we were first looking into moving from weblogic. This was also several months ago so 
alot could
have happened in that time.

I think the guy said some of the head guys were butting heads and that sort of stuff. 
I have the
contact info somewhere. I wanna say it was a guy named Gary but not 100%.

-rhugga



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



loading dll's from webapp

2004-09-20 Thread John MccLain

Howdy,
When I Kick off Tomct as a service (from windows service mgr.), it fails
loading my context because
I am trying to loadLibrary a few DLL's in a context startup listener. It
can't seem to find the DLL's, HOWEVER, my system path points to their
directory - and, when I start tomcat from Eclipse, using the sysdeo plugin,
it works fine. How can
I get the service to use the system path to find my DLL files ???

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes."


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



Re: How to get tomcat 5.5.1 to re-start

2004-09-20 Thread Fred Stluka
Check the archives for this list.  Yoav Shapira and Remy Maucherat
answered this question just the other day.  Remy explained a bit
and pointed us to:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
which explains more.

--Fred
--
 Fred Stluka -- mailto:[EMAIL PROTECTED] -- http://bristle.com/~fred/
 Bristle Software, Inc -- http://bristle.com -- "Glad to be of service!"
--

"Steve R. Burrus" wrote:

> Can anyone/anybody please tell me just how exactly I can go about
> getting Tomcat version 5.5.1 to re-start it's context???!! It doesn't
> seem to wanna do it thru the old method of editing the server.xml file
> with !!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Single Point of Failure Solutions for clustering Tomcat 5?

2004-09-20 Thread Filip Hanik \(lists\)
http://www.loadbalancer.org/download.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 2:37 PM
To: Tomcat Users List
Subject: Re: Single Point of Failure Solutions for clustering Tomcat 5?



Hi Filip,

Couldn't see much software over on loadbalancer.org!!

cheers,

David



|-+>
| |   "Filip Hanik -   |
| |   Dev" |
| |   <[EMAIL PROTECTED]|
| |   om>  |
| ||
| |   09/20/2004 02:05 |
| |   PM   |
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>

>---
-|
  |
|
  |   To:   "Tomcat Users List" <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  Re: Single Point of Failure Solutions for clustering
Tomcat 5? |

>---
-|




if you are really into loadbalancers, get www.loadbalancer.org (its open
source, not sure what the licensing is)

obviously, buying your own hardware can be cheaper.

Filip

- Original Message -
From: "Dale, Matt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 12:53 PM
Subject: RE: Single Point of Failure Solutions for clustering Tomcat 5?



DNS round robin over 2 or more load balancers over the cluster would be 1
way although there are many others.

There are numerous open source load balancers, I use and like Pen.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 September 2004 18:00
To: [EMAIL PROTECTED]
Subject: Single Point of Failure Solutions for clustering Tomcat 5?


Hi,

Can anyone advise on solutions to having s Single Point of Failure when
clustering Tomcat 5?

Are there any opensource solutions out there?

Any real life experiences would be greatly appreciated!

cheers,

David





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









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

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






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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 9/17/2004


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



war file not deleted on an undeploy

2004-09-20 Thread Richard Clayton
I've run into a problem running Tomcat 5.0.24 and later on Windows XP
(Service Pack 2). When I deploy a web app as a war file using the Tomcat Web
Application Manager, the web app works as expected. However when I then use
the Undeploy link on the Tomcat Web Application Manager page, the web app is
undeployed, the directory under $CATALINA_HOME/webapps is removed, but the
war file remains. That keeps me from easily redeploying the web app through
the manager interface. The only way to remove the war file is to shutdown
Tomcat.

 

I am running a fresh install of Tomcat with the default settings and have
tried this with numerous web apps, some simple, some complex.

 

When I try this on any version of Tomcat 5.0.x up to Tomcat 5.0.19, the war
file is deleted on an undeploy (i.e., normal behavior).

 

Has anyone else noticed this problem? Is this a bug in Tomcat or an issue
with Windows? Are there any configuration settings in Tomcat one can use to
work around this problem?

 

Bug #28262 in Bugzilla seems to address an issue close to this.

 

Thanks in advance for any help or advice,

Richard Clayton

 



RE: Tomcat vs BEA Weblogic?

2004-09-20 Thread John Najarian
JBoss is having trouble becuase there is another freeware/shareware
application server from part or all of the original developer group
that developed JBoss.  I wish I could recll the name I want to say
genuity but I'm not sure.

As far as JBoss going away I don't know


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 20, 2004 4:00 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat vs BEA Weblogic?

Mwah-h!

I would **love** to know your source on that.  Hani S. doesn't count 

> 
> As far as JBoss goes, I heard a nasty rumor that JBoss might 
> not be around much longer.
> 
> -rhugga
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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




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



Document

2004-09-20 Thread hgomez
--  Virus Warning Message (on uusnwa0p)

Found virus WORM_NETSKY.Z in file Informations.txt 
   
 .exe (in Informations.zip)
The file is deleted.

-
Important informations!


--  Virus Warning Message (on uusnwa0p)

Informations.zip is removed from here because it contains a virus.

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

Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Dennis Dai
That's Geronimo - another Apache project.
On 9/20/2004 5:03 PM, John Najarian wrote:
JBoss is having trouble becuase there is another freeware/shareware
application server from part or all of the original developer group
that developed JBoss.  I wish I could recll the name I want to say
genuity but I'm not sure.
As far as JBoss going away I don't know
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 20, 2004 4:00 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat vs BEA Weblogic?

Mwah-h!
I would **love** to know your source on that.  Hani S. doesn't count 

As far as JBoss goes, I heard a nasty rumor that JBoss might 
not be around much longer.

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


Re: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread Peng Tuck Kwok
You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?  
Activity seems low if you ask me. Don't know what the plans are for the forum. 


On Mon, 20 Sep 2004 16:14:23 -0500, QM <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
> : I believe that having an open discussion forum is the first step toward such a 
> goal as it will attract a vast number of new users to the tomcat world.
> 
> [EMAIL PROTECTED]
> 
> ??
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: Tomcat vs BEA Weblogic?

2004-09-20 Thread John Najarian
You're right & thanks.

Since it comes from apache I would bet the documentation is probably better
than JBoss'.  I never liked the documentation from JBoss.  They still don't
allow users to download version 4 documentation and that's been out for
close to a year.

-Original Message-
From: Dennis Dai [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 20, 2004 5:47 PM
To: Tomcat Users List
Subject: Re: Tomcat vs BEA Weblogic?

That's Geronimo - another Apache project.

On 9/20/2004 5:03 PM, John Najarian wrote:
> JBoss is having trouble becuase there is another freeware/shareware
> application server from part or all of the original developer group
> that developed JBoss.  I wish I could recll the name I want to say
> genuity but I'm not sure.
> 
> As far as JBoss going away I don't know
> 
> 
> -Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 20, 2004 4:00 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat vs BEA Weblogic?
> 
> Mwah-h!
> 
> I would **love** to know your source on that.  Hani S. doesn't count 
> 
>> 
>> As far as JBoss goes, I heard a nasty rumor that JBoss might 
>> not be around much longer.
>> 
>> -rhugga
>> 

-- 
Dennis Dai
[EMAIL PROTECTED]

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




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



Tomcat Hanging...

2004-09-20 Thread Ercan, Tolga
I'm currently trying to deploy tomcat and we're having a problem with
tomcat appearing to hang.  Here's the environment:

 

Apache 1.3.19

Mod_jk

Tomcat 5.0.27

 

We have 5 apache servers, connecting to 2 tomcat workers via mod_jk.
These tomcat workers are load balanced via JK, and we've clustered the
two instances.  What we're seeing is the environment work for about 5
minutes. During that time, the number of open connections to either
tomcat instance steadily increases to 250+.  When we reach that
threshold, mod_jk log starts to report the following errors for both
workers:

 

[Fri Sep 10 16:43:00 2004]  [jk_ajp_common.c (1024)]: Error connecting
to the Tomcat process.

[Fri Sep 10 16:43:00 2004]  [jk_ajp_common.c (1468)]: sending request to
tomcat failed in send loop. err=1

[Fri Sep 10 16:43:21 2004]  [jk_connect.c (188)]: jk_open_socket,
connect() failed errno = 145

[Fri Sep 10 16:43:21 2004]  [jk_ajp_common.c (720)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (xx.xx.xx.xx:8030). Failed errno = 145

[Fri Sep 10 16:43:21 2004]  [jk_ajp_common.c (1024)]: Error connecting
to the Tomcat process.

[Fri Sep 10 16:43:21 2004]  [jk_ajp_common.c (1468)]: sending request to
tomcat failed in send loop. err=2

[Fri Sep 10 16:43:21 2004]  [jk_ajp_common.c (1477)]: Error connecting
to tomcat. Tomcat is probably not started or is listening on the wrong
port. worker=worker1 failed errno = 145

 

The tomcat servers (worker1, worker2) are both up, and listening on port
8030 but at this point, the application appears to hang.  My questions
are:

 

1)  Should there be this many open connections?  Is having this many
connections open create problems communicating with tomcat?

2)  Is this a known issue? I haven't seen anyone else report the
problem, so I'm assuming no...

3)  Is this a tomcat performance issue?  What are the performance
limitations of tomcat?  Or am I barking up the wrong tree in thinking
this is a tomcat performance issue?

 

Thanks!

~t



Jasper Exception unable to rewrite URL

2004-09-20 Thread Sebastian Ho
Hi

I have this error when running my JSP. Any advise?

javax.servlet.ServletException: Cannot create rewrite URL:
java.net.MalformedURLException: You must specify exactly one of
"forward", "href", "page" or "action"

Thanks

Sebastian Ho


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



Re: Know of a group for JSP development?

2004-09-20 Thread Jarl Skogsholm
Join a java group, join a html group, combine what you learn.  ;)
On Mon, 20 Sep 2004 13:14:46 -0700 (PDT), Justin Jaynes 
<[EMAIL PROTECTED]> wrote:

I realize this group is NOT for JSP development
questions.  Does anyone know of such a group?
I have exhausted my books in looking for answers and
would like to chat with other JSP developers.
My appreciation for all this list has already done for
me.
Justin Jaynes
--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)

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


Re: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread nyhgan
Hi,
 
I didn't know that there is already a TOMCAT forum.  It is sad to see that the 
activity is so low there. Maybe that is because no one knows about its existence. I 
hope the tomcat team can publish the forum url in the release note and also on the 
tomcat website. 
 
thanks!
 
nyhgan
 
 
 

Peng Tuck Kwok <[EMAIL PROTECTED]> wrote:
You mean like the one here : http://nagoya.apache.org/jive/index.jsp ? 
Activity seems low if you ask me. Don't know what the plans are for the forum. 


On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
> On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
> : I believe that having an open discussion forum is the first step toward such a 
> goal as it will attract a vast number of new users to the tomcat world.
> 
> [EMAIL PROTECTED]
> 
> ??
> 
> -QM
> 
> --
> 
> software -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



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

Re: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread Suresh Akula
Hi
I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and set 
the ENV variable
CATALINA_HOME and JAVA_HOME and also included all the jars available in 
C:\Tomcat\Common\lib folder in the classpath. But when i go to command 
prompt C:\Tomcat\bin and execute startup.bat a black window comes up and 
disappears but my server never starts.On the command window where i executed 
startup there appears 4 lines as follows
Using CATALINA_BASE:   C:\Tomca
Using CATALINA_HOME:   C:\Tomca
Using CATALINA_TMPDIR: C:\Tomca
Using JAVA_HOME:   C:\Java
but am not able to start the server
Can anyone please help me on this.

Thanks
Suresh Akula
From: nyhgan <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>,  Peng Tuck Kwok 
<[EMAIL PROTECTED]>
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)

Hi,
I didn't know that there is already a TOMCAT forum.  It is sad to see that 
the activity is so low there. Maybe that is because no one knows about its 
existence. I hope the tomcat team can publish the forum url in the release 
note and also on the tomcat website.

thanks!
nyhgan

Peng Tuck Kwok <[EMAIL PROTECTED]> wrote:
You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
Activity seems low if you ask me. Don't know what the plans are for the 
forum.

On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
> On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
> : I believe that having an open discussion forum is the first step 
toward such a goal as it will attract a vast number of new users to the 
tomcat world.
>
> [EMAIL PROTECTED]
>
> ??
>
> -QM
>
> --
>
> software -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

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

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


Do the jars I use affect webapp reloadability?

2004-09-20 Thread Anthony E. Carlos
Hello,
I'm experiencing a memory problem that is documented in 
http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom. 
When I redeploy a web app, a 12MB chunk of memory gets taken by the 
JVM. After a few redeployments, I get an OutOfMemory error. The faq 
mentioned above blames it on the Classloader not being able to be 
recycled. I know that I can increase the size of the memory, but that 
isn't the real solution because eventually I'm going to have to restart 
Tomcat to reclaim the lost memory.

My question is, do the jars I'm using affect the reloadability of a web 
app so that the Classloader cannot be recycled? I suspect this because 
as soon as I add a few jars to my apps, I start experiencing this 
phenomenon. I have a suspicion that it is OJB or the Oracle JDBC 
drivers, but I don't have any empirical data. Do you know of any jars 
that specifically cause this? Is there anything that can be done to 
ensure that the Classloader can be recycled (thus allowing me to 
redeploy web apps without wasting memory)?

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


RE: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread John Najarian
What OS are you running?  Windows?

Have you checked the logs?  They're under:
C:\{tomcat installation}\logs

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 20, 2004 8:30 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Suggestion: A dedicated TOMCAT forum!

Hi
I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and set

the ENV variable
CATALINA_HOME and JAVA_HOME and also included all the jars available in 
C:\Tomcat\Common\lib folder in the classpath. But when i go to command 
prompt C:\Tomcat\bin and execute startup.bat a black window comes up and 
disappears but my server never starts.On the command window where i executed

startup there appears 4 lines as follows
Using CATALINA_BASE:   C:\Tomca
Using CATALINA_HOME:   C:\Tomca
Using CATALINA_TMPDIR: C:\Tomca
Using JAVA_HOME:   C:\Java
but am not able to start the server
Can anyone please help me on this.


Thanks
Suresh Akula

>From: nyhgan <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>,  Peng Tuck Kwok 
><[EMAIL PROTECTED]>
>Subject: Re: Suggestion: A dedicated TOMCAT forum!
>Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
>
>Hi,
>
>I didn't know that there is already a TOMCAT forum.  It is sad to see that 
>the activity is so low there. Maybe that is because no one knows about its 
>existence. I hope the tomcat team can publish the forum url in the release 
>note and also on the tomcat website.
>
>thanks!
>
>nyhgan
>
>
>
>
>Peng Tuck Kwok <[EMAIL PROTECTED]> wrote:
>You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
>Activity seems low if you ask me. Don't know what the plans are for the 
>forum.
>
>
>On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
> > On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
> > : I believe that having an open discussion forum is the first step 
>toward such a goal as it will attract a vast number of new users to the 
>tomcat world.
> >
> > [EMAIL PROTECTED]
> >
> > ??
> >
> > -QM
> >
> > --
> >
> > software -- http://www.brandxdev.net
> > tech news -- http://www.RoarNetworX.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com



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




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



Re: Suggestion: A dedicated TOMCAT forum!

2004-09-20 Thread muss
Hi Suresh,

Just by looking at your startup output it seems to be that you have set
your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as
it should be. Also ensure that your SDK installation exists in C:\Java as
this is what your JAVA_HOME environment variable is set to. Try doing this
and re-run your server and in theory you shouldn't have any problems.

Kindest Regards,
Matt Anderson

> Hi
> I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and
> set
> the ENV variable
> CATALINA_HOME and JAVA_HOME and also included all the jars available in
> C:\Tomcat\Common\lib folder in the classpath. But when i go to command
> prompt C:\Tomcat\bin and execute startup.bat a black window comes up and
> disappears but my server never starts.On the command window where i
> executed
> startup there appears 4 lines as follows
> Using CATALINA_BASE:   C:\Tomca
> Using CATALINA_HOME:   C:\Tomca
> Using CATALINA_TMPDIR: C:\Tomca
> Using JAVA_HOME:   C:\Java
> but am not able to start the server
> Can anyone please help me on this.
>
>
> Thanks
> Suresh Akula
>
>>From: nyhgan <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>,  Peng Tuck Kwok
>><[EMAIL PROTECTED]>
>>Subject: Re: Suggestion: A dedicated TOMCAT forum!
>>Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
>>
>>Hi,
>>
>>I didn't know that there is already a TOMCAT forum.  It is sad to see
>> that
>>the activity is so low there. Maybe that is because no one knows about
>> its
>>existence. I hope the tomcat team can publish the forum url in the
>> release
>>note and also on the tomcat website.
>>
>>thanks!
>>
>>nyhgan
>>
>>
>>
>>
>>Peng Tuck Kwok <[EMAIL PROTECTED]> wrote:
>>You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
>>Activity seems low if you ask me. Don't know what the plans are for the
>>forum.
>>
>>
>>On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
>> > On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
>> > : I believe that having an open discussion forum is the first step
>>toward such a goal as it will attract a vast number of new users to the
>>tomcat world.
>> >
>> > [EMAIL PROTECTED]
>> >
>> > ??
>> >
>> > -QM
>> >
>> > --
>> >
>> > software -- http://www.brandxdev.net
>> > tech news -- http://www.RoarNetworX.com
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>__
>>Do You Yahoo!?
>>Tired of spam?  Yahoo! Mail has the best spam protection around
>>http://mail.yahoo.com
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



real world deployment with multiple virtual hosts

2004-09-20 Thread Anthony E. Carlos
Hello,
I've configured Tomcat with multiple virtual hosts. However, because of 
ever-increasing memory usage, (see 
http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom), I 
often have to restart Tomcat. Thus a dozen or so sites all go down for 
a minute or two while each of them reloads.

My question is, what are people doing to avoid this problem? Are people 
generally running an individual instance of Tomcat for each virtual 
host? This would isolate each host and thus prevent the problem I'm 
having, but it seems like an awful waste of resources especially 
compared to Apache.

Or, is there a way to restart just one virtual host?
Thanks for your help,
-Anthony Carlos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >