AW: Tomcat 7 doesn't start on Windows

2013-02-28 Thread Stadelmann Josef
Where does CATALINA_HOME point to?
Josef

-Ursprüngliche Nachricht-
Von: André Warnier [mailto:a...@ice-sa.com] 
Gesendet: Mittwoch, 27. Februar 2013 13:38
An: Tomcat Users List
Betreff: Re: Tomcat 7 doesn't start on Windows

Giles wrote:
 On 27 February 2013 11:52, André Warnier a...@ice-sa.com wrote:
 computer repair centre wrote:
 On Wed, Feb 27, 2013 at 10:18 AM, Rune Stilling s...@rdfined.dk wrote:
 Hi again

 Thanks for your answers. I have given up. I have tried some of the
 suggestions:

 * Uninstall all JVM's and Tomcats (and reinstall)
 * Checked dependcies, yes there were two, that are also present on 
 another machine running Tomcat7 (TCP/IP, ADF)
 * Tried to use client/jvm.dll instead of server/jvm.dll

 Nothing helps - I can still only run the service from the command prompt.
 I find it strange though, that Tomcat isn't able to log anything at 
 all about this, but maybe it's all Windows fault?

 Hopefully things will work on a new VPS, and I'll quit the old one.

 /Rune

 Den 26/02/2013 kl. 13.04 skrev Rune Stilling s...@rdfined.dk:



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


 Hi Rune,

 Please can you provide the value of the JAVA_HOME environment variable?

 That has nothing to do with the matter. The wrapper (tomcat7.exe) 
 takes the path of the JVM to run from the Registry, not from environment 
 variables.
 Run tomcat7w.exe and check the Java tab.
 
 But it is used by service.bat when installing the service. This issue 
 could be caused by using the 64-bit installation with the 32-bit JVM.
 This would explain why calling the wrapper directly from the command 
 line does execute successfully.
 

I believe that the above statement is false.
Whether you run the command
tomcat7 //TS/Tomcat7
from a command-line window, or you let the Windows Service Manager run the same 
command, does not change the fact that tomcat7(.exe) takes its parameters 
from the same place in the Registry.
So if it works one way, and not the other, it is not because of that Registry 
setting nor bacause the JAVA_HOME environment variable.


-
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



Windows Authentication on Tomcat 7.0.37 and JRE 7u13 / 64-bit

2013-02-28 Thread Chris Fors


Trying to get Windows
Authentication operational using the Tomcat Built-in method.  Implemented the 
following but not
observed any Windows / Kerberos authentication occuring: 

-  
Domain joined
windows member server

-  
Domain service
account

-  
Delegated SPN for
HTTP protocol on the member server to the service account

-  
Generated keytab
file for the service account and saved in $catalina.base\conf folder

-  
Created Valve in context.xml of className 
org.apache.catalina.authenticator.SpnegoAuthenticator 

-  
Created krb5.ini and
saved in $catalina.base\conf folder 

-  
Created jaas.conf and
saved in $catalina.base\conf folder 

 

After this still no observed
effect on logon authentications – all still apparently anonymous.  

 Anyone had success with this ? Any ideas on what is missing?Is there a good 
way to
debug the process? 


Thanks
  

Multiple JSESSIONID

2013-02-28 Thread Jose María Zaragoza
Hello:

We're using Tomcat 6.0.24 as servlet container

This server listens for requests under the URL
www.mydomain.com/app/myaplication/


I've seen in my web browser that it has got 2 JSESSIONID for the same
domain at the same time


JSESSIONID: x
www.mydomain.com
/

and

JSESSIONID: 
www.mydomain.com
/app/myapplication/


Cheking request to my Tomcat server, I see


POST /app/myaplication/action/play.do

Cookie: DWRSESSIONID=F71Wlww0mrwuExOQoE3aLslewQj;
JSESSIONID=x;
JSESSIONID=yy;


How does Tomcat server handle this situation ? I'm talking about
session managing
Does it read the first JSESSIONID ? Does it read every JSESSIONID ?
Can this cause problems ?

I know I can rename JSESSIONID  when it's serve by my Tomcat server,
but I want to be sure that I need to do that

Thanks and regards

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



Re: Windows Authentication on Tomcat 7.0.37 and JRE 7u13 / 64-bit

2013-02-28 Thread André Warnier

Chris Fors wrote:


Trying to get Windows
Authentication operational using the Tomcat Built-in method.  Implemented the 
following but not
observed any Windows / Kerberos authentication occuring: 

-  
Domain joined

windows member server

-  
Domain service

account

-  
Delegated SPN for

HTTP protocol on the member server to the service account

-  
Generated keytab

file for the service account and saved in $catalina.base\conf folder

-  
Created Valve in context.xml of className org.apache.catalina.authenticator.SpnegoAuthenticator 

-  
Created krb5.ini and
saved in $catalina.base\conf folder 

-  
Created jaas.conf and
saved in $catalina.base\conf folder 

 


After this still no observed
effect on logon authentications – all still apparently anonymous.  


 Anyone had success with this ? Any ideas on what is missing?Is there a good 
way to
debug the process? 





What is the OS platform ?

To debug the process : other than what you already did above, a network trace  with 
Wireshark or similar ? (should be SMB exchanges I suppose)


Another couple of questions :
- is the client workstation that accesses the Tomcat server, itself in the Domain to which 
you are trying to authenticate ?
- from the point of view of that workstation and its browser, is that Tomcat server 
considered as inside the Domain, or at least trusted ?

(because if not, then the browser will not even /try/ to use WIA authentication)



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



Re: Problem with log level in tomcat.

2013-02-28 Thread Jesse Farinacci
Greetings,

On Thu, Feb 28, 2013 at 5:28 AM, Vihari Piratla viharipira...@gmail.com wrote:
 I am trying to set the logging level of a webapp deployed on tomcat.
 but I cant see the debug or fine logs in catalina.out.
 What am I missing?

You configured the logging handlers only, and picked up the default
logging level. Append the line:

.level = ALL

and then restart Apache Tomcat. After that, a detailed review of
http://tomcat.apache.org/tomcat-7.0-doc/logging.html would be useful
for you.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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



Re: Problem with log level in tomcat.

2013-02-28 Thread Vihari Piratla
I append the line .level = ALL in the file but I can see only fine level
log of catalina but not of  the webapp.
I am using the handler org.apache.comons.logging framework to log and I
just want the fine level log of my webapp.
How can I do this?



On Thu, Feb 28, 2013 at 5:17 PM, Jesse Farinacci jie...@gmail.com wrote:

 Greetings,

 On Thu, Feb 28, 2013 at 5:28 AM, Vihari Piratla viharipira...@gmail.com
 wrote:
  I am trying to set the logging level of a webapp deployed on tomcat.
  but I cant see the debug or fine logs in catalina.out.
  What am I missing?

 You configured the logging handlers only, and picked up the default
 logging level. Append the line:

 .level = ALL

 and then restart Apache Tomcat. After that, a detailed review of
 http://tomcat.apache.org/tomcat-7.0-doc/logging.html would be useful
 for you.

 -Jesse

 --
 There are 10 types of people in this world, those
 that can read binary and those that can not.

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




