Re: Web WIFI application

2008-03-20 Thread Rainer Jung

Hi Karthik,

karthikn wrote:

Hi

We have been Developing a  Web WIFI application that acts as a  AAA 
processor for  ROUTER [ CISCO ] for

provision of Internet Access.

The application is HOSTED as ROOT in Tomcat 5523 web server

Reason : CISCO ROUTER uses IP /Port Only to identify and route the HTTP 
requests for AAA process


Question

Is it possible to set up APACHE 2.x HTTP SERVER to route the Requests to 
ROOT application of an jakartha

Apache Tomcat 5523 web server.


Yes, but as always the details matter.

Any more precise help depends on a description of the URL mapping you 
want to produce:


- how do the URLs look like, that you are going to send to httpd
- how should they look like when forwarded to Tomcat
- are there URLs, httpd should not forward to Tomcat, if yes, how do 
they look like



Please Help


with regards
Karthik


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.28 to Tomcat 6.0.14

2008-03-20 Thread Bobby Quninne

I seem to be experiencing some issues with this migration I am attempting. I
have read through some of the threads that pertain to this issue, however I
am still encountering problems. 

The following is used in this webapp :

jstl 1.1.2
jspx

I am receiving the following exception :

javax.servlet.ServletException: javax.servlet.jsp.JspTagException

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)

com.a.userMovementsByDate_jspx._jspService(userMovementsByDate_jspx.java:289)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

javax.servlet.jsp.JspTagException

org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:174)

org.apache.jsp.tag.web.dateChooser_tagx._jspx_meth_c_005fset_005f0(dateChooser_tagx.java:231)
org.apache.jsp.tag.web.dateChooser_tagx.doTag(dateChooser_tagx.java:157)

com.a.userMovementsByDate_jspx._jspService(userMovementsByDate_jspx.java:166)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Now it seems in the generated code from JspC that lines of code go amiss.
For instance if I have :

?xml version=1.0?
jsp:root version=1.2
  xmlns:jsp=http://java.sun.com/JSP/Page;
  xmlns:c=urn:jsptld:/WEB-INF/tld/jstl.tld
  xmlns:rx=urn:jsptld:/WEB-INF/tld/regexp.tld
  xmlns:dt=urn:jsptld:/WEB-INF/tld/datetime.tld
jsp:directive.tag display-name=Date chooser tag isELIgnored=false
body-content=empty description=Selects two dates/
jsp:directive.attribute name=varStart required=true
rtexprvalue=false type=java.lang.String description=Name of variable
for start date/
jsp:directive.attribute name=varEnd required=true
rtexprvalue=false type=java.lang.String description=Name of variable
for end date/
jsp:directive.attribute name=from description=Start date, if
available/
jsp:directive.attribute name=to description=End date, if
available/
jsp:directive.attribute name=ignoreSeconds description=Set to true
if  seconds are to be ignored./
jsp:directive.variable name-from-attribute=varStart alias=start
scope=AT_END description=Start date available after end of tag/
jsp:directive.variable name-from-attribute=varEnd alias=end
scope=AT_END description=End date available after end of tag/

!-- Get the current date/time  --
c:set var=ctimedt:currentTime//c:set

//Rest of code

Now in the generated code the following appears :

_jspx_th_c_005fset_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f0.setParent(new
javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag)
this ));// /WEB-INF/tld/a-v7.3.tldctime);
int _jspx_eval_c_005fset_005f0 = _jspx_th_c_005fset_005f0.doStartTag();

Now if I add an extra c:set to jspx : 
!-- Get the current date/time  --
c:set var=ctimedt:currentTime//c:set
c:set var=ctimedt:currentTime//c:set

The generated code will have 2 entries. The first stays the same but the
second has :

_jspx_th_c_005fset_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f1.setParent(new
javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag)
this ));// /WEB-INF/tags/dateChooser.tagx(18,24) name = var type =
java.lang.String reqTime = false required = false fragment = false
deferredValue = false expectedTypeName = null deferredMethod = false
methodSignature = null
_jspx_th_c_005fset_005f1.setVar(ctime);
int _jspx_eval_c_005fset_005f1 = _jspx_th_c_005fset_005f1.doStartTag();

That serVar(in this case, other times setId is not generated) is missing
from the first, and this is causing all my problems.

I have tried the following :

1. Set servlet spec to 2.4 in webapp tag in web xml.
2. Using the tomcat 6 libs and not 5.0.28 when building.

Any help greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.0.28-to-Tomcat-6.0.14-tp16173986p16173986.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Mark Thomas

Mark Leone wrote:
Tomcat 6 still has the html page for the admin app that 
says it can be downloaded if desired, so I assumed it was still 
supported for 6.0.


This should be fixed (ie removed) by the next release.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Page Question

2008-03-20 Thread Peter Stavrinides

oh no! even more work for me now... thanks anyway for your help guys!

Len Popp wrote:

You can't override the 503 error page using an error-page
declaration. :-(  The only way I know of to change it is to replace
org.apache.catalina.valves.ErrorReportValve with your own version,
which you specify in the errorReportValveClass attribute of the
Host element in server.xml. I haven't tried this, but it's
documented for Tomcat 5.5 and 6.0.
  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Web WIFI application

2008-03-20 Thread karthikn

Hi

Thnx for the initial Reply


The Life Cycle for the WIFI custom web application for AAA is as follows.


1) User Types www.xyz.com

2) CISCO ROUTER  Intercepts this requests and reroutes to a WEB container
   as http://IP:PORT or   http://IP   Only  for AAA to be processed.

   [ Note: CISCO Router API's  can only redirect any http requests to 
specific IP / Port and not a web application 
hosted on the IP  as http://IP:PORT/AAAprocess  ]



3) AAA processing is done in the WEB container by the application hosted 
as ROOT

  ( Replaced original ROOT  with custom web application  ) by default.

4) Once the AAA is processed, we redirect the user to a new Window of 
the browser and allow

   the user to  the page requested for Originally (www.xyz.com).


Problem
Load on this  single TOMCAT is building up the CPU for 100% ,as the 
subscribers are increasing.



Solution
We need to bring in the Load Balancer with Multiple TOMCAT /APACHE2.x 
server.




Hence  we need multiple TOMCAT with ROOT being able to configure to a 
APCHE 2X http server.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



semi-OT: lambdaprobe and logging on tc6?

2008-03-20 Thread Kristian Rink

Folks;

earlier some kind souls on this list recommended me to check out
lambdaprobe.org to fulfil my tomcat management and monitoring needs
which has worked out rather well ever since. So far however, it seems
something got more or less broken in course of migrating our systems
from tc5.5 to tc6.0: Right now, using lambdaprobe, I can't browse my
applications log files (commons-logging + log4j) anymore - which is bad
as this is the main feature I needed about probe. Raising probes debug
level provided me with something like that:


04 Mrz 2008 12:05:46 [http-8080-4] DEBUG
org.jstripe.tomcat.probe.tools.ApplicationUtils - Querying
webapp: /xport 04 Mrz 2008 12:05:46 [http-8080-4] ERROR
org.jstripe.tomcat.probe.controllers.logs.ListLogsController - Could
not interrogate context logger for /xport. Enable debug logging to se e
the trace stack 04 Mrz 2008 12:05:46 [http-8080-4] DEBUG
org.jstripe.tomcat.probe.controllers.logs.ListLogsController -
java.lang.NoSuchMethodError:
org.apache.catalina.Context.getLogger()Lorg/ap ache/commons/logging/Log;


