login events

2005-05-31 Thread Nathan Coast
Hi, I'm guessing there's no 'official' mechanism within the servlet spec to identify when a user has logged in. I've looked at the session lifecycle events but these relate to creating and destroying sessions http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener.html

Re: realm configuration

2005-03-02 Thread Nathan Coast
t; rolesQuery="SELECT name FROM Role r, User u, user_roles ur WHERE u.id = ur.user_id AND r.id = ur.role_id AND u.emailAddress = ?" I think with a bit of refactoring the existing DB realm classes would support this enabling any db structure (without the need for a view). cheers Nathan Natha

realm configuration

2005-03-02 Thread Nathan Coast
this structure? AFAICT, the JDBC and DataSourceRealm classes require the following structure: User User-Role -- --- username -- username passwordrole_name cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834

context path confusions

2005-03-01 Thread Nathan Coast
: Document base X:\codebar\target\codebar does not exist or is not a readable directory The path is valid and readable on the machine tomcat is running on. thanks Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755

Re: tomcat 4.1.27 log4j problem

2003-08-06 Thread Nathan Coast
if you use log4j on a tomcat-wide basis (ie 1 configuration for the tomcat runtime and all your webapps), place your log4j.xml in [tomcat-home]/shared/classes/ if you use log4j on a per-webapp basis, make sure the log4j classes aren't on the tomcat classpath and configure commons-logging to use

UTF-8 problems

2003-08-03 Thread Nathan Coast
Hi, I have an text fields in a form that will contain UTF-8 characters e.g. 'รก'. I can retrieve utf-8 chars from the db and display them correctly in jsps via tomcat. The only problem comes with submiting forms to tomcat. request.getParameter() returns the incorrect value for the char e.g.

Announce Log4J Web Interface

2003-07-27 Thread Nathan Coast
Hi, The first release of LogWeb is now available. A fully functional web interface for the runtime configuration of log4j within servlet containers and j2ee application servers. LogWeb is freely available at http://www.codeczar.com/projects/logweb/ All configurable behaviour of Log4J is avai

precompiling jsps

2003-07-12 Thread Nathan Coast
Hi, How do you precompile jsps for tomcat? Is it possible to package compiled jsps in a jar file to be included in the WEB-INF dir of another war file? If this is documented somewhere, I'd appreciate a shove in the right direction. thanks Nathan --

packaging jsps in jar files

2003-07-12 Thread Nathan Coast
Hi, is it possible to package jsp files within a jar file so that the jsps will be available if the jar is placed within the WEB-INF dir of some web application. I have developed a utility for web-apps that has both jsp and servlet components. I am lazy and so would like to be able to make th

Re: error starting webapp

2002-07-31 Thread Nathan Coast
answered myself :) added this tag to webapp context within server.xml Nathan Coast wrote: > Hi, > > I have succesfully deployed a webapp within tomcat using the > catalina.ant.DeployTask. However, the webapp isn't and can't be > st

error starting webapp

2002-07-31 Thread Nathan Coast
Hi, I have succesfully deployed a webapp within tomcat using the catalina.ant.DeployTask. However, the webapp isn't and can't be started. from manager/list: /cbserver:stopped:0:D:\java\jwsdp-1.0\work\Standard Engine\localhost\manager\cbserver.war When I run the manager/start command from t

Re: tomcat deployment

2002-04-29 Thread Nathan Coast
Thanks, > > It seems you are looking for a difficult way. > I think the easiest way would be having some ant targets that put your war files in >TOMCAT_HOME/webapps. Don't forget to have unpackWARs to be true in the Host element >(in server.xml). > does this work for updates to the war file?

manager app comands

2002-04-29 Thread Nathan Coast
Hi, I'm trying to determine what tasks / methods I should be calling on the manager app, to deploy etc. What is the difference between install and deploy? (also remove and undeploy). what sequence of commands to I need to call to a) install a webapp from a war b) replace an existing webapp wi

tomcat 4.1 source

