Re: IIS7 + ISAPI Redirector on 64Bit Server Platform

2010-02-26 Thread Jordan Michaels
If it helps, I was never able to get the blasted thing to work either.

I was, however, able to get 32-bit to work just fine, and have been using it 
for just about everything, with no issues.

Wish I could help more!

-Jordan



- Original Message -
From: "David Bolsover" 
To: users@tomcat.apache.org
Sent: Friday, February 26, 2010 5:00:33 PM GMT -08:00 US/Canada Pacific
Subject: IIS7 + ISAPI Redirector on 64Bit Server Platform 

Environment:
Server Hardware: Dell T110 : Intel Xeon X3430, 4Gb RAM.
OS: Windows Small Business Server 2008 fully patched.
SQL Server standard 2008
IIS: 7.0.6000.16386
Java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
Tomcat: 6.0.24
ISAPI isapi_redirect-1.2.29 (amd64).

Client Windows 7 filly patched, IE 8.0

Issue:
Access to web application on Tomcat via port 8080, all pages are delivered 
correctly - no problems.

Access to same web application via IIS with redirector, only the index page is 
delivered. Links to page menu items are non responsive although it appears that 
backend calls to the database are being made in response to clicks on the links 
- but no new pages are delivered to the client.

At my wits end - same application performs flawlessly when run on Windows 7 
IIS7 using 32bit redirector.

Seeking inspiration on how to debug / solve this problem.

Regards, DB







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



IIS7 + ISAPI Redirector on 64Bit Server Platform

2010-02-26 Thread David Bolsover
Environment:
Server Hardware: Dell T110 : Intel Xeon X3430, 4Gb RAM.
OS: Windows Small Business Server 2008 fully patched.
SQL Server standard 2008
IIS: 7.0.6000.16386
Java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
Tomcat: 6.0.24
ISAPI isapi_redirect-1.2.29 (amd64).

Client Windows 7 filly patched, IE 8.0

Issue:
Access to web application on Tomcat via port 8080, all pages are delivered 
correctly - no problems.

Access to same web application via IIS with redirector, only the index page is 
delivered. Links to page menu items are non responsive although it appears that 
backend calls to the database are being made in response to clicks on the links 
- but no new pages are delivered to the client.

At my wits end - same application performs flawlessly when run on Windows 7 
IIS7 using 32bit redirector.

Seeking inspiration on how to debug / solve this problem.

Regards, DB








Re: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Pid

On 26/02/2010 18:40, Joseph Morgan wrote:

And... if you are writing a java program do to this for you, such as a UI, then 
you'll need to essentially reverse this to start it.  PID's idea to connect to 
the port to send the shutdown command will work for shutting it down, but to 
start it back up... you'll still need to do Runtime.getRuntime().exec(...) to 
get it going again from within the Java UI.


At the risk of veering off-topic: if the OP wishes to start and stop 
Tomcat programmatically then they may consider the 'embedded' Tomcat method.



http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/startup/Embedded.html


p


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Friday, February 26, 2010 12:10 PM
To: Tomcat Users List
Subject: Re: Java programm to Shutdwon the tomcat server


I suggest the following :

I) If tomcat is running as a Windows service, then you should shut it
down by stopping the Windows Service (and not by stopping down Tomcat
directly).

To stop the Tomcat-related Windows Service, there are two methods :

a) use the "Services" applet of Windows
(e.g. "My Computer" -->  Manage -->  Services and Applications -->
Services -->  Apache Tomcat 6), right-click and choose "Stop service"

b) in a command window, use the command
net stop "Apache Tomcat 6"

II) If Tomcat is not running as a Windows Service, but in a command
window, then :

a) if you have started Tomcat with the command "startup.bat", then a
separate command window was opened to run Tomcat.
In that case, you have 2 choices to stop Tomcat :

a-1) in the same window where you started Tomcat with the command
"startup.bat", enter the command "shutdown.bat".

a-2) in the command window where Tomcat is running, enter CTRL-C

b) if you have started Tomcat with the command "catalina.bat run", then
Tomcat runs directly in the Window where you entered this command.
To stop it, type CTRL-C.

c) in any of the cases (a) or (b) above, the other methods indicated in
the previous messages will work also.


-
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: Access Log /Filter/?

2010-02-26 Thread Xie Xiaodong
Hello, Christopher,


No, there is no AccessLogFilter in Tomcat 7 for now. I've got my version of
AccessLogFilter during Google Summer Code 2009, but has not yet submit it
for some reason. Please attach your version so we could discuss it and make
an AccessLogFilter in Tomcat 7.



On Fri, Feb 26, 2010 at 10:07 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> All,
>
> I just started to write a filter that did request timing logging, and I
> looked at AccessLogValve for inspiration for how to parse a log pattern
> and then spit it out for every request.
>
> I realized that AccessLogValve can actually do everything I want it to
> do, already: log request time plus some request attributes.
>
> However, I may have occasion to want to /skip/ some of the transaction
> timing: that is, say, insert it between existing filters. That's not
> possible (that I know of) for Valves, because they are always before
> Filters in the pipeline.
>
> I believe Tomcat 7 is discarding Valves in favor of using the Filter
> interface. Is there already in existence an AccessLogFilter?
>
> I checked svn and I can see that AccessLogValve is in the 'valves'
> package, and that there /is/ a 'filters' package but it only has a
> subset of 'valves' that we've all grown to love.
>
> Is this just a class that hasn't been updated for TC7, yet?
>
> If so, I'd be happy to do the conversion and submit my code for inclusion.
>
> Thanks,
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkuIOB8ACgkQ9CaO5/Lv0PCS4ACfQxM/Oe2/4frguG3iKUbY2VmX
> FEgAn0N7e0FbuvNV5aNt2kSt3SedGCdV
> =vqsC
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Sincerely yours and Best Regards,
Xie Xiaodong


Access Log /Filter/?

2010-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I just started to write a filter that did request timing logging, and I
looked at AccessLogValve for inspiration for how to parse a log pattern
and then spit it out for every request.

I realized that AccessLogValve can actually do everything I want it to
do, already: log request time plus some request attributes.

However, I may have occasion to want to /skip/ some of the transaction
timing: that is, say, insert it between existing filters. That's not
possible (that I know of) for Valves, because they are always before
Filters in the pipeline.

I believe Tomcat 7 is discarding Valves in favor of using the Filter
interface. Is there already in existence an AccessLogFilter?

