Re: Problem regarding Hosting

2011-06-10 Thread adityagoel123

Hello !


Thanks for the Reply !

To your questions My answer is :


1.) Is it a shared server in which you have a user account?
Does this server have Tomcat installed on it?

Ans: Yes It is a shared Server and I have a account over it.
Yes I have installed the tomcat 6.0.32 onto this server at the location 
/usr/local/tomcat. And therefore I am able to access the
http://localhost:8080/.

2.) Why add the "~"?  It usually indicates the path to a user:

Ans: We need it like this only link onto which this application has to be
made workable..


Reply awaited !

aditya

Pid * wrote:
> 
> On 10/06/2011 13:33, adityagoel123 wrote:
>> 
>> I have succesfully deployed a application through .war file on apache
>> server.
> 
> "apache server" usually refers to Apache HTTPD, http://httpd.apache.org.
> 
> This is the mailing list for Apache Tomcat, a Java Application server,
> which does publish web applications in .war format.
> 
>> I am also able to access it through http://10.129.x.x/application on my
>> local machine. 
> 
> Great.
> 
>> Now, I want it to hosted to a web address like
>> www.example.com/~application
> 
> Why add the "~"?  It usually indicates the path to a user:
> 
>  http://people.apache.org/~pidster
> 
>> Currently, www.example.com/~application is pointing to one of the file
>> which
>> is placed(On Server hosting this site) in the location 
>> /var/www/data/index.html
> 
> Is it a shared server in which you have a user account?
> 
> Does this server have Tomcat installed on it?
> 
> 
>> How can I make this particular URL www.example.com/~application point to
>> my
>> new web application ?
>> 
>> please specify the way.
> 
> Follow these instructions:  http://j.mp/lfX9ya
> 
> 
> p
> 
> 
>> Thanks in advance.
>> :working:
>> 
>> 
>> aditya
> 
> 
> 
>  
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-regarding-Hosting-tp31817550p31823094.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



Question on work directory

2011-06-10 Thread Melinda Savoy
Due to a conflict between the cached JSPs in the work directory of a tomcat
container on our app¹s QA Windows 2003 server, does the tomcat service have
to be restarted?
 
Any help would be greatly appreciated.  Thanks.



RE: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Caldarale, Charles R
> From: Rüdiger Herrmann [mailto:rherrm...@eclipsesource.com] 
> Subject: Re: How to cluster two embedded tomcat 7 instances

> thanks for the hint. Here goes the link to the file:
> http://pastebin.com/6K4Ns4Tz

Please consider adding this to the Tomcat Wiki as well.

 - 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: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Rüdiger Herrmann
thanks for the hint. Here goes the link to the file:
  http://pastebin.com/6K4Ns4Tz

- Rüdiger

On Fri, Jun 10, 2011 at 22:35, Pid  wrote:
> On 10/06/2011 21:23, Rüdiger Herrmann wrote:
>> In case someone is interested, the code to programmatically set up a
>> clustered Tomcat instance is attached.p
>
> The list strips attachments unfortunately.  Try Pastebin/GitHub etc
>
>
> p
>
>



-- 
--
EclipseSource
http://eclipsesource.com
Tel: 0721 - 66 47 33 - 0
Fax: 0721 - 66 47 33 29

Innoopract Informationssysteme GmbH
Stephanienstrasse 20, 76133 Karlsruhe, Germany
General Manager: Jochen Krause
Registered Office: Karlsruhe, Commercial Register Mannheim HRB 107883

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



RE: Tomcat shutdown issues

2011-06-10 Thread April Easton
Taking out what I did for the YourKit plug-in didn't help.  Next, I shutdown my 
Eclipse and then started and stopped Tomcat on the server.  The org.eclipse 
threads were still listed in the thread dump.  I recently upgraded B.I.R.T. to 
version 2.2 on Tomcat and it uses osgi jar files.  I'll look to see if there is 
an issue there or if I need to do something else so Tomcat will shutdown 
properly.

Thanks,
April, Systems



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



Re: [OT] Migrated from 6.0.29 to 7.0.10, Now I get "INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined"

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian,

(Resurrecting a thread from the long past that I hadn't noticed until
just now).

On 3/15/2011 7:56 PM, Brian Braun wrote:
> I don't know yet which project are you talking about, but why haven't you
> decided to migrate to JSF 2.0 or Spring MVC, instead of staying with Struts?

Migrating 6 years of S1 code over to another framework is non-trivial.
Neither is running them side-by-side. Since S1 is still supported, we
are still using it. At some point, it would be great to spend a few
months re-architecting the web portion of our software, but it's hard to
justify the expense just now.

> I did my research on JSF and I think it is the
> substitution of Struts

Without knowing a thing about it, I can't comment on how good of a
replacement it would be. I believe S2 supports JSF, so there must be a
reason to use them together. Last I looked, JSF was heavily dependeing
upon JSPs, which we pretty universally eschew around here.

> I mean if you have to [create/start] a new project
> from scratch, there is no point in choosing Struts if JSF already exists.