2002-04-29 Thread Nathan Coast
hi, can someone let me know where to find the tomcat 4.1 sources? trying to find the ant deploy task code. thanks Nathan -- To unsubscribe: For additional commands: Troubles with the list:

tomcat deployment

2002-04-29 Thread Nathan Coast
hi, I'm looking for the correct way to deploy / redeploy webapps into the tomcat web container from ant. I've followed a few threads in tomcat and ant user lists but am just getting confused. http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg51926.html http://www.mail-archive.c

Re: starting tomcat in debug VM

2001-05-18 Thread Nathan Coast
doh! I should try reading the docs -Xnoagent did the trick Nathan Coast wrote: > Hi, I'm trying to start tomcat in debug mode using these options: > > TOMCAT_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n > > as I understand it, the address to which the de

starting tomcat in debug VM

2001-05-17 Thread Nathan Coast
Hi, I'm trying to start tomcat in debug mode using these options: TOMCAT_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n as I understand it, the address to which the debuger should connect should be displayed on stdout. However, all that is being displayed is the agent password.

j_security_check

2001-05-16 Thread Nathan Coast
Hi, I have a login page which is configured in web.xml as the form based login page for a web app: /pages/login/login.jsp If the login page is arrived at by browsing to some content restriced by a security constraint in web.xml, then submitting to j_security_check works fine. If the user b

context name

2001-05-10 Thread Nathan Coast
Hi, Is there any way to get the web-app context (as it appears in the url) during servlet.init(ServletConfig config){} ? e.g. myserver/mycontext/index.html context = "mycontext" myserver/index.html context = "" Thanks Nathan

web-app context / relative urls

2001-05-10 Thread Nathan Coast
Hi, Does anyone know of a way to get the context of a web app prior to compilation of any jsps? I've got a number of jsp's which all contain urls to static content (images etc), the jsps themselves are often accessed from a number of different urls: /jsp/myPage.jsp /someUrl/actionservlet/some

Roles & Tomcat

2001-05-06 Thread Nathan Coast
Sorry if this is a repost, I'm having trouble with mail Hi, I'm observing some unexpected behaviour in Tomcat (3.2.1) in conjuction with roles. This is the situation: (web.xml is at the bottom) two roles: Customer Gold Customer a user: Joe Bloggs Joe is a "Customer" but not a "Gold Customer

JDBC Realm & Roles

2001-05-04 Thread Nathan Coast
Hi, Is the user-role information obtained via a JDBCRealm stored against a session? If not, each attempt to access a secured resource must result in a hit on the database - surely this would be bad for performance. The downside of storing the role info is that if a users role changes during a

Re: server.xml / dtd

2001-05-04 Thread Nathan Coast
4. Mai 2001 14:43 > An: [EMAIL PROTECTED] > Betreff: Re: server.xml / dtd > > > it can be found in cofig directory of u r tomcat > - Original Message - > From: Nathan Coast <[EMAIL PROTECTED]> > To: tomcat user <[EMAIL PROTECTED]> > Sent: Friday, May

Re: server.xml / dtd

2001-05-04 Thread Nathan Coast
thanks, I've found web.dtd but this seems to be the servlet spec dtd for web app deployment descriptors (web.xml files) and not the server config dtd (server.xml). Nathan Hari Yellina wrote: > it can be found in cofig directory of u r tomcat > - Original Message ----- >

server.xml / dtd

2001-05-04 Thread Nathan Coast
Hi, where can I find the dtd of server.xml? - is there such a thing? Is the dtd the best place to find docs on server.xml or is there a complete configuration doc elsewhere? Thanks Nathan

Multiple JDBCRealms

2001-05-04 Thread Nathan Coast
(sorry if this is a repost, mail is playing up) Hi, I've got two contexts within my tomcat install. I want the login for each context to go to different databases / tables for authentication. Is it possible to configure different contexts to send authentication requests to different places?

Multiple JDBC Realms

2001-05-03 Thread Nathan Coast
Hi, I've got two contexts within my tomcat install. I want the login for each context to go to different databases / tables for authentication. Is it possible to configure different contexts to send authentication requests to different places? Is this done by having multiple ContextManager