displaying line numbers in errors

2004-02-17 Thread Jose Alfonso Martinez
Hello, When exceptions are thrown in my servlets and the Stack Trace is printed, I can see that java can find the line where the error ocurrs in some classes, and in some others not. For example: In some classes here, actually my own classes, it says Unknown Source

Re: How to know when Tomcat has completed startup?

2004-02-16 Thread Jose Alfonso Martinez
On Mon, Feb 16, 2004 at 03:44:53PM +, James Neville wrote: Cancel that - this is called *before* any of the servlets are initialised :( Any better ideas? James, do you need the servlets to be already initialized??? Because Tomcat can be completly set up, and still none of the servlets

Re: Configuring a Data Resource in web.xml

2004-02-15 Thread Jose Alfonso Martinez
I don't think you can. In web.xml you only make the named DataSource available for your webapp, but the DataSource must be setted up already (in server.xml)... Therefore, I think there is no possible way to do it. Does anyone know a solution, I will be interested to know it too! Jose On

Re: Datasource connections not released when reloading context

2003-10-06 Thread Jose Alfonso Martinez
connections. I'd be interested to see if it works, Adam On 10/03/2003 12:30 AM Jose Alfonso Martinez wrote: On Wed, Oct 01, 2003 at 11:37:39AM -0500, Matt Raible wrote: I already do this, but when I reload my context, I get two database connections, rather than one. So each time I reload, I

Re: Datasource connections not released when reloading context

2003-10-02 Thread Jose Alfonso Martinez
On Wed, Oct 01, 2003 at 11:37:39AM -0500, Matt Raible wrote: I already do this, but when I reload my context, I get two database connections, rather than one. So each time I reload, I get an additional connection - eventually resulting in an OutOfMemory Error (which I'm attributing to this)

Re: form-based login / cookies disabled / JSPs in WEB-INF

2003-09-29 Thread Jose Alfonso Martinez
Hardy wrote: On 09/28/2003 06:09 PM Jose Alfonso Martinez wrote: Do you really need to maintain a session, even when the user is just browsing static html files (before logging in)??? If the answer is no, then you could have an html login form. Try it! If tomcat doesn't have a session id

Re: form-based login / cookies disabled / JSPs in WEB-INF

2003-09-28 Thread Jose Alfonso Martinez
Adam, I am in the same issue as you and haven't come out with any workaround yet... However, in my site, the login form could be an html because I don't need to maintain a session until the user has logged-in. Do you really need to maintain a session, even when the user is just browsing static

Datasource connections not released when reloading context

2003-09-27 Thread Jose Alfonso Martinez
Hi guys, Does any one know if there is a possibility of tomcat, for any reason, to reload a context without telling it to do so I am having a problem that after 2 or 3 days without reloading tomcat, pooled-connections from the datasource get exahusted. The only case I have seen that the

Re: Form auth

2002-11-01 Thread Jose Alfonso Martinez
: Alfonso Martinez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 6:00 AM Subject: Re: Form auth One way to do this is to create a filter for the protected resources. When accessing them, the filter gets invoked. It checks on the session wheter

Re: The requested resource (/BookSource/DispatchServlet) is not available.

2002-11-01 Thread Jose Alfonso Martinez
)) % jsp:forward page=web-inf/classes/BookStore/DispatchServlet/ Thanks in advance. Nalini --- Alfonso Martinez [EMAIL PROTECTED] wrote: I am not really sure about your form sintax: FORM method='POST' onsubmit=jsp:forward page='DispatchServlet'/ ... try FORM method

Re: Form auth

2002-10-31 Thread Alfonso Martinez
One way to do this is to create a filter for the protected resources. When accessing them, the filter gets invoked. It checks on the session wheter the user has already logged in or not. If not, it redirects to the login page which in turn redirects to the protected resouce. What do you guys

Re: The requested resource (/BookSource/DispatchServlet) is not available.

2002-10-31 Thread Alfonso Martinez
I am not really sure about your form sintax: FORM method='POST' onsubmit=jsp:forward page='DispatchServlet'/ ... try FORM method='POST' action=/DispatchServlet ... I hope this helps. Jose Alfonso On Thu, Oct 31, 2002 at 09:16:19AM -0800, Nalini wrote: Hi, I am writing my first JSP,

Re: compile error?

2002-10-30 Thread Alfonso Martinez
I guess Tomcat complies too, at least on my expierence. The error ocurrs when the jsp gets converted into servlet code: %=blah();% into out.write(blah();); // servlet code ... therefore the semicolon should be omitted for the servlet to be compiled

Handling sessions without cookies?????

2002-09-27 Thread Alfonso Martinez
To enable sessions without cookies one must do an encodeURL() on every link. Are there any other alternatives??? Does it really work??? +That's a lot of work, so I wanted to ask before doing it. Thanks a lot, and sorry if +this tread is a little out of topic. Jose Alfonso -- To unsubscribe,

Re: So what database and script language do you use?

2002-09-24 Thread Alfonso Martinez
I use PostgreSQL. I needed transactions and foreign keys. To enable transactions in MySQL you have to use InnoDB (or Gemini I guess). I did not have much time to learn, so I better switched to PostgreSQL with good results. Jose Alfonso On Wed, Sep 25, 2002 at 09:17:05AM +0800, Atif Shahab

Re: Postgresql DataSource Tomcat 4.1 SQLException

2002-09-23 Thread Alfonso Martinez
. thanks, Paul Alfonso Martinez wrote: Hi Paul, I am a newbie too, but trying to help. I had a problem like yours recently and found an error in my server.xml. I know you checked that file already, but can you send those (also web.xml) files to me please to see what I can do? Thanks

Re: Postgresql DataSource Tomcat 4.1 SQLException

2002-09-21 Thread Alfonso Martinez
Hi Paul, I am a newbie too, but trying to help. I had a problem like yours recently and found an error in my server.xml. I know you checked that file already, but can you send those (also web.xml) files to me please to see what I can do? Thanks Jose On Fri, Sep 20, 2002 at 11:10:41AM -0500,

Re: UnsupportedOperationException when connecting from datasource

2002-09-18 Thread Alfonso Martinez
Thanks, thanks, thanks a lot Jake. It is working now!!! As you said, user should be username, also ds.getConnection(, ) should be ds.getConnection() My system was running OK on Tomcat 4.0.1/mysql. Problems arrised when I migrated to Tomcat 4.1.10/postgresql. I really thank you. You saved me