Re: Portable

2010-03-11 Thread André Warnier

Asangansi wrote:

Sup guyz, i want to create a portable and mobile version of my webapp
on a usb stick, so like to hav the gurus advice me on configuration
options, files i wouldn't need so it could be lighter and so i wont
have to config it when i move 2 another pc. And i'll to ask 'On what
platform does Tomcat run fastest'
Tanx guys, waitin on ya.

You may have a better chance posting in English and adding some 
punctuation.  This kind of cutesy jargon may be appropriate between 
teenies chatting on mobiles, but does not make understanding your 
question very easy.  If there is actually a question.




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



Stopping Catalina From MBean Server

2010-03-11 Thread Gurkan Erdogdu
Hello;

Environment : Tomcat 6.0.20
OS  : XP Professional 2002 SP3

Is anybody try to stop the catalina engine from jconsole. I have been using
Tomcat 6.0.20, and trying to stop Catalina from jconsole. I click
"Catalina/Service/Catalina/Operations/stop" on the MBean view. INFO messages
are written to the console related with stopping operation like below;

.
INFO : Stopping service CATALINA
INFO : Stopping Coyote HTTP/1.1 on http-8080

But never shut downs cleanly and waits there. If you look at the MBean view
now, some of them are removed.

WDYT?

Thanks;

--Gurkan


[ANN] Apache Tomcat 6.0.26 released

2010-03-11 Thread jean-frederic clere
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.26 stable. This release includes bug-fixes over Apache
Tomcat 6.0.24.
Note that is version has 4 zip binaries: a generic one and three
bundled with Tomcat native binaries for different CPU architectures.


Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

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



RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread vivri

Right now this issue is just a curiosity, as I've got the website up and
running properly on the other installation, but still...


n828cl wrote:
> 
>> On the deployment machine, on the other hand, I am able to load 
>> the page while Tomcat isn't running, and even make changes to the 
>> website and see them on a browser.
> 
> Not possible.  Either you're not really stopping Tomcat, or Tomcat is not
> the web server you're accessing.  Is Tomcat being front-ended by httpd,
> and is it configured to deliver the content you're changing?
> 

I'm not sure what you mean by 'front-ended', but in fact I've found an old
installation of httpd on this system. Quite possibly it's interfering with
Tomcat. As to being configured to deliver the content, what I'm changing is
in the proper place in the webapp directory, and afaik httpd isn't capable
of delivering JSP pages -- which leaves me quite puzzled...

Vic.
-- 
View this message in context: 
http://old.nabble.com/Tomcat-Java-permission-issuecannot-write-to-file-from-a-webapp.-tp27871316p27873758.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: [SOLVED] RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread vivri

I got it from the official site
(http://apache.skazkaforyou.com/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26.tar.gz).
I don't believe Ubuntu has 6.0.26 in any of their package repositories. This
is exactly the same version as on my dev machine, and exhibits the same
behavior (with none of the aforementioned problems...).

Victor.



n828cl wrote:
> 
>> From: vivri [mailto:victor.i...@gmail.com]
>> Subject: [SOLVED] RE: Tomcat Java permission issue -- cannot write to
>> file from a webapp.
>> 
>> I have installed Tomcat 6, and the problem(s) went away.
> 
> From where?  I believe that the Ubuntu distribution of Tomcat comes with a
> security manager enabled by default, whereas the real Tomcat from
> tomcat.apache.org does not.  Since Ubuntu likes to repackage Tomcat with
> many files shuffled around to non-standard locations and also changes some
> of the default configuration settings, it's not a version that can be
> properly supported on this mailing list.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-Java-permission-issuecannot-write-to-file-from-a-webapp.-tp27871316p27873720.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: [SOLVED] RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread Caldarale, Charles R
> From: vivri [mailto:victor.i...@gmail.com]
> Subject: [SOLVED] RE: Tomcat Java permission issue -- cannot write to
> file from a webapp.
> 
> I have installed Tomcat 6, and the problem(s) went away.

>From where?  I believe that the Ubuntu distribution of Tomcat comes with a 
>security manager enabled by default, whereas the real Tomcat from 
>tomcat.apache.org does not.  Since Ubuntu likes to repackage Tomcat with many 
>files shuffled around to non-standard locations and also changes some of the 
>default configuration settings, it's not a version that can be properly 
>supported on this mailing list.

 - Chuck


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



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



RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread Caldarale, Charles R
> From: vivri [mailto:victor.i...@gmail.com]
> Subject: RE: Tomcat Java permission issue -- cannot write to file from
> a webapp.
> 
> I restarted Tomcat (just to be sure), cleared the cache of my 
> browser and tried again - only to find the results unchanged.

I didn't say that moving the file to an acceptable location would fix the 
problem, just that what you were doing was not really supported.  You may have 
a permissions problem with the userid Tomcat is running under, or you may have 
a security manager enabled, which will interfere with many things not part of 
standard servlet behavior.

> On the deployment machine, on the other hand, I am able to load 
> the page while Tomcat isn't running, and even make changes to the 
> website and see them on a browser.

Not possible.  Either you're not really stopping Tomcat, or Tomcat is not the 
web server you're accessing.  Is Tomcat being front-ended by httpd, and is it 
configured to deliver the content you're changing?

 - Chuck


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


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



[SOLVED] RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread vivri

I have installed Tomcat 6, and the problem(s) went away. Thanks for the time
and for the help, Chuck.

Victor.


vivri wrote:
> 
> Thanks for the quick reply, Chuck. 
> 
> As a quick hack, I moved the records.txt file to my home directory
> (/root/records.txt) and changed the path in my java code as well. Then I
> restarted Tomcat (just to be sure), cleared the cache of my browser and
> tried again - only to find the results unchanged. Did I not understand
> what you meant, or is it something else?
> 
> An unrelated, but curiously unsettling phenomenon is that on my dev
> machine, if I quit Tomcat (either by running "catalina.sh stop" or
> "shutdown.sh"), then obviously the page fails to load. On the deployment
> machine, on the other hand, I am able to load the page while Tomcat isn't
> running, and even make changes to the website and see them on a browser. I
> can only guess that this isn't the expected normal behavior... perhaps I
> should reinstall Tomcat? (And upgrade to the newest version, as you've
> recommended.)
> 
> 
> Victor.
> 
> 
> 
> 
> n828cl wrote:
>> 
>>> From: vivri [mailto:victor.i...@gmail.com]
>>> Subject: Tomcat Java permission issue -- cannot write to file from a
>>> webapp.
>>> 
>>> My Apache Tomcat version is 5.5, installed on Ubuntu 8.04 through the
>>> aptitude package manager.
>> 
>> If you're just starting with Tomcat, then start with the current version
>> - 6.0.26.
>> 
>>> I am attempting to log survey responses in a file called "records.txt",
>>> which I keep in the directory of my webapp
>> 
>> This is a very bad idea.  It's not quite forbidden by the servlet spec,
>> but the container (Tomcat) is not required to provide a webapp with *any*
>> access to the underlying file system (if there is one), other than a
>> scratch area.  You should be treating the deployment space of the webapp
>> as read-only, and locate this writable file somewhere outside of the
>> Tomcat directory space.  The location can be specified via Java system
>> property, an environment variable, or environment or parameter entries in
>> the webapp deployment descriptor.
>> 
>>  - Chuck
>> 
>> 
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you
>> received this in error, please contact the sender and delete the e-mail
>> and its attachments from all computers.
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-Java-permission-issuecannot-write-to-file-from-a-webapp.-tp27871316p27873616.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread vivri

Thanks for the quick reply, Chuck. 

As a quick hack, I moved the records.txt file to my home directory
(/root/records.txt) and changed the path in my java code as well. Then I
restarted Tomcat (just to be sure), cleared the cache of my browser and
tried again - only to find the results unchanged. Did I not understand what
you meant, or is it something else?

An unrelated, but curiously unsettling phenomenon is that on my dev machine,
if I quit Tomcat (either by running "catalina.sh stop" or "shutdown.sh"),
then obviously the page fails to load. On the deployment machine, on the
other hand, I am able to load the page while Tomcat isn't running, and even
make changes to the website and see them on a browser. I can only guess that
this isn't the expected normal behavior... perhaps I should reinstall
Tomcat? (And upgrade to the newest version, as you've recommended.)


Victor.




n828cl wrote:
> 
>> From: vivri [mailto:victor.i...@gmail.com]
>> Subject: Tomcat Java permission issue -- cannot write to file from a
>> webapp.
>> 
>> My Apache Tomcat version is 5.5, installed on Ubuntu 8.04 through the
>> aptitude package manager.
> 
> If you're just starting with Tomcat, then start with the current version -
> 6.0.26.
> 
>> I am attempting to log survey responses in a file called "records.txt",
>> which I keep in the directory of my webapp
> 
> This is a very bad idea.  It's not quite forbidden by the servlet spec,
> but the container (Tomcat) is not required to provide a webapp with *any*
> access to the underlying file system (if there is one), other than a
> scratch area.  You should be treating the deployment space of the webapp
> as read-only, and locate this writable file somewhere outside of the
> Tomcat directory space.  The location can be specified via Java system
> property, an environment variable, or environment or parameter entries in
> the webapp deployment descriptor.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-Java-permission-issuecannot-write-to-file-from-a-webapp.-tp27871316p27873601.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: axis2:-) not seeing validation or administrator links from axis2

2010-03-11 Thread Caldarale, Charles R
> From: Terence Coffey [mailto:terence_j_cof...@yahoo.co.uk]
> Subject: RE: axis2:-) not seeing validation or administrator links from
> axis2

> I've removed the two directories WEB-INF and META-INF.

You need to remove the other files and directories I pointed out as well.

> When I click on available modules in the axis 2 administrator area i
> see the following.

At this point, it doesn't look like any of the issues or concerns you have are 
related to Tomcat, but instead on how to configure and use the Axis2 webapp.  
You're likely to get more informative answers from an Axis2 support group.

 - Chuck


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



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



RE: Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread Caldarale, Charles R
> From: vivri [mailto:victor.i...@gmail.com]
> Subject: Tomcat Java permission issue -- cannot write to file from a
> webapp.
> 
> My Apache Tomcat version is 5.5, installed on Ubuntu 8.04 through the
> aptitude package manager.

If you're just starting with Tomcat, then start with the current version - 
6.0.26.

> I am attempting to log survey responses in a file called "records.txt",
> which I keep in the directory of my webapp

This is a very bad idea.  It's not quite forbidden by the servlet spec, but the 
container (Tomcat) is not required to provide a webapp with *any* access to the 
underlying file system (if there is one), other than a scratch area.  You 
should be treating the deployment space of the webapp as read-only, and locate 
this writable file somewhere outside of the Tomcat directory space.  The 
location can be specified via Java system property, an environment variable, or 
environment or parameter entries in the webapp deployment descriptor.

 - Chuck


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


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



Portable

2010-03-11 Thread Asangansi
Sup guyz, i want to create a portable and mobile version of my webapp
on a usb stick, so like to hav the gurus advice me on configuration
options, files i wouldn't need so it could be lighter and so i wont
have to config it when i move 2 another pc. And i'll to ask 'On what
platform does Tomcat run fastest'
Tanx guys, waitin on ya.

-- 
CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire

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



Re: axis2:-) not seeing validation or administrator links from axis2

2010-03-11 Thread Hassan Schroeder
On Thu, Mar 11, 2010 at 4:15 PM, Terence Coffey
 wrote:

> 2 further questions
> 1. How do I associate style information with the XML file so it's nicely
> formatted on the screen ?

Normally you don't -- XML is for machine consumption.

If you want it turned into (X)HTML for display in a browser, use XSLT.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

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



RE: axis2:-) not seeing validation or administrator links from axis2

2010-03-11 Thread Terence Coffey
Hi Konstantin and Chuck,
Almost there, another few steps taken.

- No, It was a new installation. I think these extra files you mentioned
 were a misguided attempt by me
