Re: Javamelody and Struts

2012-05-02 Thread Miguel González Castaños

You asked the Tomcat users' group, not the Javamelody users' group:
did you expect to find many Javamelody experts around here?
The author is around and some other users too, since the recommendation 
of using this software actually came from this user group.


Also in the beginning I thought It was a Tomcat or Struts issue

Sorry if my questions bothered you

Miguel


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



Re: Javamelody and Struts

2012-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 5/1/12 6:17 PM, Miguel González Castaños wrote:
> On 28/04/2012 22:50, evernat wrote:
>> Then, there is an issue with Tomcat 5.5, only if you use
>> javamelody v1.36. See
>> http://code.google.com/p/javamelody/issues/detail?id=207 It will
>> be fixed in v1.37 soon.
> 
> That was the issue, we could have started with that :-)

You asked the Tomcat users' group, not the Javamelody users' group:
did you expect to find many Javamelody experts around here?

> Using v1.35 worked great. I'm even using the collector of version
> 1.36 and it works together with the javamelody.jar from v1.35.

Glad to see you got things working.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+hRlMACgkQ9CaO5/Lv0PC1qQCgpOd7OtspjGqz3jEao5fX5FbY
zmUAnR2iWrnh3racxnkPxks0LIiUhfOb
=3Q2H
-END PGP SIGNATURE-

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



Re: Javamelody and Struts

2012-05-01 Thread Miguel González Castaños

On 28/04/2012 22:50, evernat wrote:

Hi Miguel,

First, javamelody.war is *optional*. I suggest to try javamelody without
using it.
You may read the user guide for help with this:
http://code.google.com/p/javamelody/wiki/UserGuide
(if you have an exception, please copy the complete stack-trace)

Then, there is an issue with Tomcat 5.5, only if you use javamelody v1.36.
See http://code.google.com/p/javamelody/issues/detail?id=207
It will be fixed in v1.37 soon.



That was the issue, we could have started with that :-)

Using v1.35 worked great. I'm even using the collector of version 1.36 
and it works together with the javamelody.jar from v1.35.


Thanks for the answer,

Miguel

This message and any attachments are intended for the use of the addressee or 
addressees only. The unauthorised disclosure, use, dissemination or copying 
(either in whole or in part) of its content is not permitted. If you received 
this message in error, please notify the sender and delete it from your system. 
Emails can be altered and their integrity cannot be guaranteed by the sender.

Please consider the environment before printing this email.


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



Re: Javamelody and Struts

2012-04-28 Thread evernat
Hi Miguel,

First, javamelody.war is *optional*. I suggest to try javamelody without
using it.
You may read the user guide for help with this:
http://code.google.com/p/javamelody/wiki/UserGuide
(if you have an exception, please copy the complete stack-trace)

Then, there is an issue with Tomcat 5.5, only if you use javamelody v1.36.
See http://code.google.com/p/javamelody/issues/detail?id=207
It will be fixed in v1.37 soon.

Emeric


Miguel González Castaños wrote
> 
> Start over again from scratch.
> 
> Same application running in Tomcat 6 but HTTP works fine using a 
> javamelody.war deployed war that I access as a central container of the 
> monitoring. I can't get access, however, to 
> http://myweb/mycontext/monitoring still in this Tomcat 6 server.
> 
> Same webapp in Tomcat 5.5, I can't add the listener lines without 
> breaking the Struts redirects configured in struts-config.xml
> 
> Where should I add the monitoring code and where?
> 
> Thanks,
> 
> Miguel
> 


--
View this message in context: 
http://tomcat.10.n6.nabble.com/Javamelody-and-Struts-tp4884442p4937283.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

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



Re: Javamelody and Struts

2012-04-28 Thread Miguel González Castaños

On 23/04/2012 22:00, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/23/12 3:57 PM, Miguel González Castaños wrote:

On 16/04/2012 12:43, Darryl Lewis wrote:

Make sure the monitoring code is before the struts call.

Start over again from scratch.

Same application running in Tomcat 6 but HTTP works fine using a 
javamelody.war deployed war that I access as a central container of the 
monitoring. I can't get access, however, to 
http://myweb/mycontext/monitoring still in this Tomcat 6 server.


