Problems creating MySQL Datasource in OC4J

I was recently tasked with creating a MySQL datasource in my development OC4J container (running through Eclipse, but that's irrelevant). I searched for and found this page: http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html which tells me how to do this.
I searched for and found the Datasource class jar file: mysql-connector-java-3.0.17-ga-bin.jar, installing it in the ORACLE_HOME/applib directory of my container.
I then fired up the container, and accessed the ascontrol app to add the Datasource (via Administration/JDBC options), and ran into a few problems:
After entering the "Create Datasource" menu, I filled in the appropriate values for the JNDI name, class name of the Datasource, URL of the database, username and password. When I went to test the connection, I received an error that the Datasource class could not be created, yet in the error message it showed me where the Datasource class was (in which jar), so obviously the container knew about the jar.
After much playing around, I determined that the ascontrol app itself was the issue. In the orion-application.xml file for the ascontrol found in ORACLE_HOME/application-deployments/ascontrol, I found the line:
<remove-inherited name="global.libraries"/>
in the <imported-shared-libraries> tag. This essentially means, "ignore everything in the applib directory". It seems, as the instructions in the page above state, you actually have to manually edit the data-sources.xml file in your ORACLE_HOME/config directory in order to add this datasource, as the ascontrol app is unable to do so without loading the library from applib.
Now, I just commented out this line in the ascontrol's xml file temporarily, and was able to use the ascontrol to add the datasource, but this seems wrong. Now, finally, I can ask my questions:
1. Is this really the preferred method for adding a MySQL datasource to an OC4J container?
2. If not, what is?
3. If so, why is the ascontrol crippled in this fashion, and should it be fixed so it isn't anymore?

Tank -- we recently discovered this situation with ASC ourselves. There's some history there in that by importing the global.libraries in the past, there has been problems with some libs that ASC itself needed being overridden -- evidently some common practice with a framework we supply was to use the applib directory in this manner, which caused issues for ASC. So the solution was to remove global.libraries from ASC.
OK so how to solve it, there's a number of options.
1. Remove the remove-inherited libraries tag from the ASC deployment descriptor as you've identified. I actually have the ASC team checking on whether this is something they want to do in a patch release.
2. Put the mysql driver into its own installed shared-library, then import that into each app that needs it. And add it to ASC as an imported-shared-library. That way the same code-source is available in each location. I'd have to say this is probably the preferred option at this point.
3. Put the mysql jar file into both the j2ee/home/applib directory AND the web-inf/lib directory of the so both apps have at it. This introduces an abstract dependency, which may cause issues if you update one but not the other at some future point. But it should work.
cheers
-steve-

Similar Messages

  • Problem configure mysql datasource

    Hi, I am trying to use mysql datasource for my application. I had configured MYSQL_DRIVER and then
    i had configured gtasappdb datasource with
       driver-class-name = com.mysql.jdbc.Driver
       url               = jdbc:mysql://localhost:3306/appdb
       alias             = appdbdatasource
    And then i tried to deploy a EJB application which uses the above 'appdbdatasource'. When the application starts
    it says cannot find 'gtasappdb' connectionfactory.
    So can anyone tell me what should be done to use mysql for my application, please

    Hello mahesh,
    There are two ways.
    1. You should add a resource reference to the ds alias in the deployment descriptor of the application component.Once you have defined the reference,use the following snippet to access the data source
    DataSource ds = (DataSource) context.lookup("java:comp/env/<res-ref-name>").
    2. If you have not defined the reference in your application, use the JNDI reference "jdbc/alias".
    Hope this helps,
    Prasad

  • Problem creating connection pool to mysql database

    Please, do not ignore this message and help me, if you have any Idea
    I have Sun Java System Application Server 8.1 installed on my computer, I installed also MySQL Connector/J to access MySql Databases through JDBC
    But now when I try to create new connection pool, an error comes:
    Following parameter were used:
    Name: MYSQL1
    Resource Type: javax.sql.XADataSource
    Database Vendor: mysql
    Datasource Classname: com.mysql.jdbc.Driver
    serverName 192.168.0.152
    port 3306
    networkProtocol
    user testuser
    password ***
    databaseName test
    datasourceName
    After saving and then klicking on Ping button, following error comes: "An error has occurred.
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: com.mysql.jdbc.Driver"
    I checked the logs of MySql, there was no attempt to access given Database or MYSQL-server at all
    What Am I doing wrong? How can I create MySql connection under Sun Java System Application Server 8.1?
    Any help will be appreciated

    The driver is in right place
    Originally I placed him in wrong directory and got an error, indicationg, that Driver class is not found, but then I corrected it, The problem is in connection to database - it doesn't work.
    I tired to load the same driver into Netbeans and could easyli create a connection to database, but I get it not working ander Sun Application server

  • Problem running Page with MySQL DataSource

    Hi All,
    Jdev Version 11.1.1.6.0
    I have created a MYSQL Datasource (Datasource got created successfully and tested). The issue is when I am running a jspx page, I am getting below exception.
    java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
    I have provided the Class path in Weblogic - Servers - DefaultServer- Server Start tab like C:\Users\jars\Downloads\mysql-connector-java-5.1.25\mysql-connector-java-5.1.25
    But still I am getting this exception. I didn't got any issue when I created a MYSQL connection, and provided Driver Class path.
    Any pointer, what I am missing here.
    Thanks
    AP

    Hi Suresh,
    Thanks for the post. Well there are 2 thing which I require to understand.
    1. We can create MYSQL connection using Jdev and set the classpath which is provided in post. It worked fine.
    2. We can create datasource of MYSQL connection and use it in our Model Project. Here I am struck and giving this exception when running.
    Since it Enterprise Application, creating Datasource is generic way to connecting. I am facing issue after creating datasource. I tried above approaches, but getting exception.
    Can you help me in understand, what is going wrong in step 2.
    Thanks, AP

  • Cannot create a DataSource with MySql...

    Hi all,
    I'm trying to create a DataSource with WLS 9.1.
    The DataBase I'm using is MySql 4.1.
    I have copied the mysql-connector.jar in the "lib" folder of my domain, but when I try to target the DataSource to the Server I get an error that Mysql Driver class is not found.
    Should I insert the driver somewhere else ? or should I add manually the file to the server classpath ?
    Thanks
    Francesco

    Francesco Marchioni wrote:
    Hi all,
    I'm trying to create a DataSource with WLS 9.1.
    The DataBase I'm using is MySql 4.1.
    I have copied the mysql-connector.jar in the "lib" folder of my domain, but when I try to target the DataSource to the Server I get an error that Mysql Driver class is not found.
    Should I insert the driver somewhere else ? or should I add manually the file to the server classpath ?
    Thanks
    Francescoedit the script that starts WebLogic. You will see a CLASSPATH definition
    is constructed and applied to the WebLogic call. Add your jar to that
    CLASSPATH.
    Joe

  • [b][u]JSP create mysql DataBase problem[/u][/b]

    While i try to create mysql database through JSP program using query,
    the qurey statement doesn't work
    stmt.executeUpdate("create database employee;"); is not executing.
    The code is as follows : Please Help Me......
    try {
    Connection con = null;
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    con=DriverManager.getConnection("jdbc:mysql://localhost:3306/bedrock","Dude1","");
    try {
    Statement stmt=con.createStatement();
    stmt.executeUpdate("create database employee;");
    System.out.println("Statement Executed");
    catch(Exception e) {
    System.out.println("Statement not Executed");
    catch (SQLException ex) {
    while (ex != null) {
    System.out.println("sql exception"+ex);
    ex = ex.getNextException ();
    " THANKS IN ADVANCE "

    It's not common to create databases with Java. I'd say this is especially true of JSPs. You'll have to GRANT permission to access and create tables to every single user that comes in? Are those tables cleaned up when users are done, or does the number of tables grow as the number of users grows? One table per customer? Sounds more like session or cookies to me. Do you validate users to make sure that only authorized users can create tables? Lots of problems, and it doesn't appear that you've addressed any of this from the code you've posted.
    It's a bad idea to have code like this in a JSP. Those are for view only. Better to put database code on the server side where it belongs.
    %

  • Problems creating Datasource in Weblogic for E-biz R12 DB

    Hi,
    I've got an instance of E-Business Release 12 on a 10.2.0.2.0 DB which I am trying to create a Datasource and connection pool for in Weblogic Server 11g. I have successfully set up connections for other DB's but I am unable to connect to this Ebiz DB. I go through the settings but when I click on 'Test Configuration' at the end, I get the following error message:
    Connection test failed.
    Message icon - Error The Network Adapter could not establish the connection
    oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:480)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:275)
    oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:454)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:159)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:105)
    com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:550)
    com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:450)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    I have set it up to use the database driver 'Oracle's (Thin XA) Driver for Instance Connections....' .
    I am wondering whether the DB version is compatible with this version of Weblogic Server and whether it may need to be patched if it isn't?
    I appreciate your help
    Edited by: user10248308 on 30-Sep-2009 08:55

    The "The Network Adapter could not establish the connection" message usually indicates a network / connectivity failure

  • Problem accessing J2EE DataSource with BC4J

    I'm trying to create MySQL database connection with BC4J via a J2EE DataSource. But without success.
    The errors I receive:
    Launching OC4j...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    2003-03-18 09:40:36 ApplicationModuleProvider - unspecified properties:
    password drivertype user sid connectionstring host encryptiontype port
    ApplicationModuleProvidernull
    java.lang.NullPointerException
    at oracle.cle.persistence.ConnectionProvider.getConnectionString(Connect
    ionProvider.java:606)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.createModule(A
    pplicationModuleProvider.java:331)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.getConnection(
    ApplicationModuleProvider.java:200)
    at oracle.cle.persistence.ConnectionProvider.getConnection(ConnectionPro
    vider.java:669)
    at oracle.cle.persistence.ConnectionManager.getConnection(ConnectionMana
    ger.java:607)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:168)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:92)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getC
    onnection(DataSourceHandlerImpl.java:331)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getA
    pplicationModule(DataSourceHandlerImpl.java:874)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getD
    ataSourceSet(DataSourceHandlerImpl.java:462)
    at oracle.jheadstart.process.GetDataSourceSet.retrieveSimple(GetDataSour
    ceSet.java:538)
    at oracle.jheadstart.process.GetDataSourceSet.persist(GetDataSourceSet.j
    ava:502)
    at oracle.jheadstart.process.PersistingDataSource.start(PersistingDataSo
    urce.java:251)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Process.start(Process.java:97)
    at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
    at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
    at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Service.start(Service.java:389)
    at oracle.clex.process.controller.HttpServletController.doPost(HttpServl
    etController.java:439)
    at oracle.jheadstart.process.controller.JhsHttpServletController.doPost(
    JhsHttpServletController.java:70)
    at oracle.clex.process.controller.HttpServletController.doGet(HttpServle
    tController.java:849)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:797)
    at java.lang.Thread.run(Unknown Source)
    ApplicationModuleProvider: ApplicationModuleProvidernull
    GetDataSourceSet Exception: A Connection could not be made for class: oracle.emp
    depdemo.resource.Department and sessionId: e3c568a09dec48d7b5a6cb86d041d22b orig
    inal message is: ApplicationModuleProvider: ApplicationModuleProvidernull
    See also thread MySQL at the JHeadstart forum.
    data-sources.xml (oc4j\j2ee\home\config):
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@172.16.2.240:1521:dev2"
              inactivity-timeout="30"
         />     
    cle-providers.xml:
    <cle-providers>
    <provider name="EmpDepServiceProvider" class="oracle.clex.persistence.bc4j.ApplicationModuleProvider">
    <property name="persistencebase" value="oracle.empdepdemo.persistence.bc4j"/>
    <property name="modulename" value="oracle.empdepdemo.persistence.bc4j.Bc4jModule"/>
    <property name="failover" value=""/>
    <property name="scope" value="request"/>
    <property name="managestate" value="false"/>
    <property name="configuration" value="Bc4jModuleLocal"/>
    </provider>
    </cle-providers>
    bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="Bc4jModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <DBconnection>jdbc:oracle:thin:@localhost:1521:orcl</DBconnection>
    <JDBCName>ScottTiger</JDBCName>
    <jbo.project>empdep</jbo.project>
    <AppModuleJndiName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</AppModuleJndiName>
    <ApplicationName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="ScottTiger">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="localhost"/>
    <ENTRY name="user" value="Scott"/>
    <ENTRY name="ConnectionName" value="ScottTiger"/>
    <ENTRY name="SID" value="orcl"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    </ConnectionDefinition>
    </BC4JConfig>

    Thank you Dhiraj,
    On my Oracle database it is working. But on MySQL I still have the same problem.
    I'm still ivestigating it.
    Thanks anyway.
    Marcel

  • Error while trying to use Ant and creating Jdbc Datasource

    I was following the documentation to auto-create my datasource in my weblogic server. I get an error while it is trying to link the datasource to the server. Does anybody have any ideas,it is almost like the query to get the server isn't working.
    Here is my ant task:
    <target name="setupJdbcDatasource">
         <wlconfig url="t3://localhost:7001" username="weblogic" password="weblogic">
         <query domain="MyDomain" type="Server" name="AdminServer" property="adminserver"/>
         <create type="JDBCConnectionPool" name="TestDatasource" property="DatasourceTest">
              <set attribute="CapacityIncrement" value="1"/>
              <set attribute="DriverName" value="weblogic.jdbcx.oracle.OracleDataSource"/>
              <set attribute="InitialCapacity" value="1"/>
              <set attribute="MaxCapacity" value="10"/>
              <set attribute="Password" value="cmuser"/>
              <set attribute="Properties" value="user=cmuser SID=ORCH serverName=10.13.5.144 portNumber=1521"/>
              <set attribute="RefreshMinutes" value="0"/>
              <set attribute="ShrinkPeriodMinutes" value="15"/>
              <set attribute="ShrinkingEnabled" value="true"/>
              <set attribute="TestConnectionsOnRelease" value="false"/>
              <set attribute="TestConnectionsOnReserve" value="false"/>
              <set attribute="URL" value="jdbc:bea:oracle://10.13.5.144:1521"/>
              <set attribute="Targets" value="${adminserver}"/>
         </create>
         </wlconfig>
    </target>
    My Domain is MyDomain, and server is AdminServer. The error I get is:
    [wlconfig] weblogic.management.DistributedManagementException : Distributed Management [1 exceptions]
    BUILD FAILED
    X:\ibutt_PCView\src\CM\build.xml:285: Error invoking MBean
    command: javax.management.MBeanException
    And in my server log:
    jdbcDataSourceBean=[MBeanServerInvocationHandler]com.bea:Name=CP-ConfigManagemen
    tTest,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceBean,Parent=[MyDomain]/JDBC
    SystemResources[CP-ConfigManagementTest],Path=JDBCResource
    <May 21, 2006 3:50:57 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception
    while creating connection for pool "ConfigManagementTest": [BEA][Oracle JDBC Dri
    ver]Missing connection information: no serverName specified.>
    <May 21, 2006 3:50:58 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occured i
    n the execution of deployment request with ID '1148241051441' for task 'weblogic
    .deploy.configChangeTask.2'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:

    Hi. This seems like an XML parsing problem.
    Could you please try changing the driver
    properties from:
    <set attribute="Properties" value="user=cmuser SID=ORCH serverName=10.13.5.144 portNumber=1521"/>
    to:
    <set attribute="Properties" value="user=cmuser SID=ORCH"/>
    The server and port are already in the URL
    thanks,
    Joe

  • Can´t create a datasource in workspace in MSAD integrated environment

    We are instaled Hyperion 11.1.1.3, with sql server 2005 and with MSAD autentication.
    In that environment, autenticate in the database is doing using MSAD not sql user login.
    When we configre the database we specifiy parameter to indicate that use MSAD autentication, and test all conection and was ok, and the configuration finish witout errors
    When we finish, we configure Shared Services and give permission to the MSAD user (using admin user). After that we login in workspace with the same user that we use to configure the database before.
    When we try to create a application, first we must create a datasource. For tha use Navigate->Administer->Classic Application Administration -> Planning Administration. And after, select Manage Data Source.
    In that point we introduce de parameters and test de datasource and appear a message  indicating that the connection is not possible and is not posssible create the data source (the essbase data source was ok) ._
    The database was created before, and the user used to test the datasource, is the dbo in the database (and in the other database of shared services)
    To inspect the problem we do the following task
    - We create a datasource in windows to test the user and was ok too.
    - We test with the database indicated for Shared Services and test again and not work.
    - We copy the data direct dll to windows/system 32 and test agian and not work.
    - We restart the machine and don´t work.
    Someone had idea how to solve this problem?
    Thanks a lot for your help.
    Edited by: user1044125 on 31/08/2009 07:52 AM

    You maybe right, did you follow all of the post installation instructions?
    Check out page 27 of the installation guide, this maybe the case I'm not sure ...
    Locate the line containing PlsqlNLSLanguage.
    The PlsqlNLSLanguage setting determines the language setting of the DAD.
    The character set portion of the PlsqlNLSLanguage value must be set to
    AL32UTF8, regardless of whether or not the database character set is AL32UTF8.
    For example:
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8

  • Weird Error When Creating A Datasource

    Hi, I am getting the following error when trying to create a
    datasource in the CF administrator.
    Unable to update the NT registry.
    Variable DRIVERPATH is undefined.
    And when I navigate to my application through the web browser
    I get the following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal
    error: Data source name not found and no default driver specified
    Now, I have lots of experience of doing this before, but that
    was on my desktop machine which runs Vista Home Premium. This new
    laptop of mine also runs Vista Home Premium, but I think it is the
    64 bit version - could this have anything to do with it?
    I am using the Developers installation of Coldfusion 8 and
    trying to hook the exact same application and mdb database file
    that worked and used on my desktop machine - same files, same
    process as before.
    I can't figure out what is going wrong or how I can resolve
    the problem. Has anyone else encountered this before? If so, any
    advice would be great.
    Many thanks,
    Michael.

    Using CF 9 64-bit on a Windows Server 2008 and I still get the
    Unable to update the NT registry.
    Variable DRIVERPATH is undefined.
    message.
    Any thoughts on this?

  • NEED HELP! can't create mysql connection in DW MX 2004

    I re-format my computer last week and after reformatting i
    install my PHP Triad and Dreamweaver MX 2004, but i can't create
    mysql connection using DW wizard, i already follow the step:
    1. create / manage site
    2. choose document type
    3. set up testing server ( i use php mysql @ localhost)
    and when i create new connection (fill the hostname,
    username, password, and select databases) it failed and show
    message "unidentified error occur".
    it never happen before (before i re format my computer).
    can anyone help me how to solve this problem.
    sorry for my bad english i came from Indonesia,
    thx before
    rgrds
    zhastro

    I re-format my computer last week and after reformatting i
    install my PHP Triad and Dreamweaver MX 2004, but i can't create
    mysql connection using DW wizard, i already follow the step:
    1. create / manage site
    2. choose document type
    3. set up testing server ( i use php mysql @ localhost)
    and when i create new connection (fill the hostname,
    username, password, and select databases) it failed and show
    message "unidentified error occur".
    it never happen before (before i re format my computer).
    can anyone help me how to solve this problem.
    sorry for my bad english i came from Indonesia,
    thx before
    rgrds
    zhastro

  • Invalid Extract Structure while creating a datasource

    Hello,
    I'm creating a datasource from a view. whenever i try to save it, it gives me an error saying that it is an invalid extract structure and that one of my fields is referenced to another table. After the threads on SDN, I think I need to remove this field from the view, activate my datasource, append my extract structure by adding the problem field and write an user exit to populate the field.
    I don't have any experience in writing an user exit. I would appreciate if anyone would guide in it. Here are the details of my view:
    View with 4 tables: EKBE, EKKO, EKPO AND EKKN
    so that i'll get the line items of the purchase orders with the fields that i need. I didn't see any business content datasource for this.
    problem field: DMBTR in EKBE table
    this is referenced to T001.
    How do i add this field in the extract structure and how do I write an user exit for this?
    Regards,
    Sam

    Hi,
    I am new to this foroum and BW module....
    I too am facing the same problem.
    I am creating a view from 2 tables VBAK and VBAP .
    I was having problem with currency fields NETWR, WAERK, NETPR. So i removed the currency fields. Still i am having same error of not being able to create my data source from the view i have made. It gives the error....
    Invalid extract structure template Z76_VEW_VBAK_VBP of DataSource Z76_DS_VIEW_VBAK_VBAP
    Message no. R8359
    Diagnosis
    You tried to generate an extract structure with the template structure Z76_VEW_VBAK_VBP. This operation failed, because the template structure quantity fields or currency fields, for example, field NETPR refer to a different table.
    Procedure
    Use the template structure to create a view or DDIC structure that does not contain the inadmissable fields.
    Can anyone help me out please.
    Thnaks
    Mansi

  • 'table does not exist' when creating generic datasource

    I went to SBIW->Business Content DataSources->Transfer Business Content DataSources-chose "content delta". it said 'comparison bct <-> cust version ' then it counted thru several objects for a few minutes and finished with no warnings.
    then I selected each datasource under co-om-cca and activated those with no problems.
    problem: now when i try to create came generic datasource using co-om-cca application component i get mssg when saving 'the specified table does not exist'...so now it isn't even letting me create a datasource at all using a standard application component either.
    I have been having many problems with creating datasources and using application components and this is why I did the first paragraph because I don't know what else to try.
    Please help, thanks.

    I have answered my own question.  I wasn't entering the view/table and it was my own complete oversight.

  • Trouble creating mySQL tables

    I am running CF9 64bit on windows 7. I created the database on mySQL 5.6 server. I created the datasource, theough the CF Admin, for kalendar and it verified. I then tried using the following code to create 2 table, but I recevied an error that just says "Error!" when I tried running the script. I posted the script on  mySQL forums and was told the code ran fine. What am I not seeing?
    <cfquery name="qCreateTable"  datasource="kalendar">
    CREATE TABLE  tblkalendar (
      EventID varchar(100) NOT NULL,
      CategoryID int(10) NOT NULL,
      IsDeleted tinyint(1) NOT NULL default '0',
      IsPublished tinyint(1) NOT NULL default '0',
      IsFeatured tinyint(1) NOT NULL default '0',
      DateTimeCreated timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
      StartDate datetime NOT NULL,
      EndDate datetime NOT NULL,
      StartTime varchar(50) default NULL,
      EndTime varchar(50) default NULL,
      ContactPhone varchar(50) default NULL,
      ContactName varchar(100) default NULL,
      ContactEmail varchar(50) default NULL,
      Title varchar(150) NOT NULL,
      Location varchar(150) default NULL,
      Teaser varchar(350) default NULL,
      ExternalURL varchar(500) character set utf8 default NULL,
      Description longtext NOT NULL,
      PRIMARY KEY  (EventID),
      KEY IX_tblKalendar (StartDate,EndDate),
      KEY FK_tblKalendar_tblKalendarCategories (CategoryID)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    CREATE TABLE  tblkalendarcategories (
      CategoryID int(10) NOT NULL auto_increment,
      CategoryName varchar(50) NOT NULL,
      CategoryBGColor varchar(7) NULL,
      CategoryTextColor varchar(7) NULL,
      PRIMARY KEY  (CategoryID)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    </cfquery>

    you should rethink whether you need to create a database using java. personally i think it's a bad idea. your database should exist and the schema should be ready to go when your app starts. why do you think you need to create one?
    %

Maybe you are looking for

  • Can Superduper and Time machine write to the same external volume.

    I just setup a 750 GB external drive single partition using firewire 800. Any problem with superduper and time machine writing to the same volume? Ron

  • [SOLVED] dhcpcd: timed out

    I want to install Arch using wifi. I'm trying to connect to my WPA network before I even begin. I did this (with my own network and passphrase in place) wpa_passphrase mywireless "secretpassphrase" wpa_passphrase mywireless "secretpassphrase" > /etc/

  • Clustering of Oracle 10gAS (Forms and Reports Standalone edition)

    Hi, Does anyone have experience of clustering of Forms\Reports in 10g environement with Forms and Reports Standalone edition? Clustering at Application Server level? Clustering at hardware level (load balancing \SAN for code storage)? Clustering at O

  • Queries about weblogic server

    hi, can someone please provide answers for following queries Does Weblogic has something called ?Administration Mode? and if answer is yes does it also report web logic service as ?not running?. can we take Weblogic backup and if answer is yes what d

  • Exported .ics files unreadable by *utlook

    I have a need to export my calendar to a W*ndows machine at work, running Outlook. Outlook says that it can read .ics files, so I exported one of my calendars and tried it. In typically helpful fashion, Outlook said that there was "a problem" with my