Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
Hi, I just got Tomcat 5.0.27 installed (with Apache 2.0.50), and am trying to get a simple JDBC JSP working. The JSP is called 'test.jsp'. I have the JDBC-ODBC bridge installed and am going through that. I've been using the bridge driver from standalone Java applications, so I think that is

1067 error when starting service after allocating more memory to JVM

2004-08-07 Thread Stephen Charles Huey
Hey, we've been running Tomcat 4.1.27 for a couple of years on our webserver, and we just upgraded the server from 2GB of memory to 3GB. We've been allocating 1GB to the JVM when installing Tomcat as a service, but now we'd like to do 2GB, so I just changed the two instances of 1024 to 2048 in

404 page's characters are not displayed correctly.

2004-08-07 Thread Chris
Howdy, I am using TC 5.0.27 under win2k pro Japanese version, When my IE request a web page that does not exist, the 404 page's characters are jumbled. I 'v seeking solutions for a long time and finally turn to this mailing list. Would anyone give me a hint? BTW, TC 4.1.x does not have the

RE: 1067 error when starting service after allocating more memory to JVM

2004-08-07 Thread Caldarale, Charles R
From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Subject: 1067 error when starting service after allocating more memory to JVM Hey, we've been running Tomcat 4.1.27 for a couple of years on our webserver, and we just upgraded the server from 2GB of memory to 3GB. We've been allocating

Re: 404 page's characters are not displayed correctly.

2004-08-07 Thread Chris
I 'v downloaded the latest nightly build version , the problem has been fixed :) http://issues.apache.org/bugzilla/show_bug.cgi?id=28875 - Original Message - From: Chris [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 08, 2004 12:36 AM Subject: 404 page's

getting the error type/code

2004-08-07 Thread Charles N. Harvey III
Hello. If I create one error page and point all of the error codes (400, 401, 403, 404, 408, 500) to the same page, how do I figure out which error code was sent so I can display a different message to the user? Can this be done or do I have to create a separate page for each error code? Is the

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread Dennis Dai
On 8/7/2004 8:24 AM, ohaya wrote: Hi, I just got Tomcat 5.0.27 installed (with Apache 2.0.50), and am trying to get a simple JDBC JSP working. The JSP is called 'test.jsp'. I have the JDBC-ODBC bridge installed and am going through that. I've been using the bridge driver from standalone Java

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
I'm not a JNDI expert but you can try this: Context ic = new InitialContext(); Context ctx = (Context) ic.lookup(java:comp/env); DataSource ds = (DataSource) ic.lookup(jdbc/jimnew); Hi Dennis, I've been wrestling with this problem for most of today, and at this point, I don't think the

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread D'Alessandro, Arthur
Add a resourcelink to your context definition. -Original Message- From: ohaya [mailto:[EMAIL PROTECTED] Sent: Sat Aug 07 18:07:42 2004 To: Tomcat Users List Subject:Re: Newbie - JDBC problem Name is not bound in this context I'm not a JNDI expert but you can try this:

Re: getting the error type/code

2004-08-07 Thread Tim Funk
Its in 'Table SRV.9-1 Request Attributes and their types' of the servlet spec: Request Attributes Type javax.servlet.error.status_code java.lang.Integer javax.servlet.error.exception_type java.lang.Class javax.servlet.error.message java.lang.String javax.servlet.error.exception java.lang.Throwable

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
D'Alessandro, Arthur wrote: Add a resourcelink to your context definition. Arthur, I'm kind of (well, really) new to Tomcat, so could you clarify? Am I right that you mean to add that to the server.xml? At least with the distribution that I installed, which I posted with my original

RE: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread D'Alessandro, Arthur
Context cachingAllowed=true docBase=yourwebappname.war debug=99 path=/yourwebappname privileged=false reloadable=true swallowOutput=true ResourceLink name=jdbc/jimnew global=jdbc/jimnew type=javax.sql.DataSource/ /Context Either in your server.xml, or as 'context.xml' in your webapps /META-INF

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
D'Alessandro, Arthur wrote: Context cachingAllowed=true docBase=yourwebappname.war debug=99 path=/yourwebappname privileged=false reloadable=true swallowOutput=true ResourceLink name=jdbc/jimnew global=jdbc/jimnew type=javax.sql.DataSource/ /Context Either in your server.xml, or as