Re: Context root query

2012-11-20 Thread vicky


Pardon me if i am annoying , but from the below mail link, i located the 
snippet(mentioned below) in which its written
that we can define application context in context.xml.

**
Individual Context elements may be explicitly defined: 
In an individual file at /META-INF/context.xml inside the application files. 
Optionally (based on the Host's copyXML attribute) this may be copied to 
$CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's base 
file name plus a .xml extension. 
**
but wrong i am doing , in defining the context in META-INF/context.xml as 
follows :-
Context path=/app1 privileged=true/

Does we cannot override the default application context in tomcat 6.0 using 
META-INF/context.xml  

Thanks all,
Vicky  


 From: Caldarale, Charles R chuck.caldar...@unisys.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Tuesday, 20 November 2012 10:15 PM
Subject: RE: Context root query
  
 From: vicky007aggar...@yahoo.co.in [mailto:vicky007aggar...@yahoo.co.in] 
 Subject: Re: Context root query

 Please suggest how i can override the context root of an application using 
 META-INF/context.xml

You cannot.  Please actually read the documentation everyone has been pointing 
you to.

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context

- 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: Context root query

2012-11-20 Thread vicky


Thanks a ton charles for passionatly explaining me the intrinsic things , it 
means a lot to me... 
 
1  What sense does it make to statically defining a Context in server.xml ?? 

2  Just to confirm , so using we cannot override  the default  application 
context  using /META-INF/context.xml  ??

3   As i have a user requirement that they want to have a application context 
as different from application archive file name , so i can achieve
this by adding the below snippet in server.xml, provided the docBase 
location shouldnt be the same as of Tomcat WebApps Directory
to avoid double deployment . correct ??

Context path=/tests docBase=/var/www/test_application1/
debug=0 reloadable=true crossContext=false
/Context

Thanks Again
  


 From: Caldarale, Charles R chuck.caldar...@unisys.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Tuesday, 20 November 2012 10:57 PM
Subject: RE: Context root query
  
 From: vicky [mailto:vicky007aggar...@yahoo.co.in] 
 Subject: Re: Context root query

 i located the snippet(mentioned below) in which its written
 that we can define application context in context.xml.

 **
 Individual Context elements may be explicitly defined: 
 In an individual file at /META-INF/context.xml inside the application files.
 Optionally (based on the Host's copyXML attribute) this may be copied to 
 $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's base
 file name plus a .xml extension. 
 **

And you completely ignored this wording in the description of the path element:

This attribute must only be used when statically defining a Context in 
server.xml. In all other circumstances, the path will be inferred from the 
filenames used for either the .xml context file or the 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

Re: Context root query

2012-11-20 Thread vicky


MARK -  

My client has application archives files which all have version string in it as 
stated below :-

eg:- mom-1.2.0.war, mom-1.3.0.war,  mom-1.4.0.war,  mom-1.5.0.war

So they doest want the version string mentioned in the application archive to 
become part of application context.

The context should remain same irrespective of the application archive they 
deploy,

Do you have any better approach /suggestion for this requirement
 
thanks for your help
vicky
 


 From: Mark Thomas ma...@apache.org
To: Tomcat Users List users@tomcat.apache.org 
Sent: Tuesday, 20 November 2012 11:51 PM
Subject: Re: Context root query
  
On 20/11/2012 17:47, vicky wrote:
 3   As i have a user requirement that they want to have a application 
 context as different from application archive file name

That sounds like an x-y problem to me. What is the real user requirement?

Mark


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

Re: Apache issue

2012-12-05 Thread vicky


Is there anything in the error log? Access log? === No errors/exception in logs
What applications are you running on it?   basic customer data entry 
application deployed on tomcart
What version is it? == Apache 2.2
What OS are you on? == Linux Redhat 5

 


 From: Darryl Lewis darryl.le...@unsw.edu.au
To: Tomcat Users List users@tomcat.apache.org 
Sent: Wednesday, 5 December 2012 7:35 PM
Subject: Re: Apache issue
  
Is there anything in the error log? Access log?
What applications are you running on it?
What version is it?
What OS are you on?

On 6/12/12 12:25 AM, vicky007aggar...@yahoo.co.in
vicky007aggar...@yahoo.co.in wrote:

Hello Guys,

My apache instance after sometime become unresponsive  to restore it i
need to restart it. Weird thing is that no exception/error is coming in
logs.

Can you please suggest what all things i can check for my apache.

Is there any jvm related things which i need to check.

Please suggest what all basic troubleshooting i can do

Thanks in advance
Vicky



-
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: Tomcat 6.0 CLASSPATH query

2012-12-08 Thread vicky

I have read the Tomcat 6.0 classloader documentation(below link), from this 
what i understood is that the classes/jar/resource/properties file
get loaded  from the following locations

1.Bootstrap classes of your JVM  ($JAVA_HOME/jre/lib/ext). 
2.System class loader classes  ( Add bootstrap.jar  tomcat-juli.jar to 
CLASSPATH variable)
3.Common class loader classes ( refers $CATALINA_BASE/lib   $CATALINA_HOME/lib 
)  uses $CATALINA_BASE/conf/catalina.properties
4. /WEB-INF/classes of your web application 
5. /WEB-INF/lib/*.jar of your web application 
 
The thing which is still puzzling me is that how my resource/properties files 
get loaded to Tomcat CLASSPATH
when i add them to $CATALINA_BASE/bin directory  When i move the same files 
to $CATALINA_BASE/conf directory then it doesn't get added to Tomcat CLASSPATH.
 
My deployed applications needproperties/resource files , Can someone please 
help me in understand the optimal way of adding these files to 
Tomcat CLASSPATH. Does placing the files under CATALINA_BASE/bin is the right 
approach.Please suggest
 
In my organisation i cannot add anything to $CATALINA_HOME/lib or bin 
location ,these are read only directories

http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
Thanks for your help
Vicky
 


 From: Pid * p...@pidster.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Saturday, 8 December 2012 10:34 PM
Subject: Re: Tomcat 6.0 CLASSPATH query
  
On 8 Dec 2012, at 03:29, vicky007aggar...@yahoo.co.in
vicky007aggar...@yahoo.co.in wrote:

 Application is deployed under tomcat webapps directory . It tries to refer to 
 application specific properties file from tomcat classpath, for that we 
 copied it under tomcat bin directory.

 My query is that does this is the right way to add properties file to tomcat 
 classpath?

Did you try putting it in tomcat/lib?


p




 Thanks for ur help,
 Vicky



 On Dec 8, 2012, at 2:11 AM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Vicky,

 On 12/7/12 11:48 AM, vicky wrote:
 I have a requirement in which i need to add couple of properties
 files to tomcat CLASSPATH as these are needed for my application
 deployed in Tomcat 6.0.

 One strange thing is that, i need to add the all my properties
 files to CATALINA_BASE/bin directory else these all wont get
 added to Tomcat classpath.

 Where does the code live that attempts to load those properties files?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org/
 Comment: Using GnuPG with undefined - http://www.enigmail.net/

 iEYEAREIAAYFAlDCVJcACgkQ9CaO5/Lv0PBTogCgoXLXbB5jx///m6qC+ZxO0f20
 xO8An2SZPU8E0LuiPpQRCZPVw8v/T66L
 =Jmvq
 -END PGP SIGNATURE-

 -
 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

Re: Tomcat 6.0 CLASSPATH query

2012-12-08 Thread vicky
Thanks Mark for your valuable suggestions.
 
But in my project i have a requirement to share one resource/properties file  
across 10 applications deployed on single tomcat instance
 
We cannot afford to add the same properties file to all archives as its 
contents keep changing.
 
Another restriction which i have is that i cannot place any file under 
$CATALINA_HOME directories , these are read only for us.
 
Based on afore said concerns, do you have any better way out ..please suggest.
 
Appreciated all of your help
 
Thanks for ur time 
Vicky
 


 From: Mark Eggers its_toas...@yahoo.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Sunday, 9 December 2012 12:23 AM
Subject: Re: Tomcat 6.0 CLASSPATH query
  
Comments inline below (a bit fuzzy from the move yet).

On 12/8/2012 9:58 AM, vicky wrote:

 I have read the Tomcat 6.0 classloader documentation(below link),
 from this what i understood is that the
 classes/jar/resource/properties file get loaded  from the following
 locations

 1.Bootstrap classes of your JVM  ($JAVA_HOME/jre/lib/ext). 2.System
 class loader classes  ( Add bootstrap.jar  tomcat-juli.jar to
 CLASSPATH variable) 3.Common class loader classes ( refers
 $CATALINA_BASE/lib   $CATALINA_HOME/lib )  uses
 $CATALINA_BASE/conf/catalina.properties 4. /WEB-INF/classes of your
 web application 5. /WEB-INF/lib/*.jar of your web application

 The thing which is still puzzling me is that how my
 resource/properties files get loaded to Tomcat CLASSPATH when i add
 them to $CATALINA_BASE/bin directory  When i move the same files
 to $CATALINA_BASE/conf directory then it doesn't get added to Tomcat
 CLASSPATH.

 My deployed applications needproperties/resource files , Can
 someone please help me in understand the optimal way of adding these
 files to Tomcat CLASSPATH. Does placing the files under
 CATALINA_BASE/bin is the right approach.Please suggest


Why in the world are you adding these resource files to Tomcat's 
CLASSPATH? If the resources are application - specific, you don't need 
to do this at all.

Just add the files to your local application. In Maven, there's a 
special directory for that:

src/main/resources

In NetBeans, I normally create a separate package for all of my 
configuration files.

I think in Eclipse you'll have to make a subdirectory under 
WEB-INF/classes and copy the files there. That's unpleasant. Eclipse 
will include that in the build of the WAR file when you do an export.

Then, just do the following in your code to reference the resource.

InputStream in =
     this.getClass().getClassLoader().getResourceAsStream(configfile);

Where configfile is the complete classpath to your resource.

This is nice. It works in exploded WARs, it works in WAR files, it works 
in JARs.

No mucking about with CLASSPATH. No polluting other applications or 
Tomcat with spurious application - specific resources. This enables you 
to run several copies of the same web application in the same container, 
all with different configurations.

Just search for getResourceAsStream() for more explanation.

 In my organisation i cannot add anything to $CATALINA_HOME/lib or
 bin location ,these are read only directories

 http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
 Thanks for your help Vicky

Not needed.



  From: Pid * p...@pidster.com To:
 Tomcat Users List users@tomcat.apache.org Sent: Saturday, 8
 December 2012 10:34 PM Subject: Re: Tomcat 6.0 CLASSPATH query

 On 8 Dec 2012, at 03:29, vicky007aggar...@yahoo.co.in
 vicky007aggar...@yahoo.co.in wrote:

 Application is deployed under tomcat webapps directory . It tries
 to refer to application specific properties file from tomcat
 classpath, for that we copied it under tomcat bin directory.

 My query is that does this is the right way to add properties file
 to tomcat classpath?

 Did you try putting it in tomcat/lib?


 p





 Thanks for ur help, Vicky



 On Dec 8, 2012, at 2:11 AM, Christopher Schultz
 ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256

 Vicky,

 On 12/7/12 11:48 AM, vicky wrote:
 I have a requirement in which i need to add couple of
 properties files to tomcat CLASSPATH as these are needed for my
 application deployed in Tomcat 6.0.

 One strange thing is that, i need to add the all my properties
 files to CATALINA_BASE/bin directory else these all wont
 get added to Tomcat classpath.

 Where does the code live that attempts to load those properties
 files?

 - -chris

. . . just my (I hate moving) 2 cents
/mde/

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

Re: PSI-PROBE query

2012-12-09 Thread vicky
Yes Chris, i am pretty sure that nobody is accessing the application.

The moment i start my Tomcat the Request Count  reaches values of 400+ within 
few seconds, this value is getting incremented by 6 everytime (eg: 
6,12,18,24,30)

Whereas my AJP Connector Request Count  is showing the correct numbers 
depending  on the requests which all are redirected from APache.

As of now i have not configured the AccessLogValve , but will try out this 
option definitely

Please suggest 

Thanks
Vicky



 From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Sunday, 9 December 2012 10:29 PM
Subject: Re: PSI-PROBE query
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 7:05 AM, vicky wrote:
 I am trying to gather statistical information about the number of 
 requests served by my tomcat (forwarded from Apache MPM worker) 
 for this i am using /PSI-PRobe
 (http://code.google.com/p/psi-probe/) application. I have enclosed
 the PROBE screenshot as well for your reference,

Sorry, this list strips attachments. Please copy/paste the numbers
into a followup post.

 in this Request Time , Processing Time  values  for  http-8080
  connector are keep on increasing even when no one is accessing
 the application.

Are you sure nobody is accessing the application? Do you have an
AccessLogValve (or Filter) enabled?

 I am wondering how can i get the report of number of requests which
 all are served by my tomcat instance, i am not able to relate to
 the numbers which all are getting displayed in the Probe
 Application. Does i am doing something wrong in interpreting the
 Probe Application output

If you want to know which requests are taking a long time, configure
(or re-configure) an AccessLogValve to include the total time for the
request. Then sort your log file by response-time and start at the
longest response to see what's going on.

Psi Probe likely uses JMX (or maybe gets the data directly from Tomcat
in the same way that the JMX beans get their data), so all that same
data is available the JMX. Attach to Tomcat using jconsole, jvisualvm,
etc. and poke around: there's a lot of good information in there.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDEw2kACgkQ9CaO5/Lv0PCrswCgh1e7HpCS7uLtr9jiq9Qg+q1Y
7EQAn2+z7X/0mEBdzL5nZazdJh/D4SAh
=1U+/
-END PGP SIGNATURE-

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

Re: Tomcat 6.0 CLASSPATH query

2012-12-09 Thread vicky


Thanks MARK/CHRIS  for all earnest replies, i really owe you guys for your 
replies.

Exporting CLASSPATH wont work ad i believe that Tomcat catalina.sh  will 
ignore it.

Anyway i am able to fetch the resource/properties file  contents  if i place 
in $CATALINA_BASE/bin directory.

Actually i read the documentation but no where its been written that by  adding 
resource files to $CATALINA_BASE/bin , tomcat will make them available in its 
CLASSPATH

This is weird for me to understand, if you have any thoughts on 
this behavior then please share  else we can close this email thread

Thanks,
VIcky



 From: Mark Eggers its_toas...@yahoo.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Sunday, 9 December 2012 10:43 PM
Subject: Re: Tomcat 6.0 CLASSPATH query
 
Reply is inline. Please do not top post. I had to read your response and 
then scroll to the bottom to remember what I wrote.
On 12/8/2012 12:57 PM, vicky007aggar...@yahoo.co.in wrote:
 Thanks Mark

 Sorry for the confusion i created related to my requirements. 5 Out
 of 6  requirements you stated below are correct. The last point i.e
 $CATALINA_BASE is writable. I can manipulate/write files to this
 location. So now do you have anything more to add to your proposed
 solution as you suggested below



 Thanks, Vicky


Make a directory under $CATALINA_BASE. Call it Resources. Then add in 
$CATALINA_BASE/bin/setenv.sh something like the following:

CLASSPATH=$CATALINA_BASE/Resouces/your-resource.jar
export CLASSPATH

Again, I've not done this so who knows if it will work.

As Chris and I (and others) have said, these resources really belong in 
WEB-INF/classes. I have described how you can include those in your 
build environment.

I understand that you have 10 web applications and the configuration 
files change frequently. At that point, if you don't want to 
continuously bounce your web applications (or Tomcat), I would look at 
an alternative way for reading resources. I suggested a database and JNDI.

. . . . just my two cents
/mde/


 On Dec 9, 2012, at 2:09 AM, Mark Eggers its_toas...@yahoo.com
 wrote:

 See at the end for a truly spectacularly bad potential solution.
 Note that I have not tried this, so your mileage may vary.

 On 12/8/2012 11:51 AM, vicky wrote:
 Thanks Mark for your valuable suggestions.

 But in my project i have a requirement to share one
 resource/properties file  across 10 applications deployed on
 single tomcat instance

 We cannot afford to add the same properties file to all archives
 as its contents keep changing.

 Another restriction which i have is that i cannot place any file
 under $CATALINA_HOME directories , these are read only for us.

 Based on afore said concerns, do you have any better way out
 ..please suggest.

 Appreciated all of your help

 Thanks for ur time Vicky


  From: Mark Eggers
 its_toas...@yahoo.com To: Tomcat Users List
 users@tomcat.apache.org Sent: Sunday, 9 December 2012 12:23 AM
 Subject: Re: Tomcat 6.0 CLASSPATH query

 Comments inline below (a bit fuzzy from the move yet).

 On 12/8/2012 9:58 AM, vicky wrote:

 I have read the Tomcat 6.0 classloader documentation(below
 link), from this what i understood is that the
 classes/jar/resource/properties file get loaded  from the
 following locations

 1.Bootstrap classes of your JVM  ($JAVA_HOME/jre/lib/ext).
 2.System class loader classes  ( Add bootstrap.jar 
 tomcat-juli.jar to CLASSPATH variable) 3.Common class loader
 classes ( refers $CATALINA_BASE/lib   $CATALINA_HOME/lib ) 
 uses $CATALINA_BASE/conf/catalina.properties 4.
 /WEB-INF/classes of your web application 5. /WEB-INF/lib/*.jar
 of your web application

 The thing which is still puzzling me is that how my
 resource/properties files get loaded to Tomcat CLASSPATH when
 i add them to $CATALINA_BASE/bin directory  When i move the
 same files to $CATALINA_BASE/conf directory then it doesn't get
 added to Tomcat CLASSPATH.

 My deployed applications needproperties/resource files , Can
 someone please help me in understand the optimal way of adding
 these files to Tomcat CLASSPATH. Does placing the files under
 CATALINA_BASE/bin is the right approach.Please suggest

 Why in the world are you adding these resource files to Tomcat's
 CLASSPATH? If the resources are application - specific, you
 don't need to do this at all.

 Just add the files to your local application. In Maven, there's
 a special directory for that:

 src/main/resources

 In NetBeans, I normally create a separate package for all of my
 configuration files.

 I think in Eclipse you'll have to make a subdirectory under
 WEB-INF/classes and copy the files there. That's unpleasant.
 Eclipse will include that in the build of the WAR file when you
 do an export.

 Then, just do the following in your code to reference the
 resource.

 InputStream in =
 this.getClass().getClassLoader().getResourceAsStream(configfile);



Where configfile is the complete

Re: PSI-PROBE query

2012-12-10 Thread vicky
Chris,
 
You was right as usual :)
 
A lot of  to  fro  requests are happening from my browser to the Probe 
application which looks like the Ajax calls  
because of that the request count value for my http-8080  connector
is keep on increasing even when nobody is accessing it.This all i came to know 
after installing  TAMPER-DATA which is a firefox extension (for request 
logging).Thanks for making me aware about this 
 
I am accessing the PSI-PROBE application over HTTP port  eg:- 
http://localhost:8080/probe/connectors.htm
 
 
Now my question is that how we can monitor the request counts which all coming 
to my
HTTP connector specifically for my application. ???
 
Is there a way by which i can configure two HTTP connector's one for PROBE 
application  one for my own application.???
 
or do you have any better solution . Please suggest 
 
Thanks
Vivek  


 From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Monday, 10 December 2012 8:13 PM
Subject: Re: PSI-PROBE query
  
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 1:56 PM, vicky wrote:
 Yes Chris, i am pretty sure that nobody is accessing the 
 application.
 
 The moment i start my Tomcat the Request Count  reaches values
 of 400+ within few seconds, this value is getting incremented by 6 
 everytime (eg: 6,12,18,24,30)
 
 Whereas my AJP Connector Request Count  is showing the correct 
 numbers depending  on the requests which all are redirected from 
 APache.

Let me guess: you are accessing PsiProbe via HTTP from your web
browser. Every request you make to get a page probably has some other
dependencies (images, stylesheets, etc.). Try enabling your
request-logger on the client (Firefox and Chrome have these built-into
the browser) and look at the traffic.


I'll bet you are being scared of your own shadow.

 As of now i have not configured the AccessLogValve , but will
 try out this option definitely

You must configure this in order to figure out what is happening.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDF9SYACgkQ9CaO5/Lv0PCVFQCcCeLt9llY0/X2mrbdfWnq86PU
BHYAn09OOgS99sgTQ6YBvllQfrTsQ7g+
=/Q41
-END PGP SIGNATURE-

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

Re: Tomcat 6.0 - http client

2012-12-14 Thread vicky
Thanks guys for responding, from network side there are no issues infact as 
confirmed by our Network team
 
I am accessing my application over http port, i seek your advise on tunning my 
http client with respect to my tomcat
 
1We're using MultiThreadedHttpConnectionManager, In this do you guys have any 
recommendation/best practices for setting up the 
parameters like maxHostConnections, maxTotalConnections,connection timeout 
w.r.t tomcat
 
To narrow down response time issue , i took couple of thread dumps ,related to 
it i have following concerns
I am getting hard time in making sense out of thread dumps , please  shed some 
light on my below queries , Any weblink will be a great help :-
 
2 There were many http threads were in waiting state, is it bad ??
 
3 In thread dumps there are many types of thread like http ,TP,scheduler etc
a) when request is received by tomcat which type of thread will handle 
the request. ??
 b) does there is a different thread type in case we're forwarding a 
request from apache to Tomcat over AJP port ??   
 c) In case if slow response respone from an application , what ideally 
we should look in thread dumps??.Does
 we should focus on the no. of  HTTP idle threads or scheduler 
threads or something else. ??
   
Thanks for your help  Time 
Vicky

 


 From: Hassan Schroeder hassan.schroe...@gmail.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Friday, 14 December 2012 11:12 PM
Subject: Re: Tomcat 6.0 - http client
  
On Fri, Dec 14, 2012 at 9:23 AM, Christopher Schultz
ch...@christopherschultz.net wrote:

 I am facing response latency issue when i am invoking the web
 service call ( deployed  on tomcat 6.x) from an http client.

 Maybe your webservice is just really slow?

 Usually, network latency can be separated from all other factors by
 just using 'ping'.

But response latency is not necessarily (or even usually) related
to network latency :-)

May I suggest NewRelic (http://newrelic.com/) for analyzing your
application to find out where the time is being taken up?

Disclaimer: just a satisfied customer.
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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

Re: Tomcat app log4j

2012-12-20 Thread vicky
Thanks Daniel, i got my problem resolved, there were certain Jars which were 
missing.
 
I came to know only after checking the localhost.-MM-DD.log file as YOU 
suggested.

Thanks again for your time
vicky
 


 From: Daniel Mikusa dmik...@vmware.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Wednesday, 19 December 2012 8:56 PM
Subject: Re: Tomcat app log4j 
  
On Dec 19, 2012, at 8:57 AM, vicky007aggar...@yahoo.co.in wrote:

 My tomcat 6.x is using currently is using the default logging i.e JULI.

Please include the specific version of Tomcat that you are using.  There are 36 
releases in the 6.0.x branch, it helps to know exactly which one you are using.

 
 But my application deployed on it is using log4j which was working fine on 
 jboss earlier but when i deployed the same on tomcat i got below error
 +
 SEVERE:Error listener start
 

This could mean any number of things.  If you look in the 
localhost.-MM-DD.log file, you should see a full stack trace.  We'll need 
to see that to tell you more.

 When i googled i came to know the tomcat by default expects 
 webapps/App/WEB-INF/classes/logging.properties .

This is wrong.  You can use any type of logging that you want in your 
application.  

 
 By creating the above file my error mentioned above got resolved. Does this 
 is the right approach, will

As mentioned above, we'll need to see the exact error to know what is happening 
and how best to resolve it.

 now i wont be able to make use of log 4j for my application??

You can use Log4j with your application, it works great, I do it all the time.  
Of course, this assumes that you wrote your application to use Log4j or some 
compatible logging framework, like SLF4J.

 
 Soon after that i encounter errors that class not found w.r.t class  i 
 mentioned in my application web.xml under Listener tag  strange thing is i 
 have already place the respective jars under my CATALINA_BASE/lib directory. 
 

This sounds like you might be on track to finding the real problem here.

 Ques-1
 I didnt understand  i dont know how to 
 Implement log4j for an application when my tomcat is using JULIE framework??

Tomcat uses JULI logging internally.  This choice does not impact your 
application.  You can use whatever logging framework (or none) that you want.

 
 Ques-2: inspite of placing my custom jars needed by my application under 
 CATALINA_BASE/lib directory , still i am getting class not found exception??

Probably not a good idea to place them here unless you really know what you are 
doing and have a specific reason for doing it.  I would suggest that you just 
put them inside your WAR file in the WEB-INF/lib directory.

 
 Ques-3 do i need to implement log4j at tomcat first then only i can make it 
 available to my application ?
 

No, see above.

Dan


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

[tomcat 6.0.35]- propert loadin

2013-02-10 Thread vicky
 
Hi All,
 
 
My application need a resource/properties file to exist in the CLASSPATH, for 
this i placed my resource file in CATALINA_BASE/bin folder  it was working 
fine.
 
But since yesterday my application reporting the error that properties file 
doesnt exist in classpath/path
 
In order to fix then i created the lib folder in my CATALINA_BASE  placed my 
properties/resource file over there, which eventually fixed my application 
CLASSPATH issue.
 
But the thing which makes me wonder that how my application was able to access 
the properties file earlier when i placed it CATALINA_BASE/bin  location
 what makes it to stop now.
 
Kindly suggest what all can be the scenarios/prossible use case for this, 
 
TOmcat version - 6.0.35 
 
Thanks

static cluster

2013-04-25 Thread vicky
Very frequently i am oberving below static cluster messages are getting logged 
in the catalina.out. 
+++
INFO: Received member 
disappeared:org.apache.catalina.tribes.membership.MemberImpl\
  [tcp://10.0.0.222:2333,10.0.0.222,2333, alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 },\
  payload={}, command={}, domain={}, ]

INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl\
  [tcp://10.0.0.222:2333,10.0.0.222,2333, alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 },\
  payload={}, command={}, domain={}, ]
+++ 
The question is why other tomcat instances are getting disconnected in between 
b y thenselves, what i need to so in oder to resolve this.Please suggest
do i need to increase threads? currently the requests are getting forwarded 
from apache to tomcat over ajp port which is configured with 200 threads.
 
I am using tomcat 6.0.35  Below is my static cluster configuration 
 
+++
 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
   channelSendOptions=6 channelStartOptions=3
    Manager className=org.apache.catalina.ha.session.DeltaManager
 expireSessionsOnShutdown=false 
notifyListenersOnReplication=true /
    Channel className=org.apache.catalina.tribes.group.GroupChannel
  Receiver 
className=org.apache.catalina.tribes.transport.nio.NioReceiver
    autoBind=0 selectorTimeout=5000 maxThreads=6
    address=10.0.0.111 port=2333
  /
  Sender 
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
    Transport 
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender /
  /Sender
  Interceptor 
className=org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor /
  Interceptor 
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector /
  Interceptor 
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor
 /
  Interceptor 
className=org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor
    Member 
className=org.apache.catalina.tribes.membership.StaticMember securePort=-1
    host=10.0.0.222 port=2333
    /

 
+++

[Probe]- Tomcat deployment

2013-08-03 Thread vicky
Hi Guys,
 
Is there a way by which we can handle the tomcat deployment of war files from a 
central location via a Web UI screen ?
 
I 'm aware of PROBE (http://code.google.com/p/psi-probe/) by which we can do 
the deployment from a Web UI screen but for that we need to
individually deploy the Probe.war  across all instances . 
 
Is there a way out by which we can handle the tomcat deployments from a central 
location ( i.e  by avoiding  deploying probe.war on all instances) 
on todifferent physical machines.
 
Please suggest  share your valuable thoughts
 
 
Thanks
Vicky

tomcat 7 ldap error

2013-08-06 Thread vicky
 
 
I need to configure Tomcat 7 with Active directory LDAP.
I did  following configuration in server.xml  application's web.xml but while 
loggin in 
Invalid username and/or password, please try again error is coming .please 
suggest what can be the issue
=server.xml ==
Realm className=org.apache.catalina.realm.JNDIRealm
 debug=99
 connectionURL=ldap://yoebills.i.yoebills.com:389/;
 connectionName=git.ldaptom...@i.yoebills.com
 connectionPassword=asdef
 userBase=dc=i,dc=yoebills,dc=com
 userSearch=(sAMAccountName={0})
 roleBase=dc=i,dc=yoebills,dc=com
 roleName=cn
 roleSearch=(member={0})
 roleSubtree=true
 userSubtree=true
 /
 
=== application web.xml 
===
security-constraint
display-nameExample Security Constraint/display-name
web-resource-collection
web-resource-nameProtected Area/web-resource-name
!-- Define the context-relative URL(s) to be protected --
url-pattern/*/url-pattern
!-- If you list http methods, only those methods are protected --
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
!-- Anyone with one of the listed roles may access this area --
role-namesg-admin/role-name
/auth-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
   realm-nameForm based authentication/realm-name
   form-login-config
 form-login-page/jsp/security/protected/login.jsp/form-login-page
   form-error-page/jsp/security/protected/error.jsp/form-error-page
  /form-login-config
/login-config
!-- Security roles referenced by this web application --
security-role
role-namesg-admin/role-name
/security-role

 
 
 Vicky

Tomcat manager command issue

2013-08-20 Thread vicky
Hi All,

I need to deploy the applications in TOmcat via command line 
 
For this I am using the following manager commands for deploying my application.
 
http://peadj2001301vfe:1581/manager/text/deploy?path=/probewar=file:/local/apps/probe.war
 
The problem is this command works fine when i execute this URL in browser
but the deployment fails when i run the same command via wget on my linux 
machine
 
wget -O deploy 
http://peadj2001301vfe:1581/manager/text/deploy?path=/probewar=file:/tmp/probe.war
 
While executing the above wget the following exception is getting logged in 
the target tomcat machine logs :- 
Please suggest how to resolve this
logs 
java.io.FileNotFoundException: 
/amp/apps/tomcat1/work/Catalina/localhost/manager/probe.war (No such file or 
directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.init(FileInputStream.java:138)
    at 
org.apache.catalina.manager.ManagerServlet.copyInternal(ManagerServlet.java:1661)
    at 
org.apache.catalina.manager.ManagerServlet.copy(ManagerServlet.java:1622)
    at 
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:742)
    at 
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:359)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at 
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 
===
 
Thanks
Vicky

Re: Tomcat manager command issue

2013-08-20 Thread vicky
Thanks chris enclosing in single quotes worked, it resolved my issue.

 
 


 From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Tuesday, 20 August 2013 8:26 PM
Subject: Re: Tomcat manager command issue
  

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 8/20/13 10:07 AM, vicky wrote:
 I need to deploy the applications in TOmcat via command line
 
 For this I am using the following manager commands for deploying my
 application.
 
 http://peadj2001301vfe:1581/manager/text/deploy?path=/probewar=file:/local/apps/probe.war

  The problem is this command works fine when i execute this URL in
 browser but the deployment fails when i run the same command via
 wget on my linux machine
 
 wget -O deploy
 http://peadj2001301vfe:1581/manager/text/deploy?path=/probewar=file:/tmp/probe.war

Have
 
you tried putting the URL for wget in 'single quotes'? Your shell
may be splitting your command into two commands: one 'wget' command
and the other 'war=file:/...'.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSE4OVAAoJEBzwKT+lPKRY45oP/0Gnel3AnyKtdPVUmSrirVHr
tfcCT1HfLC+aD+iNmbLnq6jP2hQ28+WoX3ufP0k9NC8RvbXHGZoz8kM54Wk7cgxs
26KC2zbUWclSzURu90M9PuPzwfiqdVewBFjoICX6f6jiy3thcoCCIdTCek2+p4th
KAKunQlUJVvTeb9EykiavwfmHYeJywJJTDfNpP5NGnh9A3F4bWPqUod14AXMUpqf
jfdhO37MM95zCiBGp2owECQDiMl2OtH7g35AtvblfLYM7BzHPWCbbe00OslluhY3
Gbc6SXfcJn7iPZporZd1TmsclgZJBzXwc++Oj82U7BTJJ+A2NS93unpfYAb/zpNC
7fNDW7z/2er3qAMWRT2NaJfHDzT5Rd/WLA79E4nox91qkUMAMot0f2tYgorhZ1ei
xya0D5pe9Oohh1uLtSENh2194/tKPWW2LCclwl6kaX1phtRyqXWOyF2b3ZqqOuMx
+TwJbVPmkiN7rwG/Cdh9wrugV19N7raJA9H2UvvAhjOnI0VIbzJE7+SNesX+pzsS
HyHKLXxgA00fS7WeIp16216+u1P4KnaCPtYAihvHiWoP2S/yaf6uRXI8GiOKllFr
WbBu9s+9onXSDzecHzlN6avD9EoquqXl/OokR4nxd5LaeefsODFRMOGHP8FsJX//
kx3mxO2hEycV5lvB7s/m
=9fTj
-END PGP SIGNATURE-

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

psi probe exceptioion

2013-09-06 Thread vicky
hi,

 
I'm getting the below error while deploying the application using PSI-PROBE UI 
screen
Kindly suggest how to fix this 
++
 ERROR com.googlecode.psiprobe.controllers.deploy.UploadWarController  - Could 
not process file upload
org.apache.commons.fileupload.FileUploadException: Read timed out
    at 
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:369)
    at 
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
    at 
