RE : RE : Security Newbie - Need Help

2005-02-11 Thread LERBSCHER Jean-Pierre
Could you try MemoryRealm to evict filter mechanisms (like firewall or
router configuration) between your tomcat serve rand your database ?

As you can see in the servlet specification the security-role element isn't
optional.
!ELEMENT web-app (icon?, display-name?, description?,
distributable?, context-param*, filter*, filter-mapping*,
listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
welcome-file-list?, error-page*, taglib*, resourceenv-
ref*, resource-ref*, security-constraint*, login-config?,
security-role*, env-entry*, ejb-ref*, ejb-local-ref*) 

-Message d'origine-
De : Luke [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 11 février 2005 08:18
À : Tomcat Users List
Objet : Re: RE : Security Newbie - Need Help

Hi Dennis;

Where is IMS defined? Otherwise I have specified everything as you
recommended. Yet I still get this error once I hit the page (no login
prompt):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Thanks,

Luke


- Original Message - 
From: Dennis Payne [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 11:23 AM
Subject: Re: RE : Security Newbie - Need Help


 you will not need a roles table for tomcat... it is only useful to your
own applications that will edit the data. The system only utilizes the the
user-role table and the user-password table (at least for basic
authentication).

 Each servlet in the system  that is secure is setup this way and has an
associated mapping:

 servlet
 servlet-nameEnterAssignment/servlet-name
 display-nameEnterAssignment/display-name
 descriptionEnter Assignment/description
 servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
 security-role-ref
 role-nameIMS/role-name
 role-linkIMS/role-link
 /security-role-ref
 /servlet
  ...
servlet-mapping
 servlet-nameEnterAssignment/servlet-name
 url-pattern/servlet/EnterAssignment/url-pattern
 /servlet-mapping

 The server.xml contains a reference to the security tables by using the
Realm tag placed as shown (there are other ways to do it) and all  db
driver jars have been place in the classpath:

 Engine defaultHost=localhost name=Catalina
Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true /
   Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=username connectionPassword=password
connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
driverName=com.mysql.jdbc.Driver userRoleTable=userrole
userTable=userpassword roleNameCol=userrole userNameCol=userid
userCredCol=passwordid /
/Host
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.UserDatabaseRealm /
 /Engine

 Hope this helps Enjoy!

  [EMAIL PROTECTED] 02-10-2005 08:56 
 Where would the security-role be declared? WEB-INF/web.xml?

 The tables I have are roles, user_roles and users. When you say wrong role
 table which of the tables I have should be renamed?

 Thanks for you help,

 Luke

  It seems that you have a wrong role table (roles or user_roles).
  Have you declare security-role element ?
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED]
  Envoyé : jeudi 10 février 2005 16:02
  À : Tomcat Users List
  Objet : Re: Security Newbie - Need Help
 
  Hi;
 
  Here is the roles table:
 
  mysql select * from roles;
  +---+
  | role_name |
  +---+
  | admin |
  +---+
  1 row in set (0.02 sec)
 
  I noticed I did have a mistake in the realm declaration in my
server.xml.
  I
  had the wrong user table name. That is fixed this but still have the
  problem:
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
 
 
connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
  sword
  userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=user_roles
  roleNameCol=role_name /
 
  I also changed my security declaration to have a realm-name in the login
  config:
 
  !-- security --
  security-constraint
  web-resource-collection
  web-resource-namefw/web-resource-name
  url-pattern*.do/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
  /web-resource-collection
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-namefw/realm-name
  /login-config
  /security-constraint
 
  The error is (which appears without a login window first allowing me to
  

Query about IIS, Tomcat and Virtual Hosts

2005-02-11 Thread Michael Foggin
Hi there,

we are creating a staging / QA environment for our websites.

We are using a Win2K server running IIS which has multiple websites 
defined (using host headers for identification against a single IP 
address), eg:

localhost
staging.website.com
staging.website2.co.uk
staging.website3.de etc etc

I have installed the latest version of Tomcat (5.5.7) and configured it 
using the jk2.0.4 connectors and for the default website this is fine; I 
can serve JSP's that I place under the {CATALINA_BASE}\webapps\ROOT 
directory structure. I know this isn't the best place to put them but I'm 
trying to take this in easy steps!

My main problem is when trying to server JSP's from the virtual, ie non 
localhost, sites defined in IIS.

In IIS I have added the isapi_redirector2.dll and created the 'jakarta' 
virtual directory so I'm pretty certain that I'm missing a trick somewhere 
on the Tomcat configuration side but I'm not sure where.

I have tried editing the workers2.properties file in the conf directory 
with the following entry:

[uri:staging.website2.co.uk/*.jsp]
info= Attempt to map requests for all JSP pages on virtual server to 
Tomcat.
context=/staging_website2_co_uk

The context directory exist under webapps and was created by cutting, 
pasting and renaming the jsp-examples directory. Again, far from ideal but 
I'm just trying to get up to speed!

This hasn't worked as expected in that staging.website2.co.uk/test.jsp 
returns a 404 whilst localhost/staging_website_co_uk/test.jsp returns the 
page properly.

Attentions then turned to the server.xml file where I've really got a bit 
lost.

Should I be creating staging.whatever as an engine or a host? 
Additionally, should I be adding a new directory under \conf\catalina for 
each of the new sites, similar to the localhost directory? 

I appreciate that this is a number of questions but I've tried all the 
things that seem 'obvious' to me but I'm now flailing about aimlessly and 
could do with Some Help :)

Thanks in advance,

Michael Foggin
Technical Specialist, DDA Web Compliance Project
Xansa 
t: 0115 959 2089
i: 72 2089
m: 0780 191 7081
e: [EMAIL PROTECTED] / [EMAIL PROTECTED]
w: www.xansa.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



admin and manager not working

2005-02-11 Thread Gustavo Ringel
Hi, I installed for testing tomcat and all was going well. At start I used
the default names I get for the directories, for example
jakarta-tomcat-5.0.28. 

 

I now have changed the name to jakarta-tomcat and I'm being able to enter
the default site and documentation, but when I try to enter the admin or the
manager I'm getting:

 


HTTP Status 404 - /admin/

  _  


type Status report

message /admin/

description The requested resource (/admin/) is not available.

  _  


Apache Tomcat/5.0.28


Any ideas?



RE: What does each part of a className mean?

2005-02-11 Thread Peter Crowther
 From: Chris Hosler [mailto:[EMAIL PROTECTED] 
 I am having a problem getting SSL to work on my tomcat 5 sever so I
 would like to know what each segment of the class name means from the
 server.xml file 
 (className=org.apache.coyote.tomcat5.CoyoteConnector)  
 and how it affect the SSL on my server. When I looked at my server.xml
 file the classname was not there I have removed the rem statements but
 SSL does not work I think I have it wrong.  Do I even need to add the
 classname can I run without it Just use the port 8443? Do I need to
 change the org.apache.coyote.tomcat5.CoyoteConnector and 
 change it to my domain name/server name ?
 Any help would be great

It's the Java package and class name of the connector to use - think of
it as the full postal address of the code.  That package name is
internal to Tomcat, and is set by the developers.  If you change it in
your config file, unless you have another appropriate connector in a
library somewhere, you'll *definitely* screw up your configuration.

If you're interested in the gory details of where the name comes from,
open up server/lib/catalina.jar in your tomcat installation with
something like Winzip and follow the package names down - you'll find
the .class file in there.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error in Windows Event Viewer

2005-02-11 Thread A jie
Hi to all! 

I have an application on Tomcat5.5.4+IIS5  that fills my Windows Log (Event 

Viewer) with these messages: 

Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding 
ajp13:localhost:8009 1 0 

Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable 
error 3 

In the application log the source of event is Apache Jakarta Conn. 

You know if there is a solution for this issues? 

Thanks a lot. 




--
MSN:[EMAIL PROTECTED]
QQ:29967409
-
_
 MSN Messenger:  http://messenger.msn.com/cn  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FW: i solved the problem

2005-02-11 Thread Gustavo Ringel
 

 

  _  

From: Gusti y Viky [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 12:28 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: i solved the problem

 

I solved the problem, after changing the name of the directory I checked on
the Catalina.out log and saw that some functions on a package used for admin
and manager application expected the directory jakarta-tomcat-5.0.28.

 

This means that I have to get the source and recompile in case I want to
change the directory name? Anyway with the definition of CATALINA_HOME I
don't have to deal with the directory name so it's not so important.

 

Thanks anyway.

 

Gustavo.



tomcat5.5 and page encoding in web.xml

2005-02-11 Thread Piotr Woliski
Hello
I try to set page encoding for *.jsp in web.xml for my context:
-- web.xml --
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

jsp-config
jsp-property-group
url-pattern/*/url-pattern
page-encodingISO-8859-2/page-encoding
/jsp-property-group
/jsp-config
/web-app
--- end web.xml --
It doesn't work.
I also tried with url-pattern: *.jsp
If I put into *.jsp file directive:
%@ page pageEncoding=ISO-8859-2 %
national characters looks OK.
That file is included in another jsp file.
I have more files like that and i'd like to set it ones in web.xml.
Previously it works with tomcat4 with no problems.
From JavaServer Pages Specification Version 2.0:
It is a translation-time error to name different encodings in the 
pageEncoding attribute of the page directive of a JSP page and in a JSP 
configuration element whose URL pattern matches the page.

I tried to set different encodings in this two places and has no errors.
Any suggestions?
--
_
Piotr Woliski
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Enabling CGI

2005-02-11 Thread Kelly, Steve
I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ? 
 
Thx,
 
Steve.


Re: Enabling CGI

2005-02-11 Thread Richard Russell
The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application root 
directory + File.separator + this prefix. The default cgiPathPrefix is 
/WEB-INF/cgi

Does that help?

Richard Russell 
Deutsche Bank AG London 
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
 
To: tomcat-user@jakarta.apache.org
cc: 
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ? 
 
Thx,
 
Steve.




RE: Enabling CGI

2005-02-11 Thread Kelly, Steve
Hi Richard,

So that's my cgi programs. So if my cgi programs are in
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the parameter
to /misc/stuff/cgi ?

Steve 

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application
root directory + File.separator + this prefix. The default cgiPathPrefix
is /WEB-INF/cgi

Does that help?

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
 
To: tomcat-user@jakarta.apache.org
cc: 
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ? 
 
Thx,
 
Steve.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Enabling CGI

2005-02-11 Thread Richard Russell
Don't know -- never done it. However, that's how I'd interpret it.

Richard Russell 
Deutsche Bank AG London 
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:26 AM
Please respond to Tomcat Users List
 
To: Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Subject:RE: Enabling CGI


Hi Richard,

So that's my cgi programs. So if my cgi programs are in
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the parameter
to /misc/stuff/cgi ?

Steve 

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application
root directory + File.separator + this prefix. The default cgiPathPrefix
is /WEB-INF/cgi

Does that help?

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
 
To: tomcat-user@jakarta.apache.org
cc: 
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ? 
 
Thx,
 
Steve.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Relative Path in web.xml

2005-02-11 Thread Tim Funk
If you wish to load a file relative to the context root of your webapp - look 
at ServletContext.getResourceAsStream()

-Tim
Rodrigo Avila wrote:
Hi,
is possible to make a Propertie, in the web.xml file, poiting to a
file using the relative path of the file? Something like:
propertie: fooProp
value: conf/file.txt (file.txt is in $CATALINA_HOME/conf directory, or
/usr/local/tomcat/conf)
Thanks the help!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat 5.5.7 won't start because of NPE

2005-02-11 Thread Parsons Technical Services
The real problem is the lines above it. Either the server.xml is hosed, 
missing, corrupted or Tomcat doesn't have rights to it.

What OS are you running on?
Doug
- Original Message - 
From: Joseph Shraibman jks@selectacast.net
To: tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 1:17 AM
Subject: tomcat 5.5.7 won't start because of NPE


Using the out of box config files and webapps:
java version 1.5.0_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
This appears on catalina.out:
Feb 11, 2005 12:35:51 AM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Feb 11, 2005 12:35:51 AM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Feb 11, 2005 12:35:51 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat doesnot shutdown properly

2005-02-11 Thread Tim Funk
kill -9 {tomcat process id}
-Tim
Narayan, Satya wrote:
Hi,
 Tomcat doesnot shutdown when one of the threads is in process. 
I type catalina stop to stop the tomcat but it does not work cos one of
the threads is in process
Is there any way out of this of tomcat forcibly killing all threads and
shutting down tomcat ?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat problem

2005-02-11 Thread Parsons Technical Services
It appears you have a problem with a JSP. Check the logs for a more complete 
trace and see if the is any additional info. Do all the examples work?

Doug
- Original Message - 
From: ssk 2001 [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 2:29 AM
Subject: tomcat problem


After starting the tomcar when i enter my application url it fails .. The 
error is given below , pls help me ..

HTTP Status 500 -
-
type Exception report
message
description The server encountered an internal error () that prevented it 
from fulfilling this request.

exception
org.apache.jasper.JasperException 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause
java.lang.NullPointerException 
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220) 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.4 logs.

-
Apache Tomcat/5.5.4
-
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term' 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


launchin tomcat from eclipse

2005-02-11 Thread hicham
Hello
 I've installed lomboz plugin on eclipse 3.0.1, using jdk 1.4
 when lanching tomcat 5.0.30 from eclipse 3.0.1 I get the following
Due to new licensing guidelines mandated by the Apache Software
Foundation Board of Directors, a JMX implementation can no longer
be distributed with the Apache Tomcat binaries. As a result, you
must download a JMX 1.2 implementation (such as the Sun Reference
Implementation) and copy the JAR containing the API and
implementation of the JMX specification to:
${catalina.home}/bin/jmx.jar
though I've checked jmx.jar is located in the /tomcatinstall/bin 
directory

any suggestions to solve this ?
Thanks a lot for your help
hicham.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat versions vs java vsns

2005-02-11 Thread Pawson, David

http://jakarta.apache.org/tomcat/faq/version.html relates 
tomcat vsns to the servlet versions.

Is there a similar relationship between java versions please?
Simply, will 5.0.28 run happily with java 1.5?

Regards DaveP.

 snip here *

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat versions vs java vsns

2005-02-11 Thread Tim Funk
Tomcat 5.0 will run on java 1.4 or 1.5.
Tomcat 5.5 runs on java1.5. TO use 1.4 - you need the compat libraries.
-Tim
Pawson, David wrote:
http://jakarta.apache.org/tomcat/faq/version.html relates 
tomcat vsns to the servlet versions.

Is there a similar relationship between java versions please?
Simply, will 5.0.28 run happily with java 1.5?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Relative Path in web.xml

2005-02-11 Thread Rodrigo Avila
Ok, but in getResourceAsStream()  i need to pass a String with the
name of the file, right? But, is the path/name of the file I store in
an parameter in web.xml... and I get this name again using
config.getInitParameter( nameOfTheFile ). For now, I use the
full-path in the nameOfTheFile parameter in web.xml... but, how I
can use just an relative path in this parameter?

Sorry if I misundestood... my english is very poor.

Thanks again!


On Fri, 11 Feb 2005 06:35:51 -0500, Tim Funk [EMAIL PROTECTED] wrote:
 If you wish to load a file relative to the context root of your webapp - look
 at ServletContext.getResourceAsStream()
 
 -Tim
 
 Rodrigo Avila wrote:
  Hi,
 
  is possible to make a Propertie, in the web.xml file, poiting to a
  file using the relative path of the file? Something like:
 
  propertie: fooProp
  value: conf/file.txt (file.txt is in $CATALINA_HOME/conf directory, or
  /usr/local/tomcat/conf)
 
  Thanks the help!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
Rodrigo de Avila
[EMAIL PROTECTED]

http://www.avila.eti.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Enabling CGI

2005-02-11 Thread Kelly, Steve
I tried that and I can't get it to work. It just displays the cgi code
in the window that's trying to execute it.

Anyone else got any clues?

Thanks in advance,

Steve. 

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 11:29
To: Tomcat Users List
Subject: RE: Enabling CGI

Don't know -- never done it. However, that's how I'd interpret it.

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:26 AM
Please respond to Tomcat Users List
 
To: Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Subject:RE: Enabling CGI


Hi Richard,

So that's my cgi programs. So if my cgi programs are in
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the parameter
to /misc/stuff/cgi ?

Steve 

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application
root directory + File.separator + this prefix. The default cgiPathPrefix
is /WEB-INF/cgi

Does that help?

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
 
To: tomcat-user@jakarta.apache.org
cc: 
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ? 
 
Thx,
 
Steve.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat versions vs java vsns

2005-02-11 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

Tomcat 5.0 will run on java 1.4 or 1.5.

Tomcat 5.5 runs on java1.5. TO use 1.4 - you need the 
compat libraries.

What of the other way round Tim?
I want to run tc5.0.28 with java 1.5
(since I need 1.5 for other applications),
and I haven't moved up to 5.5 yet.

regards DaveP




-Tim

Pawson, David wrote:

 http://jakarta.apache.org/tomcat/faq/version.html relates 
tomcat vsns 
 to the servlet versions.
 
 Is there a similar relationship between java versions please?
 Simply, will 5.0.28 run happily with java 1.5?
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling CGI

2005-02-11 Thread David Smith
Hi Steve.
Having just done this myself to help someone else, yes.  There's a 
comment block in the global web.xml file (find it at 
$CATALINA_HOME/conf/web.xml) that really helps in explaining things.

--David
Kelly, Steve wrote:
Hi Richard,
So that's my cgi programs. So if my cgi programs are in
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the parameter
to /misc/stuff/cgi ?
Steve 

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:
cgiPathPrefix - The CGI search path will start at the web application
root directory + File.separator + this prefix. The default cgiPathPrefix
is /WEB-INF/cgi
Does that help?
Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237

Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
   To: tomcat-user@jakarta.apache.org
   cc: 
   Subject:Enabling CGI

I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ? 

Thx,
Steve.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


not getting load-balancing behavior

2005-02-11 Thread John Klassa
We're using apache 1.3.33 with tomcat 5.0.16, connected via mod_jk, on 
Solaris.

What I'm observing is that load-balancing isn't working.  We have a 
couple of machines dedicated to our XML interface, and have apache 
configured to hand all such requests to loadbalancer3.  In our mod_jk 
configuration file, we've got:

JkMount /xml/* loadbalancer3
Loadbalancer3 is configured as follows, in the workers.properties file:
worker.loadbalancer3.type=lb
worker.loadbalancer3.balanced_workers=machine-a,machine-b
worker.loadbalancer3.sticky_session=0
worker.loadbalancer3.sticky_sessions=0
I used both sticky_session and sticky_sessions because I've seen it 
both ways, in documentation.  (Which is it really?)

Anyway, I've got lbfactor set to 1 for both machine-a and machine-b.
Now, in operation, machine-a is getting hammered, while machine-b gets 
almost no traffic at all.  Machine-a typically has CPU loads in the 4.0 
range, while machine-b sits idle at 0.04.

My hunch is that the bulk of the traffic is coming from a single 
source, and so apache/mod_jk/something is deciding to give it over to 
the same tomcat instance each time, even though it shouldn't be.  
Ideally, work would be handed to machine-a and machine-b in round-robin 
fashion, regardless of past history.

Any clues as to what I'm doing wrong?  This is causing no shortage of 
consternation in our production environment.

Thanks,
John
--
John Klassa / [EMAIL PROTECTED]
Test Information Systems / Central Engineering Services
Cisco Systems / RTP / NC/ USA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE : Security Newbie - Need Help

2005-02-11 Thread Luke
This is a good point. I do have a firewall on the server blocking all
external ports on the DB server. Tomcat is connect through localhost so I
thought this would be ok. Maybe its not.

I will try disabling the firewall and the memory realm and see what happens.

Thanks,

Luke

Luke Shannon
Web Design/Development
Java Programmer
http://www.lukeshannon.com
phone: 416-570-1984
- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 12:21 AM
Subject: RE : RE : Security Newbie - Need Help


 Could you try MemoryRealm to evict filter mechanisms (like firewall or
 router configuration) between your tomcat serve rand your database ?

 As you can see in the servlet specification the security-role element
isn't
 optional.
 !ELEMENT web-app (icon?, display-name?, description?,
 distributable?, context-param*, filter*, filter-mapping*,
 listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
 welcome-file-list?, error-page*, taglib*, resourceenv-
 ref*, resource-ref*, security-constraint*, login-config?,
 security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 11 février 2005 08:18
 À : Tomcat Users List
 Objet : Re: RE : Security Newbie - Need Help

 Hi Dennis;

 Where is IMS defined? Otherwise I have specified everything as you
 recommended. Yet I still get this error once I hit the page (no login
 prompt):


 HTTP Status 403 - Configuration error: Cannot perform access control
without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Thanks,

 Luke


 - Original Message - 
 From: Dennis Payne [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 11:23 AM
 Subject: Re: RE : Security Newbie - Need Help


  you will not need a roles table for tomcat... it is only useful to your
 own applications that will edit the data. The system only utilizes the the
 user-role table and the user-password table (at least for basic
 authentication).
 
  Each servlet in the system  that is secure is setup this way and has an
 associated mapping:
 
  servlet
  servlet-nameEnterAssignment/servlet-name
  display-nameEnterAssignment/display-name
  descriptionEnter Assignment/description
  servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
  security-role-ref
  role-nameIMS/role-name
  role-linkIMS/role-link
  /security-role-ref
  /servlet
   ...
 servlet-mapping
  servlet-nameEnterAssignment/servlet-name
  url-pattern/servlet/EnterAssignment/url-pattern
  /servlet-mapping
 
  The server.xml contains a reference to the security tables by using the
 Realm tag placed as shown (there are other ways to do it) and all  db
 driver jars have been place in the classpath:
 
  Engine defaultHost=localhost name=Catalina
 Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.JDBCRealm
 connectionName=username connectionPassword=password
 connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
 driverName=com.mysql.jdbc.Driver userRoleTable=userrole
 userTable=userpassword roleNameCol=userrole userNameCol=userid
 userCredCol=passwordid /
 /Host
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true /
 Realm className=org.apache.catalina.realm.UserDatabaseRealm /
  /Engine
 
  Hope this helps Enjoy!
 
   [EMAIL PROTECTED] 02-10-2005 08:56 
  Where would the security-role be declared? WEB-INF/web.xml?
 
  The tables I have are roles, user_roles and users. When you say wrong
role
  table which of the tables I have should be renamed?
 
  Thanks for you help,
 
  Luke
 
   It seems that you have a wrong role table (roles or user_roles).
   Have you declare security-role element ?
  
   -Message d'origine-
   De : Luke [mailto:[EMAIL PROTECTED]
   Envoyé : jeudi 10 février 2005 16:02
   À : Tomcat Users List
   Objet : Re: Security Newbie - Need Help
  
   Hi;
  
   Here is the roles table:
  
   mysql select * from roles;
   +---+
   | role_name |
   +---+
   | admin |
   +---+
   1 row in set (0.02 sec)
  
   I noticed I did have a mistake in the realm declaration in my
 server.xml.
   I
   had the wrong user table name. That is fixed this but still have the
   problem:
  
 Realm  className=org.apache.catalina.realm.JDBCRealm
debug=99
   driverName=org.gjt.mm.mysql.Driver
  
  


RE: Tale of two servers

2005-02-11 Thread George Sexton
The most common thing for this kind of issue is DNS resolution.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 
 On Thu, 10 Feb 2005 01:19:10 -0800 (PST), Dola Woolfe
 [EMAIL PROTECTED] wrote:
  The offender is a super duper new dell desktop with
  4gb of ram, etc. It's running java 1.5 and is
  committed to nothing by tomcat.
  
  The winner is a rinky-dink 2 year old laptop with
  little ram, and lots of spyware sucking out cpu.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat problem

2005-02-11 Thread George Sexton
I've seen this if the tags specified by the page are not available.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: ssk 2001 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 11, 2005 12:30 AM
 To: tomcat-user@jakarta.apache.org
 Subject: tomcat problem
 
 After starting the tomcar when i enter my application url it 
 fails .. The error is given below , pls help me ..
  
 HTTP Status 500 - 
 -
 
 type Exception report
 
 message 
 
 description The server encountered an internal error () that 
 prevented it from fulfilling this request.
 
 exception 
 org.apache.jasper.JasperException 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:373) 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:295)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.ja
 va:245)   
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
 
 root cause 
 java.lang.NullPointerException
 org.apache.jasper.JspCompilationContext.createCompiler(JspComp
 ilationContext.java:220)  
 org.apache.jasper.JspCompilationContext.compile(JspCompilation
 Context.java:552) 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:296) 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:295)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.ja
 va:245)   
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
 
 note The full stack trace of the root cause is available in 
 the Apache Tomcat/5.5.4 logs.
 
 -
 Apache Tomcat/5.5.4
 
   
 -
 Do you Yahoo!?
  Yahoo! Search presents - Jib Jab's 'Second Term'
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Enabling CGI

2005-02-11 Thread Brelsfoard, Alex
Heh, sounds a lot like the problem Iw as just having.  Because of the
time crunch I'm under, after working on it for a week, I ended up haivng to
install an Apache server just to handle my CGI's. shrug
Good luck.
--Alex
 
Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED] 



From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Fri 2/11/2005 7:28 AM
To: Tomcat Users List
Subject: RE: Enabling CGI



I tried that and I can't get it to work. It just displays the cgi code
in the window that's trying to execute it.

Anyone else got any clues?

Thanks in advance,

Steve.

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:29
To: Tomcat Users List
Subject: RE: Enabling CGI

Don't know -- never done it. However, that's how I'd interpret it.

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:26 AM
Please respond to Tomcat Users List

To: Tomcat Users List tomcat-user@jakarta.apache.org
cc:
Subject:RE: Enabling CGI


Hi Richard,

So that's my cgi programs. So if my cgi programs are in
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the parameter
to /misc/stuff/cgi ?

Steve

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application
root directory + File.separator + this prefix. The default cgiPathPrefix
is /WEB-INF/cgi

Does that help?

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List

To: tomcat-user@jakarta.apache.org
cc:
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ?

Thx,

Steve.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL protocol handler issues

2005-02-11 Thread Peter Crowther
Environment: Tomcat 5.0.28, built from source.

I'm trying to persuade Tomcat to allow me to use a custom URL scheme
('bod3vfs'), both in webapps and in some of the behind-the-scenes setup
- for example, I have a custom HostConfig that examines a virtual file
system.  I've tried the following approaches to getting this integrated;
none of them appear to work.  Ideas welcome!

1) Create the handler in org.bodington.core.protocol.bod3vfs.Handler.
Package that into bodington3.jar; place in server/lib.  Call a static
routine just after startup to amend java.protocol.handler.pkgs to
include org.bodington.core.protocol.  Result: MalformedURLException when
asking for bod3vfs:*.

2) As per 1, but add
-Djava.protocol.handler.pkgs=org.bodington.core.protocol.  Result as 1.

3) Amend DirContextURLStreamHandlerFactory to include the following:

public URLStreamHandler createURLStreamHandler(String protocol) {
if (protocol.equals(jndi)) {
return new DirContextURLStreamHandler();
} else if (protocol.equals(bod3vfs)) {
return new org.bodington.core.protocol.bod3vfs.Handler();
} else {
return null;
}
}

... and ensure that the factory replaces the standard factory before
it's required, in my custom HostConfig (which is successfully loaded
from bodington3.jar).  Result:
java.lang.reflect.InvocationTargetException caused by
java.lang.NoClassDefFoundError:
org/bodington/core/protocol/bod3vfs/Handler at the point that the
runtime attempts to load DirContextURLStreamHandlerFactory.  Note that
the compilation was successful, and that the invoking class has been
loaded successfully from the same jar that contains the handler.  If I
replace the return statement with 'return null',
DirContextURLStreamHandlerFactory loads and runs successfully.

4) Copy the Handler class into catalina.jar and repeat 3.  Same result.

Remy, the original code for DirContextURLStreamHandlerFactory is yours,
I think.  Any particular reason you replaced the factory rather than
setting the packages?

- Peter

--
Peter Crowther, Director, Melandra Limited
John Dalton House, 121 Deansgate, Manchester M3 2AB
t: +44 (0)161 828 8736  f: +44 (0)161 832 5683

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.7 compiler settings

2005-02-11 Thread Trond G. Ziarkowski
Hi all!
I have just upgraded from 5.0.28 to 5.5.7. My only problem is that 
Tomcat can't compile some of my jsps that are using features found in 
jdk1.5 (auto-boxing).

I have tried adding:
   init-param
   param-namecompilerSourceVM/param-name
   param-value1.5/param-value
   /init-param
   init-param
   param-namecompilerTargetVM/param-name
   param-value1.5/param-value
   /init-param
under the jsp servlet in CATALINA_HOME/conf/web.xml without any luck.
If I precompile my jsps with jdk1.5.0 it works, but in my development 
environment I would like Tomcat to compile my jsp files.

Any help appreciated
Trond
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


301 permanent redirects in Tomcat - how to achieve

2005-02-11 Thread Daniel Rhoden
In an environment totally hosted by Tomcat, how does one accomplish a 
301 permanent redirect? What is the equivalent of .htaccess in 
Tomcat?  Can 301 redirects be defined in web.xml?

I am changing technology and don't want my site to loose its page rank. 
Example:
mydomain\currentfolder\samefilename.jsp
 needs to be redirected to:
mydomain\newfolder\samefilename.jsp

Thanks,
Daniel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 301 permanent redirects in Tomcat - how to achieve

2005-02-11 Thread Jason Bainbridge
On Fri, 11 Feb 2005 09:45:45 -0500, Daniel Rhoden [EMAIL PROTECTED] wrote:
 In an environment totally hosted by Tomcat, how does one accomplish a
 301 permanent redirect? What is the equivalent of .htaccess in
 Tomcat?  Can 301 redirects be defined in web.xml?

I think you are going to have to do this in a roundabout way with
something similar to the solution here:

http://www.sitepoint.com/forums/showthread.php?t=231044

Regards.
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 301 permanent redirects in Tomcat - how to achieve

2005-02-11 Thread Roberto Cosenza
Put apache in front of it, You will gain in flexibility.


On Fri, 11 Feb 2005 08:52:03 -0600, Jason Bainbridge
[EMAIL PROTECTED] wrote:
 On Fri, 11 Feb 2005 09:45:45 -0500, Daniel Rhoden [EMAIL PROTECTED] wrote:
  In an environment totally hosted by Tomcat, how does one accomplish a
  301 permanent redirect? What is the equivalent of .htaccess in
  Tomcat?  Can 301 redirects be defined in web.xml?
 
 I think you are going to have to do this in a roundabout way with
 something similar to the solution here:
 
 http://www.sitepoint.com/forums/showthread.php?t=231044
 
 Regards.
 --
 Jason Bainbridge
 KDE - Conquer Your Desktop - http://kde.org
 KDE Web Team - [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Roberto Cosenza
http://robcos.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat versions vs java vsns

2005-02-11 Thread Parsons Technical Services
DaveP,
As Tim wrote Tomcat 5.0 will run on java 1.4 or 1.5.
So any Tomcat 5.0.x version will run on java 1.4 or higher.
Doug
- Original Message - 
From: Pawson, David [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 7:27 AM
Subject: RE: Tomcat versions vs java vsns



   -Original Message-
   From: Tim Funk 
   
   Tomcat 5.0 will run on java 1.4 or 1.5.
   
   Tomcat 5.5 runs on java1.5. TO use 1.4 - you need the 
   compat libraries.

What of the other way round Tim?
I want to run tc5.0.28 with java 1.5
(since I need 1.5 for other applications),
and I haven't moved up to 5.5 yet.
regards DaveP

   
   -Tim
   
   Pawson, David wrote:
   
http://jakarta.apache.org/tomcat/faq/version.html relates 
   tomcat vsns 
to the servlet versions.

Is there a similar relationship between java versions please?
Simply, will 5.0.28 run happily with java 1.5?

   
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   

--
DISCLAIMER:
NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Enabling CGI

2005-02-11 Thread Kelly, Steve
Has anyone out there got CGI scripts running from a tomcat webapp. If
so, I'll carry on my investigations. If not, I might just give up ! 

-Original Message-
From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 13:54
To: Tomcat Users List; Tomcat Users List
Subject: RE: Enabling CGI

Heh, sounds a lot like the problem Iw as just having.  Because of
the time crunch I'm under, after working on it for a week, I ended up
haivng to install an Apache server just to handle my CGI's. shrug
Good luck.
--Alex
 
Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED] 



From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Fri 2/11/2005 7:28 AM
To: Tomcat Users List
Subject: RE: Enabling CGI



I tried that and I can't get it to work. It just displays the cgi code
in the window that's trying to execute it.

Anyone else got any clues?

Thanks in advance,

Steve.

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:29
To: Tomcat Users List
Subject: RE: Enabling CGI

Don't know -- never done it. However, that's how I'd interpret it.

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:26 AM
Please respond to Tomcat Users List

To: Tomcat Users List tomcat-user@jakarta.apache.org
cc:
Subject:RE: Enabling CGI


Hi Richard,

So that's my cgi programs. So if my cgi programs are in
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the parameter
to /misc/stuff/cgi ?

Steve

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application
root directory + File.separator + this prefix. The default cgiPathPrefix
is /WEB-INF/cgi

Does that help?

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List

To: tomcat-user@jakarta.apache.org
cc:
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed
the doc but I don't understand what I need to set the parameter
cgiPathPrefix to. What is it looking for in this search path ?

Thx,

Steve.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Enabling CGI

2005-02-11 Thread Kelly, Steve
Hi David,

I followed that but to no avail.

Steve. 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 12:34
To: Tomcat Users List
Subject: Re: Enabling CGI

Hi Steve.

Having just done this myself to help someone else, yes.  There's a
comment block in the global web.xml file (find it at
$CATALINA_HOME/conf/web.xml) that really helps in explaining things.

--David

Kelly, Steve wrote:

Hi Richard,

So that's my cgi programs. So if my cgi programs are in 
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the 
parameter to /misc/stuff/cgi ?

Steve

-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI

The CGI programs themselves.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:

cgiPathPrefix - The CGI search path will start at the web application 
root directory + File.separator + this prefix. The default 
cgiPathPrefix is /WEB-INF/cgi

Does that help?

Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
 
To: tomcat-user@jakarta.apache.org
cc: 
Subject:Enabling CGI


I'm trying to enable CGI within one of my tomcat webapps. I've followed

the doc but I don't understand what I need to set the parameter 
cgiPathPrefix to. What is it looking for in this search path ?
 
Thx,
 
Steve.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 301 permanent redirects in Tomcat - how to achieve

2005-02-11 Thread Jason Bainbridge
On Fri, 11 Feb 2005 10:09:03 -0500, Daniel Rhoden [EMAIL PROTECTED] wrote:
 Thank you very much for that.  It looks like where I mess up was not
 making it a 404 error page first.  I was actually creating a jsp with
 the exact name and trying to change the status the same way documented
 in the post.
 
 Just curious, but how did you locate that so quickly?

Googled for:

tomcat 301 redirect

It's the third result and plus I've done similar things before but I
usually only store the pointers to information away in my head so I
know how to retrieve it, hence the Google. :)


-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling CGI

2005-02-11 Thread Hassan Schroeder
Kelly, Steve wrote:
Has anyone out there got CGI scripts running from a tomcat webapp. If
so, I'll carry on my investigations. If not, I might just give up ! 
Yes. I'm baffled by the apparent problems with this. Since I needed
to update a dev server anyway, I /just now/:
1) downloaded and installed TC 5.5.7
2) uncommented the CGI servlet and servlet-mapping entries in
 $CATALINA_HOME/conf/web.xml
3) renamed the $CATALINA_HOME/server/lib/servlets-cgi.renametojar
 to servlets-cgi.jar
4) added a ROOT.xml file to $CATALINA_HOME/conf/Catalina/localhost
 (pointing to an existing context)
5) added a cgi directory under WEB-INF in that context.
6) added the `printenv` test cgi from an Apache httpd install
7) started TC, using the default server.xml
8) entered http://example:8080/cgi-bin/printenv in browser --
   RESULT: listing of environment variables as expected
It really couldn't be much simpler, unless it were configured for
CGI by default :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem Configuring Tomcat 5.0.28 and IIS5.0

2005-02-11 Thread Kumar, Modha
Hi All
 
I am trying to configure IIS5 with tomcat5.0.28. My tomcat works fine. I
have tested IIS http://localhost/ http://localhost/  it shows the IIS page
fine.
However if I try to access jsp-examples
http://localhost:8080/jsp-examples/jsp2/el/basic-arithmetic.jsp
http://localhost:8080/jsp-examples/jsp2/el/basic-arithmetic.jsp  is fine
however 
http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp
http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp  throws page
cannot be found error
 
Here is what I did 

Downloaded isapi_redirect-1.2.8.dll is for IIS 5 and later Web Server.
Rename to isapi_redirect.dll 
 
1. Default Website properties (In internet information services) in the
isapi filters tab, I have
green arrow. Properties (Fileter name: tomcat executable:C:\Tomcat
5.0.28\conf\isapi_redirect.dll)
 
2.In server.xml added this entry
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
3.workers.properties
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=testWorker
 

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
 
4.uriworkmap.properties
/jsp-examples/*=testWorker
/jsp-examples/*.jsp=testWorker
/jsp-examples/servlet/*=testWorker
 
5.jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
 
## COMMENTS WILL BE _LOST_
 
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
 
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm
 
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
 
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
 
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
 
6.jk_iis.log
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
/localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp' from 3 maps
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/servlet/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*.jsp'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (760): Default redirection of
/jsp-examples/jsp2/el/basic-arithmetic.jsp
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/jsp-examples/jsp2/el/basic-arithmetic.jsp' from 3 maps
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/servlet/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match
testWorker - /jsp-examples/
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*.jsp'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (808): Found a suffix match
testWorker - *.jsp
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (770): check if
[/jsp-examples/jsp2/el/basic-arithmetic.jsp] is points to the web-inf
directory
[Fri Fe


some questions

2005-02-11 Thread Didier McGillis
I'm about to start moving forward on a site that I took over a couple of 
months back.  All the hardware and configuration issues seem to be ironed 
out, and I am beginning to redo large portions of the site.  The product 
portion of the site is currently html pages and not generated html pages, 
these are hand-coded and hand maintainted html pages.  I'm targetting these 
for removal and redesign, since they are ugly to boot.

Anyway my questions are this.  Should I start implementing pieces like 
load-balancing, database connection pooling, and caching, gzip output in the 
new pieces so that when I sweep through the rest of the code base later that 
I wont have to go back and redo everthing.  Currently the other parts of the 
site are using a clumsy home brewed odbc connection to the db.  And none of 
the connections are serialized so doing load-balancing and session sharing 
wont work on the old section as I have been told.

Any thoughts?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enabling CGI

2005-02-11 Thread David Smith
Ok.  Can you post some info?:
Tomcat version:
Platform:
CGI script language (native binary, shell, perl, bat, etc., ...):
Servlet mappings (from WEB-INF/web.xml):
Request URI used:
Location of the cgi scripts:
What's been done so far to make it work:
--David
Kelly, Steve wrote:
Hi David,
I followed that but to no avail.
Steve. 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 12:34
To: Tomcat Users List
Subject: Re: Enabling CGI

Hi Steve.
Having just done this myself to help someone else, yes.  There's a
comment block in the global web.xml file (find it at
$CATALINA_HOME/conf/web.xml) that really helps in explaining things.
--David
Kelly, Steve wrote:
 

Hi Richard,
So that's my cgi programs. So if my cgi programs are in 
tomcat.base.dir/webapps/mywebapp/misc/stuff/cgi then I set the 
parameter to /misc/stuff/cgi ?

Steve
-Original Message-
From: Richard Russell [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 11:10
To: Tomcat Users List
Subject: Re: Enabling CGI
The CGI programs themselves.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html says:
cgiPathPrefix - The CGI search path will start at the web application 
root directory + File.separator + this prefix. The default 
cgiPathPrefix is /WEB-INF/cgi

Does that help?
Richard Russell
Deutsche Bank AG London
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237

Kelly, Steve [EMAIL PROTECTED]
02/11/2005 11:05 AM
Please respond to Tomcat Users List
  To: tomcat-user@jakarta.apache.org
  cc: 
  Subject:Enabling CGI

I'm trying to enable CGI within one of my tomcat webapps. I've followed
   

 

the doc but I don't understand what I need to set the parameter 
cgiPathPrefix to. What is it looking for in this search path ?

Thx,
Steve.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE : Security Newbie - Need Help

2005-02-11 Thread Dennis Payne
IMS is the system name... we chose that as the role name. You will need to use 
your role name and role link in its place.  When a role is defined on a servlet 
it is secure.  When it is not it is not secure (usually).

In the realm setting, make sure you have replaced the text username and 
passwordid for you username and password into your database and that the 
address or URI reference to the databse is correct with the appropriate 
database name.

The text I sent was a working example from my system...  The only piece that 
you shuld really pay attendion to is the Realm reference.  You need to make 
sure it is setup for your system with the proper names.  You may need to play 
with it a bit.

We are running Tomcat 5.0.28

 [EMAIL PROTECTED] 02-11-2005 00:18 
Hi Dennis;

Where is IMS defined? Otherwise I have specified everything as you
recommended. Yet I still get this error once I hit the page (no login
prompt):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Thanks,

Luke


- Original Message - 
From: Dennis Payne [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 11:23 AM
Subject: Re: RE : Security Newbie - Need Help


 you will not need a roles table for tomcat... it is only useful to your
own applications that will edit the data. The system only utilizes the the
user-role table and the user-password table (at least for basic
authentication).

 Each servlet in the system  that is secure is setup this way and has an
associated mapping:

 servlet
 servlet-nameEnterAssignment/servlet-name
 display-nameEnterAssignment/display-name
 descriptionEnter Assignment/description
 servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
 security-role-ref
 role-nameIMS/role-name
 role-linkIMS/role-link
 /security-role-ref
 /servlet
  ...
servlet-mapping
 servlet-nameEnterAssignment/servlet-name
 url-pattern/servlet/EnterAssignment/url-pattern
 /servlet-mapping

 The server.xml contains a reference to the security tables by using the
Realm tag placed as shown (there are other ways to do it) and all  db
driver jars have been place in the classpath:

 Engine defaultHost=localhost name=Catalina
Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true /
   Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=username connectionPassword=password
connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
driverName=com.mysql.jdbc.Driver userRoleTable=userrole
userTable=userpassword roleNameCol=userrole userNameCol=userid
userCredCol=passwordid /
/Host
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.UserDatabaseRealm /
 /Engine

 Hope this helps Enjoy!

  [EMAIL PROTECTED] 02-10-2005 08:56 
 Where would the security-role be declared? WEB-INF/web.xml?

 The tables I have are roles, user_roles and users. When you say wrong role
 table which of the tables I have should be renamed?

 Thanks for you help,

 Luke

  It seems that you have a wrong role table (roles or user_roles).
  Have you declare security-role element ?
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED] 
  Envoyé : jeudi 10 février 2005 16:02
  À : Tomcat Users List
  Objet : Re: Security Newbie - Need Help
 
  Hi;
 
  Here is the roles table:
 
  mysql select * from roles;
  +---+
  | role_name |
  +---+
  | admin |
  +---+
  1 row in set (0.02 sec)
 
  I noticed I did have a mistake in the realm declaration in my
server.xml.
  I
  had the wrong user table name. That is fixed this but still have the
  problem:
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
 
 
connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
  sword
  userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=user_roles
  roleNameCol=role_name /
 
  I also changed my security declaration to have a realm-name in the login
  config:
 
  !-- security --
  security-constraint
  web-resource-collection
  web-resource-namefw/web-resource-name
  url-pattern*.do/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
  /web-resource-collection
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-namefw/realm-name
  /login-config
  /security-constraint
 
  The error is (which appears without a login window first 

Cannot deploy .war with 1 jsp file (context path failure)

2005-02-11 Thread David W. Brown
Hello TC gurus, I am willing to try this again. I am sure this has shown up a 
few thousand times but I have just downloaded the TC 5.5 in hopes that my 
little JSP app I am dreaming up will run on the servlet server. Here is the 
problem: I cannot get the context path right no matter what and the TC manager 
just claims: Failed to deploy application at context. I have set the context 
path to many different paths but nothing works. I have embedded echo / 
statements all through the build.xml hoping to see the pattern. My JSP app is 
so small it is patterned right after the Hello World (/sample) sample.war file 
application that comes with TC. I have used the standard on all the 
configuration: build.xml, web.xml and build.properties (which probably is not 
necessary). I can only get the following error condition: Failed to deploy 
application at context path /inventory. The build.xml file I am using is the 
modified starter build.xml file. I can runn all of the ant build commands 
successfully (ant, ant clean, ant dist). When I run ant install all fails 
because the app will not deploy.

Like the sample.war I only have a single jsp and a (dot).html file. The 
sample.war file will deploy at: /sample but my inventory.war only fails with 
the error condition noted above. I cannot seem to control the context path 
what-so-ever. Ant environment vars follow:

[echo] Using user.home=C:\Documents and Settings\hbd6345
[echo] Using dist.home=C:\Documents and Settings\hbd6345\My 
Documents\general\dev\inventory/dist
[echo] Using build.home=C:\Documents and Settings\hbd6345\My 
Documents\general\dev\inventory/build
[echo] Using app.path=/inventory

Any and all remedies, rants or raves welcomed.

Please advise,

David.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enabling CGI

2005-02-11 Thread David Smith
My only addition is take a look at the logs.  The CGI servlet is set by 
default to a log level of 6 which shows a lot of diagnostic info.  I 
found it very useful when I set mine up as a test last night.

--David
Hassan Schroeder wrote:
Kelly, Steve wrote:
Has anyone out there got CGI scripts running from a tomcat webapp. If
so, I'll carry on my investigations. If not, I might just give up ! 

Yes. I'm baffled by the apparent problems with this. Since I needed
to update a dev server anyway, I /just now/:
1) downloaded and installed TC 5.5.7
2) uncommented the CGI servlet and servlet-mapping entries in
 $CATALINA_HOME/conf/web.xml
3) renamed the $CATALINA_HOME/server/lib/servlets-cgi.renametojar
 to servlets-cgi.jar
4) added a ROOT.xml file to $CATALINA_HOME/conf/Catalina/localhost
 (pointing to an existing context)
5) added a cgi directory under WEB-INF in that context.
6) added the `printenv` test cgi from an Apache httpd install
7) started TC, using the default server.xml
8) entered http://example:8080/cgi-bin/printenv in browser --
   RESULT: listing of environment variables as expected
It really couldn't be much simpler, unless it were configured for
CGI by default :-)
HTH!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cannot deploy .war with 1 jsp file (context path failure)

2005-02-11 Thread Jason Bainbridge
On Fri, 11 Feb 2005 16:28:00 + (UTC), David W. Brown
[EMAIL PROTECTED] wrote:
 Hello TC gurus, I am willing to try this again. I am sure this has shown up a 
 few thousand times but I have just downloaded the TC 5.5 in hopes that my 
 little JSP app I am dreaming up will run on the servlet server. Here is the 
 problem: I cannot get the context path right no matter what and the TC 
 manager just claims: Failed to deploy application at context. I have set the 
 context path to many different paths but nothing works. I have embedded echo 
 / statements all through the build.xml hoping to see the pattern. My JSP app 
 is so small it is patterned right after the Hello World (/sample) sample.war 
 file application that comes with TC. I have used the standard on all the 
 configuration: build.xml, web.xml and build.properties (which probably is not 
 necessary). 

Do you have a META-INF/context.xml with

context path=/inventory docBase=inventory debug=1 reloadable=true
?

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSPC problems

2005-02-11 Thread Jagadeesha T
Hi all,
   I 'am trying to do jspPreCompilation, it is thrwing away saying. 
ClassCastExcception.
 
Class java.util.HashMap loaded from parent loader (parentFirst)
Class java.util.Collections loaded from parent loader (parentFirst)
Class java.io.ByteArrayOutputStream loaded from parent loader (parentFirst)
 [java] java.lang.ClassCastException
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:172)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
 [java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [java] at org.apache.tools.ant.Task.perform(Task.java:364)
 [java] at org.apache.tools.ant.Target.execute(Target.java:341)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [java] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
 [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [java] Caused by: java.lang.ClassCastException
 [java] at 
org.apache.jasper.compiler.JspRuntimeContext.init(JspRuntimeContext.java:95)
 [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1005)
 [java] at org.apache.jasper.JspC.execute(JspC.java:870)
 [java] at org.apache.jasper.JspC.main(JspC.java:196)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
 [java] ... 13 more
 [java] --- Nested Exception ---
 [java] java.lang.ClassCastException
 [java] at org.apache.jasper.compiler.JspRuntimeContext.init
 
 
Please if anybody got this error and got it solved.Please could you help out to 
run precompilation.
 
Regards,
Jagga
 



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Adding ServletContextListener causes web app to not deploy

2005-02-11 Thread Fenderbosch, Eric
I've got a small web app that's working just fine. As soon as I add a listener, 
it fails to deploy.

Here's the relevant part of web.xml:

?xml version=1.0 encoding=UTF-8?
 
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
  context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valuenet.fender.bazaar.struts.BazaarMessageResources/param-value
  /context-param
  listener

listener-classnet.fender.bazaar.servlet.BazaarServletContextListener/listener-class
  /listener

And the VERY simple listener:

package net.fender.bazaar.servlet;
 
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
 
class BazaarServletContextListener implements ServletContextListener {
 
private ServletContext context;
 
public void contextDestroyed(ServletContextEvent event) {
context = null;
}
 
public void contextInitialized(ServletContextEvent event) {
context = event.getServletContext();
}
}

And the server log:
INFO: Removing web application at context path /bazaar
Feb 11, 2005 11:16:37 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\java\jakarta-tomcat-5.0.28\conf\Catalina\localhost\bazaar.xml
Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

I'm using Tomcat 5.0.28 and Sun JDK 1.4.2_06-b03.

Any ideas?
TIA 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat NTLM Authentication - 403 Error

2005-02-11 Thread Kalyan Inuganti
Hi All,

We use Integrated Windows Authentication with Kerberos authentication
protocol to logon to our website (running on Tomcat). This works great
in dev/test/prod but when I try it on my localhost, I get the
following error:
-
message: This server does not allow NTLM, but the client attempted NTLM anyway
description: Access to the specified resource (This server does not
allow NTLM, but the client attempted NTLM anyway) has been forbidden.
-

I was wondering if there was some Tomcat configuration that would
allow my localhost to allow NTLM.

At the moment, I do not have access to any of the environments but my
localhost. I would have compared the server.xml etc. otherwise.

Thanks,
Kal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Enabling CGI

2005-02-11 Thread Kelly, Steve
Thanks everyone,

Did as suggested and that works fine suggesting that the CGI bit is okay
and it's something wrong in my webapp. I'll post another question.

Cheers,

Steve.
  

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 15:32
To: Tomcat Users List
Subject: Re: Enabling CGI

Kelly, Steve wrote:
 Has anyone out there got CGI scripts running from a tomcat webapp. If 
 so, I'll carry on my investigations. If not, I might just give up !

Yes. I'm baffled by the apparent problems with this. Since I needed to
update a dev server anyway, I /just now/:

1) downloaded and installed TC 5.5.7
2) uncommented the CGI servlet and servlet-mapping entries in
  $CATALINA_HOME/conf/web.xml
3) renamed the $CATALINA_HOME/server/lib/servlets-cgi.renametojar
  to servlets-cgi.jar
4) added a ROOT.xml file to $CATALINA_HOME/conf/Catalina/localhost
  (pointing to an existing context)
5) added a cgi directory under WEB-INF in that context.
6) added the `printenv` test cgi from an Apache httpd install
7) started TC, using the default server.xml

8) entered http://example:8080/cgi-bin/printenv in browser --
RESULT: listing of environment variables as expected

It really couldn't be much simpler, unless it were configured for CGI by
default :-)

HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HTMLArea and SpellCheck plugin

2005-02-11 Thread Kelly, Steve
Anybody successfully implemented a tomcat webapp that uses the HTMLArea
editor and the SpellChecker plugin (both free from Interactive Tools and
Dynarch) ?
 
TIA
 
Steve.


dodgy session class

2005-02-11 Thread Vlad.Ilyschenko
Hi,

 

I'm running tomcat 5.0.30 on two machines A and B (Linux RHAS3).

 

When tomcat A restarts it fails to sync session state with session
state not received or something to that effect and tomcat B logs this
message:

 

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] ERROR
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
Unable to receive message through TCP channel

java.lang.ClassCastException

at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageR
eceived(SimpleTcpReplicationManager.java:530)

at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageD
ataReceived(SimpleTcpReplicationManager.java:596)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim
pleTcpCluster.java:580)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70
)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep
licationThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT
hread.java:67)

 

I changed SimpleTcpReplicationManager to output class names of the
sessions it is trying to cast to ReplicatedSession and got the following
picture:

 

11 Feb 2005 17:21:44 [Cluster-MembershipReceiver] INFO
org.apache.catalina.cluster.tcp.SimpleTcpCluster  - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.56.21:
4001,192.168.56.21,4001, alive=3]

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -

Re: Tomcat versions vs java vsns

2005-02-11 Thread Tim Funk
AFAIK - yes
-Tim
Parsons Technical Services wrote:
DaveP,
As Tim wrote Tomcat 5.0 will run on java 1.4 or 1.5.
So any Tomcat 5.0.x version will run on java 1.4 or higher.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Adding ServletContextListener causes web app to not deploy

2005-02-11 Thread Martin Grotzke
hi,

you should make the class public.

cheers,
martin



On Fri, 2005-02-11 at 12:27 -0500, Fenderbosch, Eric wrote:
 I've got a small web app that's working just fine. As soon as I add a 
 listener, it fails to deploy.
 
 Here's the relevant part of web.xml:
 
 ?xml version=1.0 encoding=UTF-8?
  
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
   context-param
 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valuenet.fender.bazaar.struts.BazaarMessageResources/param-value
   /context-param
   listener
 
 listener-classnet.fender.bazaar.servlet.BazaarServletContextListener/listener-class
   /listener
 
 And the VERY simple listener:
 
 package net.fender.bazaar.servlet;
  
 import javax.servlet.ServletContext;
 import javax.servlet.ServletContextEvent;
 import javax.servlet.ServletContextListener;
  
 class BazaarServletContextListener implements ServletContextListener {
  
 private ServletContext context;
  
 public void contextDestroyed(ServletContextEvent event) {
 context = null;
 }
  
 public void contextInitialized(ServletContextEvent event) {
 context = event.getServletContext();
 }
 }
 
 And the server log:
 INFO: Removing web application at context path /bazaar
 Feb 11, 2005 11:16:37 AM org.apache.catalina.core.StandardHostDeployer install
 INFO: Processing Context configuration file URL 
 file:C:\java\jakarta-tomcat-5.0.28\conf\Catalina\localhost\bazaar.xml
 Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext 
 listenerStart
 SEVERE: Skipped installing application listeners due to previous error(s)
 Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext start
 SEVERE: Context startup failed due to previous errors
 
 I'm using Tomcat 5.0.28 and Sun JDK 1.4.2_06-b03.
 
 Any ideas?
 TIA 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-- 
Martin Grotzke
Hohenesch 38, 22765 Hamburg
Tel.  +49 (0) 40.39905668
Mobil +49 (0) 170.9365656
E-Mail[EMAIL PROTECTED]
Onlinehttp://www.javakaffee.de


signature.asc
Description: This is a digitally signed message part


Re: HTMLArea and SpellCheck plugin

2005-02-11 Thread Jason Bainbridge
On Fri, 11 Feb 2005 12:47:42 -0500, Kelly, Steve
[EMAIL PROTECTED] wrote:
 Anybody successfully implemented a tomcat webapp that uses the HTMLArea
 editor and the SpellChecker plugin (both free from Interactive Tools and
 Dynarch) ?

do you mean the spell checker 'plugin' that just uses
http://spellchecker.net to check spelling? For the likes of informal
forums and what not that might be okay but if you're doing anything
commercial I wouldn't recommend it also with the HTMLArea component
I'd only deploy that in a controlled Intranet environment otherwise
you could be asking for trouble,

I did a while back right an interface to iSpell (or was it aSpell?
can't remember..) that piped input to and output from the windows
executable that I used to generate HTML from so the users could
correct their mistakes but abandoned that due to licensing problems.

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Adding ServletContextListener causes web app to not deploy

2005-02-11 Thread Fenderbosch, Eric
How embarrassing.  I feel like such a newbie.  Can I blame the missing public 
modifier on my IDE?  Please?

Thanks for the help.  That was it.

-Original Message-
From: Martin Grotzke [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 1:02 PM
To: Tomcat Users List
Subject: Re: Adding ServletContextListener causes web app to not deploy


hi,

you should make the class public.

cheers,
martin



On Fri, 2005-02-11 at 12:27 -0500, Fenderbosch, Eric wrote:
 I've got a small web app that's working just fine. As soon as I add a 
 listener, it fails to deploy.
 
 Here's the relevant part of web.xml:
 
 ?xml version=1.0 encoding=UTF-8?
  
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
   context-param
 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valuenet.fender.bazaar.struts.BazaarMessageResources/param-value
   /context-param
   listener
 
 listener-classnet.fender.bazaar.servlet.BazaarServletContextListener/listener-class
   /listener
 
 And the VERY simple listener:
 
 package net.fender.bazaar.servlet;
  
 import javax.servlet.ServletContext;
 import javax.servlet.ServletContextEvent;
 import javax.servlet.ServletContextListener;
  
 class BazaarServletContextListener implements ServletContextListener {
  
 private ServletContext context;
  
 public void contextDestroyed(ServletContextEvent event) {
 context = null;
 }
  
 public void contextInitialized(ServletContextEvent event) {
 context = event.getServletContext();
 }
 }
 
 And the server log:
 INFO: Removing web application at context path /bazaar
 Feb 11, 2005 11:16:37 AM org.apache.catalina.core.StandardHostDeployer install
 INFO: Processing Context configuration file URL 
 file:C:\java\jakarta-tomcat-5.0.28\conf\Catalina\localhost\bazaar.xml
 Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext 
 listenerStart
 SEVERE: Skipped installing application listeners due to previous error(s)
 Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Feb 11, 2005 11:17:30 AM org.apache.catalina.core.StandardContext start
 SEVERE: Context startup failed due to previous errors
 
 I'm using Tomcat 5.0.28 and Sun JDK 1.4.2_06-b03.
 
 Any ideas?
 TIA 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-- 
Martin Grotzke
Hohenesch 38, 22765 Hamburg
Tel.  +49 (0) 40.39905668
Mobil +49 (0) 170.9365656
E-Mail[EMAIL PROTECTED]
Onlinehttp://www.javakaffee.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTMLArea and SpellCheck plugin

2005-02-11 Thread David Wall
Anybody successfully implemented a tomcat webapp that uses the HTMLArea
editor and the SpellChecker plugin (both free from Interactive Tools and
Dynarch) ?
What do people think about HTMLArea?  It seems one of the only free HTML 
textarea type widgets out there.  I think the latest has greater support 
than just IE, which is critical in a public web site.

David 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: HTMLArea and SpellCheck plugin

2005-02-11 Thread Steffen Heil
See http://www.fckeditor.net/ 

 -Ursprüngliche Nachricht-
 Von: David Wall [mailto:[EMAIL PROTECTED] 
 Gesendet: Freitag, 11. Februar 2005 19:15
 An: Tomcat Users List
 Betreff: Re: HTMLArea and SpellCheck plugin
 
  Anybody successfully implemented a tomcat webapp that uses the 
  HTMLArea editor and the SpellChecker plugin (both free from 
  Interactive Tools and
  Dynarch) ?
 
 What do people think about HTMLArea?  It seems one of the 
 only free HTML textarea type widgets out there.  I think the 
 latest has greater support than just IE, which is critical in 
 a public web site.
 
 David 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


smime.p7s
Description: S/MIME cryptographic signature


RE: HTMLArea and SpellCheck plugin

2005-02-11 Thread Kelly, Steve
No. It's a plugin specifically for HTMLArea. But it does use Aspell. It
is only an intranet deployment.

Cheers,

Steve. 

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 18:07
To: Tomcat Users List
Subject: Re: HTMLArea and SpellCheck plugin

On Fri, 11 Feb 2005 12:47:42 -0500, Kelly, Steve
[EMAIL PROTECTED] wrote:
 Anybody successfully implemented a tomcat webapp that uses the 
 HTMLArea editor and the SpellChecker plugin (both free from 
 Interactive Tools and
 Dynarch) ?

do you mean the spell checker 'plugin' that just uses
http://spellchecker.net to check spelling? For the likes of informal
forums and what not that might be okay but if you're doing anything
commercial I wouldn't recommend it also with the HTMLArea component I'd
only deploy that in a controlled Intranet environment otherwise you
could be asking for trouble,

I did a while back right an interface to iSpell (or was it aSpell?
can't remember..) that piped input to and output from the windows
executable that I used to generate HTML from so the users could correct
their mistakes but abandoned that due to licensing problems.

Regards,
--
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org KDE Web Team -
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot deploy .war with 1 jsp file (context path failure)

2005-02-11 Thread Jason Bainbridge
On Fri, 11 Feb 2005 19:07:27 + (UTC), David W. Brown
[EMAIL PROTECTED] wrote:
 Hello Jason, thanks for the speedy reply and help. The only context.xml I can 
 find is @: /Apache Software Foundation/Tomcat5.5/conf/context.xml the xml 
 parameter you have quoted below is not present. There are not such 
 directories: META-INF anywhere in the tomcat installation directories on in 
 my /build or /dist directories (just web.xml). I pasted the xml string you 
 supplied into context.xml at the TC conf directory context.xml file and 
 issued ant install and still get the error condition: Fail - unable to 
 install app at /inventory.

For Tomcat 5.5. the context.xml should be located within your webapp
within the META-INF folder so you will need to create it in your case
and the context.xml only needs that one single line in it.

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTMLArea v. fckeditor

2005-02-11 Thread David Wall
 See http://www.fckeditor.net/ 

Aside from the odd name (we do have to give credit after all!), that does look 
like a nice one.  Has anybody used it enough to know how stable it is?  I noted 
that it's on 2.0, which is good, but it's not considered final.  I like that it 
appears to be a bit more active than HTMLArea.  

David

Re: dodgy session class

2005-02-11 Thread Filip Hanik - Dev
Any chance you have a test case to reproduce this?
Shouldn't happen, unless the way sessions are created have changed.

Filip

- Original Message -
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 11:47 AM
Subject: dodgy session class


Hi,



I'm running tomcat 5.0.30 on two machines A and B (Linux RHAS3).



When tomcat A restarts it fails to sync session state with session
state not received or something to that effect and tomcat B logs this
message:



11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] ERROR
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
Unable to receive message through TCP channel

java.lang.ClassCastException

at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageR
eceived(SimpleTcpReplicationManager.java:530)

at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageD
ataReceived(SimpleTcpReplicationManager.java:596)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim
pleTcpCluster.java:580)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70
)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep
licationThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT
hread.java:67)



I changed SimpleTcpReplicationManager to output class names of the
sessions it is trying to cast to ReplicatedSession and got the following
picture:



11 Feb 2005 17:21:44 [Cluster-MembershipReceiver] INFO
org.apache.catalina.cluster.tcp.SimpleTcpCluster  - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.56.21:
4001,192.168.56.21,4001, alive=3]

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO

java.io.IOException: CreateProcess: jikes -classpath

2005-02-11 Thread Stasys Adiklis
I'm trying to use jikes 1.22 with Tomcat 5.5.7 on Windows 2000.

I've built jikes following this:
http://oss.software.ibm.com/developerworks/opensource/jikes/faq/dev-win32.sh
tml

I did these steps (quoting jasper howto):

From your Ant installation, copy ant.jar and (if it's available: Ant 1.5 and
later) ant-launcher.jar to $CATALINA_BASE/common/lib.

Download and install jikes. jikes must support the -encoding option. Execute
jikes -help to verify that it was built with support for -encoding.

Set the init parameter compiler to jikes.

Define the property -Dbuild.compiler.emacs=true when starting Tomcat by
adding it to your CATALINA_OPTS environment variable. This changes how jikes
outputs error messages so that it is compatible with Jasper.


Tomcat throws an exception (notice how classpath is truncated):

--- Nested Exception ---
java.io.IOException: CreateProcess: jikes -classpath C:\Program
Files\Java\jre1.5.0\lib\ext\dnsns.jar;C:\Program
Files\Java\jre1.5.0\lib\ext\localedata.jar;C:\Program
Files\Java\jre1.5.0\lib\ext\sunjce_provider.jar;C:\Program
Files\Java\jre1.5.0\lib\ext\sunpkcs11.jar;C:\Programs\Tomcat\bin\bootstrap.j
ar;C:\Programs\Tomcat\work\Catalina\localhost\eltest;C:\Programs\Tomcat\shar
ed\classes;C:\Programs\Tomcat\common\classes;C:\Programs\Tomcat\common\i18n\
tomcat-i18n-en.jar;C:\Programs\Tomcat\common\i18n\tomcat-i18n-es.jar;C:\Prog
rams\Tomcat\common\i18n\tomcat-i18n-fr.jar;C:\Programs\Tomcat\common\i18n\to
mcat-i18n-ja.jar;C:\Programs\Tomcat\common\lib\ant-launcher.jar;C:\Programs\
Tomcat\common\lib\ant.jar;C:\Programs\Tomcat\common\lib\commons-el.jar;C:\Pr
ograms\Tomcat\common\lib\jasper-compiler-jdt.jar;C:\Programs\Tomcat\common\l
ib\jasper-compiler.jar;C:\Programs\Tomcat\common\lib\jasper-runtime.jar;C:\P
rograms\Tomcat\common\lib\jsp-api.jar;C:\Programs\Tomcat\common\lib\naming-f
actory-dbcp.jar;C:\Programs\Tomcat\common\lib\naming-facto?
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.init(Unknown Source)
 at java.lang.ProcessImpl.start(Unknown Source)
etc.


Any ideas how to solve this prob?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HTMLArea and SpellCheck plugin

2005-02-11 Thread Mike Curwen
yes to HTMLArea, haven't tried spellcheck.

Mike Curwen



 -Original Message-
 From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 11, 2005 11:48 AM
 To: Tomcat Users List
 Subject: HTMLArea and SpellCheck plugin 
 
 
 Anybody successfully implemented a tomcat webapp that uses 
 the HTMLArea editor and the SpellChecker plugin (both free 
 from Interactive Tools and
 Dynarch) ?
  
 TIA
  
 Steve.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] RE: HTMLArea v. fckeditor

2005-02-11 Thread Mike Curwen
for me, the fckeditor drop-downs don't work.  The font, size, etc select
areas.  I click them, and then they roll-up before I can select a different
value.

and yah, how about that name?


Mike Curwen

 -Original Message-
 From: David Wall [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 11, 2005 1:28 PM
 To: Tomcat Users List
 Subject: Re: HTMLArea v. fckeditor
 
 
  See http://www.fckeditor.net/
 
 Aside from the odd name (we do have to give credit after 
 all!), that does look like a nice one.  Has anybody used it 
 enough to know how stable it is?  I noted that it's on 2.0, 
 which is good, but it's not considered final.  I like that it 
 appears to be a bit more active than HTMLArea.  
 
 David
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jspc classcasst exception: error while casting ANTClassloader to URLclassLoader

2005-02-11 Thread Jagadeesha T


Hi all,

   it is throwing ClassCastexception in JSPRuntimeCOntext class when 
casting ANTClassLoader class to URLCLassLoader. I don't whether it is a bug. or 
configuration problems. 

Regards,

Jagga

 


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Re: HTMLArea and SpellCheck plugin

2005-02-11 Thread Daniel Rhoden
Check out OpenCMS (http://www.opencms.org) because it integrates 
HTMLArea very nicely, even with Mozilla support (in the version 6 
release, still in Alpha).

Kelly, Steve wrote:
Anybody successfully implemented a tomcat webapp that uses the HTMLArea
editor and the SpellChecker plugin (both free from Interactive Tools and
Dynarch) ?
TIA
Steve.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] RE: HTMLArea v. fckeditor

2005-02-11 Thread Dov Rosenberg
I noticed I had some weird problems using Firefox and FckEditor with the
dropdowns if I used the default theme, but if I changed to a different theme
(I like Noia 2.0) the problems go away.

HTH


-- 
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com




On 2/11/05 3:08 PM, Mike Curwen [EMAIL PROTECTED] wrote:

 for me, the fckeditor drop-downs don't work.  The font, size, etc select
 areas.  I click them, and then they roll-up before I can select a different
 value.
 
 and yah, how about that name?
 
 
 Mike Curwen
 
 -Original Message-
 From: David Wall [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 11, 2005 1:28 PM
 To: Tomcat Users List
 Subject: Re: HTMLArea v. fckeditor
 
 
 See http://www.fckeditor.net/
 
 Aside from the odd name (we do have to give credit after
 all!), that does look like a nice one.  Has anybody used it
 enough to know how stable it is?  I noted that it's on 2.0,
 which is good, but it's not considered final.  I like that it
 appears to be a bit more active than HTMLArea.
 
 David
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTMLArea and SpellCheck plugin

2005-02-11 Thread Wendy Smoak
I don't know if anyone has mentioned it already, but JSpell HTML
(http://www.jspell.com) is really good.  Not free, though...

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


commons-logging logger instances - how to initialize in replicated session objects

2005-02-11 Thread Richard Mixon (qwest)
I have been working with Filip Hanik to get failover/session replication
working for my application. Finally it is working quite well. Hooray for
Filip!

However it did uncover one issue with the way I was handling the
commons-logging logger instances in my business objects that I store in
the HTTP session at times.

Given the following class:
  public class MyBusinessObject1 implements Serializable {
private static Log log =
LogFactory.getLog(ClassMeasurementFilter.class);
SNIP
public void setShowXAxisAsPercentages(boolean
showXAxisAsPercentages) {
this.showXAxisAsPercentages = showXAxisAsPercentages;
if (log == null) {
log = LogFactory.getLog(ClassMeasurementFilter.class);
log.info(setShowXAxisAsPercentages - log was null);
}
if (log.isDebugEnabled()) log.debug(setShowXAxisAsPercentages
set to +this.showXAxisAsPercentages);
}
SNIP

I had to put the if (log == null) check in because when the objects
were replicated to another cluster instance and failover occured I would
get an NPE on the log variable.

Obviously having to put this if (log == null) check in is very awkward
and error prone.

Other approaches include creating a utility method in the base class for
my business objects. I'm not sure if this will give me the logger per
class that I've been used to so that I can readily identify where log
messages come from.

Are there any other approaches anyone would suggest?

Thank you - Richard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: dodgy session class

2005-02-11 Thread Vlad.Ilyschenko
this is tricky to reproduce, but I'm trying to debug it now. Will keep you 
posted.


-Original Message-
From:   Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent:   Fri 2/11/2005 7:28 PM
To: Tomcat Users List
Cc: 
Subject:Re: dodgy session class
Any chance you have a test case to reproduce this?
Shouldn't happen, unless the way sessions are created have changed.

Filip

- Original Message -
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 11:47 AM
Subject: dodgy session class


Hi,



I'm running tomcat 5.0.30 on two machines A and B (Linux RHAS3).



When tomcat A restarts it fails to sync session state with session
state not received or something to that effect and tomcat B logs this
message:



11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] ERROR
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
Unable to receive message through TCP channel

java.lang.ClassCastException

at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageR
eceived(SimpleTcpReplicationManager.java:530)

at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageD
ataReceived(SimpleTcpReplicationManager.java:596)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim
pleTcpCluster.java:580)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70
)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep
licationThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT
hread.java:67)



I changed SimpleTcpReplicationManager to output class names of the
sessions it is trying to cast to ReplicatedSession and got the following
picture:



11 Feb 2005 17:21:44 [Cluster-MembershipReceiver] INFO
org.apache.catalina.cluster.tcp.SimpleTcpCluster  - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.56.21:
4001,192.168.56.21,4001, alive=3]

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] 

RE: not getting load-balancing behavior

2005-02-11 Thread Rainer Jung
 We're using apache 1.3.33 with tomcat 5.0.16, connected via mod_jk, on
 Solaris.

This is very outdated. You shuld update to TC 5.0.30 and mod_jk 1.2.8.

 What I'm observing is that load-balancing isn't working.  We have a
 couple of machines dedicated to our XML interface, and have apache

 Now, in operation, machine-a is getting hammered, while machine-b gets
 almost no traffic at all.  Machine-a typically has CPU loads in the 4.0
 range, while machine-b sits idle at 0.04.

 My hunch is that the bulk of the traffic is coming from a single
 source, and so apache/mod_jk/something is deciding to give it over to
 the same tomcat instance each time, even though it shouldn't be.

Routing decisions are made by each Apache process independently. So
directly after starting each apache process will forward it's first
request to the same worker, it's second to the same other worker etc.
After some time, because of differing answer times you will exhibit a
balanced situation.

Are you using Keep-Alive for HTTP? If your are having only few Clients and
you are using very long Keep-Alive-Times maybe all clients will constantly
use the same worker. But I#m not sure if it's true, although it would be
an easy check to just disable Keep-Alive in Apache.

Another possibility (after upgrading ;) ) is to use debug log level and
study the output under low load.

You didn't provide the full workers.properties file though. Are you having
ONLY loadbalancer3 in the workers list?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE : Security Newbie - Need Help

2005-02-11 Thread Luke
Hi;

I can't get the memory realm to work either. I am still getting the error
below without a login prompt:


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.27

This has to be something with my application, WEB-INF, server.xml. How
should I proceed to trouble shoot?

Thanks,

Luke

- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 12:21 AM
Subject: RE : RE : Security Newbie - Need Help


 Could you try MemoryRealm to evict filter mechanisms (like firewall or
 router configuration) between your tomcat serve rand your database ?

 As you can see in the servlet specification the security-role element
isn't
 optional.
 !ELEMENT web-app (icon?, display-name?, description?,
 distributable?, context-param*, filter*, filter-mapping*,
 listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
 welcome-file-list?, error-page*, taglib*, resourceenv-
 ref*, resource-ref*, security-constraint*, login-config?,
 security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 11 février 2005 08:18
 À : Tomcat Users List
 Objet : Re: RE : Security Newbie - Need Help

 Hi Dennis;

 Where is IMS defined? Otherwise I have specified everything as you
 recommended. Yet I still get this error once I hit the page (no login
 prompt):


 HTTP Status 403 - Configuration error: Cannot perform access control
without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Thanks,

 Luke


 - Original Message - 
 From: Dennis Payne [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 11:23 AM
 Subject: Re: RE : Security Newbie - Need Help


  you will not need a roles table for tomcat... it is only useful to your
 own applications that will edit the data. The system only utilizes the the
 user-role table and the user-password table (at least for basic
 authentication).
 
  Each servlet in the system  that is secure is setup this way and has an
 associated mapping:
 
  servlet
  servlet-nameEnterAssignment/servlet-name
  display-nameEnterAssignment/display-name
  descriptionEnter Assignment/description
  servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
  security-role-ref
  role-nameIMS/role-name
  role-linkIMS/role-link
  /security-role-ref
  /servlet
   ...
 servlet-mapping
  servlet-nameEnterAssignment/servlet-name
  url-pattern/servlet/EnterAssignment/url-pattern
  /servlet-mapping
 
  The server.xml contains a reference to the security tables by using the
 Realm tag placed as shown (there are other ways to do it) and all  db
 driver jars have been place in the classpath:
 
  Engine defaultHost=localhost name=Catalina
 Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.JDBCRealm
 connectionName=username connectionPassword=password
 connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
 driverName=com.mysql.jdbc.Driver userRoleTable=userrole
 userTable=userpassword roleNameCol=userrole userNameCol=userid
 userCredCol=passwordid /
 /Host
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true /
 Realm className=org.apache.catalina.realm.UserDatabaseRealm /
  /Engine
 
  Hope this helps Enjoy!
 
   [EMAIL PROTECTED] 02-10-2005 08:56 
  Where would the security-role be declared? WEB-INF/web.xml?
 
  The tables I have are roles, user_roles and users. When you say wrong
role
  table which of the tables I have should be renamed?
 
  Thanks for you help,
 
  Luke
 
   It seems that you have a wrong role table (roles or user_roles).
   Have you declare security-role element ?
  
   -Message d'origine-
   De : Luke [mailto:[EMAIL PROTECTED]
   Envoyé : jeudi 10 février 2005 16:02
   À : Tomcat Users List
   Objet : Re: Security Newbie - Need Help
  
   Hi;
  
   Here is the roles table:
  
   mysql select * from roles;
   +---+
   | role_name |
   +---+
   | admin |
   +---+
   1 row in set (0.02 sec)
  
   I noticed I did have a mistake in the realm declaration in my
 server.xml.
   I
   had the wrong user table name. 

Re: RE : Security Newbie - Need Help

2005-02-11 Thread Luke
Hello;

I finally got this. It turned out I had my:

login-config
auth-methodBASIC/auth-method
/login-config

Inside my  security-constraint instead of being in the web-app.

Once I moved this to the correct place in the document. Everything worked
fine.

Thanks to all that posted advice.

Luke


Luke Shannon
Web Design/Development
Java Programmer
http://www.lukeshannon.com
phone: 416-570-1984
- Original Message - 
From: Luke [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 9:05 PM
Subject: Re: RE : Security Newbie - Need Help


 Hi;

 I can't get the memory realm to work either. I am still getting the error
 below without a login prompt:


 HTTP Status 403 - Configuration error: Cannot perform access control
without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.27

 This has to be something with my application, WEB-INF, server.xml. How
 should I proceed to trouble shoot?

 Thanks,

 Luke

 - Original Message - 
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Friday, February 11, 2005 12:21 AM
 Subject: RE : RE : Security Newbie - Need Help


  Could you try MemoryRealm to evict filter mechanisms (like firewall or
  router configuration) between your tomcat serve rand your database ?
 
  As you can see in the servlet specification the security-role element
 isn't
  optional.
  !ELEMENT web-app (icon?, display-name?, description?,
  distributable?, context-param*, filter*, filter-mapping*,
  listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
  welcome-file-list?, error-page*, taglib*, resourceenv-
  ref*, resource-ref*, security-constraint*, login-config?,
  security-role*, env-entry*, ejb-ref*, ejb-local-ref*)
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED]
  Envoyé : vendredi 11 février 2005 08:18
  À : Tomcat Users List
  Objet : Re: RE : Security Newbie - Need Help
 
  Hi Dennis;
 
  Where is IMS defined? Otherwise I have specified everything as you
  recommended. Yet I still get this error once I hit the page (no login
  prompt):
 
 
  HTTP Status 403 - Configuration error: Cannot perform access control
 without
  an authenticated principal
  type Status report
  message Configuration error: Cannot perform access control without an
  authenticated principal
  description Access to the specified resource (Configuration error:
Cannot
  perform access control without an authenticated principal) has been
  forbidden.
  Apache Tomcat/5.0.28
 
  Thanks,
 
  Luke
 
 
  - Original Message - 
  From: Dennis Payne [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Thursday, February 10, 2005 11:23 AM
  Subject: Re: RE : Security Newbie - Need Help
 
 
   you will not need a roles table for tomcat... it is only useful to
your
  own applications that will edit the data. The system only utilizes the
the
  user-role table and the user-password table (at least for basic
  authentication).
  
   Each servlet in the system  that is secure is setup this way and has
an
  associated mapping:
  
   servlet
   servlet-nameEnterAssignment/servlet-name
   display-nameEnterAssignment/display-name
   descriptionEnter Assignment/description
   servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
   security-role-ref
   role-nameIMS/role-name
   role-linkIMS/role-link
   /security-role-ref
   /servlet
...
  servlet-mapping
   servlet-nameEnterAssignment/servlet-name
   url-pattern/servlet/EnterAssignment/url-pattern
   /servlet-mapping
  
   The server.xml contains a reference to the security tables by using
the
  Realm tag placed as shown (there are other ways to do it) and all  db
  driver jars have been place in the classpath:
  
   Engine defaultHost=localhost name=Catalina
  Host appBase=webapps name=localhost
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_log. suffix=.txt timestamp=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
  connectionName=username connectionPassword=password
  connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
  driverName=com.mysql.jdbc.Driver userRoleTable=userrole
  userTable=userpassword roleNameCol=userrole userNameCol=userid
  userCredCol=passwordid /
  /Host
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt timestamp=true /
  Realm className=org.apache.catalina.realm.UserDatabaseRealm /
   /Engine
  
   Hope this helps Enjoy!
  
[EMAIL PROTECTED] 02-10-2005 08:56 
   Where would the security-role be declared? WEB-INF/web.xml?
  
   The tables I have are roles, user_roles and 

Re: coyote standalone?

2005-02-11 Thread Bill Barker

Adam Fisk [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Can I use Coyote HTTP 1.1 server outside of the rest of tomcat?  I'm 
 interested in just plugging in the coyote jar for serving static content 
 using Jetty, but it appears to have dependencies on the rest of tomcat.  I 
 don't want to use the rest of Tomcat due to size constraints.


Yes.  You need to create a Coyote Adapter (org.apache.coyote.Adapter) that 
is responsible for wrapping the Coyote Request  Response and passing them 
off to Jetty.

 Thanks.

 -Adam 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: coyote standalone?

2005-02-11 Thread Adam Fisk
Great -- I'll try it.  Thanks!
-Adam
Bill Barker wrote:
Adam Fisk [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 

Can I use Coyote HTTP 1.1 server outside of the rest of tomcat?  I'm 
interested in just plugging in the coyote jar for serving static content 
using Jetty, but it appears to have dependencies on the rest of tomcat.  I 
don't want to use the rest of Tomcat due to size constraints.

   

Yes.  You need to create a Coyote Adapter (org.apache.coyote.Adapter) that 
is responsible for wrapping the Coyote Request  Response and passing them 
off to Jetty.

 

Thanks.
-Adam 
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat vs Jetty

2005-02-11 Thread Peter Lin
For those who are curious. I decided to run apache AB against jetty to
see if there are any differences.

Max Request/sec
--
tomcat 5.5.4 - 5584
jetty 5.1.2 - 2486


the results suggest tomcat's throughput for 1k static content is 2x
higher than the jetty 5.1.2.

peter


The setup
--
Server:
amd 2ghz
1gb of ram
Redhat Fedora Core 1

tomcat 5.5.4 + jdk5
jetty 5.1.2 + jdk5


Client:
gateway 450 laptop
1.4ghz centrino Pentium M
1gb ram
apache2 ab


C:\Apache\Apache2\binab -n 5 -c 50 -k
http://192.168.0.41:8080/benchmark/1k.png
This is ApacheBench, Version 2.0.41-dev $Revision: 1.121.2.12 $ apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.41 (be patient)
Completed 5000 requests
Completed 1 requests
Completed 15000 requests
Completed 2 requests
Completed 25000 requests
Completed 3 requests
Completed 35000 requests
Completed 4 requests
Completed 45000 requests
Finished 5 requests


Server Software:Jetty/5.1.2
Server Hostname:192.168.0.41
Server Port:8080

Document Path:  /benchmark/1k.png
Document Length:1056 bytes

Concurrency Level:  50
Time taken for tests:   20.469434 seconds
Complete requests:  5
Failed requests:0
Write errors:   0
Keep-Alive requests:5
Total transferred:  6585 bytes
HTML transferred:   5280 bytes
Requests per second:2442.67 [#/sec] (mean)
Time per request:   20.469 [ms] (mean)
Time per request:   0.409 [ms] (mean, across all concurrent requests)
Transfer rate:  3141.56 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.1  0  10
Processing: 0   20  50.3 102373
Waiting:0   20  50.3 102373
Total:  0   20  50.3 102373

Percentage of the requests served within a certain time (ms)
  50% 10
  66% 10
  75% 10
  80% 10
  90% 70
  95%110
  98%190
  99%240
 100%   2373 (longest request)
 
C:\Apache\Apache2\binab -n 5 -c 50 -k
http://192.168.0.41:8080/benchmark/1k.png
This is ApacheBench, Version 2.0.41-dev $Revision: 1.121.2.12 $ apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.41 (be patient)
Completed 5000 requests
Completed 1 requests
Completed 15000 requests
Completed 2 requests
Completed 25000 requests
Completed 3 requests
Completed 35000 requests
Completed 4 requests
Completed 45000 requests
Finished 5 requests


Server Software:Jetty/5.1.2
Server Hostname:192.168.0.41
Server Port:8080

Document Path:  /benchmark/1k.png
Document Length:1056 bytes

Concurrency Level:  50
Time taken for tests:   20.829952 seconds
Complete requests:  5
Failed requests:0
Write errors:   0
Keep-Alive requests:5
Total transferred:  6585 bytes
HTML transferred:   5280 bytes
Requests per second:2400.39 [#/sec] (mean)
Time per request:   20.830 [ms] (mean)
Time per request:   0.417 [ms] (mean, across all concurrent requests)
Transfer rate:  3087.19 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.1  0  10
Processing: 0   20  67.4 103855
Waiting:0   20  67.4 103855
Total:  0   20  67.4 103855

Percentage of the requests served within a certain time (ms)
  50% 10
  66% 10
  75% 10
  80% 10
  90% 60
  95%110
  98%190
  99%250
 100%   3855 (longest request) 
 
 C:\Apache\Apache2\binab -n 5 -c 50 -k
http://192.168.0.41:8080/benchmark/1k.png
This is ApacheBench, Version 2.0.41-dev $Revision: 1.121.2.12 $ apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.41 (be patient)
Completed 5000 requests
Completed 1 requests
Completed 15000 requests
Completed 2 requests
Completed 25000 requests
Completed 3 requests
Completed 35000 requests
Completed 4 requests
Completed 45000 requests
Finished 5 requests


Server Software:Jetty/5.1.2
Server Hostname:192.168.0.41
Server Port:8080

Document Path:  /benchmark/1k.png
Document Length:1056 bytes

Concurrency Level:  50
Time taken for tests:   20.108915 seconds
Complete requests:  5
Failed requests:0
Write errors:   0
Keep-Alive requests:5
Total transferred:  6585 bytes
HTML transferred:   5280 bytes
Requests per second:

The requested resource (/myApp/servlet/TestingServlet) is not available.

2005-02-11 Thread Marco Mastrocinque
Hi All,
 I'm new to Tomcat and Servlets, I'm having a problem with one of my
first Servlets:

This is my program:

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class TestingServlet extends HttpServlet {

  public void doGet(HttpServletRequest request, 
HttpServletResponse response) 
throws ServletException, IOException {

PrintWriter out = response.getWriter();
out.println(HTML);
out.println(HEAD);
out.println(TITLEServlet Testing/TITLE);
out.println(/HEAD);
out.println(BODY);
out.println(Welcome to the Servlet Testing Center);
out.println(/BODY);
out.println(/HTML);
  }
}

This is my web.xml file:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

wep-app
servlet
servlet-nameTesting/servlet-name
servlet-classTestingServlet/servlet-class
/servlet
/wep-app

I'm using Tomcat version 5.0.28. 

I create the Directory structure under Tomcat, underneath the webapps
subdirectory:

myApp
 |
  WEB-INF
 |
  classes

I compile the file TestingServlet.java using

javac -classpath C:\tomcat\common\lib\servlet-api.jar TestingServlet.jar

Place the file TestingServelt.jar in the classes subdirectory.

Place the file web.xml file in the WEB-INF subdirectory.

I start Tomcat. The manager application says it there, and it seems to be
okay.

I type in the address bar of IE the following

http://locahost:8080/myApp/servlet/TestingServlet

I get the following message, from Tomcat

The requested resource (/myApp/servlet/TestingServlet) is not available.


I know it should be pretty simple, but sometimes the simplest things are the
hardest to correct!


Any suggestions most appreciated.

Thanks Marco Mastrocinque

 

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5.5.7 compiler settings

2005-02-11 Thread Caldarale, Charles R
 From: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED]
 Subject: Tomcat 5.5.7 compiler settings
 
 I have just upgraded from 5.0.28 to 5.5.7. My only problem is that 
 Tomcat can't compile some of my jsps that are using features found in 
 jdk1.5 (auto-boxing).

Please read http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html.

Note the next-to-last paragraph of the configuration section, especially the 
last sentence:

The Java compiler from Eclipse JDT in included as the default compiler. It is 
an advanced Java compiler which will load all dependencies from the Tomcat 
class loader, which will help tremendously when compiling on large 
installations with tens of JARs. On fast servers, this will allow sub-second 
recompilation cycles for even large JSP pages. This new compiler will be 
updated to support the Java 5 syntax as soon as possible.

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