How do we create a jndi connection in crystal reports XI
how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1
You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
If you are still having issues then post another message.
Geoff
Similar Messages
-
How to configure jdbc/jndi connection in crystal report 10
Post Author: effy
CA Forum: Data Connectivity and SQL
i have tried to configure jdbc/jndi connection , i have both
drivers data base side and crystal report side but i
can't configure it. so please help if u know
something.Sorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
.. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
.. but none ... -
How to setup a JNDI connection from Crystal report 12 (2008) ?
I've CR 12 (2008)
I've a report actually bind to datasource via DSN to a sql server.
Now we need to migrate this connection to JDBC.
So i downloaded microsft sql driver for jdbc and copied as
C:\Program Files (x86)\Business Objects\Common\4.0\java/lib/external/sqljdbc4.jar
I edited CRConfig.xml. adding this full path and file name at <Classpath>
The parameters i entered are:
URL: jdbc:sqlserver://10.1.2.40:1433;DatabaseName=CPR;username=selyon;password=......
class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
in the second page i entere my usernmae, my password and the db name,
but when click on 'finish' CR tell me 'unable to fine JNDI driver'.
What's the problem nowSorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
.. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
.. but none ... -
How can I create a database connection to Cloudscape database in 9iJDeveloper?
How can I create a database connection to Cloudscape database in
9iJDeveloper?
thanks.Hi,
I assume you have a JDBC driver for Cloudscape.
1. In the IDE System Navigator, expand the Connections Node.
2. Right-click on the Database Connection and choose New
Connection .. .
3. Click pass the welcome screen.
4. In Step 1, name your connection and choose "3rd party JDBC
Driver"
5. Follow the rest of the steps and provide username/password,
class name and URL, test and you should be ready to go.
Good luck. -
Is there an alternative way other than manually entering PHP code?
Thanks, It works. Author of the article politely says what many of us have to say to Adobe when they make "improvements" - WTF, Adobe???
From: Ben Pleysier <[email protected]>
To: Jon Lane <[email protected]>
Sent: Saturday, January 31, 2015 1:44 AM
Subject: OK now that there is no option to reveal "database" panel in DW CC, how do I create a database connection and build my phpmysql pages?
OK now that there is no option to reveal "database" panel in DW CC, how do I create a database connection and build my phpmysql pages?
created by Ben Pleysier in Dreamweaver support forum - View the full discussionWeb development tutorial
Deprecated Server Behaviors for Dreamweaver Creative Cloud
WebAssist A better, more secure and future proof way MySQLi Server Behaviors
Dreamweaver extension
WebAssist If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7148099#7148099 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7148099#7148099 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following" Start a new discussion in Dreamweaver support forum by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624. -
How do I connect from Crystal Report version XI to Oracle 10G express?
I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
- Service: host:1521/XE
- Username: username
- Password: password
Then when I tried to connect the crystal report crashes always.
Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
Please advise...Thank you bala,
First, How I should start the Listener on the database server?
Listener.ora content:
SID_LIST_LISTENER =
+(SID_LIST =+
+(SID_DESC =+
+(SID_NAME = PLSExtProc)+
+(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
+(PROGRAM = extproc)+
+)+
+(SID_DESC =+
+(SID_NAME = CLRExtProc)+
+(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
+(PROGRAM = extproc)+
+)+
+)+
LISTENER =
+(DESCRIPTION_LIST =+
+(DESCRIPTION =+
+(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
+(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
+)+
+)+
DEFAULT_SERVICE_LISTENER = (XE)
How to configure the tnsnames.ora on the client side?
tnsnames.ora content:
XE =
+(DESCRIPTION =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
+(CONNECT_DATA =+
+(SERVER = DEDICATED)+
+(SERVICE_NAME = XE)+
+)+
+)+
EXTPROC_CONNECTION_DATA =
+(DESCRIPTION =+
+(ADDRESS_LIST =+
+(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
+)+
+(CONNECT_DATA =+
+(SID = PLSExtProc)+
+(PRESENTATION = RO)+
+)+
+)+
ORACLR_CONNECTION_DATA =
+(DESCRIPTION =+
+(ADDRESS_LIST =+
+(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
+)+
+(CONNECT_DATA =+
+(SID = CLRExtProc)+
+(PRESENTATION = RO)+
+)+
+)+
Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
Thanks in advance... -
How do i create 2 parameter pages for 1 report?
Hi,
I want to make a purchase order report. first: i need a parameter page to ask how many items that you want to order. second, once user enters a number(let's say 5), i want to have anoter parameter page show 5 empty fields that user can enter 5 items' barcode#, once they entered barcodes, the report will show these 5 items info.
my difficulty is how do i create 2 parameter page for 1 report?
thank youmy question
1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
2- how can create manual process to fetch row into specific items in page ( i tray these code
SELECT col1, col2, col3 ....
INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
FROM table
WHERE id = :P_id ) but no data retrieve .
I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
ORA-01403: no data found : Unable to fetch row multiple automated row fetch
On your second question, the manual process should work provided:
P_ID has a value when the process executes. You can do it this way:
i. Make this process as a on-load After/Before header process
ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes) -
Configure JNDI and deploy crystal report in Infoview
Hi all,
I am trying to create a JNDI context and use it while generating a
crystal report.Now this report is deployed in Business Objects XI R3.1 Edge repository so users can view them through Infoview. The main reason I wanted to use JNDI is so I dont need to specify the database connection credentials in every report.
Issue is that I am not able to figure out the process to achieve this. I created a JNDI in tomcat as per instructions in the one of the SAP notes but there is no information of how to configure the same in CMC / Infoview. If I can get information on how to
1. configure crconfig.xml (if need be) for jndi or specify jndi while creating connection in crystal report
2. configure the JNDI in CMC or Infoview so that we dont have to specify the db connection credentials for every report
that would be great.
we are using crystal reports 2008 sp1.
thanks
Joe.
Edited by: Joe P Kumar on Jan 31, 2011 5:30 PMI guess I found the issue. I was missing weblogic.jar in the classpath. After adding this, it worked.
Just noting the steps so anyone who comes here could be benefited. This is for Weblogic app server using Oracle 10g and Crystal reports 2008
1. Open CRConfig.xml in C:\Program Files\Business Objects\common\4.0\java
2. Inside <DataDriverCommon> and <Classpath> add the path of your ojdbc and weblogic jars
3. For the JDBC tag, the entry would be like. The <JNDIUserName> tag should reference your weblogic app server user. This is generally the userid you would use to login to weblogic console.
<JDBC>
<CacheRowSetSize>100</CacheRowSetSize>
<JDBCURL>jdbc:oracle:thin:<db_user_name>/<db_pwd>@<server_where_db_runs>:1521/<SID></JDBCURL>
<JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
<JDBCUserName><db_user_name></JDBCUserName>
<JNDIURL>t3://localhost:7001</JNDIURL>
<JNDIConnectionFactory>weblogic.jndi.WLInitialContextFactory</JNDIConnectionFactory>
<JNDIInitContext>/</JNDIInitContext>
<JNDIUserName>weblogic</JNDIUserName>
<GenericJDBCDriver>
<Default>
<ServerType>UNKNOWN</ServerType>
<QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
<StoredProcType>Standard</StoredProcType>
<LogonStyle>Standard</LogonStyle>
</Default>
<Sybase>
<ServerType>SYBASE</ServerType>
<QuoteIdentifierOnOff>OFF</QuoteIdentifierOnOff>
<DriverClassName>com.sybase.jdbc2.jdbc.SybDriver</DriverClassName>
<StoredProcType>Standard</StoredProcType>
<LogonStyle>MySQL</LogonStyle>
</Sybase>
</GenericJDBCDriver>
</JDBC>
4. Open Crystal reports designer and when you create a new connection, choose JDBC / JNDI
5. In the pop-up choose JNDI (you will see the values for Provider URL, username and context as how you specified in the CRConfig.xml file). Specify the password for weblogic user
6. Hit next and it should show you the available jndi
7. Choose a JNDI and create the report
8. Enjoy. -
Connecting to crystal report via JDBC
Hi,
I am new to Crystal Reports. I want to connect to MSSQL Database using JDBC drivers. I was wondering if there is a way I can use JDBC drivers for connection with Crystal Reports when designing the report ?
Thanks
SherifHi Sheriff,
I am not aware of CR 9 as it is out of support. But in CRXIR2 and CR2008 you can simply do it while creating new report. In the wizard you just need to select JDBC(JNDI) option under Create new connection.
After that just specify the connection url and JDBC class name.
I would suggest you to upgrade your product to CR2008 as it has excellent new features which would realy help you with the same.
Regards,
Nilesh Benke -
Has anyone Connected a Crystal Report directly to a Microsoft Project file (MPP)?
Post Author: Brian Morris
CA Forum: Data Connectivity and SQL
Iu2019m aware I can save Microsoft Project Files (MPP) to an Access Database, Excel document etc. and there are ways to connect to a Microsoft Project Server.
I wanted to know if anyone has managed to connect directly to one though. Currently we use MPPs to report project status and other deliverables, and itu2019s been an annoyance to have to save the project file then export the data over into a new excel document when ever we have changes (since not all users have project or need all the data in the file).
Preferably, a user should be able to save that project file and anyone that has the Crystal report should be able to run the report against the MPP file. In addition to this, it would be extremely helpful in getting a formalized and nicely formatted report when running reports against rational and MMP files, thus giving an alternative from SODA reports in Microsoft word, which doesnu2019t always work well.
Thanks!Post Author: Brian Morris
CA Forum: Data Connectivity and SQL
Ok, I answered my own question on the connection issue, but I'm having issues with the predefined fields that enter into the report. The Database Expert shows the correct table names, but when I select them and look at the fields, they are all showing fields that are part of the "Project" table. when I use "Add Command" and use SQL to do a "Select * From TableName" ,where TableName is the name of the respective table, I get the data I'm looking for. Has anyone else run into this error? Is the error on Crystal Reports side or the Data provider's OLE DB driver? Has anyone with a fully patched system encountered the same errors?
Current SetupCrystal Version: 11.0.0.1282CR Professional; Product Type:FullOLE DB Driver: Microsoft Project 10.0 OLE DB Provider
I have pasted my findings below, hopefully other people won't have the same issues I did trying to find this information. if anyone else wants to test and see if they get the same issues I did it would be greatly appreciated.
Connecting a Crystal Report XI to a Microsoft Project File (MPP)
Prerequisites (as I know them)
- Have an installation of Crystal Reports on the machine (a given)
- Have Microsoft Project 2000/2003 installed OR the Microsoft Project OLE DB provider which is installed with Microsoft Project (NOTE: Microsoft 2007 supposedly no longer supports OLE DB and requires an OLAP cube be made or a SOAP connection be used, which I donu2019t deal with personally)
Creating the connection
Start Crystal Reports
Click u201CBlank Reportu201D on the start page
in the u201CDatabase Expertu201D window, under u201CAvailable Data Sourcesu201D, Select u201C+u201D next to u201CCreate New Connectionu201D
Select the u201C+u201D beside u201COLE DB(ADO)u201D
If a u201COLE DB (ADO)u201D window does not come up, double click u201CMake New Connectionu201D
In the u201Cprovider:u201D box Select the u201CMicrosoft Project 10.0 OLE DB Provideru201D
The name may be different depending on the version of project you install and the patch you have on the machine
Select u201CNext >u201D
Under u201CDatabase:u201D copy/paste in the path and project file name
I donu2019t believe the other fields u201CData Source:u201D, u201CUser ID:u201D, or u201CPasswordu201D need to be filled out, and in fact, I got an error when entering in data into them
Example: u201CC:\Projects\Project Name\Current Schedule.mppu201D
Select u201CNext >u201D
In the Advaned information window, verify the project Name is the path of the project.
I have not found the use of u201CEnterprise Modeu201D (default: 0), u201CAlways Loadu201D (default: 0), u201COLE DB Servicesu201D(default: -5), or u201CEnterprise RUID Listu201D (default: blank), removing them or changing them did cause errors though.
Click u201CFinishu201D
Adding in Tables and extracting data
You now have a connection to the project File you listed. There is an issue Iu2019ve found though that all the tables you see listed are filling their fields in from the u201CProjectu201D Table, rather then their respective tables (Example: u201CAssignmentsu201D is pointing at u201CProjectu201D rather then the obvious connection u201CAssignmentsu201D). You can, however, use the u201CAdd Commandu201D and select the table you want with just a little SQL code:
Select *
From Assignments
After creating the command, highlight it and hit u201CF2u201D. You should be able to edit the name and change it from u201CCommandu201D to something more meaningful. At the current time Iu2019m unsure if the issue with the default tables all pointing toward the project table is an error on the provider side or Crystal Reports end, and if one of the new patches will fix it. I will update this document accordingly when I have more information and do more testing. I will note however, there is no way to change which table these preset fields point to.
Thank you for your time. -
Database Connector Error when I connect SAP Crystal Report to dbase
When I connect SAP Crystal Report to dbase the error is "Database Connector Error", only when exist a field the type memo. I need to used this type of field, somebody that known how can I resolve this problem or some idea?
Thanks a lot for your help.Hi,
there are sevaral SAP Notes for your problem. Can you specify the databaseof the source?
i.e. MS SQL Server -> Note 1212769
dbase -> Note 1209347
regards
-Phil -
Why we need ABAP if we can connect With Crystal Reports to SAP R/3
Hi,
I am new to Crystal reports.I came to know that we can connect SAP R/3 by using SAP InfoSet,SAP Table Cluster and Function connectivity in Crystal Reports.So we can generate reports for SAP R/3 database with out need of ABAP.So why we need to go ABAP module.Is there any disadvantages if we dont use ABAP to generate reports or we can use always Crystal Reports to generate Reports for R/3 database?Hi,
it is correct that you can built a Crystal Report without the need to use ABAP, but we have lots of customers that have invested over the years into ABAP Routines and Crystal REports is able to leverage those as well. So with Crystal Reports you have the choice to leverage existing ABAP Functions as a source for reporting - which might help to leverage complex processing on the backend - or to use InfoSets and tables.
regards
Ingo -
Connection between Crystal Report and SAP ECC
Hi. can you help me please.
I'm testing the connection between Crystal Report and SAP ECC. I tried using the tables,
but by making the links between foreign keys does not bring data. The other way I tried was using an ABAP function module,
but using this way, Crystal will only works like a Presentation Layer because all the work was did it in ABAP;
besides that shows the limitation that I can not pass as input a table.
what is the best practice for reporting on SAP ECC using Crystal Report?
Thanks.Hi,
Crystal Reports is able to leverage tables, ABAP functions, SAP query and InfoSets.
what is the issue when using the tables ?
ingo -
A bug in creator when creating jdbc jndi connection
Hi,
I am using sun java studio creator for jdbc jndi connection. The syntax is
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mydb");
conn = ds.getConnection();
It's failed. Once I change to ctx.lookup("jdbc/mydb") and the connection is created.
Once deployed to tomcat, it seems only java:comp/env/jdbc/mydb is working.
The full path(java:comp/env/jdbc/mydb) seems right from my google search.
Why creator using jdbc/mydb? Is it a bug to creator?
Thanks,
JieI mean a resource reference in web.xml file that looks like this:
<resource-ref id="ResourceRef_1103225373500">
<res-ref-name>DBConnection</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
where DBConnection is the resource alias I mentioned before:
DataSource ds = (DataSource)ctx.lookup("java:comp/env/DBConnection");
Using WebSphere a binding between this above defined ResourceRef and JNDI mapping must be defined in a file called ibm-web-bnd.xmi. The content of this file will look like this:
<?xml version="1.0" encoding="UTF-8"?>
<webappbnd:WebAppBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:webappbnd="webappbnd.xmi" xmi:id="WebAppBinding_1" virtualHostName="default_host">
<webapp href="WEB-INF/web.xml#WebApp"/>
<resRefBindings xmi:id="ResourceRefBinding_1103225373500" jndiName="jdbc/mydb">
<bindingResourceRef href="WEB-INF/web.xml#ResourceRef_1103225373500"/>
</resRefBindings>
</webappbnd:WebAppBinding>
Obviously using WSAD all of that could be done using IDE. In your case and using Sun IDE, I am not sure. But this is basically the concept of needed mapping in order to reference your JNDI without getting an error. At least this is how we resolved the error you are encountering.
Hope that helps! -
How to close database connections in Crystal Reports
I am using the following code to connect to database. I can either pass JNDIName or I can provide values for others by leaving JNDI name empty.
If i use JNDI name, it will use a connection from the connection pool of App Server (in my case Weblogic), but it is not releasing the connection after use. Connection remains even if I logoff from the application. If i keep my max connections as 15 in weblogic, after clicking the page with crystal report 15 times all will remain active and users will not be able to login to the application.
If i use connectionString and others without using JNDI Name, it directly connects to database. So it creates a connection in database server directly without using connection pool of weblogic. If i check weblogic, it shows no connection in use as expected, but if i check database, i can see the no. of connections increasing everytime a user clicks a crystal report page.
When the connection touches the maximum allowed connection in server, every application using the same server goes down
How can I close the connection which was created for the viewing the report?
String reportName = "/reports/BankBalance.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null)
clientDoc = new ReportClientDocument();
clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
String connectString = ""; // jdbc:sybase:Tds:DBSERVERNAME:9812/DBNAME?ServiceName=DBNAME
String driverName = ""; // com.sybase.jdbc3.jdbc.SybDriver
String JNDIName = "DS_APP";
String userName = "";
String password = "";
// Switch all tables on the main report and sub reports
CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
// logon to database
CRJavaHelper.logonDataSource(clientDoc, userName, password);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
String reportSourceSessionKey = reportName+"ReportSource";
Object reportSource = session.getAttribute(reportSourceSessionKey);
if (reportSource == null)
reportSource = clientDoc.getReportSource();
session.setAttribute(reportSourceSessionKey, reportSource);
// set the reportsource property of the viewer
crystalReportPageViewer.setReportSource(reportSource);
crystalReportPageViewer.setHasRefreshButton(true);
crystalReportPageViewer.setToolPanelViewType(CrToolPanelViewTypeEnum.none);
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);the sample shows how to clear RAS and Enterprise resources after viewing report.
1. If you use unmanaged RAS - as I can see you using setReportAppServer, then remove the enterprise related stuff : instantiating and cleaning code.
The sample code is meant to give you an idea on how you can release the resources after done with viewing report. In your case all you need to do for cleaning is call close() on ReportDocumentObject. The sample will need to be modified for your requirements.
Maybe you are looking for
-
PC calendar Programs that can sync to BB
Can anyone tell me what PC calendar programs are available that will sync to BB besides Outlook? Does BB Desktop Manager have a calender built in? If so I can't find it. If not, why not? Thanks...totally frustrated with my new Curve.
-
Hi, I need to send an e-mail with pdf attachment from spool (sapscript smartforms). I use function 'CONVERT_OTFSPOOLJOB_2_PDF' and 'SO_DOCUMENT_SEND_API1'. The mail is correctly send but the pdf attachment don't visual logo... Is there a mode for exp
-
HT1918 How to change the security question if I have forgotten the answer
I have forgotten the answer to my security questions, how do I change the questions/answers?
-
Error message using norton systemworks one button scan or windoctor scan
get registry error message saying "CLSID\{4C904448-74A9-11dO-AFGE-00C04FD8DC)2}\InprocServer32" cannot find a missing file "C:\ProgramFile\Adobe\Acrobat7.0|Reader\AcroRdlf.d11" ... I had upgraded to Reader 8.1.2 from Reader 7.0 and now get this messa
-
Why itunes for windows is not working and downloads have errors
Hi, few days ago I download the actualization of itunes and from that day I can syncrnonize because itunes cant open because an error