com.googlecode.psiprobe.controllers.deploy.UploadWarController.handleRequestInternal(UploadWarController.java:57)
    at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    at com.googlecode.psiprobe.ProbeServlet.doDispatch(ProbeServlet.java:54)
    at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at 
com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    at 
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at 
com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
    at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)

setenv.sh issue

2013-09-20 Thread vicky
Hi All,

 When i am declaring variables in my $CATALINA_BASE/bin/setenv.sh file , they 
are not getting exported :-

eg:- export NAME=e1
     export ID=22
     
But when i am declaring the same variables in $CATALINA_BASE/bin/startup.sh in 
following manner these are getting exported properly:-
eg:-
export CATALINA_OPTS=-DNAME=e1 -DID=22

Kindly suggest what is the issue in this


thanks
Vicky


Re: setenv.sh issue

2013-09-20 Thread vicky
Thanks Ognjen .

I need to set certain application specific enviornment variables ,pls suggest 
what is the best way of doing that.
eg:- configuring enviornment variable for LOG4j file path 

eg:export path=/tc/amps/logs

does above entry will be sufficient for defining in setenv.sh

Thanks
Vicky




 From: Ognjen Blagojevic ognjen.d.blagoje...@gmail.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Friday, 20 September 2013 3:42 PM
Subject: Re: setenv.sh issue
 