-- 
Vihari Piratla.
students.iitmandi.ac.in/~p_vihari
*If you can dream it, You can make it*


Re: tomcat-7.0.35 ON Window Server SP 2

2013-02-28 Thread Michael-O
 Michael-O wrote:
  Am 2013-02-27 19:36, schrieb André Warnier:
  dku...@ccilindia.co.in wrote:
  Hi,
 
  I have downloaded apache-tomcat-7.0.35.zip and runiing it on Window
  Server SP 2 machine and it is working fine. Is it OK to run
  apache-tomcat-7.0.35 setup on Window Server SP 2 machine?
  Please reply.
 
  Server version: Apache Tomcat/7.0.35
  OS Name:Windows Server SP 2  32 bit
 
 
 
  On the home page of Tomcat, at : http://tomcat.apache.org/,
  - there is a link Which version, which gives a quick overview of the
  available versions an the corresponding Java versions required etc.
  - there is also a link Download .. Tomcat 7.0. This leads to a page
  which shows the current version of Tomcat 7.x available for download.
  This current version is 7.0.37.
  Further down that page, in the section entitled 7.0.37, it shows the
  various packages available for download, and there is also a link to a
  README.  This README page provides plenty of information regarding
 which
  package contains what, and the kind of platform and installation that
 it
  corresponds to.
 
  Now considering all that,
  - why did you download and install a version 7.0.35, instead of the
  latest 7.0.37 ? (and where did you get it from ?)
  - why did you not download and install either the 32-bit Windows zip,
 or
  the 32/64-bit Windows Service Installer ?
 
  And in short, why do you waste /our/ time instead of spending some of
  /your/ time to at least read what people have already written and
 posted
  on the website for everyone to see ?
  
  Why are you even answering this? The guy is not even capable to provide 
  full OS information.
  
 Because otherwise, tomorrow he is going to come back and tell us that he
 downloaded the 
 64-bit Itanium zip version and loaded it on his iPhone, tell us that it
 works fine and ask 
 us if it is ok.

If so this would be a breakthrough achievement.

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



Custom ELResolver on tomcat 7.0.23

2013-02-28 Thread Jayakrishnan Radhakrishnan
Hello everyone,

I am trying to get a CustomELResolver working on tomcat 7.0.23 , but in vain.

It appears to have added the CustomResolver, to the JSP Application context, 
successfully. But doesn't seem to get invoked.

Any one has any clues, what might be the problem ?

I am using  servlet3, and jsp 2.2 .

Thanks and regards
Jayakrishnan


DISCLAIMER: The information in this e-mail and any attachment is intended only 
for the person to whom it is addressed and may contain confidential and/or 
privileged material. If you have received this e-mail in error, kindly contact 
the sender and destroy all copies of the original communication. IBS makes no 
warranty, express or implied, nor guarantees the accuracy, adequacy or 
completeness of the information contained in this email or any attachment and 
is not liable for any errors, defects, omissions, viruses or for resultant loss 
or damage, if any, direct or indirect.


Re: tomcat7-maven-plugin: Build on executable war file

2013-02-28 Thread Olivier Lamy
2013/2/28 Timothy Astle timothy.as...@caris.com:
 I'll chime in here :)  We create the artifact that we want, but we have two.
 The WAR created by the maven war plugin, and the overlay war that is
 standalone.
But we still need the war to package it in the standalone artifact.
And all the logic to create a war is in the maven war plugin. And
frankly I don't want to copy/paste all this logic to clone it in the
tomcat plugin (doesn't make sense IMHO)
Maybe what you can try is to use pom packaging (instead of the one you
are probably currently using war packaging) and then use the war
plugin to package the war which need to be included in the standalone.
As it the generated war won't be an attached artifact and won't be deploy.
NOTE: It's a solution I didn't test :-)

 We were hoping to only deploy the tomcat overlay war since it does
 everything that the other war does, plus contain tomcat.  By doing this, we
 hope to avoid confusion from staff that may grab the wrong war file from our
 artifact repository (Nexus) and accidentally provide it to customers.  So
 we're trying to be proactively safe.

 Additionally, we have a Selenium grid set up.  When our Jenkins build system
 makes a build, cargo to grabs the war and failsafe runs our selenium
 integration tests.  All tests must pass before any artifact is deployed to
 Nexus.  So in a sense, it feels like cheating to have the tests all pass on
 the non-standalone artifact, but we ship the standalone one.  I've thought
 about using maven tomcat plugin as a means to possibly shore this up, but
 there is still a part of me that likes the aspect of being able to deploy to
 any type of container via cargo.  I haven't had a chance to dig into this
 yet, perhaps Rich has, but any expert advice is always much appreciated.

 Tim






 On 27/02/2013 6:46 PM, Olivier Lamy wrote:

 2013/2/27 Richard McAleer rmcal...@caris.com:

 Hi,
 We're using tomcat7-maven-plugin 2.1 to build an executable war using the
 standalone-war-only goal.  The maven build still generates the normal war
 file as well as the executable .war created by the plugin.  However,
 since
 the standalone-war-only goal generates a war that is both executable and
 deployable, we really don't need to generate the normal war file.

 Is there a good way of generating just the executable war's using the
 plugin?  We could probably have maven delete the original .war file and
 rename the executable .war to the normal webapp name, but that doesn't
 seem
 like the best way of doing it.

 Currently no. As the generated executable war/jar contains this war
 (not an exploded war) so it's mandatory to have it.
 BTW what is your use case ?

 Thanks,
 Richard

 --
 Richard McAleer
 Developer
 Web Development Team

 *CARIS* http://www.caris.com
 115 Waggoners Lane
 Fredericton, New Brunswick
 CanadaE3B 2L4
 Tel: +1.506.458.8533 Fax: +1.506.459.3849
 www.caris.com http://www.caris.com

 *Connect with CARIS*
 Twitter http://www.twitter.com/CARIS_GIS | LinkedIn
 http://www.linkedin.com/groups?mostPopular=gid=3217878 | Facebook

 https://www.facebook.com/pages/CARIS-The-Marine-GIS-Experts/123907500987669?v=app_4949752878
 | Google+

 https://plus.google.com/b/114389770462919844434/114389770462919844434/posts
 | YouTube http://www.youtube.com/user/CARISGIS

 Download your free copy of CARIS Easy View today!
 www.caris.com/easyview http://www.caris.com/easyview

 _
 This email and any files transmitted with it are confidential and
 intended
 only for the addressee(s). If you are not the intended recipient(s)
 please
 notify us by email reply. You should not use, disclose, distribute or
 copy
 this communication if received in error.

 Any views or opinions expressed in this email are solely those of the
 author
 and do not necessarily represent those of the company. No binding
 contract
 will result from this email until such time as a written document is
 signed
 on behalf of the company.




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