to deploy the axis2.war file using the exploded directory format to
resolve my initial problem of msvc(tomcat) not being able to write to the file 
system. I should have created a directory and then unzipped it inside this 
directory. I've removed the two directories WEB-INF and META-INF.

- This file does not exist anymore in /tmp and the error below is no longer 
being reported.
10-Mar-2010 22:42:52 org.apache.axis2.deployment.util.TempFileManager
> 
> INFO: TempFileManager::unable to delete /tmp/axis2-tmp-
> 6334442305603549214.tmp

- http://localhost:8080/axis2/
I can now see the validation and administrator link.
I added the manager role to the login user for the Tomcat Manager. I can
now view the Axis 2 Happiness page and access the axis 2 administration area.

When I click on available modules in the axis 2 administrator area i see the 
following. Is this Ok?
I was expecting to see a "soap monitor 1.1"  and  addressing 1.1 as 
shown in http://ws.apache.org/axis2/1_3/webadminguide.html. The output
is as follows?

    * metadataExchange : module description not found
    * mtompolicy : This is the MTOM policy module. It is engaged when we have 
MTOM policy assertion.
    * ping : module description not found
    * addressing : This is the WS-Addressing implementation on Axis2, 
supporting the WS-Addressing 1.0 Recommendation, as well as the Submission 
version (2004/08).
    * soapmonitor : module description not found
    * script : module description not found

I have managed to deploy the axis2 sample StockQuoteService application :-)
I can now successfully retrieve data using 
http://localhost:8080/axis2/services/StockQuoteService/getPrice?symbol=IBM 
but it's not nicely formatted on the screen.


2 further questions
1. How do I associate style information with the XML file so it's nicely
formatted on the screen ?

"This XML file does not appear to have any style information associated with 
it. The document tree is shown below.

42.0
                 "

2.In the  http://ws.apache.org/axis2/index.html page, under the programming 
model , WSDL 2.0 is listed.
Can you confirm that WSDL 2.0 is currently supported in this release ?

Thanks for your assistance.







--- On Thu, 11/3/10, Caldarale, Charles R  wrote:

> From: Caldarale, Charles R 
> Subject: RE: axis2: not seeing validation or administrator links from axis2
> To: "Tomcat Users List" 
> Date: Thursday, 11 March, 2010, 14:16
> > From: Pid [mailto:p...@pidster.com]
> > Subject: Re: axis2: not seeing validation or
> administrator links from
> > axis2
> > 
> > >
> r...@tc-laptop:/home/tc/TomCat/apache-tomcat-6.0.24/webapps#
> ls -asl
> > > total 19000
> > >      4 -rw-r--r--  1 tc
> tc      376 2007-07-30 16:26 hello.jsp
> > >      4 drwxr-xr-x  2 tc
> tc     4096 2007-07-30 16:26 images
> > >      4 -rw-r--r--  1 tc
> tc      636 2007-07-30 16:26 index.html
> > >      4 drwxr-xr-x  2 tc
> tc     4096 2010-03-10 11:47 META-INF
> > 
> > You've got a whole bunch of files dated 2007 in there,
> plus an
> > index.html, a META-INF etc.  Is this an upgrade
> from an older version
> > of Tomcat?
> 
> Not only that, the above files should *never* appear in
> webapps.  Looks like a clearly broken Tomcat
> installation and abuse of appBase and docBase.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
> OTHERWISE PROPRIETARY MATERIAL and is thus for use only by
> the intended recipient. If you received this in error,
> please contact the sender and delete the e-mail and its
> attachments from all computers.
> 
>














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



Tomcat Java permission issue -- cannot write to file from a webapp.

2010-03-11 Thread vivri

Hi,

I'm new to this forum, and to developing for/using Tomcat in general (and a
bit of a novice in programming in general). I tried various websites and
tutorials to rectify my problem, with no results.


My Apache Tomcat version is 5.5, installed on Ubuntu 8.04 through the
aptitude package manager.
My Java version (the one $JAVA_HOME points to) is OpenJDK 6, also installed
through aptitude. I am logged in as root user.


PROBLEM DESCRIPTION:


Please note that on my development machine (a manual install of Tomcat 6 on
Ubuntu 9.10), the problem does not exist. I imagine this is an issue between
versions.


I am attempting to log survey responses in a file called "records.txt",
which I keep in the directory of my webapp
(".../webapps/MyWebApp/records.txt"). To this end, I pass parameters to a
JSP file through the "post" method, and write it to a file thus:


RecordKeep.CreateRecord (record, outfile);


This routine is stored in a JAR file in the directory of my webapp (compiled
as v.1.5).  Here is the code for it:



public static synchronized boolean CreateRecord (String record, String
filename)
{
boolean success = true;
try 
{
File file = new File(filename);
BufferedWriter out = new BufferedWriter(new FileWriter(file,
true));
out.write(RECORD_START + record + '\n');
out.close();
} 
catch (IOException e) 
{
success = false;
}

return success;
}
}


When I attempt to execute the code through a browser, I get the following
exception from the line where I try to write to the file (the entire trace
is too long to include):


java.security.AccessControlException: access denied (java.io.FilePermission
/usr/share/tomcat5.5/webapps/MyWebapp/records.txt write)


ATTEMPTED SOLUTIONS:

From
http://www.mkyong.com/tomcat/tomcat-javasecurityaccesscontrolexception-access-denied-loggingproperties-read/
I tried two solutions:


1) Change the grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar"
category of permissions in 03catalina.policy to: grant codeBase
"file:${catalina.home}/bin/tomcat-juli.jar" {
permission java.security.AllPermission;
};


2) Add an additional permission to the same permission clause: permission
java.io.FilePermission
"$${catalina.base}${file.separator}webapps${file.separator}*", "read,
write";


I don't know whether these options are used by default, so I tried running
both ./catalina.sh start and ./catalina.sh start -security to see whether
the security manager might have something to do with it. By this time I was
just groping around in the dark...

Also, I unfortunately can't see whether accessing the server from localhost
might bring different results.


Help would be most welcome, as I'm completely lost, and I need to get this
up and running in a matter of days. Thanks for your time in advance!


Sincerely,

Victor.
-- 
View this message in context: 
http://old.nabble.com/Tomcat-Java-permission-issuecannot-write-to-file-from-a-webapp.-tp27871316p27871316.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


RE: tomcat hangs without anything

2010-03-11 Thread Caldarale, Charles R
> From: Maurice Mengel [mailto:mauricemen...@gmail.com]
> Subject: Re: tomcat hangs without anything
> 
>   connectionTimeout="2"
>redirectPort="8443" />

That time value only controls how long Tomcat will wait after a connection 
request to receive the first byte of data.  If raising it beyond the default of 
20 seconds helps, this is indicative of a client, not server, problem.  Are you 
perhaps running out of memory on the laptop, causing processes to get swapped 
out?

> Jconsole seems not to be able to connect

Odd; there are sometimes problems using JConsole with Tomcat running as a 
service, but I've not heard of any with Tomcat started with the scripts on XP.

 - Chuck


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



Re: tomcat hangs without anything

2010-03-11 Thread Maurice Mengel
I have changed server.xml to a ridiculous connectionTimeout value and now it
seems to run better. Since I did this for no good reason at all, it is
probably not the reason it runs better.
  

Jconsole seems not to be able to connect, although servlet is responsive.

I think I probably need to read more about jconsole, but I guess I need to
sleep first.

For the time being it works now!

Thanks for the great help!

Your help makes tomcat a lot more sympathetic to me!

Maurice


On Thu, Mar 11, 2010 at 11:06 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Maurice Mengel [mailto:mauricemen...@gmail.com]
> > Subject: Re: tomcat hangs without anything
> >
> > I hope this is what you ask me for:
>
> It is, and it shows nothing unusual - all pretty standard settings.
>
> > Example: This time I was able to click 10 times on manager/status and
> > list applications before it froze.
>
> What happens if you start another browser to connect to Tomcat with?
>
> > I wrote a line in this email and then it didn't work anymore.
>
> How much memory do you have on the system?  Is it oversubscribed?
>
> Can you run JConsole and display what's going on inside the JVM Tomcat is
> using?  Might show heap exhaustion, although that would seem very unlikely
> based on the previously posted stack trace.  (Which was taken /after/ Tomcat
> became unresponsive, correct?)
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>


RE: tomcat hangs without anything

2010-03-11 Thread Caldarale, Charles R
> From: Maurice Mengel [mailto:mauricemen...@gmail.com]
> Subject: Re: tomcat hangs without anything
> 
> I hope this is what you ask me for:

It is, and it shows nothing unusual - all pretty standard settings.

> Example: This time I was able to click 10 times on manager/status and
> list applications before it froze.

What happens if you start another browser to connect to Tomcat with?

> I wrote a line in this email and then it didn't work anymore.

How much memory do you have on the system?  Is it oversubscribed?

Can you run JConsole and display what's going on inside the JVM Tomcat is 
using?  Might show heap exhaustion, although that would seem very unlikely 
based on the previously posted stack trace.  (Which was taken /after/ Tomcat 
became unresponsive, correct?)

 - Chuck


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



RE: tomcat hangs without anything

2010-03-11 Thread Caldarale, Charles R
> From: Maurice Mengel [mailto:mauricemen...@gmail.com]
> Subject: Re: tomcat hangs without anything
> 
> 4) here is the output of jstack.

Everything looks pretty normal here.

> "http-8080-1" daemon prio=6 tid=0x0344b000 nid=0x180c in Object.wait()
> [0x03adf000]
>    java.lang.Thread.State: WAITING (on object monitor)
>     at java.lang.Object.wait(Native Method)
>     - waiting on <0x077d0068> (a
> org.apache.tomcat.util.net.JIoEndpoint$Worker)
>     at java.lang.Object.wait(Object.java:485)

The one above is waiting for a socket from the next connection attempt by the 
client.

> "TP-Monitor" daemon prio=6 tid=0x03449800 nid=0x1e40 in Object.wait()

The thread pool monitor, doing nothing, as usual.

> "TP-Processor4" daemon prio=6 tid=0x031afc00 nid=0x13b0 runnable

This one is waiting for a connection over the AJP port (8009), which you likely 
aren't using.

> "TP-Processor3" daemon prio=6 tid=0x03441400 nid=0x1dec
> "TP-Processor2" daemon prio=6 tid=0x03466400 nid=0x1db8
> "TP-Processor1" daemon prio=6 tid=0x03448400 nid=0x1f60

Idle worker threads, waiting for requests to show up.

> "http-8080-Acceptor-0" daemon prio=6 tid=0x031b4c00 nid=0x173c runnable

This one is waiting for a connection over the HTTP port (8080).

> "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=6
> tid=0x0345d400 nid=0x18dc

A normal Tomcat background thread.

> "GC Daemon" daemon prio=2 tid=0x03194c00 nid=0x18f4 
> "Low Memory Detector" daemon prio=6 tid=0x02ca6800 nid=0x1e00 runnable
> "CompilerThread0" daemon prio=10 tid=0x02ca3800 nid=0x1c6c
> "Attach Listener" daemon prio=10 tid=0x02ca2000 nid=0x1774 
> "Signal Dispatcher" daemon prio=10 tid=0x02ca0c00 nid=0x1a34 runnable
> "Finalizer" daemon prio=8 tid=0x02c62000 nid=0x1ea0 
> "Reference Handler" daemon prio=10 tid=0x02c5d400 nid=0x19c0

Standard JVM internal threads.
 
> "main" prio=6 tid=0x002a7400 nid=0x1528 runnable [0x0038f000]

The initial Tomcat thread, waiting for a shutdown command.

> "VM Thread" prio=10 tid=0x02c5bc00 nid=0x1c2c runnable
> "VM Periodic Task Thread" prio=10 tid=0x02cab800 nid=0x1db4

More internal JVM threads.

All looks perfectly normal for an idle Tomcat, waiting for clients to make 
requests.

 - Chuck


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