If I were an independent contractor, all my new projects would be
S2-based (or maybe I'd look into JSF, but certainly move on from S1).

> I would also get a lot of benefits from the other Spring modules, such as
> the transactions, the DBMS access, etc. I know I'm spending time reinventing
> the weel, creating my own objects while Spring has a lot of functionality
> ready to use.

I'm pretty sure that Spring components can be used whether you use
Spring MVC or not. They probably just play very well together.

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

iEYEARECAAYFAk3yg90ACgkQ9CaO5/Lv0PDAKACfWmZZEENOX76HaYSZab43Lb1i
SzQAoKNVz5wdkyVNRdnljhOdi/jyU/4c
=X7xu
-END PGP SIGNATURE-

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



RE: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Adamus, Steven J.
We switched from JSSE to the APR and OpenSSL about 6 months.  We
converted all existing keys and certs to the format required by OpenSSL.
It was not hard.  Some people say it can't be done, but they're wrong.
After 6 months with openSSL, I say it's easier to use than JSSE.  We use
not only server-side certs, we also require client certificate
authentication and perform certificate revocation checking. 

-Original Message-
From: users-return-225336-STEVEN.J.ADAMUS=saic@tomcat.apache.org
[mailto:users-return-225336-STEVEN.J.ADAMUS=saic@tomcat.apache.org]
On Behalf Of Pid
Sent: Friday, June 10, 2011 1:37 PM
To: Tomcat Users List
Subject: Re: My web application to use SSL (JSSE - RSA)

On 10/06/2011 21:29, Patrick Flaherty wrote:
> Hi,
> 
> Is APR/native Connector dramatically faster then Java Nio Blocking 
> Connector or is it marginal ?

APR+SSL is a little faster, if I remember correctly, Chris?

> I'd love faster SSL but all my keys and certs are java based
(keytool).
> Will APR ever support Java SSL ?

No.

> I find Java keytool to be reasonably easy to use. Is OpenSSL as easy 
> to use ?

Yes.


p

> Thanks for any input.
> 
> Pat
> 
> On Jun 10, 2011, at 3:59 PM, Christopher Schultz wrote:
> 
> Charles,
> 
> On 6/10/2011 9:25 AM, Charles Van Damme wrote:
 10-jun-2011 15:14:11 org.apache.catalina.core.AprLifecycleListener 
 init
 INFO: The APR based Apache Tomcat Native library which allows 
 optimal performance in production environments was not found on the
 java.library.path: [...]
> 
> FWIW, that's just an INFO message, but if you are going to be using 
> SSL, you might want to go ahead and install the APR library: your 
> performance will improve measurably. Note that  
> configuration for an APR connector using SSL is completely different 
> if you choose to go this route.
> 
> If you are not going to be using APR, you can disable the APR 
> lifecycle listener because you aren't using it.
> 
 java.security.NoSuchAlgorithmException: RSA SSLContext not 
 available
> 
> As Pid points out, it's pretty obvious that "RSA" is not a valid 
> algorithm in this situation:
> 
 at
sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
 at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
 at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSSLContext(
 JSSESocketFactory.java:490)

> 
> So, it's an SSL configuration problem. Let's look at your SSL
> :
> 
 
 >>> port="443"
maxThreads="150" scheme="https" secure="true"
 SSLEnabled="true"
keystoreFile="C:/Documents and
Settings/Papa/.keystore"
 keystorePass="changeit"
clientAuth="false" sslProtocol="RSA" />
> 
> SO, you have sslProtocol="RSA"... seems like a good place to look. If 
> you check the  documentation, you can see that there are 
> only a few recognized protocols you can choose.
> 
> http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support
> 
> Note that "protocol" refers to the protocol used for SSL, not for any 
> specific cipher, key exchange strategy, etc. Unfortunately, the Tomcat

> documentation does not list all the available protocols, nor should
it:
> the protocols available to you are determined by JVM support.
> 
> The Javadoc for javax.net.ssl.SSLContext.getInstance has a pointer to 
> documentation for "standard names" (which takes you through several 
> hops
> to) here:
> http://download.oracle.com/javase/6/docs/technotes/guides/security/Sta
> ndardNames.html#SSLContext
> 
> 
> Those are the valid ssl protocol names you can choose.
> 
> If you want use only ciphers that use the RSA algorithm (which is 
> really limiting, IMO), you can look up their names here (after 
> scrolling a bit
> downward):
> 
> http://download.oracle.com/javase/6/docs/technotes/guides/security/Sta
> ndardNames.html#jssenames
> 
> 
> Just look for stuff like SSL_DH_DSS_blah_blah_blah.
> 
> Of course, support for a certain algorithm might not be available in 
> your environment. It's best to find out what your JVM supports and use

> that.
> 
> I wrote a short bit of code a while back to determine the supported 
> algorithms and the default cipher suite for an SSLSocketFactory. I'll 
> try to dig it up and post it.
> 
 
 >>> />
> 
> If you aren't using AJP, then disable the extra connector.
> 
 Hoping you are not overwhelmed. Anything else ?
> 
> You had other errors in the log file. After you get SSL working 
> properly, stop Tomcat, delete all your logs and re-launch it. Anything

> that looks like an error should be investigated and fixed.
> 
> Feel free to come back to the list for help on those additional
issues:
> just remember start a new thread if you do.
> 
> -chris
>>
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@t

Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pid,

On 6/10/2011 4:37 PM, Pid wrote:
> On 10/06/2011 21:29, Patrick Flaherty wrote:
>> Hi,
>>
>> Is APR/native Connector dramatically faster then Java Nio Blocking
>> Connector or is it marginal ?
> 
> APR+SSL is a little faster, if I remember correctly, Chris?

I haven't benchmarked SSL configurations, only cleartext HTTP. Both the
APR and NIO connectors were /way/ faster than the BIO connector with
serving static content.

>> I'd love faster SSL but all my keys and certs are java based (keytool).
>> Will APR ever support Java SSL ?
> 
> No.

Converting certs between formats is pretty trivial.

>> I find Java keytool to be reasonably easy to use. Is OpenSSL as easy to
>> use ?
> 
> Yes.

You don't even have to use OpenSSL for anything directly. I like the
APR/SSL configuration better because you don't have to muck-around with
keytool, certificate stores, etc... you just have plain-old PEM files,
just like Apache httpd uses (APR is httpd code, so there you go).

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

iEYEARECAAYFAk3yglMACgkQ9CaO5/Lv0PCRUgCfW0po4Z/BusvAOq9sQOV4QQ5n
4TMAoJeptHzms7bw8/IvQUcW7KURZxuc
=XB/x
-END PGP SIGNATURE-

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



Re: pauses on simple .html pages

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

On 6/9/2011 4:25 PM, tom...@r322.com wrote:
> I have a script setup does a wget hit to docs/config/valve.html every 1
> second. If the wget call takes longer than 1 second it grabs a bunch of
> stats -- iostat, vmstat, top, jstack, last 30 lines of jvm.log.
> 
> A lot of these are caused by GC. However, there are a lot that aren't
> and I am having a hardtime finding a correlation between the stats and
> these timeouts. Looking at the stats I have, does anyone see anything?

Obviously, most of your threads are idle: just three concurrent SOLR
requests if I counted correctly, which should be no problem for
SOLR/Lucene and any hardware made during this century.

My first though after looking at the (lack of) CPU load was that you
might have a bad disk. The iowait times do not support that theory,
though: I think iowait includes all wait time, including weird retries
and stuff like that so it should be much higher than that.

Are you in a position where you can test your disk? How about looking at
syslog to see if the I/O system is flagging read errors or anything like
that. Same with any RAID logs you may have.

Is the disk local or a network share?

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

iEYEARECAAYFAk3ygZsACgkQ9CaO5/Lv0PCdyQCePsK/BzemKyYkxjYdTzSPbu3p
Ah0Anim/0iRDzyCQR99ZIEadZ7tlz6sh
=s0n8
-END PGP SIGNATURE-

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



Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Pid
On 10/06/2011 21:29, Patrick Flaherty wrote:
> Hi,
> 
> Is APR/native Connector dramatically faster then Java Nio Blocking
> Connector or is it marginal ?

APR+SSL is a little faster, if I remember correctly, Chris?

> I'd love faster SSL but all my keys and certs are java based (keytool).
> Will APR ever support Java SSL ?

No.

> I find Java keytool to be reasonably easy to use. Is OpenSSL as easy to
> use ?

Yes.


p

> Thanks for any input.
> 
> Pat
> 
> On Jun 10, 2011, at 3:59 PM, Christopher Schultz wrote:
> 
> Charles,
> 
> On 6/10/2011 9:25 AM, Charles Van Damme wrote:
 10-jun-2011 15:14:11 org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path: [...]
> 
> FWIW, that's just an INFO message, but if you are going to be using SSL,
> you might want to go ahead and install the APR library: your performance
> will improve measurably. Note that  configuration for an APR
> connector using SSL is completely different if you choose to go this
> route.
> 
> If you are not going to be using APR, you can disable the APR lifecycle
> listener because you aren't using it.
> 
 java.security.NoSuchAlgorithmException: RSA SSLContext not available
> 
> As Pid points out, it's pretty obvious that "RSA" is not a valid
> algorithm in this situation:
> 
 at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
 at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
 at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSSLContext(JSSESocketFactory.java:490)

> 
> So, it's an SSL configuration problem. Let's look at your SSL
> :
> 
 
 >>> port="443"
maxThreads="150" scheme="https" secure="true"
 SSLEnabled="true"
keystoreFile="C:/Documents and Settings/Papa/.keystore"
 keystorePass="changeit"
clientAuth="false" sslProtocol="RSA" />
> 
> SO, you have sslProtocol="RSA"... seems like a good place to look. If
> you check the  documentation, you can see that there are only
> a few recognized protocols you can choose.
> 
> http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support
> 
> Note that "protocol" refers to the protocol used for SSL, not for any
> specific cipher, key exchange strategy, etc. Unfortunately, the Tomcat
> documentation does not list all the available protocols, nor should it:
> the protocols available to you are determined by JVM support.
> 
> The Javadoc for javax.net.ssl.SSLContext.getInstance has a pointer to
> documentation for "standard names" (which takes you through several hops
> to) here:
> http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#SSLContext
> 
> 
> Those are the valid ssl protocol names you can choose.
> 
> If you want use only ciphers that use the RSA algorithm (which is really
> limiting, IMO), you can look up their names here (after scrolling a bit
> downward):
> 
> http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#jssenames
> 
> 
> Just look for stuff like SSL_DH_DSS_blah_blah_blah.
> 
> Of course, support for a certain algorithm might not be available in
> your environment. It's best to find out what your JVM supports and use
> that.
> 
> I wrote a short bit of code a while back to determine the supported
> algorithms and the default cipher suite for an SSLSocketFactory. I'll
> try to dig it up and post it.
> 
 
 
> 
> If you aren't using AJP, then disable the extra connector.
> 
 Hoping you are not overwhelmed. Anything else ?
> 
> You had other errors in the log file. After you get SSL working
> properly, stop Tomcat, delete all your logs and re-launch it. Anything
> that looks like an error should be investigated and fixed.
> 
> Feel free to come back to the list for help on those additional issues:
> just remember start a new thread if you do.
> 
> -chris
>>
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
>>

> Patrick Flaherty   

> Rampage Systems Inc.   
> 411 Waverley Oaks Rd.   
> Suite 138
> Waltham, MA. 02452-8405
> 781-891-9400 x239   







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





signature.asc
Description: OpenPGP digital signature


Re: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Pid
On 10/06/2011 21:23, Rüdiger Herrmann wrote:
> In case someone is interested, the code to programmatically set up a
> clustered Tomcat instance is attached.p

The list strips attachments unfortunately.  Try Pastebin/GitHub etc


p



signature.asc
Description: OpenPGP digital signature


Re: [OT] Context Definition Doesn't Work

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 6/10/2011 12:33 AM, Caldarale, Charles R wrote:
> $CATALINA_HOME/webapps/mbp#filePort

FWIW, path names containing a # symbol can wreak havoc on certain APIs
that use URLs to locate resources.

Case in point: Apache Cocoon uses file: URLs to locate files on the
disk. Since the path contains a "#", it is determined to be illegal
because # isn't a valid character in a URL. "No problem", you say, and
change that to "%23" and all will be well. Yes and no. Evidently, Cocoon
specifically decodes the URL one or more times and by the tine it gets
to the component that tries to use it, it's a "#" no matter what you try
to do :(

If you find yourself having similar problems with mbp#filePort as your
deployment directory, you can always have the deployment descriptor
mbp#filePort.xml point to a directory somewhere *outside* Tomcat's
webapps directory and you should avoid that headache.

You will probably never have this problem, but I suffered through it
myself and seek to help others avoid it, or at least understand it.

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

iEYEARECAAYFAk3yf+EACgkQ9CaO5/Lv0PBp2ACfXvB/uvZHh32MgmnwCYwtq2oq
SR0AoJXKhDGlfftq6AZ+aBqxbNehDauD
=JQjg
-END PGP SIGNATURE-

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



Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Patrick Flaherty

Hi,

Is APR/native Connector dramatically faster then Java Nio Blocking  
Connector or is it marginal ?


I'd love faster SSL but all my keys and certs are java based  
(keytool). Will APR ever support Java SSL ?


I find Java keytool to be reasonably easy to use. Is OpenSSL as easy  
to use ?


Thanks for any input.

Pat

On Jun 10, 2011, at 3:59 PM, Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

On 6/10/2011 9:25 AM, Charles Van Damme wrote:
10-jun-2011 15:14:11 org.apache.catalina.core.AprLifecycleListener  
init

INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: [...]


FWIW, that's just an INFO message, but if you are going to be using  
SSL,
you might want to go ahead and install the APR library: your  
performance
will improve measurably. Note that  configuration for an  
APR
connector using SSL is completely different if you choose to go  
this route.


If you are not going to be using APR, you can disable the APR  
lifecycle

listener because you aren't using it.


java.security.NoSuchAlgorithmException: RSA SSLContext not available


As Pid points out, it's pretty obvious that "RSA" is not a valid
algorithm in this situation:


at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSSLContext 
(JSSESocketFactory.java:490)


So, it's an SSL configuration problem. Let's look at your SSL  
:



   keystoreFile="C:/Documents and Settings/ 
Papa/.keystore"

keystorePass="changeit"
   clientAuth="false" sslProtocol="RSA" />


SO, you have sslProtocol="RSA"... seems like a good place to look. If
you check the  documentation, you can see that there are  
only

a few recognized protocols you can choose.

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

Note that "protocol" refers to the protocol used for SSL, not for any
specific cipher, key exchange strategy, etc. Unfortunately, the Tomcat
documentation does not list all the available protocols, nor should  
it:

the protocols available to you are determined by JVM support.

The Javadoc for javax.net.ssl.SSLContext.getInstance has a pointer to
documentation for "standard names" (which takes you through several  
hops

to) here:
http://download.oracle.com/javase/6/docs/technotes/guides/security/ 
StandardNames.html#SSLContext


Those are the valid ssl protocol names you can choose.

If you want use only ciphers that use the RSA algorithm (which is  
really
limiting, IMO), you can look up their names here (after scrolling a  
bit

downward):

http://download.oracle.com/javase/6/docs/technotes/guides/security/ 
StandardNames.html#jssenames


Just look for stuff like SSL_DH_DSS_blah_blah_blah.

Of course, support for a certain algorithm might not be available in
your environment. It's best to find out what your JVM supports and  
use that.


I wrote a short bit of code a while back to determine the supported
algorithms and the default cipher suite for an SSLSocketFactory. I'll
try to dig it up and post it.






If you aren't using AJP, then disable the extra connector.


Hoping you are not overwhelmed. Anything else ?


You had other errors in the log file. After you get SSL working
properly, stop Tomcat, delete all your logs and re-launch it. Anything
that looks like an error should be investigated and fixed.

Feel free to come back to the list for help on those additional  
issues:

just remember start a new thread if you do.

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

iEYEARECAAYFAk3yd5IACgkQ9CaO5/Lv0PCSwQCggfhTML/aJwMtBlw1pVJ+mJIt
rg8AoJOrh9amZcTCiLFrXjZQtFRGQbd0
=fu8H
-END PGP SIGNATURE-

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



Patrick Flaherty

Rampage Systems Inc.
411 Waverley Oaks Rd.   
Suite 138
Waltham, MA. 02452-8405
781-891-9400 x239   







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



Re: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Rüdiger Herrmann
In case someone is interested, the code to programmatically set up a
clustered Tomcat instance is attached.

- Rüdiger

On Fri, Jun 10, 2011 at 10:42, Rüdiger Herrmann
 wrote:
> Martin,
>
> thanks for the pointers. Though, I'd rather like to start with the
> default solution (i.e. something that works out of the box with the
> Tomcat deliverable)
> In the meanwhile, I brought the SimpleTcpCluster to work. I will
> report here soon with some code.
>
> Still, I would be *very* interested in knowing how to use the
> PersistentManager to realize session failover - if it is inteded to
> serve that purpose at all.
>
> Regards
> Rüdiger
>
> On Thu, Jun 9, 2011 at 16:16, Martin Grotzke
>  wrote:
>> Hi,
>>
>> perhaps memcached-session-manager is an option for you:
>> http://code.google.com/p/memcached-session-manager/
>>
>> It has integration tests that show how to configure it programatically:
>> https://github.com/magro/memcached-session-manager/blob/master/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java#L440
>>
>> Configuration options are described here:
>> http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
>>
>> Cheers,
>> Martin
>>
>>
>> On 06/09/2011 03:15 PM, Rüdiger Herrmann wrote:
>>> Hi all,
>>>
>>> I would like to programmatically set up two Tomcat engines and have
>>> them form a basic cluster - all in the same VM. Creating and starting
>>> the servlet engines already works
>>>   Tomcat tomcat = new Tomcat()
>>>   tomcat.setPort( 123 );
>>>   // create context, add servlet, ...
>>>   tomcat.start();
>>>
>>> What I am struggling with is setting up the cluster. My first attempt
>>> was to use the PersistentManager with Store that uses a shared
>>> directory. But it seems that it only persists session in time
>>> intervals. To enable failover, a session would need to be persisted
>>> after each request. However, I didn't find out how to configure or
>>> trigger the PersistentManager to do so.
>>> Still, the PersistenceManager setup was straightforward and if anyone
>>> knows how to form a cluster with this approach I would be grateful to
>>> know.
>>>
>>> I am aware of the SimpleTcpCluster, which I would try next. Just,
>>> before transforming the XML configuration into API calls (without
>>> known their meaning) I wanted to ask if there is an easier or even
>>> pre-built solution.
>>>
>>> Background:
>>> I work on enabling RAP [1], a web framework, to work in failover
>>> cluster environments. To ensure cluster-support, I have a set of JUnit
>>> tests that issue requests against an embeded cluster of servlet
>>> engines and then examine the state of sessions of the respective
>>> nodes, etc.
>>> Performance isn't important, neither is any advanced clustering
>>> feature (e.g. DeltaManager) needed. My focus is on finding a
>>> lightweight and purely programmatic solution.
>>>
>>> Thanks in advance,
>>> Rüdiger
>>>
>>> [1] http://eclipse.org/rap
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>
>> --
>> Martin Grotzke
>> http://twitter.com/martin_grotzke
>>
>>
>
>
>
> --
> --
> EclipseSource
> http://eclipsesource.com
> Tel: 0721 - 66 47 33 - 0
> Fax: 0721 - 66 47 33 29
>
> Innoopract Informationssysteme GmbH
> Stephanienstrasse 20, 76133 Karlsruhe, Germany
> General Manager: Jochen Krause
> Registered Office: Karlsruhe, Commercial Register Mannheim HRB 107883
>



-- 
--
EclipseSource
http://eclipsesource.com
Tel: 0721 - 66 47 33 - 0
Fax: 0721 - 66 47 33 29

Innoopract Informationssysteme GmbH
Stephanienstrasse 20, 76133 Karlsruhe, Germany
General Manager: Jochen Krause
Registered Office: Karlsruhe, Commercial Register Mannheim HRB 107883


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

Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

On 6/10/2011 3:59 PM, Christopher Schultz wrote:
> It's best to find out what your JVM supports and use that.
> 
> I wrote a short bit of code a while back to determine the supported
> algorithms and the default cipher suite for an SSLSocketFactory.

As promised, see below. No warranty. Free license. Attributions appreciated.

- -chris

package com.chadis.tools.security;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;

import java.security.Provider;
import java.security.Security;

import javax.net.ssl.SSLServerSocketFactory;

public class SSLInfo
{
public static void main(String[] args)
throws Exception
{
boolean enumeratedProviders = (null != args && 0 < args.length);

// Get SSL protocol info
String providerName = null;
Provider providers[];
if(enumeratedProviders)
{
providers = new Provider[args.length];
for(int i = 0; i < args.length; i++)
providers[i] = Security.getProvider(args[i]);

} else {
providers = Security.getProviders();
}

System.out.println("Supported SSL Protocols:");
boolean foundProtocol = false;

for(int i = 0; i < providers.length; i++)
{
Provider p = providers[i];

// Skip any providers that don't actually exist
if(null == p) continue;

ArrayList keys = new ArrayList(p.keySet());
Collections.sort(keys);
for(Iterator j = keys.iterator(); j.hasNext(); )
{
String key = (String)j.next();

if(key.startsWith("SSLContext.")
   && !"SSLContext.Default".equals(key))
{
foundProtocol |= true;
System.out.print("  ");
System.out.print(key.substring("SSLContext.".length()));
System.out.print(" (");
System.out.print(p.getName());
System.out.println(")");
}
}
}

if(!foundProtocol)
if(enumeratedProviders)
System.out.println(" ! No SSL protocols supported by any
requested provider");
else
System.out.println(" ! No SSL protocols supported by any
provider");

// Get cipher suite info
SSLServerSocketFactory ssf =
(SSLServerSocketFactory)SSLServerSocketFactory.getDefault();

String[] defaultCiphers = ssf.getDefaultCipherSuites();
String[] availableCiphers = ssf.getSupportedCipherSuites();

TreeMap ciphers = new TreeMap();

for(int i=0; ihttp://enigmail.mozdev.org/

iEYEARECAAYFAk3yfN8ACgkQ9CaO5/Lv0PCLdwCffjuhJ/EznrfRr3EqfGHijSyK
GtQAnAnWSmk8g8luGF73lPWWXdrTssc+
=0/80
-END PGP SIGNATURE-

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



Re: Concurrent Low Pause GC - Eden Space Size (Apache Tomcat/5.5.27)

2011-06-10 Thread Pid
On 10/06/2011 17:10, Martin Grotzke wrote:
> Hi,
> 
> On 06/10/2011 05:05 PM, Smith, Mitchell wrote:
>> Hi,
>>
>> Tomcat Version 5.5.27
>> OS: Linux Red Hat Linux 5.3 Enterprise 64bit
>>
>> I have a tomcat server setup, with the following configuration added:
>> -XX:+UseLargePages
>> -Xms14336m
>> -Xmx14336m
>> -XX:NewRatio=4
>> -XX:MaxPermSize=256m
>> -XX:+UseConcMarkSweepGC
>> -XX:CMSInitiatingOccupancyFraction=51
>> -XX:+CMSIncrementalMode
>> -XX:+CMSIncrementalPacing
>> -XX:CMSIncrementalDutyCycle=75
>> -XX:CMSIncrementalDutyCycleMin=20
>> -XX:CMSIncrementalSafetyFactor=10
>> -XX:CMSIncrementalOffset=0
>> -XX:CMSExpAvgFactor=25
>>
>> When I check the JVM output via jConsole the Eden space only has an
>> available max space of 10496kbytes, I believe that my configuration of
>> -(XX:NewRatio=4) should effectively set this parameter to 20% of the
>> total available heap (-Xmx14336m) - should be approx 2936000kbytes.
> 
> What's your jvm version? There was a bug in the sun/oracle jvm so that
> NewRatio was not used [1].
> You can still set the new size fix with NewSize.
> 
> Cheers,
> Martin
> 
> [1] http://bugs.sun.com/view_bug.do?bug_id=6862534


Are you setting these values in response to some performance testing?


p





signature.asc
Description: OpenPGP digital signature


RE: Tomcat shutdown issues

2011-06-10 Thread April Easton
I just installed a plug-in to try and get YourKit going to find the leaks.  I 
didn't realize that I had started Tomcat from inside Eclipse.  I'll take out 
what I did.

Thanks,
April

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



Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,

On 6/10/2011 9:25 AM, Charles Van Damme wrote:
> 10-jun-2011 15:14:11 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: [...]

FWIW, that's just an INFO message, but if you are going to be using SSL,
you might want to go ahead and install the APR library: your performance
will improve measurably. Note that  configuration for an APR
connector using SSL is completely different if you choose to go this route.

If you are not going to be using APR, you can disable the APR lifecycle
listener because you aren't using it.

> java.security.NoSuchAlgorithmException: RSA SSLContext not available

As Pid points out, it's pretty obvious that "RSA" is not a valid
algorithm in this situation:

> at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
> at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
> at
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSSLContext(JSSESocketFactory.java:490)

So, it's an SSL configuration problem. Let's look at your SSL :

> 
>  port="443"
>maxThreads="150" scheme="https" secure="true"
> SSLEnabled="true"
>keystoreFile="C:/Documents and Settings/Papa/.keystore"
> keystorePass="changeit"
>clientAuth="false" sslProtocol="RSA" />

SO, you have sslProtocol="RSA"... seems like a good place to look. If
you check the  documentation, you can see that there are only
a few recognized protocols you can choose.

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

Note that "protocol" refers to the protocol used for SSL, not for any
specific cipher, key exchange strategy, etc. Unfortunately, the Tomcat
documentation does not list all the available protocols, nor should it:
the protocols available to you are determined by JVM support.

The Javadoc for javax.net.ssl.SSLContext.getInstance has a pointer to
documentation for "standard names" (which takes you through several hops
to) here:
http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#SSLContext

Those are the valid ssl protocol names you can choose.

If you want use only ciphers that use the RSA algorithm (which is really
limiting, IMO), you can look up their names here (after scrolling a bit
downward):

http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#jssenames

Just look for stuff like SSL_DH_DSS_blah_blah_blah.

Of course, support for a certain algorithm might not be available in
your environment. It's best to find out what your JVM supports and use that.

I wrote a short bit of code a while back to determine the supported
algorithms and the default cipher suite for an SSLSocketFactory. I'll
try to dig it up and post it.

> 
> 

If you aren't using AJP, then disable the extra connector.

> Hoping you are not overwhelmed. Anything else ?

You had other errors in the log file. After you get SSL working
properly, stop Tomcat, delete all your logs and re-launch it. Anything
that looks like an error should be investigated and fixed.

Feel free to come back to the list for help on those additional issues:
just remember start a new thread if you do.

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

iEYEARECAAYFAk3yd5IACgkQ9CaO5/Lv0PCSwQCggfhTML/aJwMtBlw1pVJ+mJIt
rg8AoJOrh9amZcTCiLFrXjZQtFRGQbd0
=fu8H
-END PGP SIGNATURE-

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



Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sriram,

On 6/10/2011 1:49 PM, Sriram Narayanan wrote:
> Having one application serve static content, and having other
> applications serve other content (accept http requests, perform some
> processing, and send back responses, for e.g.), is actually a widely
> accepted and tested mechanism of using various stacks for various
> tasks.

Sure, but it's not always necessary. More moving parts when they aren't
necessary just results in tougher management and greater opportunity for
security mistakes.

> In fact, the vast majority of websites out there specifically stick in
> proxies and such in front of tomcat for  SSL termination, load
> balancing, and static content serving.

I'm not sure I would say "the vast majority", but certainly many are.
There's no need to give the impression that some other web server in
front of Tomcat is a best practice: it's merely a common practice.

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

iEYEARECAAYFAk3ydCIACgkQ9CaO5/Lv0PDRRACfeZ7jW2zSaKy6yf+CZejb46JX
DSUAoJbNc3ZABf/19X5fjQveE4MjAbDh
=KY1q
-END PGP SIGNATURE-

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



Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 6/9/2011 9:40 PM, Caldarale, Charles R wrote:
>> From: Anand HS [mailto:anan...@gmail.com] 
>> Subject: Optimal Settings to use Tomcat as a HTTP File Server
> 
>> We plan to use tomcat to let users download static content 
>> ( media, executables etc.. ).
> 
> As much as I like Tomcat, I have to think it might be more
> appropriate to use Apache httpd rather than Tomcat for pure static
> content.

+1

If you don't need Java for anything else, skip Tomcat altogether. There
are faster HTTP servers than both Apache Tomcat and Apache httpd.

> However, if you really want to use Tomcat, and you expect a heavy
> load, install the APR connector (especially important if you're using
> SSL).

If you don't need SSL, the NIO connector is a good bet, too. Both APR
and NIO support "sendFile" which allows higher-throughput static file
serving.

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

iEYEARECAAYFAk3yc3kACgkQ9CaO5/Lv0PBiHACePaG1u57geBMBY+5nN46e7jcr
KlwAn08b0nwm0NgqVVWA2za3VSgON5tM
=Dm40
-END PGP SIGNATURE-

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



Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Sriram Narayanan
Charles, you are facing multiple problems here. One is with the RSA,
and the other is with starting Tomcat instances.

On Fri, Jun 10, 2011 at 8:48 PM, Charles Van Damme  wrote:



> At which moment does NetBeans start the Tomcat server ?
> If I operate a shutdown.bat and a startup.bat from start > Cmd , how does it
> interfere with the Tomcat server thread started up by NetBeans ?

Regardless of how you start Tomcat (batch file or within Netbeans), if
you start Tomcat with the default config and get it to bind to port
443, then the operating system will give it port 443.

If you now start another Tomcat instance, and get that too to bind to
port 443, then the OS will tell this second Tomcat that the port is
already in use.

This is why you see "Starting of Tomcat failed, the server port 443 is
already in use."

You need to run exactly one Tomcat instance on port 443 for now. As
you get more familiar with Tomcat, you'll be able to do interesting
things like work with SSL on ports other than 443 (and there by run
multiple Tomcat instances serving SSL, etc).

>
> Thanks.
> Chavadam
>
>

-- Sriram

-- 
==
Belenix: www.belenix.org

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



Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-10 Thread Sriram Narayanan
On Fri, Jun 10, 2011 at 11:18 AM, Caldarale, Charles R
 wrote:
>> From: Caldarale, Charles R
>> Subject: RE: Optimal Settings to use Tomcat as a HTTP File Server
>
>> > We plan to use tomcat to let users download static content
>> > ( media, executables etc.. ).
>
>> As much as I like Tomcat, I have to think it might be more
>> appropriate to use Apache httpd rather than Tomcat for pure
>> static content.
>
> I have to qualify my statement: if the *only* thing you're using Tomcat for 
> is delivering static content, then httpd would be better.  If you have other 
> reasons to use Tomcat (e.g., running servlets or JSPs), then by all means use 
> it as your static content server as well.  You will generally see better 
> performance overall by not having two servers in the mix forced to 
> communicate with each other.
>

Having one application serve static content, and having other
applications serve other content (accept http requests, perform some
processing, and send back responses, for e.g.), is actually a widely
accepted and tested mechanism of using various stacks for various
tasks. Given that we have binary communication between httpd and
tomcat, and that this allows for Tomcat to be installed and used in
all manner of ways (dedicated instances for specific web apps, or load
balanced instances, for e.g.), I don't think "forced" is the right
term at all.

In fact, the vast majority of websites out there specifically stick in
proxies and such in front of tomcat for  SSL termination, load
balancing, and static content serving.

-- Sriram

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



Re: Concurrent Low Pause GC - Eden Space Size (Apache Tomcat/5.5.27)

2011-06-10 Thread Martin Grotzke
Hi,

On 06/10/2011 05:05 PM, Smith, Mitchell wrote:
> Hi,
> 
> Tomcat Version 5.5.27
> OS: Linux Red Hat Linux 5.3 Enterprise 64bit
> 
> I have a tomcat server setup, with the following configuration added:
> -XX:+UseLargePages
> -Xms14336m
> -Xmx14336m
> -XX:NewRatio=4
> -XX:MaxPermSize=256m
> -XX:+UseConcMarkSweepGC
> -XX:CMSInitiatingOccupancyFraction=51
> -XX:+CMSIncrementalMode
> -XX:+CMSIncrementalPacing
> -XX:CMSIncrementalDutyCycle=75
> -XX:CMSIncrementalDutyCycleMin=20
> -XX:CMSIncrementalSafetyFactor=10
> -XX:CMSIncrementalOffset=0
> -XX:CMSExpAvgFactor=25
> 
> When I check the JVM output via jConsole the Eden space only has an
> available max space of 10496kbytes, I believe that my configuration of
> -(XX:NewRatio=4) should effectively set this parameter to 20% of the
> total available heap (-Xmx14336m) - should be approx 2936000kbytes.

What's your jvm version? There was a bug in the sun/oracle jvm so that
NewRatio was not used [1].
You can still set the new size fix with NewSize.

Cheers,
Martin

[1] http://bugs.sun.com/view_bug.do?bug_id=6862534


-- 
Martin Grotzke
http://twitter.com/martin_grotzke



signature.asc
Description: OpenPGP digital signature


Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread André Warnier

Patrick Guillot - Genigraph wrote:

Hi all,

Thanks for your inputs.
I tried starting Tomcat via local administrator account, but it does not
start at all (no log file produce for tomcat and got error 1069), neither
via the GUI nor via command line. 


Probably because now it does not have the permission to overwrite one of the existing 
logfiles, belonging to the previous user-id.

And since it can't write to the logfile, it can't tell you.


I have asked my customer to set-up a new virtual machine to do what you
suggest pid (we just cannot uninstall all existing tomcat install which are
currently being used for test/validation purpose).
I'll test this next week when the new environment will be ready and let you
know.
Thanks again.
Have a nice week-end.
Kind regards,
Patrick

-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 16:35

À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

On 10/06/2011 10:16, Patrick Guillot - Genigraph wrote:

Right.
I have used a script I made because I had several tomcat instances to 
set-up (2x8). Attached is the script I used. I'm using multiple 
catalina_base (one for each application).


Please uninstall all Tomcat services.
Now install Tomcat using service.bat - just once.

 http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html


Does Tomcat work now?


p



-
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: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hi all,

Thanks for your inputs.
I tried starting Tomcat via local administrator account, but it does not
start at all (no log file produce for tomcat and got error 1069), neither
via the GUI nor via command line. 
I have asked my customer to set-up a new virtual machine to do what you
suggest pid (we just cannot uninstall all existing tomcat install which are
currently being used for test/validation purpose).
I'll test this next week when the new environment will be ready and let you
know.
Thanks again.
Have a nice week-end.
Kind regards,
Patrick

-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 16:35
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

On 10/06/2011 10:16, Patrick Guillot - Genigraph wrote:
> Right.
> I have used a script I made because I had several tomcat instances to 
> set-up (2x8). Attached is the script I used. I'm using multiple 
> catalina_base (one for each application).

Please uninstall all Tomcat services.
Now install Tomcat using service.bat - just once.

 http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html


Does Tomcat work now?


p



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



Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Charles Van Damme
Dear Pid,

Yes, RSA fails, and I'm wondering why.
Meantime, in 'server.xml' (see my previous email sending, I changed RSA by
TLS. Only that.

Output tabs :
1.1) Tomcat 7.0 :
Using CATALINA_BASE:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11"
Using CATALINA_HOME:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11"
Using CATALINA_TMPDIR: "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\temp"
Using JRE_HOME:"C:\Program Files\Java\jdk1.6.0_22"
Using CLASSPATH:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\bin\bootstrap.jar;C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\bin\tomcat-juli.jar"
10-jun-2011 17:13:56 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Program
Files\Java\jdk1.6.0_22\bin;C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11
10-jun-2011 17:13:57 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-nio-443"]
10-jun-2011 17:13:57 org.apache.coyote.AbstractProtocolHandler init
SEVERE: Failed to initialize end point associated with ProtocolHandler
["http-nio-443"]
java.security.UnrecoverableKeyException: Cannot recover key
at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
at
sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121)
at
sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:38)
at java.security.KeyStore.getKey(KeyStore.java:763)
at
com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.(SunX509KeyManagerImpl.java:113)
at
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:568)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:507)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:479)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:483)
at
org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:345)
at
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:910)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
10-jun-2011 17:13:57 org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector
[Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
org.apache.catalina.LifecycleException: Protocol handler initialization
failed
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:912)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
at sun.

