Adding data source-JDBC

Hi Guys,
I have another problem on adding data source on EID. When I try adding a data source on EID as a JDBC source I get error that says "Could not establish a connection"..Do you tell me step by step what I have to do when I add a data source on Endeca? My data has based on SQL 2008.

The Studio Administration and Customization Guide includes the information on creating and managing data sources.
Adding and editing data sources in the Data Source Library
I don't know anything about the specific format of a connection URL for SQL 2008. That should be fairly standard, though.

Similar Messages

  • OATS:Error When Adding Data Sources to the Oracle Load Technology suite

    Hi,
    I am trying to add the data source to the OLT to work on the demo files generated during installation.
    When i tried to add the
    In the Add monitor : step 1 window i selected the Perfmon (Windows Performance Monitor) and click Next.
    In Add monitor : step2 window the default settings for Monitored System and Data Collector is not changed and clicked on the Next button. When I click the next button i am getting an error as
    Error while calling discovery.
    Data collector setup failed on oats-am://localhost:9001: code=Windows reason=4
    (message id=ds.dcStartupFailed)
    This may be because the data collector didn't respond in time.Try again.
    I am new to the OATS so i dono y i am getting this error. Plz tell what settings to b done to resolve this.
    Error in Log File is shown below
    16:05:41,297 WARN [DCController] oracle.oats.datasources.DCController.onAgentStartupFailed(DCController.java:93) DataCollector failed to start: id=3f7e5492-4eb7-452c-9322-e009813f2d23 code=4 reason=Request error : agent image not found on disk: service.exe
    16:05:41,297 WARN [EmpStartClient] oracle.oats.core.EmpStartClient.onAgentStartupFailed(EmpStartClient.java:222) Received startup failure process id=3f7e5492-4eb7-452c-9322-e009813f2d23 failCode=4: Request error : agent image not found on disk: service.exe
    16:05:41,297 ERROR [SelfServiceListener] oracle.oats.request.datasources.RequestDiscovery.invoke(RequestDiscovery.java:55) Failed in starting discovery
    16:05:41,297 ERROR [SelfServiceListener] oracle.oats.request.datasources.RequestDiscovery.invoke(RequestDiscovery.java:56) oracle.oats.datasources.exception.DataSourceException: Data collector startup failed on oats-am://localhost:9001: code=Windows reason=4\n\n(message id=ds.dcStartupFailed)
    16:05:41,297 ERROR [MonitorAction] oracle.oats.olt.OracleActionBase.error(OracleActionBase.java:318) Error while calling discovery.\n\n
    oracle.oats.core.ApplicationMDBException: Server returned error in response to request 87: Discovery for request null failed: code=dis2\n\n(message id=console.discoveryError)\n\n(message id=responseServerError)
         at oracle.oats.app.session.SessionSyncedClient.getResponse(SessionSyncedClient.java:480)
         at oracle.oats.app.console.ConsoleSyncedClient.genericDiscovery(ConsoleSyncedClient.java:623)
         at oracle.oats.app.console.ConsoleSyncedClient.genericDiscovery(ConsoleSyncedClient.java:597)
         at oracle.oats.app.console.ConsoleSyncedClient.perfmonDiscoverAll(ConsoleSyncedClient.java:872)
         at oracle.oats.olt.datasource.action.PerfmonAction.getPerfmonObjects(PerfmonAction.java:153)
         at oracle.oats.olt.datasource.action.PerfmonAction.discover(PerfmonAction.java:41)
         at oracle.oats.olt.datasource.action.AgentAction.discoverSpecific(AgentAction.java:98)
         at oracle.oats.olt.datasource.action.MonitorAction.step3(MonitorAction.java:182)
         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 oracle.oats.olt.OracleActionBase.execute(OracleActionBase.java:160)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at oracle.oats.olt.ActionServlet.process(ActionServlet.java:180)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.oats.olt.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:171)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.oats.client.console.ConsoleException: Discovery for request null failed: code=dis2\n\n(message id=console.discoveryError)
         at oracle.oats.console.ConsoleEngine.startOneConsoleDiscoverRequest(ConsoleEngine.java:1588)
         at oracle.oats.request.console.RequestConsoleDiscovery.invoke(RequestConsoleDiscovery.java:51)
         at oracle.oats.ejb.SelfServiceListener.onMessage(SelfServiceListener.java:122)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
         at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
         at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         ... 2 more
    Caused by: oracle.oats.datasources.exception.DataSourceException: Server threw an exception in response to request 88\n\n(message id=responseServerException)
         at oracle.oats.app.datasources.DataSourceSyncedClient.getResponse(DataSourceSyncedClient.java:91)
         at oracle.oats.app.datasources.DataSourceSyncedClient.startOneDiscoverRequest(DataSourceSyncedClient.java:167)
         at oracle.oats.console.ConsoleEngine.startOneConsoleDiscoverRequest(ConsoleEngine.java:1584)
         ... 10 more
    Caused by: oracle.oats.datasources.exception.DataSourceException: Data collector startup failed on oats-am://localhost:9001: code=Windows reason=4\n\n(message id=ds.dcStartupFailed)
         at oracle.oats.datasources.FrameworkManager.startDataCollector(FrameworkManager.java:929)
         at oracle.oats.datasources.FrameworkManager.findFrameworkID(FrameworkManager.java:275)
         at oracle.oats.datasources.FrameworkManager.startOneDiscoverRequest(FrameworkManager.java:1021)
         at oracle.oats.request.datasources.RequestDiscovery.invoke(RequestDiscovery.java:49)
         at oracle.oats.ejb.SelfServiceListener.onMessage(SelfServiceListener.java:122)
         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.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy135.onMessage(Unknown Source)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    Thanx in advance
    Edited by: user10300810 on Oct 25, 2009 2:20 AM
    Edited by: user10300810 on Oct 27, 2009 3:40 AM

    Hi
    It looks like there is no agent running on your machine.
    Can you check that the following service is running: Oracle Application Testing Suite Agent Service
    Regards
    Alex

  • How adding a data source-data destination inside SSIS 2012-SSDT

    Hi,
    I need to see inside a SSIS 2012 project a new SSIS installed component but in the SSDT 2010 I cannot see the SSIS Data Flow Items tab for adding data source/data destination respect to the choose toolbox items pane:
    It seems a SSIS bug.
    Any helps to me, please?
    Thanks

    Hi,
    In SQL 2012 you are no longer required to manually pick the tasks and components you want to use. You have to select from the new custom SSIS Toolbox to use the additional components you need.
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

  • JNDI failure. Unable to lookup Data Source at context jdbc/AppsDatasource

    I'm not able to run my Application locally due to issue "JNDI failure. Unable to lookup Data Source at context jdbc/APPSnonXA", I did the following under debugging.
    1. Finding SPACE in DataSource, I verified
    1a. The data source for spaces and could not find any spaces. Also the "Test Connection" was successful.
    1b. The PATH, CLASSPATH variables for SPACES. Removed other Tool paths. But no Use.
    1c. Jdeveloper Installation Location Path. none of the folder names have spaces.
    1d. Application Location path. Doesn't have spaces.
    I'm attaching the log file that has the PATH,Classpath variable info.
    Please help me out.
    I did all the above by taking help of oracle forums.(https://forums.oracle.com/forums/search.jspa?threadID=&q=Re%3Aoracle.jbo.DMLException%3A+JBO-27200%3A+JNDI+failure.+Unable+to+lookup+Data+Source+at+context+&objID=f83&dateRange=all&userID=&numResults=30&rankBy=10001)

    After doing the following two things, The issue is resolved.
    #1:
    Configure Default Server for Datasource (Web logic console --> Data Sources --> jdbc/AppsDataSource --> Targets --> select, if not default server not selected --> Save --> restart the server.)
    Note:
    If we don't deploy while JNDI creation then below is correct. "You can select one or more targets to deploy your new JDBC data source. If you don't select a target, the data source will be created but not deployed. You will need to deploy the data source at a later time."
    #2: If The Jdeveloper is newly installed, Create a dummy UI application. & run a test.jspx page.

  • 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

  • OSB: Cannot acquire data source error while using JCA DBAdapter in OSB

    Hi All,
    I've entered 'Cannot acquire data source' error while using JCA DBAdapter in OSB.
    Error infor are as follows:
    The invocation resulted in an error: Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/DBAdapter1/RetrievePersonService [ RetrievePersonService_ptt::RetrievePersonServiceSelect(RetrievePersonServiceSelect_inputParameters,PersonTCollection) ] - WSIF JCA Execute of operation 'RetrievePersonServiceSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [jdbc/soademoDatabase].
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.soademoDatabase'. Resolved 'jdbc'; remaining name 'soademoDatabase'.
    ; nested exception is:
    BINDING.JCA-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    JNDI Name for the Database pool: eis/DB/soademoDatabase
    JNDI Name for the Data source: jdbc/soademoDatabase
    I created a basic DBAdapter in JDeveloper, got the xsd file, wsdl file, .jca file and the topLink mapping file imported them into OSB project.
    Then I used the .jca file to generate a business service, and tested, then the error occurs as described above.
    Login info in RetrievePersonService-or-mappings.xml
    <login xsi:type="database-login">
    <platform-class>org.eclipse.persistence.platform.database.oracle.Oracle9Platform</platform-class>
    <user-name></user-name>
    <connection-url></connection-url>
    </login>
    jca file content are as follows:
    <adapter-config name="RetrievePersonService" adapter="Database Adapter" wsdlLocation="RetrievePersonService.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/soademoDatabase" UIConnectionName="Connection1" adapterRef=""/>
    <endpoint-interaction portType="RetrievePersonService_ptt" operation="RetrievePersonServiceSelect">
    <interaction-spec className="oracle.tip.adapter.db.DBReadInteractionSpec">
    <property name="DescriptorName" value="RetrievePersonService.PersonT"/>
    <property name="QueryName" value="RetrievePersonServiceSelect"/>
    <property name="MappingsMetaDataURL" value="RetrievePersonService-or-mappings.xml"/>
    <property name="ReturnSingleResultSet" value="false"/>
    <property name="GetActiveUnitOfWork" value="false"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    RetrievePersonService_db.wsdl are as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <WL5G3N0:definitions name="RetrievePersonService-concrete" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/">
    <WL5G3N0:import location="RetrievePersonService.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService"/>
    <WL5G3N0:binding name="RetrievePersonService_ptt-binding" type="WL5G3N1:RetrievePersonService_ptt">
    <WL5G3N2:binding style="document" transport="http://www.bea.com/transport/2007/05/jca"/>
    <WL5G3N0:operation name="RetrievePersonServiceSelect">
    <WL5G3N2:operation soapAction="RetrievePersonServiceSelect"/>
    <WL5G3N0:input>
    <WL5G3N2:body use="literal"/>
    </WL5G3N0:input>
    <WL5G3N0:output>
    <WL5G3N2:body use="literal"/>
    </WL5G3N0:output>
    </WL5G3N0:operation>
    </WL5G3N0:binding>
    <WL5G3N0:service name="RetrievePersonService_ptt-bindingQSService">
    <WL5G3N0:port binding="WL5G3N1:RetrievePersonService_ptt-binding" name="RetrievePersonService_ptt-bindingQSPort">
    <WL5G3N2:address location="jca://eis/DB/soademoDatabase"/>
    </WL5G3N0:port>
    </WL5G3N0:service>
    </WL5G3N0:definitions>
    Any suggestion is appricated .
    Thanks in advance!
    Edited by: user11262117 on Jan 26, 2011 5:28 PM

    Hi Anuj,
    Thanks for your reply!
    I found that the data source is registered on server soa_server1 as follows:
    Binding Name: jdbc.soademoDatabase
    Class: weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub
    Hash Code: 80328036
    toString Results: ClusterableRemoteRef(8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1 [8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1/291])/291
    Binding Name: jdbc.SOADataSource
    Class: weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub
    Hash Code: 92966755
    toString Results: ClusterableRemoteRef(8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1 [8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1/285])/285
    I don't know how to determine which server the DBAdapter is targetted to.
    But I found the following information:
    Under Deoloyment->DBAdapter->Monitoring->Outbound Connection Pools
    Outbound Connection Pool Server State Current Connections Created Connections
    eis/DB/SOADemo AdminServer Running 1 1
    eis/DB/SOADemo soa_server1 Running 1 1
    eis/DB/soademoDatabase AdminServer Running 1 1
    eis/DB/soademoDatabase soa_server1 Running 1 1
    The DbAdapter is related to the following files:
    C:\ Oracle\ Middleware\ home_11gR1\ Oracle_SOA1\ soa\ connectors\ DbAdapter. rar
    C:\ Oracle\ Middleware\ home_11gR1\ Oracle_SOA1\ soa\ DBPlan\ Plan. xml
    I unzipped DbAdapter.rar, opened weblogic-ra.xml and found that there's only one data source is registered:
    <?xml version="1.0"?>
    <weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90">
    <enable-global-access-to-classes>true</enable-global-access-to-classes>
    <outbound-resource-adapter>
    <default-connection-properties>
    <pool-params>
    <initial-capacity>1</initial-capacity>
    <max-capacity>1000</max-capacity>
    </pool-params>
    <properties>
    <property>
    <name>usesNativeSequencing</name>
    <value>true</value>
    </property>
    <property>
    <name>sequencePreallocationSize</name>
    <value>50</value>
    </property>
    <property>
    <name>defaultNChar</name>
    <value>false</value>
    </property>
    <property>
    <name>usesBatchWriting</name>
    <value>true</value>
    </property>
    <property>
    <name>usesSkipLocking</name>
    <value>true</value>
    </property>
    </properties>
              </default-connection-properties>
    <connection-definition-group>
    <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
    <connection-instance>
    <jndi-name>eis/DB/SOADemo</jndi-name>
              <connection-properties>
                   <properties>
                   <property>
                   <name>xADataSourceName</name>
                   <value>jdbc/SOADataSource</value>
                   </property>
                   <property>
                   <name>dataSourceName</name>
                   <value></value>
                   </property>
                   <property>
                   <name>platformClassName</name>
                   <value>org.eclipse.persistence.platform.database.Oracle10Platform</value>
                   </property>
                   </properties>
              </connection-properties>
    </connection-instance>
    </connection-definition-group>
    </outbound-resource-adapter>
    </weblogic-connector>
    Then I decided to use eis/DB/SOADemo for testing.
    For JDeveloper project, after I deployed to weblogic server, it works fine.
    But for OSB project referencing wsdl, jca and mapping file from JDeveloper project, still got the same error as follows:
    BEA-380001: Invoke JCA outbound service failed with application error, exception:
    com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/DBAdapterTest/DBReader [ DBReader_ptt::DBReaderSelect(DBReaderSelect_inputParameters,PersonTCollection) ] - WSIF JCA Execute of operation 'DBReaderSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [jdbc/SOADataSource].
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.SOADataSource'. Resolved 'jdbc'; remaining name 'SOADataSource'.
    ; nested exception is:
    BINDING.JCA-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [jdbc/SOADataSource].
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.SOADataSource'. Resolved 'jdbc'; remaining name 'SOADataSource'.
    You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server. This exception is considered not retriable, likely due to a modelling mistake.
    It almost drive me crazy!!:-(
    What's the purpose of 'weblogic-ra.xml' under the folder of 'C:\Oracle\Middleware\home_11gR1\Oracle_OSB1\lib\external\adapters\META-INF'?
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • SQL Server 2008 R2 - Report Builder 3.0 - timeout using shared data source and stored procedure

    I select the shared datasource from the data source propeties dialog, test the connection and everything is good.
    I add a dataset by selecting "use a dataset embedded in my report" option within the Dataset properties dialog.
    I select the newly added data source, click the "Stored procedure" query type and drop down the list box and select my intended stored procedure.
    the timeout for the dataset is "0" seconds.
    I click the "OK" button and I'm presented with the parameters to the stored procedure.
    I enter valid data for the parameters and click the "OK" button.
    I then get the following error message after 30 seconds:
    The problem is, all of the timeouts, that I'm aware of, have values of zero (no timeout) or high enough values that 30 seconds isn't even close to the timeout.
    I think the smallest timeout we have is 120 seconds.
    I have searched this site and many others and the solutions all involve altering the stored procedure to get the fields into report builder and then revert the stored procedure back to its original form.
    To me, this is NOT a solution.  
    I have too many stored procedures that need to be brought into Report Builder.
    I need a real solution.
    Thank you for you time, Tim Caldwell.
    Timothy E Caldwell

    I don't mean to be rude, but really, check to see if the stored procedure can return data rows???
    Maybe I'm not being clear enough.
    The stored procedure runs perfectly fine.
    it runs perfectly fine in the production environment and the test environment.
    I can access the stored procedure in several ways and have it return correct data.
    I can even trick report builder into creating a dataset with parameters and run the stored procedure that way.
    What I cannot do, is to get report builder to not timeout after 30 seconds on the initial creation of a dataset with a Query type of stored procedure.
    I have seen this issues posted again and again and again on may different sites and the "solution" is to simplifiy the stored procedure by creating a stored procedure that has a create table and a select in the stored procedure and that's it.  After
    report builder creates the dataset the developer then has to replace the simplified stored procedure with the actual stored procedure and everything works fine after that.
    HOWEVER, having to go through this process for 70 or more stored procedures is ridiculous.
    It would appear that there is something within report builder itself that is causing this issue.
    The SQL Script included is an example of a stored procedure that will not create fields create a dataset with fields and parameters in Report Builder 3.0:
    USE [CRUM_IT]
    GO
    /****** Object: StoredProcedure [dbo].[COGNOS_Level5ScriptSP] Script Date: 11/17/2014 08:02:26 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[COGNOS_Level5ScriptSP]
    @CompanyCode varchar(8) = null,
    @GetSiblings varchar(1) = 'N'
    as
    Begin
    -- get emergency contact info
    select *
    into #tmp_Contacts
    from
    (select
    ConEEID,
    con.connamelast as [Emer Contact Last Name],
    con.connamefirst as [Emer Contact First Name],
    con.connamemiddle as [Emer Contact Middle Initial/Name]--,
    ,ROW_NUMBER() over (Partition by ConEEID order by ConNameLast)as rn
    ,ISNULL(
    case when con.conphonepreferred = 'H'
    then '(' + substring(con.conphonehomenumber, 1, 3) + ')' + substring(con.conphonehomenumber, 4, 3) + '-' + substring(con.conphonehomenumber, 7, 4)
    else '(' + substring(con.conphoneothernumber , 1, 3) + ')' + substring(con.conphoneothernumber , 4, 3) + '-' + substring(con.conphoneothernumber , 7, 4)
    end,
    ) as [Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.Contacts con
    where con.ConIsEmergencyContact='y'
    and con.ConIsActive='y'
    ) A
    where A.rn = 1
    CREATE TABLE #tmp_CompanyCodes (CompanyCode varchar(8))
    If @GetSiblings = 'Y'
    Begin
    INSERT INTO #tmp_CompanyCodes (CompanyCode)
    EXEC [z_GetClientNumbers_For_ParentOrg_By_ClientNumber] @CompanyCode
    End
    INSERT INTO #tmp_CompanyCodes
    values (@CompanyCode)
    select *
    into #tmp_Company
    from [ultiprosqlprod1].[ultipro_crum].dbo.Company
    where cmpcompanycode in (select CompanyCode from #tmp_CompanyCodes)
    select distinct
    cmpcompanycode as [Client ID],
    CmpCompanyDBAName as [Client Name],
    eec.eecEmplStatus AS [Employment Status],
    eec.eecEmpNo AS [Employee Num],
    rtrim(eep.eepNameLast) AS [Last Name],
    rtrim(eep.eepNameFirst) AS [First Name],
    isnull(rtrim(ltrim(eep.eepNameMiddle)), '') AS [Middle Initial/Name],
    rtrim(eep.eepAddressLine1) AS [Address Line 1],
    isnull(rtrim(eep.eepAddressLine2), '') AS [Address Line 2],
    eep.eepAddressCity AS [City],
    eep.eepAddressState AS [State],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 1, 5)
    ELSE rtrim(eep.eepAddressZipCode)
    END AS [Zip code],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 6, 4)
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) > 0
    THEN substring(eep.eepAddressZipCode, charindex(eep.eepAddressZipCode, '-', 1) + 1, 4)
    WHEN len(eep.eepAddressZipCode) <= 5
    THEN ''
    END AS [ZIP + 4],
    substring(eep.eepSSN, 1, 3) + '-' + substring(eep.eepSSN, 4, 2) + '-' + substring(eep.eepSSN, 6, 4) AS [SSN],
    isnull(convert(VARCHAR(10), eep.eepDateOfBirth, 101), '') AS [Date Of Birth],
    eetFED.TAXCODE AS [FED Tax Code],
    eetFED.FILINGSTATUS AS [Fed Filing Status],
    eetFED.EXEMPTIONS AS [Fed Exemption Allowance],
    eetFED.ADDITIONAL AS [Additional Fed Withholding],
    eetSIT.TAXCODE AS [SIT Tax Code],
    eetSIT.FILINGSTATUS AS [State Filing Status],
    eetSIT.EXEMPTIONS AS [State Exemption Allowance],
    eetSIT.ADDITIONAL AS [Additional State Withholding],
    isnull('(' + substring(eep.eepPhoneHomeNumber, 1, 3) + ')' + substring(eep.eepPhoneHomeNumber, 4, 3) + '-' + substring(eep.eepPhoneHomeNumber, 7, 4), '') AS [Home Phone],
    isnull((SELECT cod.codDesc
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.Codes cod WITH (NOLOCK)
    WHERE cod.codCode = eep.eepEthnicID
    AND cod.codDosTable = 'ETHNICCODE'), '') AS [Race-Origin], --eep.eepEthnicID AS [Race-Origin],
    eep.eepGender AS [Gender],
    isnull(convert(VARCHAR(10), eec.eecDateOfOriginalHire, 101), '') AS [Original Hire Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfSeniority, 101), '') AS [Seniority Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfTermination, 101), '') AS [Termination Date],
    isnull(eecTermType,'') as [Termination Type],
    isnull(TchDesc, '') as [Termination Reason],
    rtrim(eec.eecJobCode) AS [WC Code],
    isnull(eec.eecJobTitle, '') AS [Job Title],
    pgr.pgrPayFrequency AS [Pay Frequency],
    eec.eecFullTimeOrPartTime AS [Full/Part Time],
    eec.eecSalaryOrHourly AS [Pay Type],
    isnull(convert(MONEY, eec.eecHourlyPayRate), 0.00) AS [Hourly Rate],
    isnull(eec.eecAnnSalary, 0.00) AS [Annual Salary],
    [YTD Hours],
    isnull(eep.eepNameFormer, '') AS [Maiden Name],
    eec.eecLocation AS [Location ID],
    rtrim(eec.eecOrgLvl1) AS [Department ID],
    eec.eecorglvl2 AS [Cost Item],
    eec.eecorglvl3 as [Client Project],
    eec.eecPayGroup as [Pay Group],
    isnull(eepAddressEMail,' ') as [Email Address],
    isNull(BankName1,' ') as PrimaryBank,
    isNull(BankRoute1,' ') as PrimaryRouteNum,
    isNull(Account1,' ') as PrimaryAccount,
    isNull(AcctType1,' ') as PrimaryAcctType,
    isNull(DepositRule1,' ') as PrimaryDepositRule,
    isNull(BankName2,' ') as SecondaryBank,
    isNull(BankRoute2,' ') as SecondaryRouteNum,
    isNull(Account2,' ') as SecondaryAccount,
    isNull(AcctType2,' ') as SecondaryAcctType,
    isNull(DepositRule2,' ') as SecondaryDepositRule,
    isNull(
    CASE
    WHEN DepositRule2 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct2 AS decimal(10,2)))
    WHEN DepositRule2 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct2*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as SecondaryDepositAmount,
    isNull(BankName3,' ') as ThirdBank,
    isNull(BankRoute3,' ') as ThirdRouteNum,
    isNull(Account3,' ') as ThirdAccount,
    isNull(AcctType3,' ') as ThirdAcctType,
    isNull(DepositRule3,' ') as ThirdDepositRule,
    isNull(
    CASE
    WHEN DepositRule3 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct3 AS decimal(10,2)))
    WHEN DepositRule3 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct3*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as ThirdDepositAmount,
    Supervisor,
    eec.eecEEID AS [Employee EEID],
    eec.EecJobCode As [Job Code],
    isnull(eec.EecTimeclockID,' ') As [Time Clock ID],
    con.[Emer Contact Last Name],
    con.[Emer Contact First Name],
    con.[Emer Contact Middle Initial/Name],
    con.[Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.empPers eep WITH (NOLOCK)
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.empComp eec WITH (NOLOCK)
    ON eep.eepEEID = eec.eecEEID
    inner join #tmp_Company cmp WITH (NOLOCK)
    ON eec.eecCOID = cmp.cmpCOID
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.PayGroup pgr WITH (NOLOCK)
    ON eec.eecPayGroup = pgr.pgrPayGroup
    left outer join [ultiprosqlprod1].[ultipro_crum].dbo.TrmReasn
    on tchCode = eecTermReason
    left join (select CAST(sum(isnull(eee.eeeYTDHrs,0.00))AS DECIMAL(18,2)) as [YTD Hours],
    eeeEEID,
    eeeCOID
    from [ultiprosqlprod1].[ultipro_crum].dbo.EmpEarn eee with (NOLOCK)
    group by eeeCOID,eeeEEID)eee
    on eec.eecEEID = eee.eeeEEID
    and eec.eecCOID = eee.eeeCOID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode = 'USFIT'
    )eetFED
    ON eec.eecCOID = eetFED.COID
    and eec.eecEEID = eetFED.EEID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode like '%SIT'
    AND eetIsWorkInTaxCode = 'Y'
    )eetSIT
    ON eec.eecCOID = eetSIT.COID
    and eec.eecEEID = eetSIT.EEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName1,
    eddEEBankRoute BankRoute1,
    eddAcct Account1,
    EddAcctType AcctType1,
    EddDepositRule DepositRule1,
    EddAmtOrPct EddAmtOrPct1
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '99')edd
    ON eec.eecCOID = edd.eddCOID
    and eec.eecEEID = edd.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName2,
    eddEEBankRoute BankRoute2,
    eddAcct Account2,
    EddAcctType AcctType2,
    EddDepositRule DepositRule2,
    EddAmtOrPct EddAmtOrPct2
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '01')edd2
    ON eec.eecCOID = edd2.eddCOID
    and eec.eecEEID = edd2.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName3,
    eddEEBankRoute BankRoute3,
    eddAcct Account3,
    EddAcctType AcctType3,
    EddDepositRule DepositRule3,
    EddAmtOrPct EddAmtOrPct3
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '02')edd3
    ON eec.eecCOID = edd3.eddCOID
    and eec.eecEEID = edd3.eddEEID
    left outer join (SELECT eecCOID,
    eecEEID,
    rtrim(eepNameLast) + ', ' +
    rtrim(eepNameFirst) + ' ' +
    isnull(rtrim(ltrim(eepNameMiddle)), '') AS [Supervisor]
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpComp WITH (NOLOCK)
    join [ultiprosqlprod1].[ultipro_crum].dbo.EmpPers with (NoLock)
    on eeceeid = eepeeid)eec2
    ON eec.eecSupervisorID = eec2.eecEEID
    left outer join #tmp_Contacts con
    on eep.eepEEID = con.ConEEID
    order by [Client ID],
    [Last Name],
    [First Name]
    drop table #tmp_Contacts
    END
    Timothy E Caldwell

  • How do I select a data source for my webapp?

    Wel, I'm obviously not looking in the right manual because this ought to be like falling off a log!
    I have developed a web application in JDeveloper 10.1.3 and I'm deploying it (using a WAR file) to an OC4J container in OAS 10.1.3.
    I have created a JDBC data source (JNDI location jdbc/bmra89) to connect to a 9.2.0.7 Oracle database and testing this through the interface is successful. The data source is associated with a new Connection Pool.
    I ensure that a default data-sources.xml file is NOT bundled into my WAR file from JDeveloper (because the database I want to connect to from the OAS is different to the database I want to connect to from the deployed web app) so it should be looking for one it builds itself. In fact, data-sources.xml exists in the j2ee/<webapp_name>/config directory that contains the details of the data source and connection pool I created.
    During deployment of the generated WAR file, I have chosen to Edit the Deployment Plan and in here I have entered the name of the data source (jdbc/bmra89) into the box labelled "defaultDataSource" and the boxes labelled "connectorsPath" and "dataSourcesPath" I've left empty.
    It all deploys OK, but when I try to access a page I get the following error:
    500 Internal Server Error
    JBO-30003: The application pool (model.AppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1954)
    So, any ideas where I'm going wrong? (I have to admit to being pretty lost with all this!)
    Thanks,
    Andy

    Let's try to do this as easy as I'm capable of explaining.
    Deploy the EAR to the Application server/OC4J standalone that you're trying to configure without modifying or removing any of the files in the EAR or WAR file and using all of the defaults.
    Now start up the Application server control in you choice of web browser, my URL is http://localhost:8888/em.
    After logging into the console select the "Adminstration" Link, and there will be List of Administration Tasks, one of which being the JDBC Resources under, Services.
    After selecting the JDBC Resources "Go to Task" you will see 2 areas, Data Sources and Connection Pools. Somewhere in all of this you should see the jdev-connection-pool-bmra89, jdev-connection-managed-bmra89, and jdev-connection-native-bmra89.
    I normally modify the jdev-connection-pool-xxxxx first to use the correct URL connection. IE- jdbc:oracle:thin:@localhost:1521:bmra89 to jdbc:oracle:thin:@138.51.128.100:1521:bmra89, changing localhost to a specific database IP address.
    Then I'll click the Apply, and then go back and do the same to the jdev-connection-native-bmra89.
    At this point you should be able to test the connections successfully, and get the Web Service to connect.
    I hope I've covered it and that this helps, and you're not being thick. The data sources part of this stuff can be confusing.
    Darren

  • Data source of an existing custom data library in DLL

    Post Author: tyakimov
    CA Forum: Data Connectivity and SQL
    Using Visual Studio .Net 2005
    I am trying to bind Crystal reports Data source to an existing custom data library, located not in the project code, but DLL. My library contains business object implementations.I am using the "Database Expert", creating a new connection to an ADO.NET source, selecting the .dll from the my directory, and selecting the Class Name from the list of business entities that Crystal Report has detected from the assembly.But when I try to expand the newly-added data source, "... no items found ..." is displayed instead of the properties of the business object. I use similar aproach (BindingSource) when I bind my custom objects to the grid. Is there any way to to bind to classes defined in a .dll located in a folder ?There are many examples if the class implementation is in my project code, but I could't figure out how to do that, using classes from a DLL Any suggestion/help is appressiated regards,Yakimo

    Post Author: bfs
    CA Forum: Data Connectivity and SQL
    No not yet, I'm still trying to find a solution.  If I find one or discover that this is not possible, I will post it here. 
    I've just sent an email to customer support pointing out this thread, hopefully they can provide some help.

  • Configurable data-source in orion-ejb-jar.xml

    Hi,
    In my orion ejb-jar.xml file, I have hard coded data-source entries for all entity beans , i.e.
    <entity-deployment name="Customer" data-source="jdbc/slldev02DS" table="CUSTOMER">
    Is there any way, I can make this customizable, i.e. feed in or define a parameter?
    thanks in advance,
    Kevin

    Jingzhi -- If you define the correct EJB-QL you should get the correct SQL generated for the finder. If that's not happening can you verify it against the OC4J v903 production release and see if it is still happening. I don't know if this helps with the JDeveloper problem specifically but if you don't need to create your own finders then that I hope should help.
    Thanks -- Jeff

  • What is specified in jta-data-source in persistence.xml??

    When searching on the web I find examples like:
    <jta-data-source>java:DefaultDS</jta-data-source>
    or
    <jta-data-source>jdbc/MyDataSource</jta-data-source>
    What exactly is specified here? Prob dumb question but I can't figure it out.
    Ty

    hi user644732
    This says ...
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
    "The container-specific name of the JTA datasource to use."
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    regards
    Jan Vervecken

  • Deploy failure due to jta-data-source in persistence.xml

    Hey All,
    This is driving me insane. Every example, including the Sun tutorials (which don't work on my instance of Glassfish), list persistence.xml files like:
    "<?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
         <persistence-unit name="persistence_sample">
    <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
    <jta-data-source>jdbc/SamplesDB</jta-data-source>
    <non-jta-data-source>jdbc/SamplesDB__nontx</non-jta-data-source>
    </persistence-unit>
    </persistence>"
    I've tried every combination of <persistence...> tags, with namespace definitions, posted in examples on the internet, but my problem is, any time I deploy my ear with a "<jta-data-source>" tag specified, I receive the following failure from the App Server:
    "Error loading deployment descriptors for module [pi-0] Line 26 Column 24 -- Deployment descriptor file META-INF/persistence.xml in archive [pi-ejb.jar]. cvc-complex-type.2.4.a: Invalid content was found starting with element 'jta-data-source'. One of '{"http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected.
         at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:352)
         at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:327)
         at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:332)
         at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182)
         at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jta-data-source'. One of '{"http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected.
         at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:285)
         at com.sun.enterprise.deployment.archivist.Archivist.readPersistenceDeploymentDescriptor(Archivist.java:1718)
         at com.sun.enterprise.deployment.archivist.EjbArchivist.readPersistenceDeploymentDescriptors(EjbArchivist.java:239)
         at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:301)
         at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:200)
         at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:308)
         at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:316)
         ... 11 more"
    Note that this only happens when I have a <jta-data-source> element in the persistence.xml file. When I comment out the jta-data-source, it deploys without problems (though it doesn't do much). Here's my persistence-unit code:
    <persistence-unit name="prodcontext" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <class>OneOfMyClasses</class>
    <jta-data-source>jdbc/SamplesDB</jta-data-source>
    </persistence-unit>
    Please help.
    Thank you,
    Todd

    Okay okay, my mistake (staring at this thing too long).
    The solution is, I confess I overlooked it, the jta-data-source node in the xml has to follow the exact order specified in the xsd. I was putting it below the class nodes, which is a no-no.

  • Loading Matrix using XML Data Source

    Hi Experts,
    I'm working on an addon where i need to fill up matrix with a set of data,
    i'm doing that using 'for loop'. my question is can v fill matrix using XML File i.e, using XML as Data Source.
    Thanks in Advance
    Jaideep

    Hi Jaideep !!!!
    here is the sample code which could help u n solve ur problem.
    if u got ny problem then please tell me ....
    Public Sub CreateLoad()
            Try
                ''' Load form
                Dim xml As Xml.XmlDocument
                xml = New Xml.XmlDocument
                xml.Load("C:\Temp\update data to the base table\Allowance\Abacus.srf")
                SBO_Application1.LoadBatchActions(xml.InnerXml)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
            AddDataSourcetoform()
            BindataSource()
            GetDatafromDB()
        End Sub
        Public Sub AddDataSourcetoform()
            Try
                oForm = SBO_Application1.Forms.Item("Allowance")
                DBtable = oForm.DataSources.DataTables.Add("Supplier")
                SQL = "SELECT [@Supplier].* FROM [@Supplier] ORDER BY Cast( [@Supplier].Code AS INT)"
                DBtable.ExecuteQuery(SQL)
                'oDBDataSource = oForm.DataSources.DBDataSources.Item("@Supplier")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
                'System.Windows.Forms.MessageBox.Show("Not Added Data Source to the Form")
            End Try
        End Sub
        Private Sub BindataSource()
            Try
                oForm = SBO_Application1.Forms.Item("Allowance")
                MatrixBind()
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Private Sub MatrixBind()
            Try
                'Dim txt As SAPbouiCOM.EditText
                o_Matrix = oForm.Items.Item("MatAllow").Specific
                oColumns = o_Matrix.Columns
                oColumn = oColumns.Item("ColCode")
                oColumn.DataBind.Bind("Supplier", "Code")
                oColumn = oColumns.Item("ColName")
                oColumn.DataBind.Bind("Supplier", "Name")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub GetDatafromDB()
            Try
                oForm = SBO_Application1.Forms.Item("Allowance")
                o_Matrix = oForm.Items.Item("MatAllow").Specific
                Dim Code As String = 1
                o_Matrix.Clear()
                o_Matrix.LoadFromDataSource()
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • Problem Initializing data-source oc4j

    Hi,
    When starting the oc4j container I get the following error.
    ora03 $ Error initializing data-source 'jdbc/OracleCoreDS': DriverManagerDataSource driver 'oracle.jdbc.driver.OracleDri
    ver' not found
    Error initializing data-source 'jdbc/css_userCoreDS': DriverManagerDataSource driver 'oracle.jdbc.driver.OracleDriver' n
    ot found
    Error initializing data-source 'jdbc/AnteDateCoreDS': DriverManagerDataSource driver 'oracle.jdbc.driver.OracleDriver' n
    ot found
    Warning: Error reading transaction-log file (/u01/web/ias102/j2ee/home/persistence/transaction.state) for recovery: prem
    ature end of file
    Forced or abrubt (crash etc) server shutdown detected, starting recovery process...
    Recovery completed, 0 connections committed and 0 rolled back...
    Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
    Here is my data-sources.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
         class="com.evermind.sql.DriverManagerDataSource"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         ejb-location="jdbc/css_userDS"
         inactivity-timeout="30"
         location="jdbc/css_userCoreDS"
         name="css_userDS"
         password="css"
         url="jdbc:oracle:thin:@oradev01.nf.prv:1521:css"
         username="css_user"
         xa-location="jdbc/xa/css_userXADS"/>
    <data-source
         class="com.evermind.sql.DriverManagerDataSource"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         ejb-location="jdbc/AnteDateDS"
         inactivity-timeout="30"
         location="jdbc/AnteDateCoreDS"
         name="AnteDateDS" password="date"
         url="jdbc:oracle:thin:@oradev01.nf.prv:1521:test"
         username="antedate"
         xa-location="jdbc/xa/AnteDateXADS"/>
    </data-sources>
    I have made sure that the classes12.zip in in my CLASSPATH. OS HP-UX 11.00. Help!!!

    David,
    OC4J does not pickup the CLASSPATH from $CLASSPATH env variable. Do you have the classes12.zip in $OC4J_HOME/j2ee/home/lib directory?
    If not can you please put that in that directory and restart your server.
    regards
    Debu Panda
    Oracle

  • OC4J data-source.xml other data base like postgresql

    Hi i need to use a DataSource in OC4J with other database (any), i am setting the data-source.xml like:
    <\datasource
    class="com.evermind.sql.DriverManagerDataSource"
    name="DSPropiedades" location="jdbc/DSPropiedadesCoreDS"
    xa-location="jdbc/xa/DSPropiedadesXADS"
    ejb-location="jdbc/DSPropiedades"
    connection-driver="com.borland.datastore.jdbc.DataStore"
    username="sample"
    password="sample"
    url="jdbc:borland:dslocal:D:/seguridaddb/seguridad.jds"
    inactivity-timeout="300"
    />
    and i had put the database.jar in the OC4j directory's
    D:\ora10i\jdbc\lib
    D:\ora10i\j2ee\home\lib
    D:\ora10i\lib
    but i always obtain the same error
    Error initializing data-source 'jdbc/DSPropiedadesCoreDS': DriverManagerDataSource Driver 'com.borland.datastore.jdbc.DataStore' not found

    Liliana,
    From the [lack of] information you have posted, I am assuming you are using OC4J stand-alone version 10g -- but I'm not sure because I couldn't find any of those details in your post. It always helps to include version and platform information.
    If my assumption is correct, then the default location for third-party JAR files (including your JDBC driver) is the
    "j2ee/home/applib"
    subdirectory of the OC4J installation. For example, on my Windows XP machine (again, I couldn't see what platform you are using, so I am assuming it is also Windows), the actual path is:
    C:\OC4J_10_0_3\j2ee\home\applib
    If you want to see other examples of "data-sources.xml" files (apart from the one that comes with OC4J), try searching the following Web sites:
    http://www.orionserver.com
    http://www.orionsupport.com
    http://kb.atlassian.com
    Good Luck,
    Avi.

Maybe you are looking for

  • External HD is no longer loading to the desktop

    I have two external drives connected by firewire that are no longer appearing on the desktop. It worked fine until I ejected both of them from the desktop. I turned off the power of the iMac then restarted the iMac and turned the external drives. Now

  • Why won't windows re-size predictably?

    Why is clicking the green re-size button such a crap shoot in OS-X? Sometimes the window doesn't change size at all (e.g., in iPhoto). Sometimes it gets bigger than necessary to see the contents of the page being viewed (e.g. in Safari). Sometimes it

  • Wrong File Names to iPhoto

    I made a slideshow in iPhoto from images that I have in Aperture. I Did a Batch Name Change in Aperture to rename the files. When I showed selected my Aperture images in a new slideshow in iPhoto and ran the slideshow with "Show Titles" the filenames

  • Lines in tables

    I can't seem to change the size of individual lines in tables anymore. Anyone know how to do this?

  • Issues with Failover in SA540?

    One of my partners is having an issue that remains unresolved - the case id is SR 613266147 - SA 540 Security Appliance / Configuration issues.  The client bought 4SA 540s, 3 for production use and 1 spare.  Partner configured and installed and the r