I checked svn and I can see that AccessLogValve is in the 'valves'
package, and that there /is/ a 'filters' package but it only has a
subset of 'valves' that we've all grown to love.

Is this just a class that hasn't been updated for TC7, yet?

If so, I'd be happy to do the conversion and submit my code for inclusion.

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

iEYEARECAAYFAkuIOB8ACgkQ9CaO5/Lv0PCS4ACfQxM/Oe2/4frguG3iKUbY2VmX
FEgAn0N7e0FbuvNV5aNt2kSt3SedGCdV
=vqsC
-END PGP SIGNATURE-

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



RE: log4j :ERROR LogMananger.repositorySelector was null likely duetoerror

2010-02-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: log4j :ERROR LogMananger.repositorySelector was null
> likely duetoerror
> 
> 4) Use jinfo, a program that comes with the JDK for sure, possibly with
> the JRE as well.

It doesn't come with the JRE (only the JDK), and it has severe limitations on 
Windows (the OP's platform).  For example, you may only look at specific 
command-line settings, one at a time, and not system properties in general.

 - Chuck


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely dueto error

2010-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 2/26/2010 9:13 AM, Caldarale, Charles R wrote:
>> From: Christoph Kukulies [mailto:k...@kukulies.org]
>> Subject: Re: log4j :ERROR LogMananger.repositorySelector was null
>> likely dueto error
>>
>> Is there a way to interrogate the running tomcat (catalina) process
>> about it's set parameters?
> 
> 1) Use JConsole (tricky with a service).
> 
> 2) Install LambdaProbe and look at its System Information -> System 
> Properties page.
> 
> 3) Write a trivial servlet that includes the following code:

4) Use jinfo, a program that comes with the JDK for sure, possibly with
the JRE as well.

Usage: jinfo 

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

iEYEARECAAYFAkuIMs4ACgkQ9CaO5/Lv0PBJfACbB4iQB4lAMWj4db60EOzrRDM7
0lYAoJd4ZZLszlPgN/XsmiizICMsoXuk
=02Jq
-END PGP SIGNATURE-

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



Re: Apache 2.2 and TomCat 6.0 using SSL

2010-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cyrille,

On 2/26/2010 4:22 AM, Cyrille Le Clerc wrote:
> I meant x-forwarded-proto rather than x-forwarded-for.
> 
> Here is a sample of configuration where Apache adds the header
> X-Forwarded-Proto and Tomcat RemoteIpValve handles it.

I think the OPs question is /much/ more basic than how to track proxy
traversals.

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

iEYEARECAAYFAkuIMYUACgkQ9CaO5/Lv0PA2vQCfeZThnKIZpu696ZV3QrmxeIDq
/EEAn0LZudnb0n/HJBFKQVbyAGNhgPBb
=3Mzr
-END PGP SIGNATURE-

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



RE: DB connection error -Tomcat 6 config

2010-02-26 Thread Propes, Barry L
I'm using ojdbc14_g.jar now, and have been for a  while, though I've not yet 
tried that factory class ref.

I"ll plug it in and see if it works.

Thanks, Nanjangude.
 

-Original Message-
From: Karthik Nanjangude [mailto:karthik.nanjang...@xius-bcgi.com] 
Sent: Thursday, February 25, 2010 10:58 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

Hi

I hope this helps









I have been using this from TC 5.0.18.0 ,5.0.20.0 , 5.0.24.0 And have never any 
issues with connection pool

With Oracle 10GDB , JDK1.4 /1.5,ojdbc14.jar



With regards
karthik



-Original Message-
From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
Sent: Friday, February 26, 2010 2:16 AM
To: 'Tomcat Users List'
Subject: RE: DB connection error -Tomcat 6 config

Sorry for the delay - supplying both my META-INF/context.xml and 
webapps/WEB-INF/web.xml contents.


Should be noted: for the factory type in the params below, I tried both 
factory="org.apache.commons.dbcp.BasicDataSourceFactory" and 
factory="org.apache.dbcp.BasicDataSourceFactory", each to no avail.

I removed the commons ref to test out since there's no commons/lib dir in TC 
6.0.24, unlike in TC 4.1.31

Please apprise if the error is glaring here and I just can't see it. That's 
certainly possible!

Thanks, Chuck.


context.xml in META-INF fldr
-


   




in webapps/WEB-INF/web.xml


My Ora datasource 
jdbc/myoracle
javax.sql.DataSource
Container


-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Tuesday, February 23, 2010 5:53 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

If you don't mind, post your  element again.  The error message 
indicates something doesn't match between what your JSP/servlet is requesting 
and what's registered via the  element.

 - Chuck


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


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


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



RE: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Joseph Morgan
And... if you are writing a java program do to this for you, such as a UI, then 
you'll need to essentially reverse this to start it.  PID's idea to connect to 
the port to send the shutdown command will work for shutting it down, but to 
start it back up... you'll still need to do Runtime.getRuntime().exec(...) to 
get it going again from within the Java UI.



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Friday, February 26, 2010 12:10 PM
To: Tomcat Users List
Subject: Re: Java programm to Shutdwon the tomcat server


I suggest the following :

I) If tomcat is running as a Windows service, then you should shut it 
down by stopping the Windows Service (and not by stopping down Tomcat 
directly).

To stop the Tomcat-related Windows Service, there are two methods :

a) use the "Services" applet of Windows
(e.g. "My Computer" --> Manage --> Services and Applications --> 
Services --> Apache Tomcat 6), right-click and choose "Stop service"

b) in a command window, use the command
net stop "Apache Tomcat 6"

II) If Tomcat is not running as a Windows Service, but in a command 
window, then :

a) if you have started Tomcat with the command "startup.bat", then a 
separate command window was opened to run Tomcat.
In that case, you have 2 choices to stop Tomcat :

a-1) in the same window where you started Tomcat with the command 
"startup.bat", enter the command "shutdown.bat".

a-2) in the command window where Tomcat is running, enter CTRL-C

b) if you have started Tomcat with the command "catalina.bat run", then 
Tomcat runs directly in the Window where you entered this command.
To stop it, type CTRL-C.

c) in any of the cases (a) or (b) above, the other methods indicated in 
the previous messages will work also.


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



Re: Java programm to Shutdwon the tomcat server

2010-02-26 Thread André Warnier


I suggest the following :