Re: tomcat hangs without anything

2010-03-11 Thread Maurice Mengel
4) no other server. I uninstalled apache-http and didn't do anything to
tomcat config.

I hope this is what you ask me for:

  






I am not sure if Tomcat starts to refuse after about 1 min or after a
certain no of requests. I would guess it usually takes about 1 min. Not
always the same time, though. Not always the same no of requests either.
Example: This time I was able to click 10 times on manager/status and list
applications before it froze. The next time it froze not even after 50
times. I wrote a line in this email and then it didn't work anymore.




On Thu, Mar 11, 2010 at 10:36 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Maurice,
>
> On 3/11/2010 4:26 PM, Maurice Mengel wrote:
> > 2) I get the static page, because it is still in the brower cache,
> > browser is loading, but never actually displays anything; after a very
> > long time, a timeout. How do you describe that?
>
> That sounds like a connection timeout, rather than a refusal. Basically,
> the OS accepts the connection to the socket, but then the server
> (Tomcat) never picks up the phone, and eventually a timeout occurs.
>
> > 3) yes stout goes to console, see attachment
>
> Your attachment was stripped: please just paste it into your next reply.
>
> > 4) here is the output of jstack.
>
> Everything looks okay in there to me. Can you post your 
> configuration(s) from conf/server.xml? Are you using any web server in
> front of Tomcat? You didn't mention it, but it's always good to check.
>
> The Tomcat's refusal to answer requests come after a certain number of
> requests are issued (say, the 10th request always fails), or a certain
> period of time (after 30 seconds, all failures)? Once you get yourself
> into this state, does Tomcat ever recover?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkuZYmAACgkQ9CaO5/Lv0PCtjACgpAzueLh7RoH2/6HoFKyIrMst
> FJcAn1Mhd68UoDYR30aEiANDa6lRCPdM
> =QHOo
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: tomcat hangs without anything

2010-03-11 Thread Maurice Mengel
As far as I can tell, it tells essentially the same. Now I am using
different jdk and the catalina.bat run command.

I didn't know I could copy from this windows at all. Usually, I use cygwin,
but this seems not to make anything easier.


C:\Apache\apache-tomcat-6.0.24>bin\catalina.bat run
Using CATALINA_BASE:   C:\Apache\apache-tomcat-6.0.24
Using CATALINA_HOME:   C:\Apache\apache-tomcat-6.0.24
Using CATALINA_TMPDIR: C:\Apache\apache-tomcat-6.0.24\temp
Using JRE_HOME:C:\Java\jdk1.6.0_17
Using CLASSPATH:   C:\Apache\apache-tomcat-6.0.24\bin\bootstrap.jar
Mar 11, 2010 10:30:12 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Java\jdk
1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\mingw\b
in;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Inte
l\Wireless\Bin\;C:\Program Files\Diskeeper Corporation\Diskeeper\;C:\Program
Fil
es\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Lenovo;C:\Program
Fil
es\Lenovo\Client Security
Solution;;C:\strawberry\c\bin;C:\strawberry\perl\bin;C
:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program
Files\QuickTime\QTSystem\;C
:\cygwin\bin;C:\Apache\ant\bin;C:\Apache\maven\bin;C:\Program
Files\Nmap;C:\Prog
ram Files\gs\gs8.70\bin
Mar 11, 2010 10:30:13 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 11, 2010 10:30:13 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1152 ms
Mar 11, 2010 10:30:13 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 11, 2010 10:30:13 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
Mar 11, 2010 10:30:13 PM org.apache.catalina.startup.HostConfig
deployDescriptor

INFO: Deploying configuration descriptor host-manager.xml
Mar 11, 2010 10:30:14 PM org.apache.catalina.startup.HostConfig
deployDescriptor

INFO: Deploying configuration descriptor manager.xml
Mar 11, 2010 10:30:14 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory docs
Mar 11, 2010 10:30:14 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory examples
Mar 11, 2010 10:30:15 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory oaicat
Mar 11, 2010 10:30:15 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory ROOT
Mar 11, 2010 10:30:15 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 11, 2010 10:30:16 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 11, 2010 10:30:16 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63  config=null
Mar 11, 2010 10:30:16 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2628 ms



On Thu, Mar 11, 2010 at 10:32 PM, André Warnier  wrote:

> Maurice Mengel wrote:
>
>>
>> 3) yes stout goes to console, see attachment
>>
>>  The list strips most attachments, and we did not get this one.
> You may need to paste the screen messages directly here, like you did with
> the jstack output.
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: tomcat hangs without anything

2010-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maurice,

On 3/11/2010 4:26 PM, Maurice Mengel wrote:
> 2) I get the static page, because it is still in the brower cache,
> browser is loading, but never actually displays anything; after a very
> long time, a timeout. How do you describe that?

That sounds like a connection timeout, rather than a refusal. Basically,
the OS accepts the connection to the socket, but then the server
(Tomcat) never picks up the phone, and eventually a timeout occurs.

> 3) yes stout goes to console, see attachment

Your attachment was stripped: please just paste it into your next reply.

> 4) here is the output of jstack.

Everything looks okay in there to me. Can you post your 
configuration(s) from conf/server.xml? Are you using any web server in
front of Tomcat? You didn't mention it, but it's always good to check.

The Tomcat's refusal to answer requests come after a certain number of
requests are issued (say, the 10th request always fails), or a certain
period of time (after 30 seconds, all failures)? Once you get yourself
into this state, does Tomcat ever recover?

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

iEYEARECAAYFAkuZYmAACgkQ9CaO5/Lv0PCtjACgpAzueLh7RoH2/6HoFKyIrMst
FJcAn1Mhd68UoDYR30aEiANDa6lRCPdM
=QHOo
-END PGP SIGNATURE-

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



Re: tomcat hangs without anything

2010-03-11 Thread André Warnier

Maurice Mengel wrote:


3) yes stout goes to console, see attachment


The list strips most attachments, and we did not get this one.
You may need to paste the screen messages directly here, like you did 
with the jstack output.





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



Re: tomcat hangs without anything

2010-03-11 Thread André Warnier

Christopher Schultz wrote:


   - windows xp
   - I start tomcat with bin\startup.bat


Can you post everything that shows up on the console during Tomcat
startup? IIRC, bin\startup.bat leaves the window open and stdout just
goes to the terminal.


Not exactly.

When you start it via startup.bat, it opens another window inside of 
which Tomcat is running.  There, you do see Tomcat's stdout.
The problem is that if Tomcat stops or crashes, this window instantly 
closes, so you may miss the last messages.


If you start Tomcat with the command "catalina.bat run" however, then 
Tomcat runs in the same command window where you issued this command 
(iow it does not open a second window).
In that case, if Tomcat stops or crashes, the window does not close and 
you still see the messages if any.

You can stop Tomcat by entering CTRL-C once in the same window.




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



Re: tomcat hangs without anything

2010-03-11 Thread Maurice Mengel
1) thanks for the very quick response!

2) I get the static page, because it is still in the brower cache, browser
is loading, but never actually displays anything; after a very long time, a
timeout. How do you describe that?

3) yes stout goes to console, see attachment

4) here is the output of jstack.

It doesn't tell me much. Thanks in advance!
Maurice

2010-03-11 22:24:34
Full thread dump Java HotSpot(TM) Client VM (14.3-b01 mixed mode, sharing):

"http-8080-1" daemon prio=6 tid=0x0344b000 nid=0x180c in Object.wait()
[0x03adf000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x077d0068> (a
org.apache.tomcat.util.net.JIoEndpoint$Worker)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
- locked <0x077d0068> (a org.apache.tomcat.util.net.JIoEndpoint$Worker)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
at java.lang.Thread.run(Thread.java:619)

"TP-Monitor" daemon prio=6 tid=0x03449800 nid=0x1e40 in Object.wait()
[0x03a7f000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x077d00e8> (a
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
at
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:565)
- locked <0x077d00e8> (a
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
at java.lang.Thread.run(Thread.java:619)

"TP-Processor4" daemon prio=6 tid=0x031afc00 nid=0x13b0 runnable
[0x03a2f000]
   java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
- locked <0x077d01c8> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:307)
at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:661)
at
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:872)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)

"TP-Processor3" daemon prio=6 tid=0x03441400 nid=0x1dec in Object.wait()
[0x039df000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x077d0470> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
- locked <0x077d0470> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:619)

"TP-Processor2" daemon prio=6 tid=0x03466400 nid=0x1db8 in Object.wait()
[0x0398f000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x077d0510> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
- locked <0x077d0510> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:619)

"TP-Processor1" daemon prio=6 tid=0x03448400 nid=0x1f60 in Object.wait()
[0x0393f000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x077d05b0> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
- locked <0x077d05b0> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:619)

"http-8080-Acceptor-0" daemon prio=6 tid=0x031b4c00 nid=0x173c runnable
[0x038ef000]
   java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
- locked <0x092697e0> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Thread.java:619)

"ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=6
tid=0x0345d400 nid=0x18dc waiting on condition [0x0389f000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1579)
at java.lang.T

Re: foreach ant task

2010-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaushal,

On 3/11/2010 8:52 AM, Kaushal Shriyan wrote:
> can someone here give me example to use foreach ant task to deploy
> same war to multiple running Tomcat Server?
> http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html

What have you tried so far?

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

iEYEARECAAYFAkuZXvQACgkQ9CaO5/Lv0PAc6ACfexRPrBFZ+4IPZG/gx3itbrVL
utsAn25LE9EAzkndxHoSZwJdpy2P1xUD
=x1WB
-END PGP SIGNATURE-

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



Re: tomcat hangs without anything

2010-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maurice,

On 3/11/2010 3:42 PM, Maurice Mengel wrote:
> Hi!
> 
> I am new to tomcat. It try to use it with some servlet (oaicat). It seems to
> run well on my pc at work, but I cannot run it on my laptop on which I would
> like to develop.
> 
> I start it, it looks fine. And after a few seconds or minutes, I doesn't
> answer any response.

Do you mean that it refuses HTTP requests, or you get a connection but
nothing ever displays?

> I uninstalled already all unnecessary versions of java, tried with different
> version. Installed a new tomcat.
> 
> 
>- windows xp
>- I start tomcat with bin\startup.bat

Can you post everything that shows up on the console during Tomcat
startup? IIRC, bin\startup.bat leaves the window open and stdout just
goes to the terminal.

>- jdk 1.6.0_14

Since you have the JDK, you should have a program called "jstack.exe":
you can run that with the pid of the running JVM to see what all the JVM
threads are doing. Post the output of jstack.exe and we'll take a look.

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

iEYEARECAAYFAkuZV/QACgkQ9CaO5/Lv0PD4lwCeL4GM/6fSmNkbjrnOQ4ZocZgn
X1wAoKHRhGsPaZg9+TfZWdWY9jBxYY3A
=xuug
-END PGP SIGNATURE-

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



tomcat hangs without anything

2010-03-11 Thread Maurice Mengel
Hi!

I am new to tomcat. It try to use it with some servlet (oaicat). It seems to
run well on my pc at work, but I cannot run it on my laptop on which I would
like to develop.

I start it, it looks fine. And after a few seconds or minutes, I doesn't
answer any response.

I uninstalled already all unnecessary versions of java, tried with different
version. Installed a new tomcat.


   - windows xp
   - I start tomcat with bin\startup.bat
   - jdk 1.6.0_14
   - tomcat 6.0.24
   - nothing in log files that looks like an error
   - tomcat freezes with or without that servlet

I have been trying to solve this for days. I am sure it is stupid beginner's
thing. I appreciate every help!

thanks
Maurice


Re: Applying a servlet filter to a static resource

2010-03-11 Thread André Warnier

André Warnier wrote:
...

I have not tested the following, and it is not based on any certain 
knowledge based on the HTTP RFCs, so treat with caution, but you could 
try a cheap trick :
In the link to that "document" in the html page, add a dummy query 
string, like :

