Changing the Datasource of example CMP from Weblogic

I got an error message while running a successfully (?) deployed
Weblogic example bea\weblogic700\samples\server\src\examples\ejb20\basic\containerManaged.
The error message is like this when I run the "ant run":
run:
[java]
[java] Beginning containerManaged.Client...
[java]
[java] The client was unable to lookup the EJBHome. Please make
sure that you have deployed the ejb with the JNDI name
ejb20-containerManaged-AccountHome
on the WebLogic server at t3://localhost:7001
[java] Unable to look up the beans home: Unable to resolve
'ejb20-containerManaged-AccountHome' Resolved: ''
Unresolved:'ejb20-containerManaged-AccountHome
BUILD FAILED
D:\bea\weblogic700\samples\server\src\examples\ejb20\basic\containerManaged\build.xml:121:
Java returned: 1
The ConnectionPool and DataSource have been set through the Weblogic
Console.
Such that
Name: MySQLConnectionPool
URL: jdbc:mysql://localhost:3306/MyDatabase
Driver: Classname com.mysql.jdbc.Driver
Properties: user=sa
password=
Name: MySQLTxDataSource
JNDI Name: MySQLTxDataSource
Pool Name: MySQLConnectionPool
Then I modified the weblogic-cmp-rdbms-jar.xml, such that
<!-- the following line actually should be the JNDI name -->
<!-- data-source-name>examples-dataSource-demoPool</data-source-name
-->
<data-source-name>MySQLTxDataSource</data-source-name>
Then I got the above error. If I change the DataSource back to
examples-dataSource-demoPool. Everything works fine.
I could not find where the problem is. Could anyone give me a clue.
Thanks
Ruiwu Tao

Please re-post if this is still an issue but first update to CR4E 2 and retest