I) If tomcat is running as a Windows service, then you should shut it 
down by stopping the Windows Service (and not by stopping down Tomcat 
directly).


To stop the Tomcat-related Windows Service, there are two methods :

a) use the "Services" applet of Windows
(e.g. "My Computer" --> Manage --> Services and Applications --> 
Services --> Apache Tomcat 6), right-click and choose "Stop service"


b) in a command window, use the command
net stop "Apache Tomcat 6"

II) If Tomcat is not running as a Windows Service, but in a command 
window, then :


a) if you have started Tomcat with the command "startup.bat", then a 
separate command window was opened to run Tomcat.

In that case, you have 2 choices to stop Tomcat :

a-1) in the same window where you started Tomcat with the command 
"startup.bat", enter the command "shutdown.bat".


a-2) in the command window where Tomcat is running, enter CTRL-C

b) if you have started Tomcat with the command "catalina.bat run", then 
Tomcat runs directly in the Window where you entered this command.

To stop it, type CTRL-C.

c) in any of the cases (a) or (b) above, the other methods indicated in 
the previous messages will work also.



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



Re: Tomcat SSO JSESSIONIDSSO value can't be reset by browser

2010-02-26 Thread Pid

On 26/02/2010 14:58, Xiaojun Deng wrote:

On Fri, Feb 26, 2010 at 8:51 PM, Pid  wrote:

On 26/02/2010 09:59, Xiaojun Deng wrote:


On Fri, Feb 26, 2010 at 09:57:46AM +, Pid wrote:


On 26/02/2010 04:15, Xiaojun Deng wrote:


Hello,

I use the Tomcat SSO function, and I found that when I restart my tomcat
or the
session timeout, I refresh the page, the cookie JSESSIONIDSSO keep the
old value,
so I can't login my application.

And the web application's JSESSIONID works well, they can reset the
cookie value.

Is there a way to configure for the JSESSIONIDSSO?

server.xml content







Thanks.


What are your exact Tomcat, JVM, OS versions?



CentOS release 5.2 (Final) kernel 2.6.18-92.el5
Tomcat 6.0.20
JVM jdk_1.6.0_14



How many applications do you have deployed, and what is the session timeout
for each one?



I deployed 3 applications, and two session timeout are 60min, and the
rest is 5min for testing,


OK - so if you're using the SSO valve, then the longer session timeout 
should mean that the users of the app with the shorter one is 
automatically logged in again.




All the applications' JSESSIONID can be reset when the session timeout
(5min) or server restart (I checked the Firefox cookies manager),
but the JSESSIONIDSSO value can't be reset, it keep the old cookie
value, and when login into the server again, it failed caused by using
a old
cookie value, but the server have created a new session cookie.


I'm not entirely sure I understand what you mean here.  The value of 
JSESSIONID may change, but the session itself should remain intact.


What is failing, exactly, and what symptoms are you seeing?  The user is 
logged out, or an error page?




Actually, I don't know who manages the JSESSIONIDSSO, I think the
JSESSIONID managed by each application, and it can refresh when
session timeout, but why the JSESSIONIDSSO can't work well?

Thanks.


The %CATALINA_HOME%/conf/context.xml file contains a documented setting 
which allows the session to be persisted during restarts.  If it is 
enabled then the session will be restored to each user, after restart.



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







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



RE: Tomcat SSO JSESSIONIDSSO value can't be reset by browser

2010-02-26 Thread Caldarale, Charles R
> From: Xiaojun Deng [mailto:xjde...@gmail.com]
> Subject: Re: Tomcat SSO JSESSIONIDSSO value can't be reset by browser
> 
> but the JSESSIONIDSSO value can't be reset, it keep the old cookie
> value, and when login into the server again, it failed caused by using
> a old cookie value, but the server have created a new session cookie.

Do any of your webapp  elements have their own ?  (They 
shouldn't.)

Try setting requireReauthentication to true and let's see what happens.

 - Chuck


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



Re: Tomcat SSO JSESSIONIDSSO value can't be reset by browser

2010-02-26 Thread Xiaojun Deng
On Fri, Feb 26, 2010 at 8:51 PM, Pid  wrote:
> On 26/02/2010 09:59, Xiaojun Deng wrote:
>>
>> On Fri, Feb 26, 2010 at 09:57:46AM +, Pid wrote:
>>>
>>> On 26/02/2010 04:15, Xiaojun Deng wrote:

 Hello,

 I use the Tomcat SSO function, and I found that when I restart my tomcat
 or the
 session timeout, I refresh the page, the cookie JSESSIONIDSSO keep the
 old value,
 so I can't login my application.

 And the web application's JSESSIONID works well, they can reset the
 cookie value.

 Is there a way to configure for the JSESSIONIDSSO?

 server.xml content
 >>> unpackWARs="true" autoDeploy="true"
 xmlValidation="false" xmlNamespaceAware="false">

 
 
 >>> requireReauthentication="false"/>
 

 Thanks.
>>>
>>> What are your exact Tomcat, JVM, OS versions?
>>>
>>
>> CentOS release 5.2 (Final) kernel 2.6.18-92.el5
>> Tomcat 6.0.20
>> JVM jdk_1.6.0_14
>
>
> How many applications do you have deployed, and what is the session timeout
> for each one?
>

I deployed 3 applications, and two session timeout are 60min, and the
rest is 5min for testing,
All the applications' JSESSIONID can be reset when the session timeout
(5min) or server restart (I checked the Firefox cookies manager),
but the JSESSIONIDSSO value can't be reset, it keep the old cookie
value, and when login into the server again, it failed caused by using
a old
cookie value, but the server have created a new session cookie.

Actually, I don't know who manages the JSESSIONIDSSO, I think the
JSESSIONID managed by each application, and it can refresh when
session timeout, but why the JSESSIONIDSSO can't work well?

Thanks.

> p
>
>>> 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
>>>
>
>

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



RE: log4j :ERROR LogMananger.repositorySelector was null likely dueto error

2010-02-26 Thread Caldarale, Charles R
> From: Christoph Kukulies [mailto:k...@kukulies.org]
> Subject: Re: log4j :ERROR LogMananger.repositorySelector was null
> likely dueto error
> 
> Is there a way to interrogate the running tomcat (catalina) process
> about it's set parameters?

1) Use JConsole (tricky with a service).

2) Install LambdaProbe and look at its System Information -> System Properties 
page.