Vicky,

On 20.9.2013 11:32, vicky wrote:
 Hi All,

   When i am declaring variables in my $CATALINA_BASE/bin/setenv.sh file , 
they are not getting exported :-

 eg:- export NAME=e1
       export ID=22

 But when i am declaring the same variables in $CATALINA_BASE/bin/startup.sh 
 in following manner these are getting exported properly:-
 eg:-
 export CATALINA_OPTS=-DNAME=e1 -DID=22

 Kindly suggest what is the issue in this

When you say varibles, do you mean Java system properties or OS 
environment variables?

If you need to set Java system properties, use:

   export CATALINA_OPTS=-DNAME=e1 -DID=22

If you want to export OS environment variables use:

   export NAME=e1
   export ID=22

In either way, refrain from modifying startup.sh, but use setenv.sh.

Regards,
Ognjen

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

overriden context root

2013-10-16 Thread vicky
hi All,
I have added below entry in server.xml  to override the context root of my 
application i.e from /dummy  to /market.
 
The problem is now the application is accessible via both context roots i.e via 
/dummy  /market context roots but I want the application to be accessible only 
via overridden context root i.e via /market only.
 
Kindly suggest how to do it.
Context docBase=/amp/tomcat1 /webapps/dummy.war path =/market/

thanks
Vicky


Re: overriden context root

2013-10-16 Thread vicky
Thanks Christopher,Chris,Andre for your inputs


vicky

From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Wednesday, 16 October 2013 7:55 PM
Subject: Re: overriden context root


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 10/16/13 6:27 AM, vicky wrote:
 I have added below entry in server.xml  to override the context
 root of my application i.e from /dummy  to /market.

As others have said, don't do this. 


 The problem is now the application is accessible via both context 
 roots i.e via /dummy  /market context roots but I want the 
 application to be accessible only via overridden context root i.e
 via /market only.
 
 Kindly suggest how to do it.

You want to do one of two things:

1. Just rename dummy.war to market.war. I don't know why so many
people resist the simplest possible way to do this.

2. Move dummy.war outside of Tomcat's auto-deployment directory (which
defaults to CATALINA_BASE/webapps/). Put your Context element into
the file CATALINA_BASE/conf/[service]/[host]/market.xml and point
docBase to where you put your WAR file. If you are using the default
service name and localhost as your Host, then your context file
would be here: CATALINA_BASE/conf/Catalina/localhost/market.xml.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSXqHEAAoJEBzwKT+lPKRYILMP/R0jKGhSeX71dkQO9hY44Zl6
Wo+5LSOZo/Vz+9mInW/UyOU/eYnP9KEMAExHJYgDaf1I1mWcguo9PvY1tBG8R6u/
D+2RvmqznUJzcrKzt2MT46KEKRkMKgRK8lCDxdFs+9iBg0POPEw+8vBv5LZYoMKU
nbVGa2kdWrQB21o/Uyhl51BGINKCD/oifFbqQX4HWiDZFcBARDDt6GzrworgDIrQ
DtwMtday5RQtF7RkrXaTs6j73gq7jFQnqB9rSCxmazkBAaBAab9GtAuXaLtGn1MX
oG9ZhFB9jVYJ8Br2XeBpUeizMsTI/hb6LoEDmvg4Fu979SbgfSi2Z8acyggbIGeK
FaUzVzmCQlK/jRB4c8m1RL+DGHZwux3W2LTQj0BdIb6TgbcHRTjA4AUkoH8jSLBQ
CIFREVkrwRD79LmFkpqjGiHYYKUE8T8G+0JZ45XrwqI6cxO4fMUx2i7RDUzlaLsv
bhtfzad2dpJuRn12stVDvFWyEYGTQEFtz9Y1z+37pBaap2owojZSbxqjbeNvls2R
jo48QQ4IPRZCEyv476rdL3KxlSWBsud8m2oxgjJheCl3CFSu5909rfJGRoYOCrxG
eAeunF5wQ7gOW6bV/jVJEmdZXYRXml83UV9LWKa++zA/F7R73VN/+aB85F1pfS4M
guy19tHu3F+Ng3gy24ho
=iVZh
-END PGP SIGNATURE-

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

Tomcat restart utility

2013-11-13 Thread vicky



All,

 
 Is there any other tool/utility with which we can do the deployment  tomcat 
restart like PSI-PROBE.

I'm having issues with PSI-PROBE ,restart functionality is not available over 
there  following message is coming on restart screen  :-

This JVM is not controlled by Java Service Wrapper

Unable to figure out how to fix this 


Please suggest

Re: Tomcat restart utility

2013-11-13 Thread vicky
Thanks Chris, I'm looking for restart capability only.
 
Actually I have dozen of tomcat instances running on Linux machines, I want to 
give the restart capability to the developers team, can you please explain a bit
that how I can achieve that .
 
Many thanks again for responding  sharing the knowledge


From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Wednesday, 13 November 2013 7:58 PM
Subject: Re: Tomcat restart utility


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,


On 11/13/13, 5:52 PM, vicky wrote:
 Is there any other tool/utility with which we can do the deployment
  tomcat restart like PSI-PROBE.
 
 I'm having issues with PSI-PROBE ,restart functionality is not 
 available over there  following message is coming on restart
 screen :-
 
 This JVM is not controlled by Java Service Wrapper
 
 Unable to figure out how to fix this

Looks like PsiProbe only allows restart capabilities when you are
using jsvc.

In any case, using jsvc is probably the easiest way to control your
JVM if you intend to make it restartable. If you're on Windows, just
use the Windows Service and use the service controller to restart Tomcat.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJShC4oAAoJEBzwKT+lPKRYUCIP/3+Mcq+8a1Nve4OUWQrMkKsz
EqRwgFDuCdHLwiqBoDFQDufiH3cKOL2h19FVPopNkf6eA4lnZjZF9bjGaPH7W/m7
dLF53o1eeeDdFHYLvuO4I5ysJ5a3csx9VgCk7R+GHrw09z8LWsU3rS5pU4EyEy4i
cbQo00h21Q2PlYZElRj35pCnQzVz1FmpDNqQ802gxyzDXDaexQQEnjEz/yMUg7VG
2d0igYnzu2Llzc2isNIdvbHb9FjpIJn713P1C093jAEOYtKUPwjvBn98QH7EJMvL
61QSKx85g+QT+r4k2BJ9MrqQ6BB90NojIYYfNdc8SySM7WRcNJvanGAuoPI0+uka
MSZby7pji7UqIr/eLWNid42yJ57DJ0zbnaBHjkXH31QPwn3MWBZEwfAnI55ixyAJ
+M9ZnjeNRxNRJoUjd/t5Amn4eB/Tv6tD2Sk1DTr5vZ2EWYi1mmp6CAAL6yjf1W2+
nc2UhTwz3s0yNXiIQOfGI4jUpuoMZ0vJDFnkqyWOeMUjBhmLeAG9fF8xDuU2Uvhs
Y8mfZjGdY6l+WxWfvrgMbrsindQ30RoNBxE+g3rLOEWC3AxV0W3l4Hg7l5MZ9b7H
qx2GWZ5zCDbsHhwtS9N4qX2cxXtxVb7BlZegLh33CiCsyCU54OuY1rqUzK0E2xFC
dSvhXBb6CNNaW5rljS38
=3Bpd
-END PGP SIGNATURE-

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

Re: Tomcat restart utility

2013-11-14 Thread vicky


Isn't  the tomcat restart is needed in case I need to deploy the war files  
manually cleaning the work  temp directories (just to clean the cache)
 
 
From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Thursday, 14 November 2013 8:11 AM
Subject: Re: Tomcat restart utility


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Leon,

On 11/14/13, 5:37 AM, Leon Rosenberg wrote:
 Hello Vicky, et al,
 
 I think the easiest way to give the developers the restart
 capabilities is to get them ssh access to the user that is running
 tomcat.
 
 This is easy, secure and convenient.

+1

You can even do it via sudo if you don't want your devs to do anything
else.

Remote restart capabilities are a dangerous business (e.g. an HTTP
listener that knows how to restart services), so I would avoid them if
I were you. Restarting a Tomcat instance should be fairly rare, no?

If you use jsvc, all your devs need to be able to do is send a signal
using kill. Read the jsvn documentation to figure out which signal
that is.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJShNoLAAoJEBzwKT+lPKRYJwQQAKu6G2442plLdT4nUObgXB1D
xAozHvNLPMLIiHppp9ssBpHSfLoQglYsMl4Y4XKIczcMSN/Zizjirhbgy0BKX/NA
I5WZUu3Fa6lMP6astd3Uf0T9P7232hnKL5NjL6FLFW6BJlR40dZdp73Fih2cbYsV
5R/sidSKriGChCQpvLYqNoYsegEvNqbz2VFB9fFzPeIZkIDUkqoMcKXlZmS3ACQM
9CrSaJWGepAmwio5kxwvHu1VZ1VMmYnCnzuj/ALFFU0/9Cy2HfmSfC26+J/XnVjk
h30dEiudCHFEE04YrmYXMrWfBUlALAtLO6LbJugdXLJl6+3dJXAubelWFBTIyItQ
QCZFSv5edQ5qKpjo8UPKaRF01NIvT3lWX3soPqnr0OVBZ0V1S/xIMwE50zIksDLw
PpjgBiMkz8tm6zSAuC/2JS0/JIKi+Vlb7Ko0g4JyU6Xa0PfYsh2deGLnOpI2luU4
V8i4/wd17x00W53w3LAPd+CycvWX4VS9/6eOfjzioldlnruNInrTyZQvQAv+cum/
I9Xk6Rf/xF2W84rSuuRR4CXPmxJ/g06GZuqqMm484uQvylBaqmjt4GymRJoeG+N8
FWWBXdlIhiUAzCjmKxtuB02oU+ZZfp8mirg5P8NSMRxGigZxa/ANHVSkuqBYiH0R
vT4f/fxaOOiMwVdlmbK0
=uLpu 

-END PGP SIGNATURE-

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

JSVC error

2013-12-31 Thread vicky
Hi,
 
I  have configured the below in my tomcat 7.0.39 startup script  when 
executing this script I 'm getting segmentation error(detailed error mentioned 
below)
 
Please suggest how to fix this.
 
+ start up script ++
CATALINA_BASE=/root/test/tomcattest
CATALINA_HOME=/root/home/apache-tomcat-7.0.39
    cd $CATALINA_BASE
    ./bin/jsvc  \
    -cp $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar 
\
    -outfile $CATALINA_BASE/logs/catalina.out \
    -errfile $CATALINA_BASE/logs/catalina.err \
    -Dcatalina.home=$CATALINA_HOME \
    -pidfile $CATALINA_PID \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
    org.apache.catalina.startup.Bootstrap start
++

 ERROR 
++=
./startdaemon.sh: line 13:  7429 Segmentation fault  (core dumped) 
./bin/jsvc -cp 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
$CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
-Dcatalina.home=$CATALINA_HOME -pidfile $CATALINA_PID 
-Dcatalina.base=$CATALINA_BASE 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
org.apache.catalina.startup.Bootstrap start

+++

Thanks
Vickyy


Re: JSVC error

2013-12-31 Thread vicky
Even after defining the $CATALINA_PID  $JAVA_HOME variable , i'm still the 
getting segmentation error(detailed error mentioned below)

++
bin/startdaemon.sh: line 13:  4402 Segmentation fault  (core dumped) 
./bin/jsvc -cp 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
$CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
-Dcatalina.home=$CATALINA_HOME -pidfile /root/test/tomcattest 
-Dcatalina.base=$CATALINA_BASE 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
org.apache.catalina.startup.Bootstrap start
 

Thanks
Vicky

From: Konstantin Kolinko knst.koli...@gmail.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Tuesday, 31 December 2013 4:03 PM
Subject: Re: JSVC error


2013/12/31 vicky vicky007aggar...@yahoo.co.in: 

 Hi,

 I  have configured the below in my tomcat 7.0.39 startup script  when 
 executing this script I 'm getting segmentation error(detailed error 
 mentioned below)

 Please suggest how to fix this.

 + start up script ++
 CATALINA_BASE=/root/test/tomcattest
 CATALINA_HOME=/root/home/apache-tomcat-7.0.39
    cd $CATALINA_BASE
    ./bin/jsvc  \
        -cp 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar \
        -outfile $CATALINA_BASE/logs/catalina.out \
        -errfile $CATALINA_BASE/logs/catalina.err \
        -Dcatalina.home=$CATALINA_HOME \
        -pidfile $CATALINA_PID \
        -Dcatalina.base=$CATALINA_BASE \
        -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
        -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
\
        org.apache.catalina.startup.Bootstrap start
 ++

  ERROR 
 ++=
 ./startdaemon.sh: line 13:  7429 Segmentation fault      (core dumped) 
 ./bin/jsvc -cp 
 $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
 $CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
 -Dcatalina.home=$CATALINA_HOME -pidfile $CATALINA_PID 
 -Dcatalina.base=$CATALINA_BASE 
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
 -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
 org.apache.catalina.startup.Bootstrap start

 +++


1. Did you tell jsvc where your Java is?
You can use either -home argument or JAVA_HOME environment variable.

http://commons.apache.org/proper/commons-daemon/jsvc.html

2. You have not defined the value of CATALINA_PID variable.

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

Re: JSVC error

2014-01-01 Thread vicky
 
I've build the JSVC on same machine over which I m running my tomcat instance
 
I have compiled the JSVC in the following manner but still i'm getting the  
Segmentation fault  exception while executing the startup script, please 
suggest how to fix this:-
 
Step1:
 export CFLAGS=-arch i386 -arch x86_64
 export LDFLAGS=-arch i386 -arch x86_64
Step2:
cd /root/test/commons-daemon-1.0.14-native-src/unix
 ./configure
++=
*** Current host ***
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for strip... strip
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for JDK os include directory...  linux
gcc flags added
checking for cap_init in -lcap... no
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue make
++
Step3:  
make
 +command output +=
(cd native; make  all)
make[1]: Entering directory 
`/root/test/commons-daemon-1.0.14-native-src/unix/native'
gcc -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
make[1]: Leaving directory 
`/root/test/commons-daemon-1.0.14-native-src/unix/native'
+++


 Vicky
From: André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Tuesday, 31 December 2013 8:34 PM
Subject: Re: JSVC error


vicky wrote:
 Even after defining the $CATALINA_PID  $JAVA_HOME variable , i'm still the 
 getting segmentation error(detailed error mentioned below)
 

In my experience, a segmentation fault often occurs when the *binary* that 
you are 
trying to run, is not made for the platform on which you are trying to run it.
For example, you try to use under Solaris a binary made for Linux; or trying to 
run a 
64-bit binary on a 32-bit platform.  Stuff of that kind.
So, are you sure that the jsvc that you're using matches your platform ?
What about file (path_to)/jsvc ? what does it say ? 



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

Re: JSVC error

2014-01-02 Thread vicky
I'm compiling  running JSVC on Linux machine ==Red Hat Enterprise Linux 
Server release 6.3 (Santiago)

I tried the below steps but still i'm getting the segmetation error.

1. export CFLAGS=-m64
2.  ./configure
3.   make

Can somebody pls  share the source link for JSVC ,from where I can try 
downloading  compiling the binaries again

Thanks
Vicky



On Thursday, 2 January 2014 10:06 PM, Mark Eggers its_toas...@yahoo.com wrote:
  
On 1/1/2014 11:02 PM, vicky wrote:

 I've build the JSVC on same machine over which I m running my tomcat instance

 I have compiled the JSVC in the following manner but still i'm getting the  
 Segmentation fault  exception while executing the startup script, please 
 suggest how to fix this:-

 Step1:
   export CFLAGS=-arch i386 -arch x86_64
   export LDFLAGS=-arch i386 -arch x86_64
 Step2:
 cd /root/test/commons-daemon-1.0.14-native-src/unix
   ./configure
 ++=
 *** Current host ***
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking cached host system type... ok
 *** C-Language compilation tools ***
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ANSI C... none needed
 checking for ranlib... ranlib
 checking for strip... strip
 *** Host support ***
 checking C flags dependant on host system type... ok
 *** Java compilation tools ***
 checking for JDK os include directory...  linux
 gcc flags added
 checking for cap_init in -lcap... no
 *** Writing output files ***
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating Makedefs
 config.status: creating native/Makefile
 *** All done ***
 Now you can issue make
 ++
 Step3:
 make
   +command output +=
 (cd native; make  all)
 make[1]: Entering directory 
 `/root/test/commons-daemon-1.0.14-native-src/unix/native'
 gcc -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
 make[1]: Leaving directory 
 `/root/test/commons-daemon-1.0.14-native-src/unix/native'
 +++


   Vicky
 From: André Warnier a...@ice-sa.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, 31 December 2013 8:34 PM
 Subject: Re: JSVC error


 vicky wrote:
 Even after defining the $CATALINA_PID  $JAVA_HOME variable , i'm still the 
 getting segmentation error(detailed error mentioned below)


 In my experience, a segmentation fault often occurs when the *binary* that 
 you are
 trying to run, is not made for the platform on which you are trying to run it.
 For example, you try to use under Solaris a binary made for Linux; or trying 
 to run a
 64-bit binary on a 32-bit platform.  Stuff of that kind.
 So, are you sure that the jsvc that you're using matches your platform ?
 What about file (path_to)/jsvc ? what does it say ?