-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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



Re: Problem with log level in tomcat.

2013-02-28 Thread Konstantin Kolinko
2013/2/28 Vihari Piratla viharipira...@gmail.com:
 I am trying to set the logging level of a webapp deployed on tomcat.
 Here is the logging.properties file ...
 1catalina.org.apache.juli.FileHandler.level = FINEST
 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
 1catalina.org.apache.juli.FileHandler.prefix = catalina.

 2localhost.org.apache.juli.FileHandler.level = FINEST
 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
 2localhost.org.apache.juli.FileHandler.prefix = localhost.

 java.util.logging.ConsoleHandler.level = FINEST
 java.util.logging.ConsoleHandler.formatter =
 java.util.logging.SimpleFormatter

 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINEST
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers =
 2localhost.org.apache.juli.FileHandler

 but I cant see the debug or fine logs in catalina.out.
 What am I missing?
 Thank you.

1. Which logging.properties file it is?  The global one, or
webapp-specific one? Is above a fragment, or a whole file?

2. catalina.out is not a proper log file,  as explained in documentation

3. You configure options for ConsoleHandler and 1catalina..
FileHandler handlers,
but you do not create them (a list of handlers is empty) and no log
categories are configured to send their log events to them.

The only log category that is properly configured,
org.apache.catalina.core.ContainerBase.[Catalina].[localhost]  uses
2localhostFileHandler.

Best regards,
Konstantin Kolinko

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



Re: tomcat7-maven-plugin: Build on executable war file

2013-02-28 Thread Timothy Astle


On 28/02/2013 9:32 AM, Olivier Lamy wrote:

2013/2/28 Timothy Astle timothy.as...@caris.com:

I'll chime in here :)  We create the artifact that we want, but we have two.
The WAR created by the maven war plugin, and the overlay war that is
standalone.

But we still need the war to package it in the standalone artifact.
And all the logic to create a war is in the maven war plugin. And
frankly I don't want to copy/paste all this logic to clone it in the
tomcat plugin (doesn't make sense IMHO)
I completely understand your point.  That would cause duplication of 
code and extra maintenance.

Maybe what you can try is to use pom packaging (instead of the one you
are probably currently using war packaging) and then use the war
plugin to package the war which need to be included in the standalone.
As it the generated war won't be an attached artifact and won't be deploy.
NOTE: It's a solution I didn't test :-)
haha, fair enough.  To be honest, I don't think we want to pursue that 
route either.  I much prefer explicit modelling of a project and avoid 
scripting.  Going that route just leads to pain and suffering unless 
there is a really, really strong reason to do so.


Many thanks for your feedback, it is much appreciated.

Tim

We were hoping to only deploy the tomcat overlay war since it does
everything that the other war does, plus contain tomcat.  By doing this, we
hope to avoid confusion from staff that may grab the wrong war file from our
artifact repository (Nexus) and accidentally provide it to customers.  So
we're trying to be proactively safe.

Additionally, we have a Selenium grid set up.  When our Jenkins build system
makes a build, cargo to grabs the war and failsafe runs our selenium
integration tests.  All tests must pass before any artifact is deployed to
Nexus.  So in a sense, it feels like cheating to have the tests all pass on
the non-standalone artifact, but we ship the standalone one.  I've thought
about using maven tomcat plugin as a means to possibly shore this up, but
there is still a part of me that likes the aspect of being able to deploy to
any type of container via cargo.  I haven't had a chance to dig into this
yet, perhaps Rich has, but any expert advice is always much appreciated.

Tim






On 27/02/2013 6:46 PM, Olivier Lamy wrote:

2013/2/27 Richard McAleer rmcal...@caris.com:

Hi,
We're using tomcat7-maven-plugin 2.1 to build an executable war using the
standalone-war-only goal.  The maven build still generates the normal war
file as well as the executable .war created by the plugin.  However,
since
the standalone-war-only goal generates a war that is both executable and
deployable, we really don't need to generate the normal war file.

Is there a good way of generating just the executable war's using the
plugin?  We could probably have maven delete the original .war file and
rename the executable .war to the normal webapp name, but that doesn't
seem
like the best way of doing it.

Currently no. As the generated executable war/jar contains this war
(not an exploded war) so it's mandatory to have it.
BTW what is your use case ?

Thanks,
Richard

--
Richard McAleer
Developer
Web Development Team

*CARIS* http://www.caris.com
115 Waggoners Lane
Fredericton, New Brunswick
CanadaE3B 2L4
Tel: +1.506.458.8533 Fax: +1.506.459.3849
www.caris.com http://www.caris.com

*Connect with CARIS*
Twitter http://www.twitter.com/CARIS_GIS | LinkedIn
http://www.linkedin.com/groups?mostPopular=gid=3217878 | Facebook

https://www.facebook.com/pages/CARIS-The-Marine-GIS-Experts/123907500987669?v=app_4949752878
| Google+

https://plus.google.com/b/114389770462919844434/114389770462919844434/posts
| YouTube http://www.youtube.com/user/CARISGIS

Download your free copy of CARIS Easy View today!
www.caris.com/easyview http://www.caris.com/easyview

_
This email and any files transmitted with it are confidential and
intended
only for the addressee(s). If you are not the intended recipient(s)
please
notify us by email reply. You should not use, disclose, distribute or
copy
this communication if received in error.

Any views or opinions expressed in this email are solely those of the
author
and do not necessarily represent those of the company. No binding
contract
will result from this email until such time as a written document is
signed
on behalf of the company.




-
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: Problem with log level in tomcat.

2013-02-28 Thread André Warnier

Konstantin Kolinko wrote:

2013/2/28 Vihari Piratla viharipira...@gmail.com:

I am trying to set the logging level of a webapp deployed on tomcat.
Here is the logging.properties file ...
1catalina.org.apache.juli.FileHandler.level = FINEST
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINEST
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINEST
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers =
2localhost.org.apache.juli.FileHandler

but I cant see the debug or fine logs in catalina.out.
What am I missing?
Thank you.


1. Which logging.properties file it is?  The global one, or
webapp-specific one? Is above a fragment, or a whole file?

2. catalina.out is not a proper log file,  as explained in documentation

3. You configure options for ConsoleHandler and 1catalina..
FileHandler handlers,
but you do not create them (a list of handlers is empty) and no log
categories are configured to send their log events to them.

The only log category that is properly configured,
org.apache.catalina.core.ContainerBase.[Catalina].[localhost]  uses
2localhostFileHandler.



