Making BIRT see sqljdbc_auth.dll when doing integrated security database connection - java

I am using BIRT that needs to connect to a database using integrated security via a jdbc driver. When my .jar file (imported into BIRT) tries to connect to the MSSQL database, I get the following error: The driver is not configured for an integrated authentication...
My conclusion is that BIRT dimply does not see the sqljdbc_auth.dll file.
How do I make BIRT see sqljdbc_auth.dll library, other than just putting it into the BIRT's root folder? Can I issue -djava.library.path = .... somewhere within BIRT RCP?
Thanks!!

Can you post the eclipse.ini? Any vm arguments should be put after the -vmargs option on a new line. See http://wiki.eclipse.org/Eclipse.ini.

Related

java.sql.SQLException: No suitable driver found for jbdc:mysql://localhost:3306/loginDB & java.lang.NullPointerException

I am having a problem where the Eclipse IDE does not recognize the jdbc driver in the .jar file. I have already tried putting it in the build path from WEB-INF/Lib and also the build folder. I have already added the Class.forname in my project to register the driver.
This is my url to my database in mysql: "jbdc:mysql://localhost:3306/loginDB".
I am using Tomcat v9.0 server.
I'm using 5.1.49 driver version for the .jar file.
The following link will bring you to my github, where my code is for my project.
https://github.com/shari002/files/tree/master/MyResgistrationProjects
This shows how I'm registering for driver to work.
You have a typo in your connection string.
jbdc:mysql://localhost:3306/loginDB
It should be jdbc.

how to install the Pentaho Data Service JDBC Driver to my java backend application?

I am trying to connect to Pentaho data service from my Java backend API. I followed this link to download necessary JDBC driver files and got a bunch of following jar files. How do I install these jar files to my java web api? Do I just need to import all of them like a regular jar files?
Download the JDBC there.
Copy the jar in the folder [your-biserver-install-folder]/tomcat/webapps/pentaho/WEB-INF/lib.
Restart Pentaho.

where are Oracle's DMS class files?

I'm running a JBoss server (inside Eclipse), with some Hibernate mixed in. I installed Oracle's ojdbc drivers from here:
Oracle Database 11g Release 2 JDBC Drivers
I specifically downloaded the file: ojdbc6dms_g.jar, which according to the site contains instrumentation to support DMS. However when I startup my AS server, I get the following:
Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole from [Module
"com.oracle:main" from local module loader #485fcf29 (roots: /usr/local/jboss-7.1.1-
final/modules)]
when the server is trying to get a new hibernate ejb exception.
I checked Oracle's jar file and sure enough it doesn't contain the class oracle.dms.console.DMSConsole, although from the notes on Oracle's site about the jar file, it seems like the jar file should contain the DMS classes.
Can anyone point me to the correct jar file? And when I do get the right file, where should this file be installed to, particularly with regards to Eclipse and JBoss?
Update: Just found another question asking the same thing here on SO.
The missing classes are indeed in dms.jar. But as I've seen asked elsewhere finding the dms.jar file is not easy. You won't find dms.jar at Oracle Database 11g Release 2 JDBC Drivers because as noted by Oracle: dms.jar is not shipped as part of the RDBMS product. It is only available as part of the Oracle Application Server product.
I hopped onto our server and grabbed the jar file from our Oracle installation directory. We have 11g installed. With 11g you should be able to find the file here:
$ORACLE_HOME/oc4j/lib/dms.jar
I got the same error for different reason and yes it was due to missing dms.jar file. I just had to find where dms.jar file was on our Oracle Application server (Release 12.2.3) and assigned it to the CLASSPATH. And it worked. Thanks for the pointing to the missing .jar file.
Out .jar file was in $ORACLE_HOME/lib/ folder. Changed the path value as :
CLASSPATH=$CLASSPATH:$ORACLE_HOME/lib/dms.jar and it started working.
Fyi..if it helps anyone i was trying to load BI/XML publisher DATA TEMPLATE using XDOLoader utility when i got this error.
-ppemavath
i too face this problem but when i removed all database related jars and added ojdbc6 (or ojdbc7) jar then application working fine. more details please see below link.
https://community.oracle.com/thread/2388722

where is org.apache.derby.jdbc.ClientDriver?

I downloaded the jar of Core Apache Derby database engine, which also includes the embedded JDBC driver (10.9.1.0). But that jar doesn't include the .class file of ClientDriver in the jdbc package. Why is that ? Where can i find this class file ? I need this file to connect to derby database from tomcat as the server.
Please provide the download link of the complete jar so that i get the required .class file.
OK: have you looked on the Apache Derby page:
http://db.apache.org/derby/releases/release-10.9.1.0.cgi
Download db-derby-10.9.1.0-bin.zip
It contains many files, including derby.jar and derbyclient.jar (along with much documentation).
derbyclient.jar contains our friend org.apache.derby.jdbc.ClientDriver.class
#Paulsm4 is correct.
But please keep in mind also that:
org.apache.derby.jdbc.ClientDriver
which can be found inside derbyclient.jar is enough to just obtain connection to the running Derby DB server.
But if you would like to create embedded (in memory) database when obtaining connection, then you have to use different jdbc driver:
org.apache.derby.jdbc.EmbeddedDriver
which can be found inside derby.jar. Moreover, additional parameter create=true has to be passed. For example:
<property name="javax.persistence.jdbc.url" value="jdbc:derby:myApp;databaseName=myApp;create=true" />
Hope it helps somebody.

Java / MySQL on remote server

Ok, sorry if this question is stupid. I followed this tutorial: http://www.youtube.com/watch?v=E30_-pQGQXs. Now that I have it compiling in Eclipse, when I upload it to a remote server, how do I get it to work with the jdbc library?
If I try to execute Main.class on a remote server, I get
Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
How do I include the jar or get rid of this error?
You have to make sure to include the mysql JDBC driver in the classpath on the remote server.
Some app servers have a specific folder to place 3rd party files that get included in the classpath.
Are you using an app server or is this a custom application?

Categories

Resources