3) Write a trivial servlet that includes the following code:

Properties props = System.getProperties();
Object[] keys = props.keySet().toArray();

Arrays.sort(keys);

for (int i = 0; i < keys.length; i++) {
  response.getWriter().println(keys[i] + "=" + 
props.getProperty((String)keys[i]));
}

 - 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: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Joseph Morgan
Even better!

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Friday, February 26, 2010 8:00 AM
To: users@tomcat.apache.org
Subject: Re: Java programm to Shutdwon the tomcat server

On 26/02/2010 12:59, Joseph Morgan wrote:
> You can send any system command through a Java program.  Are you developing 
> or working with some kind of management tool and you want to know how to 
> program it to stop Tomcat???
>
> It depends on if you are running tomcat as a service or not, but either way, 
> you're going send your commands from java through code looking something like 
> this:
>
> Runtime.getRuntime().exec("command to shut down tomcat");
>
> Or one of the exec variants, depending on what you need to do.

Or just connect to the appropriate port, and send the shutdown command.


p

> -Original Message-
> From: dBenjamin [mailto:d...@mail.com]
> Sent: Thursday, February 25, 2010 10:30 PM
> To: users@tomcat.apache.org
> Subject: Java programm to Shutdwon the tomcat server
>
>
> Thanks for helping developers…
> Can you please help me I am facing problem to shutdown the tomcat server in
> windows platform (xp, vista, windows7).
> if you click CTRL+ C in the tomcat console window, server getting shutdown.
> Like that is any specific command to send through java program to shutdown
> the tomcat server.
>


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



RE: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Caldarale, Charles R
> From: Christoph Kukulies [mailto:k...@kukulies.org]
> Subject: Re: log4j :ERROR LogMananger.repositorySelector was null
> likely due to error
> 
> Since passing start parameters under Windows (service manager) is weird

Use the Java tab of the tomcat6w.exe program to set startup parameters for the 
service.

 - 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: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Pid

On 26/02/2010 12:59, Joseph Morgan wrote:

You can send any system command through a Java program.  Are you developing or 
working with some kind of management tool and you want to know how to program 
it to stop Tomcat???

It depends on if you are running tomcat as a service or not, but either way, 
you're going send your commands from java through code looking something like 
this:

Runtime.getRuntime().exec("command to shut down tomcat");

Or one of the exec variants, depending on what you need to do.


Or just connect to the appropriate port, and send the shutdown command.


p


-Original Message-
From: dBenjamin [mailto:d...@mail.com]
Sent: Thursday, February 25, 2010 10:30 PM
To: users@tomcat.apache.org
Subject: Java programm to Shutdwon the tomcat server


Thanks for helping developers…
Can you please help me I am facing problem to shutdown the tomcat server in
windows platform (xp, vista, windows7).
if you click CTRL+ C in the tomcat console window, server getting shutdown.
Like that is any specific command to send through java program to shutdown
the tomcat server.




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



Re: [OT] jvm exits without trace

2010-02-26 Thread André Warnier

Taylan Develioglu wrote:

for some reason I keep calling you chuck... I hope I'm not offending
anyone :O


We all do that from time to time.
It comes from the fact that we know he (Chuck) is always watching us 
from the sidelines, to catch anyone who doesn't know his Servlet Specs 
from his Socket Programming Guidelines.


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread André Warnier

Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 11:16, Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)


I normally set in on the command line using the setenv.sh|bat file with
CATALINA_OPTS=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false 



I think you can also set it in catalina.properties but I'd need to 
check that to be sure.


Mark

Is there a way to interrogate the running tomcat (catalina) process 
about it's set parameters?
I.e., I would like to control whether the setting in the 
catalina.properties file was fruitful :)