Re: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Martin Grotzke
Hi Rüdiger,

On 06/10/2011 10:42 AM, Rüdiger Herrmann wrote:
> Still, I would be *very* interested in knowing how to use the
> PersistentManager to realize session failover - if it is inteded to
> serve that purpose at all.
I remember there were people posting on this list that they're trying to
achieve the same without success (I just cannot find the relevant
threads in short time). You can search the mailing list for this (IIRC
one case was related to realizing non-sticky sessions with persistent
manager).

Cheers,
Martin



signature.asc
Description: OpenPGP digital signature


Concurrent Low Pause GC - Eden Space Size (Apache Tomcat/5.5.27)

2011-06-10 Thread Smith, Mitchell
Hi,

Tomcat Version 5.5.27
OS: Linux Red Hat Linux 5.3 Enterprise 64bit

I have a tomcat server setup, with the following configuration added:
    -XX:+UseLargePages
    -Xms14336m
    -Xmx14336m
    -XX:NewRatio=4
    -XX:MaxPermSize=256m
    -XX:+UseConcMarkSweepGC
    -XX:CMSInitiatingOccupancyFraction=51
    -XX:+CMSIncrementalMode
    -XX:+CMSIncrementalPacing
    -XX:CMSIncrementalDutyCycle=75
    -XX:CMSIncrementalDutyCycleMin=20
    -XX:CMSIncrementalSafetyFactor=10
    -XX:CMSIncrementalOffset=0
    -XX:CMSExpAvgFactor=25