Knowing this is not a lambdaprobe list and knowing that, posting this
message to the lambdaprobe forums, I just recieved a few hundred reads
but no comment on that very issue so far, maybe posting this here is
not rather helpful, but however: In case anyone is using that very
setup (tomcat6.x, lambdaprobe 1.7b, commons-logging, log4j) and has
this things fixed and/or knows about that error, feel free to drop me a
line.

Bunches of thanks in advance,  best regards.
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs on SATA Linux server

2008-03-20 Thread Sameer Acharya
Is this just with Tomcat or does it happen with other
apps too ? 

Chances are that your device driver may be having
issues and hence slowing down the system in between.

-Sameer
--- Rick Fincher [EMAIL PROTECTED] wrote:

 Hi All,
 
 We have a web app running on Tomcat that accesses
 Oracle via JDBC on a 
 Linux server (Centos 4.5) .  The web app runs fine
 on one server but but 
 locks up or hangs for 20-30 second periods on a Dell
 sever running with 
 SATA storage.
 
 I only mention SATA because that is the only
 significant difference 
 between the two servers.
 
 Anyone have a clue what is causing this?
 
 
 Thanks!
 
 Rick
 
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Overriding Password in JDBC Realm

2008-03-20 Thread Emsley, I (Iain)
I'm trying to implement a JDBC realm to compare a cookie against a
database to authenticate an identity but my current application falls
over trying to get a password where one doesn't exist (they are checked
earlier on in the cycle in another section of the programme). 
 
Is there a way of overriding the getPassword which the Realm appears to
want or am I best off trying to put a custom realm together?
 
Thanks, 
 
Iain
 
Iain Emsley
 
 


Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-20 Thread Ronald Klop

On Wed Mar 19 23:13:33 CET 2008 Tomcat Users List users@tomcat.apache.org 
wrote:

Rajeev Angal wrote:
 I misspoke - this is happening on Tomcat 6.0.16 only .
 6.0.10 is working fine on all browsers.
 
 Any pointers highly appreciated.


It is a known issue in 6.0.16. A patch is currently under consideration.

Mark

Is it an issue on any 5.5.x version?

Ronald.


Tomcat 6 / Apache 2.2 integration problem (no images, no css loaded)

2008-03-20 Thread Andreas Schneider
Hi,

I am trying to use my tomcat 6 over Apache 2.2. I have deployed a war called 
sw-builder.war into the webapps folder of the tomcat instance. After restarting 
tomcat and apache Tomcat extracts the war into the webapps folder and into the 
temp folder (temp/0-sw-builder). The directory structure of sw-builder is :


sw-builder
 login.jsp
 |_ images
 |_ css

Now I have the problem, that when I call http://localhost/sw-builder/login.jsp 
no images will be displayed. Here the error log entries.

