What's the database you're using? MySQL? The other question is how you have
defined the login for the database. Have you litterly stated
[EMAIL PROTECTED] there?
Marc
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, 24 December 2002 12:12
Subject: access denied
> hi all,
>
> i tried this code.. the below mentioned error is coming !!!! pl help
> ------------
> javax.naming.Context ctx = new javax.naming.InitialContext();
> if(ctx == null )
> System.out.println("Context is null");
> else {
> javax.sql.DataSource ds1 = (javax.sql.DataSource)ctx.lookup
> ("java:comp/env/TestDB");
>
> if (ds1 != null) {
> java.sql.Connection conn = ds1.getConnection();
> ---------------------
>
> org.apache.jasper.JasperException: java.sql.SQLException: Invalid
> authorization specification: Access denied for user:
> '[EMAIL PROTECTED]' (Using password: YES)
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>
>
> T I A
>
> best regards
> sunil
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>