Have a look at : http://code.google.com/p/jmxsh/
(It's a generic tool, but quite practical for that kind of thing and more.)

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



Re: [OT] jvm exits without trace

2010-02-26 Thread Taylan Develioglu
for some reason I keep calling you chuck... I hope I'm not offending
anyone :O

On Fri, 2010-02-26 at 13:55 +0100, Taylan Develioglu wrote:
> Chuck I am aware.
> 
> A SIGSEGV is a signal sent by the kernel. Not a violation itsself.
> 
> A sigsegv is sent when an invalid memory access is attempted by a
> process in userspace, in other words a page fault occurs, when the page
> is actually present in physical memory but cannot be accessed by the
> program. 
> When this kind of violation occurs the a sigsegv is sent by the kernel
> to the violating program.
> 
> At least that's what 'Understanding the linux kernel' leads me to
> believe (chapter process address space, page fault exception handler
> p376 - 378).
> 
> On Thu, 2010-02-25 at 22:36 +0100, Christopher Schultz wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> > 
> > Taylan,
> > 
> > On 2/24/2010 8:31 AM, Taylan Develioglu wrote:
> > > We have also had failures with hotspot error files (hs_err) present, and
> > > the cause specified was indeed SIGSEGV indicating a page fault. But I
> > > don't know if the two are related.
> > 
> > Just to be clear, a SIGSEGV is a "segmentation violation" (memory read
> > outside process space), not a "page fault", which is a perfectly normal
> > thing to occur during execution. The latter is a virtual memory matter
> > handled by the operating system and should be transparent (other than a
> > delay) to the application.
> > 
> > http://en.wikipedia.org/wiki/Segmentation_violation
> > http://en.wikipedia.org/wiki/Page_fault
> > 
> > The Wikipedia page for "Page fault" does indicate that "Invalid page
> > fault" is a term that essentially means "null pointer dereference" but
> > I've never heard that term used, ever.
> > 
> > - -chris
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.10 (MingW32)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> > 
> > iEYEARECAAYFAkuG7UMACgkQ9CaO5/Lv0PAdLgCfUypdTf332QZ6JHyTzPlS4Lu5
> > 4xMAnReYrzhvO9xiSS7qB331Tq5DwPpx
> > =5cqn
> > -END PGP SIGNATURE-
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 



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



Re: jvm exits without trace

2010-02-26 Thread Taylan Develioglu
Hi Chris, 

There's no doubt about it. The amount free is what's left after
everything is taken into account, heap, jvm, jni, permgen.

And trust me I'd like it to be the oom killer, but it's not.

They could survive, but then I could throw away half of my ram. Not
seeing any point in doing that (doesn't fix the problem).

On Thu, 2010-02-25 at 22:38 +0100, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Taylann,
> 
> On 2/24/2010 8:31 AM, Taylan Develioglu wrote:
> > Most memory is commited to tomcat, where a 24G machine would have 18G
> > allocated to heap, 128M to permgen and some unspecified amount would get
> > used by jni for apr. About 4G remains free after calculating taking into
> > account the jvm itsself.
> > A 16G machine would have 12G allocated to the heap.
> 
> Are you sure the rest of the JVM can fit into this space? I've heard of
> JVMs (particularly on Windows) that take a significant chunk of memory
> on top of the heap space requested on the command-line.
> 
> Definitely check your system logs for OOM killer, here.
> 
> What happens if you cut your heap in half? Can each machine in your
> (probably) cluster survive with less heap space?
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkuG7cEACgkQ9CaO5/Lv0PDRtgCfd7qBww9EUP9whAf6ZlvSvl02
> VnYAoK6f6GTY1vBzw3QW0phnr/53gBYG
> =8thi
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 



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



RE: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Joseph Morgan
You can send any system command through a Java program.  Are you developing or 
working with some kind of management tool and you want to know how to program 
it to stop Tomcat???

It depends on if you are running tomcat as a service or not, but either way, 
you're going send your commands from java through code looking something like 
this:

Runtime.getRuntime().exec("command to shut down tomcat");

Or one of the exec variants, depending on what you need to do.


-Original Message-
From: dBenjamin [mailto:d...@mail.com] 
Sent: Thursday, February 25, 2010 10:30 PM
To: users@tomcat.apache.org
Subject: Java programm to Shutdwon the tomcat server


Thanks for helping developers…
Can you please help me I am facing problem to shutdown the tomcat server in
windows platform (xp, vista, windows7). 
if you click CTRL+ C in the tomcat console window, server getting shutdown.
Like that is any specific command to send through java program to shutdown
the tomcat server. 

-- 
View this message in context: 
http://old.nabble.com/Java-programm-to-Shutdwon-the-tomcat-server-tp27714568p27714568.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: [OT] jvm exits without trace

2010-02-26 Thread Taylan Develioglu
Chuck I am aware.

A SIGSEGV is a signal sent by the kernel. Not a violation itsself.

A sigsegv is sent when an invalid memory access is attempted by a
process in userspace, in other words a page fault occurs, when the page
is actually present in physical memory but cannot be accessed by the
program. 
When this kind of violation occurs the a sigsegv is sent by the kernel
to the violating program.

At least that's what 'Understanding the linux kernel' leads me to
believe (chapter process address space, page fault exception handler
p376 - 378).

On Thu, 2010-02-25 at 22:36 +0100, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Taylan,
> 
> On 2/24/2010 8:31 AM, Taylan Develioglu wrote:
> > We have also had failures with hotspot error files (hs_err) present, and
> > the cause specified was indeed SIGSEGV indicating a page fault. But I
> > don't know if the two are related.
> 
> Just to be clear, a SIGSEGV is a "segmentation violation" (memory read
> outside process space), not a "page fault", which is a perfectly normal
> thing to occur during execution. The latter is a virtual memory matter
> handled by the operating system and should be transparent (other than a
> delay) to the application.
> 
> http://en.wikipedia.org/wiki/Segmentation_violation
> http://en.wikipedia.org/wiki/Page_fault
> 
> The Wikipedia page for "Page fault" does indicate that "Invalid page
> fault" is a term that essentially means "null pointer dereference" but
> I've never heard that term used, ever.
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkuG7UMACgkQ9CaO5/Lv0PAdLgCfUypdTf332QZ6JHyTzPlS4Lu5
> 4xMAnReYrzhvO9xiSS7qB331Tq5DwPpx
> =5cqn
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 



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



Re: broken pipe system error 109 when stopping tomcat6 under windows XP

2010-02-26 Thread Mladen Turk

On 02/26/2010 01:04 PM, Christoph Kukulies wrote:

When I stop tomcat (6.0.24) manually from the command line by

net stop tomcat6

I'm getting:

C:\Programme\Apache_Group\Tomcat_6.0\conf>net stop tomcat6
Systemfehler 109 aufgetreten.



Try with commons-daemon-1.0.2
See the 'Tomcat 6.0.12 in windows vista 64 bits does not start'
how to download and use.

Regards
--
^TM

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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 11:16, Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)


I normally set in on the command line using the setenv.sh|bat file with
CATALINA_OPTS=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false 



I think you can also set it in catalina.properties but I'd need to 
check that to be sure.


Mark

Is there a way to interrogate the running tomcat (catalina) process 
about it's set parameters?
I.e., I would like to control whether the setting in the 
catalina.properties file was fruitful :)


--
Christoph


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



broken pipe system error 109 when stopping tomcat6 under windows XP

2010-02-26 Thread Christoph Kukulies

When I stop tomcat (6.0.24) manually from the command line by

net stop tomcat6

I'm getting:

C:\Programme\Apache_Group\Tomcat_6.0\conf>net stop tomcat6
Systemfehler 109 aufgetreten.

Die Pipe wurde beendet.


C:\Programme\Apache_Group\Tomcat_6.0\conf>net start tomcat6
Apache Tomcat 6 wird gestartet..
Apache Tomcat 6 wurde erfolgreich gestartet.



Stopping the service in the Service manager doesn't yield this error.

Maybe some pipe broken (log4j?)?

--
Christoph


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



Re: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-02-26 Thread Mladen Turk

On 02/26/2010 11:43 AM, iainmac wrote:


Thanks - is it safe to use that with 6.0.24?



Download from
http://commons.apache.org/downloads/download_daemon.cgi
Click on the 'browse download area'
and go to the binaries -> 1.0.2 -> windows
Download and extract .zip file and then rename
procrun.exe to tomcat6.exe  for the required CPU arch.
Rename procrunw.exe to tomcat6w.exe (same for all platforms)
and copy those two files inside Tomcat bin directory.

This is procedure we are going to implement with
next Tomcat releases instead maintaining our
set of binaries. Renaming and downloading will
took place at build time of course.


Regards
--
^TM

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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 11:16, Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)


I normally set in on the command line using the setenv.sh|bat file with
CATALINA_OPTS=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false 



I think you can also set it in catalina.properties but I'd need to 
check that to be sure.


Mark

