Hello,
The driver class name with the package structure is
"weblogic.jdbc.pool.Driver" and not
"weblogic.jdbc.pool.driver"
^
Thanks,
Madhava
--- Charu Gupta <[EMAIL PROTECTED]> wrote:
<HR>
<html><DIV>Hi,</DIV>
<DIV>I am working on a jsp application which has
oracle database at the backend.</DIV>
<DIV>I am trying to get a connection from the
connection pool but am getting the following
compilation error which I can not resolve, please
help(I have pasted my jsp code after the error
message.)</DIV>
<DIV> </DIV>
<DIV>ERROR:</DIV>
<DIV>
<H3>From RFC 2068 <I>Hypertext Transfer Protocol --
HTTP/1.1</I>:</H3><FONT face=Helvetica size=3>
<H4>10.5.1 500 Internal Server Error</H4></FONT>
<P><FONT face="Courier New">The server encountered an
unexpected condition which prevented it from
fulfilling the request</FONT></P>
<P><FONT face="Courier New"></FONT> </P>
<P><FONT face="Courier New">JSP code:</FONT></P>
<P><%!</P>
<P>
<BR> Driver
poolDriver = null;<BR> Properties
props = null;<BR>
<BR> public Connection
getConnection()<BR>
{<BR>
Connection conn = null;<BR>
try<BR>
{<BR>
if(poolDriver ==
null)<BR>
{<BR>
poolDriver=(Driver)Class.forName("weblogic.jdbc.pool.driver").newInstance();<BR>
props = new
Properties();<BR>
props.put("connectionPoolID",
"oraclePool");<BR>
}<BR>
}<BR> catch(Exception
ex)<BR>
{<BR> return
null;<BR> &nb!
sp; }<BR>
try<BR>
{<BR> conn =
poolDriver.connect("weblogic.jdbc.pool.driver",props);<BR>
}<BR> catch(SQLException
ex)<BR>
{<BR> return
null;<BR>
}<BR> return
conn;<BR> }<BR>
%><BR> <%
<BR> <BR>
<BR> Connection tconn =
getConnection();<BR> Statement
stmt =
tconn.createStatement();<BR>
ResultSet rset = stmt.executeQuery("select * from
po_user");</P>
<P>
while(rset.next())<BR> {</P>
<P>
%><BR>
<TR><TD><%= rset.getString("USER_PASS")
%><BR>
</TD></TR><BR>
<%<BR>
}<BR>
stmt.close();<BR>
tconn.close();</P>
<P>%></P>
<P> </P>
<P> </P>
<P>Thanks. </P>
<P> </P></DIV><br clear=all><hr>Get Your Private,
Free E-mail from MSN Hotmail at <a
href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED]
and include in the body
of the message "signoff SERVLET-INTEREST".
Archives:
http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html