Vicky,

Your CFLAGS and LDFLAGS settings appear that you're trying to compile a 
fat binary on MacOS. Is this true?

If so, I don't think MacOS supports a 32 bit JRE any more. I'm not 
certain, since I don't have a Macintosh, but some people at $work do. 
They indicate that they can no longer run applets in Chrome (32 bit) but 
require Firefox or Safari (64 bit).

What happens when you don't use those flags (or at least not the -arch 
386 for those flags)?

. . . just my two cents
/mde/



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

Re: JSVC error

2014-01-03 Thread vicky
Thanks everybody for sharing your thoughts 
 
Can you also please suggest that out of following which file do I need to 
download for my Linux machine as I' m not sure which one to select 
 
Download link == http://www.apache.org/dist/commons/daemon/source/
 
 commons-daemon-1.0.15-native-src.tar.gz  2013-04-02 14:03  200K  GZIP 
compressed document
 commons-daemon-1.0.15-native-src.tar.gz.asc  2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
 commons-daemon-1.0.15-native-src.tar.gz.md5  2013-04-02 14:03   74   MD5 
checksum file
 commons-daemon-1.0.15-native-src.tar.gz.sha1 2013-04-02 14:03   82   SHA1 
checksum file
 commons-daemon-1.0.15-native-src.zip 2013-04-02 14:03  255K  ZIP 
compressed archive
 commons-daemon-1.0.15-native-src.zip.asc 2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
 commons-daemon-1.0.15-native-src.zip.md5 2013-04-02 14:03   71   MD5 
checksum file
 commons-daemon-1.0.15-native-src.zip.sha1    2013-04-02 14:03   79   SHA1 
checksum file
 commons-daemon-1.0.15-src.tar.gz 2013-04-02 14:03 284K GZIP compressed 
document  commons-daemon-1.0.15-src.tar.gz.asc 2013-04-02 14:03  230   
OpenPGP ASCII armored signature
 commons-daemon-1.0.15-src.tar.gz.md5 2013-04-02 14:03   67   MD5 
checksum file
 commons-daemon-1.0.15-src.tar.gz.sha1    2013-04-02 14:03   75   SHA1 
checksum file
 commons-daemon-1.0.15-src.zip    2013-04-02 14:03  377K  ZIP 
compressed archive
 commons-daemon-1.0.15-src.zip.asc    2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
 commons-daemon-1.0.15-src.zip.md5    2013-04-02 14:03   64   MD5 
checksum file
 commons-daemon-1.0.15-src.zip.sha1   2013-04-02 14:03   72   SHA1 
checksum file


Thanks
Vicky

From: André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Friday, 3 January 2014 3:18 AM
Subject: Re: JSVC error


Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 André,
 
 On 12/31/13, 10:04 AM, André Warnier wrote:
 vicky wrote:
 Even after defining the $CATALINA_PID  $JAVA_HOME variable ,
 i'm still the getting segmentation error(detailed error mentioned
 below)

 In my experience, a segmentation fault often occurs when the
 *binary* that you are trying to run, is not made for the platform
 on which you are trying to run it.
 
 Nah, you get way weirder errors when that happens. jsvc is probably
 somewhat fragile when it gets unexpected input. While that should
 probably be fixed, the problem here is very likely to be
 configuration-related.
 

I was only talking about my experience.
I don't usually do weird things.
Your mileage may be different.

The OP never told us what file jsvc is telling him though.
For example on one of our systems :

# uname -a
Linux server.company.com 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 
x86_64 GNU/Linux
# find / -name jsvc -exec file {} \;
/usr/share/doc/jsvc: directory
/usr/bin/jsvc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked 
(uses shared libs), for GNU/Linux 2.6.8, stripped 


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

Re: JSVC error

2014-01-03 Thread vicky


 I'm able to build the jsvc successfully from 
commons-daemon-1.0.15-native-src file. Thanks for suggesting that .

I've configured below in my tomcat startup script with this I am able to start 
my tomcat without any Segmentation error.

I need this JSVC setup in order to start/stop tomcat instance from PSI PROBE 
application (http://code.google.com/p/psi-probe/)

The problem now is that my tomcat is getting started properly with below script 
even then on PROBE screen i'm seeing the below message.
++ PROBE Message on Wrapper Control link 
+++
this JVM is not controlled by Java Service Wrapper
+++
I was under the impression with JSVC I'm able to start/stop JVM via PROBE but 
its not happening ,please suggest what wrong I m doing 
 

Startup script
CATALINA_BASE=/root/test/tomcattest
CATALINA_HOME=/root/test/apache-tomcat-7.0.39
    cd $CATALINA_BASE
    ./bin/jsvc  \
    -cp $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar 
\
    -outfile $CATALINA_BASE/logs/catalina.out \
    -errfile $CATALINA_BASE/logs/catalina.err \
    -Dcatalina.home=$CATALINA_HOME \
    -pidfile /root/test/tomcattest/pid \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
    org.apache.catalina.startup.Bootstrap start

+
 

From: vicky vicky007aggar...@yahoo.co.in
To: Tomcat Users List users@tomcat.apache.org; Tomcat Users List 
users@tomcat.apache.org 
Sent: Saturday, 4 January 2014 9:37 AM
Subject: Re: JSVC error


Thanks everybody for sharing your thoughts 
 
Can you also please suggest that out of following which file do I need to 
download for my Linux machine as I' m not sure which one to select 
 
Download link == http://www.apache.org/dist/commons/daemon/source/
 
commons-daemon-1.0.15-native-src.tar.gz  2013-04-02 14:03  200K  GZIP 
compressed document
commons-daemon-1.0.15-native-src.tar.gz.asc  2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-native-src.tar.gz.md5  2013-04-02 14:03   74   MD5 
checksum file
commons-daemon-1.0.15-native-src.tar.gz.sha1 2013-04-02 14:03   82   SHA1 
checksum file
commons-daemon-1.0.15-native-src.zip 2013-04-02 14:03  255K  ZIP 
compressed archive
commons-daemon-1.0.15-native-src.zip.asc 2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-native-src.zip.md5 2013-04-02 14:03   71   MD5 
checksum file
commons-daemon-1.0.15-native-src.zip.sha1    2013-04-02 14:03   79   SHA1 
checksum file
commons-daemon-1.0.15-src.tar.gz 2013-04-02 14:03 284K GZIP compressed document 
 commons-daemon-1.0.15-src.tar.gz.asc 2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-src.tar.gz.md5 2013-04-02 14:03   67   MD5 
checksum file
commons-daemon-1.0.15-src.tar.gz.sha1    2013-04-02 14:03   75   SHA1 
checksum file
commons-daemon-1.0.15-src.zip    2013-04-02 14:03  377K  ZIP 
compressed archive
commons-daemon-1.0.15-src.zip.asc    2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-src.zip.md5    2013-04-02 14:03   64   MD5 
checksum file
commons-daemon-1.0.15-src.zip.sha1   2013-04-02 14:03   72   SHA1 
checksum file


Thanks
Vicky


From: André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Friday, 3 January 2014 3:18 AM
Subject: Re: JSVC error


Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 André,
 
 On 12/31/13, 10:04 AM, André Warnier wrote:
 vicky wrote:
 Even after defining the $CATALINA_PID  $JAVA_HOME variable ,
 i'm still the getting segmentation error(detailed error mentioned
 below)

 In my experience, a segmentation fault often occurs when the
 *binary* that you are trying to run, is not made for the platform
 on which you are trying to run it.
 
 Nah, you get way weirder errors when that happens. jsvc is probably
 somewhat fragile when it gets unexpected input. While that should
 probably be fixed, the problem here is very likely to be
 configuration-related.
 

I was only talking about my experience.
I don't usually do weird things.
Your mileage may be different.

The OP never told us what file jsvc is telling him though.
For example on one of our systems :

# uname -a
Linux server.company.com 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 
x86_64 GNU/Linux
# find / -name jsvc -exec file {} \;
/usr/share/doc/jsvc: directory
/usr/bin/jsvc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked 
(uses shared libs), for GNU/Linux 2.6.8, stripped 


-
To unsubscribe, e-mail: users

Java Wrapper Service -Linux

2014-05-23 Thread vicky
Guys,

CAn someone please share the steps needed to configure the Java wrapper service 
for Tomcat.

I'm using Tomcat 7 with JDK 1.7 on a Linux machine

I have added the wrapper.conf under Catalina_base/conf  directory  wrapper 
script under Catalina_base/bin.

WHile executing the ./wrapper  -c ../conf/wrapper.conf  command,  I' getting 
the below error :-

please guide me through as I couldn't find the steps over web.

+++=
wrapper  | -- Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 64-bit 3.5.11
wrapper  |   Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
wrapper  | http://wrapper.tanukisoftware.com
wrapper  |
wrapper  | Launching a JVM...
jvm 1| Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org
jvm 1|
jvm 1| WARNING - The Wrapper jar file currently in use is version 3.2.0
jvm 1|   while the version of the Wrapper which launched this JVM is
jvm 1|   3.5.11.
jvm 1|   The Wrapper may appear to work correctly but some features 
may
jvm 1|   not function correctly.  This configuration has not been 
tested
jvm 1|   and is not supported.
jvm 1|
jvm 1| WrapperSimpleApp: Unable to locate the class : 
java.lang.ClassNotFoundException: 
jvm 1|
jvm 1| WrapperSimpleApp Usage:
jvm 1|   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} 
[app_parameters]
jvm 1|
jvm 1| Where:
jvm 1|   app_class:  The fully qualified class name of the application 
to run.
jvm 1|   app_parameters: The parameters that would normally be passed to the
jvm 1|   application.
jvm 1| Wrapper code received an unknown packet type: -122
wrapper  | -- Wrapper Stopped


+++


Thanks
Vicky

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



Webapps directory query

2014-06-19 Thread vicky
Hi Guys,

Ideally when a redeployment happens in a tomcat , is it standard that the 
exploded war directory will again be 

updated with the latest timestamps or is it the case that only files will be 
updated within that  directory.

Please share if there is any online documentation available for this behavior


Kindly suggest


 Thanks
Vicky


Re: Webapps directory query

2014-06-19 Thread vicky
Thanks Mark, but it doesn't have the details of scenario when we'll carry out a 
redeployment along with a restart/

How the exploded directories will then be updated , is it only the files are 
going to be updated within it ?

Please give some directions.

 Vicky

 


On Friday, 20 June 2014 11:00 AM, Mark Eggers its_toas...@yahoo.com.INVALID 
wrote:
 


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 6/19/2014 10:12 PM, vicky wrote:
 Hi Guys,
 
 Ideally when a redeployment happens in a tomcat , is it standard 
 that the exploded war directory will again be
 
 updated with the latest timestamps or is it the case that only 
 files will be updated within that  directory.
 
 Please share if there is any online documentation available for 
 this behavior
 
 
 Kindly suggest
 
 
 Thanks Vicky
 

Please read the following links, and search for the word 'redeploy'.

http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html
http://tomcat.apache.org/tomcat-8.0-doc/deployer-howto.html

. . . just my two cents
/mde/

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.13 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTo8a8AAoJEEFGbsYNeTwt5kcH/1Lrmw9PeIJq6Y4P6RZCMc+K
8T4q8uCC70U/Bkesd5b7e+uaVLiv/kmutnTKB+0vSzhn12iy/fbkO8RC+6gbNjp0
sicu1y6kHaCp3t0djRk+rRqzWi0gg0yGgbJNz26FVkauXFQoPYAD6/gvApH54bp/
V1bXY0eGRgNdv2lUneMOEOk4vVaciUmIoKWSVznBISYlLNRaqg609u4ChoStAZm+
NDu6z4vrx435XZ4OygIhSzh/hBxhuNZv4VZ3gCx88a/NV4mxqiB4K4fSeGmrpF6U
uffuhsfj0+INTclNk/Y0avWe+B26e2GKRDkujcWVpJS1fXb4id9uTamdRX1+N4c=
=x1Ow
-END PGP SIGNATURE-

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

jmx query

2014-09-16 Thread vicky


 Hi,
Can someone please explain step by step instruction that how to setup the LDAP 
authentication for  JMX console ?


Thanks Guys

Vicky


java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [COMPLETING]

2014-11-25 Thread Vicky
Hi Folks,

I am using Tomcat 7.0.42, in embedded mode, using NIO connector. Running on
a linux box.

I use request.startAsync() to create an AsyncContext. And call complete()
once everything is done. But complete() is called via a separate thread.

Any idea why am i getting this exception?

Thanks,
Vicky


Re: java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [COMPLETING]

2014-11-25 Thread Vicky
Thanks Mark. However i don't think, i am calling it twice, anyway i'll
double check, if there are any implicit calls.

Is there a way i can add a defensive check to allow calling complete, only
if not already done. Something like isComplete() or any other way?

Vicky

On Tue, Nov 25, 2014 at 8:36 PM, Mark Thomas ma...@apache.org wrote:

 On 25/11/2014 13:01, Vicky wrote:
  Hi Folks,
 
  I am using Tomcat 7.0.42, in embedded mode, using NIO connector. Running
 on
  a linux box.
 
  I use request.startAsync() to create an AsyncContext. And call complete()
  once everything is done. But complete() is called via a separate thread.
 
  Any idea why am i getting this exception?

 The only way that can happen is if you call complete() more that once.

 Mark


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




Re: Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Hi Chris-  I;ve below config :-
  Connector port=8080 protocol=HTTP/1.1                
connectionTimeout=2                redirectPort=8443 /
- vicky 


 On Tuesday, 16 June 2015 9:37 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:
   

 -BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 6/16/15 10:34 AM, vicky wrote:
 In tomcat does the no . of open sockets on http port (netstat 
 -anlp|grep 8080) is it equal to number of threads in use in tomcat
 .
 
 Actually i want to understand how  when i can say that the all 
 threads in a tomcat are fully utilized that why it is responding 
 slow. Please help in understand.

It depends upon the Connector you are using. Can you post your
configuration from server.xml (sanitized to remove passwords, IP
addresses, etc.)?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVgElxAAoJEBzwKT+lPKRYMMUQALb3YePRzeK3c+/gbVi1p/Oj
zhwl5WNXVIn/wpokCJuPmePfprPg+8GMI49efssWW8KIouMrrzDMoF9fmofvGNas
r4qKEgOdd4Npd/fKUPlUY5jEqzQTgf2/NFg9XyUHp22RzDz/RWUaorgxkZYS0vOB
HA/LPfiz95kAEPKmyhF77MN9IEJSE8T0oV4qTlXu8ijQvISrWJvuHNhaWfCdp7s6
+Wc6jdHT6f3C0zVlHQatS+KIre5i9hbxpLWNRY2y0Sz87SLfb0ty+mIlj/Iu+ZMV
nw+CuWxgUrO9ubjTpvTsO02f39QZGYdBqqVAtR2sIpIfcPRgX4hP4s31GLGGhdEs
u+0qCnqse5jf2wYbU4NjKNMJmKdNid28yKh2xah0+SJXn08ehmqMfKyel6KwHAyv
xjuywAUTy5nej/kMLfAAdjDue69guKjMnOvDjhk/pJDw8XQRNbvMMO5V69OtOD+7
5VgYAg+kEqWiP7HFs8jmULt0R+mGxxHPIfsvumRGiVngUpC5eD4jjoryEvwnvaXM
GrGpv5Brl0EXyikLrN7ohPPUGpd0WEsMChimZzH2/zDYKtI4l9WqJZjaA1XSTL/L
ID4dEu9NfNRW/QLnE+PoJjc/B+SVxJbR8NDNCCHQdsLYNRKL83XDP1WG7HoX2x3a
y7Wsw89GyhtxHvq1lAVh
=W1rm
-END PGP SIGNATURE-

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



  

Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Team,
In tomcat does the no . of open sockets on http port (netstat -anlp|grep 8080) 
is it equal to number of threads in use in tomcat .
Actually i want to understand how  when i can say that the all threads in a 
tomcat are fully utilized that why it is responding slow. Please help in 
understand.

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Thanks Chris for an insight.
When you say the number of open sockets and the number of 
Tomcatrequest-processing threads will be the same. Does that mean all sockets 
states whether its in Closed_wait,listening, stop etc... will consume a thread 
individually.If yes then does that imply if i count all the sockets bind to 
http port (all states ) it should not exceed the total no. of threads 
configured for my hTTP connector.But in certain cases i've seen that this count 
of sockets is more than the threads configured , is there any particular reason 
for this behavior. -vicky 


 On Tuesday, 16 June 2015 10:50 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:
   

 -BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 6/16/15 12:50 PM, vicky wrote:
 Server version: Apache Tomcat/7.0.22 Server built:  Sep 27 2011
 09:40:50

Oh, wow, you really need to upgrade. There are a number of really
*really* important security updates that need to be applied.

Please stop now and make plans to upgrade to Tomcat 7.0.62.

 JVM Version:    1.6.0_24-b24 JVM Vendor:    Sun Microsystems Inc