Same webapp in Tomcat 5.5, I can't add the listener lines without 
breaking the Struts redirects configured in struts-config.xml


Where should I add the monitoring code and where?

Thanks,

Miguel

This message and any attachments are intended for the use of the addressee or 
addressees only. The unauthorised disclosure, use, dissemination or copying 
(either in whole or in part) of its content is not permitted. If you received 
this message in error, please notify the sender and delete it from your system. 
Emails can be altered and their integrity cannot be guaranteed by the sender.

Please consider the environment before printing this email.


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



Re: Javamelody and Struts

2012-04-27 Thread Miguel González Castaños

On 26/04/2012 15:51, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/26/12 5:58 AM, Miguel González Castaños wrote:

On 26/04/2012 03:58, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Miguel,

On 4/25/12 6:24 PM, Miguel González Castaños wrote:

Please post your SSLconfiguration (cleansed of
any passwords).

By the way, double checking the info from my web browser I get this
is a verisign class 3 secure server G3

It looks like you were using the "EV" intermediate certificates
before. This page[1] says that C3G3 certs are not frequently used
except for client certificates... is that what you've got?

[1] http://www.verisign.com/support/roots.html


I'm sorry but I come from the Apache world and I'm pretty new to
Tomcat. Also I have inherited this server and the configuration is
messy.

When you use Java, you generally have to work with keystores. It's
just a file full of keys and certificates. Think of a Java keystore as
all of the following httpd directives mashed together into a single
binary entity:

   SSLCertificateKeyFile
   SSLCertificateFile
   SSLCertificateChainFile
   SSLCACertificateFile