instead of
http://servername/webappname/js/config/my.json
try
http://servername/webappname/js/config/my.json?a=my.json

The presence of the query string /might/ trick the browser in thinking 
that this is not a static page, and force it to re-request it from the 
server.



By the way, forget the above, it does not work, or only partially.
The browser does not serve it from its cache the second time, but the 
server sends a 304 anyway.

(I tried with http://tomcat.apache.org)

What I wrote about the browser plugin and looking at the 
request/response header sequence is still true however, and is very 
instructive.


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



Re: Applying a servlet filter to a static resource

2010-03-11 Thread André Warnier

Pid wrote:

On 11/03/2010 14:38, Matt Veitas wrote:

...

If I
could modify the calling code to hit a servlet instead of the static
resource, I could use that servlet to read the static resource (JSON),
perform some business logic and modify the JSON, and return that to the
client, but unfortunately I can't change the calling url.

I missed this the first time around, but you can do that, and you would 
not have to modify the calling URL.


Use a servlet instead of a filter, and (to my knowledge) there is 
nothing stopping you from mapping your servlet to


 /js/config/my.json

In order for the above to map exactly to the URL
http://yourhost/js/config/my.json
I think you would have to put this servlet inside the ROOT (default) webapp.
Then make sure that when this servlet returns the response, it sets the 
appropriate HTTP headers to forbid the client browser (or any caching 
entity in-between) from caching the result.
I do not remember all the headers that play a role there, but two of 
them are

Expires: 0   (or better, the date of yesterday in the correct format)
Cache-Control: no-cache

Check in RFC2616, sections 13 and 14



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



Re: question about single Executor for multiple Connectors

2010-03-11 Thread Mark Thomas
On 11/03/2010 17:24, Timothy J Schumacher wrote:
> My question is:  when i access tomcat via port 8080 I see in my logs
> that the thread that handles my request is called TCThreadPool-N as
> expected, however if I use port 80, though httpd, I see the name of the
> thread that handles my request is named TP-Processor-M.  Does this imply
> that my one Executor is not handling requests from both Connectors?  

Yes

>If not why not? 

The default AJP implementation does not support an executor. This is
mention (breifly) in the protocol attribute of the AJP connector docs:
http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

> As a follow up, is it possible to configure whatever pool
> the TP-Processor threads come from?

Yes, but you need to use a different implementation - see previous answer.

Mark



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



Re: Applying a servlet filter to a static resource

2010-03-11 Thread Pid

On 11/03/2010 14:38, Matt Veitas wrote:

Hi,

I am using Tomcat 6.0.24 and am trying to use a servlet filter on a static
resource and am having some troubles as the 2nd request returns a 304.


What are you trying to do in the Filter?  Post some code.


If I
could modify the calling code to hit a servlet instead of the static
resource, I could use that servlet to read the static resource (JSON),
perform some business logic and modify the JSON, and return that to the
client, but unfortunately I can't change the calling url.


TestFilter
foo.TestFilter


TestFilter
/js/config/my.json


Is there anything I can do to make Tomcat not return the 304 for the 2nd
request to my.json?


Are you setting 'no-cache' headers or modifying the content of the file?


p



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



Re: axis2: not seeing validation or administrator links from axis2

2010-03-11 Thread Pid

On 11/03/2010 14:16, Caldarale, Charles R wrote:

From: Pid [mailto:p...@pidster.com]
Subject: Re: axis2: not seeing validation or administrator links from
axis2


r...@tc-laptop:/home/tc/TomCat/apache-tomcat-6.0.24/webapps# ls -asl
total 19000
  4 -rw-r--r--  1 tc tc  376 2007-07-30 16:26 hello.jsp
  4 drwxr-xr-x  2 tc tc 4096 2007-07-30 16:26 images
  4 -rw-r--r--  1 tc tc  636 2007-07-30 16:26 index.html
  4 drwxr-xr-x  2 tc tc 4096 2010-03-10 11:47 META-INF


You've got a whole bunch of files dated 2007 in there, plus an
index.html, a META-INF etc.  Is this an upgrade from an older version
of Tomcat?


Not only that, the above files should *never* appear in webapps.  Looks like a 
clearly broken Tomcat installation and abuse of appBase and docBase.


I suspect so...


p


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




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



Re: Disabling http connector

2010-03-11 Thread Pid

On 11/03/2010 12:24, Cummins College wrote:

Hi,

I know that https by enabling the secure attribute to true.


No.  More is required.


But what if I want to "disable" the http connector?


You don't.  You just want to force the user to use HTTPS, which is not 
the same thing at all.



To elaborate, I want the https connector to be disabled when http runs and
vice versa.


Again, no you don't.
Worse, you don't usually want to redirect a secure session back to HTTP, 
unless the user is being logged out.


> What changes should be done?

Read the Servlet Spec, it provides for this requirement, as Mikolaj 
hinted.  "transport-guarantee" is a setting in your web.xml.




However, not by changing the secure attribute.

We know most of you dont exactly agree or approve of our idea about fiddling
with the http connector, but please do help!


It's not a case of agree or approve, your idea/understanding is just 
wrong and you've already wasted many hours trying to making it work.


Disabling the HTTP/S connector will affect *all* users, not just a 
single one.  Please confirm that you understand this.



p

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



RE: Tomcat 6.0.26 Download and Release Notes

2010-03-11 Thread Caldarale, Charles R
> From: emerson cargnin [mailto:echofloripa.y...@gmail.com]
> Subject: Re: Tomcat 6.0.26 Download and Release Notes
> 
> I can't see what are the changes from the 6.0.24.

The link is on the left hand side of the doc page.

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

 - Chuck


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


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



Re: Tomcat 6.0.26 Download and Release Notes

2010-03-11 Thread Konstantin Kolinko
2010/3/11 emerson cargnin :
> I managed to download from the main site, but inside the release notes
> I can't see what are the changes from the 6.0.24.
> Is there anywhere where I could find this info?
>
Wow. It synched. Finally.

I think you mean this document:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Best regards,
Konstantin Kolinko

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



Re: Tomcat 6.0.26 Download and Release Notes

2010-03-11 Thread emerson cargnin
I managed to download from the main site, but inside the release notes
I can't see what are the changes from the 6.0.24.
Is there anywhere where I could find this info?

Emerson

On 11 March 2010 16:15, Mladen Turk  wrote:
> On 03/11/2010 05:03 PM, Caldarale, Charles R wrote:
>>
>> I guess we'll have to be patient.
>>
>
> Some problems with syncing to web server.
> IT should solve this within 24 hours.
>
>
> Regards
> --
> ^TM
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

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



question about single Executor for multiple Connectors

2010-03-11 Thread Timothy J Schumacher

Hi,

I am using 6.0.24 with a java 1.6 on an old redhat linux system.  I am 
using httpd in combination with tomcat.  All is working as expected but 
I had a question about something I noticed in my logs.


In my server.xml I have set up one Executor and two Connectors (one for 
port 8080 "http"and one for port 8009 "ajp13").  Below is the relavent 
portion of my server.xml:


   
   maxThreads="50" minSpareThreads="5"/>


   
   enableLookups="false" connectionTimeout="6" 
executor="TomcatThreadPool" disableUploadTimeout="true" />


   
   enableLookups="false" connectionTimeout="6" 
executor="TomcatThreadPool" disableUploadTimeout="true" />


My question is:  when i access tomcat via port 8080 I see in my logs 
that the thread that handles my request is called TCThreadPool-N as 
expected, however if I use port 80, though httpd, I see the name of the 
thread that handles my request is named TP-Processor-M.  Does this imply 
that my one Executor is not handling requests from both Connectors?  If 
not why not?  As a follow up, is it possible to configure whatever pool 
the TP-Processor threads come from? 


Thanks!
Tim

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



Re: question on tribes member alive time

2010-03-11 Thread Filip Hanik - Dev Lists

On 03/11/2010 01:46 AM, Eddie Hsiung wrote:

Hi

I'm trying to debug a vendor product which uses Apache Tribes as its cluster
communication implementation.  I've identified that each member of the
cluster derives the "master node" instance using the aliveTime field of all
members of the cluster.  The member with the largest aliveTime is elected to
be the master node.
   

I would not recommend using aliveTime as the elector for master node.
The reason for that is cause if the network is busy, then multicast 
packets can be delayed or dropped all together.

So you could end up with masters changing constantly.
Instead, Tribes already defines an absolute ordering algorithm
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/AbsoluteOrder.java?view=log
I would suggest using this for the simplest possible master election


One thing I notice is that local member aliveTime is only updated when
McastService.getLocalMember() is called while (remote) member aliveTime is
updated constantly (by a separate thread?).

Is this observation correct?  If so, does this mean that using aliveTime to
elect a master node might run into race conditions if it wasn't implemented
carefully?

For example, remote member aliveTime is always more up-to-date than the
local member alive time.  Assuming two members of the cluster started almost
at the same time, It's possible that they always think the other member is
alive longer (if the remote aliveTime is updated before local aliveTime)
and, therefore, think the other member is the master node.

Thanks for any clarification on the subject.


eddie

   



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



Re: Tomcat 6.0.26 Download and Release Notes

2010-03-11 Thread Mladen Turk

On 03/11/2010 05:03 PM, Caldarale, Charles R wrote:


I guess we'll have to be patient.



Some problems with syncing to web server.
IT should solve this within 24 hours.


Regards
--
^TM

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



RE: Tomcat 6.0.26 Download and Release Notes

2010-03-11 Thread Caldarale, Charles R
> From: emerson cargnin [mailto:echofloripa.y...@gmail.com]
> Subject: Tomcat 6.0.26 Download and Release Notes
> 
> In the tomcat 6 download page, it says that 6.0.26 is available, but
> the links are broken:
> 
> http://tomcat.apache.org/download-60.cgi

The 6.0.26 version isn't in the archives yet, so I suspect someone prematurely 
updated the Tomcat home page.

The doc link is also broken:
http://tomcat.apache.org/tomcat-6.0-doc/index.html

"Not Found"
"The requested URL /tomcat-6.0-doc/index.html was not found on this server."

This is where the changelog and any release notes would normally be linked from.

I guess we'll have to be patient.

 - Chuck


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


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



Tomcat 6.0.26 Download and Release Notes

2010-03-11 Thread emerson cargnin
In the tomcat 6 download page, it says that 6.0.26 is available, but
the links are broken:

http://tomcat.apache.org/download-60.cgi

I suppose that it is due to be updated at any moment. Besides that,
how can I find the release notes for the 6.0.26?

Regards
Emerson

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



Re: Applying a servlet filter to a static resource

2010-03-11 Thread André Warnier

Caldarale, Charles R wrote:

From: Matt Veitas [mailto:mvei...@gmail.com]
Subject: Applying a servlet filter to a static resource

I am using Tomcat 6.0.24 and am trying to use a servlet filter 
on a static resource and am having some troubles as the 2nd 
request returns a 304.


Are you sure it's Tomcat returning the 304, or is that being done by some 
intermediary?


unfortunately I can't change the calling url.


What is the URL of interest?  Under what name is the webapp deployed?



   TestFilter
   /js/config/my.json



The above should give the filter control, if the  is correct.

Is there anything I can do to make Tomcat not return the 
304 for the 2nd request to my.json?


The 304 is generated in Tomcat's DefaultServlet; your filter should be getting 
control before that servlet is invoked, if it's configured properly and there's 
nothing between the client and Tomcat that's caching the request.  Try 
verifying that the subsequent requests are actually making it to Tomcat (enable 
the AccessLogValve in server.xml).



What also helps a lot usually in such cases, is using a browser add-on 
such as HttpFox (Firefox) or Fiddler2 (IE), to see the exact sequence of 
HTTP requests/responses, and their associated HTTP headers.
For example, you would see there if it is really the server sending a 
304 (not modified), or the browser just serving the document from its 
own cache.
Or you would see if the response comes from Tomcat or from Apache httpd 
or IIS or some other proxy, if you have one of those in front of Tomcat 
(as seen from the browser end).


To the browser, the above URI "/(webappname)/js/config/my.json" 
certainly looks like a static resource, so it would not be surprising if 
it just cached it the first time, and served it from cache the second time.


I have not tested the following, and it is not based on any certain 
knowledge based on the HTTP RFCs, so treat with caution, but you could 
try a cheap trick :
In the link to that "document" in the html page, add a dummy query 
string, like :

instead of
http://servername/webappname/js/config/my.json
try
http://servername/webappname/js/config/my.json?a=my.json

The presence of the query string /might/ trick the browser in thinking 
that this is not a static page, and force it to re-request it from the 
server.


(And the reason for which I am adding the "=my.json" at the very end, is 
to get over a nasty habit of IE browsers, who try to "evaluate" the URL 
and guess themselves what the content might be based on the "extension", 
instead of believing what the server tells them in the Content-type header).




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



RE: Applying a servlet filter to a static resource

2010-03-11 Thread Caldarale, Charles R
> From: Matt Veitas [mailto:mvei...@gmail.com]
> Subject: Applying a servlet filter to a static resource
> 
> I am using Tomcat 6.0.24 and am trying to use a servlet filter 
> on a static resource and am having some troubles as the 2nd 
> request returns a 304.

Are you sure it's Tomcat returning the 304, or is that being done by some 
intermediary?

> unfortunately I can't change the calling url.

What is the URL of interest?  Under what name is the webapp deployed?

> 
>TestFilter
>/js/config/my.json
> 

The above should give the filter control, if the  is correct.

> Is there anything I can do to make Tomcat not return the 
> 304 for the 2nd request to my.json?

The 304 is generated in Tomcat's DefaultServlet; your filter should be getting 
control before that servlet is invoked, if it's configured properly and there's 
nothing between the client and Tomcat that's caching the request.  Try 
verifying that the subsequent requests are actually making it to Tomcat (enable 
the AccessLogValve in server.xml).

 - Chuck


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


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



Re: jvm exits without trace

2010-03-11 Thread Taylan Develioglu
Hi Carl, thanks for the suggestion. I am going to try jvm 1.6.07
regardless of what I said before.

Funny coincidence, I tried the ibm jvm as well and ran into a similar
issue (part of our ssl implementation uses sun specific libraries).


On Thu, 2010-03-11 at 12:38 +0100, Carl wrote:
> Taylan,
> 
> I am currently trying JVM 1.6.0_7 per Chuck's suggestion and, so far (4
> days), it is working.
> 
> I started down the IBM JVM path but have abandoned that for now due to
> difficulties with the SSL implementation (somne browsers would work and some
> wouldn't with seemingly the same setup.)
> 
> Thanks,
> 
> Carl
> - Original Message -
> From: "Taylan Develioglu" 
> To: "Tomcat Users List" 
> Sent: Thursday, March 11, 2010 6:13 AM
> Subject: Re: jvm exits without trace
> 
> 
> >a different kernel did not help either...
> >
> > On Thu, 2010-03-11 at 11:37 +0100, Taylan Develioglu wrote:
> >> Changing to JIO didn't help, the silent crashes continue.
> >>
> >> I'm changing kernel versions now.
> >>
> >> On Fri, 2010-03-05 at 10:45 +0100, Taylan Develioglu wrote:
> >> > It's performing rather poorly performance wise, compared to the apr
> >> > connector. The number of threads required to handle the requests has
> >> > gone up significantly over the board.
> >> >
> >> > Stability wise, I don't have complaints yet.
> >> >
> >> > I'm keeping my fingers crossed.
> >> >
> >> > On Fri, 2010-03-05 at 10:09 +0100, Pid wrote:
> >> > > On 05/03/2010 08:41, Taylan Develioglu wrote:
> >> > > > Pid, that would assume we had a working<  1.6.10 version before
> >> > > > that we
> >> > > > replaced.
> >> > >
> >> > > That it would.
> >> > >
> >> > > > We've run 1.6.10 upwards succesfully for a very long time. So I
> >> > > > don't
> >> > > > see the point in doing this.
> >> > >
> >> > > I must have missed that.
> >> > >
> >> > > How is the HTTP connector performing?
> >> > >
> >> > >
> >> > > p
> >> > >
> >> > > > On Wed, 2010-03-03 at 12:00 +0100, Pid wrote:
> >> > > >> On 03/03/2010 09:11, Taylan Develioglu wrote:
> >> > > >>> Downgrading to 1.6.0_16 did not help. I'm replacing the apr
> >> > > >>> connector
> >> > > >>> with http now.
> >> > > >>
> >> > > >> As Chuck mentioned in the other thread, significant changes
> >> > > >> occurred at
> >> > > >> 1.6.10, so trying the release before (1.6.7) might be necessary to
> >> > > >> establish a better determination.
> >> > > >>
> >> > > >>
> >> > > >> p
> >> > > >>
> >> > > >>> On Wed, 2010-02-24 at 14:52 +0100, Carl wrote:
> >> > >  Taylan,
> >> > > 
> >> > > > The failures we've seen are in anywhere between 8 hours to a
> >> > > > week of
> >> > > > runtime.
> >> > > 
> >> > >  The timing of the failures seems similar.
> >> > > 
> >> > > > We have also had failures with hotspot error files (hs_err)
> >> > > > present, and
> >> > > > the cause specified was indeed SIGSEGV indicating a page fault.
> >> > > 
> >> > >  I have never seen any hs_* files but have seen core files where
> >> > >  strace
> >> > >  showed the jvm stopped on a seg fault.
> >> > > 
> >> > > > We also use jdk 1.6.0_18, I'm downgrading the machines to
> >> > > > 1.6.0_16 when
> >> > > > the situation allows (during regular updates of the
> >> > > > application, or a
> >> > > > crash) to see if that helps.
> >> > > 
> >> > >  I have used jdk 1.6.0_17 and 1.6.0_18 with the same results...
> >> > >  have not
> >> > >  tried 1.6.0_16.  Please post your results of this trial.
> >> > > 
> >> > > > Running tomcat on the
> >> > > > foreground might show something, but then again I could be
> >> > > > waiting for a
> >> > > > month for it to happen.
> >> > > 
> >> > >  Yes, this has been part of my problem as anytime we change
> >> > >  something, we
> >> > >  have to wait a week for the server to fail.
> >> > > 
> >> > >  In one sense, I am fortunate that I have a little more
> >> > >  flexibility than you.
> >> > >  I have two servers (different hardware) but only need one in
> >> > >  service at a
> >> > >  time.  Therefore, I always have one server I can test ideas on
> >> > >  although I
> >> > >  have never been able to develop a meaningful stress test, i.e.,
> >> > >  the only way
> >> > >  I can test a change is to put it in production.
> >> > > 
> >> > >  Thanks,
> >> > > 
> >> > >  Carl
> >> > > 
> >> > >  - Original Message -
> >> > >  From: "Taylan Develioglu"
> >> > >  To: "Tomcat Users List"
> >> > >  Sent: Wednesday, February 24, 2010 8:31 AM
> >> > >  Subject: Re: jvm exits without trace
> >> > > 
> >> > > 
> >> > > > Hello Carl,
> >> > > >
> >> > > > The failures we've seen are in anywhere between 8 hours to a
> >> > > > week of
> >> > > > runtime. Most of them have (still) been running for almost a
> >> > > > month
> >> > > > without 

Applying a servlet filter to a static resource

2010-03-11 Thread Matt Veitas
Hi,

I am using Tomcat 6.0.24 and am trying to use a servlet filter on a static
resource and am having some troubles as the 2nd request returns a 304. If I
could modify the calling code to hit a servlet instead of the static
resource, I could use that servlet to read the static resource (JSON),
perform some business logic and modify the JSON, and return that to the
client, but unfortunately I can't change the calling url.


   TestFilter
   foo.TestFilter


   TestFilter
   /js/config/my.json


Is there anything I can do to make Tomcat not return the 304 for the 2nd
request to my.json?


RES: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread Gustavo A. Daud
That is it... Now it works... I really get the wrong file... I'm sorry for my 
mistake!

But, tankyou all... Mark, Chuck, André and Konstantin... for helping me...

I'll pay more attention now... I'm a beginner on tomcat yet...

Tank's fellas!!!


De: Mark Thomas [ma...@apache.org]
Enviado: quinta-feira, 11 de março de 2010 10:49
Para: Tomcat Users List
Assunto: Re: RES: TOMCAT 6 Error: Exception in thread "main" 
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

On 11/03/2010 13:23, André Warnier wrote:
> Mark Thomas wrote:
>> On 11/03/2010 12:49, Gustavo A. Daud wrote:
>>> Chuck,
>>>
>>> I install again the tomcat 6 and now I'm using other user to running
>>> tomcat, as you sugest. But, the error persists...
>>> Look at this line: "Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar".
>>> I perform a search on tomcat files looking for any bootstrap and here
>>> the result:
>>>
>>> gust...@suse-server:/opt/tomcat6> find . -iname bootstrap*
>>> ./res/META-INF/bootstrap.jar.manifest
>>> ./res/META-INF/bootstrap.jar
>>> ./java/org/apache/catalina/startup/Bootstrap.java
>>>
>>> There are no bootstrap.jar on tomcat6/bin/. Is this normal?
>>
>> That looks like you are trying to run Tomcat from a source
>> distribution rather than a binary one.
>>
> (Sound of 10 hands hitting 10 heads)
> See, that's why Mark is a Committer, and we are mere helpers here.
> Why did we not think of that ?

I think you are being a little hard on yourself and your fellow
contributors. This was the first post where there was enough information
to determine what was happening.

Of course, it helped that I have made a similar mistake (building from
source and running start.bat from the wrong directory) enough times
myself to recognise the error message...

Mark



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

"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser 
entendida ou utilizada  como uma oferta, requerimento para a compra ou venda de 
qualquer instrumento financeiro ou  confirmação de qualquer transação ou 
negócio. No caso desta mensagem conter dados ou outras  informações utilizadas 
pelo mercado financeiro  deverão estes ser  considerados como meras 
estimativas,  não lhes sendo outorgadas qualquer garantia quanto a  sua 
correção, estando  sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) 
comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), 
necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, 
subsidiárias ou  filiais."


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