You should know that Java 6 is no longer supported, and will not be
getting any security updates. I highly recommend that you upgrade to
Java 8 as soon as possible.

 In tomcat does the [number] of open sockets on http port (netstat 
 -anlp|grep 8080) equal the number of threads in use in tomcat?

 Connector  port=8080 protocol=HTTP/1.1 
 connectionTimeout=2 redirectPort=8443 /

For your version (Tomcat 7) and Connector (BIO, the default for Tomcat
7), the number of open sockets and the number of Tomcat
request-processing threads will be the same. The BIO connector stands
for blocking I/O, and each request is processed by a single thread
from start to finish, and each thread will wait for a new connection
to come in before being dispatched.

If you use an Executor in your server.xml, it can re-size itself so
that you don't have more threads allocated than you are actually
using. That may not be necessary for you, but I figured I'd mention it.

 Actually i want to understand how  when i can say that the all 
 threads in a tomcat are fully utilized that why it is responding 
 slow. Please help in understand.

If you want to monitor Tomcat, I suggest you read this:
http://wiki.apache.org/tomcat/FAQ/Monitoring

It talks about watching the thread usage. You can certainly watch
thread usage over time as well and see how many threads are in use.

Application slowness can be caused by any number of things, but
usually thread-usage isn't the problem unless you have a huge load and
a well-designed application. It's usually things like global
synchronization of certain resources, or too few database connections,
a database that hasn't been optimized properly for the load profile,
or inefficient handling of large amounts of data (e.g. using DOM
instead of SAX for XML document processing).

That said, you might still have a threading problem.

- -chris

 Connector port=8080 protocol=HTTP/1.1 
 connectionTimeout=2 redirectPort=8443 /
 
 Also, what Tomcat version? I'm guessing 6.0.x or 7.0.x. Can you
 give us the whole version number, including the x at the end?
 
 - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools -
 http://gpgtools.org
 
 iQIcBAEBCAAGBQJVgFM5AAoJEBzwKT+lPKRY18UP/RGonACYQZQlFuldUGRstKB8 
 mhllDqlDP3AK5/tMz2VIdVA1BR1Zs2+kpwZZLgEbYZLSJP/NuV5cgsXxNy/bAuLw 
 g3mZ7fmvTFQfck0G2UqXN/UQlmqTmJooFaWyn980yEwsAv2Fk809Cj4N+bgeseU1 
 0hoUFZqTx2hM0ZXrlVdkACdk186rKfGBkInoKCNzkMn7xHxnip2PSxG3edBNnZQE 
 TI5eUFO++PgoWarmV+cf4HNYDEK2i1gEP0Yh81WVecZpBS2NxuEL2n3iiWcnX/WJ 
 2Vd6ZzeDC8WLLeydCO2UaBLoP8hps+d23WT6pDq7latthr65exPNu3pMt34tZFdp 
 LH9d+DX6k6RxONIgSOxHNOe5tTBRJX3zXlXzT/d2oqaP3tvz8nW+EUZfqR6otvKX 
 MMznfECaZOJowSYzLDrSaWC0lMs6OJUM6uYYGYQp4JtdRAOhfqUndt1TgIzjTkgM 
 LYoRkfx0wGoiVst9pRZYgfqmef0yrKPduMuNsqiuBtS96u9ZCO21DPOs1Jt5aesG 
 Ll3nASR8gFaJAEjCLzy46O782k9Rjc0jDy0I3vsYIb2TlTkSnFo0jb/io9doJ0dr 
 7EEWZoBb/QomQCwjmB3/I/bq0dSQP8ejrVIhrF+N9KK43TsbnJzzG0vm9RkDevqP 
 O8TDaRpqMsZQrBb6qSft =a4Gs -END PGP SIGNATURE-
 
 -

 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVgFr7AAoJEBzwKT+lPKRYr9oP/1+yb22/0Rfwgm8xAVskTHAZ
PyvyS8N+NWobZ3nLrlfRf6SJaq51oNqARVK0PbourXejXGFFX4UK/Pl4Yo9iqxvM
IodCJDdBUeiXFW7vM7aaJyfalkhpEeG+kkl8zpzOaV1hVy9fa23vuz4yAyirHSRP
+WD4P/JoyS91lglhrAekyo3T4lWOGG0GMAefaV/WtxMYB9ZjrBwZqrhrzd4o8PwE
Hio52nxhU7CZu9vik6ffZA+j4z35BSoU7VMuey8lFQAVF1Tp3F/twX45hiNP45YZ
crMQiawA7XjSyhqtmKVFnMuKFE1e7b+KHzZGOafjLbd9SoLObfo/muafM9NSweE9
ZIOKmLUCbRo8H7Ny2xObjc09sCXVYbqy8FTFKKEEBZ2pVzuZfMa9Iko+B4xiSYz/
06rLzSLO9nt3929h7oQO7P+L4ov6j0rJQU2eNUzfNHAHpGLM3NhfbQyk19EERyEW
7LWzEzErU+S4iPFOZpTZfg5LVfSXtIfIdLskclTkRqk0TpwTTEF7xXgcCpuCtIst

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Chirs - Below are the required details as your requested :-
Server version: Apache Tomcat/7.0.22Server built:   Sep 27 2011 09:40:50Server 
number:  7.0.22.0OS Name:        LinuxOS Version:     
3.4.48-45.46.amzn1.x86_64Architecture:   amd64JVM Version:    1.6.0_24-b24JVM 
Vendor:     Sun Microsystems Inc -Vicky 


 On Tuesday, 16 June 2015 10:18 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:
   

 -BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 6/16/15 12:25 PM, vicky wrote:
 Connector port=8080 protocol=HTTP/1.1 
 connectionTimeout=2 redirectPort=8443 /

Also, what Tomcat version? I'm guessing 6.0.x or 7.0.x. Can you give
us the whole version number, including the x at the end?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVgFM5AAoJEBzwKT+lPKRY18UP/RGonACYQZQlFuldUGRstKB8
mhllDqlDP3AK5/tMz2VIdVA1BR1Zs2+kpwZZLgEbYZLSJP/NuV5cgsXxNy/bAuLw
g3mZ7fmvTFQfck0G2UqXN/UQlmqTmJooFaWyn980yEwsAv2Fk809Cj4N+bgeseU1
0hoUFZqTx2hM0ZXrlVdkACdk186rKfGBkInoKCNzkMn7xHxnip2PSxG3edBNnZQE
TI5eUFO++PgoWarmV+cf4HNYDEK2i1gEP0Yh81WVecZpBS2NxuEL2n3iiWcnX/WJ
2Vd6ZzeDC8WLLeydCO2UaBLoP8hps+d23WT6pDq7latthr65exPNu3pMt34tZFdp
LH9d+DX6k6RxONIgSOxHNOe5tTBRJX3zXlXzT/d2oqaP3tvz8nW+EUZfqR6otvKX
MMznfECaZOJowSYzLDrSaWC0lMs6OJUM6uYYGYQp4JtdRAOhfqUndt1TgIzjTkgM
LYoRkfx0wGoiVst9pRZYgfqmef0yrKPduMuNsqiuBtS96u9ZCO21DPOs1Jt5aesG
Ll3nASR8gFaJAEjCLzy46O782k9Rjc0jDy0I3vsYIb2TlTkSnFo0jb/io9doJ0dr
7EEWZoBb/QomQCwjmB3/I/bq0dSQP8ejrVIhrF+N9KK43TsbnJzzG0vm9RkDevqP
O8TDaRpqMsZQrBb6qSft
=a4Gs
-END PGP SIGNATURE-

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



  

TCP connection vs Tomcat threads vs File Descriptors - please help

2015-10-17 Thread vicky
Hi All,
can someone please help in understand  that how TCP connections are interlinked 
with the no. ofFile Descriptors & no of threads configured over a machine .
Setup details :OD - Centos 6Tomcat7Java 7
Recently i have faced an problem in while my application was having +20k TCP 
connections in TIME-WAIT state resulting in choking my application though no 
consumed threads & Files descriptors are pretty less than threshold.
1) I would like to understand that is there any limit that how many TCP 
connections a machine can open , IF YES then how to tune it . 
2) Second query   , my understanding was every TCP connection will open one 
file  descriptor but in my currentsituation only 900 FD were used whereas the 
TCP_WAIT connections where +20K .Kindly suggest how do i comprehend this . How 
these are interlinked
3) If i configure 600 threads in server.xml for my HTTP connector & if i'm 
running that machine over 8 core cpu does that mean simultaneously 600 X 8 (cpu 
core) =4800 threads will be served by my tomcat ?

Re: TCP connection vs Tomcat threads vs File Descriptors - please help

2015-10-17 Thread vicky
Thank you so much Rainer, for sparing time & answering my query. Vicky 


 On Saturday, 17 October 2015 5:17 PM, Rainer Jung 
<rainer.j...@kippdata.de> wrote:
   

 Am 17.10.2015 um 08:27 schrieb vicky:
> Hi All,
> can someone please help in understand  that how TCP connections are 
> interlinked with the no. ofFile Descriptors & no of threads configured over a 
> machine .
> Setup details :OD - Centos 6Tomcat7Java 7
> Recently i have faced an problem in while my application was having +20k TCP 
> connections in TIME-WAIT state resulting in choking my application though no 
> consumed threads & Files descriptors are pretty less than threshold.
> 1) I would like to understand that is there any limit that how many TCP 
> connections a machine can open , IF YES then how to tune it .
> 2) Second query  , my understanding was every TCP connection will open one 
> file  descriptor but in my currentsituation only 900 FD were used whereas the 
> TCP_WAIT connections where +20K .Kindly suggest how do i comprehend this . 
> How these are interlinked
> 3) If i configure 600 threads in server.xml for my HTTP connector & if i'm 
> running that machine over 8 core cpu does that mean simultaneously 600 X 8 
> (cpu core) =4800 threads will be served by my tomcat ?

Let me give you an incomplete answer:

A TCP connection in state TIME_WAIT does no longer exist from the point 
of view of the application/Tomcat/Java etc. So it does not need any 
application resources like threads.

To understand TIME_WAIT, you should look for "TCP state diagram" in your 
favorite search engine or grab a copy of Steven's TCP/IP illustrated. 
You will find a picture like this:

http://www.cs.northwestern.edu/~agupta/cs340/project2/TCPIP_State_Transition_Diagram.pdf

(page 2)

There you will see, that an ESTABLISHED connection can only enter 
TIME_WAIT state on the side of the connection, that first started the 
connection shut down by sending a FIN packet. And on that side it will 
always go through TIME_WAIT state.

The default time during which a connection sits in TIME_WAIT on Linux 
seems to be 60, sometimes 120 seconds. So the total number of 
connections in that state is proportional to the number of connections 
per second that the local node starts closing.

Example: Assume you run 100 new connections per second and all of the 
are closed by the local node first. That means in 60 seconds 6000 
connections will pile up in state TIME_WAIT.

In addition, removing TIME_WAIT connections from the OS list is not done 
continuously but in regular intervals, like e.g. every 5 seconds. So the 
real numbers can be slightly higher.

Why are TIME_WAIT states bad? They don't need app resources, so why 
care? Because the increase the list of TCP connection states the OS has 
to manage and a huge number of such TIME_WAIT connections - a few 
10.000s - can make the IP stack slower.

The TIME_WAIT duration is not configurable for Linux only on some other 
Unixes. See the discussion at:

http://comments.gmane.org/gmane.linux.network/244411

For some time you had to live with it and the only things you could do was

- checking whether you could force more connections being closed by the 
remote side first

- reducing the number of connections per second by increasing connection 
reuse, so keeping connections around for a longer time instead of 
constantly creating new ones.

Both options would increase the need for app resources though, because 
the longer lifetime of established connections would often increase the 
number of threads needed.

Now some people recommend using net.ipv4.tcp_tw_reuse, but that tunable 
seems to only apply to outgoing connections. Other suggest using 
net.ipv4.tcp_tw_recycle, but that one seems to make problems if clients 
sit behind a NAT device.

See:

http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html

Other people suggest tuning 
net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait:

http://www.lognormal.com/blog/2012/09/27/linux-tcpip-tuning/

It could be, that this tunable will be replaced by 
nf_conntrack_tcp_timeout_time_wait in new kernels.

Regards,

Rainer

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



  

No of Sockets/LSOF - query

2015-09-13 Thread vicky
Hi All,
I'm a web admin ,have little understanding of how to configure the no.of 
sockets , list of open files & tomcat threads in server.xml

Can some one please help me out that as a web admin how i can suggest/recommend 
the proposed the number for no. of sockets, list of open files & tomcat threads 
for a given application

Is there any tool with which i can derive or any linux command which can help 
me in deriving these numbers & basically how these are linked.. brief intro of 
these three would be appreciated..
please share the knowledge

Vicky

Re: Tomcat Executor MBean

2016-01-03 Thread Vicky
All i am doing is creating an instance of a connector and setting it with
an java executor with an custom thread pool. Not sure i get it, when you
say registering the executor mbean, thought if connector is just
programmatically created, it shouldn't have really mattered. Moreover, it
does show the connection count accurately.

Do you have any pointers/references about registering of the mbean thing.

-Vikram



On Tue, Dec 22, 2015 at 3:11 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Vicky,
>
> On 12/21/15 3:12 PM, Vicky wrote:
> > I am using an embedded version of Tomcat 7.0.42. Using java executor with
> > either of the connectors i.e. BIO/NIO.
> >
> > However while monitoring the server via JMX, I see the mbean attributes,
> >
> > currentThreadCount
> >
> > currentThreadsBusy
> >
> > always showing the value "-1".
> >
> > The only one that shows the appropriate dynamic value is connection
> count,
> > which seems to match the count of the client threads that I initiate.
> >
> > Any idea how to get currentThreadCount and currentThreadsBusy to show the
> > right values?
>
> Are you registering the executor MBean with the JMX server? Tomcat will
> auto-register the  in server.xml when running non-embedded,
> but I'm not sure it will auto-register them if you programmatically add
> Executors in an embedded environment.
>
> -chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Tomcat Executor MBean

2015-12-21 Thread Vicky
Hi,

I am using an embedded version of Tomcat 7.0.42. Using java executor with
either of the connectors i.e. BIO/NIO.

However while monitoring the server via JMX, I see the mbean attributes,

currentThreadCount

currentThreadsBusy

always showing the value "-1".

The only one that shows the appropriate dynamic value is connection count,
which seems to match the count of the client threads that I initiate.

Any idea how to get currentThreadCount and currentThreadsBusy to show the
right values?

Thanks


difference in behaviour of tomcat 6 and tomcat 7 very imp

2011-05-23 Thread vicky b
Hi,

  I have done analysis on static references and found a interesting
point al;so i find a difference in behaviour in tomcat 6 andtomcat 7

I created a class (TestStatic) which has a static reference to VO(java bean)
in my servlet i declared TestStatic as member variable and initialized it
there and i deployed my app and hit my servlet and then undeployed it ... i
used eclipse MAT and saw that both TestStatic and VO objects are not getting
garbage collected

then i changed the code in my servlet and removed TestStatic from member
variable i used spring beanfactory to get TestStatic object in my service
method and repeated step of deploying hitting my servlet and undeploying ..
i used eclipse MAT and saw that only VO object are not getting garbage
collected

so what can be concluded static references are never garbage collected ? or
even objects holding static references are not GC'ed.

In tomcat static refrence are getting garbage collected but in weblogic it
is not can any body help

below is code for reference
\





*package* com.leak;
 *public* *class* TestEnum {

*private*   BeanName name;
*private*  *static*  VO vo = *new* VO();

*public* *void* printNames() {
System.out.println(name.beanName);
}}

 *package* com.leak;
 *import* org.springframework.beans.factory.BeanFactory;*import*
org.springframework.context.support.ClassPathXmlApplicationContext;

 *public* *class* UtilsN1 {

*public*  *static*   BeanFactory factory=*null*;
*public*  *static*  *void* setContext(BeanFactory factory ){
UtilsN1.factory = factory;

System.err.println( Utils.factory + factory );

}

*public*  *static* BeanFactory getFactory() {
*return* factory;
}}
 *package* com.leak;
 *import* java.io.IOException;*import* java.io.PrintWriter;
 *import* javax.security.auth.Destroyable;*import*
javax.servlet.ServletConfig;*import*
javax.servlet.ServletException;*import*
javax.servlet.http.HttpServlet;*import*
javax.servlet.http.HttpServletRequest;*import*
javax.servlet.http.HttpServletResponse;
 *import* org.springframework.beans.factory.BeanFactory;*import*
org.springframework.beans.factory.xml.XmlBeanFactory;*import*
org.springframework.core.io.ClassPathResource;*import*
org.springframework.core.io.Resource;
 *public* *class* Leak *extends* HttpServlet {
*private* *static* *final* *long* serialVersionUID = 1L;
TestEnum a = *new* TestEnum();

@Override
*public* *void* init(ServletConfig config) *throws* ServletException {
super.init(config);

Resource res = *new* 
ClassPathResource(applicationContext.xml);
BeanFactory factory = *new* XmlBeanFactory(res);
System.out.println(factory::: + factory.getBean(test));

UtilsN1.setContext(factory);

}

*protected* *void* doGet(HttpServletRequest request,
HttpServletResponse response) *throws* 
ServletException, IOException {
response.setContentType(text/html;charset=UTF-8);
PrintWriter out = response.getWriter();
out.println(htmlbodypre);

Test t = (Test) UtilsN1.getFactory().getBean(
BeanName.TEST.getBeanName());
System.out.println( test  + t);
//TestEnum a = (TestEnum) 
UtilsN1.getFactory().getBean(testEnum);
a.printNames();

out.println(/pregg/body/html);
out.close();
}

*protected* *void* doPost(HttpServletRequest request,
HttpServletResponse response) *throws* 
ServletException, IOException {
}

*public* *void* destroy() {
UtilsN1.factory = *null*;
}
 }

 *package* com.leak;
 *public* *class* VO {
 String  name;
 *public* String getName() {
*return* name;}
 *public* *void* setName(String name) {
this.name = name;}
 }


