TomCat and support of WebServices stacks: JAX-WS vs. Axis

2008-05-07 Thread Ben Stover
Which type of WebService stacks does TomCat support-out-of-the-box (=without 
installing additional components):

JAX-WS

   and/or

Axis



Assume I get to a remote server where TomCat is running. How can I check what 
types of WebServices (and which spec version)
are currently supported by this Tomcat installation?

Ben




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



Re: CPU usage quirk with multiple tomcat instances

2008-05-07 Thread Dan Keeley
We dont have synchronisation issues - I've already profiled extensively with 
jprofiler..  Well we did, but after using jprofiler we dont :)


Err, I think our app is the same as yours :) What im saying is that for the 
same load the machine uses more cpu with 2 tomcat instances...  So i guess 
that is correct, i was just looking for why!


Dan
- Original Message - 
From: Leon Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Lists 
[EMAIL PROTECTED]

Sent: Tuesday, May 06, 2008 9:33 AM
Subject: Re: CPU usage quirk with multiple tomcat instances



Hello Dan,

what also may happening is that you have unneeded or errorneous
synchronisation somewhere in your code. Two instances : less code in
same block and vm, effectively less synchronization.

try to profile whether some use cases take longer on the single tomcat
per machine.

We once tried to run multiple tomcats on one machine and the results
where opposed to yours: less performance, so i think your app behaves
funny :-)

regards
Leon


On Fri, May 2, 2008 at 2:42 PM, Lists [EMAIL PROTECTED] wrote:

Hi,

 We have a Tomcat app that is loadbalanced by hardware.  I have 4 boxes
 available in our test env, all of which vary slightly but not massively 
in

 spec.

 Anyway I moved from 2 tomcat instances on each machine ( listening on
 different ports ) down to 1 and I noticed for the same load the cpu
 utilisation dropped by 20%.  Interesting, how can this be explained?  Is
 this the extra effort in tomcat or something?  Or is it memory related? 
the
 2 instances had 1gb each, and the single one has been given 4gb. 
However I
 have jprofiled the instance and it has never seemed memory hungry. 
Anyway I
 suspect even at 2gb for 1 instance it would still be 20% less cpu - i 
can

 always do a run to prove this if people think that necessary..

 Another thing i've found is that on one server I have abnormally high 
CPU
 utilisation for the same load.  I've checked the logging levels are all 
the

 same as are the java VM and the VM config settings.  I wonder what else
 could cause this?  All i can think is some sort of OS or hardware
 malfunction! maybe the CPU cache is duff or something.

 Many thanks to any input to my Friday weird-ness!
 Dan

 
 Message sent using UebiMiau 2.7.10



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




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




--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.9/1418 - Release Date: 5/6/2008 
5:17 PM






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



Re: CPU usage quirk with multiple tomcat instances

2008-05-07 Thread Leon Rosenberg
btw, how do you measure it? vmstats? top?

On Wed, May 7, 2008 at 9:40 AM, Dan Keeley [EMAIL PROTECTED] wrote:
 We dont have synchronisation issues - I've already profiled extensively with
 jprofiler..  Well we did, but after using jprofiler we dont :)

  Err, I think our app is the same as yours :) What im saying is that for the
 same load the machine uses more cpu with 2 tomcat instances...  So i guess
 that is correct, i was just looking for why!

  Dan

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



RE: Installing tomcat on multiple cpu X_86 64 bit machine