[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Child process is running [Wed 
Mar 19 14:57:10 2008] [notice] Child 4384: Acquired the start mutex.
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Starting 64 worker threads.
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Starting thread to listen on 
port 80.
[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by server 
configuration: E:/server/apache-tomcat-6.0/temp/0-sw-builder/images/blank.gif, 
referer: http://localhost/sw-builder/login.jsp
[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by server 
configuration: E:/server/apache-tomcat-6.0/temp/0-sw-builder/ci.css, referer: 
http://localhost/sw-builder/login.jsp

I am using the auto configuration of tomcat which creates following mod_jk.conf:


 localhost:/sw-builder 

# Static files
Alias /sw-builder E:/server/apache-tomcat-6.0/temp/0-sw-builder

Directory E:/server/apache-tomcat-6.0/temp/0-sw-builder
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /sw-builder/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /sw-builder/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless casematches
#
Directory E:/server/apache-tomcat-6.0/temp/0-sw-builder/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory E:/server/apache-tomcat-6.0/temp/0-sw-builder/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /sw-builder/*.jsp  ajp13
JkMount /sw-builder/*.jspx  ajp13
JkMount /sw-builder/student/actionServlet  ajp13
JkMount /sw-builder/actionServlet  ajp13


The workers.properties looks like this:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


In my http.conf I added the following lines:


...
Include E:\server\apache-tomcat-6.0\conf\auto\mod_jk.conf
Directory E:/server/apache-tomcat-6.0/webapps/sw-builder
  Order allow,deny
  Allow from all
/Directory
...


Can anybody help me with that problem?

Thanks


-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Overriding Password in JDBC Realm

2008-03-20 Thread Pid

Emsley, I (Iain) wrote:

I'm trying to implement a JDBC realm to compare a cookie against a
database to authenticate an identity but my current application falls
over trying to get a password where one doesn't exist (they are checked
earlier on in the cycle in another section of the programme). 


JDBCRealm (and DataSourceRealm) expect a username and password, and 
they're provided by an Authenticator configured elsewhere (e.g. 
FormAuthenticator).



Is there a way of overriding the getPassword which the Realm appears to
want or am I best off trying to put a custom realm together?


Maybe you could start over, and elaborate a little on what you're trying 
to achieve?


If you're attempting a 'remember me' type facility, for example, then 
you should look into SecurityFilter, which does this and a few other 
things rather well, and will save you writing and security testing your 
own authentication code.



p

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-20 Thread Mark Thomas

Ronald Klop wrote:
On Wed Mar 19 23:13:33 CET 2008 Tomcat Users List 
users@tomcat.apache.org wrote:

Rajeev Angal wrote:
 I misspoke - this is happening on Tomcat 6.0.16 only .
 6.0.10 is working fine on all browsers.
  Any pointers highly appreciated.

It is a known issue in 6.0.16. A patch is currently under consideration.

Mark

Is it an issue on any 5.5.x version?


Yes, the latest. It is a side-effect of the recent cookie security fixes so 
for v0 cookies you can either have secure or working but not both.


One work-around would be to use v1 cookies.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Mark Leone



O.k., I think that will break the world.  As far as I know, you may have
only one Realm inside a given container (Engine, Host, Context);
a Realm at a lower level overrides any at a higher one.  If you want
all apps to use your JDBCRealm, you have to remove (or comment out) the
default one for the Engine.


  
I commented out the UserDatabaseRealm declaration, and I still cannot 
authenticate with manager, but I can with my custom app. This is hard to 
figure, as I've made very few changes to the configuration in the 
distribution, and there are very few entries in the server.xml and 
web.xml files. I've attached both of those files.


I wonder if the use of the UserDatabase resource is hard-wired into the 
manager app somehow. Looking at the web.xml for manager in the Tomcat 
distribution, I don't see how the deployment descriptor is specifying to 
use that resource for authentication. An environment variable users is 
mapped from the global context, but it's nowhere else referenced in 
web.xml. The eralm name in login-config is given as the description 
title for the manager app.


And I also don't understand why this stops working when I define a 
JDBCRealm in server.xml. On closer examination, I see that manager is 
not using UserDatabaseRealm, but using the UserDatabase resource directly.


-Mark
?xml version=1.0 encoding=ISO-8859-1?
!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--

web-app xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
   version=2.5 

  display-nameTomcat Manager Application/display-name
  description
A scriptable management web application for the Tomcat Web Server;
Manager lets you view, load/unload/etc particular web applications.
  /description

  !-- Define the Manager Servlet
   Change servlet-class to: org.apache.catalina.servlets.HTMLManagerServlet
   to get a Servlet with a more intuitive HTML interface, don't change if you
   have software that is expected to parse the output from ManagerServlet
   since they're not compatible.
   --
  servlet
servlet-nameManager/servlet-name
servlet-classorg.apache.catalina.manager.ManagerServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
  /servlet
  servlet
servlet-nameHTMLManager/servlet-name
servlet-classorg.apache.catalina.manager.HTMLManagerServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
  /servlet
  servlet
servlet-nameStatus/servlet-name
servlet-classorg.apache.catalina.manager.StatusManagerServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
  /servlet

  servlet
servlet-nameJMXProxy/servlet-name
servlet-classorg.apache.catalina.manager.JMXProxyServlet/servlet-class
  /servlet

  !-- Define the Manager Servlet Mapping --
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/list/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/expire/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/sessions/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/start/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/stop/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/install/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/remove/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/deploy/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/undeploy/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/reload/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameManager/servlet-name
  url-pattern/save/url-pattern
  

Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-20 Thread Ronald Klop

On Thu Mar 20 14:00:55 CET 2008 Tomcat Users List users@tomcat.apache.org 
wrote:

Ronald Klop wrote:
 On Wed Mar 19 23:13:33 CET 2008 Tomcat Users List 
 users@tomcat.apache.org wrote:

 Rajeev Angal wrote:
  I misspoke - this is happening on Tomcat 6.0.16 only .
  6.0.10 is working fine on all browsers.
   Any pointers highly appreciated.

 It is a known issue in 6.0.16. A patch is currently under consideration.

 Mark
 Is it an issue on any 5.5.x version?

Yes, the latest. It is a side-effect of the recent cookie security fixes so 
for v0 cookies you can either have secure or working but not both.


One work-around would be to use v1 cookies.

Mark



Can this affect the cookie of JSESSIONID?
I'm currently having trouble with people losing there session in my 5.5.26 
cluster. But my problem was also while running 5.5.23.

Ronald.


sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-03-20 Thread Ronald Klop

Hello,

When I shutdown a node in my cluster (tomcat 5.5.26) sessionDestroyed is called 
on all SessionListeners on that node.
But I'm running a cluster, so one node stopping doesn't mean the session is 
destroyed.

My understanding is that expireSessionsOnShutdown=false by default and I 
don't change it in my config.

Is this a bug, a feature or am I doing something wrong?

Ronald.

Re: forwarding a post

2008-03-20 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John,

John Pedersen wrote:
| Can anyone suggest how I can forward a post using servlets?

[snip]

| Then, depending on which button the user clicks, I want to forward the
user
| on to google/paypal using POST, adding the parameters such as cart,
| signature.

This is typically called a man-in-the-middle attack. ;)

Seriously, though, you'll have to build the POST manually. Look at the
java.net.HttpURLConnection class. You could also look at HttpClient
(http://hc.apache.org/httpcomponents-client/index.html), which
encapsulates a lot of what you want to do.

Just remember that if you decide to act as a proxy like this, you will
have top handle a lot of things like cookie-passing, etc. in order to do
it properly.

Perhaps there's a better API for you to use than their user-facing
web-based one... such as a SOAP or REST API where a lot of those issues
are removed.

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

iEYEARECAAYFAkfiaE8ACgkQ9CaO5/Lv0PAAVgCffK5ZwvwMZwMVXcDsF295MqjJ
GC0AoKJOK1s4TMfT/fUDUatijBn9c/OB
=mlDx
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-20 Thread Mark Deneen

Caldarale, Charles R wrote:
From: Scott Mueller [mailto:[EMAIL PROTECTED] 
Subject: Re: Running out of memory too easily in Tomcat 6.0.16


Charles, where's the proper place to put the heap/permgen
allocation settings in tomcat's scripts?



You don't modify the scripts themselves.  Set whatever options you need
in the JAVA_OPTS environment variable prior to running the scripts.  For
example:

JAVA_OPTS=-XX:MaxPermSize=256m -Dcom.sun.management.jmxremote

(The latter lets you run JConsole against the Tomcat instance.)

 - Chuck
  
You can put all of these settings in $CATALINA_HOME/bin/setenv.sh and 
the default tomcat scripts will source that script before running java.


Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs on SATA Linux server

2008-03-20 Thread Mark Deneen
How much memory is on the server?  Your file buffer may be too large and 
your disks can not keep up.  I think the default is 10% of memory, so if 
you can fill that up faster than the disks can write it it will hang 
until the buffer is emptied.  I doubt you are doing that much file i/o 
through a webapp though!


Mark

Rick Fincher wrote:

Hi All,

We have a web app running on Tomcat that accesses Oracle via JDBC on a 
Linux server (Centos 4.5) .  The web app runs fine on one server but 
but locks up or hangs for 20-30 second periods on a Dell sever running 
with SATA storage.


I only mention SATA because that is the only significant difference 
between the two servers.


Anyone have a clue what is causing this?


Thanks!

Rick



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: forwarding a post

2008-03-20 Thread John Pedersen
Hi,

At least with Google checkout, I have found a better solution. I have a form
with just their button image as a submit, and in my handler I do:

String xmlCart = cart.createXML();
 MerchantInfo mi = GoogleMerchantInfoFactory.createMerchantInfo(
EnvironmentType.Sandbox);
 CheckoutShoppingCartRequest cscr = new CheckoutShoppingCartRequest( mi,
xmlCart);
CheckoutResponse checkoutResponse = cscr.send();
 String redirectUrl = checkoutResponse.getRedirectUrl();

It turns out that GC has some java code already that uses the
HttpURLConnection class - it posts the data in the shopping cart, the
retrieves a forwarding url that takes the user to their payment page.
Google's CheckoutShoppingCartRequest contains the HttpURLConnection code
which posts the data - server to server.

Thanks for the heads up.

Unfortunately, I don't think Paypal have an equivalent, unless I sign up for
their £20/month Paypal Pro ( I am not sure if their code makes this
functionality available - for that price, I won't even look - I'll just
stick to using javascript onLoad(submit()) in a page conatining nothing but
the Paypal button form.

John

On 20/03/2008, Christopher Schultz [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 John,


 John Pedersen wrote:
 | Can anyone suggest how I can forward a post using servlets?


 [snip]


 | Then, depending on which button the user clicks, I want to forward the
 user
 | on to google/paypal using POST, adding the parameters such as cart,
 | signature.


 This is typically called a man-in-the-middle attack. ;)

 Seriously, though, you'll have to build the POST manually. Look at the
 java.net.HttpURLConnection class. You could also look at HttpClient
 (http://hc.apache.org/httpcomponents-client/index.html), which
 encapsulates a lot of what you want to do.

 Just remember that if you decide to act as a proxy like this, you will
 have top handle a lot of things like cookie-passing, etc. in order to do
 it properly.

 Perhaps there's a better API for you to use than their user-facing
 web-based one... such as a SOAP or REST API where a lot of those issues
 are removed.

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

 iEYEARECAAYFAkfiaE8ACgkQ9CaO5/Lv0PAAVgCffK5ZwvwMZwMVXcDsF295MqjJ
 GC0AoKJOK1s4TMfT/fUDUatijBn9c/OB
 =mlDx
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Caldarale, Charles R
 From: Mark Leone [mailto:[EMAIL PROTECTED] 
 Subject: Re: Manager app authentication not working with JDBCRealm
 
 I wonder if the use of the UserDatabase resource is 
 hard-wired into the manager app somehow.

It's not; we use a JAASRealm for Tomcat 6.0.16 production, and the
manager app quite happily authenticates with that.  All we changed in
server.xml and the manager's web.xml were the following:

conf/server.xml:

1) commented out the UserDatabase Resource

2) commented out the UserDatabaseRealm Realm

3) added the Realm for JAASRealm

(There is no Resource for a JAASRealm, of course.)

webapps/manager/WEB-INF/web.xml:

1) changed the role-name inside the auth-constrain to what we needed

2) changed the role-name inside security-role to the same as in #1

3) added a transport-guarantee of CONFIDENTIAL (irrelevant to your
situation)

Note that we left the resource-env-ref for
org.apache.catalina.UserDatabase alone.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-20 Thread Markus Schönhaber
Caldarale, Charles R wrote:

 I don't know what the w was intended to mean

My WAG would be that the meaning of the w is taken from
java.exe/javaw.exe of the Sun JRE where it seems to indicate whether the
binary is linked for the console or the windows subsystem.
I. e. while java.exe will display a console window when running,
javaw.exe will not.

Regards
  mks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: forwarding a post

2008-03-20 Thread David Fisher

Hi,

PayPal has free solutions that work:

https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-comparison

I use Website Payments Standard with an IPN back-end without  
trouble for over 5 years on Tomcat 4s, no trouble with recent upgrade  
to 5.5/


We save the shopping cart on the server side and cause the client  
side to go to PayPal.


window.location.replace(
https://www.paypal.com/cgi-bin/webscr? 
cmd=_xclickbusiness=%=ppvsite%invoice=%=invoice%+

item_name=%=URLEncoder.encode(document_name)%+
item_number=%=document_id%amount=%=document_price%+
no_shipping=1no_note=1+
image_url=%=URLEncoder.encode(our logo gif)%
   );

Once the payment has cleared by PayPal they send server to server  
messages back through the IPN process. This includes chargebacks  
echeck clearing, and other exceptions. It is all well documented with  
sample code. Maybe they have better approaches now, but I've no  
reason to change.


Regards,
Dave


On Mar 20, 2008, at 8:58 AM, John Pedersen wrote:


Hi,

At least with Google checkout, I have found a better solution. I  
have a form

with just their button image as a submit, and in my handler I do:

String xmlCart = cart.createXML();
 MerchantInfo mi = GoogleMerchantInfoFactory.createMerchantInfo(
EnvironmentType.Sandbox);
 CheckoutShoppingCartRequest cscr = new CheckoutShoppingCartRequest 
( mi,

xmlCart);
CheckoutResponse checkoutResponse = cscr.send();
 String redirectUrl = checkoutResponse.getRedirectUrl();

It turns out that GC has some java code already that uses the
HttpURLConnection class - it posts the data in the shopping cart, the
retrieves a forwarding url that takes the user to their payment page.
Google's CheckoutShoppingCartRequest contains the HttpURLConnection  
code

which posts the data - server to server.

Thanks for the heads up.

Unfortunately, I don't think Paypal have an equivalent, unless I  
sign up for

their £20/month Paypal Pro ( I am not sure if their code makes this
functionality available - for that price, I won't even look - I'll  
just
stick to using javascript onLoad(submit()) in a page conatining  
nothing but

the Paypal button form.

John

On 20/03/2008, Christopher Schultz [EMAIL PROTECTED]  
wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John,


John Pedersen wrote:
| Can anyone suggest how I can forward a post using servlets?


[snip]


| Then, depending on which button the user clicks, I want to  
forward the

user
| on to google/paypal using POST, adding the parameters such as cart,
| signature.


This is typically called a man-in-the-middle attack. ;)

Seriously, though, you'll have to build the POST manually. Look at  
the

java.net.HttpURLConnection class. You could also look at HttpClient
(http://hc.apache.org/httpcomponents-client/index.html), which
encapsulates a lot of what you want to do.

Just remember that if you decide to act as a proxy like this, you  
will
have top handle a lot of things like cookie-passing, etc. in order  
to do

it properly.

Perhaps there's a better API for you to use than their user-facing
web-based one... such as a SOAP or REST API where a lot of those  
issues

are removed.

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

iEYEARECAAYFAkfiaE8ACgkQ9CaO5/Lv0PAAVgCffK5ZwvwMZwMVXcDsF295MqjJ
GC0AoKJOK1s4TMfT/fUDUatijBn9c/OB
=mlDx
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Happy Holi

2008-03-20 Thread Laxmilal Menaria
HAPPY HOLI

-- 
Thanks,
Laxmilal menaria

http://www.chambal.com/
http://www.minalyzer.com/
http://www.bucketexplorer.com/


RE: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Caldarale, Charles R
 From: Caldarale, Charles R 
 Subject: RE: Manager app authentication not working with JDBCRealm
 
 Note that we left the resource-env-ref for 
 org.apache.catalina.UserDatabase alone.

Also, we did not change the realm-name under login-config in the
manager web.xml file, although I don't think that will make a
difference.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: forwarding a post

2008-03-20 Thread Martin Gainty

Hi JohnI've seen SOAP handle security via rampart
but was wondering if the google code accomodate security considerations such 
as-authentication-encryption/decryption(feel free to ping me offline as this is 
O/T)ThanksMartin__Disclaimer and 
confidentiality noteEverything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission. Date: Thu, 20 Mar 2008 13:58:59 + From: [EMAIL PROTECTED] 
To: users@tomcat.apache.org Subject: Re: forwarding a post  Hi,  At least 
with Google checkout, I have found a better solution. I have a form with just 
their button image as a submit, and in my handler I do:  String xmlCart = 
cart.createXML(); MerchantInfo mi = 
GoogleMerchantInfoFactory.createMerchantInfo( EnvironmentType.Sandbox); 
CheckoutShoppingCartRequest cscr = new CheckoutShoppingCartRequest( mi, 
xmlCart); CheckoutResponse checkoutResponse = cscr.send(); String redirectUrl 
= checkoutResponse.getRedirectUrl();  It turns out that GC has some java code 
already that uses the HttpURLConnection class - it posts the data in the 
shopping cart, the retrieves a forwarding url that takes the user to their 
payment page. Google's CheckoutShoppingCartRequest contains the 
HttpURLConnection code which posts the data - server to server.  Thanks for 
the heads up.  Unfortunately, I don't think Paypal have an equivalent, unless 
I sign up for their £20/month Paypal Pro ( I am not sure if their code makes 
this functionality available - for that price, I won't even look - I'll just 
stick to using javascript onLoad(submit()) in a page conatining nothing but 
the Paypal button form.  John  On 20/03/2008, Christopher Schultz [EMAIL 
PROTECTED] wrote:   -BEGIN PGP SIGNED MESSAGE-  Hash: SHA1   
John,John Pedersen wrote:  | Can anyone suggest how I can forward a 
post using servlets?[snip]| Then, depending on which button 
the user clicks, I want to forward the  user  | on to google/paypal using 
POST, adding the parameters such as cart,  | signature.This is 
typically called a man-in-the-middle attack. ;)   Seriously, though, 
you'll have to build the POST manually. Look at the  
java.net.HttpURLConnection class. You could also look at HttpClient  
(http://hc.apache.org/httpcomponents-client/index.html), which  encapsulates 
a lot of what you want to do.   Just remember that if you decide to act as 
a proxy like this, you will  have top handle a lot of things like 
cookie-passing, etc. in order to do  it properly.   Perhaps there's a 
better API for you to use than their user-facing  web-based one... such as a 
SOAP or REST API where a lot of those issues  are removed.   - -chris  
-BEGIN PGP SIGNATURE-  Version: GnuPG v1.4.8 (MingW32)  Comment: 
Using GnuPG with Mozilla - http://enigmail.mozdev.org   
iEYEARECAAYFAkfiaE8ACgkQ9CaO5/Lv0PAAVgCffK5ZwvwMZwMVXcDsF295MqjJ  
GC0AoKJOK1s4TMfT/fUDUatijBn9c/OB  =mlDx  -END PGP SIGNATURE-   
-  To 
start a new topic, e-mail: users@tomcat.apache.org  To unsubscribe, e-mail: 
[EMAIL PROTECTED]  For additional commands, e-mail: [EMAIL PROTECTED]  
_
Windows Live Hotmail is giving away Zunes.
http://www.windowslive-hotmail.com/ZuneADay/?locale=en-USocid=TXT_TAGLM_Mobile_Zune_V3

OT - .jsp recommended practices

2008-03-20 Thread David kerber
This is more of a programming style question than it tomcat-specific, 
but it's running on tomcat 5.5, so here goes:


I have a .jsp where, right now, I have part of the page generation is 
done in the .jsp, and the part with proprietary logic is done in a java 
class behind it.  What I'm wondering is if I should put more of the code 
in the java class.  Here's what I have right now:


%@ page import=SiteData.Reports.GetNYDates %
HTML
HEAD
   TITLEEnter reconciliation beginning and ending dates/TITLE
/HEAD
BODY

FORM ACTION=NYListInventory.jsp method=get
   H3Select the report you wish to generate:/H3

   %= GetNYDates.getDates( session, request ) %

   brChoose your output format:br
   input type=RADIO name=optFormat value=fmtHtml checkedHTML
   input type=RADIO name=optFormat value=fmtText Plain text
   BRBR
   INPUT TYPE=SUBMIT NAME=Submit VALUE=Go
/FORM

   % String pageColor = White; %
   % String currentPage = NYDatePage.jsp; %
   %@ include file = PageFooter.jspf %

/BODY
/HTML


My question is:  would it be better practice to put the rest of the 
FORM generation lines into the java class, or is it better form to 
leave it the way it is.  I realize there's no functional difference; I'm 
just wondering which is considered to be 'better practice', however you 
define that.


Thanks!
D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how: this configuration for linux

2008-03-20 Thread dr_pompeii

Hi Hassan

thanks again for your time

i saw in catalina.sh these variables, but wondered what would be the
difference between them (only the word stop for JAVA_OPTS )



#   CATALINA_OPTS   (Optional) Java runtime options used when the start,
#  or run command is executed.
. more
#   JAVA_OPTS   (Optional) Java runtime options used when the start,
# stop, or run command is executed.


can you explain me , which is really the difference?

or in a production startup script,
i will write this in the catalina.sh itself

regards


Hassan Schroeder-2 wrote:
 
 On Wed, Mar 19, 2008 at 8:14 AM, dr_pompeii [EMAIL PROTECTED] wrote:
 
  i start the tomcat with this command
  ./catalina.sh run
 
 Set min/max values using JAVA_OPTS, e.g.
 
 export JAVA_OPTS= -Xms512M -Xmx512M 
 
 This can be in your dev environment, or in a production startup
 script, usually something like /etc/init.d/tomcat (to make sure it's
 started at boot time).
 
 HTH,
 -- 
 Hassan Schroeder  [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how%3A-this-configuration-for-linux-tp16132404p16181100.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Overriding Password in JDBC Realm

2008-03-20 Thread Emsley, I (Iain)
 

Emsley, I (Iain) wrote:
 I'm trying to implement a JDBC realm to compare a cookie against a 
 database to authenticate an identity but my current application falls

 over trying to get a password where one doesn't exist (they are 
 checked earlier on in the cycle in another section of the programme).

JDBCRealm (and DataSourceRealm) expect a username and password, and
they're provided by an Authenticator configured elsewhere (e.g. 
FormAuthenticator).

I thought so

 Is there a way of overriding the getPassword which the Realm appears 
 to want or am I best off trying to put a custom realm together?

Maybe you could start over, and elaborate a little on what you're
trying to achieve?

As you surmise, essentially a remember me. I'm trying to authenticate
a user from name derived from a SOAP filter and then to see if they are
associated with any of our groups and then to allow access based on
group membership which is worked out from a database of names, groups
and roles which is periodically updated. 

If you're attempting a 'remember me' type facility, for example, then
you should look into SecurityFilter, which does this and a few other
things rather well, and will save you writing and security testing your
own authentication code.
Thanks for the pointer to SecurityFilter, it looks like what I really
need. 


Iain

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is it possible to force application shutdown through the manager?

2008-03-20 Thread Chris Patti
Folks;

I am trying to leverage the Tomcat manager's capability for remote
deployment (e.g. Maven2 build running on host A, deploying to Tomcat on host
B via the maven-tomcat-plugin which uses the Tomcat manager).

For whatever reason, our rather large in house application refuses to shut
down when the STOP command is issued, so trying to redeploy the app yields
an OK message from the manager but when the webapps/squid (Our app is called
squid) directory is examined, none of the files have changed.

We're currently forced to run $catalina_home/bin/shutdown.sh -force, rm -rf
webapps/squid, manually copy the WAR into the webapps directory, and then
restart Tomcat, which isn't conducive to the aforementioned remote deploy
strategy at all.

Any hints would be greatly appreciated.

Thanks,
-Chris
(A log of my session showing the problem is attached below)

--

-
135 5:12pm [EMAIL 
PROTECTED]/prodinfo/sandbox/cpatti/m2-workarea/sequence/squid_app
 ls -ld
../../tomcat/webapps/*
drwxr-xr-x+ 4 cpatti sequence 9 Mar  4 12:09 ../../tomcat/webapps/manager/
drwxr-xr-x+ 3 cpatti sequence 3 Mar 18 20:07 ../../tomcat/webapps/squid/
136 5:12pm [EMAIL 
PROTECTED]/prodinfo/sandbox/cpatti/m2-workarea/sequence/squid_app
 mvn
tomcat:redeploy
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   prodinfo
[INFO]   SpringJpaIntegration
[INFO]   Configuration
[INFO]   dba
[INFO]   testhelpers
[INFO]   SquidEntities
[INFO]   Squid DBA Wrapper
[INFO]   common
[INFO]   Tapestry Common Components
[INFO]   Squid WebLogic Common Utilities
[INFO]   Freezer management API
[INFO]   Jerome Administration Project
[INFO]   Library Construction
[INFO]   tedsUtils
[INFO]   NCBI APPI Project
[INFO]   sequenceDataFormat
[INFO]   traceClient
[INFO]   reportnet
[INFO]   Bettalims Messaging XML and Castor files
[INFO]   Bettalims
[INFO]   Squid Salmon UI
[INFO]   Taskmaster
[INFO]   residue
[INFO]   bluefin-sources
[INFO]   bluefin
[INFO]   Fobject Server Common
[INFO]   Fobject Server Client
[INFO]   RearryCommon
[INFO]   Vector Clipper
[INFO]   Squid Reports
[INFO]   analysisPipelineCommon
[INFO]   Organism Checker
[INFO]   Squid UI
[INFO]   Squid Application
[INFO] Searching repository for plugin with prefix: 'tomcat'.
[INFO]

[INFO] Building prodinfo
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building SpringJpaIntegration
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building Configuration
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building dba
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building testhelpers
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building SquidEntities
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building Squid DBA Wrapper
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building common
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]

[INFO] Building Tapestry Common Components
[INFO]task-segment: [tomcat:redeploy]
[INFO]

[INFO] [tomcat:redeploy]
[INFO] Skipping non-war project
[INFO]


Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-03-20 Thread Filip Hanik - Dev Lists
It's expected behavior, sessions will always expire on the local node 
during a graceful shutdown.


expireSessionsOnShutdown=false simply means that we don't expire 
sessions in the remote nodes


Filip


Ronald Klop wrote:

Hello,

When I shutdown a node in my cluster (tomcat 5.5.26) sessionDestroyed 
is called on all SessionListeners on that node.
But I'm running a cluster, so one node stopping doesn't mean the 
session is destroyed.


My understanding is that expireSessionsOnShutdown=false by default 
and I don't change it in my config.


Is this a bug, a feature or am I doing something wrong?

Ronald.


No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OT - .jsp recommended practices

2008-03-20 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David kerber wrote:
| My question is:  would it be better practice to put the rest of the
| FORM generation lines into the java class, or is it better form to
| leave it the way it is.  I realize there's no functional difference; I'm
| just wondering which is considered to be 'better practice', however you
| define that.

I'm not sure exactly what Java class you mean, here, but I would not
ever put any content generation into a Java class.

Use your JSPs like templates (which is what they really are, if you
ignore the fact that they are compiled into servlets and executed, etc.).

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

iEYEARECAAYFAkfipIsACgkQ9CaO5/Lv0PDfrACfV70UpefkcdGpwTxfw5fjqnGB
KgkAoKxoMTpW5Infyp61Fy61c6iKok7n
=61ar
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-20 Thread antwake

I have the same problem as Scott. And I'm with Netbeans VWP . 
It appeared when I moved from Netbeans 6.0 and my own Tomcat instance
(5.5.17) to Netbeans 6.1Beta with embedded Tomcat (6.0.16) so it's more
related to the efficiency of Tomcat than a web app problem.


mgainty wrote:
 
 yes providing configuration files would assist in debugging this scenario
 Thanks
 Martin-
 - Original Message -
 From: Scott Mueller [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, March 19, 2008 6:19 PM
 Subject: Re: Running out of memory too easily in Tomcat 6.0.16
 
 
 Hi Martin,

 I did absolutely zero configuration of tomcat.  I use the commons
 dbcp/pool
 for hibernate, not tomcat's connection pool.  And I use acegi for
 security,
 not tomcat or j2ee's mechanism (though this memory problem was happening
 before I added acegi).  The only thing I touch with tomcat is
 startup/shutdown.bat and copying my .war to webapps.  You want me to send
 all hibernate and spring configuration files?  Some configuration is with
 annotations..

 On Wed, Mar 19, 2008 at 4:37 PM, Martin Gainty [EMAIL PROTECTED]
 wrote:

  Hi Scott--
 
  tough to say without understanding how you structured your app
  pls send all configuration files
 
  Thanks
  Martin
  - Original Message -
  From: Scott Mueller [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Sent: Wednesday, March 19, 2008 12:53 PM
  Subject: Running out of memory too easily in Tomcat 6.0.16
 
 
   Hi,
  
   I have a very small and simple Spring + Hibernate application running
 in
   Tomcat 6.0.16.  During testing I'm running into many of the following
  errors
   with Tomcat:
   javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen
  space
  
   I have to shutdown and startup tomcat every 3rd redeployment.  So I
 have
  3
   questions for anybody generous enough to help me:
   Is this normal for a tiny project in the beginning stages of
 development
   (I'm guessing due to Spring  Hibernate)?
   What is the proper way to increase memory allocated to Tomcat?
   If I have 3gbytes of RAM, should I allocate all 3gbytes or possibly
  more?
   The idea being memory allocated that I don't have will be swap and
 not
  cause
   tomcat to crash.
  
   Thanks so much for any help.
  
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Running-out-of-memory-too-easily-in-Tomcat-6.0.16-tp16161249p16185377.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to force application shutdown through the manager?

2008-03-20 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

Chris Patti wrote:
| For whatever reason, our rather large in house application refuses to shut
| down when the STOP command is issued, so trying to redeploy the app yields
| an OK message from the manager but when the webapps/squid (Our app is
called
| squid) directory is examined, none of the files have changed.

Hmm... when you issue the STOP command, does the application even /try/
to shut down? What do your Tomcat logs show?

- -chris

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

iEYEARECAAYFAkfiqhYACgkQ9CaO5/Lv0PDvuwCeLYxh05kiGJQpko7uGSnsjddl
vDYAni3DBjMZkLHOjxcn4MVZEVNWUONU
=w2Le
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Session Replication problem

2008-03-20 Thread Mc210274

Hello,

I have a problem with getting session replication to work in tomcat. I have
two tomat servers running on Windows Server 2003. 

I have replication work to the point where the user sessions get replicated
when the tomcat servers startup. What i mean by this is that lets say
tomcat2 is running and a user connects to the application and browses
arround. Then i start tomcat1 and I can see in the session state gets
replicated from tomcat2 to tomcat1.
===
Mar 20, 2008 12:54:18 PM org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions
INFO: Manager [/webdav]; session state send at 3/20/08 12:54 PM received in
109 ms.
===

If the user does not perform any additional actions in the application - so
the session state does not change - then I can stop the tomcat service on
tomcat2 and the session will fail over successfully to tomcat1. But I the
user clicks on any other links in the application and the session state
changes and I stop tomcat2 then then the user sees HTTP 500 errors. 

By checking the log file catalina.log file I do not see any session
replications after the initial one when the tomcat server starts. And I
believe that is the problem I just cannot figure out what I am doing wrong.
Below you will find the cluster config of tomcat1 and tomcat2. If anybody
could help me with this problem that would be great:

Tomcat1:
===
Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

manager.className=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=false
 notifySessionListenersOnReplication=true
Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.16.140.1
mcastPort=45564
mcastFrequency=500
mcastDropTime=3/
Receiver
className=org.apache.catalina.cluster.tcp.ReplicationListener
  tcpListenAddress=172.16.140.1
  tcpListenPort=9015
  tcpSelectorTimeout=100
  tcpThreadCount=16/
Sender
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/
Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
  
filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;
   primaryIndicator=true/
Valve
className=org.apache.catalina.cluster.session.JvmRouteBinderValve
   enabled=true/ 
ClusterListener
className=org.apache.catalina.cluster.session.ClusterSessionListener /
ClusterListener
className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener
/
/Cluster
===

Tomcat2
===
Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

manager.className=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=false
 notifySessionListenersOnReplication=true
Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.16.140.1
mcastPort=45564
mcastFrequency=500
mcastDropTime=3/
Receiver
className=org.apache.catalina.cluster.tcp.ReplicationListener
  tcpListenAddress=172.16.140.2
  tcpListenPort=9015
  tcpSelectorTimeout=100
  tcpThreadCount=16/
Sender
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/
Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
  
filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;
   primaryIndicator=true/
Valve
className=org.apache.catalina.cluster.session.JvmRouteBinderValve
   enabled=true/ 
ClusterListener
className=org.apache.catalina.cluster.session.ClusterSessionListener /
ClusterListener
className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener
/
/Cluster
===


-- 
View this message in context: 
http://www.nabble.com/Tomcat-Session-Replication-problem-tp16185824p16185824.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new 

Re: Tomcat Session Replication problem

2008-03-20 Thread Mc210274

I forgot to state that I am running tomcat 5.5
-- 
View this message in context: 
http://www.nabble.com/Tomcat-Session-Replication-problem-tp16185824p16185828.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to force application shutdown through the manager?

2008-03-20 Thread Chris Patti
On Thu, Mar 20, 2008 at 2:16 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Chris,

 Chris Patti wrote:
 | For whatever reason, our rather large in house application refuses to
 shut
 | down when the STOP command is issued, so trying to redeploy the app
 yields
 | an OK message from the manager but when the webapps/squid (Our app is
 called
 | squid) directory is examined, none of the files have changed.

 Hmm... when you issue the STOP command, does the application even /try/
 to shut down? What do your Tomcat logs show?

 - -chris


When I use tomcat:redeploy it just reloads, you're right.  When I issue a
tomcat:stop or tomcat:start it *does* attempt to shutdown or startup (Just
the app).

Here's the log for redeploy:
---
2008-03-20 16:43:36,364 [http-9220-Processor25] INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] -
Manager: restart: Reloading web application at '/squid'
2008-03-20 16:43:36,365 [http-9220-Processor25] INFO
org.apache.catalina.core.StandardContext - Reloading this Context has
started
2008-03-20 16:43:36,414 [http-9220-Processor25] INFO
org.apache.catalina.startup.ContextConfig - Missing application web.xml,
using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/squid]
2008-03-20 16:43:36,429 [http-9220-Processor25] INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/squid] -
cgi: init: loglevel set to 6
-- 
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: [EMAIL PROTECTED]
Technological progress is like an ax in the hands of a pathological
criminal. -Albert Einstein


Re: Tomcat to Apache connection dies

2008-03-20 Thread John Moore

Caldarale, Charles R wrote:
From: John Moore [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat to Apache connection dies


Ok, I assume you mean the APR connector is the mod_jk.so 
which is on the Apache side only.. ?



No - the APR connector is a replacement for the pure Java HTTP/AJP ones
on the Tomcat side.
  

Ok, now I'm confused...

Please be patient, but in all the years past I would compile a connector 
for mod_jk.so that is placed in the ../apache/modules directory then I 
would add the following to the server.xml,


Server container

Listener className=org.apache.jk.config.ApacheConfig
   modJk=/usr/local/apache/modules/mod_jk.so /


Host container

Listener className=org.apache.jk.config.ApacheConfig
   append=true
   forwardAll=false
   modJk=/usr/local/apache/modules/mod_jk.so /

... and I would be up and running.. (and would touch nothing else..)

So.. given that, what connector am I using ??

Thank you for your patience..

John..


Re: Tomcat to Apache connection dies

2008-03-20 Thread Rainer Jung

John Moore schrieb:

Caldarale, Charles R wrote:
From: John Moore [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat to 
Apache connection dies


Ok, I assume you mean the APR connector is the mod_jk.so which is on 
the Apache side only.. ?



No - the APR connector is a replacement for the pure Java HTTP/AJP ones
on the Tomcat side.
  

Ok, now I'm confused...

Please be patient, but in all the years past I would compile a connector 
for mod_jk.so that is placed in the ../apache/modules directory then I 
would add the following to the server.xml,


Server container

Listener className=org.apache.jk.config.ApacheConfig
   modJk=/usr/local/apache/modules/mod_jk.so /


Host container

Listener className=org.apache.jk.config.ApacheConfig
   append=true
   forwardAll=false
   modJk=/usr/local/apache/modules/mod_jk.so /

... and I would be up and running.. (and would touch nothing else..)

So.. given that, what connector am I using ??

Thank you for your patience..


We use the term connector on both sides. On the httpd side it's an httpd 
module, e.g. mod_jk. On the Tomcat side it's one of several choices one 
can decide on.


What makes the things confusing is, that you can generate a mod_jk 
configuration by using a Listener configuration on the Tomcat side. This 
Listener does not mean, that Tomcat uses mod_jk, but it tells Tomcat to 
generate a configuration for mod_jk. Once you've got a workinbg 
configuration, you can remove those Listeners. They are not really 
needed for a working connection between httpd and Tomcat.


On the Tomcat side, there are two different sets of choices for 
connectors: protocol and implementation. For the protocol you can either 
chosse http/https if you want to connect directly with the browser or 
via an http reverse proxy. Or you choose the AJP13 protocol if you want 
to connect via mod_jk or mod_proxy_ajp.


For both protocols, there exist different connector implementations on 
the Tomcat side:


- Coyote (pure java, default, one thread per connection)
- APR connector, also called tcnative (native, i.e. C based, needs to be 
compiled additionally, contains support for openssl, able to separate 
idle connections from threads)
- NIO (Tomcat 6) (pure java, also able to separate idle connections from 
threads, supports Comet)


Regards,

Rainer


httpd/mod_jk



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to force application shutdown through the manager?

2008-03-20 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

Chris Patti wrote:
| When I use tomcat:redeploy it just reloads, you're right.  When I issue a
| tomcat:stop or tomcat:start it *does* attempt to shutdown or startup (Just
| the app).

I think I'm missing something. Issuing a STOP /does/ stop it?

| Here's the log for redeploy:
| ---
| 2008-03-20 16:43:36,364 [http-9220-Processor25] INFO
| org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] -
| Manager: restart: Reloading web application at '/squid'
| 2008-03-20 16:43:36,365 [http-9220-Processor25] INFO
| org.apache.catalina.core.StandardContext - Reloading this Context has
| started
| 2008-03-20 16:43:36,414 [http-9220-Processor25] INFO
| org.apache.catalina.startup.ContextConfig - Missing application web.xml,
| using defaults only
| StandardEngine[Catalina].StandardHost[localhost].StandardContext[/squid]
| 2008-03-20 16:43:36,429 [http-9220-Processor25] INFO
| org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/squid] -
| cgi: init: loglevel set to 6

So, what does the log look like when you attempt a stop?

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

iEYEARECAAYFAkfi3HkACgkQ9CaO5/Lv0PBlpwCfdbsCLnxfHZkcPbmUzBZ0i6wT
sTMAmwWPcvqJ1IZwTgcAKf2FDq7PW2W3
=2at8
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Having problem deploy a simple webapp

2008-03-20 Thread Guest1234

You were right, the problem occured because Tomcat couldn't find
WSServletContextListener.
I checked and the above class comes with Sun Java Server which I don't
have.
Does Tomcat comes with a listener that supports the Annotations API (the
@WebService and @WebMethod)?
If so what is the name of the listener class?
If not where could I download a library that has a listener that supports
the Annotations API?
After all those annotations are supported by JSR 181, so there must be other
implementations besides the one that comes with Sun Java Server.

I tried googling for it but I couldn't find one suitable.


Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 To whom it may concer,
 
 Guest1234 wrote:
 | I have a simple web-service that all it does is print Hello World, I'm
 | following the example at the
 | Jave EE tutorial here:
 | http://java.sun.com/javaee/5/docs/tutorial/doc/bnayn.html Java EE
 Tutorial
 | example
 | However I'm not using the Sun Java Server and instead I'm using Tomcat
 so I
 | can't deploy with their
 | instructions.
 
 Perhaps you /should/ run with Sun Java Server if you want to follow
 their instructions.
 
 |
 listener-classcom.sun.xml.ws.transport.http.servlet.WSServletContextListener/listener-class
 
 I suspect that this filter is unavailable. It looks like something that
 might be packaged with either Sun's Java Server or through Sun's WSDP.
 
 Check your catalina.out: it should contain more information about the
 error (probably a ClassNotFoundException). If that's the case, you
 should find whatever library is necessary and install it in your webapp.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkfgMicACgkQ9CaO5/Lv0PBq8QCeJFxthQZv8ShOTZ7yLswsnuw5
 IFMAnievNw3W5HPodxqob0PYzR70YrZR
 =GTGP
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Having-problem-deploy-a-simple-webapp-tp16129389p16189946.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Mark Leone


Caldarale, Charles R wrote:
I wonder if the use of the UserDatabase resource is 
hard-wired into the manager app somehow.



It's not; we use a JAASRealm for Tomcat 6.0.16 production, and the
manager app quite happily authenticates with that.  All we changed in
server.xml and the manager's web.xml were the following:

  
I appreciate all the help you've given. Implementing a JAASRealm sounds 
easy enough, although it will be a few days at least before I'll have 
the time to write the LoginModule. Although it's good to know that 
JAASRealm is working for 6.0.16 in your production environment, I'm not 
100% sure it will work for me. AFAIK, JDBCRealm is working for 6.0.16 as 
well, and I seem to have a manager-specific problem that prevents it 
from working in my environment.


I just tried manager with Tomcat 5.5 (on a different system than my 6.0 
Tomcat), and authentication works there with JDBCRealm, with the same 
configuration I'm trying with 6.0. So either something needs to be 
configured differently in 6.0, something is broken in 6.0, or I have 
something wrong in my environment. Is anyone else using manager with 
JDBCRealm in 6.0?


I'm pretty sure now that manager is not even trying to use the JDBCRealm 
when I access it. I noticed that the prompt for my credentials says 
Enter username and password for 'Tomcat Manager Application'. When I 
access my custom app, it says Enter username and password for 
'JDBCRealm'. So for some reason the manage app is not trying to use the 
JDBCRealm. I've commented out the resource-env-ref element in web.xml 
that was referencing the variable users mapped via the ResouorceLink 
in the context.xml file, and I tried getting rid of the context.xml file 
as well. I don't know what else I can do to make manager use JDBCRealm 
just as my other apps do. They're configured exactly the same in 
web.xml, there are no context.xml or manager.xml files in play, and 
there is nothing in server.xml that is applied specifically to any of my 
apps.


-Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Caldarale, Charles R
 From: Mark Leone [mailto:[EMAIL PROTECTED] 
 Subject: Re: Manager app authentication not working with JDBCRealm
 
 Implementing a JAASRealm sounds easy enough

I wasn't suggesting that you convert to a JAASRealm, but just providing
evidence that the manager webapp is not tied to the UserDatabaseRealm.

 I noticed that the prompt for my credentials says 
 Enter username and password for 'Tomcat Manager 
 Application'.

That prompt comes from the 401.jsp file in the manager webapp, not the
realm-name in the web.xml file; I don't think the realm-name is
actually used anywhere.

 I've commented out the resource-env-ref element 
 in web.xml that was referencing the variable users
 mapped via the ResouorceLink in the context.xml file

??? There's no such ResourceLink in
webapps/manager/META-INF/context.xml, nor in conf/context.xml, so where
did that come from?  Sounds like you don't actually have a clean Tomcat
6 installation.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Manager app authentication not working with JDBCRealm

2008-03-20 Thread Mark Leone


I noticed that the prompt for my credentials says 
Enter username and password for 'Tomcat Manager 
Application'.



That prompt comes from the 401.jsp file in the manager webapp, not the
realm-name in the web.xml file; I don't think the realm-name is
actually used anywhere.

  
But why does my custom app display JDBCRealm in the credentials 
prompt? Something is making these two apps behave differently wrt 
authentication, and it seems that the fact that they display different 
authentication prompts could be a clue. Problem is, even with this clue, 
I don't have a clue. :)

??? There's no such ResourceLink in
webapps/manager/META-INF/context.xml, nor in conf/context.xml, so where
did that come from?  Sounds like you don't actually have a clean Tomcat
6 installation.
  
Correct. I copied it over from my Tomcat 5 installation during the many 
gyrations I've been going through trying to find something that will 
make this work. I guess I lost track of what I changed at this point, 
but I'm certain it was failing with a fresh install.  But just to be 
sure, I started from scratch one more time with a clean deployment, and 
I still have the same problem. In fact, I did the same thing on my other 
system (after de-installing Tomcat 5.5), and I get the same behavior 
there-- admin authentication works out of the box, but then stops 
working after I change the realm to a JDBCRealm.


I only make two changes to the original distribution. In 
${catalina.home}\conf\server.xml, I comment out the UserDatabaseRealm 
and add a JDBCRealm;  and in 
${catalina.home}\webapps\manager\WEB-INF\web.xml, I change the 
login-config to


login-config
   auth-methodDIGEST/auth-method
   realm-nameJDBCRealm/realm-name
 /login-config

Either this is not the right way to make an app work with JDBCRealm 
(though it works with my custom app), or there's something wrong in this 
version of Tomcat.


I appreciate all you've done, and I don't want to take up anymore of 
your time on this. Unless you have any final ideas, I'm ready to give up 
on making it work. Thanks again.


-Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]