Since passing start parameters under Windows (service manager) is weird 
somehow I decided to put it

in catalina.properties and will see how it works out.

--
Christoph


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Mark Thomas

On 26/02/2010 11:16, Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)


I normally set in on the command line using the setenv.sh|bat file with
CATALINA_OPTS=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false

I think you can also set it in catalina.properties but I'd need to check 
that to be sure.


Mark



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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:
I would be glad if I could get some help on m problem getting solved 
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)

--
Christoph


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:
I would be glad if I could get some help on m problem getting solved 
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark


Thanks. Great answer!
Will try that. Probably will have to try it on 6.0.24 now since I moved 
to that meanwhile. :)


--
Christoph

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



Re: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-02-26 Thread Mark Thomas

On 26/02/2010 10:43, iainmac wrote:


Thanks - is it safe to use that with 6.0.24?


Yes. The binary is the same across all Tomcat versions. It just gets 
renamed for each version (you'll need to do that too).


Mark



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



Re: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-02-26 Thread iainmac

Thanks - is it safe to use that with 6.0.24?



Mark Thomas wrote:
> 
> On 26/02/2010 10:15, iainmac wrote:
>>
>> Hi,
>>
>> That link doesnt work - can anyone tell us where its gone?
> 
> http://svn.apache.org/repos/asf/tomcat/trunk/res/procrun/amd64/
> 
> The binary is from commons daemon. Mladen just did a commons-daemon 
> release and that is actually the most up to date version. It should be 
> available from the commons download pages.
> 
> Mark
> 
>>
>> Thanks,
>> Iain
>>
>> n828cl wrote:
>>>
 From: Mr Popo Sama [mailto:mrpopo...@yahoo.com.ar]
 Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start

 sorry it is tomcat version 6.0.18 not .12

 - Mensaje original 
 De: Mr Popo Sama
 Para: users@tomcat.apache.org
 Enviado: miércoles 13 de agosto de 2008, 14:42:27
 Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start

 Hi, i am having trouble starting up the tomcat server in
 windows vista 64bits with java 64
>>>
>>> You are likely using the 32-bit versions of the service wrapper.  Get
>>> the
>>> 64-bit ones here:
>>> https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/
>>>
>>> Change the "5" in the names to "6", and replace the existing ones in
>>> Tomcat's bin directory with the renamed downloaded ones.
>>>
>>>   - 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 start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>>
>>
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-6.0.12-in-windows-vista-64-bits-does-not-start-tp18967895p27716773.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: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Mark Thomas

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark



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



Re: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-02-26 Thread Mark Thomas

On 26/02/2010 10:15, iainmac wrote:


Hi,

That link doesnt work - can anyone tell us where its gone?


http://svn.apache.org/repos/asf/tomcat/trunk/res/procrun/amd64/

The binary is from commons daemon. Mladen just did a commons-daemon 
release and that is actually the most up to date version. It should be 
available from the commons download pages.


Mark



Thanks,
Iain

n828cl wrote:



From: Mr Popo Sama [mailto:mrpopo...@yahoo.com.ar]
Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start

sorry it is tomcat version 6.0.18 not .12

- Mensaje original 
De: Mr Popo Sama
Para: users@tomcat.apache.org
Enviado: miércoles 13 de agosto de 2008, 14:42:27
Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start

Hi, i am having trouble starting up the tomcat server in
windows vista 64bits with java 64


You are likely using the 32-bit versions of the service wrapper.  Get the
64-bit ones here:
https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/

Change the "5" in the names to "6", and replace the existing ones in
Tomcat's bin directory with the renamed downloaded ones.

  - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org










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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Pid schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I'm turning to this mailing list now after I posted my problem to the
Opencms mailing list at opencms.org. And someone from that list gave me
a hint that my problem could possibly have something to do with the
folling citation:

http://mail-archives.apache.org/mod_mbox//logging-log4j-user/200804.mbox/%3c6d42962c-5db1-4acb-bb3a-d9d0d91e9...@apache.org%3e 




This is the text I posted to the opencms list and I'm just repeating it
here:


Christoph P. Kukulies schrieb:
 > We stop and start Tomcat6.0.10 and Apache2.2 every midnight during 
the

 > backup of our intranet machine.
 >
 > Since a couple of days the first access in the morning, when the
 > secretary wants to log into opencms, produces the error below:
 >
 >
 > HTTP Status 500 -
 >
 > type Exception report
 >
 > message
 >
 > description The server encountered an internal error () that 
prevented

 > it from fulfilling this request.
 >
 > exception
 >
 > org.opencms.main.CmsInitException: Critical error during OpenCms
 > initialization: Unable to initialize the user driver.
 > org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:290)
 > org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:127)
 > javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 >
 > note The full stack trace of the root cause is available in the 
Apache

 > Tomcat/6.0.10 logs.
 > Apache Tomcat/6.0.10


What happens if you use the latest Tomcat version (rather than one 
released in Feb 2007)?



p

Will possibly try that. But updating log4j would be less painful if that 
would solve the problem.
Curing problems simply by updating to a newer version could bring other 
unexpected problems.


--
Christoph


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



RE: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-02-26 Thread iainmac

Hi,

That link doesnt work - can anyone tell us where its gone?

Thanks,
Iain

n828cl wrote:
> 
>> From: Mr Popo Sama [mailto:mrpopo...@yahoo.com.ar]
>> Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start
>>
>> sorry it is tomcat version 6.0.18 not .12
>>
>> - Mensaje original 
>> De: Mr Popo Sama 
>> Para: users@tomcat.apache.org
>> Enviado: miércoles 13 de agosto de 2008, 14:42:27
>> Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start
>>
>> Hi, i am having trouble starting up the tomcat server in
>> windows vista 64bits with java 64
> 
> You are likely using the 32-bit versions of the service wrapper.  Get the
> 64-bit ones here:
> https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/
> 
> Change the "5" in the names to "6", and replace the existing ones in
> Tomcat's bin directory with the renamed downloaded ones.
> 
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-6.0.12-in-windows-vista-64-bits-does-not-start-tp18967895p27716519.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat SSO JSESSIONIDSSO value can't be reset by browser