Konstantin,
(and I fear that this is going to raise hackles again, but I think it needs to 
be said)
the truth of the matter is that the logging setup in Tomcat is obscure, cryptic, and in 
any case beyond the comprehension of 90% at least of the Tomcat users at large.
I am willing to take a bet that 90% or more of the Tomcat installations worldwide just 
leave it alone as it comes, for fear of breaking it, and just fix it with scripts 
outside of Tomcat.
So, it is really no wonder that a user would be puzzled as to how this stuff works and how 
to simply get a logfile out of his app.
Or how to simply get Tomcat to write /one/ logfile somewhere, with no daily rotation, with 
everything in it, and just have it rotated as need by an outside logrotate, as is done for 
99% of daemon programs under Unix/Linux.



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



Re: Problem with log level in tomcat.

2013-02-28 Thread Mark Thomas

On 28/02/2013 06:29, André Warnier wrote:


Konstantin,
(and I fear that this is going to raise hackles again, but I think it
needs to be said)
the truth of the matter is that the logging setup in Tomcat is obscure,
cryptic, and in any case beyond the comprehension of 90% at least of the
Tomcat users at large.
I am willing to take a bet that 90% or more of the Tomcat installations
worldwide just leave it alone as it comes, for fear of breaking it, and
just fix it with scripts outside of Tomcat.
So, it is really no wonder that a user would be puzzled as to how this
stuff works and how to simply get a logfile out of his app.
Or how to simply get Tomcat to write /one/ logfile somewhere, with no
daily rotation, with everything in it, and just have it rotated as need
by an outside logrotate, as is done for 99% of daemon programs under
Unix/Linux.


Patches to the docs / configuration / implementation welcome.

Mark


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



Re: Windows Authentication on Tomcat 7.0.37 and JRE 7u13 / 64-bit

2013-02-28 Thread Mark Thomas

On 28/02/2013 02:18, Chris Fors wrote:

Trying to get Windows
Authentication operational using the Tomcat Built-in method.  Implemented the 
following but not
observed any Windows / Kerberos authentication occuring:

-
Domain joined
windows member server

-
Domain service
account

-
Delegated SPN for
HTTP protocol on the member server to the service account

-
Generated keytab
file for the service account and saved in $catalina.base\conf folder

-
Created Valve in context.xml of className 
org.apache.catalina.authenticator.SpnegoAuthenticator

-
Created krb5.ini and
saved in $catalina.base\conf folder

-
Created jaas.conf and
saved in $catalina.base\conf folder



After this still no observed
effect on logon authentications – all still apparently anonymous.


As expected from what you have described.

If there are no security constraints on a resource, Tomcat isn't going 
to require authentication.




  Anyone had success with this ?


Yes. I have a set of test VMs (1 domain controller, 1 Tomcat server and 
1 client) where this feature works.



Any ideas on what is missing?Is there a good way to
debug the process?


See above. I'd expect to see some changes to the webapp.

Mark

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



Re: Tomcat 7 doesn't start on Windows

2013-02-28 Thread Nick Williams

On Feb 28, 2013, at 3:46 AM, Stadelmann Josef wrote:

 Where does CATALINA_HOME point to?
 Josef

Rune reported yesterday that he solved the problem by resetting the registry 
values. There was some strange garbage in one of the registry values. I'd love 
to know how it got there, but we probably never will.

N

 
 -Ursprüngliche Nachricht-
 Von: André Warnier [mailto:a...@ice-sa.com] 
 Gesendet: Mittwoch, 27. Februar 2013 13:38
 An: Tomcat Users List
 Betreff: Re: Tomcat 7 doesn't start on Windows
 
 Giles wrote:
 On 27 February 2013 11:52, André Warnier a...@ice-sa.com wrote:
 computer repair centre wrote:
 On Wed, Feb 27, 2013 at 10:18 AM, Rune Stilling s...@rdfined.dk wrote:
 Hi again
 
 Thanks for your answers. I have given up. I have tried some of the
 suggestions:
 
 * Uninstall all JVM's and Tomcats (and reinstall)
 * Checked dependcies, yes there were two, that are also present on 
 another machine running Tomcat7 (TCP/IP, ADF)
 * Tried to use client/jvm.dll instead of server/jvm.dll
 
 Nothing helps - I can still only run the service from the command prompt.
 I find it strange though, that Tomcat isn't able to log anything at 
 all about this, but maybe it's all Windows fault?
 
 Hopefully things will work on a new VPS, and I'll quit the old one.
 
 /Rune
 
 Den 26/02/2013 kl. 13.04 skrev Rune Stilling s...@rdfined.dk:
 
 
 
 ---
 -- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 Hi Rune,
 
 Please can you provide the value of the JAVA_HOME environment variable?
 
 That has nothing to do with the matter. The wrapper (tomcat7.exe) 
 takes the path of the JVM to run from the Registry, not from environment 
 variables.
 Run tomcat7w.exe and check the Java tab.
 
 But it is used by service.bat when installing the service. This issue 
 could be caused by using the 64-bit installation with the 32-bit JVM.
 This would explain why calling the wrapper directly from the command 
 line does execute successfully.
 
 
 I believe that the above statement is false.
 Whether you run the command
 tomcat7 //TS/Tomcat7
 from a command-line window, or you let the Windows Service Manager run the 
 same command, does not change the fact that tomcat7(.exe) takes its 
 parameters from the same place in the Registry.
 So if it works one way, and not the other, it is not because of that Registry 
 setting nor bacause the JAVA_HOME environment variable.
 
 
 -
 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
 



smime.p7s
Description: S/MIME cryptographic signature


Re: Tomcat 7 doesn't start on Windows

2013-02-28 Thread Mark Thomas

On 28/02/2013 07:38, Nick Williams wrote:


On Feb 28, 2013, at 3:46 AM, Stadelmann Josef wrote:


Where does CATALINA_HOME point to?
Josef


Rune reported yesterday that he solved the problem by resetting the registry 
values. There was some strange garbage in one of the registry values. I'd love 
to know how it got there, but we probably never will.


Maybe this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=54609

Mark

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



Re: Tomcat 7 doesn't start on Windows

2013-02-28 Thread Nick Williams

On Feb 28, 2013, at 9:40 AM, Mark Thomas wrote:

 On 28/02/2013 07:38, Nick Williams wrote:
 
 On Feb 28, 2013, at 3:46 AM, Stadelmann Josef wrote:
 
 Where does CATALINA_HOME point to?
 Josef
 
 Rune reported yesterday that he solved the problem by resetting the registry 
 values. There was some strange garbage in one of the registry values. I'd 
 love to know how it got there, but we probably never will.
 
 Maybe this:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=54609

I stand corrected. That's probably it. Rune reported using 7.0.37, just like in 
the bug report, and his registry path looked like this:

C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7.exe 
ogs\commons-daemon.2013-02-27.log//RS//Tomcat7

So, yea. That bug appears to be his issue. That is bizarre. I will be following 
this bug to see what in the world caused it.

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



smime.p7s
Description: S/MIME cryptographic signature


Re: Tomcat 7 doesn't start on Windows

2013-02-28 Thread Howard W. Smith, Jr.
On Thu, Feb 28, 2013 at 10:46 AM, Nick Williams 
nicho...@nicholaswilliams.net wrote:


 On Feb 28, 2013, at 9:40 AM, Mark Thomas wrote:
 
  Maybe this:
  https://issues.apache.org/bugzilla/show_bug.cgi?id=54609

 I stand corrected. That's probably it. Rune reported using 7.0.37, just
 like in the bug report, and his registry path looked like this:

 C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7.exe
 ogs\commons-daemon.2013-02-27.log//RS//Tomcat7

 So, yea. That bug appears to be his issue. That is bizarre. I will be
 following this bug to see what in the world caused it.


I just searched google for:

windows registry tomcat ogs\commons

and I saw the following (and more):

Chapter 4 Using Object Grouping Services [1]

[1]
http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_common_services_software/3.2/north_bound_api/developers/guide/ogs.html


RE: Tomcat 7 doesn't start on Windows

2013-02-28 Thread Caldarale, Charles R
 From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] 
 Subject: Re: Tomcat 7 doesn't start on Windows

 I just searched google for:

 windows registry tomcat ogs\commons

 and I saw the following (and more):

 Chapter 4 Using Object Grouping Services [1]

 [1] 
 http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_common_services_software/3.2/
 
 north_bound_api/developers/guide/ogs.html

I'll bite; what does this have to do with the topic under discussion?

The ogs in the Windows registry is most likely logs with the front end 
chopped off; certainly nothing to do with a completely separate Cisco box.

 - 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 7 doesn't start on Windows

2013-02-28 Thread Howard W. Smith, Jr.
On Thu, Feb 28, 2013 at 11:14 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com]
  Subject: Re: Tomcat 7 doesn't start on Windows

  I just searched google for:

  windows registry tomcat ogs\commons

  and I saw the following (and more):

  Chapter 4 Using Object Grouping Services [1]

  [1]
 http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_common_services_software/3.2/
  north_bound_api/developers/guide/ogs.html

 I'll bite; what does this have to do with the topic under discussion?

 The ogs in the Windows registry is most likely logs with the front end
 chopped off; certainly nothing to do with a completely separate Cisco box.


Good point and I stand corrected. Thanks!




  - 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: Multiple JSESSIONID

2013-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jose,

On 2/28/13 2:43 AM, Jose María Zaragoza wrote:
 I've seen in my web browser that it has got 2 JSESSIONID for the
 same domain at the same time
 
 
 JSESSIONID: x www.mydomain.com /
 
 and
 
 JSESSIONID:  www.mydomain.com /app/myapplication/

You might want to instrument your web application to find our why you
are getting JSESSIONIDs with different paths. Do you have a ROOT
webapp that can generate sessions? Perhaps you have JSPs in your ROOT
webapp that don't have session=false in its header?

 Cheking request to my Tomcat server, I see
 
 POST /app/myaplication/action/play.do
 
 Cookie: DWRSESSIONID=F71Wlww0mrwuExOQoE3aLslewQj; 
 JSESSIONID=x; 
 JSESSIONID=yy;

That's interesting. I would recommend a servlet filter that captures
addCookie and friends to see where that extra one is being added.

 How does Tomcat server handle this situation ? I'm talking about 
 session managing Does it read the first JSESSIONID ? Does it read
 every JSESSIONID ? Can this cause problems ?

Tomcat will read session ids until it finds one that is valid: having
multiple JSESSIONID cookies is not a problem unless *both* are valid
for some reason. In that case, I suspect you'll get the first (that
is, the one that occurs first in the HTTP request) JSESSIONID and the
other one will essentially be ignored.

 I know I can rename JSESSIONID  when it's serve by my Tomcat
 server, but I want to be sure that I need to do that

You probably don't need to do that.

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

iEYEAREIAAYFAlEvitoACgkQ9CaO5/Lv0PDBGACfby+4zBL7VYhC8vgLu3VE93ZJ
wG8AmgL2DerJA9o+BL8t7aV9rgZGl4fH
=qVg7
-END PGP SIGNATURE-

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



Re: Tomcat 7 doesn't start on Windows

2013-02-28 Thread André Warnier

Howard W. Smith, Jr. wrote:

On Thu, Feb 28, 2013 at 10:46 AM, Nick Williams 
nicho...@nicholaswilliams.net wrote:


On Feb 28, 2013, at 9:40 AM, Mark Thomas wrote:

Maybe this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=54609

I stand corrected. That's probably it. Rune reported using 7.0.37, just
like in the bug report, and his registry path looked like this:

C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7.exe
ogs\commons-daemon.2013-02-27.log//RS//Tomcat7

So, yea. That bug appears to be his issue. That is bizarre. I will be
following this bug to see what in the world caused it.



I just searched google for:

windows registry tomcat ogs\commons

and I saw the following (and more):

Chapter 4 Using Object Grouping Services [1]

[1]
http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_common_services_software/3.2/north_bound_api/developers/guide/ogs.html



Now I'm even more curious. WTH does this have to do with it ?
I admit that the fact that Cisco apparently uses Tomcat, and that there happens to be a 
piece of common string somewhere, is troubling.  But that looks like a red herring in this 
case, no ? Probably just an l missing in front of ogs\commons-daemon, no ?
And commons-daemon.2013-02-27.log (the date of this installation) suspiciously looks 
like something generated by procrun itself, no ?



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



Re: Multiple JSESSIONID

2013-02-28 Thread Nick Williams

On Feb 28, 2013, at 10:50 AM, Christopher Schultz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Jose,
 
 On 2/28/13 2:43 AM, Jose María Zaragoza wrote:
 I've seen in my web browser that it has got 2 JSESSIONID for the
 same domain at the same time
 
 
 JSESSIONID: x www.mydomain.com /
 
 and
 
 JSESSIONID:  www.mydomain.com /app/myapplication/
 
 You might want to instrument your web application to find our why you
 are getting JSESSIONIDs with different paths. Do you have a ROOT
 webapp that can generate sessions? Perhaps you have JSPs in your ROOT
 webapp that don't have session=false in its header?
 
 Cheking request to my Tomcat server, I see
 
 POST /app/myaplication/action/play.do
 
 Cookie: DWRSESSIONID=F71Wlww0mrwuExOQoE3aLslewQj; 
 JSESSIONID=x; 
 JSESSIONID=yy;
 
 That's interesting. I would recommend a servlet filter that captures
 addCookie and friends to see where that extra one is being added.