2008-05-07 Thread Peter Crowther
 From: sur_1805 [mailto:[EMAIL PROTECTED]
 now. can i install the tomcat5.5 and jdk1.5 on machine(4
 processor with 64
 bit on RHEL 5) without need to worry about load balancing and
 tuning at the time of installation?

Yes, in the same way that you can install (say) Apache httpd and PHP without 
worrying about load balancing and tuning at the time of installation.  It'll 
work; it may not be ideal, but you can clean up later once you find out what 
the application *really* does.

- Peter

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



Reg JSP changes

2008-05-07 Thread Avadhut
Can anybody tell me how does tomcat come to know that JSP has changed from
since last.

What is the mechanism to track the changes in JSP for Tomcat JSP container?

 

 

Thanks  Regards,
Avadhut M. karambelkar 
Team Lead, Persistent Systems Ltd. 



 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.


Re: Reg JSP changes

2008-05-07 Thread Mark Thomas

Avadhut wrote:

Can anybody tell me how does tomcat come to know that JSP has changed from
since last.

What is the mechanism to track the changes in JSP for Tomcat JSP container?


Timestamp on the file.

Mark

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



RE: Reg JSP changes

2008-05-07 Thread Avadhut
What is the actual mechanism that tracks the timestamp
Also what if I am developing on x machine and the time is lesser than that
of deployment machine then what will happen if I put changed JSP with lesser
timestamp that deployment machine


 
Thanks  Regards,
Avadhut M. karambelkar 
Team Lead, (ID: 5964)
Persistent Systems Ltd. 
Ext.: (3023) 6757


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 07, 2008 2:20 PM
To: Tomcat Users List
Subject: Re: Reg JSP changes

Avadhut wrote:
 Can anybody tell me how does tomcat come to know that JSP has changed from
 since last.
 
 What is the mechanism to track the changes in JSP for Tomcat JSP
container?

Timestamp on the file.

Mark

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


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

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



RE: Reg JSP changes

2008-05-07 Thread Peter Crowther
 From: Avadhut [mailto:[EMAIL PROTECTED]
 Also what if I am developing on x machine and the time is
 lesser than that
 of deployment machine then what will happen if I put changed
 JSP with lesser
 timestamp that deployment machine

The deployment machine may not notice the changed JSP.  This is reported fairly 
frequently - and in these days of simple NTP synchronisation, I really don't 
understand why!

- Peter

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



Re: Web server and tomcat - firewall

2008-05-07 Thread Rainer Jung

Hi Andrew,

Andrew Hole schrieb:

Hi all|



Maybe you could help me to solve a problem with your experience.

My company has implemented a solution of 3 layers (Apache web server, Tomcat
Container and Database). There is a firewall between the web server and the
tomcat.

We get the following errors in mod_jk log:



These errors are caused by loss of TCP packages in firewall (???).


How do you know?


[Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c (951): (p11)
can't receive the response message from tomcat, network problems or tomcat (
10.202.131.130:8009) is down (errno=54)


What is errno 54 on your platform?

perl -e 'use POSIX;print POSIX::strerror(54),\n'


[Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c (1592): (p11)
Tomcat is down or refused connection. No response has been sent to the
client (yet)

(is not true when log says that tomcat is down because some requests get the
correct response)



Setting JkOptions + DisableReuse in httpd.conf does not solve the problem.
Any suggestions?


DisableReuse will have a huge performance hit, but will eliminate any 
problems w.r.t. reusing idle connections, which might have been dropped 
by the firewall.


Post version of mod_jk and configuration.


Thank you and I apologise for the inconvenience.



Greetings


Regards,

Rainer


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



Context and external folder for uploaded files

2008-05-07 Thread Dubois, Fabien
Hi everybody,

 

I'm not an expert of tomcat, and I need your help.

 

I have a web application that allows user to upload files. I want to
stock these files in an external folder of tomcat on the server.

These files could be downloaded, so how can I link my webapplication and
this external folder, and create a link :
htpp://www.exmaple.com/myapp/myexternalfolder/myfileuploaded.rar

 

I suppose that I have to declare something in the context

 

Thank you in advance for your help :-)

 

 







This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


RE: Web Service on Tomcat on Solaris

2008-05-07 Thread Hansen, P (Palle)
Hi Thanks for the reply

I got it sorted now, I don't fully understand what went wrong, but here is what 
I did find out

My Tomcat is listening on default port 8080, when I created my project in 
eclipse the wsdl file was created with a different port (I don't understand 
why) so I worked in eclipse, it also worked on my tomcat running windows 
because it was on the same server as eclipse, once I shut down eclipse the WS 
in tomcat stopped working on Windows as well

I changed the port in my wsdl file but it made no difference.

I then copied my java code and deleted the entire project from eclipse, and 
started a new one, this time the port in the wdsl file was the correct 8080, I 
pasted the code back in a generated the Web Service and it all works now

Palle

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: 04 May 2008 12:10
To: Tomcat Users List
Subject: Re: Web Service on Tomcat on Solaris

Hi,

Hansen, P (Palle) schrieb:
 Hi All

 I'm fairly new to Tomact etc, but I've developed a Web Service in
 Eclipse, and it works great there

 I created the War Files and deployed them to Tomcat 5.5 running on
 Windows and everything looks Great

 I then installed Tomcat on Unix Solaris 8 And deployed the war files
 there.

 This is where the problem starts.

 The jsp pages are displayed ok, but as soon as I hit the button that
 will invoke the java class all I get is

 exception: java.net.ConnectException: Connection refused

Where s the code running, that gets the exception? Is this some client
side code, or code that runs within Tomcat? What's the exception stack?

Where does this code want to connect to (name or IP address, port) and
how does it get this information (configuration etc.)?

 The same class works on Tomcat running on windows

 I've put some debug lines in the class file, and in fact there is a
 debug line at the very beginning and that don't even get executed, so
 I don't think any of the method is being executed

 Any help would be appreciated

 Thanks

 Palle Hansen

Regards,

Rainer

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

_

This email (including any attachments to it) is confidential, legally 
privileged, subject to copyright and is sent for the personal attention of the 
intended recipient only. If you have received this email in error, please 
advise us immediately and delete it. You are notified that disclosing, copying, 
distributing or taking any action in reliance on the contents of this 
information is strictly prohibited. Although we have taken reasonable 
precautions to ensure no viruses are present in this email, we cannot accept 
responsibility for any loss or damage arising from the viruses in this email or 
attachments. We exclude any liability for the content of this email, or for the 
consequences of any actions taken on the basis of the information provided in 
this email or its attachments, unless that information is subsequently 
confirmed in writing. If this email contains an offer, that should be 
considered as an invitation to treat.
_

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



Re: Tomcat takes 2 hours to start

2008-05-07 Thread jitesh sharma

hi all,

first of all sorry bcoz i am busy with my presentation work so i can not
reply regularly.
secondly sorry again bocz the log info which i have posted is generated
using :

# /opt/tomcat/bin/catalina.sh debug

that is why its showing 2 minutes server startup time.
and as i mentioned earlier that tomcat runs fine in debug mode.

the actual output using :
# /opt/tomcat/bin/catalina.sh run   
--
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:   /usr/jdk/jdk1.5.0_07
May 7, 2008 10:33:49 AM org.apache.catalina.core.AprLifecycleListener
lifecycleE vent
INFO: The Apache Tomcat Native library which allows optimal performance in
produ ction environments was not found on the java.library.path:
/usr/jdk/instances/jd
k1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/ins
tances/jdk1.5.0/jre/../lib/i386:/usr/lib
May 7, 2008 10:33:49 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 7, 2008 10:33:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1664 ms
May 7, 2008 10:33:49 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 7, 2008 10:33:49 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
May 7, 2008 10:33:50 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 7, 2008 10:33:58 AM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /.java/.userPrefs/prefs.xml
May 7, 2008 10:33:58 AM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /etc/.java/.systemPrefs/prefs.xml
--
here it takes stops for a long time and then displays next log
--
May 7, 2008 1:03:42 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 7, 2008 1:03:43 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 7, 2008 1:03:43 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/98  config=null
May 7, 2008 1:03:43 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 7, 2008 1:03:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8993857 ms


With Thanks,
jitesh 
 

[EMAIL PROTECTED] wrote:
 
 
 FWIW, your log excerpt shows a 2-minute delay, not a 2-hour delay as your
 originally reported.
 
 In any case, re your question on starting via truss, it should be as
 simple as the following:
   truss /opt/tomcat/in/catalina.sh run
 
 (though I assume you really meant /opt/tomcat/*b*in/catalina.sh run)
 
 If you tail the Tomcat log and then start tomcat via truss (as shown
 above)
 you'll hopefully see something valuable in the truss output when you see
 the
 pause in the Tomcat logging.
 
 
 On Wed, Apr 30, 2008 at 2:44 AM, jitesh sharma
 [EMAIL PROTECTED]
 wrote:
 

 hello,

 Tomcat logs when it starts :

 Apr 30, 2008 12:08:32 PM org.apache.catalina.core.AprLifecycleListen er
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal performance
 in
 produ ction environments was not found on the java.library.path:
 /usr/jdk/instances/jd

 k1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/ins
 tances/jdk1.5.0/jre/../lib/i386:/usr/lib
 Apr 30, 2008 12:08:33 PM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Apr 30, 2008 12:08:33 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 3929 ms
 Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
 Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
 WARNING: Prefs file removed in background /.java/.userPrefs/prefs.xml
 Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
 WARNING: Prefs file removed in background
 /etc/.java/.systemPrefs/prefs.xml

 ---
 After this output it goes for a long break  and then print

 ---

 Apr 30, 2008 12:10:38 PM org.apache.coyote.http11.Http11BaseProtocol
 start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Apr 30, 2008 12:10:39 PM 

Re: Reg JSP changes

2008-05-07 Thread Roland Brassous (SILOGIC)

Hi,

Another solution, after each deployment, clean the work directory.
This directory is used by tomcat in order to evaluated changes.

Roland



Peter Crowther a écrit :

From: Avadhut [mailto:[EMAIL PROTECTED]
Also what if I am developing on x machine and the time is
lesser than that
of deployment machine then what will happen if I put changed
JSP with lesser
timestamp that deployment machine



The deployment machine may not notice the changed JSP.  This is reported fairly 
frequently - and in these days of simple NTP synchronisation, I really don't 
understand why!

- Peter

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


  



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



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

2008-05-07 Thread Roland Brassous (SILOGIC)

Hi

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

Roland



Christopher Schultz a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ronny,

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

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

| Setting parameter Tomcat: not start and shutdown automatically.

I do not understand.

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

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

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





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



up/download: ClientAbortException?

2008-05-07 Thread Kristian Rink
Folks;

stumbled across similar errors already a while ago, most of them seems
to have disappeared, but right now some of them seem back in one system:


ClientAbortException:  java.io.IOException at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349) at
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
[...]
Caused by: java.io.IOException at
org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:692)
at
org.apache.coyote.http11.InternalAprOutputBuffer$SocketOutputBuffer.doWrite(InternalAprOutputBuffer.java:722)
at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)
at
org.apache.coyote.http11.InternalAprOutputBuffer.doWrite(InternalAprOutputBuffer.java:528)
at org.apache.coyote.Response.doWrite(Response.java:560) at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
 ...
39 more 


Things like these happen mainly when users download larger files from a
tomcat 6.0.16 proxied by an apache 2.x using mod_proxy/mod_rewrite.
Does these messages mean anything to anyone? Really a ClientAbort (in
terms of the _remote_ client disconnecting)? 

TIA and best regards,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

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



Re: TC6, SRV 2.5, annotations

2008-05-07 Thread Marcello Teodori

Hi, did you succeed since then in configuring a DataSource using annotations
on Tomcat6?
I did the same on the latest Tomcat 6.0.16 and I got a similar error, with
the datasource correctly configured in context.xml (checked with normal JNDI
lookup on java:comp/env/jdbc/...) and the annotation on a
ServletContextListener example.NewServletListener:

7-may-2008 12.47.09 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class
example.NewServletListener
javax.naming.NameNotFoundException: Name example.NewServletListener is not
bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at
org.apache.catalina.util.DefaultAnnotationProcessor.lookupMethodResource(DefaultAnnotationProcessor.java:233)
at
org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:163)

Marcello


Hassan Schroeder-2 wrote:
 
 First pass at playing with the 2.5 Servlet stuff, annotations
 specifically.
 
 On TC 6.0.7, adding this line to a test Filter:
 
   @Resource javax.sql.DataSource foo;
 
 :: causes this exception when the context is reloaded:
 
 SEVERE: Exception starting filter EnvironmentFilter
 javax.naming.NameNotFoundException: Name
 com.example.filters.EnvironmentFilter is not bound in this Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
 at
 org.apache.catalina.util.DefaultAnnotationProcessor.lookupFieldResource(DefaultAnnotationProcessor.java:203)
 at
 org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:135)
 
 (That seems like the most relevant part of the stacktrace...)
 
 Using standard name-based lookup of foo works fine. I added a
 metadata-complete=false to the web.xml declaration just to be on
 the safe side, but no change. The Filter is declared and mapped in
 web.xml in the usual way, and works fine sans annotation.
 
 Anyone using this successfully? TIA!
 -- 
 Hassan Schroeder  [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/TC6%2C-SRV-2.5%2C-annotations-tp8668875p17103078.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Web server and tomcat - firewall

2008-05-07 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rainer,

Rainer Jung wrote:
| [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c
| (951): (p11) can't receive the response message from tomcat,
| network problems or tomcat ( 10.202.131.130:8009) is down
| (errno=54)
|
| What is errno 54 on your platform?

FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is:

Error 54: Exchange full

??!

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

iEYEARECAAYFAkghsGUACgkQ9CaO5/Lv0PDB0ACdEkQf0AfaJAGV+4lEYhuvhMlo
N/0AmwfQkoxH5H4ypV/GqSFEgP3dZw43
=wj3O
-END PGP SIGNATURE-

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



Re: TomCat and support of WebServices stacks: JAX-WS vs. Axis

2008-05-07 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ben,

Ben Stover wrote:
| Which type of WebService stacks does TomCat support-out-of-the-box
| (=without installing additional components):
|
| JAX-WS
|
| and/or
|
| Axis

Neither. You will have to install either a JAX-WS or an Axis library in
order to provide web services through Tomcat. But, really, that is what
you want. You don't want to be stuck on some specific version of a web
service library when you pick a Tomcat version.

However, installing web services is as easy as dropping a WAR file into
the deployment directory, right? Just make sure that your webapp has a
copy of, say, axis.jar in its lib directory.

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

iEYEARECAAYFAkghsPIACgkQ9CaO5/Lv0PDr+gCfezV2well80+vq2L3Lk6fb4Pj
o1IAmgKsnZVNbs0W9sKZ3LYs7fYPREAT
=fQhA
-END PGP SIGNATURE-

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



CGI How To - missing file: servlets-cgi.renametojar file or servlets-cgi.jar

2008-05-07 Thread Enavall, Jesper
Hello everyone. 
 
I want to activate CGI on Tomcat, and follow the How To-instructions at
http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html. 
 
In the instructions in web.xml it says: 
!-- IMPORTANT: To use the CGI servlet, you also need to rename the
--
  !--$CATALINA_HOME/server/lib/servlets-cgi.renametojar
file   --
  !--to $CATALINA_HOME/server/lib/servlets-cgi.jar
--
 
But I don't have the file to rename: servlets-cgi.renametojar file at
C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib
 
Please let me know how to get this -jar file. 
 
Best regards
 
Jesper Enavall
Sweden
 






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


CGI How To - missing file: servlets-cgi.renametojar file or servlets-cgi.jar

2008-05-07 Thread Enavall, Jesper
Hello everyone. 
 
I want to activate CGI on Tomcat, and follow the How To-instructions at
http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html. 
 
In the instructions in web.xml it says: 
!-- IMPORTANT: To use the CGI servlet, you also need to rename the
--
  !--$CATALINA_HOME/server/lib/servlets-cgi.renametojar
file   --
  !--to $CATALINA_HOME/server/lib/servlets-cgi.jar
--
 
But I don't have the file to rename: servlets-cgi.renametojar file at
C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib
 
Please let me know how to get this -jar file. 
 
Best regards
 
Jesper Enavall
Sweden
 






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


RE: CGI How To - missing file: servlets-cgi.renametojar file or servlets-cgi.jar

2008-05-07 Thread Caldarale, Charles R
 From: Enavall, Jesper [mailto:[EMAIL PROTECTED] 
 Subject: CGI How To - missing file: servlets-cgi.renametojar 
 file or servlets-cgi.jar
 
 But I don't have the file to rename: servlets-cgi.renametojar file at
 C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib

A quick search of the archives (http://marc.info/?l=tomcat-user) would
have told you that renaming is not necessary in Tomcat 6 and the
comments in web.xml are being corrected in the next 6.0 release.

 - Chuck

P.S. Please don't post the same message more than once.


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

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



Re: Web server and tomcat - firewall

2008-05-07 Thread Rainer Jung

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rainer,

Rainer Jung wrote:
| [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c
| (951): (p11) can't receive the response message from tomcat,
| network problems or tomcat ( 10.202.131.130:8009) is down
| (errno=54)
|
| What is errno 54 on your platform?

FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is:

Error 54: Exchange full


On the Linux box I checked it's the same, but the OP didn't give any 
indication about the platform, and the error text was so unusual, that i 
suspect he's using BSD or Mac OS or whatever might have a very different 
meaning for 54. Unfortunately most errnos are not standardized.



??!


Regards,

Rainer

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



Re: Web server and tomcat - firewall

2008-05-07 Thread Andrew Hole
HI!

I don't have perl installed in production servers, but it is windows server
2003.

About mod_jk configuration (mod_jk/1.2.18) :

# List the workers name
worker.list = p1balancer, resumop1

# --
# Load Balancer worker
# --
worker.p1balancer.type= lb
worker.p1balancer.balanced_workers= p11,p12

# 
# First worker
# 
worker.p11.port= 8009
worker.p11.host= 10.202.131.130
worker.p11.type= ajp13


# 
# Second worker
# 
worker.p12.port= 8009
worker.p12.host= 10.202.131.131
worker.p12.type= ajp13



# --
# Load Balancer worker
# --
worker.resumop1.type= lb
worker.resumop1.balanced_workers= rp11,rp12

# 
# First worker
# 
worker.rp11.port= 8007
worker.rp11.host= 10.202.131.130
worker.rp11.type= ajp13


# 
# Second worker
# 
worker.rp12.port= 8007
worker.rp12.host= 10.202.131.131
worker.rp12.type= ajp13


On tomcat side   Connector port=*8009* enableLookups=*false*redirectPort
=*8443* protocol=*AJP/1.3* /

Thanks a lot


On Wed, May 7, 2008 at 2:36 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rainer,

 Rainer Jung wrote:
 | [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c
 | (951): (p11) can't receive the response message from tomcat,
 | network problems or tomcat ( 10.202.131.130:8009) is down
 | (errno=54)
 |
 | What is errno 54 on your platform?

 FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is:

 Error 54: Exchange full

 ??!

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

 iEYEARECAAYFAkghsGUACgkQ9CaO5/Lv0PDB0ACdEkQf0AfaJAGV+4lEYhuvhMlo
 N/0AmwfQkoxH5H4ypV/GqSFEgP3dZw43
 =wj3O
 -END PGP SIGNATURE-


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




Tomcat CPU 100%

2008-05-07 Thread Andrea Di Muro
Hello everyone, I have a Tomcat server with several domains configured and
sometimes I can see that the tomcat process uses 100-190% (dual processor)
and hangs up.
I think that one of my customer has uploaded a jsp page that makes an
infinite loop.
How can I check which page causes the problem? 
Thank you
 
 
 

Andrea Di Muro
Technical Developer
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 


 

Headquarter: Viale dei Mille, 111 - 50131 Firenze
Telefono +39 055 40 89 084
Siena: Via Senese 155 - 53036 Poggibonsi
Telefono +39 0577 985 562 -  Fax +39 0577 991 591
 http://www.virtualcom.it/ http://www.virtualcom.it

 

 

 





 


Informativa Privacy (ex D.lgs 196/03) 
Le informazioni contenute nel presente documento e relativi allegati possono
essere riservate e sono destinate esclusivamente alla persona od alla
Società indicata come destinatario. La diffusione e la distribuzione del
presente documento a soggetti diversi da quelli indicati, od in generale
qualsivoglia utilizzo illecito dei dati ivi contenuti, è proibita sia ai
sensi dell’art. 616 del Codice Penale che dal D. Lgs 196/03 in materia di
protezione dei dati personali (Privacy). Se avete ricevuto per errore questo
documento siete pregati di distruggerlo e di comunicarcelo prontamente
tramite e-mail o fax. 

 

 

 


Re: TC6, SRV 2.5, annotations

2008-05-07 Thread Hassan Schroeder
On Wed, May 7, 2008 at 4:50 AM, Marcello Teodori
[EMAIL PROTECTED] wrote:

  Hi, did you succeed since then in configuring a DataSource using annotations
  on Tomcat6?

Not me; wasn't that high a priority item at the time, never went back
to it. Perhaps someone else will chime in :-)

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: Web server and tomcat - firewall

2008-05-07 Thread Rainer Jung

Filip Hanik - Dev Lists wrote:


could be the extra space

JkOptions + DisableReuse

should be

JkOptions +DisableReuse

someone will correct me if I am wrong :)


Oupss, didn't take the space serious. Of course it should not be there. 
Although if we don't recognize the option, we should throw out a 
JkOptions: Illegal option message (don't remember since what version 
though).


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



can the mount directive be used for load balancers?

2008-05-07 Thread Stephanie Wullbieter
Hello,

can the mount directive be used for load balancing workers, too?
I found nothing about that in the docs. For example does this work:

worker.balancer.type=lb
worker.balancer.balanced_workers=worker1,worker2
worker.balancer.mount=/context

Thank You
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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



Re: Web server and tomcat - firewall

2008-05-07 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew,

Andrew Hole wrote:
| I don't have perl installed in production servers, but it is windows
server
| 2003.

You could always try this:

#include stdio.h
#include string.h
#include stdlib.h

#define MAX_ERROR_STRING_LENGTH 1024

int main(int argc, char *argv[]) {
~  int error_num;
~  char error_msg[MAX_ERROR_STRING_LENGTH];

~  if(argc  2) {
~printf(Usage: %s errno\n, argv[0]);

~return 1;
~  }

~  error_num = atoi(argv[1]);

~  strerror_r(error_num, error_msg, MAX_ERROR_STRING_LENGTH);

~  printf(Error %d: %s\n, error_num, error_msg);

~  return 0;
}


Also, if you are using MySQL, it comes with a perror program that
basically does what the above does (but also reports MySQL error
numbers, too). Not sure if that's included in the win32 build, though.

- -chris

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

iEYEARECAAYFAkghzrwACgkQ9CaO5/Lv0PAA0gCePllyQnGBc1AGsOJuzf+gk/cH
6bkAn3xqSAHYeIJq006pR1wskBNMUG8i
=QaJQ
-END PGP SIGNATURE-

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



Re: Tomcat CPU 100%

2008-05-07 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrea,

Andrea Di Muro wrote:
| Hello everyone, I have a Tomcat server with several domains configured
| and sometimes I can see that the tomcat process uses 100-190% (dual
| processor) and hangs up.
| I think that one of my customer has uploaded a jsp page that makes an
| infinite loop.
| How can I check which page causes the problem?

Take a thread dump (QUIT signal on *NIX, CTRL-BREAK on windows console,
jstack in recent JVM implementations, ... some monitoring programs have
this ability, too) and look at what is running. You may have to run a
couple of them and compare. The thread that is always running the same
thing is likely to be the one that is causing problems.

- -chris

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

iEYEARECAAYFAkghzzIACgkQ9CaO5/Lv0PCRCACeLmJJR58cXsSGjln5FeVdlfa0
y/UAn0Q75rwJnb3sHWTY2qw+nOWbMa9E
=GVY9
-END PGP SIGNATURE-

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



Problems with Java Security Manager

2008-05-07 Thread Jonathan O'Donovan
Hi All,

Can someone check my reasoning here? I am having difficulty with the Java 
Security Manager. I am encountering the following 2 exceptions with some of my 
servlets : 

I am running : 
 
Tomcat 4.1
Apache/1.3.33 (Win32) 
mod_jk/1.2.8 
JRE Version 1.4.2_03

I have enabled security manager logging using the following Java option (I've 
set this in the configuration dialogue box for Tomcat as I'm running Tomcat as 
a service on NT)

set CATALINA_OPTS=-Djava.security.debug=access,failure



Exception #1 (generated when using RMI): 

access: access allowed (java.util.PropertyPermission java.rmi.server.hostname 
read)
access: access allowed (java.util.PropertyPermission 
sun.rmi.transport.connectionTimeout read)
access: access allowed (java.util.PropertyPermission 
sun.rmi.transport.tcp.handshakeTimeout read)
access: access allowed (java.util.PropertyPermission 
sun.rmi.transport.tcp.responseTimeout read)
access: access allowed (java.io.FilePermission 
C:\Tomcat41\server\lib\tomcat-util.jar read)
access: access allowed (java.io.FilePermission 
C:\Tomcat41\server\lib\tomcat-util.jar read)
access: access allowed (java.io.FilePermission 
C:\Tomcat41\server\lib\tomcat-util.jar read)
access: access allowed (java.util.PropertyPermission socksProxyHost read)
access: access denied (java.net.SocketPermission XX.XX.XX resolve)


Exception #2 : 

java.security.AccessControlException: access denied 
(java.util.PropertyPermission catalina.base read)




I presume that the above 2 exceptions are generated by the Java Security 
Manager. I have tried the following in my 
catalina.policy file

grant codeBase file:${catalina.home}/webapps/mywebapp/- {
  permission java.security.AllPermission;
};

but it makes no difference.


Also, I am wondering why catalina.base should have a problem reading files (I 
am running Tomcat as Administrator)

These problems are happening in the test environment, but on the live system 
there are no such exceptions being generated. I can't figure out why this 
should be the case as the java.policy and catalina.policy files in the 
Catalina.home/conf directory are identical for both live and test environments.

Does anybody know how to disable the Security Manager for Tomcat when running 
as a service in NT or is it disabled by default?


Many thanks in advance,
Jonathan O'Donovan


R: Tomcat CPU 100%

2008-05-07 Thread Andrea Di Muro
Andrea Di Muro wrote:
| Hello everyone, I have a Tomcat server with several domains configured 
| and sometimes I can see that the tomcat process uses 100-190% (dual
| processor) and hangs up.
| I think that one of my customer has uploaded a jsp page that makes an 
| infinite loop.
| How can I check which page causes the problem?

Take a thread dump (QUIT signal on *NIX, CTRL-BREAK on windows console,
jstack in recent JVM implementations, ... some monitoring programs have this
ability, too) and look at what is running. You may have to run a couple of
them and compare. The thread that is always running the same thing is likely
to be the one that is causing problems.

- -chris


Tomcat it's running on a Linux Server, what is the exact command to take the
thread dump?
kill -s QUIT tomcat_pid is right?

By using this command will Tomcat shut down or just print the threa dump on
the standard output?
And how can I interpretate the output to see which page is causing the
problem?
Thank you

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



RE: CGI How To - missing file: servlets-cgi.renametojar file or servlets-cgi.jar

2008-05-07 Thread Enavall, Jesper
Sorry. Thank you for your help.

Jesper  

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: den 7 maj 2008 15:57
To: Tomcat Users List
Subject: RE: CGI How To - missing file: servlets-cgi.renametojar file or
servlets-cgi.jar

 From: Enavall, Jesper [mailto:[EMAIL PROTECTED]
 Subject: CGI How To - missing file: servlets-cgi.renametojar file or 
 servlets-cgi.jar
 
 But I don't have the file to rename: servlets-cgi.renametojar file at 
 C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib

A quick search of the archives (http://marc.info/?l=tomcat-user) would
have told you that renaming is not necessary in Tomcat 6 and the
comments in web.xml are being corrected in the next 6.0 release.

 - Chuck

P.S. Please don't post the same message more than once.


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

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







This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


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



Re: R: Tomcat CPU 100%

2008-05-07 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrea,

Andrea Di Muro wrote:
| Tomcat is running on a Linux Server, what is the exact command to take the
| thread dump?
| kill -s QUIT tomcat_pid is right?

Yes. The thread dump will be printed on stdout, and probably go into
catalina.out.

| By using this command will Tomcat shut down or just print the threa
dump on
| the standard output?

Only the thread dump -- Tomcat will not shutdown.

| And how can I interpret the output to see which page is causing the
| problem?

A thread dump is like a stack trace, except that it performs a stack
trace on /all/ live threads. It will tell you what each thread is doing.

If you see a few threads that are running methods like _jsp_service,
then those threads are running JSPs. The name of the JSP should be
evident from the class and method name printed in the trace for that
particular thread.

You could observe several thread dumps to see if one particular thread
(or several) are always executing the same method. If so, that JSP is
probably the one that is hanging.

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

iEYEARECAAYFAkgh3xAACgkQ9CaO5/Lv0PBBbACgnRz2dQEdZH/kwzUXa/E/UjGE
n58AoIpHKTrJowHF+DmUwztHEfRF4ppa
=B4jY
-END PGP SIGNATURE-

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



shared libs, but non shared static object instances between multiple webapps?

2008-05-07 Thread Laurent
Hi

Is it possible to have shared libs between multiple web applications
(context's) in tomcat (6.0.x), where the static instances (like singletons)
are not shared?

I used following feature in catalina.properties, which successfully loads
the libs from the same path for each webapp:
shared.loader=$INSTALL_PATH/core/conf,$INSTALL_PATH/core/*.jar,$INSTALL_PATH/core/lib/*.jar
But unfortunately (for us), all the singleton objects (based on static var)
are now shared too, which seems logical as the classloader probably loads
only one instance of the jars/classes for the whole tomcat container.
The motivation for doing this is that we have many projects on one server
which run under the same tomcat, and which should run the same software/jar
release (defined in shared.loader), only different configuration files. This
would allow to update the software for all projects by updating the libs in
our core systems, which is only installed once per server.
Before we had to update each project's WEB-INF/lib separately, and over
100MB of libs were duplicated per project.

Any hope achieving this easily (like configure separate classloaders?),
without having to remove all singletons ?

Besides, having an empty 'WEB-INF/lib' brought some other strange changes:
Following code did not find property files in the Classpath
(WEB-INF/classes), whereas before (with all our libs in WEB-INF/lib) it
worked :
InputStream propertyResource = getClass().getResourceAsStream(filename);
Seems the tomcat (java?) classloader is reacting specially in that case,
like shortcutting it's ressource search?!

Thanks,
Laurent

JVM : 1.6.0 update2
OS   : Windows Server 2003
Tomcat : 6.0.13


Re: Web server and tomcat - firewall

2008-05-07 Thread Rainer Jung

Andrew Hole wrote:

HI!

I don't have perl installed in production servers, but it is windows server
2003.


OK, then it is windows error 10054 = Connection reset by peer.


About mod_jk configuration (mod_jk/1.2.18) :


1.2.18 does not have DisableReuse. It was first implemented in 1.2.19. 
Bad luck. If you upgrade (you should), then go directly to 1.2.26.



# List the workers name
worker.list = p1balancer, resumop1

# --
# Load Balancer worker
# --
worker.p1balancer.type= lb
worker.p1balancer.balanced_workers= p11,p12

# 
# First worker
# 
worker.p11.port= 8009
worker.p11.host= 10.202.131.130
worker.p11.type= ajp13


# 
# Second worker
# 
worker.p12.port= 8009
worker.p12.host= 10.202.131.131
worker.p12.type= ajp13



# --
# Load Balancer worker
# --
worker.resumop1.type= lb
worker.resumop1.balanced_workers= rp11,rp12

# 
# First worker
# 
worker.rp11.port= 8007
worker.rp11.host= 10.202.131.130
worker.rp11.type= ajp13


# 
# Second worker
# 
worker.rp12.port= 8007
worker.rp12.host= 10.202.131.131
worker.rp12.type= ajp13


On tomcat side   Connector port=*8009* enableLookups=*false*redirectPort
=*8443* protocol=*AJP/1.3* /

Thanks a lot


You should start with reading the (relatively) new docs page about timeouts:

http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html

They will help detect such a problem and recover more gracefully. 
Especially cping/cpong are helpful in early problem detection.


The pool timeouts should be helpful for closing idle connections, before 
you get a connection drop. Try to understand the page, and if things are 
unclear, ask us.


How do you know, that the firewall is the root cause?

To get a better understanding for the situation, you could compare 
netstat -an on the apache httpd side with one on the tomcat side. Look 
only for the relevant ports (8007 resp. 8009) and look for differences 
between the output. There could be small differences for a short period 
of time, but there should be no connections missing or being in a 
different state between the two outputs for a longer time (except for 
TIME_WAIT).


Regards,

Rainer


On Wed, May 7, 2008 at 2:36 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rainer,

Rainer Jung wrote:
| [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c
| (951): (p11) can't receive the response message from tomcat,
| network problems or tomcat ( 10.202.131.130:8009) is down
| (errno=54)
|
| What is errno 54 on your platform?

FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is:

Error 54: Exchange full

??!

- -chris


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



Re: can the mount directive be used for load balancers?

2008-05-07 Thread Rainer Jung

Stephanie Wullbieter wrote:

Hello,

can the mount directive be used for load balancing workers, too?
I found nothing about that in the docs. For example does this work:

worker.balancer.type=lb
worker.balancer.balanced_workers=worker1,worker2
worker.balancer.mount=/context


Yes, that's how it works. But this will only map the exact URL 
/context, not /context/myservlet. So usually you also want to mount 
/context/*. The mount directive can be used multiple times.


If you use a load balancer worker, in fact you should mount via the 
balancer and *not* via its member workers.


On the docs page

http://tomcat.apache.org/connectors-doc/reference/workers.html

in the table, where the mount attribute is explained, the seconds 
columns says AJP,LB, which means, you can use it for workers of type 
LB (if you don't use an LB) or for LB workers. The missing SUB 
indicates, that you should not use it for sub workers of an LB.


Using the mount atribute is not common. Most people either use a 
uriworkermap.properties file (and JkMountFile in Apache httpd), or 
directly JkMount in httpd. But those ways of defining mounts are 
basically equivalent. JkMountFiles contents can be changed without web 
server restart and JkMount directives in httpd.conf are a little closer 
to the other context related httpd configuration items.




Thank You


Regads,

Rainer

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



503 under load

2008-05-07 Thread dhay
Hi,

We've started to stress test a new website, and are seeing 503's 
interspersed when we are under load.  We are running Apache - Tomcat 
combination.

Could someone give me an idea of what can cause this, and where to start 
looking?

cheers,

David


Re: 503 under load

2008-05-07 Thread Gabe Wong

[EMAIL PROTECTED] wrote:

Hi,

We've started to stress test a new website, and are seeing 503's 
interspersed when we are under load.  We are running Apache - Tomcat 
combination.


Could someone give me an idea of what can cause this, and where to start 
looking?


cheers,

David

  

Number of possibilities some of which include:
1)What is the maxclients settings in httpd.conf (Apache)
2)Any specific errors in catalina logs (Tomcat)
3)Do you have ample RAM and CPU for the test (please elaborate on hardware)
4)Database overload? (elaborate on DB if any)


--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.1 - Centrally manage Application Servers across multiple physical servers


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



Building Tomat 6

2008-05-07 Thread Richard Sayre
I am trying to build tomcat 6 as per these instructions:

http://tomcat.apache.org/tomcat-6.0-doc/building.html

I keep getting this error when i try to build:

C:\rich\downloads\apache-tomcat-6.0.16-src\apache-tomcat-6.0.16-src\java\org\apache\jasper\compiler\JDTCompiler.java:38:
package org.eclipse.jdt.core.compiler does not exist
[javac] import org.eclipse.jdt.core.compiler.IProblem;

I also get this for some other packages:

package org.eclipse.jdt.internal.compiler does not exist
package org.eclipse.jdt.internal.compiler.classfmt

Is there a Jar that I am missing?  I'm not sure where to find the
classes it's looking for.

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



Re: R: Tomcat CPU 100%

2008-05-07 Thread Juha Laiho

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrea,

Andrea Di Muro wrote:
| Tomcat is running on a Linux Server, what is the exact command to 
take the

| thread dump?
| kill -s QUIT tomcat_pid is right?

Yes. The thread dump will be printed on stdout, and probably go into
catalina.out.

| By using this command will Tomcat shut down or just print the threa
dump on
| the standard output?

Only the thread dump -- Tomcat will not shutdown.

| And how can I interpret the output to see which page is causing the
| problem?

A thread dump is like a stack trace, except that it performs a stack
trace on /all/ live threads. It will tell you what each thread is doing.

If you see a few threads that are running methods like _jsp_service,
then those threads are running JSPs. The name of the JSP should be
evident from the class and method name printed in the trace for that
particular thread.

You could observe several thread dumps to see if one particular thread
(or several) are always executing the same method. If so, that JSP is
probably the one that is hanging.



Another (perhaps Linux-specific?) way to get some information is to run
ps -fLp 12345 (where 12345 should be the PID of your Tomcat process).
This will show one line for each thread in the Tomcat process, and also
will show the amount of CPU time used by each thread. If you run this
a couple of times, you should be able to pick up threads with significant
increase in the used CPU time. These can then be correlated with the
thread dump. F.ex. in my toy machine, the thread taking the most of
CPU time is:
tomcat7035 1  7870  0   40 Feb13 ?01:08:37 
/usr/lib/jvm/java/bin

... where 7035 is the process id of Tomcat, and 7870 is the thread id.

The thread dump then tells what that thread is running - however, the
thread dump lists threads by hexadecimal id, and the above is decimal,
so a conversion is needed: 7870=0x1ebe . Now to look for that 1ebe
in the thread dump:

ContainerBackgroundProcessor[StandardEngine[Catalina]] daemon prio=1 
tid=0x08366728 nid=0x1ebe waiting on condition [0xb135c000..0xb135cfa0]

   at java.lang.Thread.sleep(Native Method)
   at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1597)

   at java.lang.Thread.run(Thread.java:595)

 so, on this machine (a toy, as I said), the thread with most 
accumulated

CPU usage has been ContainerBackgroundProcessor - which was sleeping
at the time of this thread dump. For active request processing threads the
dump will differ a lot from the above, and will tell in which class/method
the thread is executing.
--
..Juha

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



Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
Yes the ended up in c:\user\share\java

I found the jdt plugin online and added it to c:\user\share\java\eclipse\plugins

Then my compile worked.  But Im not sure if it took the proper source.

I replaced the source files with the 2 found here:

http://svn.apache.org/viewvc?view=revrevision=631700

for the bug linked on that page.

After I recompiled and replaced the  catalina.jar and
tomcat-coyote.jar in my tomcat lib filder in my test env, I seem to be
still getting the 8KB limit bug.  Im not sure if i did the build
right.



On Wed, May 7, 2008 at 4:27 PM, Mark Thomas [EMAIL PROTECTED] wrote:

 Richard Sayre wrote:

  I am trying to build tomcat 6 as per these instructions:
 
  http://tomcat.apache.org/tomcat-6.0-doc/building.html
 
  I keep getting this error when i try to build:
 
 
 C:\rich\downloads\apache-tomcat-6.0.16-src\apache-tomcat-6.0.16-src\java\org\apache\jasper\compiler\JDTCompiler.java:38:
  package org.eclipse.jdt.core.compiler does not exist
 [javac] import org.eclipse.jdt.core.compiler.IProblem;
 
  I also get this for some other packages:
 
  package org.eclipse.jdt.internal.compiler does not exist
  package org.eclipse.jdt.internal.compiler.classfmt
 
  Is there a Jar that I am missing?  I'm not sure where to find the
  classes it's looking for.
 

  Have you completed the ant download step? Where did those files end up?

  Mark


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



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



Re: Building Tomat 6

2008-05-07 Thread Mark Thomas

Richard Sayre wrote:

Yes the ended up in c:\user\share\java

I found the jdt plugin online and added it to c:\user\share\java\eclipse\plugins


That suggests your build environment isn't correct.


Then my compile worked.  But Im not sure if it took the proper source.


Neither am I ;)


I replaced the source files with the 2 found here:

http://svn.apache.org/viewvc?view=revrevision=631700

for the bug linked on that page.

After I recompiled and replaced the  catalina.jar and
tomcat-coyote.jar in my tomcat lib filder in my test env, I seem to be
still getting the 8KB limit bug.  Im not sure if i did the build
right.


Safest bet is to do a svn checkout of:
http://svn.apache.org/repos/asf/tomcat/trunk/

and do a clean build.

Mark

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



Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
I was just getting ready to do that but I have no knowledge of SVN or
how to use it.

Is there a client that I can download so I can 'get latest' and get
the latest code from the trunk?

I found this link on the Build how-to
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/


On Wed, May 7, 2008 at 5:18 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 Richard Sayre wrote:

  Yes the ended up in c:\user\share\java
 
  I found the jdt plugin online and added it to
 c:\user\share\java\eclipse\plugins
 

  That suggests your build environment isn't correct.



  Then my compile worked.  But Im not sure if it took the proper source.
 

  Neither am I ;)



  I replaced the source files with the 2 found here:
 
  http://svn.apache.org/viewvc?view=revrevision=631700
 
  for the bug linked on that page.
 
  After I recompiled and replaced the  catalina.jar and
  tomcat-coyote.jar in my tomcat lib filder in my test env, I seem to be
  still getting the 8KB limit bug.  Im not sure if i did the build
  right.
 

  Safest bet is to do a svn checkout of:
  http://svn.apache.org/repos/asf/tomcat/trunk/

  and do a clean build.



  Mark

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



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



Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
Ok I downloaded Rapid SVN, but I get an access denied when trying to
add the URL when Importing the repository.

Do I need a user/passsword?

On Wed, May 7, 2008 at 5:26 PM, Richard Sayre [EMAIL PROTECTED] wrote:
 I was just getting ready to do that but I have no knowledge of SVN or
  how to use it.

  Is there a client that I can download so I can 'get latest' and get
  the latest code from the trunk?

  I found this link on the Build how-to
  http://svn.apache.org/repos/asf/tomcat/tc6.0.x/




  On Wed, May 7, 2008 at 5:18 PM, Mark Thomas [EMAIL PROTECTED] wrote:
   Richard Sayre wrote:
  
Yes the ended up in c:\user\share\java
   
I found the jdt plugin online and added it to
   c:\user\share\java\eclipse\plugins
   
  
That suggests your build environment isn't correct.
  
  
  
Then my compile worked.  But Im not sure if it took the proper source.
   
  
Neither am I ;)
  
  
  
I replaced the source files with the 2 found here:
   
http://svn.apache.org/viewvc?view=revrevision=631700
   
for the bug linked on that page.
   
After I recompiled and replaced the  catalina.jar and
tomcat-coyote.jar in my tomcat lib filder in my test env, I seem to be
still getting the 8KB limit bug.  Im not sure if i did the build
right.
   
  
Safest bet is to do a svn checkout of:
http://svn.apache.org/repos/asf/tomcat/trunk/
  
and do a clean build.
  
  
  
Mark
  
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


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



Re: TOMCAT CLUSTERING HOWTO

2008-05-07 Thread Landon Fabbricino
Helly Karthikn,

I am confused as to where you are having problems?  

I am not sure what you mean by How to test TOMCAT CLUSTERING with out Load 
balancer?

What exactly are you trying to do with your two tomcat machines?



Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7604
[EMAIL PROTECTED]

 karthikn [EMAIL PROTECTED] 5/6/2008 7:55:17 AM 
Hi

How to test TOMCAT CLUSTERING with out Load balancer

As Per the Tomcat 5.5.23 Cluster HowTo Documents

I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM.

but not able to SAMPLE TEST the clustering


Am i on doing some thing wrong in here.?



Please Some body suggest me  . :(

with regards
Karthik




karthikn wrote:
 Hi

 How to test TOMCAT CLUSTERING with out Load balancer

 As Per the Tomcat 5.5.23 Cluster HowTo Documents

 I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM.

 but not able to test the clustering


 Am i on doing some thing wrong in here.?




 with regards
 Karthik









 Landon Fabbricino wrote:
   
 I honestly have not tried clustering tomcat without Apache before.

 Just recently I set up a server farm with apache on one server and tomcat on 
 two other servers (so 3 physical machines)

 Apache contains the logic to handle the load balancing between the two 
 tomcats:

 jk.conf
 JkWorkersFile   conf/workers.properties
 JkLogFile   logs/jk_conn.log
 JkLogLevel  error

 JkMount /loadbalance-test*  loadbalancer

 workers.properties
 ### Load Balancer Instances 
   worker.tomcat1.type=ajp13
   worker.tomcat1.host=server1.domain.com
   worker.tomcat1.port=8009  #AJP Port
   worker.tomcat1.lbfactor=1

   worker.tomcat4.type=ajp13
   worker.tomcat4.host=server2.domain.com
   worker.tomcat4.port=8010#AJP Port
   worker.tomcat4.lbfactor=1


 ### Define Mount Points 

   # Load Balance #
   worker.loadbalancer.type=lb
   worker.loadbalancer.balance_workers=tomcat1,tomcat2
   worker.loadbalancer.sticky_session=False
   worker.loadbalancer.method=B

 ### Load Mount Points   
   worker.list=loadbalancer






 
 karthikn [EMAIL PROTECTED] 4/30/2008 10:57:51 PM 

   
 Hi

 As Per the Tomcat 5.5.23 Cluster HowTo Documents

 I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM.

   Could you provide your apache's worker.properties file?

 I have so far not used any APACHE Http Server for Load Balancing




 with regards
 Karthik





 Landon Fabbricino wrote:

 
 Could you provide your apache's worker.properties file?




   
 karthikn [EMAIL PROTECTED] 4/30/2008 8:05:02 AM 


 
 Hi

 Any more suggestions ?


 with regards
 Karthik

 karthikn wrote:


   
 Hi

  distributable/

 I have already added the same in my application's web.xml,
 but still no improvement.




 with regards
 Karthik



 Landon Fabbricino wrote:



 
 If I am not mistaken, you will need to add the following tag to your 
 web.xml

 CATALINA_HOME/webapps/your_app_name/WEB-INF/web.xml
   !-- Required for session-replication in clustering mode  --
   distributable/



 Landon Fabbricino
 IT Applications

 Phone: 403.225.7515
 Fax: 403.225.7604
 [EMAIL PROTECTED] 





   
 karthikn [EMAIL PROTECTED] 4/28/2008 11:34:43 PM 




 
 Hi

 The Following was done for the Clustering  (2 tomcats )

 Values  TOMCAT5523_ITOMCAT5523_II



 Startup 80818082
 ShutDown80078008



 APJ 80098010
 TCP Listener40014002
 tcpListenAddressautoauto
 jvmRoutenode01  node02



 Delpoyment of a war file on TOMCAT5523_I  displays in console as

INFO: Starting clustering manager at /DATAGRID
 Apr 29, 2008 10:17:59 AM
 org.apache.catalina.cluster.session.DeltaManager getAll
 ClusterSessions
 WARNING: Manager [/DATAGRID], requesting session state from
 org.apache.catalina.
 cluster.mcast.McastMember[tcp://10.10.16.63:4002,catalina,10.10.16.63,4002,
 aliv
 e=17593]. This operation will timeout if no session state has been
 received with
 in 60 seconds.
 Apr 29, 2008 10:18:59 AM
 org.apache.catalina.cluster.session.DeltaManager waitFo
 rSendAllSessions
 SEVERE: Manager [/DATAGRID]: No session state send at 4/29/08 10:17 AM
 received,
  timing out after 60,109 ms.


 TOMCAT5523_II displays on console as

  INFO: Replication member
 added:org.apache.catalina.cluster.mcast.McastMember[tcp
 ://10.10.16.63:4001,catalina,10.10.16.63,4001, alive=16]
 Apr 29, 2008 10:17:59 AM
 org.apache.catalina.cluster.session.ClusterSessionListe
 ner messageReceived
 SEVERE: Context manager doesn't exist:/DATAGRID


 Am i missing something while clustering

 with regards
 Karthik



 karthikn wrote:




   
 Hi

 I have few Questions which i was not able to get TOMCAT CLUSTERING HOWTO
 and 

Re: 503 under load

2008-05-07 Thread Martin

The response can request retry-after # seconds via response.setHeader
response.setHeader(Retry-After, 5); 


M-
- Original Message - 
From: [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, May 07, 2008 2:43 PM
Subject: 503 under load



Hi,

We've started to stress test a new website, and are seeing 503's 
interspersed when we are under load.  We are running Apache - Tomcat 
combination.


Could someone give me an idea of what can cause this, and where to start 
looking?


cheers,

David



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



Re: Building Tomat 6

2008-05-07 Thread Rainer Jung

Richard Sayre schrieb:

Ok I downloaded Rapid SVN, but I get an access denied when trying to
add the URL when Importing the repository.

Do I need a user/passsword?


No, the repository is public for reading. If you try to retrieve via 
https instead of http, there wil be an authentication, but not for http.


Regards,

Rainer


On Wed, May 7, 2008 at 5:26 PM, Richard Sayre [EMAIL PROTECTED] wrote:

I was just getting ready to do that but I have no knowledge of SVN or
 how to use it.

 Is there a client that I can download so I can 'get latest' and get
 the latest code from the trunk?

 I found this link on the Build how-to
 http://svn.apache.org/repos/asf/tomcat/tc6.0.x/




 On Wed, May 7, 2008 at 5:18 PM, Mark Thomas [EMAIL PROTECTED] wrote:
  Richard Sayre wrote:
 
   Yes the ended up in c:\user\share\java
  
   I found the jdt plugin online and added it to
  c:\user\share\java\eclipse\plugins
  
 
   That suggests your build environment isn't correct.
 
 
 
   Then my compile worked.  But Im not sure if it took the proper source.
  
 
   Neither am I ;)
 
 
 
   I replaced the source files with the 2 found here:
  
   http://svn.apache.org/viewvc?view=revrevision=631700
  
   for the bug linked on that page.
  
   After I recompiled and replaced the  catalina.jar and
   tomcat-coyote.jar in my tomcat lib filder in my test env, I seem to be
   still getting the 8KB limit bug.  Im not sure if i did the build
   right.
  
 
   Safest bet is to do a svn checkout of:
   http://svn.apache.org/repos/asf/tomcat/trunk/
 
   and do a clean build.
 
 
 
   Mark
 
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



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



Re: Building Tomat 6

2008-05-07 Thread Mark Thomas

Richard Sayre wrote:

Ok I downloaded Rapid SVN, but I get an access denied when trying to
add the URL when Importing the repository.

Do I need a user/passsword?


No. As long as you are just reading the repo you should be fine.

Mark

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



Re: 503 under load

2008-05-07 Thread Rainer Jung

Hi David,

[EMAIL PROTECTED] schrieb:

Hi,

We've started to stress test a new website, and are seeing 503's 
interspersed when we are under load.  We are running Apache - Tomcat 
combination.


Could someone give me an idea of what can cause this, and where to start 
looking?


I expect the 503 is generated by httpd/mod_jk. If so, then your mod_jk 
log file should give an idea, if httpd couldn't contact Tomcat, didn't 
get an answer, ...


Is your stress test using a defined maximum parallelity? If not and your 
test client uses a timeout, then once your app gets slow, you'll easily 
saturate all Tomcat threads, DB connections, ... and finally httpd will 
no longer be able to send new requests to Tomcat.


Du regular thread dumps to your Tomcat while being under stress, to 
check what the AJP threads (TP-Processor) are actually doing.




cheers,

David


Regards,

Rainer

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



Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
Ok I figured it out.  I got the latest and did a build and everything
worked ok.

Thanks everyone for the help.

On Wed, May 7, 2008 at 7:16 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 Richard Sayre wrote:

  Ok I downloaded Rapid SVN, but I get an access denied when trying to
  add the URL when Importing the repository.
 
  Do I need a user/passsword?
 

  No. As long as you are just reading the repo you should be fine.



  Mark

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



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



Re: Web server and tomcat - firewall

2008-05-07 Thread Andrew Hole
Thanks

What means: error 10054 = Connection reset by peer.

Andrew

On Wed, May 7, 2008 at 7:14 PM, Rainer Jung [EMAIL PROTECTED] wrote:

 Andrew Hole wrote:

  HI!
 
  I don't have perl installed in production servers, but it is windows
  server
  2003.
 

 OK, then it is windows error 10054 = Connection reset by peer.

  About mod_jk configuration (mod_jk/1.2.18) :
 

 1.2.18 does not have DisableReuse. It was first implemented in 1.2.19. Bad
 luck. If you upgrade (you should), then go directly to 1.2.26.


  # List the workers name
  worker.list = p1balancer, resumop1
 
  # --
  # Load Balancer worker
  # --
  worker.p1balancer.type= lb
  worker.p1balancer.balanced_workers= p11,p12
 
  # 
  # First worker
  # 
  worker.p11.port= 8009
  worker.p11.host= 10.202.131.130
  worker.p11.type= ajp13
 
 
  # 
  # Second worker
  # 
  worker.p12.port= 8009
  worker.p12.host= 10.202.131.131
  worker.p12.type= ajp13
 
 
 
  # --
  # Load Balancer worker
  # --
  worker.resumop1.type= lb
  worker.resumop1.balanced_workers= rp11,rp12
 
  # 
  # First worker
  # 
  worker.rp11.port= 8007
  worker.rp11.host= 10.202.131.130
  worker.rp11.type= ajp13
 
 
  # 
  # Second worker
  # 
  worker.rp12.port= 8007
  worker.rp12.host= 10.202.131.131
  worker.rp12.type= ajp13
 
 
  On tomcat side   Connector port=*8009*
  enableLookups=*false*redirectPort
  =*8443* protocol=*AJP/1.3* /
 
  Thanks a lot
 

 You should start with reading the (relatively) new docs page about
 timeouts:

 http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html

 They will help detect such a problem and recover more gracefully.
 Especially cping/cpong are helpful in early problem detection.

 The pool timeouts should be helpful for closing idle connections, before
 you get a connection drop. Try to understand the page, and if things are
 unclear, ask us.

 How do you know, that the firewall is the root cause?

 To get a better understanding for the situation, you could compare
 netstat -an on the apache httpd side with one on the tomcat side. Look
 only for the relevant ports (8007 resp. 8009) and look for differences
 between the output. There could be small differences for a short period of
 time, but there should be no connections missing or being in a different
 state between the two outputs for a longer time (except for TIME_WAIT).

 Regards,

 Rainer

  On Wed, May 7, 2008 at 2:36 PM, Christopher Schultz 
  [EMAIL PROTECTED] wrote:
 
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1
  
   Rainer,
  
   Rainer Jung wrote:
   | [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c
   | (951): (p11) can't receive the response message from tomcat,
   | network problems or tomcat ( 10.202.131.130:8009) is down
   | (errno=54)
   |
   | What is errno 54 on your platform?
  
   FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is:
  
   Error 54: Exchange full
  
   ??!
  
   - -chris
  
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




response goes through load balancer?

2008-05-07 Thread Dave
Hi, I am using Apache mod JK as load balancer for tomcat instances. Tomcat 
instances are on the different machines with public IP addresses. Will the HTTP 
responses go back to the Apache load balance? If so, it will slow down the 
response. how to instruct tomcat not to send response to Apache? Thanks for 
help.
   
  Dave

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

mod_jk + tomcat 5.5 and apache2.2

2008-05-07 Thread mamta chaudhary
I am configuring mod_jk to connect apache2.2 and tomcat5.5. But it seems apache 
is not connecting to tomcat.
If I run

http://example.com:8080/jsp-examples/   or
http://example.com:7690/jsp-examples/   [here 8080 is tomcat port and
7690 is apache port]

But if I use---   http://example.com/jsp-examples/ It gives
error 'Unable to connect' and as per I know with mod_jk it supposed to
run without port no.


Here are my files:

1. workers.properties

workers.tomcat_home=/content/tomcat
workers.java_home=/usr/java
ps=/
worker.list=default

worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=default

2. apache2.conf

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/

Include /content/apache-tomcat-5.5.26/conf/auto/mod_jk.conf 

# Where to find workers.properties
JkWorkersFile /etc/apache2/workers.properties 

# Where to put jk(check for permission)
JkLogFile /var/log/apache2/mod_jk.log

# Set the jk log level
JkLogLevel debug

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T


3. sites-enabled/default

NameVirtualHost *
VirtualHost *
ServerAdmin [EMAIL PROTECTED]

##
ServerName localhost
JkMount /* default
JkMount /gdfr_home/* default
JkMount /jsp-examples/*.jsp default
Jkmount /servlet-examples/* default
   
DocumentRoot /content/subversion
Directory /
Options FollowSymLinks
AllowOverride All
/Directory

Directory /content/subversion
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
   
/Directory

ErrorLog /var/log/apache2/error.log

LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Location /inform
   DAV svn
   SVNPath /content/subversion/inform
/Location

/VirtualHost


4. server.xml

Server port=8005 shutdown=SHUTDOWN

  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  Listener className=org.apache.jk.config.ApacheConfig 
modJk=/usr/lib/apache2/modules/mod_jk.so /
  Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

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

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


!-- Define a SSL HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3 
emptySessionPath=true /


Connector port=8082 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false acceptCount=100 connectionTimeout=2
   proxyPort=80 disableUploadTimeout=true /

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

Listener className=org.apache.jk.config.ApacheConfig 
   modJk=/usr/lib/apache2/modules/mod_jk.so 
 workersConfig=/etc/apache2/workers.properties 
   jkWorker=default append=true 
   

Re: TOMCAT CLUSTERING HOWTO

2008-05-07 Thread karthikn

Hi

As per TOMCAT CLUSTERING HOWTO documents 


I am trying clustering on 2 TOMCAT 5.5.23  on WINDOWS OS sharing the same JVM 
1.6

with the parameters as below

   TC1  TC2 
Startup  80818082

ShutDown  80078008
APJ   80098010
TCP Listener  4001 4002
tcpListenAddress autoauto
jvmRoute node01  node02

Will this work ?



Somebody on the form said


deploy/undeploy your apps only to one server, and the cluster will

 distribute  the deployments/undeploy across the entire cluster.
 with  distributable/ in web.xml

This i was not working, How would one know the cluster is successfully.




Prerequisite : TOMCAT 5.5.23 (already in production ,we cannot change this 
version) 2 nos
JSDK   : 1.6
O/s : windows 2000



With regards
Karthik

a) Clustering

   1) Do we need to deploy the war files  on each individual Tomcat
when joined the clustering.
deploy your apps only to one server, and the cluster will
distribute  the deployments across the entire cluster.

This does not seems to work, after following the steps for 2
Tomcats (or am i missing some thing in here.)

   2) Is this a must do configuration

  Make sure that all nodes have the same time and sync with
NTP service! 

   for the clusters to start functioning.





Landon Fabbricino wrote:

Helly Karthikn,

I am confused as to where you are having problems?

I am not sure what you mean by How to test TOMCAT CLUSTERING with out Load 
balancer?

What exactly are you trying to do with your two tomcat machines?



Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7604
[EMAIL PROTECTED]

  

karthikn [EMAIL PROTECTED] 5/6/2008 7:55:17 AM 


Hi

How to test TOMCAT CLUSTERING with out Load balancer

As Per the Tomcat 5.5.23 Cluster HowTo Documents

I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM.

but not able to SAMPLE TEST the clustering


Am i on doing some thing wrong in here.?



Please Some body suggest me  . :(

with regards
Karthik




karthikn wrote:
  

Hi

How to test TOMCAT CLUSTERING with out Load balancer

As Per the Tomcat 5.5.23 Cluster HowTo Documents

I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM.

but not able to test the clustering


Am i on doing some thing wrong in here.?




with regards
Karthik









Landon Fabbricino wrote:



I honestly have not tried clustering tomcat without Apache before.

Just recently I set up a server farm with apache on one server and tomcat on 
two other servers (so 3 physical machines)

Apache contains the logic to handle the load balancing between the two 
tomcats:

jk.conf
JkWorkersFile   conf/workers.properties
JkLogFile   logs/jk_conn.log
JkLogLevel  error

JkMount /loadbalance-test*  loadbalancer

workers.properties
### Load Balancer Instances 
  worker.tomcat1.type=ajp13
  worker.tomcat1.host=server1.domain.com
  worker.tomcat1.port=8009  #AJP Port
  worker.tomcat1.lbfactor=1

  worker.tomcat4.type=ajp13
  worker.tomcat4.host=server2.domain.com
  worker.tomcat4.port=8010#AJP Port
  worker.tomcat4.lbfactor=1


### Define Mount Points 

  # Load Balance #
  worker.loadbalancer.type=lb
  worker.loadbalancer.balance_workers=tomcat1,tomcat2
  worker.loadbalancer.sticky_session=False
  worker.loadbalancer.method=B

### Load Mount Points   
  worker.list=loadbalancer







  

karthikn [EMAIL PROTECTED] 4/30/2008 10:57:51 PM 




Hi

As Per the Tomcat 5.5.23 Cluster HowTo Documents

I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM.

  Could you provide your apache's worker.properties file?

I have so far not used any APACHE Http Server for Load Balancing




with regards
Karthik





Landon Fabbricino wrote:


  

Could you provide your apache's worker.properties file?







karthikn [EMAIL PROTECTED] 4/30/2008 8:05:02 AM 



  

Hi

Any more suggestions ?


with regards
Karthik

karthikn wrote:





Hi

 distributable/

I have already added the same in my application's web.xml,
but still no improvement.




with regards
Karthik



Landon Fabbricino wrote:




  

If I am not mistaken, you will need to add the following tag to your web.xml

CATALINA_HOME/webapps/your_app_name/WEB-INF/web.xml
  !-- Required for session-replication in clustering mode  --
  distributable/



Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7604
[EMAIL PROTECTED]








karthikn [EMAIL PROTECTED] 4/28/2008 11:34:43 PM 





  

Hi

The Following was done for the Clustering  (2 tomcats )

Values