When I check the JVM output via jConsole the Eden space only has an
available max space of 10496kbytes, I believe that my configuration of
-(XX:NewRatio=4) should effectively set this parameter to 20% of the
total available heap (-Xmx14336m) - should be approx 2936000kbytes.

This problem, creates an issue that the Eden space GC runs frequently,
and the time available between these minor GC's is to short for the
Tenured space to be effectively collected.

Any Help or suggestions would be greatly appreciated.

Thank You,
--
Mitchell Smith
The information contained in this email (and any attachments) is confidential 
and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by 
reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or 
otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to 
monitor all email communications through their networks to
ensure regulatory compliance.
 
Cable & Wireless Communications Plc is a company registered in England & Wales 
with number:
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ


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



RE: Tomcat shutdown issues

2011-06-10 Thread Caldarale, Charles R
> From: April Easton [mailto:aeas...@shawneecourt.org] 
> Subject: Tomcat shutdown issues

> I don't see any of my threads in there

Look harder:

> "Worker-JM" prio=3D10 tid=3D0x5d7a1800 nid=3D0x521f in Object.wait()
> at 
> org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)
> "Bundle File Closer" daemon prio=3D10 tid=3D0x5e223800 nid=3D0x521d 
> in Object.wait()
> at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
> at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
> "Start Level Event Dispatcher" daemon prio=3D10 tid=3D0x5d5fc000 
> nid=3D0x521b in Object.wait()
> at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
> at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
> "Framework Event Dispatcher" daemon prio=3D10 tid=3D0x5d956800 
> nid=3D0x521a in Object.wait()   
> at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
> at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Those aren't Tomcat's threads; ergo, they are yours.  You're running Eclipse, 
you're responsible for the chaos it creates.

 - Chuck


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


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