The two JSESSIONIDs immediately above are in the request, so they're added by 
the browser, not the server, so a filter wouldn't do you any good there. He 
could, however, put a filter on the ROOT web application (assuming he has 
enough control over it to do so) to figure out what is creating the session in 
the ROOT application. Chris, you may have known that and meant something 
different, and if so, my apologies for misunderstanding.

 
 How does Tomcat server handle this situation ? I'm talking about 
 session managing Does it read the first JSESSIONID ? Does it read
 every JSESSIONID ? Can this cause problems ?
 
 Tomcat will read session ids until it finds one that is valid: having
 multiple JSESSIONID cookies is not a problem unless *both* are valid
 for some reason. In that case, I suspect you'll get the first (that
 is, the one that occurs first in the HTTP request) JSESSIONID and the
 other one will essentially be ignored.
 
 I know I can rename JSESSIONID  when it's serve by my Tomcat
 server, but I want to be sure that I need to do that
 
 You probably don't need to do that.

Need, not absolutely, no. However, changing the name of the session cookie in 
the deployment descriptor of the /app/myapplication app WOULD eliminate any 
conflict between the two sessions for sure, and if it is valid that both the 
/app/myapplication application and the ROOT (/) application are creating 
sessions, that might be the safest thing to do.

Nick

 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iEYEAREIAAYFAlEvitoACgkQ9CaO5/Lv0PDBGACfby+4zBL7VYhC8vgLu3VE93ZJ
 wG8AmgL2DerJA9o+BL8t7aV9rgZGl4fH
 =qVg7
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



smime.p7s
Description: S/MIME cryptographic signature


RE: Multiple JSESSIONID

2013-02-28 Thread Caldarale, Charles R
 From: Nick Williams [mailto:nicho...@nicholaswilliams.net] 
 Subject: Re: Multiple JSESSIONID

  That's interesting. I would recommend a servlet filter that captures
  addCookie and friends to see where that extra one is being added.

 The two JSESSIONIDs immediately above are in the request, so they're added 
 by the browser, not the server

Unless the browser is part of a hacking attack, the JSESSIONID cookies 
originally came from the server.  The filter would have to be applied to both 
the ROOT and /app/myapplication contexts, so it might best be placed in 
conf/web.xml to cover all webapps.

 - 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 7 doesn't start on Windows