-- 
*Thanks  Regards
 Vickyb

*


GC algorithm

2011-05-23 Thread vicky b
HI,

  How can i come to know the GC algorithm used in tomcat... and all GC
configuarations..

-- 
*Thanks  Regards
 Vickyb

*


Re: GC algorithm

2011-05-23 Thread vicky b
then why do i see a difference in behaviour for tomcat 6 and tomcat 7 when i
undeploy my app the objects that are collected in tomcat6 are not collected
in tomcat7?

On Mon, May 23, 2011 at 7:19 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: vicky b [mailto:vickyb2...@gmail.com]
  Subject: GC algorithm

  How can i come to know the GC algorithm used in tomcat...

 That's easy: none.  GC algorithms are the province of the JVM, not Tomcat.

  and all GC configuarations..

 Read the JVM doc.

  - 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




-- 
*Thanks  Regards
 Vickyb

*


Re: GC algorithm

2011-05-23 Thread vicky b
Both tomcat 6 and tomcat are running on the same machine using same JVM and
as you said
GC algorithms are the province of the JVM  which according to my
understanding means depends upon JVM then why the difference.

On Mon, May 23, 2011 at 7:30 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: vicky b [mailto:vickyb2...@gmail.com]
  Subject: Re: GC algorithm

  then why do i see a difference in behaviour for tomcat 6
  and tomcat 7 when i undeploy my app the objects that are
  collected in tomcat6 are not collected in tomcat7?

 Because the objects are no longer reachable in your Tomcat 6 environment
 but are in Tomcat 7.  Nothing to do with the GC algorithm employed.  Analyze
 the heap and find out what references to the objects of interest are still
 around.

  - 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




-- 
*Thanks  Regards
 Vickyb

*


Client Side caching

2012-02-11 Thread vicky b
HI All,

  I want to enable client side cache for my http request , can any body
please let me know the configuration for this.

-- 
*Thanks  Regards
 Vickyb

*


Re: Tomcat Concurrency

2013-07-16 Thread vicky b
HI All,

 Just out of curiosity can you please let me know if there are 10 clients
who access 10 different browsers and make request at the same time what is
the expected output


On Tue, Jul 16, 2013 at 10:14 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Konstantin,

 On 7/15/13 6:38 PM, Konstantin Kolinko wrote:
  2013/7/16 Mark Haroldson markharold...@msn.com:
  Hello;
 
 
 
  I am running a tomcat 6 webapp using Jersey and I am running into
  a concurrency issue. When there are multiple concurrent
  connections to tomcat only one or two are processed concurrently.
  I have increased the maxThreads on the connector and now can see
  the requests being processed  by different threads however I
  still on observe one or two threads running concurrently.
 
 
 
  Example:
 
  Given the following servlet;
 
 
 
  Servlet()
 
  {
 
  Output(Start thread);
 
  Thread.sleep(2);
 
  Output(End thread)
 
  }
 
 
 
  I would expect the following output
 
 
 
  Start Thread
 
  Start Thread
 
  Start Thread
 
  Start Thread
 
  End Thread
 
  End Thread
 
  End Thread
 
  End Thread
 
 
 
  Instead I see
 
  Start Thread
 
  Start Thread
 
  End Thread
 
  End Thread
 
  Start Thread
 
  End Thread
 
  Start Thread
 
  End Thread
 
 
 
  What are the factors that control thread concurrency in Tomcat?
  Has anyone seen behavior like this before? Should I expect a high
  number of concurrent threads or does java/tomcat gate access to
  the servlet?
 
 
  Looking at a crystal ball I would guess that your client is a web
  browser. A well-behaving browser creates no more than 2
  simultaneous connections to the same host (a limitation recommended
  by the HTTP specification).

 No longer true. Firefox and Chrome default to 6 per server:
 http://kb.mozillazine.org/Network.http.max-connections-per-server
 http://code.google.com/p/chromium/issues/detail?id=12066

  A Tomcat can certainly serve more than 2 clients simultaneously. It
  is possible to mis-configure it or create a servlet that serves no
  more than 1 client, but you must be creative (in a newbie way) to
  do so.
 
  Without seeing your actual configuration and your actual code it
  is impossible to provide any review.
 
  If congestion were at Tomcat side, as when several threads are
  waiting for the same resource, it would be easy to spot the place
  by taking a pair of thread dumps (see wiki - FAQ -
  Troubleshooting).

 Mark, you should probably print the thread id when doing your
 printlns. That will help you see what is going on. Also, you might
 want to try making more than 4 connections. What client are you using?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJR5XhVAAoJEBzwKT+lPKRY00wP/3tOIEuEsw+4wdtZhnGYg+aI
 nQj82y7wakuLBYHKDstl/EoEAqKtLoV/hM2nWyctpylkRlZs5oj8fPVEb6xINf4r
 sqqJIwAFGomMod7H+TrQsXa4Tf6v1579iGGAPg4HgVw9MebzYz1y9eFeJ6BeODNw
 /eapZyCeQFFP3CmFQIyyvYk060EqQnaefo8wTMYVc+UZ59zPvq9NwaigerCUezYG
 nwq/GqcqRjdI+xUNkiCraldPVt7amBrUSeZsh2pvYzHvaAuzokaqHMo2kcpixyDf
 kuTwCOdZHUaMsMsHyfh5b6jGNR06DV1djRNJF46jArL4DMCh9NS/H4UgACA1PgAb
 OcW+YOn4lBzzR0lHfx3opitzn7d1i7s6NMwA7djwHRma+XusuMiZLUPahsq3/tXk
 +zwGPiAKyxMb9U68hSZSzSbrEVjdeuyfUo8RKxFvX6RGIK8PcPpkZwOYyzMjuk6u
 rVyxuSB5Ody4slGOAR/3jo6egTe6TXzqeXkL+Zlq7M5SVFVjUZlzmhc7jnb7wqBl
 ZAXIV6hJmDPek+cgsaKi990KRYeWSqtU8W33WR21hgVZBsavJ0uz7wDNaEoPo4Zs
 smA2rMVLA6yWFfOM7oaCJs0UwIfY/N2PNYmVmO8RjUzFT8533GHMKlR/oCAVsnrJ
 u8UNSi9fglS5pelSMX4Z
 =Punl
 -END PGP SIGNATURE-

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




-- 
*Thanks  Regards
 Vickyb

*


Http url connection : server returned http response code 400

2013-11-11 Thread vicky b
HI All,

  I am  getting server returned http response code 400  when  i run below
code from my tomcat however it works fine when i run it in WAS whch has
proxy server   settings.

URL url = new URL(reqUrl);
HttpURLConnection con = (HttpURLConnection)url.openConnection();
con.setDoOutput(true);
con.setRequestMethod(request.getMethod());
if(request.getContentType() != null) {
  con.setRequestProperty(Content-Type, request.getContentType());
}
  con.setRequestProperty(Referer, request.getHeader(Referer));
int clength = request.getContentLength();
if(clength  0) {
con.setDoInput(true);
InputStream istream = request.getInputStream();
OutputStream os = con.getOutputStream();
final int length = 5000;
  byte[] bytes = new byte[length];
  int bytesRead = 0;
  while ((bytesRead = istream.read(bytes, 0, length))  0) {
os.write(bytes, 0, bytesRead);
  }
}
  else {
con.setRequestMethod(GET);
  }
out.clear();
  out = pageContext.pushBody();
OutputStream ostream = response.getOutputStream();
System.out.println( finished getOUTputsteram);
response.setContentType(con.getContentType());
 InputStream in = con.getInputStream();
 final int length = 5000;
  byte[] bytes = new byte[length];
  int bytesRead = 0;
  while ((bytesRead = in.read(bytes, 0, length))  0) {
ostream.write(bytes, 0, bytesRead);
  }
-- 



*Thanks  Regards Vickyb*


Re: Http url connection : server returned http response code 400

2013-11-16 Thread vicky b
THanks you, can you please let me know what optimization I have to make.

  con.setRequestProperty(Referer, request.getHeader(Referer));

was the issue , since it was being set to null


On Mon, Nov 11, 2013 at 7:38 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Vicky,

 On 11/11/13, 10:02 AM, vicky b wrote:
  I am  getting server returned http response code 400  when  i run
  below code from my tomcat however it works fine when i run it in
  WAS whch has proxy server   settings.
 
  URL url = new URL(reqUrl); HttpURLConnection con =
  (HttpURLConnection)url.openConnection(); con.setDoOutput(true);
  con.setRequestMethod(request.getMethod());
  if(request.getContentType() != null) {
  con.setRequestProperty(Content-Type, request.getContentType());
  } con.setRequestProperty(Referer, request.getHeader(Referer));
  int clength = request.getContentLength(); if(clength  0) {
  con.setDoInput(true); InputStream istream =
  request.getInputStream(); OutputStream os = con.getOutputStream();
  final int length = 5000; byte[] bytes = new byte[length]; int
  bytesRead = 0; while ((bytesRead = istream.read(bytes, 0, length))
   0) { os.write(bytes, 0, bytesRead); } } else {
  con.setRequestMethod(GET); } out.clear(); out =
  pageContext.pushBody(); OutputStream ostream =
  response.getOutputStream(); System.out.println( finished
  getOUTputsteram); response.setContentType(con.getContentType());
  InputStream in = con.getInputStream(); final int length = 5000;
  byte[] bytes = new byte[length]; int bytesRead = 0; while
  ((bytesRead = in.read(bytes, 0, length))  0) {
  ostream.write(bytes, 0, bytesRead); }

 So you have a quick-and-dirty proxy servlet, right?

 There are a number of optimizations, etc that you should probably
 make, but none of the above code uses any Tomcat code (other than
 fetching information from the incoming request, which presumably works
 correctly).

 It looks like you are getting a 400 from the server your code is
 contacting. Have you looked at the request that is actually being sent?

 Under what conditions do you get a 400 response? I see you are
 unconditionally setting con.setDoOutput(true) even if you don't intend
 to send any data. You conditionally call setDoInput which doens't make
 a great deal of sense. I think you have these two calls reversed in
 your head.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.15 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJSgPnjAAoJEBzwKT+lPKRYg7QP/2DIfwXWl/d5XTXxLwn637H7
 voM3qF26zyoObW5F/Z2TmTDnidmTb/D4PSn/ZE+1cKJcbgBWoY36fJ+MFaAXhptf
 5MQet22E7xCUWs0n9Y9QbcPA7J5ZaGDap4O3ukW5C8O4/+vPkkNnjlIycNRa/P+/
 UvfvZVxVeZR2xioar4L81gr0CgBzCALUjCPQ5pLqh14NOMzl9nfNbxmkCUvQYpGa
 YpWmVhF7QKuv08fJxNLzEzjuZS+gQZn1SdqaMWoO3ebUrWMIpNiiv/xZC/oJInIT
 qfxvDrRpRpzzbhIWUwdfj4PzXHDJz0OlUVN5UzDY0WocDMddN1QeaRuQaZQnLpsK
 Cy27E8wWJrATd4vdki7FteQCIyZBPB6A/sBy0nKSArvn13uGowcdgPpTsc+sW5hP
 GxRiohnpH9vWj2IMDSuBtnnipDp/+f7JsvjQqOQ2Pmw2Zs6BwCAG8v7ufDFil6Lj
 NDhIPJ7FFeCmso+DeWItmBQq7iQV7mQaZ9DKhS9y/1hd0ZF/kqTv5KgKzpu12BTE
 2GauCWxIt9qiCuVgNEpp4cEsV4sptxV+XI4k5DtFVB0EMcX9gGVNYjxJSQP/4efG
 tjgA6jG2Ea/YM2KU2cJu0F2mFL3qKr3Vh47K5NE+mHtFMhrygz8nH5zX+s9nvF6F
 5vrRBravwnLLOk/ZGOU2
 =Zxr5
 -END PGP SIGNATURE-

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




-- 



*Thanks  Regards Vickyb*


webservices deployment.

2014-01-19 Thread Vicky B
HI All,

  If I want to deploy the webapplication which uses webservice like soap or
rest do I need a soap engine or rest engine in tomcat ? or including
libraries in the war file is enough?

-- 



*Thanks  Regards Vickyb*


Re: webservices deployment.

2014-01-20 Thread Vicky B
if I don't have to do anything special for soap or rest then when going for
paid app server we don't get any other advantage other then support + ejb
container?


On Sun, Jan 19, 2014 at 7:21 PM, Daniel Mikusa dmik...@gopivotal.comwrote:

 On Jan 19, 2014, at 4:34 AM, Vicky B vickyb2...@gmail.com wrote:

  HI All,
 
   If I want to deploy the webapplication which uses webservice like soap
 or
  rest do I need a soap engine or rest engine in tomcat ? or including
 libraries in the war file is enough?

 You are not required to add anything to Tomcat.  You could simply build
 your app with whatever libraries it requires and deploy to Tomcat.  I've
 done this with SOAP  REST apps using Spring Web Services  Spring MVC.
  Works great.

 Do you have a particular framework / set of libraries you're targeting?
  Perhaps someone on this list has used them with an app deployed to Tomcat.

 Dan

 
 
  --
 
 
 
  *Thanks  Regards Vickyb*


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




-- 



*Thanks  Regards Vickyb*


Re: Deny Put Delete

2014-01-25 Thread Vicky B
if I have a privilege to ask a question on this topic if can anyone help me
on how an user fire a put request or delete request ( I am not a hacker)
.All my life I just used post and get I never thought about these put and
delete, so if someone helps I would appreciate


On Fri, Jan 24, 2014 at 4:29 PM, Johan Compagner jcompag...@servoy.comwrote:

 
 
  I've dealt with similar nonsensical compliance scans before, and
  my response was:
 
  You believe you can PUT or DELETE files on this installation?
 
  ** makes popcorn **
 
  Please proceed. I'll sit here and watch. Take your time.
 
  Morons. Bane of productive peoples' existence.
 
  Also, a special place in hell for the writers of these scanners...
  /rant
  --
 
 
 Maybe even more stupid with this scanner could be that it only test for the
 options request to see what it returns but does not do an actual test of it
 really works?
 Maybe i can have a server that only replies that it accepts a GET but
 when i actually do fire a PUT or a DELETE the code does do something...

 johan




-- 



*Thanks  Regards Vickyb*


Re: Deny Put Delete

2014-01-26 Thread Vicky B
Thanks neven,mark


On Sun, Jan 26, 2014 at 4:00 PM, Neven Cvetkovic
neven.cvetko...@gmail.comwrote:

 On Sun, Jan 26, 2014 at 12:32 AM, Vicky B vickyb2...@gmail.com wrote:

  if I have a privilege to ask a question on this topic if can anyone help
 me
  on how an user fire a put request or delete request ( I am not a hacker)
  .All my life I just used post and get I never thought about these put and
  delete, so if someone helps I would appreciate
 
 
 PUT and DELETE type of requests are regularly used in RESTful applications.
 So, any REST client would be able to send these type of requests, e.g.
 POSTER extension for Firefox, POSTMAN extension for Chrome, etc...

 Also, Mark mentioned CURL command line URL client, e.g.
 curl -X DELETE http://www.somewebsite.here/page
 curl -X PUT http://www.somewebsite.here/page

 Good luck!
 Neven




-- 



*Thanks  Regards Vickyb*


timeout

2014-03-28 Thread Vicky B
HI All,

i have configured apache and apache tomcat i.e apache is my http server and
tomcat is my webserver. i am having an isssue where some of request take
1-2 min to process but i get 500 internal serer message .

IS this something related to timeout value.

The value of timeout in my apache is set 300.

what could the route cause?


-- 



*Thanks  Regards Vickyb*


Re: timeout

2014-03-28 Thread Vicky B
I dont know if  it is client timeouting or server .

I dont see any issue on server side processing .this issue happens when my
code takes more then a minute to respond.