Similar Messages

  • Possible to change the datasource from a business-view to a Sql Command ?

    Hello,
    When a business view contains a lot of elements it takes a while just to open the report.
    We'd like to keep the BV as the dictionnary, but,
    once the report design completed,
    we'd like to disconnect the business view and replace it by the Sql command which can be seen in the menu option 'show SQL query'.
    Is it possible via the RAS sdk ?
    Did somebody experience this ?
    How to proceed ?
    Thanks a lot
    Alain

    Hi Ted,
    I'm thinking opening a Case for this problem of opening reports based on a big BV.
    We can't really reduce the BV, since it is the dictionnary and we need the whole thing...
    I'm wondering why it is impossible to change the Datasource if the tables and fields underneath are identical.
    Is it impossible to change the fields' mapping ?
    The other solution, as you suggest, is to create a report from scratch, create a new Datasource with the Sql command format, and rebuild the report... I agree it looks like a big job...
    Do you know if it is possible to export the report in XML for instance, change the XML, and then re-import ?
    Thanks for your Help.
    Alain

  • How to change the datasource from one server to another server?

    i need to change the datasource from development environment to production server. i had configured the JNDI informations like the following in the 'context.xml':
    <Context path="/RFT" docBase="RFT" reloadable="true">
    <Resource
    auth="Container"
    type="javax.sql.DataSource"
    driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    validationQuery="select 1"
    name="jdbc/datasource"
    username="sa"
    password="$m1sbag$"
    maxIdle="-1"
    maxActive="0"
    maxWait="5000"
    url="jdbc:microsoft:sqlserver://172.24.151.149:1433;databaseName=Projectgold" />
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>
    and in 'web.xml' included the following code:
    <resource-ref>
                         <res-ref-name>jdbc/datasource</res-ref-name>
                         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    and mentioned the JNDI Connection Name in the .rpt file as 'jdbc/datasource', but still getting the same connection which one is configured during the report design. need a help to resolve this...
    Thanks,
    Ram

    eventhough it's working fine. I may have deployment problem. Anyway thanks for the reply.
    Regards,
    Ram

  • How to change the default IDOC basic type from CREMAS05 to CREMAS04.

    Hi All,
    How to change the default IDOC basic type from CREMAS05 to CREMAS04 when sending Vendor Master Data.
    When I generate partner profile, the system will add the latest version of IDOC type which is CREMAS05 to the Outbound message. In my project, I'm asked to use CREMAS04.
    I want to use BD14 to send master data directly, but the program will generate IDOC using CREMAS05. Is there a way that I can change it to CREMAS04? And also for using Change Pointers, I want to use the report RBDMIDOC, but i have the same problem.
    Thanks
    Sai Krishna

    execute WE20 and edit the outbound parameters
    here is a pretty good example: http://documentation.softwareag.com/webmethods/sapr3_gateway/sap231/pages/sapdist.htm
    Edited by: Jürgen L. on Sep 7, 2011 9:49 PM

  • Changing the datasource of a Crystal Report to a Oracle DB using TNS

    I have a problem trying to change the datasource of a crystal report. In the new connection I want to connect to a Oracle DB using TNS.
    Without TNS it's finally working flawlessly with the following code:
         private static void switch_tables(DatabaseController databaseController) throws ReportSDKException {
              // Declare the new connection properties that report's datasource will be switched to.
              final String DBUSERNAME = "user";
              final String DBPASSWORD = "secret";
              final String SERVERNAME = "jdbc:oracle:thin:@1.1.1.1:mysid";
              final String URI = "!oracle.jdbc.OracleDriver!jdbc:oracle:thin:{userid}/{password}@1.1.1.1:mysid";
              final String DATABASE_NAME = "mysid";
              final String DATABASE_DLL = "crdb_jdbc.dll";
              final String SCHEMA_NAME = "SCHEMA.";
              // Obtain collection of tables from this database controller.
              Tables tables = databaseController.getDatabase().getTables();
              // Set the datasource for all main report tables.
              for (int i = 0; i < tables.size(); i++) {
                   ITable table = tables.getTable(i);
                   // Keep existing name and alias.
                   table.setName(table.getName());
                   table.setAlias(table.getAlias());
                   // Change properties that are different from the original datasource.
                   table.setQualifiedName(SCHEMA_NAME + table.getName());
                   // Change connection information properties.
                   IConnectionInfo connectionInfo = table.getConnectionInfo();
                   // Set new table connection property attributes.
                   PropertyBag propertyBag = new PropertyBag();
                   propertyBag.put("Trusted_Connection", "false");
                   propertyBag.put("Server Name", SERVERNAME); //Optional property.
                   propertyBag.put("Connection String", URI);
                   propertyBag.put("Database Name", DATABASE_NAME);
                   propertyBag.put("Server Type", "JDBC (JNDI)");
                   propertyBag.put("URI", URI);
                   propertyBag.put("Use JDBC", "true");
                   propertyBag.put("Database DLL", DATABASE_DLL);
                   connectionInfo.setAttributes(propertyBag);
                   // Set database username and password.
                   // NOTE: Even if these the username and password properties don't change when switching databases, the
                   // database password is not saved in the report and must be set at runtime if the database is secured.
                   connectionInfo.setUserName(DBUSERNAME);
                   connectionInfo.setPassword(DBPASSWORD);
                   connectionInfo.setKind(ConnectionInfoKind.SQL);
                   table.setConnectionInfo(connectionInfo);
                   // Update old table in the report with the new table.
                   databaseController.setTableLocation(table, tables.getTable(i));
    I just call this method with the DatabaseController from a ReportClientDocument instance.
    How do I need to change the connectionInfo to do the connection using TNS?

    Please re-post if this is still an issue but first update to CR4E 2 and retest

  • Can I edit the rpt file & change the datasource before loading the report?

    We are an ISV and our application has a lot of reports.  Our reports use a SQL Server database as the data source and each SQL Server at our customer sites has a different name.
    In our testing we have determined that ReportDocument.Load tries to connect to the SQL Server that is saved in the RPT.  If it can't fine the SQL Server saved in the RPT the load take about 60 seconds while it is waiting for the SQL Server Connection to time out.
    We are using the Visual Studio 2008 version of Crystal Reports.  This did not seem to be a problem with VB6/CR8.5.
    We would like to edit the RPT and change the data source to the appropriate SQL Server before we call ReportDocument.Load.
    Is it possible to edit the rpt file and change the data source before loading the report?
    Or is there some way to tell Crystal not to try connecting to the DB
    during the report.load?
    In our case we will NEVER use the data source that is saved in the RPT, we will always change the data source using ApplyLogOnInfo.
    Thanks

    HI Todd,
    You Can Not edit the report document before ReportDocument.Load() because if you dont load the report then you dont have anything to Edit
    But as far as changing the datasource is concerned you can change that at runtime.
    For changing the datasource following code will help you if both databases have a same schema :
    Code for changing the database
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    crConnectionInfo.ServerName = "SERVER";
    crConnectionInfo.DatabaseName = "DATABASE";
    crConnectionInfo.UserID = "USERID";
    crConnectionInfo.Password = "PASSWORD";
    // Loop through the ReportObjects in a report and find all the subreports
    foreach(ReportObject crReportObject in crReportDocument.ReportDefinition.ReportObjects)
         // Check the kind of the ReportObject, if it is a subreport
         // proceed. If not skip.
         if(crReportObject.Kind == ReportObjectKind.SubreportObject)
              // Get the SubReport in the form of a ReportDocument
              string sSubreportName = ((SubreportObject)crReportObject).SubreportName;
              ReportDocument crSubReportDocument = crReportDocument.OpenSubreport(sSubreportName);
              // Use a loop to go through all the tables in the main report
              foreach(Table crTable in crSubReportDocument.Database.Tables)
    // Get the TableLogOnInfo from the Table and then set the new
    // ConnectionInfo values.
    TableLogOnInfo crLogOnInfo = crTable.LogOnInfo;
    crLogOnInfo.ConnectionInfo = crConnectionInfo;
    // Apply the TableLogOnInfo
    crTable.ApplyLogOnInfo(crLogOnInfo);
    // Set the location of the database. This value will vary from database to
    // database.
    crTable.Location = "DATABASE.OWNER.TABLENAME" or crTable.Locations;
    The sample for doing this is available on support site.
    Thanks,
    Prasad

  • HT1498 Hi, Is it possible to change the language when renting movies from apple TV?

    Hi, Is it possible to change the language when renting movies from apple TV?

    It depends on how the java code is gnerated. If for example months are given with fixed array .... then it will only be english
    But then agin you have the source code (.java files) open all java files in the oracle.forms froject and alter to your language then recompile and reacreate the jar (easily done with Jdeveloper)

  • Changing the datasource of LO cockpit inR/3..need a backup plan

    Hi gurus,
    i am going to change the datasource in production system i have done everything in Dev and QAs but my client is asking for a backup plan if something goes wrong.
    like if the transport fails he want everthing to normal without effecting the setup of deltas and data in BW
    can somebody suggest me what i can do as a backup plan if something goes wrong.
    thanks and regards
    neelu

    Hi Neel
    If something goes wrong and it mess up your deltas in Production system then what is the backup plan?
    This is what I think -
    If your data source is LO cockpit extractor then ensure following -
    Before your R/3 transports ,stop V3 batch job .
    Lock the users (transaction lock) ,
    Stop batch jobs that will update base tables of extracor
    Drain the delta queue into BW till you get 0 LUWs in RSA7 for that datasource in R/3 system.
    Activate the last request in ODS and also send the data into Infocube . Now you have all data till that time into BW.
    Import your transports. Then execute V3 job in R/3 and run Info package from BW .
    If something is messed up then immdiately push another transport that will repair it .Then  do Init without data transfer and resume deltas.
    For other extractors just ensure to Drain the delta queue into BW till you get 0 LUWs in RSA7 for that datasource in R/3 system.(I assume that you will take care of batch jobs /transactional update - they should be stopped for any extractor)
    Hope this plan helps you .
    Please let me know if you still have questions.
    Best of luck
    Pradip

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

  • HT5787 My apple id has been hacked. hacker has changed all information in the apple id so I can not change the password. Account information from the apple id created is still in my mail. How do I regain apple id. Thanks

    My apple id has been hacked. hacker has changed all information in the apple id so I can not change the password. Account information from the apple id created is still in my mail. How do I regain apple id. Thanks

    Contact Apple support: Apple ID: Contacting Apple for help with Apple ID account security

  • HT201318 I registered my apple ID and Icloud with a US address, and live in Switzerland. I do not own a US credit card. Now that I need to buy more storage with my swiss credit card, I can't change the country's billing address from the US to my swiss one

    I registered my apple ID and Icloud with a US address, and live in Switzerland. I do not own a US credit card. Now that I need to buy more storage with my swiss credit card, I can't change the country's billing address from the US to my swiss one. HELP PLS?

    Did you actually watch the movie? You get 30 days in which to view it and if you didn't watch it, that could be why you are getting that message. If you have watched the movie and you're sure that is has expired by now, contact iTunes Store Support and seek their help.
    Change the country in the upper left. - and click on Purchases, billing and redemption to proceed.
    https://getsupport.apple.com/Issues.action

  • I am trying to change the tempo of a loop from Garageband.

    Hi,
    I am trying to change the tempo of a loop from garage band. I have seen video tutorials where people would do this from just below their tabs in their editor. However I cant get that option to come up.
    Also, I have tried using the Apple Loop utility, and I can change the BPM at the bottem but then it wont let me save the file.
    I would prefer to change the tempo in soundtrack pro but at this point I will try anything.
    Thx for listening.

    Left pane, Project Tab. Scroll down to the bottom and find tempo and key settings. These will control any loops in your project.

  • How do I change the name of my iMac from my wife's name to our surname?

    How do I change the name of my iMac from my wife name to our surname?

    System Preferences - Sharing - Change the name of the computer in the Computer Name box.

  • Can you change the extensions in Adobe Muse from .html to .htm?

    Can you change the extensions in Adobe Muse from .html to .htm?
    I'm updating an old site where the extensions for the pages were all.htm. This means that when I upload the site index.htm is not being over written by index.html.

    Hi,
    It is not possible to change the extension in Muse at the moment. You can export the site as HTML and change the extensions outside the Muse.
    Regards,
    Aish

  • How do i change the time line in Au from time since recording start to the actual time?

    how do i change the time line in Au from time since recording start to the actual time? I have a recording that was started at 10:00 but obviously in Au it starts at 0:0:00. Basically i want to time shift this to 10:00:00

    In the Properties panel, modify the Start Time parameter.

Maybe you are looking for

  • How to filter the data

    Hi this is my code in which vkorg is compulsory. DATA: ITAB_VBAK TYPE TABLE OF VBAK,       WA_VBAK TYPE VBAK. DATA: ITAB_VBAP TYPE TABLE OF VBAP,       WA_VBAP TYPE VBAP. DATA: P_VKORG TYPE VBAK-VKORG,       P_KUNNR TYPE VBAK-KUNNR,       P_VBELN TYP

  • Everything on webpage loads except phone support number

    Using Firefox 3.6.13 - everything on page loads & displays except for a telephone number in the middle of the page. The other numbers display, just missing in the one spot. Webmaster deleted & hard coded the page again, but number still not showing i

  • Get Info replaced with Play/Pause

    So, this new update moves Right-click->"Get Info" 3 rows down from where it was, to put a "Play/Pause" button. Now I to move my mouse more every time I have to change stuff in a song. And I change a lot and it's getting annoying that it starts playin

  • Browser crashing on 5230

    Greetings! I started experiencing strange behaviour  with my 5230 today. The web browsers is randomly crashing  - at least I think it can be called crashing. When I'm surfing web it sometimes just closes unexpectedly (in the middle of loading the pag

  • Scrolling component into view programmatically without using javascript

    Hi, Is it possible to scroll an adf component into view programmatically without using javascript? I know of <af:scrollComponentIntoViewBehaviour> that can be added to a command component , but is there a way to do that programmatically in a bean? Pr