Re: Tomcat shutdown issues

2011-06-10 Thread Pid
On 10/06/2011 15:36, April Easton wrote:
> Good day,
>  I've been working on closing all my threads in my applications that run 
> on Tomcat.  I recently upgraded to 7.0.14 to get better messages concerning 
> why Tomcat wasn't shutting down properly.  I have stopped all my servlets and 
> threads, but I'm still having trouble.  Below is the thread dump of the most 
> recent shutdown and my catalina log.  I don't see any of my threads in there, 
> so what is keeping Tomcat alive?

Are you running Tomcat inside Eclipse?


p



signature.asc
Description: OpenPGP digital signature


Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Pid
On 10/06/2011 14:25, Charles Van Damme wrote:
> java.security.NoSuchAlgorithmException: RSA SSLContext not available

It seems pretty clear that "RSA" isn't accepted by Java as a valid
algorithm.


p




signature.asc
Description: OpenPGP digital signature


Tomcat shutdown issues

2011-06-10 Thread April Easton
Good day,
 I've been working on closing all my threads in my applications that run on 
Tomcat.  I recently upgraded to 7.0.14 to get better messages concerning why 
Tomcat wasn't shutting down properly.  I have stopped all my servlets and 
threads, but I'm still having trouble.  Below is the thread dump of the most 
recent shutdown and my catalina log.  I don't see any of my threads in there, 
so what is keeping Tomcat alive?

2011-06-10 09:07:32
Full thread dump Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode):

"DestroyJavaVM" prio=3D10 tid=3D0x5d1e9800 nid=3D0x5155 waiting on 
condition [0x]
   java.lang.Thread.State: RUNNABLE

"Worker-JM" prio=3D10 tid=3D0x5d7a1800 nid=3D0x521f in Object.wait() 
[0x42ce2000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xb69c2050> (a java.util.ArrayList)
at 
org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)
- locked <0xb69c2050> (a java.util.ArrayList)