On Sat, Mar 29, 2014 at 12:03 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Vicky,

 On 3/28/14, 2:18 PM, Vicky B wrote:
  HI All,
 
  i have configured apache and apache tomcat i.e apache is my http
  server and tomcat is my webserver. i am having an isssue where some
  of request take 1-2 min to process but i get 500 internal serer
  message .
 
  IS this something related to timeout value.
 
  The value of timeout in my apache is set 300.
 
  what could the route cause?

 Is the client timing-out (disconnecting) or is the server timing out?
 500 Internal Server Error is usually an indication that something went
 wrong on the server site. Check your log files on the server for
 anything reporting an error.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJTNcCVAAoJEBzwKT+lPKRYR9oP/jTLupu4DtIBHO00/lLW5zZQ
 /JIc5+pbge6Z4sWzu8MSKoGQJmAMlmuuolArV7KYnSYa+VlWxLAgn75ZoPaXSRPn
 j3Yfi3B4jWglkuh4RbL8vx66/8xy0jqlQMa9nuDiLsbX1+9xYaBd+8CgLx3y/CgE
 6H3JfXdo72VVyzskPKDNbsYBkhzd5zhslxH8I7Szs211/LWCrKTFSvs7+Dzd8JSn
 ueAreLnkxTVzio1+Tg2zYTBF44wDePpAwaDff6qsjpaRPNA2zLcB5ahHG2XI+DVA
 6UVkVlpaIWrMzrfgylw2O7aDHp1GRMQIFD6bNgH84CMEAKnQYH7QKKk2EHTCEkdw
 yfeVrqvzNK1bsKk5HbYfnjWiq0NUGItjf4cOUhGDLEt05iy2lkqAUOFjPYXmBW9r
 2gPieoVeDtcvL+IH6upU01H2TCYcjse52h+9q/WNAlgiNkGqhEtjXyj8e6wQwVM0
 3k1gMmFN1pgvmcAPyTZQVnlZUoc5oXKeg4/casUZVrqpueIA3DR/PBz4EEZARo2S
 IAlNLol2KRdx7m+gRZmbNhd7NWsJ/Y1wa1le2nuE6Cw5Z2PUB+YWH5YuikAiIyQ1
 8WYV0jwObt993iauYnFUTEVkstB44wSntIDcDsQ4Xv9aNjKh6TPko0wGP6qXTxNY
 v1PI5DGWXr8ExzZAxo0w
 =sj6N
 -END PGP SIGNATURE-

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




-- 



*Thanks  Regards Vickyb*


Re: timeout

2014-03-28 Thread Vicky B
I mean 1 min to process the request and thats due to the huge logic and
processing involved.


On Sat, Mar 29, 2014 at 12:11 AM, Weiquan weiquan.y...@gmail.com wrote:

 Why your code take one min to response? Find out the reason

 Sent from my iPhone

  On Mar 28, 2014, at 2:37 PM, Vicky B vickyb2...@gmail.com wrote:
 
  I dont know if  it is client timeouting or server .
 
  I dont see any issue on server side processing .this issue happens when
 my
  code takes more then a minute to respond.
 
 
  On Sat, Mar 29, 2014 at 12:03 AM, Christopher Schultz 
  ch...@christopherschultz.net wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA256
 
  Vicky,
 
  On 3/28/14, 2:18 PM, Vicky B wrote:
  HI All,
 
  i have configured apache and apache tomcat i.e apache is my http
  server and tomcat is my webserver. i am having an isssue where some
  of request take 1-2 min to process but i get 500 internal serer
  message .
 
  IS this something related to timeout value.
 
  The value of timeout in my apache is set 300.
 
  what could the route cause?
 
  Is the client timing-out (disconnecting) or is the server timing out?
  500 Internal Server Error is usually an indication that something went
  wrong on the server site. Check your log files on the server for
  anything reporting an error.
 
  - -chris
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1
  Comment: GPGTools - http://gpgtools.org
  Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
  iQIcBAEBCAAGBQJTNcCVAAoJEBzwKT+lPKRYR9oP/jTLupu4DtIBHO00/lLW5zZQ
  /JIc5+pbge6Z4sWzu8MSKoGQJmAMlmuuolArV7KYnSYa+VlWxLAgn75ZoPaXSRPn
  j3Yfi3B4jWglkuh4RbL8vx66/8xy0jqlQMa9nuDiLsbX1+9xYaBd+8CgLx3y/CgE
  6H3JfXdo72VVyzskPKDNbsYBkhzd5zhslxH8I7Szs211/LWCrKTFSvs7+Dzd8JSn
  ueAreLnkxTVzio1+Tg2zYTBF44wDePpAwaDff6qsjpaRPNA2zLcB5ahHG2XI+DVA
  6UVkVlpaIWrMzrfgylw2O7aDHp1GRMQIFD6bNgH84CMEAKnQYH7QKKk2EHTCEkdw
  yfeVrqvzNK1bsKk5HbYfnjWiq0NUGItjf4cOUhGDLEt05iy2lkqAUOFjPYXmBW9r
  2gPieoVeDtcvL+IH6upU01H2TCYcjse52h+9q/WNAlgiNkGqhEtjXyj8e6wQwVM0
  3k1gMmFN1pgvmcAPyTZQVnlZUoc5oXKeg4/casUZVrqpueIA3DR/PBz4EEZARo2S
  IAlNLol2KRdx7m+gRZmbNhd7NWsJ/Y1wa1le2nuE6Cw5Z2PUB+YWH5YuikAiIyQ1
  8WYV0jwObt993iauYnFUTEVkstB44wSntIDcDsQ4Xv9aNjKh6TPko0wGP6qXTxNY
  v1PI5DGWXr8ExzZAxo0w
  =sj6N
  -END PGP SIGNATURE-
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  --
 
 
 
  *Thanks  Regards Vickyb*

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




-- 



*Thanks  Regards Vickyb*


Re: timeout

2014-03-28 Thread Vicky B
@christopher

in response body i see the usual 500 internal server message

@Andre

Yes apache is my front end to apache tomcat ,  i use mode_jk connector.

Regarding  error message in apache logs i see 500 as reponse code for the
reqeust and i also see below message

broken pipe : connection reset by peer : writing data to network.

timeout is the direcive in apache which is set to 300 .


On Sat, Mar 29, 2014 at 3:05 AM, André Warnier a...@ice-sa.com wrote:

 Vicky B wrote:

 HI All,

 i have configured apache and apache tomcat i.e apache is my http server
 and
 tomcat is my webserver.


 The does not seem to make much sense.  Both are HTTP servers and thus
 webservers.
 Do you mean that apache http is working as a front-end to Tomcat ?
 If so, how does one connect to the other ?


  i am having an isssue where some of request take

 1-2 min to process but i get 500 internal serer message .


 The browser does not invent this error.
 It comes to it from the server, as HTTP response with a status code 500.
 There *must* be an error message somewhere in a log on the server side.

 (You have 2 servers, so look in both logfiles).

 It can also *not* be a timeout on the client (browser) side.  If there was
 a timeout on the client side, it would close the connection with the
 server, and you would never see this message (because the server could not
 send it to the client, if the connection was closed).

 The error pages are quite different between Apache httpd and tomcat,
 easily distinguished visually.  How does the 500 error page that you get
 look like ?



 IS this something related to timeout value.

 The value of timeout in my apache is set 300.


 what timeout ? what apache ?



 what could the route cause?


 Nobody can tell you that, before you tell us what is in the logfile(s).





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




-- 



*Thanks  Regards Vickyb*


Re: timeout

2014-03-30 Thread Vicky B
HI All,

  Below are the inforamtion

  OS : Solaris 5
  apache httpd : 2.2
  tomcat : 7

log : error.log

message :
[Wed Mar 26 02:24:22 2014] [debug] mod_deflate.c(616): [client 10.32.8.135]
Zlib: Compressed 0 to 2 : URL /pbs/cntrty/getReprots
[Wed Mar 26 02:24:22 2014] [info] [client 10.234.9.0] (131)Connection reset
by peer: core_output_filter: writing data to the network


On Sat, Mar 29, 2014 at 3:49 PM, André Warnier a...@ice-sa.com wrote:

 Vicky,

 contrary to the recommended usage on this list, I will top post this,
 because this part relates to the whole of your communications.

 The main intent of this message is : *please help us help you*.

 Apache is the generic name of at least 30 different software packages
 sponsored and/or assisted by the Apache Software Foundation.
 See here : http://projects.apache.org/indexes/alpha.html

 Among those projects, there exist :
 - Apache httpd (see http://httpd.apache.org/)
 - Apache Tomcat (see http://tomcat.apache.org/)

 Each of those has on-line documentation.  Each of those exists in at least
 10 currently-used versions.  Each of those can run on a variety of hardware
 and software platforms. Each of those has several configuration files, and
 several logfiles.
 Each of those has probably more than 10 different time-out settings,
 which apply to different things.

 So when you write apache or apache log or timeout, it does not
 really mean anything, because it could be one of many possible things.  So
 we have to ask again, and again, to get some real information out of you.
  This is annoying.

 On this Apache Tomcat Users's mailing list, there are an average of about
 20 messages per day, by people who have a problem and are looking for help.
  And there are about 10 people who regularly try to help and respond to
 these messages.
 These people do this for free, using their own time. They all have a job
 apart from that, so their time is limited, and they tend to focus on
 questions which are asked clearly, and which provide clear and precise
 information that allows to diagnose a problem quickly and allow to provide
 quick and precise responses.
 And after a while, they tend to ignore people who do not provide such
 information, or do not read the answers that they get, or do not respond
 (or not in a useful way) to the questions asked, or keep repeating the same
 thing without providing any new information, or look like they are not
 reading the on-line documentation, or look like they are not really trying
 themselves to solve their problem and expect someone else to do it all for
 them; or look like they are not wanting to think by themselves and
 understand the tools which they are using.

 Surely, you do not want this (being ignored) to happen to you, do you ?
 We do not want this to happen either, which is why would you please answer
 the following questions clearly, for a change ?
 (And please put the answer below each question, and not all on top of your
 message. Someone will have to read this, and figure out what is the answer
 to what question)

 On what platform does this all run ? (OS and version)
 (under Linux, the output of uname -a)

 What is the version of Apache httpd that you are using ?
 (When you restart Apache httpd, this is written in the first line of the
 Apache httpd error log file.)

 What is the version of mod_jk that you are using ?
 (When you restart Apache httpd, this is also written in the first line of
 the Apache httpd error log file.)

 What is the version of Apache tomcat that you are using ?
 (under Linux, the output of the command (tomcat_dir)/bin/version.sh).

 What is the version of Java that you are using ?
 (same thing, or try java -version)

 Note: some of these answers may not be relevant, in the end, to your
 problem.  But it saves us a lot of time if you provide them right away,
 because then we can at least eliminate in advance some possible scenarios,
 or tell you what to run in order to obtain additional information.

 Next :

 - when you are mentioning a configuration setting (your timeout e.g.),
 please indicate clearly where you set this configuration setting (in what
 file), and copy the line of that file in your message to the list.

 - when you are mentioning a message from a logfile, please indicate the
 name and path of that logfile, and copy this entire logfile message in your
 message to the list, as it appear in the logfile, without interpreting it
 or cutting pieces out of it.

 - if you are getting an error somewhere, please indicate clearly when and
 where this error occurs, without forcing someone here to have to pull it
 out of you bit by bit over 3 days and 5 message exchanges.

 If you had done all that, then you would probably already have received a
 couple of useful answers right away, after your first message to the list,
 instead of having to read this manual.

 And now, some focused additional comments below.



  @christopher

 in response body i see the usual 500

Re: timeout

2014-03-30 Thread Vicky B
The problem is i don't have access to the machines where this is deployed i
am only given access to the logs that too as a web url.
Hence i am not able to give perfect versions of these but on high level  i
have given the info.'
The actual problem i assume is when apache is waiting from response from
tomcat if waiting time cross 1 min I feel apache httpd fails the request or
timesout


On Sun, Mar 30, 2014 at 10:43 PM, Mark Eggers its_toas...@yahoo.com wrote:

 On 3/30/2014 8:44 AM, Vicky B wrote:

 HI All,

Below are the inforamtion

OS : Solaris 5
apache httpd : 2.2
tomcat : 7


 This is not nearly enough detailed information. You were given detailed
 steps on how to generate the information.

 Here's an example:

 1. What is your precise OS

 Instructions: use uname -a

 Example:
 
 [root@trident httpd]# uname -a
 Linux trident.mdeggers.org 3.13.7-200.fc20.x86_64 #1 SMP Mon Mar 24
 22:01:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

 2. What is your precise version of Apache HTTPD

 Instructions: use head -2 error_log (or whatever you've named your error
 log)

 Example:
 
 [root@trident httpd]# head -2 error_log
 [Sun Mar 30 03:18:07.721881 2014] [auth_digest:notice] [pid 792] AH01757:
 generating secret for digest authentication ...
 [Sun Mar 30 03:18:07.735105 2014] [mpm_prefork:notice] [pid 792] AH00163:
 Apache/2.4.7 (Fedora) OpenSSL/1.0.1e-fips mod_jk/1.2.37 PHP/5.5.10
 SVN/1.8.8 mod_perl/2.0.9-dev Perl/v5.18.2 configured -- resuming normal
 operations

 3. What is your precise version of Apache Tomcat

 Instructions: use $CATALINA_HOME/bin/version.sh

 Example:
 
 [mdeggers@trident bin]$ ./version.sh
 Using CATALINA_BASE:   /home/mdeggers/Apache/apache-tomcat-7.0.52
 Using CATALINA_HOME:   /home/mdeggers/Apache/apache-tomcat-7.0.52
 Using CATALINA_TMPDIR: /home/mdeggers/Apache/apache-tomcat-7.0.52/temp
 Using JRE_HOME:/usr/jre
 Using CLASSPATH: /home/mdeggers/Apache/apache-tomcat-7.0.52/bin/bootstrap.
 jar:/home/mdeggers/Apache/apache-tomcat-7.0.52/bin/tomcat-juli.jar
 Server version: Apache Tomcat/7.0.52
 Server built:   Feb 13 2014 10:24:25
 Server number:  7.0.52.0
 OS Name:Linux
 OS Version: 3.13.7-200.fc20.x86_64
 Architecture:   amd64
 JVM Version:1.7.0_51-b13
 JVM Vendor: Oracle Corporation

 4. What is the precise version of Java?

 Instructions: Use java -version

 Example:
 
 [mdeggers@trident bin]$ java -version
 java version 1.7.0_51
 Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
 Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

 From all of this, we can gather the following information:

 OS: 64 bit Linux with a 3.13.7 kernel (Fedora 20)
 HTTPD:  Apache/2.4.7 (Fedora) OpenSSL/1.0.1e-fips mod_jk/1.2.37
 Java:   1.7.0_51-b13 64-Bit server VM
 Tomcat: 7.0.52.0

 It's also good to note that the Apache Tomcat in question (7.0.52.0)
 generates OS and Java information that is consistent with the other
 commands.

 This is sort of the MINIMAL information needed. It sets a baseline. We may
 ask questions about your mod_jk / mod_proxy_http / mod_proxy_ajp
 configuration if you're using one of those.


   log : error.log

 message :
 [Wed Mar 26 02:24:22 2014] [debug] mod_deflate.c(616): [client
 10.32.8.135]
 Zlib: Compressed 0 to 2 : URL /pbs/cntrty/getReprots
 [Wed Mar 26 02:24:22 2014] [info] [client 10.234.9.0] (131)Connection
 reset
 by peer: core_output_filter: writing data to the network


 This is a truncated copy of an error log, and it appears to be from Apache
 HTTPD. This is the Apache Tomcat mailing list, and although many of us use
 Apache HTTPD in conjunction with Apache Tomcat, this list is focused on
 Apache Tomcat.

 A 500 internal server error (as others have pointed out) almost always
 generates much more information. For example, a null pointer exception will
 generate a 500 internal server error, and there should be logs with the
 information.

 Here's an example of an Apache HTTPD 500 error report. I've redacted the
 IP address and link to protect the guilty.

 aaa.bbb.ccc.ccc - - [27/Mar/2014:21:44:23 -0700] GET /some/page HTTP/1.1
 500 2813 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36

 If you look, there is the following pattern:

 GET /some/page HTTP/1.1 500 2813

 This tells you that getting /some/page using HTTP/1.1 returned a 500
 internal server error and the number of octets sent was 2813.

 Now if you look at your Apache Tomcat logs for the same time period, you
 may see the cause of the error. In this case, I get a stack trace (because
 people didn't catch errors correctly in this application), which indicates
 a null pointer exception.

 Armed with this information, I can go back to the application developers
 and tell them to fix their code.

 You will need to post the relevant portion of the Apache Tomcat logs in
 order for anyone to have any idea about what's going on. Please post

Re: [OT] timeout

2014-03-31 Thread Vicky B
there is a firewall between browser and apache httpd and i am not sure if
there is a firewall between apache and tomcat (mostly no).
But why would this firewall drop the connection ?


On Mon, Mar 31, 2014 at 3:16 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 On Mar 31, 2014 3:48 AM, André Warnier a...@ice-sa.com wrote:
 
  Howard W. Smith, Jr. wrote:
 
  On Sun, Mar 30, 2014 at 9:54 PM, Caldarale, Charles R 
  chuck.caldar...@unisys.com wrote:
 
  From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com]
  Subject: Re: timeout
 
  - and if that is not the reason, then find the person responsible for
 
  the
 
  in-between equipment and ask them why their junk closes the
 connection
  before your application has a chance to respond
 
  'junk'? please clarify the usage of the word 'junk', here. :)
 
  I think the definition something of poor quality would fit in this
 case,
  if the poor quality were a result of configuring equipment without
 regard
  to the requirements of the network users.
 
   - Chuck
 
 
  understood, thanks Chuck. :)
 
 
  Yes, what I meant precisely was thus : if after receiving numerous
 complaints from your users and your boss that your application is
 misbehaving; after an in-depth review of the Apache httpd and tomcat
 on-line documentation; after a level-headed discussion of the issue with a
 group of independent experts; after a thorough witnessed interview of a
 significant sample of the users to ascertain their professional behaviour
 in front of a browser and the absence of any problem with their mouse
 buttons; after a careful and time-consuming examination of all the
 evidence, including the access logs of both tomcat and httpd; if after all
 that thus you would come to the inescapable conclusion that it is the
 intermediate firewall/gateway that is the cause of all the trouble, then
 when you talk to the people responsible for that equipment, the word that
 might come to mind then, to qualify this equipment and its settings seen as
 a whole, is junk.
 
  Thank you for offering me the opportunity to clarify this section of my
 previous post.
 

 You're welcome, the pleasure was [almost] all mine, and thank you for the
 clarification. :-)

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