2013-02-28 Thread Howard W. Smith, Jr.
On Thu, Feb 28, 2013 at 12:01 PM, André Warnier a...@ice-sa.com wrote:

 Howard W. Smith, Jr. wrote:

 On Thu, Feb 28, 2013 at 10:46 AM, Nick Williams 
 nicho...@nicholaswilliams.net wrote:

  On Feb 28, 2013, at 9:40 AM, Mark Thomas wrote:

 Maybe this:
 https://issues.apache.org/**bugzilla/show_bug.cgi?id=54609https://issues.apache.org/bugzilla/show_bug.cgi?id=54609

 I stand corrected. That's probably it. Rune reported using 7.0.37, just
 like in the bug report, and his registry path looked like this:

 C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7.exe
 ogs\commons-daemon.2013-02-27.**log//RS//Tomcat7

 So, yea. That bug appears to be his issue. That is bizarre. I will be
 following this bug to see what in the world caused it.


  I just searched google for:

 windows registry tomcat ogs\commons

 and I saw the following (and more):

 Chapter 4 Using Object Grouping Services [1]

 [1]
 http://www.cisco.com/en/US/**docs/net_mgmt/ciscoworks_**
 common_services_software/3.2/**north_bound_api/developers/**
 guide/ogs.htmlhttp://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_common_services_software/3.2/north_bound_api/developers/guide/ogs.html


 Now I'm even more curious. WTH does this have to do with it ?
 I admit that the fact that Cisco apparently uses Tomcat, and that there
 happens to be a piece of common string somewhere, is troubling.  But that
 looks like a red herring in this case, no ? Probably just an l missing in
 front of ogs\commons-daemon, no ?
 And commons-daemon.2013-02-27.**log (the date of this installation)
 suspiciously looks like something generated by procrun itself, no ?


All good questions. Thanks for the response/clarification. Definitely, my
bad. :)





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




Re: A pool question

2013-02-28 Thread Jukka Ruohonen
On Mon, Feb 25, 2013 at 09:33:28AM -0500, Daniel Mikusa wrote:
 Personally, what would worry me the most about this setup is configuring
 and tuning each of the pools.  Since they are all going to the same DB, I
 wouldn't want to overload the system with too many connection, but at the
 same time there has to be enough in each pool to service the needs of the
 application.  Plus getting this right, would seem to get trickier as you
 add more pools into the mix.

I concur. But on the other hand, this granularity offers clear benefits,
provided that one can identify the low rates and heavy hitters. The usual
concerns related to tuning apply of course, as you noted. We'll see.

On a related note, it seems that there is some also ambiguity in the
standars with respect to pooled getConnecton() vs. getConnection(user, pw).

Thanks for the comments,

Jukka.

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



Re: A pool question

2013-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jukka,

On 2/25/13 12:52 AM, Jukka Ruohonen wrote:
 A question related to pools. Background: a big application in which
 it is preferable to enforce different roles for different databases
 and tables. This implies that there are different user names and
 passwords for different connections. As I understand, there are two
 options for connection pooling in a scheme like this:
 
 A. Create different resources for the different roles, each having 
 the user names and passwords defined as constants in the Tomcat 
 configuration files.
 
 B. Group the different roles into a bigger scheme and use the
 option 'alternateUsernameAllowed' to obtain the connections with
 the specific user names and passwords.

C. I believe that tomcat-pool (*not* the stock one based upon commons
DBCP) supports the DataSource.getConnection(username, password) call
and might even be smart enough to search-through existing connections
for one that matches those credentials.

This will allow you to have a single DataSource but still have
different credentials for your connection on-demand.

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

iEYEAREIAAYFAlEv9WcACgkQ9CaO5/Lv0PC96wCfThPzq93bKI/zgh+EygvHbxnQ
wJUAn1o7h5KBvCNGc68xSdJGcl7sorXJ
=DVTs
-END PGP SIGNATURE-

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



Re: A pool question

2013-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jukka,

On 2/28/13 4:25 PM, Christopher Schultz wrote:
 On 2/25/13 12:52 AM, Jukka Ruohonen wrote:
 A question related to pools. Background: a big application in
 which it is preferable to enforce different roles for different
 databases and tables. This implies that there are different user
 names and passwords for different connections. As I understand,
 there are two options for connection pooling in a scheme like
 this:
 
 A. Create different resources for the different roles, each
 having the user names and passwords defined as constants in the
 Tomcat configuration files.
 
 B. Group the different roles into a bigger scheme and use the 
 option 'alternateUsernameAllowed' to obtain the connections with 
 the specific user names and passwords.
 
 C. I believe that tomcat-pool (*not* the stock one based upon
 commons DBCP) supports the DataSource.getConnection(username,
 password) call and might even be smart enough to search-through
 existing connections for one that matches those credentials.
 
 This will allow you to have a single DataSource but still have 
 different credentials for your connection on-demand.

Sorry, I forgot to mention how this is different from (B): you can use
as many usernames and passwords as you'd like. The downside,
obviously, is that you might have a lot of turnover (i.e. thrashing)
in your connection pool. But if that's essentially what your
requirements are, there's nothing you can do to minimize that problem.

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

iEYEAREIAAYFAlEv9+gACgkQ9CaO5/Lv0PCKEQCfYO5TkkXm6gQFgqjU2hP1hMWG
S7oAoIyIWufo46+ygL3wPbK7h9lNevhl
=L5XQ
-END PGP SIGNATURE-

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



Re: Custom ELResolver on tomcat 7.0.23

2013-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jayakrishnan

On 2/28/13 5:08 AM, Jayakrishnan Radhakrishnan wrote:
 Hello everyone,
 
 I am trying to get a CustomELResolver working on tomcat 7.0.23 , 
 but in vain.
 
 It appears to have added the CustomResolver, to the JSP Application
 context, successfully. But doesn't seem to get invoked.
 
 Any one has any clues, what might be the problem ?
 
 I am using  servlet3, and jsp 2.2 .

You will certainly need to provide more information in order to get
any help. For instance: what does your configuration look like? Maybe
post a bit of code?

How do you know that the CustomResolver is added to the context
successfully? How do you know that it's not being invoked?

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

iEYEAREIAAYFAlEwBSMACgkQ9CaO5/Lv0PAmmQCglqLPN/mZhseSrUooXNFnHv8W
POYAoMJB/ol1V6o/uX8C7xLM0+9N7tY3
=Tfl5
-END PGP SIGNATURE-

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



Re: problem with context.xml for parallel deployments

2013-02-28 Thread Zippy Zeppoli
http://people.apache.org/~markt/presentations/2013-02-Apache-Tomcat-Clustering.pdf

Forbidden

You don't have permission to access
/~markt/presentations/2013-02-Apache-Tomcat-Clustering.pdf on this
server.
Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0g DAV/2 Server at
people.apache.org Port 80

I take it it will be accessible after ApacheCon?


On Tue, Feb 12, 2013 at 6:27 AM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Zippy,

 On 2/11/13 12:56 PM, Zippy Zeppoli wrote:
 You're writing on tomcatexpert.com is excellent by the way. Perhaps
 a link to a clustering example on tomcatexpert would provide the
 level of verbosity that a thick-skull might require.

 Come to ApacheCon in Portland, OR at the end of the month and attend
 Mark's talk on clustering. Or, just read his slides afterwards (Mark
 is kind enough to post all his slides here after presentations:
 http://people.apache.org/~markt/presentations/).

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

 iEYEAREIAAYFAlEaUVgACgkQ9CaO5/Lv0PDEZACfR+UKtvRR4AYzG+CSs5fqDyjr
 J/IAoIWbrGhwc+3GlTcmmZ2LZHWNClPb
 =RwL+
 -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: Problem with log level in tomcat.

2013-02-28 Thread Vihari Piratla
@Konstantin Kolinko Sorry I did not observe this, I was talking about the
global one previously, here is the webapp specific one in the attachment
that is log4j.properties.
Now to log at fine level, which line should I change or which line to
append?
Thank you.


On Thu, Feb 28, 2013 at 8:08 PM, Mark Thomas ma...@apache.org wrote:

 On 28/02/2013 06:29, André Warnier wrote:

  Konstantin,
 (and I fear that this is going to raise hackles again, but I think it
 needs to be said)
 the truth of the matter is that the logging setup in Tomcat is obscure,
 cryptic, and in any case beyond the comprehension of 90% at least of the
 Tomcat users at large.
 I am willing to take a bet that 90% or more of the Tomcat installations
 worldwide just leave it alone as it comes, for fear of breaking it, and
 just fix it with scripts outside of Tomcat.
 So, it is really no wonder that a user would be puzzled as to how this
 stuff works and how to simply get a logfile out of his app.
 Or how to simply get Tomcat to write /one/ logfile somewhere, with no
 daily rotation, with everything in it, and just have it rotated as need
 by an outside logrotate, as is done for 99% of daemon programs under
 Unix/Linux.


 Patches to the docs / configuration / implementation welcome.

 Mark



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




-- 
Vihari Piratla.
students.iitmandi.ac.in/~p_vihari
*If you can dream it, You can make it*

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

Re: Problem with log level in tomcat.

2013-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vihari,

On 2/28/13 8:58 PM, Vihari Piratla wrote:
 @Konstantin Kolinko Sorry I did not observe this, I was talking
 about the global one previously, here is the webapp specific one in
 the attachment that is log4j.properties.

This list tends to strip attachments from posts. Please re-post with
your configuration file.

I see you said log4j.properties above... until now, you gave us the
impression that you were using JULI (which is the default: using log4j
with Tomcat at the server-level takes some work). Are you trying to
use log4j or was that a typo?

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

iEYEAREIAAYFAlEwUn4ACgkQ9CaO5/Lv0PDErQCeJ+v9JS5sQPCCMmXJ/iiqihsc
JKgAoKYEaZZvTBji26GjEtGOrXQZsKMw
=yudQ
-END PGP SIGNATURE-

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



Re: Problem with log level in tomcat.

2013-02-28 Thread Vihari Piratla
Christopher,
Please find the pasted properties file.
I did perform any of the steps that I am supposed if I got to use log4j,
but it still create muse(name of my web-app).log in /tmp directory with a
message like this in catalina.out.
01 Mar 12:28 Log4JUtils INFO  - Log messages will be recorded in
/tmp/tomcat7-tomcat7-tmp/muse.log
True that I am using log4j not juli in the webapp. This is how I am getting
the handle in the class files.
public static Log log = LogFactory.getLog(Crossword.class);

This is the log4j.properties file in the WEBINF/classes folder of the
webapp.
I tried few things like appending the line log4j.logger=debug with no avail.
# For the general syntax of property based configuration files see the
# documentation of org.apache.log4j.PropertyConfigurator.

# The root category uses the appender called A1. Since no priority is
# specified, the root category assumes the default priority for root
# which is DEBUG in log4j. The root category is the only category that
# has a default priority. All other categories need not be assigned a
# priority in which case they inherit their priority from the
# hierarchy.

log4j.rootCategory=INFO, Console

log4j.logger.com.opensymphony.xwork2=INFO
log4j.logger.freemarker.cache=INFO
log4j.logger.org.apache.struts2=INFO
log4j.logger.org.apache.xml.security=INFO
log4j.logger.org.apache.commons.httpclient=INFO
log4j.logger.org.mortbay.log=INFO
log4j.logger.net.sf.ehcache=OFF


#log4j.logger.com.hp.hpl.jena.tdb.base.block.BlockMgrMapped=ERROR, ROOT

# A1 is set to be a LF5Appender which outputs to a swing
# logging console.

# this is now done programmatically in JSPHelper
# log4j.appender.ROOT=org.apache.log4j.RollingFileAppender
# log4j.appender.ROOT.encoding=UTF-8
# log4j.appender.ROOT.MaxFileSize=5000KB
# log4j.appender.ROOT.File=muse.log
# Keep old files around
# log4j.appender.ROOT.MaxBackupIndex=2
# log4j.appender.ROOT.layout=org.apache.log4j.PatternLayout
# log4j.appender.ROOT.layout.ConversionPattern=%d{dd MMM HH:mm} %c{1} %-5p
- %m%n

log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.encoding=UTF-8
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{dd MMM HH:mm} %c{1} %-5p
- %m%n

#log4j.logger.org.apache.jcs=ERROR
#log4j.logger.net.fortuna.mstor=ERROR
#log4j.logger.fuse=DEBUG
#log4j.logger.org.hibernate.SQL=DEBUG
#log4j.logger.org.hibernate=DEBUG
#log4j.additivity.org.hibernate.SQL=false



On Fri, Mar 1, 2013 at 12:32 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Vihari,

 On 2/28/13 8:58 PM, Vihari Piratla wrote:
  @Konstantin Kolinko Sorry I did not observe this, I was talking
  about the global one previously, here is the webapp specific one in
  the attachment that is log4j.properties.

 This list tends to strip attachments from posts. Please re-post with
 your configuration file.

 I see you said log4j.properties above... until now, you gave us the
 impression that you were using JULI (which is the default: using log4j
 with Tomcat at the server-level takes some work). Are you trying to
 use log4j or was that a typo?

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

 iEYEAREIAAYFAlEwUn4ACgkQ9CaO5/Lv0PDErQCeJ+v9JS5sQPCCMmXJ/iiqihsc
 JKgAoKYEaZZvTBji26GjEtGOrXQZsKMw
 =yudQ
 -END PGP SIGNATURE-

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




-- 
Vihari Piratla.
students.iitmandi.ac.in/~p_vihari
*If you can dream it, You can make it*


Re: Problem with log level in tomcat.

2013-02-28 Thread Vihari Piratla
and also I have log4j-1.2.15.jar in WEB-INF/lib.


On Fri, Mar 1, 2013 at 12:45 PM, Vihari Piratla viharipira...@gmail.comwrote:

 Christopher,
 Please find the pasted properties file.
 I did perform any of the steps that I am supposed if I got to use log4j,
 but it still create muse(name of my web-app).log in /tmp directory with a
 message like this in catalina.out.
 01 Mar 12:28 Log4JUtils INFO  - Log messages will be recorded in
 /tmp/tomcat7-tomcat7-tmp/muse.log
 True that I am using log4j not juli in the webapp. This is how I am
 getting the handle in the class files.
 public static Log log = LogFactory.getLog(Crossword.class);

 This is the log4j.properties file in the WEBINF/classes folder of the
 webapp.
 I tried few things like appending the line log4j.logger=debug with no
 avail.
 # For the general syntax of property based configuration files see the
 # documentation of org.apache.log4j.PropertyConfigurator.

 # The root category uses the appender called A1. Since no priority is
 # specified, the root category assumes the default priority for root
 # which is DEBUG in log4j. The root category is the only category that
 # has a default priority. All other categories need not be assigned a
 # priority in which case they inherit their priority from the
 # hierarchy.

 log4j.rootCategory=INFO, Console

 log4j.logger.com.opensymphony.xwork2=INFO
 log4j.logger.freemarker.cache=INFO
 log4j.logger.org.apache.struts2=INFO
 log4j.logger.org.apache.xml.security=INFO
 log4j.logger.org.apache.commons.httpclient=INFO
 log4j.logger.org.mortbay.log=INFO
 log4j.logger.net.sf.ehcache=OFF


 #log4j.logger.com.hp.hpl.jena.tdb.base.block.BlockMgrMapped=ERROR, ROOT

 # A1 is set to be a LF5Appender which outputs to a swing
 # logging console.

 # this is now done programmatically in JSPHelper
 # log4j.appender.ROOT=org.apache.log4j.RollingFileAppender
 # log4j.appender.ROOT.encoding=UTF-8
 # log4j.appender.ROOT.MaxFileSize=5000KB
 # log4j.appender.ROOT.File=muse.log
 # Keep old files around
 # log4j.appender.ROOT.MaxBackupIndex=2
 # log4j.appender.ROOT.layout=org.apache.log4j.PatternLayout
 # log4j.appender.ROOT.layout.ConversionPattern=%d{dd MMM HH:mm} %c{1} %-5p
 - %m%n

 log4j.appender.Console=org.apache.log4j.ConsoleAppender
 log4j.appender.Console.encoding=UTF-8
 log4j.appender.Console.layout=org.apache.log4j.PatternLayout
 log4j.appender.Console.layout.ConversionPattern=%d{dd MMM HH:mm} %c{1}
 %-5p - %m%n

 #log4j.logger.org.apache.jcs=ERROR
 #log4j.logger.net.fortuna.mstor=ERROR
 #log4j.logger.fuse=DEBUG
 #log4j.logger.org.hibernate.SQL=DEBUG
 #log4j.logger.org.hibernate=DEBUG
 #log4j.additivity.org.hibernate.SQL=false



 On Fri, Mar 1, 2013 at 12:32 PM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Vihari,

 On 2/28/13 8:58 PM, Vihari Piratla wrote:
  @Konstantin Kolinko Sorry I did not observe this, I was talking
  about the global one previously, here is the webapp specific one in
  the attachment that is log4j.properties.

 This list tends to strip attachments from posts. Please re-post with
 your configuration file.

 I see you said log4j.properties above... until now, you gave us the
 impression that you were using JULI (which is the default: using log4j
 with Tomcat at the server-level takes some work). Are you trying to
 use log4j or was that a typo?

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

 iEYEAREIAAYFAlEwUn4ACgkQ9CaO5/Lv0PDErQCeJ+v9JS5sQPCCMmXJ/iiqihsc
 JKgAoKYEaZZvTBji26GjEtGOrXQZsKMw
 =yudQ
 -END PGP SIGNATURE-

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




 --
 Vihari Piratla.
 students.iitmandi.ac.in/~p_vihari
 *If you can dream it, You can make it*




-- 
Vihari Piratla.
students.iitmandi.ac.in/~p_vihari
*If you can dream it, You can make it*