RE: Tomcat 5.5 Thread Dump Questions

2010-03-11 Thread Caldarale, Charles R
> From: Tomcat Novice [mailto:tomcat.nov...@gmail.com]
> Subject: Re: Tomcat 5.5 Thread Dump Questions
> 
> I cant find jstack anywhere on my tomcat or jdk instance.

Then you either have a JRE installed, not a JDK, or it's very old.  Use a JDK 6 
download from java.sun.com.

 - Chuck


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


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



RE: axis2: not seeing validation or administrator links from axis2

2010-03-11 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com]
> Subject: Re: axis2: not seeing validation or administrator links from
> axis2
> 
> > r...@tc-laptop:/home/tc/TomCat/apache-tomcat-6.0.24/webapps# ls -asl
> > total 19000
> >  4 -rw-r--r--  1 tc tc  376 2007-07-30 16:26 hello.jsp
> >  4 drwxr-xr-x  2 tc tc 4096 2007-07-30 16:26 images
> >  4 -rw-r--r--  1 tc tc  636 2007-07-30 16:26 index.html
> >  4 drwxr-xr-x  2 tc tc 4096 2010-03-10 11:47 META-INF
> 
> You've got a whole bunch of files dated 2007 in there, plus an
> index.html, a META-INF etc.  Is this an upgrade from an older version
> of Tomcat?

Not only that, the above files should *never* appear in webapps.  Looks like a 
clearly broken Tomcat installation and abuse of appBase and docBase.

 - Chuck


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



Re: Disabling http connector

2010-03-11 Thread Peter Crowther
On 11 March 2010 12:24, Cummins College  wrote:

> We know most of you dont exactly agree or approve of our idea about
> fiddling
> with the http connector, but please do help!
>
> I don't have enough information to agree, disagree or help.  I've never
seen a sufficiently clear message about what - from a human point of view -
you are trying to achieve.  How does what you are trying to do help any of
the following people?  Be specific!

- The end-user of the application (there may be several kinds);
- The system administrator of the application;
- The developer of the application;
- The person who is paying for development of the application;
- The person who is auditing the application for compliance with policies.

At the moment, I don't know how any of these people - or anyone else -
benefits from what you are trying to do, whereas I can see how it causes
trouble for them.  So I don't know how to help you!

- Peter


foreach ant task

2010-03-11 Thread Kaushal Shriyan
Hi

can someone here give me example to use foreach ant task to deploy
same war to multiple running Tomcat Server?
http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html

Thanks,

Kaushal

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



Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread Mark Thomas

On 11/03/2010 13:23, André Warnier wrote:

Mark Thomas wrote:

On 11/03/2010 12:49, Gustavo A. Daud wrote:

Chuck,

I install again the tomcat 6 and now I'm using other user to running
tomcat, as you sugest. But, the error persists...
Look at this line: "Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar".
I perform a search on tomcat files looking for any bootstrap and here
the result:

gust...@suse-server:/opt/tomcat6> find . -iname bootstrap*
./res/META-INF/bootstrap.jar.manifest
./res/META-INF/bootstrap.jar
./java/org/apache/catalina/startup/Bootstrap.java

There are no bootstrap.jar on tomcat6/bin/. Is this normal?


That looks like you are trying to run Tomcat from a source
distribution rather than a binary one.


(Sound of 10 hands hitting 10 heads)
See, that's why Mark is a Committer, and we are mere helpers here.
Why did we not think of that ?


I think you are being a little hard on yourself and your fellow 
contributors. This was the first post where there was enough information 
to determine what was happening.


Of course, it helped that I have made a similar mistake (building from 
source and running start.bat from the wrong directory) enough times 
myself to recognise the error message...


Mark



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



Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread André Warnier

Mark Thomas wrote:

On 11/03/2010 12:49, Gustavo A. Daud wrote:

Chuck,

I install again the tomcat 6 and now I'm using other user to running 
tomcat, as you sugest. But, the error persists...
Look at this line: "Using CLASSPATH:   
/opt/tomcat6/bin/bootstrap.jar". I perform a search on tomcat files 
looking for any bootstrap and here the result:


gust...@suse-server:/opt/tomcat6>  find . -iname bootstrap*
./res/META-INF/bootstrap.jar.manifest
./res/META-INF/bootstrap.jar
./java/org/apache/catalina/startup/Bootstrap.java

There are no bootstrap.jar on tomcat6/bin/. Is this normal?


That looks like you are trying to run Tomcat from a source distribution 
rather than a binary one.



(Sound of 10 hands hitting 10 heads)
See, that's why Mark is a Committer, and we are mere helpers here.
Why did we not think of that ?

This link :
http://mirror.pop-sc.rnp.br/apache/tomcat/tomcat-6/v6.0.24/src/apache-tomcat-6.0.24-src.tar.gz
is for the /sources/ of Tomcat.
Right above this link, is a README which explains what each package 
contains.



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



RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread Gustavo A. Daud
Hum,

To download tomcat I go to http://tomcat.apache.org/download-60.cgi and get 
from this link:

http://mirror.pop-sc.rnp.br/apache/tomcat/tomcat-6/v6.0.24/src/apache-tomcat-6.0.24-src.tar.gz

Is this wrong?


De: Konstantin Kolinko [knst.koli...@gmail.com]
Enviado: quinta-feira, 11 de março de 2010 10:05
Para: Tomcat Users List
Assunto: Re: TOMCAT 6 Error: Exception in thread "main" 
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010/3/11 Gustavo A. Daud :
> I install again the tomcat 6

How did you install Tomcat?
Did you download the proper distributive from http://tomcat.apache.org/ ?

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

"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser 
entendida ou utilizada  como uma oferta, requerimento para a compra ou venda de 
qualquer instrumento financeiro ou  confirmação de qualquer transação ou 
negócio. No caso desta mensagem conter dados ou outras  informações utilizadas 
pelo mercado financeiro  deverão estes ser  considerados como meras 
estimativas,  não lhes sendo outorgadas qualquer garantia quanto a  sua 
correção, estando  sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) 
comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), 
necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, 
subsidiárias ou  filiais."


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



Re: Disabling http connector

2010-03-11 Thread André Warnier

Cummins College wrote:

Hi,

I know that https by enabling the secure attribute to true. But what if I
want to "disable" the http connector?

To elaborate, I want the https connector to be disabled when http runs and
vice versa. What changes should be done?
However, not by changing the secure attribute.

We know most of you dont exactly agree or approve of our idea about fiddling
with the http connector, but please do help!


It is not that we don't /agree/, it is that we can't really see the 
point, or what you are trying to achieve, or how it could possibly work 
in the practice.


Let me give you an example :

Say users start by getting a "menu" page from your site, using a http link :
http://yoursite.yourcompany.com/welcome.html

Now inside that page which the browser just got from your site, and 
which is now in the browser's memory, there are links to various things 
the users can do on your site.  For example :


sign up as a student
cancel your acoount
study programs
etc...

So, when the user is going to click on such a link, the /browser/ will 
interpret this in function of the protocol and host which was used to 
get "welcome.html", and for example for the first link, it is going to 
issue a request to :

http://yoursite.yourcompany.com/students/sign-up.html

That means that the browser is going to try to set up a connection with 
the server, using the HTTP protocol, over a non-secure connection.


Now suppose that in the meantime, you have disabled HTTP on port 80, and 
forced it to be HTTPS.
Well then, this request from the client is going to fail, because it is 
still going to try for a HTTP connection, because /that is the meaning 
of the link it has in the page currently loaded in the browser/.
And the Connector on port 80, which is suddenly accepting only HTTPS 
connections, is going to refuse that HTTP connection request.


Changing the connector's protocol is not going to suddenly and magically 
update all the welcome.html pages which have been already loaded by the 
browsers accessing your site, and the links in those pages.
It is also not going to magically update all the pages on your site 
which already have these links in them, even if browsers have not 
received them yet.


If you want a client, at some point, to stop using HTTP and switch to 
HTTPS, then the correct method is not to mysteriously change the nature 
of the protocol "under their nose".
One correct method is to insure that for links which you want to be used 
under HTTPS, your return in your pages the appropriate link, like :
https://yoursite.yourcompany.com/students/sign-up.html";>sign up 
as a student

instead of
http://yoursite.yourcompany.com/students/sign-up.html";>sign up 
as a student


Another correct method is, when the browser requests a page using HTTP, 
to return a "redirect" response to the browser saying :
"for this page, which you wanted as 
"http://yoursite.yourcompany.com/students/sign-up.html";, please use this 
address instead :

https://yoursite.yourcompany.com/students/sign-up.html

That is called a "redirect" response, with a HTTP status code 302.
Upon receiving such a response, the browser will, automatically and 
transparently, without even asking the user, make a new request to the 
server, this time for

https://yoursite.yourcompany.com/students/sign-up.html

And on the server side, this new request will be received and processed 
by the HTTPS connector, not the HTTP one.
The HTTP and the HTTPS Connector are both set up in advance, ready to 
received requests on their respective ports and using their respective 
type of TCP/IP connection, and they do not interfere with one another.


If you want to take a Connector which is currently active and using one 
protocol, and change its protocol on the fly, then please state a valid 
reason to do this, that we could understand what you are trying to 
achieve, and which the current HTTP RFC and associated webservers cannot 
do in some standard way.



Note that in the above, I am simplifying the problem which would happen, 
because switching from HTTP to HTTPS is not just a matter of having a 
browser being refused a connection.  It would also cause any existing 
live connection between browsers and the server to be aborted, for 
reasons that would appear mysterious to anyone watching the logfiles or 
the traffic for instance.



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



Re: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread Konstantin Kolinko
2010/3/11 Gustavo A. Daud :
> I install again the tomcat 6

How did you install Tomcat?
Did you download the proper distributive from http://tomcat.apache.org/ ?

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



Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread Mark Thomas

On 11/03/2010 12:49, Gustavo A. Daud wrote:

Chuck,

I install again the tomcat 6 and now I'm using other user to running tomcat, as 
you sugest. But, the error persists...
Look at this line: "Using CLASSPATH:   /opt/tomcat6/bin/bootstrap.jar". I 
perform a search on tomcat files looking for any bootstrap and here the result:

gust...@suse-server:/opt/tomcat6>  find . -iname bootstrap*
./res/META-INF/bootstrap.jar.manifest
./res/META-INF/bootstrap.jar
./java/org/apache/catalina/startup/Bootstrap.java

There are no bootstrap.jar on tomcat6/bin/. Is this normal?


That looks like you are trying to run Tomcat from a source distribution 
rather than a binary one.


Mark



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



Re: Disabling http connector

2010-03-11 Thread Konstantin Kolinko
2010/3/11 Cummins College :
> Hi,
>
> I know that https by enabling the secure attribute to true. But what if I
> want to "disable" the http connector?
>
> To elaborate, I want the https connector to be disabled when http runs and
> vice versa.

I do not understand your question.

Each Connector accepts requests only on a single port and only by a
single protocol (HTTP, HTTPS, AJP).  A single connector cannot accept
HTTP and HTTPS requests at the same time.

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



RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

2010-03-11 Thread Gustavo A. Daud
Chuck,

I install again the tomcat 6 and now I'm using other user to running tomcat, as 
you sugest. But, the error persists...
Look at this line: "Using CLASSPATH:   /opt/tomcat6/bin/bootstrap.jar". I 
perform a search on tomcat files looking for any bootstrap and here the result:

gust...@suse-server:/opt/tomcat6> find . -iname bootstrap*
./res/META-INF/bootstrap.jar.manifest
./res/META-INF/bootstrap.jar
./java/org/apache/catalina/startup/Bootstrap.java

There are no bootstrap.jar on tomcat6/bin/. Is this normal?


The same error again:

Using CATALINA_BASE:   /opt/tomcat6
Using CATALINA_HOME:   /opt/tomcat6
Using CATALINA_TMPDIR: /opt/tomcat6/temp
Using JRE_HOME:/usr/lib/jvm/jdk1.6
Using CLASSPATH:   /opt/tomcat6/bin/bootstrap.jar
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/catalina/startup/Bootstrap
Caused by: java.lang.ClassNotFoundException: 
org.apache.catalina.startup.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.catalina.startup.Bootstrap.  Program 
will exit.

Thank's
Gustavo.

De: Caldarale, Charles R [chuck.caldar...@unisys.com]
Enviado: quarta-feira, 10 de março de 2010 17:46
Para: Tomcat Users List
Assunto: RE: TOMCAT 6 Error: Exception in thread "main" 
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

> From: Gustavo A. Daud [mailto:gust...@sofisa.com.br]
> Subject: RES: TOMCAT 6 Error: Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
>
> But as you can see, bootstrap.jar, is not in there

So you have a corrupted Tomcat installation; start over.

> I'm running Tomcat as a root user!

Not a good idea.  If you're not using ports less than 1024, you can run as a 
normal user with no other considerations.  If you do need ports below 1024, use 
jsvc or iptables, as described in the Tomcat doc and FAQ.

 - Chuck


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


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

"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser 
entendida ou utilizada  como uma oferta, requerimento para a compra ou venda de 
qualquer instrumento financeiro ou  confirmação de qualquer transação ou 
negócio. No caso desta mensagem conter dados ou outras  informações utilizadas 
pelo mercado financeiro  deverão estes ser  considerados como meras 
estimativas,  não lhes sendo outorgadas qualquer garantia quanto a  sua 
correção, estando  sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) 
comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), 
necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, 
subsidiárias ou  filiais."


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



Re: Disabling http connector

