Get object from session before it expires.

2003-03-17 Thread Alexander Wallace
I've been searching and just want to make sure I was told correctly. I was told in an IRC that there is no way to get an object from a session before it expires. I know you can listen for valueUnbound, but that tells me when all instances of a class are being unbound. I know you can listen

Re: Get object from session before it expires.

2003-03-17 Thread Alexander Wallace
] -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 8:23 AM To: Tomcat Users List Subject: Get object from session before it expires. I've been searching and just want to make sure I was told correctly. I was told in an IRC

Ejectute a method on an object instance when session is deactivated.

2003-03-14 Thread Alexander Wallace
Hi there... I don't need sessionpersistence. Bu i do need to execute a method on an instance of an object that is in the session when it's about to expire. Can someone point me on a direction? I know I can implement a session listener, but ho do I grab the objects of the session that is about

Re: Ejectute a method on an object instance when session is deactivated.

2003-03-14 Thread Alexander Wallace
the object. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 2:13 PM To: Tomcat Users List Subject: Ejectute a method on an object instance when session is deactivated. Hi there... I don't

Re: Ejectute a method on an object instance when session is deactivated.

2003-03-14 Thread Alexander Wallace
a getSession() method you get use to get the Session itself, and then do getAttribute(...) on the session to get the object. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 2:13 PM To: Tomcat

Re: How to use a JNDI Ressource

2003-03-14 Thread Alexander Wallace
Something like: try { Context ctx = new InitialContext(); String whatever = (String)ctx.lookup(java:comp/env/whatever); } catch (Exception e) { } On Friday 14 March 2003 14:32, Georges Roux wrote: Hi, I run tomcat 4.1.18 Standalone on Linux. How

Re: Listener problem in tomcat 4.1.18

2003-01-13 Thread Alexander Wallace
Could you be running multiple instances of your web app? Like it would happen if you have a context for it declared in server.xml and also have a jar or a directory in webapps. ? On Monday 13 January 2003 18:05, David Hemingway wrote: Hi, This has been posted before, this time i have made it

Re: Tomcat 4.1.18 changes https into httpss

2003-01-06 Thread Alexander Wallace
Thank you very much for the reply. After double checking all my settings and for hunting where the problem was, i disabled a filter i had implemented to ensure that https was being used when i wanted. Disabling the filter allowed tc 4.1.18 to work using https. So now the problem becomes why

Re: NOONE? Was: Tomcat 4.1.18 changes https into httpss

2003-01-05 Thread Alexander Wallace
: Actually in my case I 'punted' I used ProxyPass and ProxyPassReverse and pass the SSL requests via a URL over to the non-SSL servlet engine... Yea it was a hack, but effective.. ;) On Saturday, January 04, 2003 5:02 PM, Alexander Wallace [EMAIL PROTECTED] wrote: Really noone read my mayl or has

NOONE? Was: Tomcat 4.1.18 changes https into httpss

2003-01-04 Thread Alexander Wallace
Really noone read my mayl or has any clue as of what am i doing wrong? If it is something that was discussed a lot, i did not see anything in the archives, if so, at least tell me so. I really need help here. On Friday 03 January 2003 06:41 pm, Alexander Wallace wrote: Hello there... I have

Anyone? Was: Tomcat 4.1.18 changes https into httpss

2003-01-04 Thread Alexander Wallace
Anyone using tomcat 4.1.18 with apache-ssl? On Friday 03 January 2003 06:41 pm, Alexander Wallace wrote: Hello there... I have a web app that works perfect under tomcat 4.1.12. I'm using apache + mod_jk. It works partially ok with 4.1.18, everything under http works fine, but if i call

Tomcat 4.1.18 + apache SSL Problems

2003-01-03 Thread Alexander Wallace
Hello there... I have a web app that works perfect under tomcat 4.1.12. It works partially ok with 4.1.18, everything under http works fine, but if i call something using https, i get the following error: An error occured while loading https://my.server.com/myapp/secure/activation.jsp: Could