"Bundle File Closer" daemon prio=3D10 tid=3D0x5e223800 nid=3D0x521d in 
Object.wait() [0x42be1000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xb6a67768> (a 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at java.lang.Object.wait(Object.java:485)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
- locked <0xb6a67768> (a 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

"Start Level Event Dispatcher" daemon prio=3D10 tid=3D0x5d5fc000 
nid=3D0x521b in Object.wait() [0x42ae]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xb68c5d38> (a 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at java.lang.Object.wait(Object.java:485)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
- locked <0xb68c5d38> (a 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

"Framework Event Dispatcher" daemon prio=3D10 tid=3D0x5d956800 
nid=3D0x521a in Object.wait() [0x429df000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xb68f7278> (a 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at java.lang.Object.wait(Object.java:485)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
- locked <0xb68f7278> (a 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

"GC Daemon" daemon prio=3D10 tid=3D0x5d299000 nid=3D0x5160 in 
Object.wait() [0x40dea000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xb48180b8> (a sun.misc.GC$LatencyLock)
at sun.misc.GC$Daemon.run(GC.java:100)
- locked <0xb48180b8> (a sun.misc.GC$LatencyLock)

"Low Memory Detector" daemon prio=3D10 tid=3D0x5ce8b000 nid=3D0x515e 
runnable [0x]
   java.lang.Thread.State: RUNNABLE

"CompilerThread1" daemon prio=3D10 tid=3D0x5ce88800 nid=3D0x515d 
waiting on condition [0x]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=3D10 tid=3D0x5ce85000 nid=3D0x515c 
waiting on condition [0x]
  java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=3D10 tid=3D0x5ce82800 nid=3D0x515b 
runnable [0x]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=3D10 tid=3D0x5ce5e000 nid=3D0x515a in 
Object.wait() [0x4136b000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xb4818800> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0xb4818800> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=3D10 tid=3D0x5ce5c000 nid=3D0x5159 in 
Object.wait() [0x4126a000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00

Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Pid
On 10/06/2011 10:16, Patrick Guillot - Genigraph wrote:
> Right.
> I have used a script I made because I had several tomcat instances to set-up
> (2x8). Attached is the script I used. I'm using multiple catalina_base (one
> for each application).

Please uninstall all Tomcat services.
Now install Tomcat using service.bat - just once.

 http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html


Does Tomcat work now?


p



signature.asc
Description: OpenPGP digital signature


Re: Problem regarding Hosting

2011-06-10 Thread Pid
On 10/06/2011 13:33, adityagoel123 wrote:
> 
> I have succesfully deployed a application through .war file on apache server.

"apache server" usually refers to Apache HTTPD, http://httpd.apache.org.

This is the mailing list for Apache Tomcat, a Java Application server,
which does publish web applications in .war format.

> I am also able to access it through http://10.129.x.x/application on my
> local machine. 

Great.

> Now, I want it to hosted to a web address like www.example.com/~application

Why add the "~"?  It usually indicates the path to a user:

 http://people.apache.org/~pidster

> Currently, www.example.com/~application is pointing to one of the file which
> is placed(On Server hosting this site) in the location 
> /var/www/data/index.html

Is it a shared server in which you have a user account?

Does this server have Tomcat installed on it?


> How can I make this particular URL www.example.com/~application point to my
> new web application ?
> 
> please specify the way.

Follow these instructions:  http://j.mp/lfX9ya


p


> Thanks in advance.
> :working:
> 
> 
> aditya




signature.asc
Description: OpenPGP digital signature


Re: user tomcat authentication

2011-06-10 Thread Pid
On 10/06/2011 11:26, Petr Hracek wrote:
> Dear tomcat users,
> 
> I would like to ask you how can I authenticate users to access tomcat page?
> My users are stored in standard /etc/passwd file

I'm not sure I'd give Tomcat access to the local user authentication.


> or users which are stored in another database engine than Realm

You can configure a DataSource & a DataSourceRealm to point at any database.


p

> thank you in advance
> 




signature.asc
Description: OpenPGP digital signature


Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Charles Van Damme
OK Christopher:

1) Output tabs of NetBeans IDE
1.1) Tomcat 7.0 :
Using CATALINA_BASE:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11"
Using CATALINA_HOME:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11"
Using CATALINA_TMPDIR: "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\temp"
Using JRE_HOME:"C:\Program Files\Java\jdk1.6.0_22"
Using CLASSPATH:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\bin\bootstrap.jar;C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\bin\tomcat-juli.jar"
10-jun-2011 15:14:11 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Program
Files\Java\jdk1.6.0_22\bin;C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11
10-jun-2011 15:14:11 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-nio-443"]
10-jun-2011 15:14:12 org.apache.coyote.AbstractProtocolHandler init
SEVERE: Failed to initialize end point associated with ProtocolHandler
["http-nio-443"]
java.security.NoSuchAlgorithmException: RSA SSLContext not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSSLContext(JSSESocketFactory.java:490)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:478)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:483)
at
org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:345)
at
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:910)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
10-jun-2011 15:14:12 org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector
[Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
org.apache.catalina.LifecycleException: Protocol handler initialization
failed
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:912)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:262)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
Caused by: java.security.NoSuchAlgorithmException: RSA SSLContext not
available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSSLContext(JSSESocketFactory.java:490)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:478)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:483)
at
org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:345)
at
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at
org.apache.catalina.connector.Conn

Re: How to handle client disconnection in 'no timeout' async servlets?

2011-06-10 Thread Paul Cazan
Is it possible that Tomcat 7.0.14 did not implement any sort of 
'onDisconnectEvent' for asynchronous servlets 3.0?

I am sure tomcat DOES KNOW when a client browser is closed, since the 
notification arrives when using CometProcessor.

Did anyone worked with asynchronous servlets as in Servlet 3.0 specification?
--- On Thu, 9/6/11, Paul Cazan  wrote:

From: Paul Cazan 
Subject: How to handle client disconnection in 'no timeout' async servlets?
To: users@tomcat.apache.org
Date: Thursday, 9 June, 2011, 3:22 PM

Hello,
I am using Tomcat 7.0.14. I used to have a servlet implementing CometProcessor 
to process asynchronous streams, with timeout set very high 
(Integer.MAX_VALUE), and all worked fine. When I close the browser, the servlet 
is notified immediately about that (CometEvent.EventType.END) and I am happy to 
do the cleanup.
No, I have created an async servlet 3.0, and all works as I expected, except 
for notification when the browser is closed. I used request.startAsync(), I 
added AsyncListener, and none of the events get fired when the browser is 
suddenly closed. Since I set the timeout to a large value (Long.MAX_VALUE), 
AsyncListener.onTimeout will never get called.
As far as I understand, onComplete will get called only when I call 
AsyncContext.complete(), and I do not know when to call it. I tried to write on 
response.getWriter(), expecting to see an exception, but no exception was 
thrown after a couple of writes.
How can I handle this situation using servlet api 3.0, when the user closes the 
browser or hits the stop button? I need to do the cleanup for that 
client.Meanwhile, I reverted the source code to CometProcessor.
Thanks a lot,Paul

Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread André Warnier

Hi.

I don't really know if it is important here, I don't know Waffle, the type of 
error does
not match, and it doesn't look below like you are using any network paths.
That was the disclaimer of responsibility.

One aspect that is different when you run Tomcat as a service, is (usuallly) the
user-id under which it runs.
As a service, the standard Tomcat installation will configure it to run as "LocalSystem", 
which is a special user having a lot of rights on the local machine, but /NO/ network 
acess rights in the Microsoft sense (no access to network shares, to other systems etc..).


Even if you change that in order to run as "Administrator", this Administrator may still 
be a purely local account (as opposed to a Domain account).


As mentioned before, I do not know Waffle in detail, but it offers a form of Windows 
Domain authentication, and to do that at some point it needs to be able to present itself 
as a Windows *domain* user, otherwise it will not have access to an authenticating server. 
 Whether this account that it needs to use is configured separately, or is the same as 
the one Tomcat runs under, that I don't know.


All of this to say that if you encounter some issues when running Tomcat as a service with 
Waffle enabled, and you do not have these same problems with Waffle disabled (or when 
running Tomcat+Waffle from a command window under *your* login account - presumably a 
domain account), there may be a link with the user-id.



Patrick Guillot - Genigraph wrote:

Hello,

Right.
I have used a script I made because I had several tomcat instances to set-up
(2x8). Attached is the script I used. I'm using multiple catalina_base (one
for each application).
At first, the "Java Classpath:" field of the Tomcat Service GUI only
contains : 
	bootsrap.jar and tomcat-juli.jar


Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the "Java Options:" field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar

Being so desperate :-) I add all the jars to both "Java Classpath:" and
"Java Options:".

I just made a test after cleaning things up. This gives the following
configuration : 


[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start

As far as I understand, line 7 contains what is set-up in the "Java
Classpath:" field of the Tomcat Service GUI.
It looks fine now, does it ?

I still get the same error.
Thanks,

  Patrick

-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 10:45

À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:

Hi everybody,

 

I’m driving mad with a classpath issue : 

 

My environment : 


-  Tomcat 6.0.29

-  Windows Server 2008 R2 Standard 64 bits

-  JDK 1.5.0_22

 


My webapp is using Waffle (Windows Authentication Framework)
(http://waffle.codeplex.com/) to benefit from transparent authentication.

 

It is working just fine when tomcat is started in console mode. But 
console mode is not suitable for production use.


Therefore, I set-up Tomcat 6 as a service 
(http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html).


 


In this mode, tomcat does not sta

Problem regarding Hosting

2011-06-10 Thread adityagoel123

I have succesfully deployed a application through .war file on apache server.
I am also able to access it through http://10.129.x.x/application on my
local machine. 

Now, I want it to hosted to a web address like www.example.com/~application
Currently, www.example.com/~application is pointing to one of the file which
is placed(On Server hosting this site) in the location 
/var/www/data/index.html

How can I make this particular URL www.example.com/~application point to my
new web application ?

please specify the way.


Thanks in advance.
:working:


aditya
-- 
View this message in context: 
http://old.nabble.com/Problem-regarding-Hosting-tp31817550p31817550.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: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread David kerber

On 6/10/2011 8:15 AM, Patrick Guillot - Genigraph wrote:

Hi Martin,

It does start as administrator already: The tomcat service GUI used to start
the service is executed via the "Run as administrator" contextual menu
command.


That doesn't mean the service itself is using the administrator acct. 
You need to set that explicitly in the service manager.  Open the 
properties of the tomcat service, and go to the "Log On" tab.  What is 
set there?  Unless you changed it, it's probably set as Local System.


D

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



RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hi Martin,

It does start as administrator already: The tomcat service GUI used to start
the service is executed via the "Run as administrator" contextual menu
command.
Unfortunately this does not solve the problem.
Thanks.
Regards,
Patrick

pguil...@genigraph.fr
Téléphone : +33 (0)9 51 17 44 24
http://www.genigraph.fr
Avant d'imprimer cet email et les pièces jointes, pensez à l'environnement.


-Message d'origine-
De : Martin Gainty [mailto:mgai...@hotmail.com] 
Envoyé : vendredi 10 juin 2011 13:24
À : Tomcat Users List
Objet : RE: Classpath issue *only* when starting tomcat 6 as a service


Just as Unix contains different configurations for each .profile and .bashrc
you may have different (JVM and or CLASSPATH) configurations for each
username in Windows Authentication Framework.
from what i know Windows service has different capabilities depending on the
authentication credentials you supply 

if you start your service as Administrator does the problem go away e.g?
runas /u:administrator "net start  Tomcat"

Bon Chance,
Martin
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité  Ce
message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire
informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
de ceci est interdite. Ce message sert à l'information seulement et n'aura
pas n'importe quel effet légalement obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.




From: pguil...@genigraph.fr
To: users@tomcat.apache.org
Subject: RE: Classpath issue *only* when starting tomcat 6 as a service
Date: Fri, 10 Jun 2011 11:16:36 +0200

Hello,
 
Right.
I have used a script I made because I had several tomcat instances to set-up
(2x8). Attached is the script I used. I'm using multiple catalina_base (one
for each application).
At first, the "Java Classpath:" field of the Tomcat Service GUI only
contains : 
bootsrap.jar and tomcat-juli.jar
 
Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the "Java Options:" field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar
 
Being so desperate :-) I add all the jars to both "Java Classpath:" and
"Java Options:".
 