2010-03-11 Thread Mikolaj Rydzewski

Cummins College wrote:

To elaborate, I want the https connector to be disabled when http runs and
vice versa. What changes should be done?
However, not by changing the secure attribute.
  
Not an answer, but you can enable/disable http/https access to 
particular resources using transport-guarantee element in web.xml.


--
Mikolaj Rydzewski 


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



Disabling http connector

2010-03-11 Thread Cummins College
Hi,

I know that https by enabling the secure attribute to true. But what if I
want to "disable" the http connector?

To elaborate, I want the https connector to be disabled when http runs and
vice versa. What changes should be done?
However, not by changing the secure attribute.

We know most of you dont exactly agree or approve of our idea about fiddling
with the http connector, but please do help!
-Thank you


Re: Tomcat 5.5 Thread Dump Questions

2010-03-11 Thread Tomcat Novice
Hi,

Thank you for your suggestion but I cant find jstack anywhere on my tomcat
or jdk instance. Any other solution available?


On Thu, Mar 11, 2010 at 11:26 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Tomcat Novice [mailto:tomcat.nov...@gmail.com]
> > Subject: Tomcat 5.5 Thread Dump Questions
> >
> > I would like to get thread dumps from the individual
> > Tomcat instances.
>
> Use the jstack tool from the JDK to create the thread dumps and you can
> redirect the output wherever you want.  You can find the pid numbers for
> each Tomcat from Task Manager.  You may need to run jstack under the same
> account that the Tomcat services are running under (this varies depending on
> Windows version and possibly patches).
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: jvm exits without trace

2010-03-11 Thread Carl

Taylan,

I am currently trying JVM 1.6.0_7 per Chuck's suggestion and, so far (4 
days), it is working.


I started down the IBM JVM path but have abandoned that for now due to 
difficulties with the SSL implementation (somne browsers would work and some 
wouldn't with seemingly the same setup.)


Thanks,

Carl
- Original Message - 
From: "Taylan Develioglu" 

To: "Tomcat Users List" 
Sent: Thursday, March 11, 2010 6:13 AM
Subject: Re: jvm exits without trace



a different kernel did not help either...

On Thu, 2010-03-11 at 11:37 +0100, Taylan Develioglu wrote:

Changing to JIO didn't help, the silent crashes continue.

I'm changing kernel versions now.

On Fri, 2010-03-05 at 10:45 +0100, Taylan Develioglu wrote:
> It's performing rather poorly performance wise, compared to the apr
> connector. The number of threads required to handle the requests has
> gone up significantly over the board.
>
> Stability wise, I don't have complaints yet.
>
> I'm keeping my fingers crossed.
>
> On Fri, 2010-03-05 at 10:09 +0100, Pid wrote:
> > On 05/03/2010 08:41, Taylan Develioglu wrote:
> > > Pid, that would assume we had a working<  1.6.10 version before 
> > > that we

> > > replaced.
> >
> > That it would.
> >
> > > We've run 1.6.10 upwards succesfully for a very long time. So I 
> > > don't

> > > see the point in doing this.
> >
> > I must have missed that.
> >
> > How is the HTTP connector performing?
> >
> >
> > p
> >
> > > On Wed, 2010-03-03 at 12:00 +0100, Pid wrote:
> > >> On 03/03/2010 09:11, Taylan Develioglu wrote:
> > >>> Downgrading to 1.6.0_16 did not help. I'm replacing the apr 
> > >>> connector

> > >>> with http now.
> > >>
> > >> As Chuck mentioned in the other thread, significant changes 
> > >> occurred at

> > >> 1.6.10, so trying the release before (1.6.7) might be necessary to
> > >> establish a better determination.
> > >>
> > >>
> > >> p
> > >>
> > >>> On Wed, 2010-02-24 at 14:52 +0100, Carl wrote:
> >  Taylan,
> > 
> > > The failures we've seen are in anywhere between 8 hours to a 
> > > week of

> > > runtime.
> > 
> >  The timing of the failures seems similar.
> > 
> > > We have also had failures with hotspot error files (hs_err) 
> > > present, and

> > > the cause specified was indeed SIGSEGV indicating a page fault.
> > 
> >  I have never seen any hs_* files but have seen core files where 
> >  strace

> >  showed the jvm stopped on a seg fault.
> > 
> > > We also use jdk 1.6.0_18, I'm downgrading the machines to 
> > > 1.6.0_16 when
> > > the situation allows (during regular updates of the 
> > > application, or a

> > > crash) to see if that helps.
> > 
> >  I have used jdk 1.6.0_17 and 1.6.0_18 with the same results... 
> >  have not

> >  tried 1.6.0_16.  Please post your results of this trial.
> > 
> > > Running tomcat on the
> > > foreground might show something, but then again I could be 
> > > waiting for a

> > > month for it to happen.
> > 
> >  Yes, this has been part of my problem as anytime we change 
> >  something, we

> >  have to wait a week for the server to fail.
> > 
> >  In one sense, I am fortunate that I have a little more 
> >  flexibility than you.
> >  I have two servers (different hardware) but only need one in 
> >  service at a
> >  time.  Therefore, I always have one server I can test ideas on 
> >  although I
> >  have never been able to develop a meaningful stress test, i.e., 
> >  the only way

> >  I can test a change is to put it in production.
> > 
> >  Thanks,
> > 
> >  Carl
> > 
> >  - Original Message -
> >  From: "Taylan Develioglu"
> >  To: "Tomcat Users List"
> >  Sent: Wednesday, February 24, 2010 8:31 AM
> >  Subject: Re: jvm exits without trace
> > 
> > 
> > > Hello Carl,
> > >
> > > The failures we've seen are in anywhere between 8 hours to a 
> > > week of
> > > runtime. Most of them have (still) been running for almost a 
> > > month

> > > without failure. There are ~100 machines.
> > >
> > >>  From the top of my head, I think we've had about 10+ failures 
> > >> now.

> > >
> > > We have also had failures with hotspot error files (hs_err) 
> > > present, and
> > > the cause specified was indeed SIGSEGV indicating a page fault. 
> > > But I

> > > don't know if the two are related.
> > >
> > > We also use jdk 1.6.0_18, I'm downgrading the machines to 
> > > 1.6.0_16 when
> > > the situation allows (during regular updates of the 
> > > application, or a

> > > crash) to see if that helps.
> > >
> > > It might be useful to note that the failures happen with tomcat 
> > > 6.0.20

> > > as well as 6.0.24.
> > >
> > > As far as load concerns, I haven't had a failure on an idle 
> > > machines

Re: jvm exits without trace

2010-03-11 Thread Taylan Develioglu
a different kernel did not help either...

On Thu, 2010-03-11 at 11:37 +0100, Taylan Develioglu wrote:
> Changing to JIO didn't help, the silent crashes continue.
> 
> I'm changing kernel versions now.
> 
> On Fri, 2010-03-05 at 10:45 +0100, Taylan Develioglu wrote:
> > It's performing rather poorly performance wise, compared to the apr
> > connector. The number of threads required to handle the requests has
> > gone up significantly over the board.
> >
> > Stability wise, I don't have complaints yet.
> >
> > I'm keeping my fingers crossed.
> >
> > On Fri, 2010-03-05 at 10:09 +0100, Pid wrote:
> > > On 05/03/2010 08:41, Taylan Develioglu wrote:
> > > > Pid, that would assume we had a working<  1.6.10 version before that we
> > > > replaced.
> > >
> > > That it would.
> > >
> > > > We've run 1.6.10 upwards succesfully for a very long time. So I don't
> > > > see the point in doing this.
> > >
> > > I must have missed that.
> > >
> > > How is the HTTP connector performing?
> > >
> > >
> > > p
> > >
> > > > On Wed, 2010-03-03 at 12:00 +0100, Pid wrote:
> > > >> On 03/03/2010 09:11, Taylan Develioglu wrote:
> > > >>> Downgrading to 1.6.0_16 did not help. I'm replacing the apr connector
> > > >>> with http now.
> > > >>
> > > >> As Chuck mentioned in the other thread, significant changes occurred at
> > > >> 1.6.10, so trying the release before (1.6.7) might be necessary to
> > > >> establish a better determination.
> > > >>
> > > >>
> > > >> p
> > > >>
> > > >>> On Wed, 2010-02-24 at 14:52 +0100, Carl wrote:
> > >  Taylan,
> > > 
> > > > The failures we've seen are in anywhere between 8 hours to a week of
> > > > runtime.
> > > 
> > >  The timing of the failures seems similar.
> > > 
> > > > We have also had failures with hotspot error files (hs_err) 
> > > > present, and
> > > > the cause specified was indeed SIGSEGV indicating a page fault.
> > > 
> > >  I have never seen any hs_* files but have seen core files where 
> > >  strace
> > >  showed the jvm stopped on a seg fault.
> > > 
> > > > We also use jdk 1.6.0_18, I'm downgrading the machines to 1.6.0_16 
> > > > when
> > > > the situation allows (during regular updates of the application, or 
> > > > a
> > > > crash) to see if that helps.
> > > 
> > >  I have used jdk 1.6.0_17 and 1.6.0_18 with the same results... have 
> > >  not
> > >  tried 1.6.0_16.  Please post your results of this trial.
> > > 
> > > > Running tomcat on the
> > > > foreground might show something, but then again I could be waiting 
> > > > for a
> > > > month for it to happen.
> > > 
> > >  Yes, this has been part of my problem as anytime we change 
> > >  something, we
> > >  have to wait a week for the server to fail.
> > > 
> > >  In one sense, I am fortunate that I have a little more flexibility 
> > >  than you.
> > >  I have two servers (different hardware) but only need one in service 
> > >  at a
> > >  time.  Therefore, I always have one server I can test ideas on 
> > >  although I
> > >  have never been able to develop a meaningful stress test, i.e., the 
> > >  only way
> > >  I can test a change is to put it in production.
> > > 
> > >  Thanks,
> > > 
> > >  Carl
> > > 
> > >  - Original Message -
> > >  From: "Taylan Develioglu"
> > >  To: "Tomcat Users List"
> > >  Sent: Wednesday, February 24, 2010 8:31 AM
> > >  Subject: Re: jvm exits without trace
> > > 
> > > 
> > > > Hello Carl,
> > > >
> > > > The failures we've seen are in anywhere between 8 hours to a week of
> > > > runtime. Most of them have (still) been running for almost a month
> > > > without failure. There are ~100 machines.
> > > >
> > > >>  From the top of my head, I think we've had about 10+ failures now.
> > > >
> > > > We have also had failures with hotspot error files (hs_err) 
> > > > present, and
> > > > the cause specified was indeed SIGSEGV indicating a page fault. But 
> > > > I
> > > > don't know if the two are related.
> > > >
> > > > We also use jdk 1.6.0_18, I'm downgrading the machines to 1.6.0_16 
> > > > when
> > > > the situation allows (during regular updates of the application, or 
> > > > a
> > > > crash) to see if that helps.
> > > >
> > > > It might be useful to note that the failures happen with tomcat 
> > > > 6.0.20
> > > > as well as 6.0.24.
> > > >
> > > > As far as load concerns, I haven't had a failure on an idle 
> > > > machines.
> > > > The machines are well loaded, but only at a fraction limit in 
> > > > regards to
> > > > load and cpu utilization.
> > > > Most memory is commited to tomcat, where a 24G machine would have 
> > > > 18G
> > > > allocated to heap, 128M to permgen and some unspecified amount 
> > > > w

Re: Software caused connection abort: recv failed

2010-03-11 Thread André Warnier

Pid wrote:

On 11/03/2010 07:58, Kranti™ K K Parisa wrote:
could you please explain the reasons for this and any solution to 
avoid this

problem?


I've decided that my Internet Telepathy™ service is now chargeable, so 
if you want answers you'll have to pay $2k an hour (it's a valuable 
service!).


Alternatively you can provide substantially more info and people here 
might be able to help...



