Tomcat 5 con pool, Oracle, servlet error on Connection ocon = ds.getConnect

Hello,
I am trying to create a connection pool to my Oracle db using the documentation provided for
Tomcat 5. In the servlet shown below, the servlet fails at this line:
Connection ocon = ds.getConnection();
The servlet stops with no error message. Also, I'm not sure what is supposed to go in
this line:
Context envContext = (Context)initContext.lookup("java:/comp/env");
which may be where the real problem begins. Any suggestions are greatly appreciated.
Here is the servlet:
package CraigsClasses;
import javax.servlet.*;
import javax.servlet.jsp.*;
import java.net.*;
import java.util.*;
import java.io.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.Date;
import java.text.*;
import javax.naming.*;
import javax.sql.DataSource;
public class CraigsMain extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
// Process the http Get request
public void doGet(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
try {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/CraigsList");
Connection ocon = ds.getConnection();
String sql = "select formtitle from checkboxforms where cbformid = 157";
PreparedStatement pStmt = ocon.prepareStatement(sql);
ResultSet rs1 = pStmt.executeQuery();
rs1.next();
out.println("<br><br><br>" + rs1.getString(1) + "<br>");
} catch(SQLException sqle) {
System.err.println("sql exception error: " + sqle);
} catch(NamingException sqln) {
System.err.println("naming exception error: " + sqln);
// A post request calls the get request because they do the same thing
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
Thank you,
Logan

Hello,
I am trying to create a connection pool to my Oracle db using the documentation provided for
Tomcat 5. In the servlet shown below, the servlet fails at this line:
Connection ocon = ds.getConnection();
The servlet stops with no error message. Also, I'm not sure what is supposed to go in
this line:
Context envContext = (Context)initContext.lookup("java:/comp/env");
which may be where the real problem begins. Any suggestions are greatly appreciated.
Here is the servlet:
package CraigsClasses;
import javax.servlet.*;
import javax.servlet.jsp.*;
import java.net.*;
import java.util.*;
import java.io.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.Date;
import java.text.*;
import javax.naming.*;
import javax.sql.DataSource;
public class CraigsMain extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
// Process the http Get request
public void doGet(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
try {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/CraigsList");
Connection ocon = ds.getConnection();
String sql = "select formtitle from checkboxforms where cbformid = 157";
PreparedStatement pStmt = ocon.prepareStatement(sql);
ResultSet rs1 = pStmt.executeQuery();
rs1.next();
out.println("<br><br><br>" + rs1.getString(1) + "<br>");
} catch(SQLException sqle) {
System.err.println("sql exception error: " + sqle);
} catch(NamingException sqln) {
System.err.println("naming exception error: " + sqln);
// A post request calls the get request because they do the same thing
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
Thank you,
Logan

Similar Messages

  • 500 Servlet error when connecting to Roadrunner webmail on ATT Palm Centro

    I have no problems getting my e-mail via Versa Mail.  But, if I try to connect to the webmail page for RoadRunner, I get a 500 Servlet Exception error.  I've contacted Time Warner and they say it's not their problem since I can connect to their webmail site on a regular computer.  On my old Treo 650 I could connect, but it would often timeout.  What can be done to correct this, if anything?  There are times when I'd rather connect via webmail, vice Versa Mail, so the reply will be saved in my inbox.
    Post relates to: Centro (AT&T)

    Blazer just can't handle certain coding on some web pages.  These include those that use Internet Explorer-specific code, Flash video, etc.
    I'm assuming you can connect to the RoadRunner main webpage correctly, right?
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Tomcat 5.5.20 / Oracle  JDBC connection error

    Hi All,
    I am using Eclipse 3.2/ Tomcat 5.5.20/ Oracle 8i
    Inside my java class; right after finding the context, it gives error on line:
    conn = dataSource.getConnection();
    my server.xml <Resource> settings are proper within one tag...
    I am loosing my hair faster... please someone help me..
    Error Stack:
    javax.servlet.ServletException
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         com.nibtt.beans.ConnectionBean.getConnection(ConnectionBean.java:80)
         com.nibtt.actions.LoginAction.execute(LoginAction.java:44)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Regards
    Hepzi

    Hi Zadok,
    I am going insane. Thank God you replied. I am pasting my code here.
    I have setup Tomcat5.5.20 <resource> tag as follows: for connection pooling
    <Resource      name="jdbc/TestStrutsDB" auth="Container"
              type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory"
              username="SCOTT" password="TIGER"
              driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@111.1.1.1:1521:TEST"
              maxActive="8" maxIdle="4"/>
    my application web.xml code:
    <resource-ref>
    <description>Oracle DB Connection</description>
    <res-ref-name>jdbc/TestStrutsDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    my java code:
    public Connection getConnection() throws Exception{
              Context ctx = new InitialContext();
    Context envContext = (Context)ctx.lookup("java:/comp/env");
    javax.sql.DataSource dataSource = null;
         ResultSet rst = null;
         Statement stmt = null;
         try {
              if(envContext == null ) {
         System.out.println( "context is NULL");
              } else
         System.out.println( "context is NOT NULL");
    dataSource = (javax.sql.DataSource)envContext.lookup("jdbc/TestStrutsDB");
              if (dataSource != null) {
                   System.out.println( "before actual connection to database: "+dataSource.toString() );
                   try {
                        conn = dataSource.getConnection();
                   } catch (Exception connEx) {
                        System.out.println( connEx.getStackTrace());
              if(conn != null) {
         System.out.println( "Got Connection "+conn.toString());
         stmt=conn.createStatement();
         rst=stmt.executeQuery("select username from testTomcat");
         while(rst.next()){
              System.out.println("User Name is: " + rst.getString("username"));
         rst.close();
         rst = null;
         stmt.close();
    stmt = null;
    conn.close();
         conn = null;
         // do what you wish with Connection
         } catch (SQLException e) {
              while((e = e.getNextException()) != null) {
                        System.out.println("SQLException: " + e.getMessage());
                        System.out.println("SQLState: " + e.getSQLState());
                        System.out.println("VendorError: " + e.getErrorCode());
                        System.out.println(e.getStackTrace());
         } finally {
         try {
         conn.close();
         } catch (SQLException ex) {
              System.out.println(ex.getStackTrace());
              return conn;
         } //End of Connection function
    Please let me know if had gone wrong somewhere
    Thanks in advance
    Regards
    Hepzi

  • Oracle 10G Application Server : Getting Servlet error

    Hi,
    When I am trying to execute the JSP after deploying the same as war file in Oracle 10G Application server, I am getting the following exception.
    I am not sure why this sample jsp is not compiling and giving this classnot found exception.
    Exception is:
    SampleJSP: Servlet error
    javax.servlet.ServletException: java.lang.ClassNotFoundException: Sample_Hello
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:323)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    This is working fine with Tomcat server when I tried to test from my Netbeans IDE.
    thanks

    Hi
    I could figure out the problem. For Oracle AS, we need to include the folloiwng in web.xml file. Now every thing is working fine for me.
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    <init-param>
    <param-name>check_page_scope</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    Thanks

  • Java Servlet Error in oracle 10.1.2 (10g)

    Hello,
    This question belongs to our company project,which is a Govt.Organization. We are using AIX 5.3 Server OS with Oracle 10.1.2 (10g) Application Server on it.
    We have installed all the above OS & Oracle Application on IBM P-Series High End Servers.
    Now, We have successfully installed "Oracle 10g AS" on AIX but after installation, we are getting some common errors which is related to JAVA & Servlet. Below is the error file.
    09/05/02 19:01:50 Started
    09/05/02 19:01:51 vatwebsite: jsp: init
    09/05/02 19:01:51 vatwebsite: FrontServlet: init
    09/05/02 19:01:52 vatwebsite: action: init
    09/05/02 19:01:54 vatwebsite: barbecue: init
    09/05/02 19:01:54 vatwebsite: Started
    09/05/02 19:01:55 vatwebsite: Servlet error
    java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextEntry(HashMap.java(Compiled Code))
        at java.util.HashMap$KeyIterator.next(HashMap.java(Compiled Code))
        at java.util.Collections$6.nextElement(Collections.java:2493)
        at org.apache.struts.util.RequestUtils.getModulePrefixes(RequestUtils.java:1907)
        at org.apache.struts.util.RequestUtils.getModuleName(RequestUtils.java:1803)
        at org.apache.struts.util.RequestUtils.getModuleName(RequestUtils.java:1788)
        at org.apache.struts.util.RequestUtils.selectModule(RequestUtils.java:1768)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1481)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at com.vat.website.utils.LogRecorderServlet.doPost(LogRecorderServlet.java:38)
        at com.vat.website.utils.LogRecorderServlet.doGet(LogRecorderServlet.java:29)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
        at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
        at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
        at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
        at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
        at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
        at java.lang.Thread.run(Thread.java:568)
    I need some solution to remove this error. Kindly let me know how to go further to sort out this error. Another thing is,I am not a JAVA/Programmer person But still this is a part of my job.
    So,please do the needful & provide me some guidence & document about "How to solve this JAVA Error".
    Advanced Thanks,
    Nishith Vyas.

    See this thread for a JDBC bug number reference
    JDev 10.1.3 : Error running my first ADF application.

  • Servlet error in portal of oracle application server

    I'm have ploblem in portal. Two user login in portal at the same time. Use Administrator Level login Portal.After that user 1 to change password during user 2 (I AM)
    working portal. when I'm logout and go to login again I'm can't login the portal error
    ------------------massage error------------
    Servelt Error
    An unexpected servlet error was encountered
    Please check the log file for more details.
    please help me
    thank you very much
    tanomsup
    Message was edited by: tanom
    user474356

    HI,
    How did the user 1 change the password?. This error is generally encountered when a user changes the passward through SQLPLUS prior to changing it through application server. Follow the following solution it should fix it.
    Thanks
    Rakesh Patel
    IT Manager Bearing Point.
    1. Log into Oracle Directory Manager and find the Portal db schema password. You can use the following note to assist you with this:
    Note.198800.1 How to get the Portal schema password of the Infrastructure database.
    2. Once you have the password, log into sqlplus as the sys user and change the Por
    tal password to the value in Oracle Directory Manager.
    3. Delete all the files under the folders
    /<MIDTIER>/Apache/modplsql/cache/plsql
    /<MIDTIER>/Apache/modplsql/cache/session
    4. Restart the midtier. Test Portal again by attempting to navigate to it. If still getting the error, then try to change t
    he Portal schema password again through application server control to the value
    from Oracle Directory Manager. To change the value in application server contro
    l, try these steps:
    6.4.1 Changing Schema Passwords Using the Application Server Control Console
    Some schemas store their passwords in Oracle Internet Directory. You must change their passwords using the Application Server Control Console
    so the password is updated in both the database and Oracle Internet Directory.
    To change a schema password using the Application Server Control Console:
    1. Depending on the schema, navigate to the home page for the middle-tier in
    stance or the Infrastructure. Refer to Table 6-2 to determine which home page to
    use.
    2. On the home page, click Infrastructure.
    3. On the Infrastructure page, click Change Schema Password.
    4. On the Change Schema Password page, select the schema. Enter the new password in the Password and Confi
    rm Password fields. Click OK.
    5. Test Portal again and update the tar.
    *************************

  • Servlet error: Renderer failed: java.lang.NoClassDefFoundError: oracle/um/w

    Hi,
    since a few days, I'm getting this error message Servlet error: Renderer failed: java.lang.NoClassDefFoundError: oracle/um/webmail/util/OESAccess
    if I click on the Administration TAB. When i use /um/admin/UMAdminLogin.uix I'm getting a "Resource Bundle not found error".
    In the webclient, I do have everything except the send buttons.
    Have absolutly no Idea where this comes from and how to fix it. Please help

    I think would be better to post this topic in Development Forums. There are forums for this kind of topic.
    Joel P�rez

  • Urgent PTG on APACHE/NT Servlet Error: ClassNotFoundException: oracle.jsp.JSPServlet

    Hi all,
    I try to install PTG 1.0.2 with apache server (version 1.3.9 with jserv 1.1) on windows NT. I follow install instructions and when I try to access test page (test.jsp), the page colud not be displayed, and the following error is added in the mod_jserv.log file :
    (error) ajp12: Servlet Error : ClassnotFoundException : oracle.jsp.JSPservlet.
    All input are welcome ?
    null

    Hello!
    I've got the same problem and I think it has something to do with the jserv.conf file.
    According to the installation guide, the following line should be added:
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    In the same file I have the following line:
    ApJServMount /servlets /root
    So /servlets is mounted on /root. I don't knoww what this /root pints to, but I think the problem is that this path does not lead to oracle.jsp.JspServlet.
    Has ANYONE yet solved this problem?

  • Servlet Error: ClassNotFoundException: oracle.jsp.JSPServlet

    Hi,
    I try to install PTG 1.0.2 with apache server (1.3.9 with jserv 1.1) on windows NT. I follow install instructions and when I try to access test page (test.jsp), the page colud not be displayed, and the following error is added in the mod_jserv.log file :
    (error) ajp12: Servlet Error : ClassnotFoundException : oracle.jsp.JSPservlet.
    What can I do ?
    All input are welcome ?

    Hello!
    I've got the same problem and I think it has something to do with the jserv.conf file.
    According to the installation guide, the following line should be added:
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    In the same file I have the following line:
    ApJServMount /servlets /root
    So /servlets is mounted on /root. I don't knoww what this /root pints to, but I think the problem is that this path does not lead to oracle.jsp.JspServlet.
    Has ANYONE yet solved this problem?

  • [Servlet Error]-[SOAPServlet]: oracle.webdb.provider.v2.utils.so

    Hi I am getting the following error when I try to access my providers on a websphere application server... they worked fine before but I reintalled the ear file on websphere and I get the following error now...
    WebApp E SRVE0026E: [Servlet Error]-[SOAPServlet]: oracle.webdb.provider.v2.utils.soap.SOAPException: Can't read deployment properties for service: _default
         at oracle.webdb.provider.v2.adapter.SOAPServlet.locateService(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2916)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1831)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)

    Hi
    If i remember correctly I also had this error, it was because I didnt have a specific jar file in my ear file.
    For your application server did you put the ptlshare.jar and pdkjava.jar files in the classpath of your oc4j instance? To quickly test this, you can also add these files to your ear file, but sharing them amongst other ear files is better ofcourse.
    hope this'll help

  • Conn.Pooling Error !!!

    My JRUN Based Conn.Pooling fails stating this reason.
    java.sql.SQLException: Io exception: Connection refused
    (DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12500)(ERROR_STACK=
    (ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12540)(EMFI=4))(ERROR=
    (CODE=12560)(EMFI=4))(ERROR=(CODE=510)(EMFI=4))(ERROR=
    (BUF='IBM/AIX RISC System/6000 Error: 11: Resource temporarily
    unavailable'))))
    We are using Oracle815 with Thin Drivers(classes12.zip) in our
    JRUN is that 815 does not support conn.pooling

    Are you using a Singleton pattern? Maybe you are inadvertantly creating many pool instances instead of using the same pool all the time?
    I finally see what you are trying to do in your free method, and I would still suggest rethinking this. Usually you close the statement and result sets where you have used them in your code ...possibly in a dafai block ...er, sorry ...a finally block.
    Maybe your problem stems from your altered free method, or maybe you are accidentally creating more than just one single instance of the pool. What is your max and initial connections set to? Do they exceeed the limitations of your database configuration for concurrent connections?
    Since this is a version of the original Marty Hall pool, would you like to try a link to his pool ver batim? You could replace your pool with one we know works?
    [url http://forum.java.sun.com/thread.jsp?forum=48&thread=417491&start=6]Try here...

  • Internal Servlet Error in XDK downloaded

    Hi,
    I downloaded xdk_java_9_2_0_2_0.zip from your otn website. I am using Tomcat 3.2.1. I did installed the servelet as per mentioned in the the documentation. I modifed the tomcat batch file to set the classpath also.
    Now as per installation i run the Tomcat server. Now when i try to execute the simplest demo code of hello world supplied along with the above zip file i got the following error on my browser.
    ERROR:
    Error: 500
    Location: /xsql/airport/test.xsql
    Internal Servlet Error:
    java.lang.NoSuchMethodError
         at oracle.xml.xsql.XSQLDocHandler.valueOfConnectionAttr(XSQLDocHandler.java:491)
         at oracle.xml.xsql.XSQLDocHandler.(XSQLDocHandler.java:84)
         at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:109)
         at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Unknown Source)
    Please let me know what should be done now. Is what i have downloaded is incomplete or some problem in the downloaded file or something else.
    Immediate help appreciated.
    Thanks in advance,
    Saurabh Mangal

    Are you using a JVM other than the one that shipped with iWS 6.0? If so, this is likely due to an iWS-JVM incompatibility that was fixed in 6.0 SP6. I recommend upgrading to 6.0 SP6.

  • Strange transaction behaviour on WLS conn pool

    I am using BEA WLS 8 anyway
    What I have done:
    1. I developed EAR and deployed it on BEA WLS.
    2. I made conn pool and corresponding Data Source.
    What I am doing:
    1. I am using select ... for update nowait statement for row locking
    The issue:
    1. user-1 as operator login to app and select 1 record (select ... for update nowait) which supposed to lock particular selected row.
    2. user-2 as supervisor login to app and select the same record (select ... for update nowait) via different menu of course.
    3. And the error is not showing. I am expecting resource busy error due to row locking
    My investigation:
    1. When user-1 locks particular row. I could see the lock session still holding the row.
    2. When user-2 do whatever it does esp on committing a transaction, the locking that belongs to user-1 get lost.
    3. When user-2 is not committing any transaction but gets logout from app, the locking that belongs to user-1 get lost too.
    My suspect:
    1. Kind of shared transaction session or something.
    How to solve this issue?
    Is there something to do with conn pool settings on BEA WLS?
    Regards
    Eric

    Hi Joe,
    I have done your instructions and this is the report.
    I used BEA's Oracle Driver (Type 4) Versions:8.1.7.9.0.1.9.2.0
    URL: jdbc:bea:oracle://ip_address:my_port;spyAttributes=(log=(file)spy.log;timestamp=yes;logTName=yes)
    Driver Classname: weblogic.jdbc.oracle.OracleDriver
    For extra information (perhaps could help) this is my connection pooling settings:
    initial capacity 1
    maximum capacity 15
    capacity increment 1
    statement cache type LRU
    statement cache size 10
    Login Delay: 0 seconds
    Seconds to trust an idle pool connection: 0 seconds
    Remove Infected Connections Enabled: true
    Allow Shrinking: true
    Shrink Frequency: 900 seconds
    Enable Connection Leak Profiling: false
    Enable Connection Profiling: false
    Test Frequency: 0 seconds
    Test Reserved Connections: false
    Test Created Connections: false
    Connection Reserve Timeout: 10 seconds
    Connection Creation Retry Frequency: 0 seconds
    Inactive Connection Timeout: 0 seconds
    Maximum Waiting for Connection: 2147483647
    Maximum Connections Made Unavailable: 0
    Test Table Name: SQL SELECT 1 FROM DUAL
    Init SQL: blank here
    And here is my Data Source settings:
    Row Prefetch Enabled: false
    Row Prefetch Size: 48
    Stream Chunk Size: 256 bytes
    Honor Global Transactions: true
    Emulate Two-Phase Commit for non-XA Driver: false
    And this is the spy.log
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.997)>> Connection[1].getMetaData()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK (DatabaseMetaData[1])
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> DatabaseMetaData[1].getDatabaseProductName()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK (Oracle)
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> DatabaseMetaData[1].getDatabaseProductVersion()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK (10.2.0.2.0)
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> Connection[1].close()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.482)>> Connection[2].getTransactionIsolation()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.482)>> OK (2)
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.497)>> Connection[2].prepareStatement(String sql)
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.497)>> sql = SELECT 1 FROM DUAL
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.528)>> OK (PreparedStatement[1])
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.528)>> PreparedStatement[1].execute()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> OK (true)
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> PreparedStatement[1].getResultSet()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> OK (ResultSet[1])
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> ResultSet[1].close()
    spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> OK
    spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.653)>> Connection[2].rollback()
    spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.653)>> OK
    spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.653)>> Connection[2].close()
    spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.669)>> OK
    Hope this adequate to find out the problems.
    Regards

  • Does Oracle8i *815) supports Conn.Pooling URGENT..SOS

    Dear Friends
    We are using Oracle8i Enterprise Edition Release 8.1.5.0.0. Here
    and there i found that Advanced JDBC features are supported
    (like conn pooling /data source usage etc ) only by 8.1.1.6
    version onwards. How far this is true.
    Is because of this my JRUN Based Conn. Pooling fails. It tries
    and tries and just go out of service stating
    ========================================================
    Err :
    An Unexpected Excetpion has been detected in native code outside
    VM. EXCEPTION_STACK_OVERFLOW occurred at Pc=0x77fod462
    function name=(n/a)
    library=(n/a)
    ========================================================
    I am sure this happens when Data Base Connection Process is
    going on.
    Please Commnet

    Thanks for that reply. But still some issues. What you have mentioned is you are writing your own conn.poll scheme using Oracle Connection Pool classes. Am i right ? Like OracleConnectionPoolDataSource etc etc.
    I have used thsi with Tomcat with same set up at backend and it was working fine with me too .;
    Now what i am doing is using JRUN's capabilities of Connection Pooling mechanisms (just look up / datasoruce creation/ conn.object retrieval ) . I have avoided all my of own codings. Still it faces porbs. this force me to thndk in this way.
    your comments are eargly awaited.
    [email protected]
    Regards
    Abhilash

  • Apex Listener : Servlet error

    Hello,
    I have installed Apex Listener.1.0.2.238.15.24 on Oracle Containers for J2EE 10g standalone (10.1.3.1.1)
    I have got this error whn trying to cofgure listener and create connection to database
    12/12/31 14:39:27.625 apex: Servlet error
    ava.lang.IllegalAccessError: class oracle.jdbc.driver.$Proxy6 cannot access its superinterface oracle.jdbc.driver.ScrollRsetStatement
         at java.lang.reflect.Proxy.defineClass0(Native Method)
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:504)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
         at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.createCallableStatementProxy(CallableStatementProxyFactory.java:64)
         at oracle.ucp.jdbc.proxy.ConnectionProxyFactory.proxyInvokeAfterTargetInvoke(ConnectionProxyFactory.java:154)
         at oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory.invoke(JDBCConnectionProxyFactory.java:266)
         at $Proxy0.prepareCall(Unknown Source)
         at oracle.dbtools.apex.OWA.getStatement(OWA.java:425)
         at oracle.dbtools.apex.OWA.resetSession(OWA.java:181)
         at oracle.dbtools.apex.ModApex.close(ModApex.java:143)
         at oracle.dbtools.apex.ModApex.doGet(ModApex.java:88)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:619)
    Any idea ???

    Hello,
    sorry for the late reply.
    I have installed Apex Listener.1.0.2.238.15.24 on Oracle Containers for J2EE 10g standalone (10.1.3.1.1) That's a pretty old version of OC4J, and a pretty old one of APEX Listener, too. Is there any reason for not choosing a more recent release?
    Despite that, your OC4J might also be using an unsupported (and outdated) Java version. APEX Listener needs at least a JDK 1.6 Update 20.
    Please check whether your OC4J is using an appropriate JDK.
    -Udo

Maybe you are looking for

  • What characters are allowed in an Apple ID Password?

    My mom has "changed" her password because she said she was asked to when logging into Facetime. Now she can't log in. When I asked her what it was, she read to me and it had both a space and a period. I don't believe those are accepted. I tried to lo

  • Prepared Statement nested calls (Oracle)

    I have a prepared statement like select type , id from ms_page_position where page_id = (select id from ms_url where url = ?) and column_id = (select id from ms_column where name = ?) and preview = ? order by position asc. If i place in pstmt.setStri

  • Correct Aspect Ratio, ON or OFF?

    Should I have correct aspect ratio on or off when I am editing my projects? Thanks for any help.

  • Messages transfer failure

    Hi, I have the latest PCSuite software version (6.82.22.0) installed on a PC with windows XP OS. It is not possible to transfer the messages (long messages, more than 160 characters) from my nokia 6021 (but the problem occurred even with a nokia 6070

  • Laptop will not charge even when plugged in, stuck at 95%

    I have a brand new HP dv6t-7000 which just came in today and after a few hours of use it already has a problem with the battery. The battery refuses to charge even when the AC adapter is plugged into the PC. The tray icon states that the computer is