I just made a test after cleaning things up. This gives the following
configuration : 
 
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start
 
As far as I understand, line 7 contains what is set-up in the "Java
Classpath:" field of the Tomcat Service GUI.
It looks fine now, does it ?
 
I still get the same error.
Thanks,
 
  Patrick
 
-Message d'origine-
De : Pid [mailto:p...@pidster.com]
Envoyé : vendredi 10 juin 2011 10:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service
 
On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:
> Hi everybody,
> 
>  
> 
> I’m driving mad with a classpath issue : 
> 
>  
> 
> My environment : 
> 
> -  Tomcat 6.0.29
> 
> -  Windows Server 2008 R2 Standard 64 bits
> 
> -  JDK 1.5.0_22
> 
>  
> 
> My webapp is using Waffle (Wind

RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Martin Gainty

Just as Unix contains different configurations for each .profile and .bashrc
you may have different (JVM and or CLASSPATH) configurations for each username 
in Windows Authentication Framework.
from what i know Windows service has different capabilities depending on the 
authentication credentials you supply 

if you start your service as Administrator does the problem go away e.g?
runas /u:administrator "net start  Tomcat"

Bon Chance,
Martin  
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: pguil...@genigraph.fr
To: users@tomcat.apache.org
Subject: RE: Classpath issue *only* when starting tomcat 6 as a service
Date: Fri, 10 Jun 2011 11:16:36 +0200

Hello,
 
Right.
I have used a script I made because I had several tomcat instances to set-up
(2x8). Attached is the script I used. I'm using multiple catalina_base (one
for each application).
At first, the "Java Classpath:" field of the Tomcat Service GUI only
contains : 
bootsrap.jar and tomcat-juli.jar
 
Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the "Java Options:" field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar
 
Being so desperate :-) I add all the jars to both "Java Classpath:" and
"Java Options:".
 
I just made a test after cleaning things up. This gives the following
configuration : 
 
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start
 
As far as I understand, line 7 contains what is set-up in the "Java
Classpath:" field of the Tomcat Service GUI.
It looks fine now, does it ?
 
I still get the same error.
Thanks,
 
  Patrick
 
-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 10:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service
 
On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:
> Hi everybody,
> 
>  
> 
> I’m driving mad with a classpath issue : 
> 
>  
> 
> My environment : 
> 
> -  Tomcat 6.0.29
> 
> -  Windows Server 2008 R2 Standard 64 bits
> 
> -  JDK 1.5.0_22
> 
>  
> 
> My webapp is using Waffle (Windows Authentication Framework)
> (http://waffle.codeplex.com/) to benefit from transparent authentication.
> 
>  
> 
> It is working just fine when tomcat is started in console mode. But 
> console mode is not suitable for production use.
> 
> Therefore, I set-up Tomcat 6 as a service 
> (http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html).
> 
>  
> 
> In this mode, tomcat does not start properly and I get a classpath error :
> 
> java.lang.NoClassDefFoundError:
> org/apache/catalina/authenticator/AuthenticatorBase
> 
> If not using Waffle, the service mode is working fine as well.

error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-10 Thread Ronald Klop

Hi,

 I'm running a 4 node cluster and seeing the same exception as described in 
this issue.
 https://issues.apache.org/bugzilla/show_bug.cgi?id=51306

 What can I do to workaround it or what can I information can I provide to help?

 I'm running 6.0.32 with a securitymanager on Debian 5. Java version "1.6.0_22" 
from debian sun-java pkgs.

 My clusterconfig is this:
 
   
 
 
 
 
 

 
 
 
 

 


 The exception from my catalina.out.

 Jun 10, 2011 11:08:52 AM org.apache.catalina.ha.session.DeltaManager 
messageReceived
 SEVERE: Manager [crm.realworks.nl#]: Unable to receive message through TCP 
channel
 java.lang.NullPointerException
 at 
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2106)
 at 
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1977)
 at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:849)
 at 
org.apache.catalina.ha.session.DeltaRequest.writeExternal(DeltaRequest.java:267)
 at 
org.apache.catalina.ha.session.DeltaRequest.serialize(DeltaRequest.java:287)
 at 
org.apache.catalina.ha.session.DeltaManager.serializeDeltaRequest(DeltaManager.java:716)
 at 
org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1224)
 at 
org.apache.catalina.ha.session.DeltaSession.expire(DeltaSession.java:403)
 at 
org.apache.catalina.ha.session.DeltaManager.handleSESSION_EXPIRED(DeltaManager.java:1546)
 at 
org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1452)
 at 
org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1173)
 at 
org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:92)
 at 
org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:901)
 at 
org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:882)
 at 
org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:269)
 at 
org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79)
 at 
org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79)
 at 
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:110)
 at 
org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79)
 at 
org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241)
 at 
org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225)
 at 
org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188)
 at 
org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)

 
 Ronald.

Re: Question on WORK directory of tomcat container

2011-06-10 Thread chris derham
> Due to a conflict between the cached JSPs in the work directory of a tomcat
> container on our app's QA Windows 2003 server, does the tomcat service have
> to be restarted?
>
> Any help would be greatly appreciated.  Thanks.
>
> Melinda Savoy
>

Melinda,

You seem to have sent the exact same email again to this mailing list.
Charles has already asked for you to elaborate on the question. It is too
ambiguous for anybody to possibly help. Please include relevant details
Charles asked for. Resubmitting the same email won't suddenly make people
respond. Answering the questions you have been asked will

Chris


Question on WORK directory of tomcat container

2011-06-10 Thread Savoy, Melinda
Due to a conflict between the cached JSPs in the work directory of a tomcat 
container on our app's QA Windows 2003 server, does the tomcat service have to 
be restarted?

Any help would be greatly appreciated.  Thanks.

Melinda Savoy
Sr. Programmer Analyst, ERP Systems
Innovative Technology Solutions
Texas Health Resources
600 E. Lamar Blvd, Ste 301, Arlington TX  76011
melindasa...@texashealth.org

Texas Health Resources: Arlington Memorial,
Harris Methodist and Presbyterian Hospitals
A shared mission and now a shared name.





The information contained in this message and any attachments is intended only 
for the use of the individual or entity to which it is addressed, and may 
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from 
disclosure under applicable law.  If you are not the intended recipient, you 
are prohibited from copying, distributing, or using the information.  Please 
contact the sender immediately by return e-mail and delete the original message 
from your system.

user tomcat authentication

2011-06-10 Thread Petr Hracek
Dear tomcat users,

I would like to ask you how can I authenticate users to access tomcat page?
My users are stored in standard /etc/passwd file
or users which are stored in another database engine than Realm

thank you in advance

-- 
Best Regards / S pozdravem
Petr Hracek

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



RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hello,

Right.
I have used a script I made because I had several tomcat instances to set-up
(2x8). Attached is the script I used. I'm using multiple catalina_base (one
for each application).
At first, the "Java Classpath:" field of the Tomcat Service GUI only
contains : 
bootsrap.jar and tomcat-juli.jar

Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the "Java Options:" field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar

Being so desperate :-) I add all the jars to both "Java Classpath:" and
"Java Options:".

I just made a test after cleaning things up. This gives the following
configuration : 