Tomcat 4.1.18 changes https into httpss

2003-01-03 Thread Alexander Wallace
Hello there... I have a web app that works perfect under tomcat 4.1.12. I'm using apache + mod_jk. It works partially ok with 4.1.18, everything under http works fine, but if i call something using https, i get the following error: An error occured while loading

Re: app roll out.

2002-12-17 Thread Alexander Wallace
My guess is that the solution with apache works becouse even if apache switces to https, it still talks to tomcat via plain http, and since the objects are in tomcat's session, and tomcat doesn't need to switch to https, it will not create a new session. On Monday 16 December 2002 20:41,

Re: how do i make apache auto load index.jsp

2002-12-17 Thread Alexander Wallace
on them, rewriting them to /index.jsp 3) send all requests to Tomcat, and use the web.xml welcome file list to have index.jsp come up first (this would make Apache pretty useless) There are probably other workarounds. John -Original Message- From: Alexander Wallace [mailto:[EMAIL

Re: Running tomcat as user other than root

2002-12-17 Thread Alexander Wallace
If she starts it, she can stop it and restart it. Unless you have modified TC to use ports below 1000, which only worsk for root. On Tuesday 17 December 2002 10:04, Philip Juels wrote: I'm sure this has been asked before, but I can't find the answer How can I start/stop tomcat as a user

Re: Naïve question about root

2002-12-17 Thread Alexander Wallace
You should not be as root all the time becouse root can do anything, and any little mistake could be desastrous, like running rm when you actually meant mv, or stuff like that. It is safe (as far as someone sniffing your root password, or any other user's) to use ssh, but don't stay connected

Re: Selecting which pages to use SSL with

2002-12-17 Thread Alexander Wallace
I've gone through your same questions lately, and still learnning, but here is what i've learned from the list and other places. *Once you start using https, you should NOT switch back to http, doing so will allow whomever to sniff the session id and put in risk whatever you thought you

Re: Log file naming?

2002-12-17 Thread Alexander Wallace
Don't you have a timestamp option in server.xml for the logs? On Tuesday 17 December 2002 14:54, Armbrust, Daniel C. wrote: Is there anyway that I can reconfigure Tomcat 4.1.12 so that my log files do not have the date in them? I would like to have one log file that I can skim over for a

app roll out.

2002-12-16 Thread Alexander Wallace
Hi there. Almost ready to deploy my app to test in real world. I'm using apache + tomcat (using mod_jk). My app name is wxyz, and I have purchased the domain name i want it to be under. I want to call www.mydomain.com and get my app's index. instead of typing the www.mydomain.com/wxyz. How

Shtting down classes when tomcat shuts down.

2002-12-16 Thread Alexander Wallace
Hello. I have some classes that are started by a servlet when tomcat starts, their main method has a timer to execute some stuff periodically. When i shut tomcat down, the classes remain running. How can i make them shut down with tomcat? The reason they stay up is probabbly the same for

Re: app roll out.

2002-12-16 Thread Alexander Wallace
, 16 Dec 2002 15:28:39 -0600, Alexander Wallace wrote: Hi there. Almost ready to deploy my app to test in real world. I'm using apache + tomcat (using mod_jk). My app name is wxyz, and I have purchased the domain name i want it to be under. I want to call www.mydomain.com and get my app's

Re: app roll out.

2002-12-16 Thread Alexander Wallace
www.domain.com/path-to-context Hth, Ben Ricker On Mon, 2002-12-16 at 15:28, Alexander Wallace wrote: Hi there. Almost ready to deploy my app to test in real world. I'm using apache + tomcat (using mod_jk). My app name is wxyz, and I have purchased the domain name i want it to be under

Re: app roll out.

2002-12-16 Thread Alexander Wallace
the server root to tomcat. If you are directing everything to tomcat, just bag apache altogether! David On 12/16/2002 4:28 PM, Alexander Wallace wrote: Hi there. Almost ready to deploy my app to test in real world. I'm using apache + tomcat (using mod_jk). My app name is wxyz, and I have

Re: Shtting down classes when tomcat shuts down.

2002-12-16 Thread Alexander Wallace
Thankyou, i'll see into that. I did writhe the classes so i can change them. About the logging, well, i did post a message here, i don't thing i found out what i was hoping (using System.out.println(), if the classes are not servlets, the log goes to catalina and not my app). Anyways, i can

Re: app roll out.

2002-12-16 Thread Alexander Wallace
the cookie's domain to be foo.com rather than www.foo.com, which will make it match to all servers in that domain on all ports. At least, this seems to be what I remember the issue being several years ago for a similar deployment I did. HTH, James -Original Message- From: Alexander Wallace

Re: app roll out.

2002-12-16 Thread Alexander Wallace
Adding a line like the one you suggest doesn't seem to work... People at apache's irc said it should be something like: Redirect / http://www.domain.com/context But that only seems to create infinite redirects since it redirects to the same domain name. The docs say that redirect takes a URI

Re: app roll out.

2002-12-16 Thread Alexander Wallace
The line: RedirectMatch ^/$ http://mysite/theContext did the trick. Now I have to find out how to make apache call index.jsp automatically if no page is requested. If i use http://localhost:8080/myapp tomcat calls index.jsp automatically, but when going through apache

how do i make apache auto load index.jsp

2002-12-16 Thread Alexander Wallace
When using apache + tomcat, and calling my web app context, with no page being requested, i get 404 error If i call tomcat directly (using port 8080) tomcat loads index.jsp fine. How can i make apache also load the index.jsp ? I thought that by adding the index.jsp to the httpd.conf

Re: Sevlet at startup, not starting

2002-12-13 Thread Alexander Wallace
Thanks for all the help. On Thursday 12 December 2002 19:15, Jacob Kjome wrote: That's what init() is there for. Just note that the container is allowed to unload and reload servlets at any time it wants to so your init() and destroy() methods aren't guaranteed to run just once. If you have

Logging to my app.

2002-12-13 Thread Alexander Wallace
How can i send log messages toy my app's log file (already configured in server.xml) insetad of catalina.log? I noticed that some System.out.println() goes to one and others to the other... Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

Re: Logging to my app.

2002-12-13 Thread Alexander Wallace
=true/ You can set your own prefix muwebapp_log. A+ --- Alexander Wallace [EMAIL PROTECTED] a écrit : How can i send log messages toy my app's log file (already configured in server.xml) insetad of catalina.log? I noticed that some System.out.println() goes to one and others

Re: Logging to my app.

2002-12-13 Thread Alexander Wallace
Thanks, i'll check it out. On Friday 13 December 2002 12:05, Shapira, Yoav wrote: Howdy, getServletContext().log(...); The ServletContext javadoc has more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED

System.out.println() on classes goes to catalina.log (Logging to my app revisited)

2002-12-13 Thread Alexander Wallace
Ok, when i do System.out.println() in one of my servlets, it goes to my app log, but if the servlet calls a class and the class has System.out.println, they go to catalina.log... Is this how it's supposed to be? Is there a way to make those go to my app log? Thanks. -- To unsubscribe, e-mail:

Sevlet at startup, not starting

2002-12-12 Thread Alexander Wallace
Hi there... I have 1 servlet to start at startup, but it doesnt. If i call the servlet from a browser, it starts fine. My web.xml has: servlet servlet-nameStartup/servlet-name descriptionServlet that starts different startup classes and stuff./description

Re: Sevlet at startup, not starting

2002-12-12 Thread Alexander Wallace
Well, that must be it then! I should just move all my code that i want inited to the init then righ? Is that safe to do? Thanks! On Thursday 12 December 2002 16:19, Jacob Kjome wrote: Hello Alexander, Note that loading on startup only calls the init() method. It does not call doGet() or

Re: For all: Excuse me please.

2002-12-09 Thread Alexander Wallace
Can your repost your problem? On Mon, 2002-12-09 at 08:51, [EMAIL PROTECTED] wrote: First that all, sorry by my english. Since the Friday 07 of December, i post my questions in the list and i don´t have answer of nobody. Maybe, nobody have a little time for help me. Now, I think that this is

Advise on how to hanle url names when using https

2002-12-09 Thread Alexander Wallace
Hi there. Using apache + tomcat, is there a better/different way of reffering to resources (jsps/servlets) in an app when https is required other than hardcoding the full url (https://my.server.com/myapp/whatever.jsp) in the jsps and servlet's that whant to call those resources? Thanks. --

Re: Advise on how to hanle url names when using https

2002-12-09 Thread Alexander Wallace
. BUT, it couldn't be any easier once complete. === Chris Parker Programmer/Analyst Health Care Services Division California Youth Authority - Original Message - From: Alexander Wallace [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 09

RE: Advise on how to hanle url names when using https

2002-12-09 Thread Alexander Wallace
the entire URL is when you want to switch from SSL to non-SSL, or non-SSL to SSL, and that's because the switch is done by the browser, not the server, and the browser needs to know whether to attempt a connection to port 80 or port 443. John -Original Message- From: Alexander

Re: Problems with starting Tomcat 4.1.12 - PLEASE HELP

2002-12-09 Thread Alexander Wallace
I'm not a windows user, so I can't tell you much, but you start the server with exactly that startup.bat and use shutdown.bat to the the oposite. What are the contets of your JAVA_HOME? CATALINA_HOME? On Mon, 2002-12-09 at 14:45, Siobhan Quigley wrote: I have installed the Java SDK and Tomcat

Re: RE: I don´t understand the objective of thisopen list !

2002-12-09 Thread Alexander Wallace
Te puedo ayudar en español si gustas, dime cual es tu problema y veremos si me es posible ayudarte a resolverlo. Saludos. On Mon, 2002-12-09 at 08:13, [EMAIL PROTECTED] wrote: what curious that is the first time that someone here, can to answer to something. Yes, this list is not for

RE: RE: I don´t understand the objective ofthisopen list !

2002-12-09 Thread Alexander Wallace
a esta versión de tomcat (4.1.12) para que me corran esos ejemplos, o es que existe algún problema con algo ?. Gracias por tu ayuda. -Mensaje original- De: Alexander Wallace [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 09 de diciembre de 2002 17:24 Para: Tomcat Users List Asunto

RE: I don´t understand the objective of thisopen list !

2002-12-09 Thread Alexander Wallace
I also have a technical background, but not as big as yours. I have been programming in java por 3 months now. Even before I started programming I gave tomcat a try to see my options. I have to tell you that getting tomcat to run and work fine is trivial. That setting up connection pooling is

Re: Problems with starting Tomcat 4.1.12 - PLEASE HELP

2002-12-09 Thread Alexander Wallace
I'm not sure if it is a typo or what, but what you describe you typed should not work, try this: -go to a command prompt -type c:\ and hit enter -type cd tomcat\jakarta-4.1.12\bin and hit enter -type startup.bat and hit enter If i'm being too simple please forgive me. On Mon, 2002-12-09 at

RE: I don´t understand the objective of thisopen list !

2002-12-09 Thread Alexander Wallace
You can most likely find how to contribute in the jakarta site. On Mon, 2002-12-09 at 23:26, Theodore A. Jencks wrote: I'm brand new to this list and have noticed the lack of good documentation available. However the docs that exist are extremely helpful and I've found plenty of information

Re: Getting examples to run (Spanish) Was RE: Idon´t understand the objective of thisopen list !

2002-12-09 Thread Alexander Wallace
(***Sorry for re posting, I just wanted to change the subject line***) No hay de que... De antemano te comento que tomcat es bastante sencillo de instalar y usar, asi que el problema que estas teniendo, espero sea una cosa sencilla. Me gustaria comenzar por ver como instalaste tomcat, y en que

Re: Urgent!!!!!!! JavaBean

2002-12-09 Thread Alexander Wallace
If you have tomcat configured to autoload classes when they are changed, then you don't have to restart, otherwise you either restart or use the administration tool that comes with tomcat to reload the app On Tue, 2002-12-10 at 03:23, Galbayar Dorjgotov wrote: hello all! I'm installed Apache

Re: Security constrant to force SSL works with apache+tomcat?

2002-12-08 Thread Alexander Wallace
On Sat, 2002-12-07 at 03:35, Craig R. McClanahan wrote: That's not quite right. Starting a session in http and switching to https for the sensitive part (i.e. fill your shopping cart on http and switch for the checkout page that asks for your credit card number) is fine. Switching from

Security constrant to force SSL works with apache+tomcat?

2002-12-06 Thread Alexander Wallace
I have not tested this, but wanted to make sure before I do all the necesary changes. I have apache in front of tomcat, apache handles the ssl communication... I need to make sure that some stuff happens only via ssl, and i had a filter for that. But i was recommended to use a security

Re: Security constrant to force SSL works with apache+tomcat?

2002-12-06 Thread Alexander Wallace
here? Thanks. On Fri, 2002-12-06 at 13:01, Alexander Wallace wrote: I have not tested this, but wanted to make sure before I do all the necesary changes. I have apache in front of tomcat, apache handles the ssl communication... I need to make sure that some stuff happens only via ssl, and i

Re: Security constrant to force SSL works with apache+tomcat?

2002-12-06 Thread Alexander Wallace
loose all objects i placed in the session before i swhitch to https... Is there a way to be able to access those objects in the non https session? Thanks! On Fri, 2002-12-06 at 12:34, David Brown wrote: Alexander Wallace writes: I have not tested this, but wanted to make sure before I do all

Re: Tomcat and Apache web server

2002-12-06 Thread Alexander Wallace
You probably just need to specify index.jsp in the url. On Fri, 2002-12-06 at 14:05, dustin cavanaugh wrote: This is a follow-on question to the Tomacat and apache web server thread. I'm running Apache2.0.43, Tomcat4.1.12, mod_jk2 (12/4/02) on a Win2K platform. I have an webapp I'll call

Re: connection pool to postgresql

2002-12-06 Thread Alexander Wallace
Here is what i have in server.xml in the context of my app Resource name=jdbc/postgresql auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/postgresql parameter namefactory/name

Tomcat standalone + SSL.

2002-12-06 Thread Alexander Wallace
Hello there... I have asked this question before but maybe with the wrong subject, so here i try again. I have a web app that needs to use SSL at one point, but not from the beginning. Now i understand tat once i start using SSL i need to stay in that mode, and that is fine. My problem is that

Re: Security constrant to force SSL works with apache+tomcat?

2002-12-06 Thread Alexander Wallace
have to. Thanks Milt! On Fri, 2002-12-06 at 12:34, David Brown wrote: Alexander Wallace writes: I have not tested this, but wanted to make sure before I do all the necesary changes. I have apache in front of tomcat, apache handles the ssl communication... I need

Re: Tomcat standalone + SSL.

2002-12-06 Thread Alexander Wallace
, Alexander Wallace wrote: Hello there... I have asked this question before but maybe with the wrong subject, so here i try again. I have a web app that needs to use SSL at one point, but not from the beginning. Now i understand tat once i start using SSL i need to stay in that mode

Re: Filters don't affect request dispatcher forward

2002-12-04 Thread Alexander Wallace
Thanks for the schooling, now it's all clear! I realy appreciate it. On Tue, 2002-12-03 at 23:41, Craig R. McClanahan wrote: On 3 Dec 2002, Alexander Wallace wrote: Date: 03 Dec 2002 21:42:54 +0100 From: Alexander Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL

Re: Filters don't affect request dispatcher forward

2002-12-03 Thread Alexander Wallace
. McClanahan wrote: On 2 Dec 2002, Alexander Wallace wrote: Date: 02 Dec 2002 18:41:26 -0600 From: Alexander Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Filters don't affect request dispatcher forward

Re: Filters don't affect request dispatcher forward

2002-12-03 Thread Alexander Wallace
Ok, thankyou for the advice, I will do that then. What i was trying to do is actually what you are telling me i shouldn't. Again, thanks! On Tue, 2002-12-03 at 11:20, Craig R. McClanahan wrote: On 3 Dec 2002, Alexander Wallace wrote: Date: 03 Dec 2002 10:21:19 -0600 From: Alexander

Filters don't affect request dispatcher forward

2002-12-02 Thread Alexander Wallace
Hi there. I wrote a filter to ensure that resources that i want accessed using https are, and the ones that don't need to aren't. I found out that filters are only applied if the request came from the user, by typing the url or using a link, etc. They are not used if the resource is called using

Tomcat + apache. Lost ability to get ip and hostname of user.

2002-12-02 Thread Alexander Wallace
I have apache running in front of tomcat, This mainly becouse I would loose all my session objects in tomcat when switching from http to https (anyone knows how to prevent this by the way?). But now, I don't have the ability to get the ip address and hostname of the user in my servlets, using

Re: pgSQL connection pooling

2002-08-27 Thread Alexander Wallace
On Mon, 2002-08-19 at 15:04, Felipe Schnack wrote: Well, this poolman isn't updated anymore... how can I use tomcat's own connectionpooling? IF you still need help with using tomcat's connection pooling with postgresql, let me know, I'm using that. On Mon, 2002-08-19 at 10:51, V.

JDBCRealm + Form Based Auth. How do I tell it were to go if loginis ok?

2002-08-27 Thread Alexander Wallace
Hello there. Very new to realms and java, so sorry if this is too stupid. I have set up a JDBCRealm using PostgreSQL and it all seems to work, It does connect and load the roles, and when I try to access protected resources, it does go to the Form based login I specigy in web.xml and the error

JDBCRealm + Form Bases Auth. How do I tell it were to go if loginis ok?

2002-08-27 Thread Alexander Wallace
Hello there. Very new to realms and java, so sorry if this is too stupid. I have set up a JDBCRealm using PostgreSQL and it all seems to work, It does connect and load the roles, and when I try to access protected resources, it does go to the Form based login I specigy in web.xml and the error

Realms advise.

2002-08-16 Thread Alexander Wallace
Not being experienced with realms I want to ask for your advece, will this work? I need to validate not only username and password, but one extra field (an integer, OfficeID). This is becouse my webapp can service users from different offices, and each office has it's own set of users and data.

RE: Realms advise.

2002-08-16 Thread Alexander Wallace
and for Bill from office 2: Username: Bill Password: Foo Office: 2 then we submit j_username: 2Bill j_password: Foo Hamish -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: Realms advise

RE: JNDI JDBC COnnection pooling problem...

2002-08-13 Thread Alexander Wallace
: Alexander Wallace [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: JNDI JDBC COnnection pooling problem... Hello. This has to be a very simple one for those who know. I'm getting a java.lang.NullPointerException in my app

Re: NetBeans + Tomcat 4.0.4

2002-08-13 Thread Alexander Wallace
Thankyou! I'll check it out. On Mon, 2002-08-12 at 04:34, Larry Meadors wrote: In your context tag, add the reloadable=true attribute. Here is a link: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html This is really cool, because if you use the thread's classloader to

RE: NetBeans + Tomcat 4.0.4

2002-08-12 Thread Alexander Wallace
if it was fixed or not, I've been using 4.0.3 with Netbeans and it is OK. John Turner [EMAIL PROTECTED] -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: NetBeans + Tomcat 4.0.4 Does anyone here

user's roles verification

2002-08-12 Thread Alexander Wallace
I've got (i think) Realms working. I need some advice for good practices... My original idea (before hearing about realms and such) was to direct all requests for any resource of my webapp to a servlet that would verify user roles. Then I was told here that i would run into a lot of problems

JNDI JDBC COnnection pooling problem...

2002-08-12 Thread Alexander Wallace
Hello. This has to be a very simple one for those who know. I'm getting a java.lang.NullPointerException in my app, in the second line here: Context ctx = (Context) new InitialContext().lookup(java:comp/env); conn = ((DataSource) ctx.lookup(jdbc/pgsql)).getConnection(); **Error happens here**

Re: user's roles verification

2002-08-12 Thread Alexander Wallace
Excellent! This sounds just great! Thanks to all that helped! On Mon, 2002-08-12 at 22:55, Craig R. McClanahan wrote: On 12 Aug 2002, Alexander Wallace wrote: Date: 12 Aug 2002 15:43:58 +0100 From: Alexander Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED

Re: Problems with url-pattern*

2002-08-10 Thread Alexander Wallace
What I need to be able to do is to make sure, that every request, for any page has enought rights to view the page and use it, So i thought of using a servlet as a controller. If I understand correctly what you talked about in this and your previous post, using the servlet mapping to / will not

Re: NetBeans + Tomcat 4.0.4

2002-08-10 Thread Alexander Wallace
I checked the link out and actually found out that it's possible to do the same by just starting tomcat with./catalina.sh jpda start... One thing the link mentions is that he uses the context with reload so that tomcat doesn't have to be restarted. How do you go about doing that? The tomcat

Re: Problems with url-pattern*

2002-08-10 Thread Alexander Wallace
all confused then? I'm sorry if i sound too newbie... I am tho :/ On Sat, 2002-08-10 at 18:59, Craig R. McClanahan wrote: On 10 Aug 2002, Alexander Wallace wrote: Date: 10 Aug 2002 12:17:03 +0100 From: Alexander Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED

RE: Problems with url-pattern*

2002-08-10 Thread Alexander Wallace
to be working now ( i do get the content of my jsps and all that), I guess I should follow your advice, since that's what thos things (realms and filters) are made for. Thankyou again! On Sat, 2002-08-10 at 20:27, Jacob Hookom wrote: | -Original Message- | From: Alexander Wallace [mailto

Re: Problems with url-pattern*

2002-08-10 Thread Alexander Wallace
advice, i don't want to run into trouble later. I should check out filters and realms... I hope is not too hard :/ Thanks again! On Sat, 2002-08-10 at 21:06, Craig R. McClanahan wrote: On 10 Aug 2002, Alexander Wallace wrote: Date: 10 Aug 2002 13:56:15 +0100 From: Alexander Wallace

Problems with url-pattern*

2002-08-09 Thread Alexander Wallace
Hi there! New to the list. And to java and tomcat, so please be nice. I have a problem with a servlet mapping. If i use a url-pattern like url-pattern/Hello/url-pattern on a servlet mapping pointing to a particular servlet, the servlet get's the request and i can use request.getServletPath()

NetBeans + Tomcat 4.0.4

2002-08-09 Thread Alexander Wallace
Does anyone here use NetBeans with tomcat 404? I'm using it, and use a small class to start tomcat from netbeans (instead of using the internal one that's 3.2), it works great when I want to debug servlets. But no JSP works, they all give error 500, even the ones in /exaples. But if i start it

Re: NetBeans + Tomcat 4.0.4

2002-08-09 Thread Alexander Wallace
Thanks! I'll check it out. On Fri, 2002-08-09 at 23:01, Larry Meadors wrote: Look here: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30523.html Instructions on how to set up tomcat and netbeans with the JPDA debugger. Larry [EMAIL PROTECTED] 08/09/02 15:59 PM