Servlets using oracle drivers

what is the class. forName that we have to specify in the try block of a servlet program

Hello,
As Olaf mentionned you must use the J2EE data source and access it using a JNDI Lookup.
It is documented in the OC4J Developer Guide see "chapter 7:Using JDBC or Enterprise JavaBeans".
Regards
Tugdual Grall

Similar Messages

  • Packaging an Application that uses Oracle Drivers

    I need to package an application into an executable file, or at least an executable jar file. I am using JBuilder for development. Of course everything works correctly with finding drivers and connecting to the database using JBuilder. I used JBuilder's Archive Wizard to create a jar, then turn it into an executable jar. It also makes executables (ie. .exe files) for me.
    However, I have tried several combinations and it just can't find the drivers. It always throws a ClassNotFoundException. I have tried including the drivers files and as resources when making the jar. I have even tried putting them directly in when using command line:
    set classpath = c:\ojdbc14.jar
    java -classpath c:\ojdbc14.jar -jar myApp.jarand it still says it cannot find the drivers.
    Any advice would be greatly appreciated!
    Thanks!
    Amber

    Hello Amber;
    I am trying to connect to oracle through java. The java application is build with JBuilder and the oracle driver, i.e. classes12.jar and ojdbc14.jar, are added in the CLASSPATH.
    When I create a class without JBuilder as stand alone class, it works fine. But when I use the same code in the my JBuilder application, it does not load the driver, gives ClassNotFound exception.
    Please specify, is there a special way to access databse from jbuilder. Do I have to include drivers in Jbuilder, if yes, then how? or it is due to some other problem
    Your help will be greatly appreciated.
    Regards
    Ali Hammad

  • Problems with classpath and oracle drivers

    Hi, i've developed an application that uses oracle drivers "classes12.jar" using Eclipse. While i was writing the code, i manually specified the classpath which contains "classes12.jar" file using Eclipse's own configuration tool and now it works perfect when i run it under Eclipse. I then tried to run it using dos prompt but when i tried to run the program i got "ClassNotFoundException: oracle.jdbc.driver.oracledriver". As you can guess, i thought that was a classpath issue so i set the classpath as follows:
    set CLASSPATH=C:\oracle\ora92\jdbc\lib
    where the directory "C:\oracle\ora92\jdbc\lib" is the one that contains classes12.jar file which i had also specified using Eclipse before.
    After that, i recompiled my application and tried to launch it as follows:
    ->javac Test.java
    ->java Test
    But then i got the following runtime error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Since this happened after i manually set CLASSPATH variable, this has something to do with that. What should i do now? Thanks in advance.

    Correct - the JAR has to be spelled out in the CLASSPATH.
    I'd also recommend that you not set CLASSPATH using a system environment variable. Better to use the -classpath parameter on javac.exe when you compile and java.exe when you run. Put the command into a script that you invoke when you start up the app. It'll document the fact that it's needed for anyone that comes after you and relieves you from having to change the CLASSPATH on machines you deploy to. And, for good measure, app servers like Tomcat and WebLogic totally ignore the system CLASSPATH. I don't even have one.
    %

  • Oracle drivers not found by servlets after upgrade of JDK

    I am using jakarta-tomcat 4.0.1 with WIN2K.
    After a recent upgrade to jdk 1.4.0_02 from jdk1.3.1, servlets that try to use oracle crash with this error:
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at ProductLookup.loadJDBCDriver(ProductLookup.java:23)
    the code at line 23 is:
    DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
    This all worked prior to the upgrade of jdk.
    The code at line 23 does work using the command line.
    I did check the ENVIRONMENT VARIABLES - in my limitted knowledge they look OK. But I am sure there MUST be something missing &/or incorrect.
    During execution, the servlet is just not finding "something".
    I am relatively new to JAVA and especially new to servlets.
    What should I look for to solve this problem?
    TIA
    WalkGood

    The oracle drivers are in a file called classes12.zip.
    Make sure that you unzip these files to where the
    servlets can find them.
    %TOMCAT_HOME%\common\classes
    or
    %TOMCAT_HOME%\classes
    or
    %TOMCAT_HOME\webapps\{app name}\WEB-INF\classesIs %TOMCAT_HOME% an environment variable? I have one called CATALINA_HOME. It is set the jakarta folder "C:\jakarta-tomcat-4.0.1"
    Something I noticed: If I execute tomcat "startup.bat" in a command prompt window, I see echo'd messages. One says "Using CLASSPATH: C:\jakarta-tomcat-4.0.1\bin\bootstarp.jar;C:\jakarta-tomcat-4.0.1\lib\tools.jar" but this NOT match the Environment Variable "classpath" which does specify the path to the classes12.zip folder. Should the "catalina.bat" file assemble the classpath to include the same Environment Variable "classpath" in addition to bootstrap.jar and tools.jar?
    Where can I find specific documentation on how to setup the environment for jakarta-tomcat to find the ORACLE drivers during execution of a servlet?
    TIA
    WalkGood

  • Use jdbc to connect servlet to oracle 8.1.6 database on win2k

    The code is below:
    package moreservlets;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    /** Simple servlet used to test JDBC connection. */
    public class TitleQueries extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Connecting to Database";
    DriverManager.registerDriver (new
    oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@pc840:1521:orcl", "scott", "tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery
    ("select ename from emp");
    while (rset.next()) {
    String name = rset.getString("ename");
    out.println(ServletUtilities.headWithTitle(title) +
    "<body bgcolor=\"#FDF5E6\">\n" +
    "<h1 align=\"center\">" + name + "</h1>\n" +
    "</body></html>");
    CLASSPATH=.;C:\J2ee;C:\j2sdkee1.3.1\lib\cloudscape;C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip
    My code cannot find the JDBC driver. Any suggestions?
    Thanks.
    I get the following errors:
    C:\J2ee\moreservlets>javac -d "C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\
    EB-INF\classes" TitleQueries.java
    TitleQueries.java:19: package oracle.jdbc.driver does not exist
    oracle.jdbc.driver.OracleDriver());
    ^
    TitleQueries.java:31: cannot resolve symbol
    symbol : variable name
    location: class moreservlets.TitleQueries
    "<h1 align=\"center\">" + name + "</h1>\n" +
    ^
    2 errors

    I changed my classpath variable and my servlet
    compiles okay with the:
    "import oracle.jdbc.driver.*" statement.
    However, I still get the following error.
    Why can't it find the jdbc driver, since it finds the
    import statement?
    Apache Tomcat/4.0.3
    Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracl
    eDriver
    WebappClassLoader: Resource '/WEB-INF/classes/moreservlets/ServletUtilities.cl
    ass' was modified; Date is now: Tue Jul 02 09:57:26 CDT 2002 Was: Tue Jul 02 09:
    37:20 CDT 2002
    Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracl
    eDriver
    CLASSPATH=.;C:\J2ee;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc;C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;C:\Oracle\Ora81\jdbc\lib\classes12.zip;C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Program Files\Oracle\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;C:\Oracle\Ora81\orb\classes\share.zip
    //code begins here
    package moreservlets;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jdbc.driver.*;
    public class TitleQueries extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@pc840:1521:orcl", "scott", "tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery
    ("select * from emp");
    out.println(ServletUtilities.headWithTitle(title) +
    "<body bgcolor=\"#FDF5E6\">");
    while (rset.next()) {
    out.println("<h1 align=\"center\">"
    + rset.getString("ename") + "</h1>\n");
    out.println("</body></html>");
    catch(ClassNotFoundException cnfe) {
    System.err.println("Error loading driver: " + cnfe);
    catch(SQLException sqle) {
    System.err.println("Error connecting: " + sqle);
    }

  • Using Refcursor in Callable Statement without using the Oracle Drivers

    Hello all,
    Is there anyway to have a stored procedure (Oracle 8i) return a refcursor to my CallableStatement without using the Oracle Thin drivers (i'm now using jdbcodbc). I've tried registering my out parameter with every possible type i can think of...REF, JAVA_OBJECT, OTHER, etc. but with no luck.
    Help!!!!

    Certainly...I connect to the database using the
    jdbcodbc driver and when i execute any of the code, i
    get the following error:
    java.sql.SQLException: [Oracle][ODBC][Ora]ORA-06550:
    line 1, column 7:
    PLS-00306: wrong number or types of arguments in call
    to 'PVISUAL_GET'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It's bombing on the line that i attempt to register
    OracleTypes.CURSOR. It works fine when i use the
    oracle thin drivers, but i want to get this puppy
    working with the JdbcOdbcDriver. Here's the code:
    CallableStatement dbCall =
    nt dbCall =
    (CallableStatement)connection.prepareCall("{ call
    PAK_VISUAL_GET.pvisual_get(?, ?, ?, ?, ?, ?) }");
    dbCall.setString(1, sessionKey);
    dbCall.setInt(2,
    l.setInt(2, Integer.parseInt(storedVizID));
    dbCall.registerOutParameter(3,
    arameter(3, OracleTypes.CURSOR);
    dbCall.registerOutParameter(4,
    arameter(4, OracleTypes.NUMBER);
    dbCall.registerOutParameter(5,
    arameter(5, OracleTypes.VARCHAR);
    dbCall.registerOutParameter(6,
    arameter(6, OracleTypes.NUMBER);
    dbCall.execute();when you don't use oracle thin driver, you cannot use the OracleTypes. but, instead use the java.sql.Types values.Replace dbCall.registerOutParameter(3, OracleTypes.CURSOR); with
    dbCall.registerOutParameter(3,java.sql.Types.OTHER). things should be fine.
    Ganesh

  • Can i use oracle 7.3 drivers against oracle 8 database.

    When i'm executing a stored procedure with 8i driver i'm having a problem saying "Cannot Save or Rollback in distributed transaction". But when i use oracle 7.3 drivers i'm not having any problem.My question is , Can I use oracle 7.3 dirvers with oracle 8 database.
    null

    I tried disabling MTS. That doesnt look to work. Somehow 8i drivers are working in a distributed transaction mode by default. I resolved configuring 8i drivers as not to use distributed mode and works fine for me.
    For other who had this same kind of errors Solution is :
    Disable distribution transaction off if you are managing manual transactions from your scripts. Example: connectstring= DNS=...;"DistribTx=0.
    Justin,Thanks for your concerns and reply.

  • Can I use XSQL pages & XSQL Servlet for oracle 7.3 ?

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.
    null

  • Triggering login using oracle.cabo.servlet.loggedInKey ?

    Hi all,
    Does anyone know what other parameters come into play when trying to trigger login using oracle.cabo.loggedInKey?
    The following code (added to web.xml) works in an older project but not in a new one. In merging 2 projects the SAME web.xml file was used for the merge but Login is not triggered; rather the target page acutally executes.
    <init-param>
    <param-name>oracle.cabo.servlet.loginPage</param-name>
    <param-value>Login</param-value>
    </init-param>
    <init-param>
    <param-name>oracle.cabo.servlet.loggedInKey</param-name>
    <param-value>logged_in</param-value>
    </init-param>I'm pretty sure there is some other parameter which is interering with this hook but I cannot find it.
    Any help is greatly appreciated, thanks in advance!
    /SFL

    Hi all,
    Does anyone know what other parameters come into play when trying to trigger login using oracle.cabo.loggedInKey?
    The following code (added to web.xml) works in an older project but not in a new one. In merging 2 projects the SAME web.xml file was used for the merge but Login is not triggered; rather the target page acutally executes.
    <init-param>
    <param-name>oracle.cabo.servlet.loginPage</param-name>
    <param-value>Login</param-value>
    </init-param>
    <init-param>
    <param-name>oracle.cabo.servlet.loggedInKey</param-name>
    <param-value>logged_in</param-value>
    </init-param>I'm pretty sure there is some other parameter which is interering with this hook but I cannot find it.
    Any help is greatly appreciated, thanks in advance!
    /SFL

  • Oracle Drivers

    I'm kinda desperate here, and I think you guys can help. Here is some information first.
    Currently using Oracle database, 8i
    Using JSP coding
    On Apache Tomcat.
    OK. I can't connect the JSP to the Oracle database. Obviously I need something like a driver and a connection string.
    Recommended ones so far are oracle.jdbc.driver.OracleDriver (driver) and jdbc:oracle:oci8:@ for connection string.
    Seriously, I have no idea what these are about.
    1) Are there any Oracle drivers I need to further install, or have they been installed already? I always get the javax.servlet.ServletException: No suitable driver error. Is it because I don't have the above driver installed?
    2) What other drivers/connection string do you recommend that are less of a hassle to use?
    3) jdbc:oracle:oci8:@ <--- what is this ??? I've tried searching up but i can't find it. Does it vary from computer to computer?
    4) Are there any drivers that can be supported on Linux? Or are they the same? :(
    5) once i get the drivers in hand, what's the code to connect to it?
    So far I have this
    <%@ page import = "java.sql.*" %>
    <%
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" ,"abc", "def");
    Statement stmt = conn.createStatement ();
    %>
    Got no idea how to work it to fit any new recommendations you might have... :(
    Please help me I have a deadline in two weeks and everything has been coded fine, except for the database connectivity, which, of all things, is the most important!
    Kindly respond, you experts out there!

    Hi there...
    oracle.jdbc.driver.OracleDriver - this is just a java class. You should be able to find it in classes12.zip. Also you sould add that classes12.zip to the classapth of your webserver. And try to use jdbc:oracle:thin:@db_ip:db_port:db_sid.
    Hope this helps.

  • Exception while opening a JSP file created using oracle report builder

    I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder.
    I have deployed the JSP created above to the Oracle Application Server
    but when i try to open the JSP file it gives the following error:
    500 Internal Server Error
    javax.servlet.jsp.JspException: rwlib-1: REP-1202: ORACLE logon not specified. at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:206) at testing.test1._jspService(_test1.java:75) [SRC:/testing/test1.jsp:0] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) 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 (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
    can anybody help regarding this
    this is of high priority to me
    thanks and regards
    Subhajit

    bump

  • Error executing query using oracle XA datasource

    Hi,
    The following is the error I am getting while trying to access a resource from a datasource. The same code works fine if I use a normal datasource(non-xa datasource)
    Configuration: WSAD 5.1 running over jre ver 1.4 and oracle 8.1.7. I have put classes12.zip in the classpath of the server.
    Code:
    DBSelect sel = new DBSelect();
    sel.setDataSourceName("jdbc/ds1");
    sel.setInitialContextFactory("com.ibm.websphere.naming.WsnInitialContextFactory");
    sel.setProviderUrl("iiop://localhost:2809/");
    sel.setCommand("select 1 from dual");
    sel.execute();
    System.out.println(sel.getConnectionSpec());
    if (sel.onRow()) {
    do {
    System.out.println(sel.getColumnAsString(1));
    } while (sel.next());
    sel.close();
    I have also tried using the beolow mentioned code, which aso fails with a similar exception
              DataSource ds = (DataSource)PortableRemoteObject.narrow(ctx.lookup("jdbc/ds1"), DataSource.class);
              ds.setLogWriter(new PrintWriter(System.out));
              Connection con = ds.getConnection();
              Statement s = con.createStatement();
              ResultSet rs = s.executeQuery("select 1 from dual")
    I will really appreciate if someone can help me here to solve this problem
    Stack trace:
    [5/31/04 14:58:59:625 IST] 22502250 WSRdbXaResour E DSRA0304E: XAException occurred. XAException contents and details are: The cause is : null.
    [5/31/04 14:58:59:625 IST] 22502250 WSRdbXaResour E DSRA0302E: XAException occurred. Error code is: XAER_PROTO. Exception is: <null>
    [5/31/04 14:58:59:625 IST] 22502250 XATransaction E J2CA0027E: An exception occurred while invoking start on an XA Resource Adapter from dataSource jdbc/ds1, within transaction ID {XID: formatId(57415344), gtrid_length(39), bqual_length(28), data(000000000000000300000003ad952b20e108c7e0e2d5482ee84c69877b2dcf5e73657276657231ad952b20e108c7e0e2d5482ee84c69877b2dcf5e0000000336233623)}: javax.transaction.xa.XAException
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.transaction.xa.XAException.<init>(XAException.java:63)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:146)
    at com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl.start(WSRdbXaResourceImpl.java:927)
    at com.ibm.ejs.j2c.XATransactionWrapper.start(XATransactionWrapper.java:1267)
    at com.ibm.ws.Transaction.JTA.JTAResourceBase.start(JTAResourceBase.java:164)
    at com.ibm.ws.Transaction.JTA.RegisteredResources.startRes(RegisteredResources.java:389)
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1903)
    at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    [5/31/04 14:58:59:656 IST] 22502250 RegisteredRes E WTRN0078E: An attempt by the transaction manager to call start on a transactional resource has resulted in an error. The error code was XAER_PROTO. The exception stack trace follows: javax.transaction.xa.XAException
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.transaction.xa.XAException.<init>(XAException.java:63)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:146)
    at com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl.start(WSRdbXaResourceImpl.java:927)
    at com.ibm.ejs.j2c.XATransactionWrapper.start(XATransactionWrapper.java:1267)
    at com.ibm.ws.Transaction.JTA.JTAResourceBase.start(JTAResourceBase.java:164)
    at com.ibm.ws.Transaction.JTA.RegisteredResources.startRes(RegisteredResources.java:389)
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1903)
    at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    [5/31/04 14:58:59:656 IST] 22502250 XATransaction E J2CA0030E: Method enlist caught javax.transaction.SystemException: Failed to start the transaction association.
    at java.lang.Throwable.<init>(Throwable.java)
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.transaction.SystemException.<init>(SystemException.java:39)
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1917)
    at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    while trying to enlist resources from datasource jdbc/ds1 with the Transaction Manager for the current transaction, and threw a ResourceException.
    DSRA9002E: ResourceException with error code null: javax.resource.ResourceException: enlist: caught Exception
    at java.lang.Throwable.<init>(Throwable.java)
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.resource.ResourceException.<init>(ResourceException.java:73)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:703)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    Rgds,
    Dave

    I am facing the same problem..... I always get the answers to my problem by reading the forums.. This time I am really not lucky enough. I am using Oracle 8.1.7. Does it have anything to do with version. I have used both ojdb14.jar and classes12.jar to get the same error output.
    Anybody has answer to it?

  • Unable to deploy a simple servlet using WAR file on Oracle9iAS v9.0.3

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2 (9.0.3)      
    I referred following link to Deploy Applications Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed following steps to deploy WAR file:
    1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
    2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
         <web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web, I have modified file
         <ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
         <web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
    What else could be the problem? Am I placing the war file in wrong place or modifying application.xml or default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your valuable comments on this.
    Thanks in advance.
    Regards,
    Sandesh

    Hi All,
    I am facing problem while deploying a simple servlet
    using WAR file on Oracle 9i App Server.
    I have installed Oracle9iAS J2EE and Web Cache v9.0.3
    on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2
    (9.0.3)      
    I referred following link to Deploy Applications
    Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed
    following steps to deploy WAR file:
    1] I have created a war file by name
    SimpleServlet.war. In SimpleServlet.war, there is a
    servlet by name Simple which prints time at which
    servlet was accessed.
    2] I have modified
    <ora9ias_home>\j2ee\home\config\application.xml and
    added following web module entry:
    <web-module id="SimpleServlet"
    path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web,
    I have modified file
    <ora9ias_home>\j2ee\home\config\default-web-site.xml
    and added following entry:
    <web-app application="SimpleServlet"
    name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP
    Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to
    user. I have verified that SimpleServlet.war is
    extracted to SimpleServlet folder under
    <ora9ias_home>\j2ee\home\applications folder. I found
    that Simple.class is stored under WEB-INF/classes
    folder and web.xml contains correct entry for url
    pattern for servlet Simple.
    What else could be the problem? Am I placing the war
    file in wrong place or modifying application.xml or
    default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your
    valuable comments on this.
    Thanks in advance.
    Regards,
    SandeshHave you restarted you http server and then tried to load it again? Are you using the right port; maybe you have to use port 7778? Check you server settings in the http server instance. Also check your url binding of you application at Farm > Application Server: infrastructurehost > OC4J_instance > Application: appname > Web Module: modulename
    Good luck!
    rgds Thomas

  • Unable to deploy a simple servlet using WAR file

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle 9i App Server. I referred following link to Deploy Applications Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed following steps to deploy WAR file:
    1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
    2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
         <web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web, I have modified file
         <ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
         <web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
    What else could be the problem? Am I placing the war file in wrong place or modfiying application.xml or default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your valuable comments on this.
    Thanks in advance.
    Regards,
    Sandesh

    Hi Juliana,
    Thanks a lot for your suggestion.
    I am sorry if I have posted this message to a wrong forum. This is first time I am posting a message to OTN. I will resend message to J2EE forum as per you suggestion.
    Meanwhile, please note information you asked for is as below:
    I installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2 (9.0.3)      
    Please do reply at the earliest.
    Once again thanks and look forward to hear from you.
    Regards,
    Sandesh

  • ORA-00911 Error code in JDBC where no special character is used - Oracle 10

    Hi,
    I am using Oracle 10G and Tomcat 5.5. I am trying to update a the CONFIRMED column of a table called LISTSERV_WAITING_LIST_TABLE. Please see my code below.
    public void doPost(HttpServletRequest request, HttpServletResponse response){
         String resRef = getServletContext().getInitParameter("java.comp.env");
         String jdbcDbRef = getServletContext().getInitParameter("jdbc.database");
         Context dbInitContext = null;
         Context dbEnvContext = null;
         DataSource dbSource = null;
         Connection conn = null;
    PreparedStatement prepStatement = null;
    String uemail = request.getParameter("email").toUpperCase();
         String userId = request.getParameter("userId");
         String waitingListTable = getServletContext().getInitParameter("db.waiting.list.table.name");
         try{ 
              dbInitContext = new InitialContext();
              dbEnvContext = (Context)dbInitContext.lookup(resRef);
              dbSource = (DataSource)dbEnvContext.lookup(jdbcDbRef);
              conn = dbSource.getConnection();
    String sqlcmd = "update " + waitingListTable + " SET CONFIRMED = 'YES' WHERE UEMAIL = '" + uemail + "' and USERID = '" + userId + "';";
    prepStatement = conn.prepareStatement(sqlcmd);
    prepStatement.executeUpdate();
         }catch(NamingException e){
              log("Area 4A: NamingException occured");
         }catch( SQLException e){
         log("Area 4B: Exception occured", e);
    When I run the code, I receive the following error message:
    SEVERE: FinalSubscriber: Area 4B: Exception occured
    java.sql.SQLException: ORA-00911: invalid character
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:952)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
         at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
         at com.sainc.nsb.FinalSubscriber.doPost(FinalSubscriber.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
         at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
         at java.lang.Thread.run(Unknown Source)
    However, when I type the value of the string sqlcmd (used in the PreparedStatement) directly into Oracle, the update works. An example of that string is:
    update listserv_waiting_list SET CONFIRMED = 'YES' WHERE UEMAIL = '[email protected]' and USERID = '1142369642862';
    It contains no stange character and rows are inserted successfully in another class of the program that uses the same mechanism. The problem comes when I update the table.
    Any idea as to what is wrong? Your help will be appreciated.
    Thanks,
    Nguessan

    buddy, why don't you use a stored procedure and make your update, i hate that upkeeping.
    callablestatement and the power of Plsql are ur saviours.
    regards, djoudi.

Maybe you are looking for

  • Notifications created as follow up action from a notification????

    Hi all,             I am creating a Quality Notification as a folloup action of a MAintenance Notification.             The Quality Notification is craeted in the background.             Now I want which are the Quality Notifications created from a M

  • ITunes wifi sync on Windows 7 64-bit

    I know there are many many threads on wifi syncing being unreliable, especially when running iTunes on windows.  I've been trying to get wifi syncing to work to my Windows 7 (64-bit) machine ever since it came out a year ago and I've finally got it w

  • Recording from HD to DVD

    I have an HP 610-1050F Touchsmart with built in TV. How can I record to DVD, a program that I have recorded and saved to my Hard Drive?

  • Main class should notify a thread! how?

    well as a test program I write an application that uses a infinite while loope containing: message = in.readLine() now I want the program to somehow tell my thread called "as1" that it has got a new string when in.readLine recives a text message than

  • Overlapping fields in JFree report

    Hi All, I need an urgent help. Its very urgent. My application is developed in Swing. I am using JFree report for printing. I have some more than 10 columns. The column width is long. So when I print from JFree report my values are overlapping . Am u