Jndi data source problem

I am starting up using Jdeveloper with the integrated WebLogic server. I immediately ran into the problem described in this thread:
http://forums.oracle.com/forums/message.jspa?messageID=3348590#3348590
I followed the instructions for the workaround, but i can't make it work. I have a couple of questions:
1. Step one of the workaround, <name>-jdbc.xml, is the <scope>Application tag the key change here? If yes, my file already had it.
2. As far as i can see, the weblogic-application.xml file is created automatically when i deploy. How do i edit the file?
3. Adding <property name="eclipselink.target-server" value="WebLogic_10"/> to persistence.xml, as suggested in the thread, causes deployment to fail with no specific error message.
4. What's the deal with the ".../jdbc/jdbc..." vs ".../jdbc..." part of the setup? I assume it should be ".../jdbc/jdbc...", but why the mix-up in the documentation?
5. Is there a fix available if i upgrade my Jdeveloper? Am i wasting my time on a workaround for an error that's been solved?
Can someone please help me out here?

I ended up using a workaround instead.

Similar Messages

  • Referencing JNDI data source: Tomcat 6 vs WebSphere 6.1

    Hi,
    I've noticed a problem whereby there is a difference in the way I have to specify my JNDI data source depending on the application server I deploy it on.
    In Tomcat my code specifies "java:comp/env/DB_NAME" and this works fine.
    This doesn't work though in WebSphere and I have to remove the "java:comp/env" prefix to get it to work.
    Is there a common solution for this whereby my code/properties can specify the same JNDI value?
    Thanks

    jwenting wrote:
    mycoffee wrote:
    ted_hankey wrote:
    Hi,
    I've noticed a problem whereby there is a difference in the way I have to specify my JNDI data source depending on the application server I deploy it on.
    In Tomcat my code specifies "java:comp/env/DB_NAME" and this works fine.
    This doesn't work though in WebSphere and I have to remove the "java:comp/env" prefix to get it to work.
    Is there a common solution for this whereby my code/properties can specify the same JNDI value?
    ThanksShould not be different
    wrong. There's nothing in any specification stating that jndi resource names should be identical between platforms.
    On weblogic for example it would be jdbc/DB_NAME :)No
    Tomcat, websphere or weblogic are not different in that term
    The differences are about configuration of the servers. If the servers are configured the same, it should be the same. (Check all the config xml files)
    This post is more clear
    http://www.theserverside.com/discussions/thread.tss?thread_id=42158
    I wrote my code like this
    Context intC = new InitialContext();
    Context c = (Context )intC.lookup("java:comp/env");
    DataSource ds = (DataSource)c.lookup("myDataBase");
    con = ds.getConnection();and it works for Tomcat + Websphere (did not try on Weblogic yet but believe it should be OK)

  • Create a new OSB domain and data source problems

    Hello,
    I noticed a problem while create a new OSB domain with Oracle Service Bus 10gR3 on Solaris 10 (intel-based).
    This domain is composed of two managed servers deployed on a cluster.
    I have configured the JMS reporting data sources to use an Oracle 10g (XE) database (driver Oracle Thin (non XA)) installed on a remote server.
    While trying to start my managed servers, the startup process of these managed servers failed due to a data source problem on "wlsbjmsrpDataSource" or "cgDataSource-nonXA".
    The workaround I found is to delete and recreate (through the WLS console) the data sources "wlsbjmsrpDataSource", "cgDataSource-nonXA" and "cgDataSource".
    In this situation, my managed servers can be started properly.
    Is it a known problem located on the configuration wizard?
    Thanks for your help.

    Hi
    For the answer.
    I fully understand that those datasources are default ones and are mainly related to JMS reporting.
    But my question was probably not well expressed.
    The problem I had is when the domain is created, the managed servers won't start due to problems related to theses datasources.
    The workaround I found is to delete and to create those datasources from the WLS console.
    In this situation, the managed servers are able to be started.
    I want to know if this is a known problem/limitation of OSB 10gR3 with Solaris 10 and Oracle 10g?
    Thanks for your help.

  • JNDI data source

    I'm trying to use a JNDI data source in CF 10. We used to do it in CF 8 in the JRun admin, and was able to use data sources across coldFusion and java code. Any ideas on how to make it work in CF 10? I've tried several online resources, setting up a resource in Context.xml:
      <Resource name="mydatasource" auth="Container" type="javax.sql.DataSource"
                   maxActive="100" maxIdle="30" maxWait="10000"
                   username="myuser" password="mypass" driverClassName="macromedia.jdbc.MacromediaDriver"
                   url="jdbc:macromedia:sqlserver://127.0.0.1:1433;databaseName=mydb;SendStringParametersAsU nicode=false;SendStringAsUnicode=false"/>
    then a resource-ref in web.xml
    <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>mydatasource</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
                </resource-ref>
    but I'm getting errors
    java.lang.IllegalArgumentException: Cannot convert value of type [jav
    a.lang.String] to required type [javax.sql.DataSource] for property 'dataSource'
    : no matching editors or conversion strategy found

    If you want to turn your application into a provider, refer to the Developer's Guide at http://docs.sun.com/source/816-6362-10/index.html

  • How to create JNDI data source name in Tomcat 6.0.18 server?

    Hai,
    How to create JNDI data source name in Tomcat 6.0.18 server?
    Regards,
    MariMuthu.A

    [http://google.com/search?q=jndi+site:tomcat.apache.org+6.0]

  • Jndi data source references at deployment time

    hi,
    i have been thinking and trying for days now, so any hint is greatly appreciated.
    we have an enterprise java application with adf faces, bc4j and jpa all in one ear which runs on weblogic 10.3. we want several instances of the same application running on the same weblogic server, with different context-root's and database connections. what I don't know how to do is how I could create an application-wide jndi link to a jdbc data source at deployment time - because the data source jndi name is listed in bc4j application modules and persistence.xml - so one global jndi link for the application would be great.
    e.g.
    jndi names of data sources installed in the weblogic server:
    jdbc/customer1
    jdbc/customer2
    deployment1:
    context-path: /app-customer1
    local data source name: java:comp/env/jdbc/customer
    deployment 2:
    context-path: /app-customer2
    local data source name: java:comp/env/jdbc/customer
    so the goal is, at deployment time, to create a link to jdbc/customer1 for the first deployment and jdbc/customer2 for the second deployment using .. ?
    thank you very much,
    matt

    hi Anand,
    thank you for your answer. It is indeed a part of the solution I would need to apply - resource references in web.xml to have the bc4j application modules reference a jndi data source under java:comp/env. The other part to it is that we have an ejb jar in our jee application, built with hibernate and a persistence.xml file (yes we are crazy enough to use both bc4j and jpa in one ear). The jndi name of the data source specified in persistence.xml would not pick up a resource reference specified in web.xml would it - actually i should just try this out. So that's the 2nd part of the solution.
    cheers,
    Matt

  • Problem  of  javafx2   remote  call  ejb3 and jndi data source

    netbean7.2 javafx2 glassfish3.1.2.2
    My javafx2 project through jndi remote access the ejb and data source,
    I select to run as an independent in netbeans ,without problems!
    However, When I select it to run as the web start. Or in the browser inside always error!
    Want a lot of ways it is not solved, especially to help!
    Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory
    at sun.plugin2.applet.Plugin2ClassLoader $ 2.run (Unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper (Unknown Source)
    at sun.plugin2.applet.JNLP2ClassLoader.findClass (Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0 (Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass (Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass (Unknown Source)
    at java.lang.ClassLoader.loadClass (ClassLoader.java: 356)
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName (Class.java: 264)
    at com.sun.naming.internal.VersionHelper12.loadClass (VersionHelper12.java: 63)
    at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java: 671)
    ... 47 more

    The program has been signed (unlimited access). This is jvm tracking information, What can I do?
    java.io.FileNotFoundException: \D:\eejj\JavaFXApplication18\dist\modules\jsr173_1.0_api.jar
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.access$000(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$1.next(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$1.hasMoreElements(Unknown Source)
         at java.net.URLClassLoader$3$1.run(Unknown Source)
         at java.net.URLClassLoader$3$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader$3.next(Unknown Source)
         at java.net.URLClassLoader$3.hasMoreElements(Unknown Source)
         at sun.misc.CompoundEnumeration.next(Unknown Source)
         at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
         at com.sun.naming.internal.VersionHelper12$InputStreamEnumeration$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.naming.internal.VersionHelper12$InputStreamEnumeration.getNextElement(Unknown Source)
         at com.sun.naming.internal.VersionHelper12$InputStreamEnumeration.hasMore(Unknown Source)
         at com.sun.naming.internal.ResourceManager.getApplicationResources(Unknown Source)
         at com.sun.naming.internal.ResourceManager.getInitialEnvironment(Unknown Source)
         at javax.naming.InitialContext.init(Unknown Source)
         at javax.naming.InitialContext.<init>(Unknown Source)
    java.io.FileNotFoundException: \D:\eejj\JavaFXApplication18\dist\lib\grizzly-websockets.jar
    java.io.FileNotFoundException: \D:\eejj\JavaFXApplication18\dist\lib\grizzly-http-ajp.jar
    eg.....(<font color=red > a lot of *.jar find nothing </font> )
    java.lang.RuntimeException: java.lang.ExceptionInInitializerError
         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:251)
         at com.sun.glass.ui.View.handleMouseEvent(View.java:528)
         at com.sun.glass.ui.View.notifyMouse(View.java:922)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
         at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:67)
         at java.lang.Thread.run(Unknown Source)
    <font color=red >
    Caused by: java.lang.ExceptionInInitializerError
    </font>
         at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:79)
         at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:67)
         at com.sun.enterprise.module.single.StaticModulesRegistry.<init>(StaticModulesRegistry.java:66)
         at org.glassfish.internal.api.Globals.getStaticHabitat(Globals.java:84)
         at com.sun.enterprise.naming.impl.SerialInitContextFactory.<init>(SerialInitContextFactory.java:236)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.init(Unknown Source)
         at javax.naming.InitialContext.<init>(Unknown Source)
         at javafxapplication18.NewClass.v(NewClass.java:51)
         at javafxapplication18.JavaFXApplication18$1.handle(JavaFXApplication18.java:50)
         at javafxapplication18.JavaFXApplication18$1.handle(JavaFXApplication18.java:42)
         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
         at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
         at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:28)
         at javafx.event.Event.fireEvent(Event.java:171)
         at javafx.scene.Node.fireEvent(Node.java:6863)
         at javafx.scene.control.Button.fire(Button.java:179)
         at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:193)
         at com.sun.javafx.scene.control.skin.SkinBase$4.handle(SkinBase.java:336)
         at com.sun.javafx.scene.control.skin.SkinBase$4.handle(SkinBase.java:329)
         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:64)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
         at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
         at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
         at javafx.event.Event.fireEvent(Event.java:171)
         at javafx.scene.Scene$MouseHandler.process(Scene.java:3324)
         at javafx.scene.Scene$MouseHandler.process(Scene.java:3164)
         at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3119)
         at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1559)
         at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2261)
         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:228)
         ... 6 more
    <font color=red>
    Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "java.class.path" "read")
    </font>
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at com.sun.enterprise.module.single.ProxyModuleDefinition.<clinit>(ProxyModuleDefinition.java:185)
         ... 59 more
    帖子经 user7993481编辑过
    帖子经 user7993481编辑过
    帖子经 user7993481编辑过
    帖子经 user7993481编辑过

  • JNDI, Data Source and Tomcat

    Hi,
    I am using Tomcat 4.1
    I am using JDBC to connect to to SQL 2000.
    In the past I use JDBC 2.0 standsrd package to connect to it and it was fine.
    Now, for some reason, I need to use DataSource via JNDI.
    Here is my server.xml
    <Resource name="jdbc/SQLNorthwind" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/SQLNorthwind">
    <parameter>
    <name>validationQuery</name>
    <value>select * from Products</value>
    </parameter>
    <parameter>
    <name>url</name> <value>jdbc:microsoft:sqlserver://W2KSERVER1:1433;DatabaseName=Northwind</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>george</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>20</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>george</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    It was generated by the Tomcat admin tools via the web browser.
    It is my web.xml
    <servlet>
    <servlet-name>JNDIDatabase</servlet-name>
    <display-name>JNDIDatabase</display-name>
    <description>JNDIDatabase</description>
    <servlet-class>com.testing.servlet.jdbc.jndi.JNDIDatabase</servlet-class>
    </servlet>
    Now here is my servlet source code for connection testing
    private Connection conn;
    private Statement stmt;
    private ResultSet rs;
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    try {
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/SQLNorthwind");
    conn = ds.getConnection("george", "george");
    } catch(NamingException e) {
    this.log("Naming exception in JNDIDatabase init", e);
    e.printStackTrace();
    } catch(SQLException e) {
    this.log("SQL exception in JNDIDatabase init", e);
    e.printStackTrace();
    The problem is no connection is obtained in init(). So what's wrong with my setting/code? Please help me to fix my setting/code.
    Thank you in advance.

    Follow what you said, no more NamingException. Thanks, Dave.
    now I receive another error.....
    2002-10-18 00:34:12 JNDIDatabase: SQL exception in JNDIDatabase init
    java.sql.SQLException: Cannot load JDBC driver class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329)
         at hk.com.scope.servlet.jdbc.jndi.JNDIDatabase.init(JNDIDatabase.java:37)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2388)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    I am sure msutil.jar, mssqlserver.jar and msbase.jar are stored in /WEB-INF/lib directory and using them in standard JDBC is OK!
    This is an extraction from MS JDBC help file.....
    The data source class for the SQL Server driver is:
    com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    For information on SQL Server 2000 Driver for JDBC data sources, see "Connecting Through Data Sources".
    The driver class for the SQL Server driver is:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    com.microsoft.jdbc.sqlserver.SQLServerDriver is working properly, I am sure.

  • WAS 6.1 JNDI data source connection CRXI R2 Developer

    Hi all,
    I've been tasked to get a JNDI connection from a WAS 6.1 server to a Oracle DB to use in developing a report.
    The CR developer I'm using is CR Developer;Product Type: Full Product Version: 11.0.0.1282
    I have created a simple Java 'main' class to test the JNDI connection using the following jars:
    com.ibm.ws.admin.client_6.1.0.jar
    com.ibm.ws.runtime_6.1.0.jar
    com.ibm.ws.webservices.thinclient_6.1.0.jar
    ibmorb.jar
    ojdbc-14.jar
    rsadbutils.jar
    rsahelpers.jar
    I have been able to retrieve data from the Oracle DB through the 'main' class and display it on the console.
    However, after I set the CRConfig.xml file's classpath to use these jars, along with a jar I created that contains a jndi.properties file that contains the org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB property because the JVM that the CR developer is pointing at is a Sun 1.6 HotSpot JVM.
    When I try getting the connection, Database -> Database Expert -> Create New Connection -> JDBC (JNDI), select the JNDI Connection option and enter the relevant information, the developer finds the JNDI names that I'm looking for. Then I 'Click' the Finish button and receive the following error pop-up:
    Logon Failed.
    Details: SQL Exception: SQL State: null ERROR Message: Invalid argument(s) in callDSRA0010E: SQL State= null, Error Code = 17,068 Database Vendor Code: 17068
    I have noticed that I can replicate this error message, through the 'main' class I used to test the connection, if I remove the username/password arguments from the method I use to get the DB connection.
    Is there anything that I'm missing to successfully use this WAS data source?
    I have tested a WebLogic 10.3 connection and the CR Developer had no problem finding/using the connection?
    Any help that can be provided would be greatly appreciated.
    Below is the JDBC tag from the CRConfig.xml file that I'm using:
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL></JDBCURL>
         <JDBCClassName></JDBCClassName>
         <JDBCUserName></JDBCUserName>
         <JNDIURL>iiop://server:bootstrap_address-port</JNDIURL>
         <JNDIConnectionFactory>com.ibm.websphere.naming.WsnInitialContextFactory</JNDIConnectionFactory>
         <JNDIInitContext>cell/clusters/clusterName/jdbc</JNDIInitContext>
         <JNDIUserName>schema-username</JNDIUserName>
         <GenericJDBCDriver>
              <Option>No</Option>
              <DatabaseStructure>catalogs,tables</DatabaseStructure>
              <StoredProcType>Standard</StoredProcType>
              <LogonStyle>Oracle</LogonStyle>
         </GenericJDBCDriver>
    </JDBC>
    Thanks in Advance
    Edited by: java_geek on Jul 28, 2010 3:31 AM

    Hi all,
    I've been tasked to get a JNDI connection from a WAS 6.1 server to a Oracle DB to use in developing a report.
    The CR developer I'm using is CR Developer;Product Type: Full Product Version: 11.0.0.1282
    I have created a simple Java 'main' class to test the JNDI connection using the following jars:
    com.ibm.ws.admin.client_6.1.0.jar
    com.ibm.ws.runtime_6.1.0.jar
    com.ibm.ws.webservices.thinclient_6.1.0.jar
    ibmorb.jar
    ojdbc-14.jar
    rsadbutils.jar
    rsahelpers.jar
    I have been able to retrieve data from the Oracle DB through the 'main' class and display it on the console.
    However, after I set the CRConfig.xml file's classpath to use these jars, along with a jar I created that contains a jndi.properties file that contains the org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB property because the JVM that the CR developer is pointing at is a Sun 1.6 HotSpot JVM.
    When I try getting the connection, Database -> Database Expert -> Create New Connection -> JDBC (JNDI), select the JNDI Connection option and enter the relevant information, the developer finds the JNDI names that I'm looking for. Then I 'Click' the Finish button and receive the following error pop-up:
    Logon Failed.
    Details: SQL Exception: SQL State: null ERROR Message: Invalid argument(s) in callDSRA0010E: SQL State= null, Error Code = 17,068 Database Vendor Code: 17068
    I have noticed that I can replicate this error message, through the 'main' class I used to test the connection, if I remove the username/password arguments from the method I use to get the DB connection.
    Is there anything that I'm missing to successfully use this WAS data source?
    I have tested a WebLogic 10.3 connection and the CR Developer had no problem finding/using the connection?
    Any help that can be provided would be greatly appreciated.
    Below is the JDBC tag from the CRConfig.xml file that I'm using:
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL></JDBCURL>
         <JDBCClassName></JDBCClassName>
         <JDBCUserName></JDBCUserName>
         <JNDIURL>iiop://server:bootstrap_address-port</JNDIURL>
         <JNDIConnectionFactory>com.ibm.websphere.naming.WsnInitialContextFactory</JNDIConnectionFactory>
         <JNDIInitContext>cell/clusters/clusterName/jdbc</JNDIInitContext>
         <JNDIUserName>schema-username</JNDIUserName>
         <GenericJDBCDriver>
              <Option>No</Option>
              <DatabaseStructure>catalogs,tables</DatabaseStructure>
              <StoredProcType>Standard</StoredProcType>
              <LogonStyle>Oracle</LogonStyle>
         </GenericJDBCDriver>
    </JDBC>
    Thanks in Advance
    Edited by: java_geek on Jul 28, 2010 3:31 AM

  • Weblogic & JNDI Data Source with proxy user.

    We're trying to use Oracle proxy user authentication on a data source configured in WebLogic 10.3.6, however, we want to approach it in a programatic way. So we want to obtain the DataSource, and set the proxy related properties inside the application.
    We came up with the following snippet:
    Hashtable<String, Object> env = new Hashtable<String, Object>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://10.1.1.10:7003");
    env.put(Context.SECURITY_PRINCIPAL, "weblogic");
    env.put(Context.SECURITY_CREDENTIALS, "weblogic");
    Context context = new InitialContext(env);
    javax.sql.DataSource ds = (javax.sql.DataSource) context.lookup("ds_puser");
    OracleConnection oconn = (OracleConnection) ds.getConnection();
    The problem comes up when we try to cast the connection to OracleConnection, the thing is that the returned type is actually a 1036_WLStub.
    How can we avoid that type or cast to it to something useful? I found this reference on Oracle forums and he's being able to cast it directly:
    Re: My problem in using weblogic Datasource and proxy user
    Can someone help us out?
    Thanks a lot in advance!
    Edited by: 990800 on 27-feb-2013 13:26

    A DataSource is an Interface. What the code gets from the jndi tree is some concrete object that
    the code doesn't need to know the name of, or anything specific about it, as long as it implements
    the DataSource Interface, which it successfully casts to, to allow calling the methods defined in the
    DataSource Interface. If you call for a plumber, you don't need to know his name as long as you
    can get a plumber, and can call the "Fix this leak" method, defined in the Plumber Interface.

  • XML Data Source Problem

    Hi there,
    I am creating a data source for XML....
    all needed services are there (/SICF)
    Web service was created..and it is active
    I create DataSource..and I check it.... everything is Ok until here..
    By activating the DataSource I got an error
    <b>Error generating web service..</b>
    what could be the problem ? or how could I know more about the problem...I do not get more than that message...
    I will thank any help or advice
    FedeX

    Hi there,
    I am creating a data source for XML....
    all needed services are there (/SICF)
    Web service was created..and it is active
    I create DataSource..and I check it.... everything is Ok until here..
    By activating the DataSource I got an error
    <b>Error generating web service..</b>
    what could be the problem ? or how could I know more about the problem...I do not get more than that message...
    I will thank any help or advice
    FedeX

  • data-source problem error 503

    i m using oracle10g database . through jdev-embedded 0c4j , i want to run my strut application . i m having problems with data-source entry.
    i give either of following 2 entries in struts-config.xml and get this error
    503 Service Unavailable
    Servlet error: Initializing application data source org.apache.struts.action.DATA_SOURCE
    my data-source entries are
    1
    data-source type="org.apache.commons.dbcp.BasicDataSource"
    name="jdev-connection-DBConnection1"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott" password="tiger"
    url="jdbc:oracle:thin:@localhost:1521:ORCL"
    inactivity-timeout="30"/>
    ps :- i have added dbcp in my default project properties
    or i use
    <data-source name="jdev-connection-DBConnection1"
    class="com.evermind.sql.DriverManagerDataSource"
    location="jdbc/DBConnection1CoreDS"
    xa-location="jdbc/xa/DBConnection1XADS"
    ejb-location="jdbc/DBConnection1DS"
    pooled-location="jdbc/DBConnection1PooledDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott" password="tiger"
    url="jdbc:oracle:thin:@localhost:1521:ORCL"
    inactivity-timeout="30"/>

    To get quicker help (or to get help at all), please use a more suitable forum. I think, your problem is not a general database problem, but very specific. Try
    http://forums.oracle.com/forums/index.jsp?cat=13
    (topic OC4J/J2EE)

  • MapViewer data source problem in the morning

    Hi all,
    I have the Oracle Application server 10g and Oracle database 10g installed on 2 different computers. On the application server I have installed MapViewer the last version.
    I have defined a datasource in the configuration file and that works perfect.
    My application uses mapviewer through java and displays the generated image in an jsp. The same working as the demos though.
    Each night there is a backup of the database made on the other computer.
    The MapViewer/data source remains open through the night. When I come to the office in the morning, and i try to access my webpage with the mapviewer image, I get an
    500 Internal Server Error, java.lang.NullPointerException...
    I check in the admin page of the map viewer the following:
    <list_data_sources /> - The datasource is still defined
    <data_source_exists data_source="blabla"/> - The datasource exists
    If i try to <list_predefined_themes data_source="blabla" /> I get again an error. It seems that the connection with the database is not working.
    If I <redefine_data_source ..> or <restart/> mapviewer everything starts to work again without problems.
    I have attached further some erros I have in the log file, maybe it will help you to help me ;-)
    Regards,
    Adrian
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.sdovis.theme.pgtp] *** Exception while querying theme: LEVEL_1
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.sdovis.theme.pgtp] java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.sdovis.DBMapMaker] Message:Exception while querying theme: LEVEL_1
    Description: Nested exception is:
    java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
    java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
    Thu Feb 02 08:10:28 CET 2006 WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.lbs.mapserver.core.RealWorker] Message:[SDOVIS] No spatial data to render!
    Description:
         at oracle.sdovis.DBMapMaker.renderEm(DBMapMaker.java:1304)
         at oracle.sdovis.MapMaker.renderMap(MapMaker.java:1399)
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.lbs.mapserver.core.RealWorker] Message:null
    Thu Feb 02 08:10:28 CET 2006
    Severity: 0
    Description:
    Message:[SDOVIS] No spatial data to render!
    Description:
         at oracle.sdovis.DBMapMaker.renderEm(DBMapMaker.java:1304)
         at oracle.sdovis.MapMaker.renderMap(MapMaker.java:1399)
    Thu Feb 02 08:12:45 CET 2006 ERROR [oracle.lbs.mapserver.core.MapperConfig] java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)

    Hi,
    please post how you did define the data source in the configuration file.
    Thanks.

  • JSF & Data source Problem

    Hi all
    I wrote my first jsf-adf project as discussed in cue cards in developer 10.1.3 using sql server 2005 , I configed my oc4j and app module as discussed in "Developing Oracle ADF Business Components for a SQL Server Database " paper in the same release of jdeveloper but I have 2 problems
    1. when I Config my environment without adding data-source into data-source.xml
    I get jbo-30003,jbo-29000 and jbo-26066 errors in the ie
    2. If i define my customized data-source in data-source.xml I get this error:"Unable to create com.evermind.sql.DriverManagerDataSource "
    my data-source code is
    "<data-source
      class="com.evermind.sql.DriverManagerDataSource"
      name="SQLServerDS"
      location="jdbc/SQLServerCoreDS"
      xa-location="jdbc/xa/SQLServerXADS"
      ejb-location="jdbc/SQLServerDS"
      connection-driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
      username="sa"
      url="jdbc:microsoft:sqlserver://127.0.0.1:143;SelectMethod=cursor;User=sa;"
      inactivity-timeout="30""
    what should I do?
    by thanks
    Javaneh

    Hi
    I tried both of data sources which you explianed but the problem already exists:
    when I set the data source which you called global I received this error in the log window :
    May 29, 2006 9:42:30 AM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    May 29, 2006 9:42:30 AM com.evermind.server.XMLDataSourcesConfig createConfigFromLegacy
    WARNING: Exception processing legacy data source. Exception: Unable to instantiate com.microsoft.sqlserver.jdbc.SQLServerDataSource. Exception is:
         Missing class: com.microsoft.sqlserver.jdbc.SQLServerDataSource
         Dependent class: com.evermind.server.XMLDataSourcesConfig
         Loader: oc4j:10.1.3
         Code-Source: /E:/Programs/JDeveloper/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in boot.xml in E:\Programs\JDeveloper\j2ee\home\oc4j.jar
    This load was initiated at oc4j:10.1.3 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the server.
    06/05/29 09:42:30 Error initializing server: Error instantiating default application at Unable to get ApplicationConfig for default : Error parsing data-sources config at file:/E:/Programs/JDeveloper/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/data-sources.xml: DataSourceConfigException: Unable to instantiate com.microsoft.sqlserver.jdbc.SQLServerDataSource. Exception is:
         Missing class: com.microsoft.sqlserver.jdbc.SQLServerDataSource
         Dependent class: com.evermind.server.XMLDataSourcesConfig
         Loader: oc4j:10.1.3
         Code-Source: /E:/Programs/JDeveloper/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in boot.xml in E:\Programs\JDeveloper\j2ee\home\oc4j.jar
    This load was initiated at oc4j:10.1.3 using the Class.forName() method.
    06/05/29 09:42:30 Fatal error: server exiting
    The missing class is not available from any code-source or loader in the server.
    Process exited with exit code 1."
    and when I set the data source which you called local
    I see Jbo-30003;Jbo-29000 & Jbo-26066 errors in IE
    I can't understand what is wrong
    By thanks
    Javaneh

  • UCCX 8.5 Data Source Problem

    Hello,
    I am trying to read and write information in db_cra database through CCX Editor but I can not see the data source. I was trying to add a datasource to see the db_cra database but the test connection always is failure, I do not see any message about de error so, I do not what can be the problem. I show you a picture of how I am configuring de datasource.
    Someone can help me to solve this problem please.
    Ok, I understand that I can read or write un db_cra, but I have to see de db_cra like a datasource rigth ?

    You cannot add db_cra as a datasource; at least not without becoming unsupported. Informx isn't even a supported database in the compatibility matrix. The only route I can even imagine this working in would be a custom Java class or using an off-box web service that serves as a middleware. Building either of those are well beyond the scope of my knowledge though.
    Please remember to rate helpful responses and identify helpful or correct answers.

