Tomcat 4.1 DataSource using Oracle 8i

I have set up a JDNI name in Tomcat called jdbc/ltdb and I am set up a connection in my JSP but when I try to run it I get the error:
org.apache.jasper.JasperException: Name jdbc is not bound in this Context
I have no idea what could be wrong, I have followed the instructions as in the Tomcat documentation.
Can anyone help? The server.xml and JSP code is below.
server.xml
<Resource name="jdbc/ltdb" scope="Shareable" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/ltdb">
<parameter>
<name>validationQuery</name>
<value />
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>password</name>
<value>password</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin@blackadder:1521:mgi</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
<parameter>
<name>username</name>
<value>username</value>
</parameter>
</ResourceParams>
jsp code
<%@ page import="java.sql.*" %>
<%@ page import="javax.sql.*" %>
<%@ page import="javax.naming.*" %>
Connection conn = null;
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/ltdb");
conn = ds.getConnection();
Statement stmt = conn.createStatement ();
ResultSet rset;

Hi,
I guess you have not modifiedyour web.xml file.
Add the following to your web.xml file
<resource-ref>
<description>DatabaseConnection</description>
<res-ref-name>jdbc/ltdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Get back if u have any issues.

Similar Messages

  • Custom Login Module for Tomcat to procted apps using Oracle Access Manager

    Hi all,
    I have the following scenario.
    A web application deployed in Tomcat to be protected using OAM. One solution is to use Access Gate though we have other alternative as Proxy infront of Tomcat with a webgate. Now I am implementing the Access Gate solution.
    So, when the user clicks the tomcat application, then the prompt (BASIC) appears for login details. custom login module should kick in and take those login details and authenticate against OAM using Access SDK API.
    I have created access gate profile and installed Access SDK. Ran the ConfigureAccessGateTool as well.
    I did some research googling for login module. I came to know that we need to write a custom realm for it. So, this realm implementation involves specifying role-name etc., in web.xml where the role-name would have been defined in tomcat-users.xml.
    This means that the user trying to authenticate against OAM has to have some roles defined in Tomcat to login. I didnot understand the flow end to end as how this will work.
    Please let me know if anybody has done this of customization.
    Thanks,
    Mahendra.

    Hi Ambarish,
    Initially I thought of implementing the way you suggested in Option 2.
    But there will be various redirections when we use option 2 as the login page should redirect it to a page where OAM authentication and authorization stuff has to be handled. And accordingly we have to redirect it to specific pages upon successful atn and atz. Hence, I was opted using Custom Login Module.
    However, I have been trying Option 2 now. In web.xml, I have specified a login page with FORM scheme. The login redirects it to another page say OAM_Authentication_Handler.jsp. Here we code which serves atn and atz. Upon doing this, I have observed that the protected resource in OAM is not getting evaluated using the method
    String ms_protocol = "http";
    String ms_method = "GET";
    String ms_resource = "http://localhost:8080/FormLogin/private.jsp";
    ObResourceRequest rrq = new ObResourceRequest(ms_protocol, ms_resource, ms_method);
    The method rrq.isProtected() is returning false which implies it to unprotected. I have tested using Access Tester for the resource and it results in expected behaviour.
    Is there any limitation here by using this approach?
    Any ideas?
    Thanks,
    Mahendra.

  • How can i use oracle coherence with JPA/ejb  in web service?

    Hi
    I want to make web service using JPA which calls oracle XE via oracle coherence? i want to use JAX-ws? i searched and found you can make and deployed it using web logic but is there any other way i can make it and deployed in tomcat. i want to use oracle coherence + Oracle XE + JAX-WS? if it possible how can i other wise what are other ways i can do it?
    please any one does know it reply please it helps me lot to get.
    Thanks in advance,
    Edited by: 913837 on Feb 22, 2012 3:51 PM

    If you want data cached in Coherence to find it's way into an Oracle database for persistence, then look at the "CacheStore" section of the Coherence Developer Guide. This also works the other way round too, in that you can get data read into a Coherence cache via a database read. Again, look in the Coherence Developer Guide.
    If you want you applications "entry point" into a piece of code to be a web-service, then Tomcat+CXF will work just fine. Once you are in the service, just use the Coherence API to put the data in a cache.
    But also look at the HTTP access offered in later versions of Coherence in the form of REST. This may save you the Tomcat+CXF install, depending upon your needs. See the Coherence Client Guide.
    Still, what exactly are you trying to achieve here? It's not clear from your post why a web service using JPA for persistence needs to go via Coherence at all. More info needed.
    Cheers,
    Steve

  • Need Help in JNDI Datasource using tomcat and spring

    Hi,
    I am trying to connect my local database using JNDI datasource in tomcat and spring
    I have done the below configuration in Tomcat 7 server:
    In tomcat server.xml (Path: E:\apache-tomcat-7.0.35\conf) I added the below configuration
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/myApp" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:hr@localhost:1521:XE>"
    username="testUser" password="password"
    maxActive="10" maxIdle="5"
    maxWait="60000" removeAbandoned="true"
    removeAbandonedTimeout="60" logAbandoned="true"/>
    In web.xml, I have added the below config:
    <resource-ref>
    <description>Oracle Spring JNDI Datasource</description>
    <res-ref-name>jdbc/myApp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    And in my Spring context xml (ws-context.xml), added below config:
    <bean name="myDataSourceInJndi" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/myApp"/>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="/jdbc/myApp" resource-ref="true"/>
    In my Java code, I am trying the below code to connect DataBase:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource) envCtx.lookup("jdbc/myApp");
    ds.getConnection();
    But I am getting the below exception while executing ****ds.getConnection();***
    java.lang.IllegalStateException: Connection factory returned null from createConnection
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:584)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at com.wipro.spring.impl.EmployeeImpl.getDetails(EmployeeImpl.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
    at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Can you please me to resolve this issue? Am I missing any configuration or any mistake in my java code please suggest your suggestions.
    Thanks

    Hi,
    I am trying to connect my local database using JNDI datasource in tomcat and spring
    I have done the below configuration in Tomcat 7 server:
    In tomcat server.xml (Path: E:\apache-tomcat-7.0.35\conf) I added the below configuration
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/myApp" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:hr@localhost:1521:XE>"
    username="testUser" password="password"
    maxActive="10" maxIdle="5"
    maxWait="60000" removeAbandoned="true"
    removeAbandonedTimeout="60" logAbandoned="true"/>
    In web.xml, I have added the below config:
    <resource-ref>
    <description>Oracle Spring JNDI Datasource</description>
    <res-ref-name>jdbc/myApp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    And in my Spring context xml (ws-context.xml), added below config:
    <bean name="myDataSourceInJndi" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/myApp"/>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="/jdbc/myApp" resource-ref="true"/>
    In my Java code, I am trying the below code to connect DataBase:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource) envCtx.lookup("jdbc/myApp");
    ds.getConnection();
    But I am getting the below exception while executing ****ds.getConnection();***
    java.lang.IllegalStateException: Connection factory returned null from createConnection
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:584)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at com.wipro.spring.impl.EmployeeImpl.getDetails(EmployeeImpl.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
    at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Can you please me to resolve this issue? Am I missing any configuration or any mistake in my java code please suggest your suggestions.
    Thanks

  • 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?

  • Problem of using oracle datasource in VAJ4

    I want to use connection pool in VAJ4 Websphere Test Environment.
    So I startup the WTE, start PNS, and at a datasource of oracle.
    Database driver=oracle.jdbc.driver.OracleDriver
    Database type=JTA;
    I can lookup the datasource. I can use it in normal java emviroment,
    But where use it in ejb environment, it can be found crrectly,
    but where i use ds.getConnection(); Exception is throwed, my ejb is
    stateless sessionbean, TX_REQUIRED,TRANSACTION_REPEATABLE_READ;
    The exception is below:
    java.io.NotSerializableException: com.ibm.ejs.jts.jta.XID
         java.lang.Throwable(java.lang.String)
         java.lang.Exception(java.lang.String)
         java.io.IOException(java.lang.String)
         java.io.ObjectStreamException(java.lang.String)
         java.io.NotSerializableException(java.lang.String)
         void java.io.ObjectOutputStream.outputObject(java.lang.Object)
         void java.io.ObjectOutputStream.writeObject(java.lang.Object)
         byte [] oracle.jdbc.oracore.Util.serializeObject(java.lang.Object)
         byte [] oracle.jdbc.xa.client.OracleXAResource.getSerializedBytes(javax.transaction.xa.Xid)
         void oracle.jdbc.xa.client.OracleXAResource.start(javax.transaction.xa.Xid, int)
         void com.ibm.ejs.jts.jta.XARminst.startAssociation(org.omg.CosTransactions.Coordinator, com.ibm.ejs.jts.jta.XID)
         boolean com.ibm.ejs.jts.jta.TransactionImpl.enlistResource(javax.transaction.xa.XAResource)
         boolean com.ibm.ejs.jts.jta.JTSXA.enlist(javax.transaction.xa.XAResource, java.lang.Class, com.ibm.ejs.jts.jta.factory.XAResourceInfo)
         boolean com.ibm.ejs.jts.jta.JTSXA.enlist(javax.transaction.xa.XAResource, javax.sql.XADataSource, int, java.lang.String, java.lang.String)
         boolean com.ibm.ejs.cm.pool.JTAConnectO.enlist(org.omg.CosTransactions.Coordinator, int)
         boolean com.ibm.ejs.cm.pool.ConnectO.allocate(org.omg.CosTransactions.Coordinator, int)
         void com.ibm.ejs.cm.pool.ConnectionPool.allocateConnForTransaction(com.ibm.ejs.cm.pool.ConnectO, org.omg.CosTransactions.Coordinator, int)
         com.ibm.ejs.cm.pool.ConnectO com.ibm.ejs.cm.pool.ConnectionPool.findConnectionForTx(org.omg.CosTransactions.Coordinator, java.lang.String, java.lang.String, java.util.Properties)
         com.ibm.ejs.cm.pool.ConnectO com.ibm.ejs.cm.pool.ConnectionPool.allocateConnection(java.lang.String, java.lang.String, java.util.Properties)
         java.sql.Connection com.ibm.ejs.cm.pool.ConnectionPool.getConnection(java.lang.String, java.lang.String)
         java.sql.Connection com.ibm.ejs.cm.DataSourceImpl.getConnection(java.lang.String, java.lang.String)
         java.sql.Connection com.hep.common.JetConnectionPool.getConnection()
         java.sql.Connection com.hep.common.JetConnectionPoolManager.getConnection(java.lang.String)
         java.sql.Connection com.hep.common.JetConnectionPoolManager.getConnection()
         void com.hep.dao.DAOImpl.makeConnection()
         long com.hep.key.dao.KeyDAOImpl.nextKey(java.lang.String)
         long com.hep.key.ejb.KeyGeneratorBean.nextKey(java.lang.String)
         long com.hep.key.ejb.EJSRemoteKeyGenerator.nextKey(java.lang.String)
         org.omg.CORBA.portable.OutputStream com.hep.key.ejb._EJSRemoteKeyGenerator_Tie._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler)
         com.ibm.rmi.ServerResponse com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(com.ibm.rmi.ServerRequest)
         com.ibm.rmi.ServerResponse com.ibm.CORBA.iiop.ORB.process(com.ibm.rmi.ServerRequest)
         void com.ibm.CORBA.iiop.WorkerThread.run()
         void com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run()
    java.sql.SQLException: ORA-29532: Java �������������� Java ��������: java.lang.NullPointerException
    ORA-06512: at "SYS.JAVA_XA", line 0
    ORA-06512: at line 1
         java.lang.Throwable(java.lang.String)
         java.lang.Exception(java.lang.String)
         java.sql.SQLException(java.lang.String, java.lang.String, int)
         void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
         void oracle.jdbc.ttc7.TTIoer.processError()
         void oracle.jdbc.ttc7.Oall7.receive()
         void oracle.jdbc.ttc7.TTC7Protocol.doOall7(byte, byte, int, byte [], oracle.jdbc.dbaccess.DBType [], oracle.jdbc.dbaccess.DBData [], int, oracle.jdbc.dbaccess.DBType [], oracle.jdbc.dbaccess.DBData [], int)
         int oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(oracle.jdbc.dbaccess.DBStatement, byte, byte [], oracle.jdbc.dbaccess.DBType [], oracle.jdbc.dbaccess.DBData [], int, oracle.jdbc.dbaccess.DBType [], oracle.jdbc.dbaccess.DBData [], int)
         void oracle.jdbc.driver.OracleStatement.executeNonQuery(boolean)
         void oracle.jdbc.driver.OracleStatement.doExecuteOther(boolean)
         void oracle.jdbc.driver.OracleStatement.doExecuteWithBatch()
         void oracle.jdbc.driver.OracleStatement.doExecute()
         void oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()
         int oracle.jdbc.driver.OraclePreparedStatement.executeUpdate()
         boolean oracle.jdbc.driver.OraclePreparedStatement.execute()
         void oracle.jdbc.xa.client.OracleXAResource.start(javax.transaction.xa.Xid, int)
         void com.ibm.ejs.jts.jta.XARminst.startAssociation(org.omg.CosTransactions.Coordinator, com.ibm.ejs.jts.jta.XID)
         boolean com.ibm.ejs.jts.jta.TransactionImpl.enlistResource(javax.transaction.xa.XAResource)
         boolean com.ibm.ejs.jts.jta.JTSXA.enlist(javax.transaction.xa.XAResource, java.lang.Class, com.ibm.ejs.jts.jta.factory.XAResourceInfo)
         boolean com.ibm.ejs.jts.jta.JTSXA.enlist(javax.transaction.xa.XAResource, javax.sql.XADataSource, int, java.lang.String, java.lang.String)
         boolean com.ibm.ejs.cm.pool.JTAConnectO.enlist(org.omg.CosTransactions.Coordinator, int)
         boolean com.ibm.ejs.cm.pool.ConnectO.allocate(org.omg.CosTransactions.Coordinator, int)
         void com.ibm.ejs.cm.pool.ConnectionPool.allocateConnForTransaction(com.ibm.ejs.cm.pool.ConnectO, org.omg.CosTransactions.Coordinator, int)
         com.ibm.ejs.cm.pool.ConnectO com.ibm.ejs.cm.pool.ConnectionPool.findConnectionForTx(org.omg.CosTransactions.Coordinator, java.lang.String, java.lang.String, java.util.Properties)
         com.ibm.ejs.cm.pool.ConnectO com.ibm.ejs.cm.pool.ConnectionPool.allocateConnection(java.lang.String, java.lang.String, java.util.Properties)
         java.sql.Connection com.ibm.ejs.cm.pool.ConnectionPool.getConnection(java.lang.String, java.lang.String)
         java.sql.Connection com.ibm.ejs.cm.DataSourceImpl.getConnection(java.lang.String, java.lang.String)
         java.sql.Connection com.hep.common.JetConnectionPool.getConnection()
         java.sql.Connection com.hep.common.JetConnectionPoolManager.getConnection(java.lang.String)
         java.sql.Connection com.hep.common.JetConnectionPoolManager.getConnection()
         void com.hep.dao.DAOImpl.makeConnection()
         long com.hep.key.dao.KeyDAOImpl.nextKey(java.lang.String)
         long com.hep.key.ejb.KeyGeneratorBean.nextKey(java.lang.String)
         long com.hep.key.ejb.EJSRemoteKeyGenerator.nextKey(java.lang.String)
         org.omg.CORBA.portable.OutputStream com.hep.key.ejb._EJSRemoteKeyGenerator_Tie._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler)
         com.ibm.rmi.ServerResponse com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(com.ibm.rmi.ServerRequest)
         com.ibm.rmi.ServerResponse com.ibm.CORBA.iiop.ORB.process(com.ibm.rmi.ServerRequest)
         void com.ibm.CORBA.iiop.WorkerThread.run()
         void com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run()
    I don't know how to deal with this?

    I also facing the very same problem with Oracle 9i, as400 db2 and WAS 4.0. Have anyone a soultion to this problem? It seems to have something do to with WAS 4.0, because I have noticed that it works fine in WAS 5.0 (which I unfortunatly cannot use in the project).
    Best Regards
    Per

  • Problem using oracle XA datasource

    Hi everybody:
    I use Weblogic 10.2, I create a datasource with oracle.jdbc.xa.client.OracleXADataSource driver, I can see the content management and change its contents, but when I tried to create a content selector in Weblogic Workshop and tried to create a new query, appear this error:
    <Exception occurred during commit of transaction Name=[EJB com.bea.p13n.property.internal.PropertySetManagerImpl.getPropertySetNames(java.lang.String)],Xid=BEA1-000AA9B4129EAD16FDBB(23668750),Status=Rolled back. [Reason=javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = portalDataSource],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[dataSourcePersonas]=(ServerResourceInfo[dataSourcePersonas]=(state=rolledback,assigned=AdminServer),xar=dataSourcePersonas,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@1a34463,re-Registered = false),SCInfo[epcs+AdminServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.bea.p13n.property.internal.PropertySetManagerImpl.getPropertySetNames(java.lang.String)], ISOLATION LEVEL=2, weblogic.jdbc=t3://10.10.20.108:7001}),local properties=({weblogic.jdbc.jta.dataSourcePersonas=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+10.10.20.108:7001+epcs+t3+, XAResources={WLStore_epcs__WLS_AdminServer, weblogic.jdbc.wrapper.JTSXAResourceImpl, WLStore_epcs_pfProliferationJMSStore, dataSourcePersonas, WLStore_epcs_WseeFileStore},NonXAResources={})],CoordinatorURL=AdminServer+10.10.20.108:7001+epcs+t3+): weblogic.transaction.RollbackException: Could not prepare resource 'weblogic.jdbc.wrapper.JTSXAResourceImpl
    JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = portalDataSource
    I tried to change the driver (NON-XA) but the content management doesn't work.
    Could you help me, please?
    Thanks

    Go to your domain/config/jdbc/portalDataSource-jdbc.xml file. The contents should be like this that is working for me. Make sure that it uses NonXA Driver. Most probably you are using XA Drivers I guess. Take a backup of this file. Manually edit the driver-name and last global transaction stuff. Stop and Restart ther servers.
    <?xml version="1.0" encoding="UTF-8"?>
    <jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/jdbc-data-source">
    <name>portalDataSource</name>
    <jdbc-driver-params>
    <url>jdbc:oracle:thin:@1.2.3.4:1521:abcdef</url>
    <driver-name>oracle.jdbc.OracleDriver</driver-name> ----------------CHECK THIS
    <properties>
    <property>
    <name>user</name>
    <value>XXXXXX</value>
    </property>
    </properties>
    <password-encrypted>YYYYYY</password-encrypted>
    </jdbc-driver-params>
    <jdbc-connection-pool-params>
    <initial-capacity>5</initial-capacity>
    <max-capacity>20</max-capacity>
    <test-connections-on-reserve>true</test-connections-on-reserve>
    <test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
    </jdbc-connection-pool-params>
    <jdbc-data-source-params>
    <jndi-name>weblogic.jdbc.jts.commercePool</jndi-name>
    <jndi-name>contentDataSource</jndi-name>
    <jndi-name>contentVersioningDataSource</jndi-name>
    <jndi-name>portalFrameworkPool</jndi-name>
    <global-transactions-protocol>OnePhaseCommit</global-transactions-protocol> -----------Check This
    </jdbc-data-source-params>
    </jdbc-data-source>
    HTH
    Ravi Jegga

  • How to use Oracle jdbc driver fixedString property in datasource.xml?

    I try configured fixedString property in the datasource.xml but doesnt work, this is in oc4j
    <data-source location="jdbc/prueba" class="com.evermind.sql.DriverManagerDataSource"
    password="xxxxx"
    max-connect-attempts="3"
    xa-location="jdbc/xa/prueba"
    ejb-location="jdbc/prueba"
    wait-timeout="1800"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="xxxx" min-connections="35"
    max-connections="300"
    url="jdbc:oracle:thin:@144.1.0.54:1521:nodox"
    inactivity-timeout="300" name="jdbc/prueba">
    <property name="fixedString" value="true"/>
    </data-source>
    i Solved this problem in tomcat:
    <Resource name="jdbc/testsql" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@144.1.0.54:1521:nodox"
    username="xxxxx" password="xxxxxxxx"
    maxActive="8" maxIdle="4" connectionProperties="fixedString=true;"/>

    Es un Bug se corrige en la versión del OAS 10.1.2.3
    Bug 10222534: UNABLE TO SET FIXEDSTRING PROPERTY IN DATASOURCE

  • Using Oracle pooling in 10.2 with ingres datasource

    Hi;
    I'm trying to use Oracle Pooling in 10.2 using OracleConnectionCacheManager class with ingres database.
    I got the following exception:
    java.sql.SQLException: Invalid Oracle URL specified
    The URL i'm using is:
    jdbc:edbc://HOST:TM7/DATABASE
    When i'm using the same URL with Class.forname() it's working fine!
    I don't know what i'm missing.
    Any Help?
    Thanks in advance.

    yes we have a standalone version of 10g being converted to RAC mode..
    old version
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    converted to
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    i understand the binaries would be different, but are the libraries different too?

  • Configuring IdM 7 on Tomcat 5.5 to use a Mysql (5.0.41) datasource

    I've been trying, for some time now, to configure Idm 7 to use a mysql datasource using the interface provided by the lh setup coomand.
    I'm supply the following values:
    DataSource Name/Path: jdbc/wavesetDB
    Initial Context Factory: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
    I get the following error:
    com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'jdbc/wavesetDB':
    ==> javax.naming.NoInitialContextException: Cannot instantiate class: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
    I know the datasource is working as I've written a servlet that users the datasource to query the database.
    The OS is windows and jdk version is 1.4.2.
    Any help will be appreciated.
    Thanks

    Hi all
    i tried to configure MysqlDatasource on Sun Application server EE 8.2.The operating system is Solaris10. i am able to successfully create the connection pool and JDBC datasource (jdbc/trialdb) but when i ran the command
    lh setRepo -v -tDatastore
    -icom.sun.enterprise.naming.SerialInitContextFactory -fjdbc/trialdb
    -uiiop://localhost:3306
    it gives me the following exceptions/errors
    Defaulting administrator to 'configurator'.
    Defaulting credentials to 'configurator'.
    Checking 'RelationalDataStore:jdbc/trialdb'...
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
    ity.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:242)
            at org.omg.CORBA.ORB.create_impl(ORB.java:295)
            at org.omg.CORBA.ORB.init(ORB.java:336)
            at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
            at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
            at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    54)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/ejb.p
    roperties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:5
    4)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(
    PIORB.java:377)
            at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.ja
    va:347)
            at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:
    116)
            at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
            at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
            at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
    a:336)
            at org.omg.CORBA.ORB.init(ORB.java:337)
            at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
            at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
            at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    54)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    Warning: unable to read transaction.interoperability config property
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
    ity.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit>(S
    ecurityMechanismSelector.java:102)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLS
    ocketFactory.java:211)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
    onTable.java:73)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
    onTable.java:68)
            at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:7
    0)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(Init
    ialNamingClient.java:769)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostIn
    fo(InitialNamingClient.java:597)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(I
    nitialNamingClient.java:573)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBIn
    itRef(InitialNamingClient.java:544)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialRefe
    rences(InitialNamingClient.java:1080)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_r
    eferences(InitialNamingClient.java:981)
            at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2425)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:52)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    javax.naming.CommunicationException: Can't find SerialContextProvider
    Failed to load JDBC DataSource 'jdbc/trialdb':
    ==> javax.naming.CommunicationException: Can't find SerialContextProvider
    com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'jdbc/triald
    b':
    ==> javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:610)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:63)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            ... 17 more
    Wrapped exception:
    javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:63)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)There is no security.properties file under config directory. i checked with other installation, no such file have been created under this directory.
    Please help me where i am missing or some else step needs to be followed. i exactly followed the Sun installation manual.
    Thanks in advance.
    Edited by: Amit_Bansal on Aug 4, 2008 1:36 PM

  • When configuring a datasource for Oracle using the thin client, I get an Oracle error.

    We have had no problems using Oracle up to this point, and have been using ColdFusion and Oracle very happily for a long time. 
    Due to security requirements where the ColdFusion server is hosted, the following changes were made to the Oracle client on the Oracle RDMS machine which caused ColdFusion to be unable to connect. 
    In the sqlnet.ora file, we had to add the follwing line:
    SQLNET.ALLOWED_LOGON_VERSION = 10
    That parameter was required, it is not optional and we cannot lower it.
    Info about our ColdFusion Server:
    System Information
    Server Details
    Server Product
    ColdFusion
    Version
    ColdFusion 10,285437
    Edition
    Enterprise  
    Operating System
    Windows Server 2008 R2  
    OS Version
    6.1  
    Update Level
    /D:/ColdFusion10/cfusion/lib/updates/chf10000011.jar  
    Adobe Driver Version
    4.1 (Build 0001)  
    We are using Oracle 11.2.0.3
    Once that change is in place, connections from our ColdFusion server get refused with the following error:
    ORA-28040: No matching authentication protocol
    I have verified that I can connect to the database with our credentials, and verified that the connection is valid:
    From the local server's ODBC Data Source Administrator console, I create a system DSN using the Oracle OCI client driver (ojdbc6.jar) by indicating that the TNS Service name is the same as defined in the TNSNames file, and it tests out fine.
    Everything I have found on the net indicates that I would need to make a change to the Client, but the Client in this case is the ColdFusion server.  It doesn't seem like other than the fact that it seems to be using the correct driver, that it is making any use of any of the additional settings, including those found in the sqlnet.ora file.
    HELP!  I don't know where else to go... i don't believe that this is an Oracle error, since everything seems to be functioning correctly.  I believe this to be a ColdFusion issue.
    Any help or pointers would be greatly appreciated.

    Thank you VJ, however that didn't provide any help.  There are no pointers at all within that post.
    Please keep in mind that I don't believe this to be an Oracle issue.  The Oracle client is functioning fine when I use the ODBC tools in windows to verify the connection.
    I can google, "SQLNET.ALLOWED_LOGON_VERSION = 10" and get a billion links that say basically nothing too.
    I believe this is the way ColdFusion is configured to use the Oracle drivers... Which is why I can't ask Oracle, they'd just tell me to go to Adobe!
    But, I have searched Oracle Support, and there wasn't much there either, so I am turning to the community in hopes that someone has seen this and solved it.

  • 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.

  • How to DataSource of Oracle in JSTL?

    I know use follow statement to create DataSource:
    <sql:setDataSource [var] [scope] {dataSource | url [driver] [user] [password]}/>
    I want to know how to write [driver] parameter if I use Oracle database?
    Would you give me a example?

    A better approach would be to configure a JNDI datasource on your server and just specify a name to the setDataSource tag.
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

  • Help: Connecting Tomcat to CA-IDMS Using JDBC Type 4 Drivers (JNDI)

    Hi there,
    I have a rather interesting / complex problem......creating a connection to CA-IDMS from Tomcat using JDBC type 4 drivers (CA provide the type 4 driver).
    We have a zSeries 9 IBM mainframe running CA-IDMS r16.1, and I need to connect to the IDMS from Tomcat (running on Linux) using the JDBC Type 4 drivers provided by CA.
    At this stage I am struggling with the actual setup and configuration of Tomcat’s server.xml and web.xml files. These are the files where the JDBC configuration is set (I think). I have to setup the CA-IDMS part of the configuration, but that is a different problem. Basically there is a TCP/IP listener on the IDMS, waiting for incoming connections from the JDBC type 4 driver.
    I set up a Tomcat to MySQL connection using MySQL Connector / J, which is a similar kind of process to what I am trying to achieve with IDMS. MySQL connector / J came with a jar file which is placed in Tomcat’s lib folder, and then the JDBC setup for the web application is created in Tomcat's server.xml and web.xml files. You can then connect to the MySQL database using JSP and the configured JDBC driver / connection. The CA-IDMS Server comes with an idmsjdbc.jar file, which I think is the JDBC typr 4 driver. I think it needs to be placed in the Tomcat /lib folder, but I don’t know how to set up the configuration.
    There is a JDBC DriverManager which allows JDBC drivers to connect to CA-IDMS. The DriverManager recognises the following syntax:
    jdbc:idms://hostname:port/database
    This allows the JDBC driver running within Tomcat to connect to the IDMS which is running on the IDM mainframe. CA IDMS r16 supports direct connections from the Type 4 JDBC driver to the Central Version on IDMS. "hostname" is the DNS name or IP address of the machine where the CV is running, and "port" is the IP port that was specified for the listener PTERM (setup on the IDMS side).
    There is a caidms.properties file for the JDBC driver, which is used to specify user ID, password, and optional accounting information. It can also be used to specify physical connection information, allowing an application to connect to a CA-IDMS database without requiring the definition of an ODBC style data source. However, I don’t know where to place this file within the Tomcat setup.
    There is also an IdmsDataSource class. I don’t know where to configure this or how to set it up; the CA-IDMS Server manual states the following:
    This class implements the JDBC DataSource interface. It is used with an application server (Tomcat) providing Java Naming and Directory Interface (JNDI) naming service to establish a connection to a CA IDMS database. IdmsDataSource properties conform to the Java Beans naming conventions and are implicitly defined by public “setter” and “getter” methods. For example, the “description” property, which is required for all DataSource implementations, is set using the setDescription(String) method. The application server may use the java.lang.reflection methods to discover DataSource properties and provide an interface to set them, or may simply require that they are defined in some configuration file. IdmsDataSource properties are used to specify the connection parameters. These properties are the equivalent of the DriverPropertyInfo attributes described in the previous section and can be used to completely define the parameters needed to connect to a database. Like a URL, an IdmsDataSource object can also reference an “ODBC” style data source name, where the connection parameters are defined in the configuration file on Linux.
    Is there anyone that can try to point me in the right direction to setting up the JDBC connection? I am totally new to Java and so the instructions are not making much sense at the moment. Any help, hints, tips…..anything will be greatly appreciated as I have just hit a brick wall here. I can't find much to do with setting up the CA-IDMS Server JDBC type 4 driver online either....if anyone can point me to some resources that would also be extremely useful.
    Kind regards
    Jp

    You say you've managed to get the JDBC driver working
    in an application but not in a JSP. You also say that
    the error you get is
    "com.microsoft.jdbc.sqlserver.SQLServerDriver".
    I'd be willing to bet that the exception that you have
    got is a ClassNotFoundException. I.E. your application
    server hasn't found the JDBC driver classes. The
    application server probably doesn't use your current
    CLASSPATH to look for classes. It will be setup within
    the application server in some way and you'll need to
    check your app server documentation to see how it is
    done.
    Try replacing
    e.printStackTrace();with
    e.printStackTrace(out);to get a full stack trace of your error.
    ColTried it. Got this error when I tried to run the JSP.
    Incompatible type for method. Can't convert javax.servlet.jsp.JspWriter to java.io.PrintWriter.
              e.printStackTrace(out);
    I'm currently using Apache Tomcat 4.0.3 as my JSP/Servlet Container.
    I'm also using Type 4 MS SQL Server 2000 JDBC driver version 2.0 on my NT4.0 Server.
    Do I need to set my JDBC driver in my container? if so, how do I do that?

  • How to handle external tag-libraries in JSPs using Oracle Stellent?

    I have already started the execution of JSP engine in Oracle Stellent, and also could run the sample Tomcat web-application and basic JSPs in Oracle UCM. What I need to do, is to customize my JSP to be able to show/hide some content using Oracle Stellent.
    I have a JSP, from web application, which is using some some tag-libraries from spring, etc.
    +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>+
    +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>+
    +<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>+
    +<%@ taglib prefix="security"+
    uri="http://www.springframework.org/security/tags"%>
    +<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>+
    +<%@ page import = "idcserver.*" %>+
    +<jsp:useBean id="sb" class="idcserver.ServerBean" />+
    +<%+
    sb.init(request);
    ....and so on
    I have checked in the above file, and when trying to preview in Oracle UCM, I get the following error:
    Content Server Request Failed
    +!csStellentTomcatErrorWhileProcessing,/idca/groups/jsp/documents/pix/11.jspThe absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application+
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(Unknown Source)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseDirective(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
    at org.apache.jasper.compiler.Parser.parse(Unknown Source)
    at org.apache.jasper.compiler.ParserController.doParse(Unknown Source)
    at org.apache.jasper.compiler.ParserController.parse(Unknown Source)
    at org.apache.jasper.compiler.Compiler.generateJava(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.JspCompilationContext.compile(Unknown Source)
    at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
    at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
    at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Unknown Source)
    at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Unknown Source)
    at tomcatprovider.StellentProtocol$StellentWorkThread.runIt(StellentProtocol.java:304)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Edited by: 980473 on Jan 8, 2013 2:01 AM

    Hi ,
    Check if you have jstil.jar in WEB-INF/lib location , if missing manually add jstl.jar into WEB-INF/lib restart UCM Managed server .
    Hope this helps.
    Thanks,
    Srinath

