Hi all
I am strucked with the below error when I am accessing
the following jsp page.
dbtagsample.jsp
--------------

<%@ taglib
uri="http://jakarta.apache.org/taglibs/dbtags";
prefix="sql" %>
<sql:connection id="conn1"
jndiName="java:comp/env/jdbc/jndimysql"/>
<p><b>Connection is closed?</b></p>
<jsp:getProperty name="conn1" property="closed"/>
</body>
</html>
---------------
The same is working fine in tomcat but giving
following error in sunone application server 7.0.
I tried rather than jndiname with Database
url,Driver,user,password for connection tag, working
fine in both tomcat and sunone server.But i want to
use connection pooling with dbtags.
Without tags below jsp is working fine in both
servers.
withouttags.jsp
----------------------------------

<html>
<body>
<%@ page
import="java.sql.*,javax.sql.DataSource,javax.naming.*"%>
<%
String dsName = "java:comp/env/jdbc/jndimysql"; 
Context initContext = new
javax.naming.InitialContext(); 
DataSource ds =
(javax.sql.DataSource)initContext.lookup(dsName); 
Connection con=ds.getConnection();
if(con==null)
out.println("Connection problem");
else
out.println("connection success");
% 
</body>
</html>
------------------------------ 
Please help me.I would greatly appreciate for some
comment and suggestions.

Thanks in advance

Error report:

Sun ONE Application Server - HTTP Status 500 Error 
The server encountered an internal error (Internal
Server Error) that prevented it from fulfilling this
request. 

Type: Exception Report

Message: Internal Server Error

Exception 

org.apache.jasper.JasperException: Class
org.apache.jasper.runtime.JspRuntimeLibrary can not
access a member of class
com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection
with modifiers "public"
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:525)
at
_jasper._dbtagtest_jsp._jspService(_dbtagtest_jsp.java:111)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at
com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at
com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)



Root Cause 
java.lang.IllegalAccessException: Class
org.apache.jasper.runtime.JspRuntimeLibrary can not
access a member of class
com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection
with modifiers "public"
at
sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
at java.lang.reflect.Method.invoke(Method.java:317)
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:523)
at
_jasper._dbtagtest_jsp._jspService(_dbtagtest_jsp.java:111)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at
com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at
com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)



__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to