-- 



*Thanks  Regards Vickyb*


Re: [OT] timeout

2014-04-05 Thread Vicky B
HI All,

 The problem is solved now . we are have implemented a callback
functionality where after every 45 seconds we call back the same method
again .Hence making sure that there is no timeout.

 But as per identifying  the actual reason behind the problem i tried to
reproduce  the  issue,after  every time after response exceeds  1 min i
would get same internal error with same logs as I had mentioned earlier .I
got the confirmation that there is firewall between users browser and
web-server but i could not get more information about firewall . I have
read many blogs where people have faced same issue because of firewall.

I had no clue that firewall would drop the connection if it does not
recieve response within stiplulated time.
Can i increase this timeout period ? if firewall was not there then my app
would i worked properly ?


On Mon, Mar 31, 2014 at 8:29 PM, Mark Eggers its_toas...@yahoo.com wrote:

 On 3/31/2014 4:18 AM, Vicky B wrote:

 there is a firewall between browser and apache httpd and i am not sure if
 there is a firewall between apache and tomcat (mostly no).


 Mostly? Mostly? As in sometimes there's a firewall, and other times
 there's not, but mostly not?

 Or do you mean that you're supporting this application at multiple sites,
 and it's misbehaving at some sites? And that most of the sites do not have
 a firewall between Apache HTTPD and Apache Tomcat, but some do?

 Or do you mean that you're almost certain that there is no firewall
 between Apache HTTPD and Apache Tomcat, but you're not 100% certain?


  But why would this firewall drop the connection ?


 Firewalls can be configured to drop connections after a certain amount of
 inactivity. If you have a long-running process and are not sending
 information back to the user, there are many places where the connection
 could be closed.

 1. Between Apache Tomcat and Apache HTTPD

 As I mentioned earlier, if you have configured an AJP timeout (which is
 not the default configuration) and it is too short, Apache HTTPD will close
 the connection and send an error message back to the browser.

 2. Firewall between Apache Tomcat and Apache HTTPD

 A firewall can be configured to close connections after a period of
 inactivity.

 3. Firewall between Apache HTTPD and the browser

 A firewall can be configured to close connections after a period of
 inactivity. This might generate the type of error in the log extract that
 you posted earlier.

 However, that error may be completely unrelated to the problem, as well as
 all of these other musings many of us are doing.

 The short answer is that none of us know, because you have not provided
 enough information for us to be anything more than speculative.

 If you want help in resolving this problem, you need to provide us with
 answers to the questions we've asked (as a start). We can then help (mostly
 by asking more questions) narrow down the possibilities, and then possibly
 help you solve the problem.

 Or as André politely pointed out, give you enough information so that you
 can go back to the developers so that they can fix the problem. As he has
 pointed out, 90% of the time it's an application issue.

 There is no 'magic' one line answer and configuration that will fix your
 problem (most likely - but again, we don't know).

 If you do not have the answers to the questions we are asking, please go
 ask someone who does have the answers and the access for the information.

 Otherwise we're all just wasting time and bandwidth. Meanwhile your users
 are still getting errors . . .

 . . . just my (not caffeinated) two cents
 /mde/

 PS - please, please, please do not top-post. Your comments when they're
 read first make no sense until you scroll to the bottom and read the rest
 of the message.

 /mde/



 On Mon, Mar 31, 2014 at 3:16 PM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  On Mar 31, 2014 3:48 AM, André Warnier a...@ice-sa.com wrote:


 Howard W. Smith, Jr. wrote:


 On Sun, Mar 30, 2014 at 9:54 PM, Caldarale, Charles R 
 chuck.caldar...@unisys.com wrote:

  From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com]
 Subject: Re: timeout


 - and if that is not the reason, then find the person responsible
 for


 the


 in-between equipment and ask them why their junk closes the

 connection

 before your application has a chance to respond


 'junk'? please clarify the usage of the word 'junk', here. :)


 I think the definition something of poor quality would fit in this

 case,

 if the poor quality were a result of configuring equipment without

 regard

 to the requirements of the network users.

   - Chuck


 understood, thanks Chuck. :)


 Yes, what I meant precisely was thus : if after receiving numerous

 complaints from your users and your boss that your application is
 misbehaving; after an in-depth review of the Apache httpd and tomcat
 on-line documentation; after a level-headed discussion of the issue with
 a
 group of independent experts; after

Re: [OT] timeout

2014-04-06 Thread Vicky B
*May I suggest Reading The Fine Manual for your particular firewallwould
be preferable to asking random non-psychic strangers?*



The question i asked was generic one every firewall have some common
fucntionality .
I hope you have control on your tongue next time you reply.


On Sun, Apr 6, 2014 at 3:00 AM, Hassan Schroeder hassan.schroe...@gmail.com
 wrote:

 On Sat, Apr 5, 2014 at 8:35 AM, Vicky B vickyb2...@gmail.com wrote:

   The problem is solved now .

 Erm, well. Perhaps for some definition of solved...

  I had no clue that firewall would drop the connection if it does not
  recieve response within stiplulated time.
  Can i increase this timeout period ?

 May I suggest Reading The Fine Manual for your particular firewall
 would be preferable to asking random non-psychic strangers?

  if firewall was not there then my app would i worked properly ?

 Maybe, maybe not; turn it off and see what happens. Or set up a
 test environment without one and compare.

 --
 Hassan Schroeder  hassan.schroe...@gmail.com
 http://about.me/hassanschroeder
 twitter: @hassan

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




-- 



*Thanks  Regards Vickyb*


Re: [OT] timeout

2014-04-08 Thread Vicky B
If you want to learn never hesitate to ask a question no mater how dumb it
is .
As long as owners of this forum have no problem with my question , i will
continue to ask .I dont have to listen to you.


On Mon, Apr 7, 2014 at 10:44 PM, Hassan Schroeder 
hassan.schroe...@gmail.com wrote:

 On Sun, Apr 6, 2014 at 9:24 PM, Vicky B vickyb2...@gmail.com wrote:

  The question i asked was generic one every firewall have some common
  fucntionality .

 For someone who previously had no clue that firewall would drop
 the connection you assert that with a great deal of certainty.

 In any case, the docs for *your firewall* remains the best place to
 find the answer to your question.

  I hope you have control on your tongue next time you reply.

 I hope you stop asking unanswerably vague questions.

 Yet I suspect disappointment lies over that horizon.

 --
 Hassan Schroeder  hassan.schroe...@gmail.com
 http://about.me/hassanschroeder
 twitter: @hassan

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




-- 



*Thanks  Regards Vickyb*


tomcat 8 startup issue

2015-11-17 Thread Vicky B
Hi All,

I downloaded latest tomcat 8.20 version zip  and extracted in my local. I
have java 7 in my local machine . When i am trying to run tomecat in
eclipse i get below stack trace

java.lang.NoClassDefFoundError: org/apache/tomcat/util/digester/Rule
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:268)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.ClassNotFoundException:
org.apache.tomcat.util.digester.Rule
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more


can anybody help me deal with this problem . I hope setting catalina_home
is not mandatory

-- 



*Thanks & Regards Vickyb*


Re: tomcat 8 startup issue

2015-11-18 Thread Vicky B
Hi Christopher,

I deleted existing tomcat and re-extracted and deployed it worked.Thanks.

On Wed, Nov 18, 2015 at 2:46 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Vicky,
>
> On 11/17/15 7:41 AM, Vicky B wrote:
> > I downloaded latest tomcat 8.20 version zip
>
> Latest Tomcat 8 is 8.0.28.
>
> >  and extracted in my local. I
> > have java 7 in my local machine . When i am trying to run tomecat in
> > eclipse i get below stack trace
> >
> > java.lang.NoClassDefFoundError: org/apache/tomcat/util/digester/Rule
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> > at java.lang.Class.getConstructor0(Unknown Source)
> > at java.lang.Class.newInstance(Unknown Source)
> > at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:268)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.tomcat.util.digester.Rule
> > at java.net.URLClassLoader$1.run(Unknown Source)
> > at java.net.URLClassLoader$1.run(Unknown Source)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > ... 6 more
> >
> >
> > can anybody help me deal with this problem . I hope setting catalina_home
> > is not mandatory
>
> How are you launching Tomcat?
>
> It looks like you have broken your installation right out of the box.
>
> -chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 



*Thanks & Regards Vickyb*


Tomcat Xml parser issue

2017-11-16 Thread Vicky B
Hi All,

I have application which is using spring , ESAPI and oracle xmlparserv2.jar
, this application works fine in my local tomcat on windows  but when i
deployed in linux server with linux based apache tomcat i got below error
when spring container  was trying to parse  application specific xmls

org.apache.catalina.core.StandardContext.listenerStart Exception sending
context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanDefinitionStoreException: Parser
configuration exception parsing XML from class path resource
[spring/spring-context.xml]; nested exception is
javax.xml.parsers.ParserConfigurationException: Unable to validate using
XSD: Your JAXP provider [oracle.xml.jaxp.JXDocumentBuilderFactory@526ad194]
does not support XML Schema. Are you running on Java 1.4 with Apache
Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.


when i removed xmlparserv2.jar from my war file the application worked fine
, what is the issue is this due to class loading issue or could be possible
reason for this issue . Does tomcat provide xml parser which spring loads.
-- 



*Thanks & Regards Vickyb*


Re: Tomcat Xml parser issue

2017-11-16 Thread Vicky B
Thanks but the same war works fine is WebSphere and tomcat on Windows it is
just tomcat provided by  Redhat which work different i.e it throws the
exception

On Nov 16, 2017 11:39 PM, "Christopher Schultz" <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Vicky,
>
> On 11/16/17 12:24 PM, Vicky B wrote:
> > It is XML parser (DOM and SAX ) from oracle (doc
> > <https://docs.oracle.com/cd/B10501_01/appdev.920/a96609/arj_xmlparserv
> 2.htm>)
> >
> >
> .
>
> Why do you need a custom XML parser? Why not simply use the one
> bundled with the JRE?
>
> > Why is tomcat using XMLparserv2
>
> Where is the xmlparserv2.jar file? Some badly-behaved libraries
> install themselves as the "system" parser when they are used even if
> they aren't being loaded by the system or application (which doesn't
> mean YOUR application) ClassLoader. If that happens, you can get weird
> problems like this.
>
> > tomcat we have in linux machine is from redhat . Why does tomcat
> > downloaded from apache tomcat site work different form the one
> > provided by REDHat.
>
> Package managers often make adjustments that make sense for their
> environments. I suspect that this problem has less to do with RedHat's
> Tomcat package and more to do with how you deploy your application,
> its libraries, etc.
>
> > how does class loading work in tomcat.
>
> Tomcat sets up a ClassLoader for itself to work in. For each webapp, a
> separate ClassLoader is created for them to work in with the Tomcat
> server ClassLoader as the parent. But the webapp's ClassLoader is a
> "child-first" ClassLoader meaning that classes and libraries bundled
> with the application are preferred when code is executing in the
> application's context.
>
> If you had told us your Tomcat version (or anything else about your
> environment), we might have been able to help more, but you aren't
> providing much in the way of information.
>
> Assuming Tomcat 8.0 (because why not?), here is the explanation for
> how class loading works in Tomcat. Almost as if someone was /trying/
> to make that information available for people looking for it.
>
> https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html
>
> - -chris
>
> > On Thu, Nov 16, 2017 at 8:15 PM, Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> > Vicky,
> >
> > On 11/16/17 6:53 AM, Vicky B wrote:
> >>>> Hi All,
> >>>>
> >>>> I have application which is using spring , ESAPI and oracle
> >>>> xmlparserv2.jar , this application works fine in my local
> >>>> tomcat on windows  but when i deployed in linux server with
> >>>> linux based apache tomcat i got below error when spring
> >>>> container  was trying to parse  application specific xmls
> >>>>
> >>>> org.apache.catalina.core.StandardContext.listenerStart
> >>>> Exception sending context initialized event to listener
> >>>> instance of class
> >>>> org.springframework.web.context.ContextLoaderListener
> >>>>
> >>>> org.springframework.beans.factory.BeanDefinitionStoreException:
> >>>>
> >>>>
> Parser configuration exception parsing XML from class path
> >>>> resource [spring/spring-context.xml]; nested exception is
> >>>> javax.xml.parsers.ParserConfigurationException: Unable to
> >>>> validate using XSD: Your JAXP provider
> >>>> [oracle.xml.jaxp.JXDocumentBuilderFactory@526ad194] does not
> >>>> support XML Schema. Are you running on Java 1.4 with Apache
> >>>> Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD
> >>>> support.
> >>>>
> >>>>
> >>>> when i removed xmlparserv2.jar from my war file the
> >>>> application worked fine , what is the issue is this due to
> >>>> class loading issue or could be possible reason for this
> >>>> issue . Does tomcat provide xml parser which spring loads.
> >
> > What is xmlparserv2.jar?
> >
> > -chris
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> >
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Co

Re: Tomcat Xml parser issue

2017-11-16 Thread Vicky B
It is XML parser (DOM and SAX ) from oracle (doc
<https://docs.oracle.com/cd/B10501_01/appdev.920/a96609/arj_xmlparserv2.htm>)
.  Why is tomcat using XMLparserv2  , tomcat we have in linux machine is
from redhat . Why does tomcat downloaded from apache tomcat site work
different form the one provided by REDHat . how does class loading work in
tomcat.

On Thu, Nov 16, 2017 at 8:15 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Vicky,
>
> On 11/16/17 6:53 AM, Vicky B wrote:
> > Hi All,
> >
> > I have application which is using spring , ESAPI and oracle
> > xmlparserv2.jar , this application works fine in my local tomcat on
> > windows  but when i deployed in linux server with linux based
> > apache tomcat i got below error when spring container  was trying
> > to parse  application specific xmls
> >
> > org.apache.catalina.core.StandardContext.listenerStart Exception
> > sending context initialized event to listener instance of class
> > org.springframework.web.context.ContextLoaderListener
> >
> > org.springframework.beans.factory.BeanDefinitionStoreException:
> > Parser configuration exception parsing XML from class path
> > resource [spring/spring-context.xml]; nested exception is
> > javax.xml.parsers.ParserConfigurationException: Unable to validate
> > using XSD: Your JAXP provider
> > [oracle.xml.jaxp.JXDocumentBuilderFactory@526ad194] does not
> > support XML Schema. Are you running on Java 1.4 with Apache
> > Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD
> > support.
> >
> >
> > when i removed xmlparserv2.jar from my war file the application
> > worked fine , what is the issue is this due to class loading issue
> > or could be possible reason for this issue . Does tomcat provide
> > xml parser which spring loads.
>
> What is xmlparserv2.jar?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAloNpJQdHGNocmlzQGNo
> cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFjMzBAAnGkUGwrItoDMyqhU
> 2Q4LEOe6/dUW1ZdixIGztY87r7e3r0Q0BAGhFD4bS6NMRjS1XwG1trUKYPiIyp1Q
> DUScFZfa3kSBnpbxHtdYTSls91LZq5C5uo/sfDh7zmJ1asWmO4WdfcdaBJIAYl1I
> XyEpLqGHKHiGBpbpAzsKiI94TBJWL5RXoOaEcXxWms1z6T+x9yO0uwdbKVGEasjY
> cMpJlmwjq7dJyglttQ+hsEUfpXyJ6BsregRQwvC2/EGrQgbZQTMpVTUTR3Qyw3NX
> sjSiU1lZyXO3gBncooqNGiR2AJG2w8OZkMVyZGh/c6qj+ZJf/1dene7DA+7VOjmZ
> 2NrqDH1mhm2S0OXrU+/poOEnUS6324J2Hqu4Fz5M5rUPaKqNaZd/BKeD8YbxgHiz
> t1Fr9mYIXkq+NVZuAkDjQdybwZ/cwdnTk73PMRX3v6StE5XDLxAkHs/djOgl8cWB
> Spv5Ri23rufbv5mcWPQep2wnR6l2OGb6w3C1v6wv93VS06Ex/dLGqxZYukllxqzW
> QSEFC1DRvYsAVLjvTM2nKSKwgFR/YAlvQ2FDuulfevE8aU0hMQ8E4AgZc/oP4SlS
> fF0EJ8LStp75ZHlFYfCGLHVmhCiZFuCJOjCyiZt87jfHDerTHoxjRZMIpAI51Lxd
> oYbq3v/0qYfAV0jqClo0SM9u/8s=
> =ivJQ
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 



*Thanks & Regards Vickyb*


Password Protected

2018-01-30 Thread Vicky B
Hi ,

Can i check if (xlx,xlsx, doc )  file is password protected through apache
poi and can i use apache PDFBOX  to check if PDF file is password protected.

-- 



*Thanks & Regards Vickyb*