2010-02-26 Thread Xiaojun Deng
On Fri, Feb 26, 2010 at 09:57:46AM +, Pid wrote:
>On 26/02/2010 04:15, Xiaojun Deng wrote:
>>Hello,
>>
>>I use the Tomcat SSO function, and I found that when I restart my tomcat or 
>>the
>>session timeout, I refresh the page, the cookie JSESSIONIDSSO keep the old 
>>value,
>>so I can't login my application.
>>
>>And the web application's JSESSIONID works well, they can reset the cookie 
>>value.
>>
>>Is there a way to configure for the JSESSIONIDSSO?
>>
>>server.xml content
>>>unpackWARs="true" autoDeploy="true"
>>xmlValidation="false" xmlNamespaceAware="false">
>>
>>
>>
>>>requireReauthentication="false"/>
>>
>>
>>Thanks.
>
>What are your exact Tomcat, JVM, OS versions?
>

CentOS release 5.2 (Final) kernel 2.6.18-92.el5
Tomcat 6.0.20
JVM jdk_1.6.0_14

>
>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
>

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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Pid

On 26/02/2010 09:47, Christoph Kukulies wrote:

I'm turning to this mailing list now after I posted my problem to the
Opencms mailing list at opencms.org. And someone from that list gave me
a hint that my problem could possibly have something to do with the
folling citation:

http://mail-archives.apache.org/mod_mbox//logging-log4j-user/200804.mbox/%3c6d42962c-5db1-4acb-bb3a-d9d0d91e9...@apache.org%3e


This is the text I posted to the opencms list and I'm just repeating it
here:


Christoph P. Kukulies schrieb:
 > We stop and start Tomcat6.0.10 and Apache2.2 every midnight during the
 > backup of our intranet machine.
 >
 > Since a couple of days the first access in the morning, when the
 > secretary wants to log into opencms, produces the error below:
 >
 >
 > HTTP Status 500 -
 >
 > type Exception report
 >
 > message
 >
 > description The server encountered an internal error () that prevented
 > it from fulfilling this request.
 >
 > exception
 >
 > org.opencms.main.CmsInitException: Critical error during OpenCms
 > initialization: Unable to initialize the user driver.
 > org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:290)
 > org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:127)
 > javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 >
 > note The full stack trace of the root cause is available in the Apache
 > Tomcat/6.0.10 logs.
 > Apache Tomcat/6.0.10


What happens if you use the latest Tomcat version (rather than one 
released in Feb 2007)?



p



 > Looking into Tomcat/logs/stdout_20100226.log I see:
 >
 >
 >
 > 
 > The following critical error occurred:
 > Critical error during OpenCms initialization: Unable to initialize the
 > user driv
 > er.
 > Giving up, unable to start OpenCms.
 > 
 > log4j:ERROR LogMananger.repositorySelector was null likely due to error
 > in class
 > reloading, using NOPLoggerRepository.
 >
 >
 > Starting OpenCms, version 7.5.0 in web application "ROOT"
 >
 > Copyright (c) 2009 Alkacon Software GmbH
 > OpenCms comes with ABSOLUTELY NO WARRANTY
 > This is free software, and you are welcome to
 > redistribute it under certain conditions.
 > Please see the GNU Lesser General Public Licence for
 > further details.
 >


I would be glad if I could get some help on m problem getting solved here.

Thanks.

--
Christoph



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




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



Re: Tomcat SSO JSESSIONIDSSO value can't be reset by browser

2010-02-26 Thread Pid

On 26/02/2010 04:15, Xiaojun Deng wrote:

Hello,

I use the Tomcat SSO function, and I found that when I restart my tomcat or the
session timeout, I refresh the page, the cookie JSESSIONIDSSO keep the old 
value,
so I can't login my application.

And the web application's JSESSIONID works well, they can reset the cookie 
value.

Is there a way to configure for the JSESSIONIDSSO?

server.xml content







Thanks.


What are your exact Tomcat, JVM, OS versions?


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: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Pid

On 26/02/2010 04:29, dBenjamin wrote:


Thanks for helping developers…
Can you please help me I am facing problem to shutdown the tomcat server in
windows platform (xp, vista, windows7).
if you click CTRL+ C in the tomcat console window, server getting shutdown.
Like that is any specific command to send through java program to shutdown
the tomcat server.



I'm not sure I completely understand what you're asking.

Are you asking how to shutdown the server?


p

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



Re: Apache 2.2.3(mod_proxy_ajp) - Tomcat 6.0.13 Loadbalancing - error logs in apache

2010-02-26 Thread Pid

On 26/02/2010 06:36, jkv wrote:


We are using the above setup to load balance http and https request, for
https request


Apache HTTPD 2.2.3 was released on 28 Jul 2006, you should definitely 
upgrade to the latest version, there have been *many* important updates 
since then.


Tomcat 6.0.13 was released on 14 May 2007, you should definitely upgrade 
to the latest version.


Please let us know if the upgraded applications still display the same 
problem.



p


Apache is configured to serve the certificates and the request is actually
being processed
by 3 tomcat instances (TomcatA, TomcatB, TomcatB)running behind. We are
getting a strange log in apache

[error] ajp_read_header: ajp_ilink_receive failed
[error] (120006)APR does not understand this error code: proxy: read
response failed from (null) (localhost)

I have another question like, when Apache forwards a http/https request to
tomcat and suppose that tomcat takes too long to respond! will the same
request be routed to a different tomcat??
As we have not configured sticky sessions in Apache, We are having many
instances where in the java application in TomcatA takes too long (throws
exception because it waits to connect to another host which takes too long)
in responding back to Apache and I can see logs in other tomcats, say
TomcatB and TomcatC with a session Id x.NodeA, with
empty body which throws exceptions in my application level, why does this
occur and can this be eliminated?? I am not sure that this occurs only for
https request where we get empty body.

Apache configurations are as follows


Order deny,allow
Allow from all
BalancerMember ajp://localhost:8109/test route=NodeA
BalancerMember ajp://localhost:8209/test route=NodeB
 BalancerMember ajp://localhost:8309/test route=NodeC


ProxyPass /test balancer://tomcatcluster lbmethod=byrequests nofailover=On
ProxyPassReverse /test  ajp://localhost:8109/test
ProxyPassReverse /test  ajp://localhost:8209/test
ProxyPassReverse /test  ajp://localhost:8309/test

Thanks in advance.



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



log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
I'm turning to this mailing list now after I posted my problem to the 
Opencms mailing list at opencms.org.  And someone from that list gave me 
a hint that my problem could possibly have something to do with the 
folling citation:


http://mail-archives.apache.org/mod_mbox//logging-log4j-user/200804.mbox/%3c6d42962c-5db1-4acb-bb3a-d9d0d91e9...@apache.org%3e

This is the text I posted to the opencms list and I'm just repeating it 
here:



Christoph P. Kukulies schrieb:
> We stop and start Tomcat6.0.10  and Apache2.2 every midnight during the
> backup of our intranet machine.
>
> Since a couple of days the first access in the morning, when the
> secretary wants to log into opencms, produces the error below:
>
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.opencms.main.CmsInitException: Critical error during OpenCms
> initialization: Unable to initialize the user driver.
>   org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:290)
>   org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:127)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/6.0.10 logs.
> Apache Tomcat/6.0.10
>
>
> Looking into Tomcat/logs/stdout_20100226.log I see:
>
>
>
> 
> The following critical error occurred:
> Critical error during OpenCms initialization: Unable to initialize the
> user driv
> er.
> Giving up, unable to start OpenCms.
> 
> log4j:ERROR LogMananger.repositorySelector was null likely due to error
> in class
>  reloading, using NOPLoggerRepository.
>
>
> Starting OpenCms, version 7.5.0 in web application "ROOT"
>
> Copyright (c) 2009 Alkacon Software GmbH
> OpenCms comes with ABSOLUTELY NO WARRANTY
> This is free software, and you are welcome to
> redistribute it under certain conditions.
> Please see the GNU Lesser General Public Licence for
> further details.
>


I would be glad if I could get some help on m problem getting solved here.

Thanks.

--
Christoph



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



Re: listing directory content outside tomcat root

2010-02-26 Thread Pid

On 26/02/2010 08:27, Ivan Longhi wrote:

hi christopher,

On Thu, Feb 25, 2010 at 9:33 PM, Christopher Schultz
  wrote:

You shouldn't declare  elements within conf/server.xml in any
currently-supported version of Tomcat. Instead, put everything you need
in your webapp's META-INF/context.xml file. Remember that "path" and
"docBase" parameters are not allowed.


ok, but since /path_to_some_dir/ is outside tomcat root (
$CATALINA_HOME ), how can I tell tomcat to look for
/path_to_some_dir/META-INF/context.xml file?


In that case, the method is to manually deploy the context.xml as 
conf/Catalina/hostname/appname.xml.  You may set a docBase in this 
situation.



p

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



Re: Apache 2.2 and TomCat 6.0 using SSL

2010-02-26 Thread Cyrille Le Clerc
My mistake,

I meant x-forwarded-proto rather than x-forwarded-for.

Here is a sample of configuration where Apache adds the header
X-Forwarded-Proto and Tomcat RemoteIpValve handles it.

APACHE CONFIGURATION
=
# 'myapplication' cluster

   BalancerMember  http://node-1:8080 route=node-1
   ...
   BalancerMember  http://node-n:8080 route=node-n


# Declare X-Forwarded-Proto as "http" for incoming request
RequestHeader set X-Forwarded-Proto "http"
...



# mod_ssl configuration
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "/private/etc/apache2/server.crt"
SSLCertificateKeyFile "/private/etc/apache2/server.key"

# Overwrite X-Forwarded-Proto declaration for port 443, request are "https"
RequestHeader set X-Forwarded-Proto "https"
...

..
ProxyPreserveHost On
ProxyPass /mypath balancer://myapplicationssl/mypath stickysession=JSESSIONID

TOMCAT CONFIGURATION
=


   ...
   
  
  
 
 

 
 

 ...
 
  
   



Hope this helps,

Cyrille




On Thu, Feb 25, 2010 at 5:44 PM, Cyrille Le Clerc  wrote:
>
> Hello,
>
> We tried to detail precisely on a blog post named "Tomcat, SSL,
> communications sécurisées et X-Forwarded-Proto" (1) different
> solutions to handle SSL with Tomcat including decrypting https on the
> Apache layer. It is written in french but there are many schemas and
> it is google translate friendly.
>
> My preferred solution is to use the RemoteIpValve in Tomcat in
> addition with the X-Forwarded-For http header set in Apache httpd.
> Another solution is to create two connectors in Tomcat, a non secured
> one and a secured one.
>
> Please note that RemoteIpValve has been introduced in version 6.0.24
> of Tomcat and is available for previous versions in a separate jar
> (2).
>
> Hope this helps,
>
> Cyrille
>
> --
> Cyrille Le Clerc
> clecl...@xebia.fr
>
> (1) 
> http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/
> (2) http://code.google.com/p/xebia-france/wiki/RemoteIpValve
>
> On Thu, Feb 25, 2010 at 4:56 PM, sikorsky  wrote:
> >
> > I'm new to Apache 2.2 and TomCat 6.0.  I thought I could use SSL on my 
> > Apache
> > web server and not need to have SSL on my TomCat applications.  Especially
> > since they are both on the same server.  I installed an Entrust Cert on my
> > Apache webserver and it works fine with https.  When I redirect to the
> > TomCat servlet I get a 404.  If I switch to http everything works fine.
> > Shouldn't I be able to use https/443on my web server and http/8080 on the
> > app server without issue?  How?
> > --
> > View this message in context: 
> > http://old.nabble.com/Apache-2.2-and-TomCat-6.0-using-SSL-tp27714427p27714427.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
> >

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



[ANN] Apache Tomcat Connectors 1.2.29 released

2010-02-26 Thread Mladen Turk

The Apache Tomcat team announces the immediate availability of
Apache Tomcat Connectors 1.2.29 stable.

Apache Tomcat Connectors 1.2.29 concentrates mainly on bug fixes.

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

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

Please note that syncing the release to the download mirrors
might take up to 48 hours.


Thank you,
--
The Tomcat Team

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



Re: listing directory content outside tomcat root

2010-02-26 Thread Ivan Longhi
hi christopher,

On Thu, Feb 25, 2010 at 9:33 PM, Christopher Schultz
 wrote:
> You shouldn't declare  elements within conf/server.xml in any
> currently-supported version of Tomcat. Instead, put everything you need
> in your webapp's META-INF/context.xml file. Remember that "path" and
> "docBase" parameters are not allowed.

ok, but since /path_to_some_dir/ is outside tomcat root (
$CATALINA_HOME ), how can I tell tomcat to look for
/path_to_some_dir/META-INF/context.xml file?

-- 
ciao,
ivan

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