Also, you have to use an "alias" that Tomcat uses (it's "tomcat") as
the alias for the certificate to actually use for the server (as
opposed to any other certificates you might have in the keystore).


Maybe I'm wrong but should I add the CAcert somewhere in the SSL
connector?

There's no place to do that: the whole chain must be in the keystore,
including the CA root all the way down to your own certificate. You
may be able to get away with not having the very top-root CA
certificate... I haven't worked too much with Java keystores so it's
possible that there is a set of root, trusted certificates that are
inherited by all keystores, but there are many ways to
create/configure a ServerSocketFactory, so it's probably possible to
set one up both with or without that globally-recognized set of root
CA certs (i.e. those trusted by the JVM implicitly).

If you are getting this error in Javamelody, then you need to
configure Javamelody properly -- this isn't a Tomcat thing if web
browsers can connect properly to Tomcat via HTTPS.

Thanks for your answers, they have lead me to (partly) the solution.

I found some clues here:

http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=4164840&prodTypeId=18964&objectID=c03023432 
<http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=4164840&prodTypeId=18964&objectID=c03023432>


I didn't have to add the certificate to the tomcat keystore, but to the 
java keystore of the JRE


Now I get a javamelody error reporting the app hasn't been configured to 
use javamelody, so no more SSL handshake errors


Many thanks,

Miguel



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



Re: Javamelody and Struts

2012-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/26/12 5:58 AM, Miguel González Castaños wrote:
> On 26/04/2012 03:58, Christopher Schultz wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
>> 
>> Miguel,
>> 
>> On 4/25/12 6:24 PM, Miguel González Castaños wrote:
>>>> Please post your SSL   configuration (cleansed of
>>>> any passwords).
> By the way, double checking the info from my web browser I get this
> is a verisign class 3 secure server G3

It looks like you were using the "EV" intermediate certificates
before. This page[1] says that C3G3 certs are not frequently used
except for client certificates... is that what you've got?

[1] http://www.verisign.com/support/roots.html

> I'm sorry but I come from the Apache world and I'm pretty new to
> Tomcat. Also I have inherited this server and the configuration is
> messy.

When you use Java, you generally have to work with keystores. It's
just a file full of keys and certificates. Think of a Java keystore as
all of the following httpd directives mashed together into a single
binary entity:

  SSLCertificateKeyFile
  SSLCertificateFile
  SSLCertificateChainFile
  SSLCACertificateFile

Also, you have to use an "alias" that Tomcat uses (it's "tomcat") as
the alias for the certificate to actually use for the server (as
opposed to any other certificates you might have in the keystore).

> Maybe I'm wrong but should I add the CAcert somewhere in the SSL
> connector?

There's no place to do that: the whole chain must be in the keystore,
including the CA root all the way down to your own certificate. You
may be able to get away with not having the very top-root CA
certificate... I haven't worked too much with Java keystores so it's
possible that there is a set of root, trusted certificates that are
inherited by all keystores, but there are many ways to
create/configure a ServerSocketFactory, so it's probably possible to
set one up both with or without that globally-recognized set of root
CA certs (i.e. those trusted by the JVM implicitly).

If you are getting this error in Javamelody, then you need to
configure Javamelody properly -- this isn't a Tomcat thing if web
browsers can connect properly to Tomcat via HTTPS.

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

iEYEARECAAYFAk+ZUt4ACgkQ9CaO5/Lv0PDr1ACgrTdE7YioyGAbGGUU6wzJJOSL
vFsAoI1pjrU1YPs/hH4QMGaWYSlDLEzN
=47Nf
-END PGP SIGNATURE-

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



Re: Javamelody and Struts

2012-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/26/12 3:35 AM, Miguel González Castaños wrote:
>> If no web browser reports the server certificate as not valid,
>> then what's the problem?
>> 
> From my original email:
> 
> "Now that I'm trying to configure javamelody in Tomcat 5 with HTTPS
> I get the following error when I try to add the context and the
> URL: javamelody avax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target."

So this is an error you get from Javamelody? I thought you were
getting this on the server you were monitoring (i.e. the main webapp,
not javamelody).

> I'm trying to add my context and the URL for my webapp in the
> javamelody application:
> 
> http://myweb.com/javamelody/?

Forgive my ignorance (I have no experience with Javamelody), but is
this how you add a webapp to javamelody for monitoring?

> I get two fields and an Add button to do that. In my tests I was
> able to do add a monitor for my webapp if it uses the HTTP protocol
> but not in the production system where it uses HTTPS.
> 
> The question is, how do I know that I have added the right
> intermediate certs from verisign?

I thought you needed to configure your own Tomcat server to *use* an
SSL certificate. It seems that you were already doing that without a
problem (because most clients seem to be happy with the certificate
chain presented by the server).

If Javamelody won't connect, it's probably because Javamelody is using
some keystore that doesn't have the intermediate certificates that I
was discussing. You should check the Javamelody documentation for what
keystore it uses, or how it can be configured to use the keystore of
your choice.

At this point, I think you need to go to the Javamelody folks and ask
over there: this does not seem to be a Tomcat-related problem at all.

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

iEYEARECAAYFAk+ZULwACgkQ9CaO5/Lv0PAKhwCgixeUlDkPQFiXg+k2AqxfUkPL
p0QAnRPmbpcTDGYJAsH93n4x6r3ZZdvO
=l5nQ
-END PGP SIGNATURE-

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



Re: Javamelody and Struts

2012-04-26 Thread Miguel González Castaños

On 26/04/2012 03:58, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/25/12 6:24 PM, Miguel González Castaños wrote:

Please post your SSL   configuration (cleansed of any
passwords).
By the way, double checking the info from my web browser I get this is a 
verisign class 3 secure server G3


I'm sorry but I come from the Apache world and I'm pretty new to Tomcat. 
Also I have inherited this server and the configuration is messy.


Maybe I'm wrong but should I add the CAcert somewhere in the SSL connector?

Miguel

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



Re: Javamelody and Struts

2012-04-26 Thread Miguel González Castaños



Please post your SSL   configuration (cleansed of any
passwords).

   acceptCount="100" scheme="https" secure="true" 
keystorePass="***"
   keystoreFile="/opt/tomcat5/certs/tcc" 
keyAlias="importkey"

   clientAuth="false" sslProtocol="TLS" compression="500"
   
compressableMimeType="text/html,text/xml,text/plain,application/octet-stream" 
/>



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



Re: Javamelody and Struts

2012-04-26 Thread Miguel González Castaños

If no web browser reports the server certificate as not valid, then
what's the problem?


From my original email:

"Now that I'm trying to configure javamelody in Tomcat 5 with HTTPS I 
get the following

error when I try to add the context and the URL:
 javamelody avax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to 
find valid certification path to requested target."


I'm trying to add my context and the URL for my webapp in the javamelody 
application:


http://myweb.com/javamelody/?

I get two fields and an Add button to do that. In my tests I was able to 
do add a monitor for my webapp if it uses the HTTP protocol but not in 
the production system where it uses HTTPS.


The question is, how do I know that I have added the right intermediate 
certs from verisign?


Regards,

Miguel

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



Re: Javamelody and Struts

2012-04-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/25/12 6:24 PM, Miguel González Castaños wrote:
>> Please post your SSL  configuration (cleansed of any 
>> passwords).

??

>> Finally, you didn't post your original stack trace.

??

>> Since this is happening on the server-side, it's either a
>> problem during startup or during client-certificate verification.
>> Since you mentioned the "site certificate", I assume you are
>> having problems with your server's SSL certificate and not a
>> client certificate being presented by a remote client, right?
> 
> I'm not sure what you mean with the server and client certificates.
> No web browser reports the server certificate as no valid.

If no web browser reports the server certificate as not valid, then
what's the problem?

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

iEYEARECAAYFAk+Yq6oACgkQ9CaO5/Lv0PCsiQCdEEo6EhFCXTnlKUCDdfN2wGaZ
yZ4Ani22HHlcMXCot6+PzLOeMYIMY9p3
=QE9L
-END PGP SIGNATURE-

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



Re: Javamelody and Struts

2012-04-25 Thread Miguel González Castaños

Do those certificates match the type of certificate that you have?
Last time I checked, VeriSign had a whole set of intermediate
certificates and you need the ones that match the type of certificate
you have (EV versus whatever the other flavors they have are).

Which other flavors? How do I know?



keytool -import -trustcacerts -alias EV_root -keystore
/opt/tomcat5/certs/tcc -file veriCA1.cer

Is /opt/tomcat5/certs/tcc the file you have configured in Tomcat?

It's the keystore and yes, configured in tomcat


Please post your SSL  configuration (cleansed of any
passwords).

Finally, you didn't post your original stack trace. Since this is
happening on the server-side, it's either a problem during startup or
during client-certificate verification. Since you mentioned the "site
certificate", I assume you are having problems with your server's SSL
certificate and not a client certificate being presented by a remote
client, right?
I'm not sure what you mean with the server and client certificates. No 
web browser reports the server certificate as no valid.


Can you show me what this command returns:

$ keytool -list -keystore /opt/tomcat5/certs/tcc -v




Your keystore contains 3 entries

Alias name: evintermediate
Creation date: Apr 24, 2012
Entry type: trustedCertEntry

Owner: CN=VeriSign Class 3 Secure Server CA - G3, OU=Terms of use at 
https://www.verisign.com/rpa (c)10, OU=VeriSign Trust Network, 
O="VeriSign, Inc.", C=US
Issuer: CN=VeriSign Class 3 Public Primary Certification Authority - G5, 
OU="(c) 2006 VeriSign, Inc. - For authorized use only", OU=VeriSign 
Trust Network, O="VeriSign, Inc.", C=US

Serial number: 6ecc7aa5a7032009b8cebcf4e952d491
Valid from: Mon Feb 08 01:00:00 CET 2010 until: Sat Feb 08 00:59:59 CET 2020
Certificate fingerprints:
 MD5:  3C:48:42:0D:FF:58:1A:38:86:BC:FD:41:D4:8A:41:DE
 SHA1: 5D:EB:8F:33:9E:26:4C:19:F6:68:6F:5F:8F:32:B5:4A:4C:46:B4:76


***
***


Alias name: ev_root
Creation date: Apr 24, 2012
Entry type: trustedCertEntry

Owner: CN=VeriSign Class 3 Public Primary Certification Authority - G5, 
OU="(c) 2006 VeriSign, Inc. - For authorized use only", OU=VeriSign 
Trust Network, O="VeriSign, Inc.", C=US
Issuer: OU=Class 3 Public Primary Certification Authority, O="VeriSign, 
Inc.", C=US

Serial number: 250ce8e030612e9f2b89f7054d7cf8fd
Valid from: Wed Nov 08 01:00:00 CET 2006 until: Mon Nov 08 00:59:59 CET 2021
Certificate fingerprints:
 MD5:  F9:1F:FE:E6:A3:6B:99:88:41:D4:67:DD:E5:F8:97:7A
 SHA1: 32:F3:08:82:62:2B:87:CF:88:56:C6:3D:B8:73:DF:08:53:B4:DD:27


***
***


Alias name:
Creation date: Feb 24, 2012
Entry type: keyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=www.mycompany.com, OU=Terms of use at www.verisign.com/rpa 
(c)05, OU=Comercial, O="My OU  S.L.", L=My city, ST=Madrid, C=ES
Issuer: CN=VeriSign Class 3 Secure Server CA - G3, OU=Terms of use at 
https://www.verisign.com/rpa (c)10, OU=VeriSign Trust Network, 
O="VeriSign, Inc.", C=US

Serial number: 7afc6539f4e816f7fe6b65f47af0
Valid from: Sat Feb 11 01:00:00 CET 2012 until: Fri Apr 12 01:59:59 CEST 
2013

Certificate fingerprints:



***
***

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



Re: Javamelody and Struts

2012-04-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/25/12 4:09 PM, Miguel González Castaños wrote:
> I've downloaded the certificates as veriCA1.cer and veriCA2.cer and
> run:

Do those certificates match the type of certificate that you have?
Last time I checked, VeriSign had a whole set of intermediate
certificates and you need the ones that match the type of certificate
you have (EV versus whatever the other flavors they have are).

> keytool -import -trustcacerts -alias EV_root -keystore 
> /opt/tomcat5/certs/tcc -file veriCA1.cer

Is /opt/tomcat5/certs/tcc the file you have configured in Tomcat?

Please post your SSL  configuration (cleansed of any
passwords).

Finally, you didn't post your original stack trace. Since this is
happening on the server-side, it's either a problem during startup or
during client-certificate verification. Since you mentioned the "site
certificate", I assume you are having problems with your server's SSL
certificate and not a client certificate being presented by a remote
client, right?

Can you show me what this command returns:

$ keytool -list -keystore /opt/tomcat5/certs/tcc -v

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

iEYEARECAAYFAk+Yd2UACgkQ9CaO5/Lv0PDUcgCgg90suQAZyF1XEivzFJ/8kB5g
8bAAoI+2TDx6N/WWegOmFYY1caiwvrbC
=Ky/W
-END PGP SIGNATURE-

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



Re: Javamelody and Struts

2012-04-25 Thread Miguel González Castaños

On 23/04/2012 23:35, Miguel González Castaños wrote:

On 23/04/2012 23:00, Miguel González Castaños wrote:

Have you imported all of the "intermediate" certificates from
VeriSign. I think that for some SSL certificates, you need *two*
intermediate certificates from VeriSign.
No, I didn't know that I had to do that. Where can I download those 
intermediate certificates?


Many thanks for the hint

I found them here I believe

http://www.verisign.com/support/verisign-intermediate-ca/secure-site-intermediate/index.html 



I will give it a try

I've downloaded the certificates as veriCA1.cer and veriCA2.cer and run:

keytool -import -trustcacerts -alias EV_root -keystore 
/opt/tomcat5/certs/tcc -file veriCA1.cer


keytool -import -trustcacerts -alias EVIntermediate -keystore 
/opt/tomcat5/certs/tcc -file veriCA2.cer


after that I restarted Tomcat.

Unfortunately I'm getting the same error

Miguel

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



Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños

On 23/04/2012 23:00, Miguel González Castaños wrote:

Have you imported all of the "intermediate" certificates from
VeriSign. I think that for some SSL certificates, you need *two*
intermediate certificates from VeriSign.
No, I didn't know that I had to do that. Where can I download those 
intermediate certificates?


Many thanks for the hint

I found them here I believe

http://www.verisign.com/support/verisign-intermediate-ca/secure-site-intermediate/index.html

I will give it a try

Miguel

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



Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños

Have you imported all of the "intermediate" certificates from
VeriSign. I think that for some SSL certificates, you need *two*
intermediate certificates from VeriSign.
No, I didn't know that I had to do that. Where can I download those 
intermediate certificates?


Many thanks for the hint

Miguel

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



Re: Javamelody and Struts

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miguel,

On 4/23/12 3:57 PM, Miguel González Castaños wrote:
> On 16/04/2012 12:43, Darryl Lewis wrote:
>> Make sure the monitoring code is before the struts call.
>> 
>> On 16/04/12 5:38 PM, "Miguel González Castaños" 
>>   wrote:
>> 
>>> On 16/04/2012 09:34, Debraj Mallick wrote:
>>>> hi there,
>>>> 
>>>> to access use :*http:monitoring*
>>>> 
>>>> link: 
>>>> *http://code.google.com/p/javamelody/wiki/UserGuide#3._First_results*
>>>
>>>> 
Don't get me wrong, but what does it matter the access URL if my webapp
>>> doesn't even work?
> Hi, I was able to configure javamelody in Tomcat 6 with a HTTP
> protocol in a virtual machine.
> 
> Now that I'm trying to configure javamelody in Tomcat 5 with HTTPS
> I get the following error when I try to add the context and the
> URL: javamelody avax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target.
> 
> However the site certificate is signed by Verisign. What we are
> doing wrong?

Have you imported all of the "intermediate" certificates from
VeriSign. I think that for some SSL certificates, you need *two*
intermediate certificates from VeriSign.

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

iEYEARECAAYFAk+VtMkACgkQ9CaO5/Lv0PD4YACgnOcGKyNgapJbRQFKa0EYtyR+
59wAn2K4dmgvh/cbJleQY6kt66eyUEgo
=pLMj
-END PGP SIGNATURE-

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



Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños

On 16/04/2012 12:43, Darryl Lewis wrote:

Make sure the monitoring code is before the struts call.

On 16/04/12 5:38 PM, "Miguel González Castaños"
  wrote:


On 16/04/2012 09:34, Debraj Mallick wrote:

hi there,

to access use :*http:monitoring*

link:
*http://code.google.com/p/javamelody/wiki/UserGuide#3._First_results*

Don't get me wrong, but what does it matter the access URL if my webapp
doesn't even work?

Hi,
 I was able to configure javamelody in Tomcat 6 with a HTTP protocol in a 
virtual machine.

 Now that I'm trying to configure javamelody in Tomcat 5 with HTTPS I get the 
following
error when I try to add the context and the URL:
 javamelody avax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target.

 However the site certificate is signed by Verisign. What we are doing wrong?

 Regards,

 Miguel


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



Re: Javamelody and Struts

2012-04-16 Thread Darryl Lewis
Make sure the monitoring code is before the struts call.

On 16/04/12 5:38 PM, "Miguel González Castaños"
 wrote:

>On 16/04/2012 09:34, Debraj Mallick wrote:
>> hi there,
>>
>> to access use :*http:monitoring*
>>
>> link: 
>> *http://code.google.com/p/javamelody/wiki/UserGuide#3._First_results*
>Don't get me wrong, but what does it matter the access URL if my webapp
>doesn't even work?
>
>Miguel


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



Re: Javamelody and Struts

2012-04-16 Thread Miguel González Castaños

On 16/04/2012 09:34, Debraj Mallick wrote:

hi there,

to access use :*http:monitoring*

link: 
*http://code.google.com/p/javamelody/wiki/UserGuide#3._First_results*
Don't get me wrong, but what does it matter the access URL if my webapp 
doesn't even work?


Miguel


Re: Javamelody and Struts

2012-04-16 Thread Miguel González Castaños

Dear Debraj,

  I have followed these instructions and I can't figure out where to 
access the monitoring tool.


  On 16/04/2012 07:02, Debraj Mallick wrote:

hi there,

in your web.xml include these

 *
 monitoring
 net.bull.javamelody.MonitoringFilter
 
 
 monitoring
 /*
 
 
 net.bull.javamelody.SessionListener
 *


If I add this alone, my strut webapp doesn't work


and

*
 

 
 
 
 
 

 *
This is supposed to go in the struts config xml file, not in web.xml. 
Anyway It doesn't work either.


also put the jar files in your class path.

Which classpath and which jar files and where?


help link: *
http://code.google.com/p/javamelody/wiki/UserGuide#2._web.xml_file* and *
http://code.google.com/p/javamelody/wiki/UserGuide#12._Struts_2_Actions*
Of course I have followed these instructions but they are not very 
detailed. Also there is no error log or anything that shows me what I'm 
doing wrong. In catalina.out there is no reference at all.


Miguel

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



Re: Javamelody and Struts

2012-04-15 Thread Debraj Mallick
hi there,

in your web.xml include these

*
monitoring
net.bull.javamelody.MonitoringFilter


monitoring
/*


net.bull.javamelody.SessionListener
*

and

   *








*

also put the jar files in your class path.

help link: *
http://code.google.com/p/javamelody/wiki/UserGuide#2._web.xml_file* and *
http://code.google.com/p/javamelody/wiki/UserGuide#12._Struts_2_Actions*


2012/4/16 Miguel González Castaños 

> Dear all,
>
>  Javamelody is supposedly very easy to install for Tomcat but We do have a
> webapp using the Struts framework and I can't figure out how to configure
> Javamelody or get any error log of what I'm doing wrong. The web.xml
> example in the Javamelody is blocking my webapp to work (we use forwarders).
>
>  Regards,
>
>  Miguel
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tomcat.**apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Thanks & Regards,
Debraj Mallick
9674247281


Javamelody and Struts

2012-04-15 Thread Miguel González Castaños

Dear all,

  Javamelody is supposedly very easy to install for Tomcat but We do 
have a webapp using the Struts framework and I can't figure out how to 
configure Javamelody or get any error log of what I'm doing wrong. The 
web.xml example in the Javamelody is blocking my webapp to work (we use 
forwarders).


  Regards,

  Miguel

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



Re: Javamelody

2010-05-24 Thread Konstantin Kolinko
2010/5/24 Emeric Vernat :
>

Looking at catalina.out that you attached in Comment 1 of
http://code.google.com/p/javamelody/issues/detail?id=25
I see the following line:

24-may-2010 17:49:19 org.apache.catalina.core.StandardContext start
GRAVE: Error filterStart

So my guess is that MonitoringFilter.init() failed,
and so MonitoringFilter.destroy() was not called,
thus the timer was not canceled .

Look into your localhost* log. The actual Throwable that was caught in
o.a.c.core.StandardContext.filterStart() is written there.

Best regards,
Konstantin Kolinko

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



Re: Javamelody

2010-05-24 Thread Emeric Vernat

Hi Ozgur and others,

Ok, I am here. Thanks for the issue about this log.

I have tomcat 6.0.26 but I have not reproduced the issue yet.
Yes there is a timer thread in javamelody, and it is correctly canceled 
in the destroy method as can be seen here in the http filter:

http://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/main/java/net/bull/javamelody/MonitoringFilter.java#303

I am available to see what is going on. See you in the issue: 
http://code.google.com/p/javamelody/issues/detail?id=25


bye, Emeric


Le 24/05/2010 14:04, Ozgur Ozdemircili a écrit :

For the record Just opened up a issue. Let`s see how it ends there:

http://code.google.com/p/javamelody/issues/detail?id=25


Thanks.

Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it


On Mon, May 24, 2010 at 1:56 PM, Peter Crowther   

wrote:
 
   

On 24 May 2010 12:48, Ozgur Ozdemircili
wrote:

 

I have installed  Javamelody version 1.15. In my catalina.out there
   

appears
 

error messages:

[...]
   



 

GRAVE: A web application appears to have started a TimerThread named
[javamelody javamelody] via the java.util.Timer API but has failed to
   

stop
 

it. To prevent a memory leak, the timer (and hence the associated thread)
has been forcibly cancelled.

   

[...]

 

Code so clean you could eat off it

   

Your code may be clean, Javamelody's isn't ;-).  Somewhere, it starts a
timer thread and doesn't clear it up.  Tomcat detects this case and cancels
the timer, issuing a warning.  You *could* leave this as-is, but it's
difficult to know what else might be leaking within Javamelody.

You might want to find out how to cancel Javamelody's timer thread, then
use
a lifecycle listener in your webapp to cancel the timer on appropriate
lifecycle events.  Or talk to the Javamelody team to find out how to cancel
the timer at the appropriate time.

- Peter

 
   




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



Re: Javamelody

2010-05-24 Thread Ozgur Ozdemircili
For the record Just opened up a issue. Let`s see how it ends there:

http://code.google.com/p/javamelody/issues/detail?id=25


Thanks.

Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it


On Mon, May 24, 2010 at 1:56 PM, Peter Crowther  wrote:

> On 24 May 2010 12:48, Ozgur Ozdemircili 
> wrote:
>
> > I have installed  Javamelody version 1.15. In my catalina.out there
> appears
> > error messages:
> >
> > [...]
>
>
>
> > GRAVE: A web application appears to have started a TimerThread named
> > [javamelody javamelody] via the java.util.Timer API but has failed to
> stop
> > it. To prevent a memory leak, the timer (and hence the associated thread)
> > has been forcibly cancelled.
> >
> [...]
>
> > Code so clean you could eat off it
> >
>
> Your code may be clean, Javamelody's isn't ;-).  Somewhere, it starts a
> timer thread and doesn't clear it up.  Tomcat detects this case and cancels
> the timer, issuing a warning.  You *could* leave this as-is, but it's
> difficult to know what else might be leaking within Javamelody.
>
> You might want to find out how to cancel Javamelody's timer thread, then
> use
> a lifecycle listener in your webapp to cancel the timer on appropriate
> lifecycle events.  Or talk to the Javamelody team to find out how to cancel
> the timer at the appropriate time.
>
> - Peter
>


Re: Javamelody

2010-05-24 Thread Peter Crowther
On 24 May 2010 12:48, Ozgur Ozdemircili  wrote:

> I have installed  Javamelody version 1.15. In my catalina.out there appears
> error messages:
>
> [...]



> GRAVE: A web application appears to have started a TimerThread named
> [javamelody javamelody] via the java.util.Timer API but has failed to stop
> it. To prevent a memory leak, the timer (and hence the associated thread)
> has been forcibly cancelled.
>
[...]

> Code so clean you could eat off it
>

Your code may be clean, Javamelody's isn't ;-).  Somewhere, it starts a
timer thread and doesn't clear it up.  Tomcat detects this case and cancels
the timer, issuing a warning.  You *could* leave this as-is, but it's
difficult to know what else might be leaking within Javamelody.

You might want to find out how to cancel Javamelody's timer thread, then use
a lifecycle listener in your webapp to cancel the timer on appropriate
lifecycle events.  Or talk to the Javamelody team to find out how to cancel
the timer at the appropriate time.

- Peter


Re: Javamelody

2010-05-24 Thread Mark Thomas

On 24/05/2010 12:48, Ozgur Ozdemircili wrote:

Hi,

I have installed  Javamelody version 1.15. In my catalina.out there appears
error messages:

GRAVE: Error filterStart
24-may-2010 13:46:13 org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/javamelody] debido a errores previos


For the previous errors, look in the localhost log


24-may-2010 13:46:13 org.apache.catalina.loader.WebappClassLoader
clearReferencesStopTimerThread
GRAVE: A web application appears to have started a TimerThread named
[javamelody javamelody] via the java.util.Timer API but has failed to stop
it. To prevent a memory leak, the timer (and hence the associated thread)
has been forcibly cancelled.


javamelody has a memory leak


Mark



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



Javamelody

2010-05-24 Thread Ozgur Ozdemircili
Hi,

I have installed  Javamelody version 1.15. In my catalina.out there appears
error messages:

GRAVE: Error filterStart
24-may-2010 13:46:13 org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/javamelody] debido a errores previos
24-may-2010 13:46:13 org.apache.catalina.loader.WebappClassLoader
clearReferencesStopTimerThread
GRAVE: A web application appears to have started a TimerThread named
[javamelody javamelody] via the java.util.Timer API but has failed to stop
it. To prevent a memory leak, the timer (and hence the associated thread)
has been forcibly cancelled.

What may be the problem?

Thanks.

Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it