Maybe you are looking for

  • Acrobat 9 Properties bar greyed out for highlighting

    I have posted on this issue last year, and also wrote to one of the admins -- all without any solutions, and the problem remains as bad as ever.  I imagine there are a lot of other people running into this. Acrobat 9 Properties bar greyed out (or dis

  • ITunes to iPad syncing problems

    I just received an iPad 1. iTunes won't sync my ENTIRE library onto the iPad ~ any suggestions?, I just received an iPad 1. iTunes won't sync my ENTIRE library onto the iPad ~ any suggestions?

  • Abesence Quota to be Paid and Unpaid

    Hi Experts, We have a requirement where client wants to have an Absence Quota called Medical Quota for 60 days per year, however of the 60 days 30 days will be 100 % paid and the remaining 30 days  to be 70 % paid. Can you please let me know how to a

  • DZ Document Showing Future Baseline Date

    We have a DZ document that is showing a future baseline date. The billing document was created 12/14/09 and payment document was generated 12/28/09. The payment terms in OBB8 is net due 55days. However the baseline date in the clearing document is sh

  • Hash Partitioning and Partition-Wise Joins

    Hi, For the ETL process of a Data Warehouse project I have to join 2 tables (~10M rows) over their primary key. I was thinking of hash partitioning these 2 tables over their PK. Through this the database (9.2) should be able to do a Hash-Hash Full Pa