Alternatively, there is always this :
http://lmgtfy.com/?q=java.net.SocketException%3A+Software+caused+connection+abort%3A+recv+failed


In other words, Kranti, to expand a bit on what Pid is writing above :
- you do not say if the problem you are indicating is happening at the 
Tomcat side, or at the client side

- you do not say what the client is
- you do not say /where/ this error message happens
- you do not provide the URL which you say provokes this message
- you do not provide any information about the platform, the Tomcat 
version or anything that may possibly help someone in helping you
- and if you had taken the simple step of searching in Google the exact 
error message which you reported, you would have found at least 1700 
hits, of which the ones on the first page already indicate what the 
source of the problem is


which is essentially that something, somewhere, is trying to read from a 
socket that is not connected to anything.


It is the combination of all of the above which rubs people here the 
wrong way, because it makes them think that you are too lazy to even 
look up the issue first, too lazy to even describe the problem properly, 
and are just coming here asking the question because you figure that you 
can have other people spend their time doing your homework for free.


So now, if we are wrong about all this, would you like to try again ?


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



Re: jvm exits without trace

2010-03-11 Thread Taylan Develioglu
Changing to JIO didn't help, the silent crashes continue.

I'm changing kernel versions now.

On Fri, 2010-03-05 at 10:45 +0100, Taylan Develioglu wrote:
> It's performing rather poorly performance wise, compared to the apr
> connector. The number of threads required to handle the requests has
> gone up significantly over the board.
> 
> Stability wise, I don't have complaints yet.
> 
> I'm keeping my fingers crossed.
> 
> On Fri, 2010-03-05 at 10:09 +0100, Pid wrote:
> > On 05/03/2010 08:41, Taylan Develioglu wrote:
> > > Pid, that would assume we had a working<  1.6.10 version before that we
> > > replaced.
> >
> > That it would.
> >
> > > We've run 1.6.10 upwards succesfully for a very long time. So I don't
> > > see the point in doing this.
> >
> > I must have missed that.
> >
> > How is the HTTP connector performing?
> >
> >
> > p
> >
> > > On Wed, 2010-03-03 at 12:00 +0100, Pid wrote:
> > >> On 03/03/2010 09:11, Taylan Develioglu wrote:
> > >>> Downgrading to 1.6.0_16 did not help. I'm replacing the apr connector
> > >>> with http now.
> > >>
> > >> As Chuck mentioned in the other thread, significant changes occurred at
> > >> 1.6.10, so trying the release before (1.6.7) might be necessary to
> > >> establish a better determination.
> > >>
> > >>
> > >> p
> > >>
> > >>> On Wed, 2010-02-24 at 14:52 +0100, Carl wrote:
> >  Taylan,
> > 
> > > The failures we've seen are in anywhere between 8 hours to a week of
> > > runtime.
> > 
> >  The timing of the failures seems similar.
> > 
> > > We have also had failures with hotspot error files (hs_err) present, 
> > > and
> > > the cause specified was indeed SIGSEGV indicating a page fault.
> > 
> >  I have never seen any hs_* files but have seen core files where strace
> >  showed the jvm stopped on a seg fault.
> > 
> > > We also use jdk 1.6.0_18, I'm downgrading the machines to 1.6.0_16 
> > > when
> > > the situation allows (during regular updates of the application, or a
> > > crash) to see if that helps.
> > 
> >  I have used jdk 1.6.0_17 and 1.6.0_18 with the same results... have not
> >  tried 1.6.0_16.  Please post your results of this trial.
> > 
> > > Running tomcat on the
> > > foreground might show something, but then again I could be waiting 
> > > for a
> > > month for it to happen.
> > 
> >  Yes, this has been part of my problem as anytime we change something, 
> >  we
> >  have to wait a week for the server to fail.
> > 
> >  In one sense, I am fortunate that I have a little more flexibility 
> >  than you.
> >  I have two servers (different hardware) but only need one in service 
> >  at a
> >  time.  Therefore, I always have one server I can test ideas on 
> >  although I
> >  have never been able to develop a meaningful stress test, i.e., the 
> >  only way
> >  I can test a change is to put it in production.
> > 
> >  Thanks,
> > 
> >  Carl
> > 
> >  - Original Message -
> >  From: "Taylan Develioglu"
> >  To: "Tomcat Users List"
> >  Sent: Wednesday, February 24, 2010 8:31 AM
> >  Subject: Re: jvm exits without trace
> > 
> > 
> > > Hello Carl,
> > >
> > > The failures we've seen are in anywhere between 8 hours to a week of
> > > runtime. Most of them have (still) been running for almost a month
> > > without failure. There are ~100 machines.
> > >
> > >>  From the top of my head, I think we've had about 10+ failures now.
> > >
> > > We have also had failures with hotspot error files (hs_err) present, 
> > > and
> > > the cause specified was indeed SIGSEGV indicating a page fault. But I
> > > don't know if the two are related.
> > >
> > > We also use jdk 1.6.0_18, I'm downgrading the machines to 1.6.0_16 
> > > when
> > > the situation allows (during regular updates of the application, or a
> > > crash) to see if that helps.
> > >
> > > It might be useful to note that the failures happen with tomcat 6.0.20
> > > as well as 6.0.24.
> > >
> > > As far as load concerns, I haven't had a failure on an idle machines.
> > > The machines are well loaded, but only at a fraction limit in regards 
> > > to
> > > load and cpu utilization.
> > > Most memory is commited to tomcat, where a 24G machine would have 18G
> > > allocated to heap, 128M to permgen and some unspecified amount would 
> > > get
> > > used by jni for apr. About 4G remains free after calculating taking 
> > > into
> > > account the jvm itsself.
> > > A 16G machine would have 12G allocated to the heap.
> > >
> > > Besides the fact that our apps heavily use nio and mina I wouldn't say
> > > there's anything else noteworthy. There can be anywhere up to 1
> > > concurrents on one machine.
> > >
> > > I had searched for co

Re: Software caused connection abort: recv failed

2010-03-11 Thread Pid

On 11/03/2010 07:58, Kranti™ K K Parisa wrote:

could you please explain the reasons for this and any solution to avoid this
problem?


I've decided that my Internet Telepathy™ service is now chargeable, so 
if you want answers you'll have to pay $2k an hour (it's a valuable 
service!).


Alternatively you can provide substantially more info and people here 
might be able to help...



p



On Thu, Mar 11, 2010 at 1:14 PM, André Warnier  wrote:


Kranti™ K K Parisa wrote:


When we use the URL to hit the link of the webapplication running on
tomcat,
getting following exception

java.net.SocketException: Software caused connection abort: recv failed

any specific reason for this?

  Yes, certainly.



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







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



Re: axis2: not seeing validation or administrator links from axis2

2010-03-11 Thread Pid

On 10/03/2010 23:15, Terence Coffey wrote:

Hi,
Another step in the right direction.

1) /home/tc/TomCat/apache-tomcat-6.0.24/webapps/axis
The axis directory did not exist. All other directories were present.

r...@tc-laptop:/home/tc/TomCat/apache-tomcat-6.0.24/webapps# ls -asl
total 19000
 4 drwxr-xr-x 11 tc tc 4096 2010-03-10 17:43 .
 4 drwxr-xr-x  9 tc tc 4096 2010-03-09 09:56 ..
18932 -rw-r--r--  1 tc tc 19383323 2010-03-10 12:02 axis2.war
 4 drwxr-xr-x 10 tc tc 4096 2010-01-19 14:42 docs
 4 drwxr-xr-x  5 tc tc 4096 2010-01-19 14:42 examples
 4 -rw-r--r--  1 tc tc  376 2007-07-30 16:26 hello.jsp
 4 drwxr-xr-x  5 tc tc 4096 2010-01-19 14:42 host-manager
 4 drwxr-xr-x  2 tc tc 4096 2007-07-30 16:26 images
 4 -rw-r--r--  1 tc tc  636 2007-07-30 16:26 index.html
 4 drwxr-xr-x  5 tc tc 4096 2010-01-19 14:42 manager
 4 drwxr-xr-x  2 tc tc 4096 2010-03-10 11:47 META-INF
 4 drwxr-xr-x  3 tc tc 4096 2010-01-19 14:42 ROOT
 8 -rw-r--r--  1 tc tc 4606 2010-03-08 23:31 sample.war


You've got a whole bunch of files dated 2007 in there, plus an 
index.html, a META-INF etc.  Is this an upgrade from an older version of 
Tomcat?



p


1st attempt : Tried to start jsvc as user tc. Failure

If I start the tomcat (jmvc) as user tc, I get the PID error

t...@tc-laptop:~/TomCat/apache-tomcat-6.0.24$ more logs/*
::
logs/catalina.err
::
10/03/2010 22:22:25 2878 jsvc.exec error: Cannot open PID file /var/run/jsvc.pid
, PID is 2878
10/03/2010 22:22:25 2877 jsvc.exec error: Service exit with a return value of 
255

2nd attempt as user root but switch to user tc on startup ==>  Success
--
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
10-Mar-2010 22:42:49 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
10-Mar-2010 22:42:52 org.apache.axis2.deployment.util.TempFileManager
INFO: TempFileManager::unable to delete /tmp/axis2-tmp-6334442305603549214.tmp
10-Mar-2010 22:42:53 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive sample2.war
10-Mar-2010 22:42:53 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive sample.war


The command line used was
./bin/jsvc -user tc -cp ./bin/bootstrap.jar -outfile 
./logs/catalina.out -errfile ./logs/catalina.err 
org.apache.catalina.startup.Bootstrap

I can now also see the congradulation page. If you can see this page you 
successfully configured tomcat. http://localhost:8080/

However the following is not working
http://localhost:8080/axis2/services/   displays

−

The service cannot be found for the endpoint reference (EPR) /axis2/services/



and the sample project
http://localhost:8080/axis2/services/StockQuoteService/getPrice?symbol=IBM
displays

−

The service cannot be found for the endpoint reference (EPR) 
/axis2/services/StockQuoteService/getPrice?symbol=IBM








--- On Wed, 10/3/10, Konstantin Kolinko  wrote:


From: Konstantin Kolinko
Subject: Re: axis2: not seeing validation or administrator links from axis2
To: "Tomcat Users List"
Date: Wednesday, 10 March, 2010, 21:42
2010/3/11 Terence Coffey:

INFO: Deploying web application archive axis2.war
SEVERE: Exception fixing docBase for context [/axis2]
java.io.FileNotFoundException:

/home/tc/TomCat/apache-tomcat-6.0.24/webapps/axis

2/META-INF/MANIFEST.MF (No such file or directory)
at java.io.FileOutputStream.open(Native

Method)

at

java.io.FileOutputStream.(FileOutputStream.java:179)

at

java.io.FileOutputStream.(FileOutputStream.java:131)

at

org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:457)

Tomcat tries to unpack axis2.war, but cannot.
Maybe the target directory (see the message) is not
writeable. Check
what user is used to run Tomcat (it must not be "root"),
and what
permissions and ownership are on those directories.

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







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




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



question on tribes member alive time

2010-03-11 Thread Eddie Hsiung
Hi

I'm trying to debug a vendor product which uses Apache Tribes as its cluster
communication implementation.  I've identified that each member of the
cluster derives the "master node" instance using the aliveTime field of all
members of the cluster.  The member with the largest aliveTime is elected to
be the master node.

One thing I notice is that local member aliveTime is only updated when
McastService.getLocalMember() is called while (remote) member aliveTime is
updated constantly (by a separate thread?).

Is this observation correct?  If so, does this mean that using aliveTime to
elect a master node might run into race conditions if it wasn't implemented
carefully?

For example, remote member aliveTime is always more up-to-date than the
local member alive time.  Assuming two members of the cluster started almost
at the same time, It's possible that they always think the other member is
alive longer (if the remote aliveTime is updated before local aliveTime)
and, therefore, think the other member is the master node.

Thanks for any clarification on the subject.


eddie