[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start

As far as I understand, line 7 contains what is set-up in the "Java
Classpath:" field of the Tomcat Service GUI.
It looks fine now, does it ?

I still get the same error.
Thanks,

  Patrick

-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 10:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:
> Hi everybody,
> 
>  
> 
> I’m driving mad with a classpath issue : 
> 
>  
> 
> My environment : 
> 
> -  Tomcat 6.0.29
> 
> -  Windows Server 2008 R2 Standard 64 bits
> 
> -  JDK 1.5.0_22
> 
>  
> 
> My webapp is using Waffle (Windows Authentication Framework)
> (http://waffle.codeplex.com/) to benefit from transparent authentication.
> 
>  
> 
> It is working just fine when tomcat is started in console mode. But 
> console mode is not suitable for production use.
> 
> Therefore, I set-up Tomcat 6 as a service 
> (http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html).
> 
>  
> 
> In this mode, tomcat does not start properly and I get a classpath error :
> 
> java.lang.NoClassDefFoundError:
> org/apache/catalina/authenticator/AuthenticatorBase
> 
> If not using Waffle, the service mode is working fine as well.
> 
> AuthenticatorBase is used by Waffle.
> 
>  
> 
> I found that this class is located “catalina.jar”.
> 
> “Catalina.jar” is located in D:\tomcat\lib\ (catalina.home\lib).
> 
> So, I do have the right jar and it contains the right class (which 
> again is found by tomcat when started in console mode).
> 
>  
> 
> My guess was I had a service configuration error : I checked 
> everything and can’t find any error – which does not mean there is no 
> error ! ;-)
> 
> Here is the service configuration logged by tomcat : 
> 
>  
> 
> Jvm Option[0]
> -Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstra
> p.jar; 
> D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\to
> mcat\l 
>
ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina.
> jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib
> \jaspe 
> r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat
> \lib\s 
> ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-db
> cp.jar 
> ;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\
> tomcat 
> \lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.j
> ar;D:\ 
> tomcat\lib\waffle-jna.jar;D:\tomcat\

Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Pid
On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:
> Hi everybody,
> 
>  
> 
> I’m driving mad with a classpath issue : 
> 
>  
> 
> My environment : 
> 
> -  Tomcat 6.0.29
> 
> -  Windows Server 2008 R2 Standard 64 bits
> 
> -  JDK 1.5.0_22
> 
>  
> 
> My webapp is using Waffle (Windows Authentication Framework)
> (http://waffle.codeplex.com/) to benefit from transparent authentication.
> 
>  
> 
> It is working just fine when tomcat is started in console mode. But console
> mode is not suitable for production use.
> 
> Therefore, I set-up Tomcat 6 as a service
> (http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html).
> 
>  
> 
> In this mode, tomcat does not start properly and I get a classpath error :
> 
> java.lang.NoClassDefFoundError:
> org/apache/catalina/authenticator/AuthenticatorBase
> 
> If not using Waffle, the service mode is working fine as well.
> 
> AuthenticatorBase is used by Waffle.
> 
>  
> 
> I found that this class is located “catalina.jar”.
> 
> “Catalina.jar” is located in D:\tomcat\lib\ (catalina.home\lib).
> 
> So, I do have the right jar and it contains the right class (which again is
> found by tomcat when started in console mode).
> 
>  
> 
> My guess was I had a service configuration error : I checked everything and
> can’t find any error – which does not mean there is no error ! ;-)
> 
> Here is the service configuration logged by tomcat : 
> 
>  
> 
> Jvm Option[0]
> -Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar;
> D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l
> ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina.
> jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe
> r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s
> ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar
> ;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat
> \lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\
> tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar


> Jvm Option[7] -XX:MaxPermSize=256M
> 
> Jvm Option[8]
> -Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar;
> D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l
> ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina.
> jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe
> r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s
> ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar
> ;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat
> \lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\
> tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar

Also you're setting classpath twice.

How did you install the service?  Did you use service.bat?


p



signature.asc
Description: OpenPGP digital signature


Re: How to cluster two embedded tomcat 7 instances

2011-06-10 Thread Rüdiger Herrmann
Martin,

thanks for the pointers. Though, I'd rather like to start with the
default solution (i.e. something that works out of the box with the
Tomcat deliverable)
In the meanwhile, I brought the SimpleTcpCluster to work. I will
report here soon with some code.

Still, I would be *very* interested in knowing how to use the
PersistentManager to realize session failover - if it is inteded to
serve that purpose at all.

Regards
Rüdiger

On Thu, Jun 9, 2011 at 16:16, Martin Grotzke
 wrote:
> Hi,
>
> perhaps memcached-session-manager is an option for you:
> http://code.google.com/p/memcached-session-manager/
>
> It has integration tests that show how to configure it programatically:
> https://github.com/magro/memcached-session-manager/blob/master/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java#L440
>
> Configuration options are described here:
> http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
>
> Cheers,
> Martin
>
>
> On 06/09/2011 03:15 PM, Rüdiger Herrmann wrote:
>> Hi all,
>>
>> I would like to programmatically set up two Tomcat engines and have
>> them form a basic cluster - all in the same VM. Creating and starting
>> the servlet engines already works
>>   Tomcat tomcat = new Tomcat()
>>   tomcat.setPort( 123 );
>>   // create context, add servlet, ...
>>   tomcat.start();
>>
>> What I am struggling with is setting up the cluster. My first attempt
>> was to use the PersistentManager with Store that uses a shared
>> directory. But it seems that it only persists session in time
>> intervals. To enable failover, a session would need to be persisted
>> after each request. However, I didn't find out how to configure or
>> trigger the PersistentManager to do so.
>> Still, the PersistenceManager setup was straightforward and if anyone
>> knows how to form a cluster with this approach I would be grateful to
>> know.
>>
>> I am aware of the SimpleTcpCluster, which I would try next. Just,
>> before transforming the XML configuration into API calls (without
>> known their meaning) I wanted to ask if there is an easier or even
>> pre-built solution.
>>
>> Background:
>> I work on enabling RAP [1], a web framework, to work in failover
>> cluster environments. To ensure cluster-support, I have a set of JUnit
>> tests that issue requests against an embeded cluster of servlet
>> engines and then examine the state of sessions of the respective
>> nodes, etc.
>> Performance isn't important, neither is any advanced clustering
>> feature (e.g. DeltaManager) needed. My focus is on finding a
>> lightweight and purely programmatic solution.
>>
>> Thanks in advance,
>> Rüdiger
>>
>> [1] http://eclipse.org/rap
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
> --
> Martin Grotzke
> http://twitter.com/martin_grotzke
>
>



-- 
--
EclipseSource
http://eclipsesource.com
Tel: 0721 - 66 47 33 - 0
Fax: 0721 - 66 47 33 29

Innoopract Informationssysteme GmbH
Stephanienstrasse 20, 76133 Karlsruhe, Germany
General Manager: Jochen Krause
Registered Office: Karlsruhe, Commercial Register Mannheim HRB 107883

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



Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Pid
On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:
> Jvm Option[8]
> -Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar;
> D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l
> ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina.
> jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe
> r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s
> ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar
> ;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat
> \lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\
> tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar
> 
> Jvm Option[9] vfprintf
> 
> Jvm Option[10] -Xms256m
> 
> Jvm Option[11] -Xmx512m
> 
>  
> 
> As you can see : java.class.path do include “catalina.jar”.

Don't set the classpath.  Tomcat does that itself.


p



signature.asc
Description: OpenPGP digital signature


RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hi everybody,

 

I’m driving mad with a classpath issue : 

 

My environment : 

-  Tomcat 6.0.29

-  Windows Server 2008 R2 Standard 64 bits

-  JDK 1.5.0_22

 

My webapp is using Waffle (Windows Authentication Framework)
(http://waffle.codeplex.com/) to benefit from transparent authentication.

 

It is working just fine when tomcat is started in console mode. But console
mode is not suitable for production use.

Therefore, I set-up Tomcat 6 as a service
(http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html).

 

In this mode, tomcat does not start properly and I get a classpath error :

java.lang.NoClassDefFoundError:
org/apache/catalina/authenticator/AuthenticatorBase

If not using Waffle, the service mode is working fine as well.

AuthenticatorBase is used by Waffle.

 

I found that this class is located “catalina.jar”.

“Catalina.jar” is located in D:\tomcat\lib\ (catalina.home\lib).

So, I do have the right jar and it contains the right class (which again is
found by tomcat when started in console mode).

 

My guess was I had a service configuration error : I checked everything and
can’t find any error – which does not mean there is no error ! ;-)

Here is the service configuration logged by tomcat : 

 

Jvm Option[0]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar;
D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l
ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina.
jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe
r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s
ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar
;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat
\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\
tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar

Jvm Option[1] -Dcatalina.home=D:\tomcat

Jvm Option[2] -Dcatalina.base=D:\tomcat\instances\06_crlj

Jvm Option[3] -Djava.endorsed.dirs=D:\tomcat\endorsed

Jvm Option[4] -Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp

Jvm Option[5]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Jvm Option[6]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties

Jvm Option[7] -XX:MaxPermSize=256M

Jvm Option[8]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar;
D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l
ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina.
jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe
r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s
ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar
;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat
\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\
tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar

Jvm Option[9] vfprintf

Jvm Option[10] -Xms256m

Jvm Option[11] -Xmx512m

 

As you can see : java.class.path do include “catalina.jar”.

 

I tried copying around catalina.jar and waffle libs around (lib dirs.,
endorsed dirs., etc.), but no luck.

 

Thanks in advance for any help you can provide.

 

Kin regards,

 

   Patrick Guillot

   Genigraph

 pguil...@genigraph.fr

 

Full stack trace

--

INFO: Déploiement du descripteur de configuration waffle-mixed.xml

10 juin 2011 09:24:35 org.apache.tomcat.util.digester.Digester startElement

GRAVE: Begin event threw error

java.lang.NoClassDefFoundError:
org/apache/catalina/authenticator/AuthenticatorBase

at java.lang.ClassLoader.findBootstrapClass(Native Method)

at
java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:892)

at java.lang.ClassLoader.loadClass(ClassLoader.java:302)

at java.lang.ClassLoader.loadClass(ClassLoader.java:300)

at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java
:205)

at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)

at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)

at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab
stractSAXParser.java:533)

at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyEl
ement(AbstractXMLDocumentParser.java:220)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
tartElement(XMLDocumentFragmentScannerImpl.java:872)