Maybe you are looking for

  • Mac Pro 15in A few weeks old! black screen when trying to boot windows 7Ult

    I have installed Windows 7 ultimate on my mac book pro 15 in, which is brand new! I have OSX 6.2 and Bootcamp 3.0.1.. I installed everything, and updated drivers. Then I closed out of Windows and everything seemed to be working fine. Until I try to b

  • OSB-due to service configuration in flux

    Hi, I am seeing this error continuously in the server log. I am trying to read a file from a directory location using file protocol, and after reading the file I am archiving it. Here the file is getting read and archiving continuously in the archive

  • Retrieve the data from Oracle (Superior difficult)

    Dear all, I want to retrieve the data from the table (TABLE A), in TABLE A there are a field call RANGEFROM, However, the data type of it is "VARCHAR2". But in this field, it can contain numeric and date. Now, I want to select this field in it by a S

  • Reminders app crashes constantly. How do I fix this?

    Iphone 5. Just can not use the Reminders app. Once opened, sometimes it just crashes, sometimes it crashes when opening an existing task or trying to open the menu (3 lines on upper left corner). In short, it crashes everytime. Anyone else with the s

  • Failed to obtain image version information from Aperture library

    Mac OS X 10.10.1 (yes, Yosemite...) Aperture 3.6 Lightroom 5.7,1 (CC version) When trying to import some libraries from aperture I get this immediate response "Failed to obtain image version information from Aperture library". In the plug-in import w