Database connection test failed in web-logic server - weblogic

I am getting below error while creating data-source to a database in weblogic server 12.
Error Cannot load driver: com.microsoft.sqlserver.jdbc.SQLServerDriver

Weblogic comes with it's own driver for sql server, weblogic.jdbc.sqlserver.SQLServerDriver which is available in the classpath. An example jdbc url for connecting using that driver is jdbc:weblogic:sqlserver://SBNSWDV63\\SSQLDV03:1433;allowPortWithNamedInstance=true
If you want to use the microsoft driver, you have to make sure the jar file containing that driver is copied to your <domain_home>/lib folder, so it's visible to weblogic.

Related

How can you connect Splice Machine with a Azure Database

I have a Java application which connects to a database in Azure SQL Server.
I have a local machine with a Splice Machine Community Edition.
What I want to do is connect my Java Application using the Splice Machine as a bridge to my SQL Server.
I've tried the connect command from splice:
connect 'jdbc:sqlserver://ServerName.database.windows.net:1433/DatabaseName;user=UserName;password=PassWordUser' AS NEW_DBNAME;
But I get this error: ERROR 08001: No suitable driver found for jdbc:sqlserver://ServerName.database.windows.net:1433/DatabaseName;user=UserName;password=PassWordUser
In theirs documentation there is a reference to a application: https://docstest.splicemachine.com/splicetools_migratetool.html but it can't get a link to download the jar that it says you can download.
Do anyone know th place for the file? or if there is a form to install the jdbc driver.
Greets,
Please download the JDBC Driver for Splice Machine from JDBC Driver Download.
You can also reference this document: The Splice Machine JDBC Driver:
Our JDBC driver is automatically installed on your computer(s) when you install Splice Machine. You’ll find it in the jdbc-driver folder under the splicemachine directory; typically:
/splicemachine/jdbc-driver/splicemachine/jdbc-driver/
You can also download the driver from our JDBC Download site:
https://www.splicemachine.com/get-started/jdbc-driver-download/.
Hope this helps.

DAL01013: Cannot connect to server

I'm trying to connect to DB2 db but getting the error:
DAL01013. Cannot create connection to server 'Unknown server' due to the following: [jcc][t4][2034][11148][3.69.24] Execution failed due to a distribution protocol error that caused deallocation of the conversation.
A DRDA Data Stream Syntax Error was detected. Reason: 0x3. ERRORCODE=-4499, SQLSTATE=58009
Assume it's something with my system. I cannot connect neither via DataStudio nor via QMF. Other users from other system can. I use same jdbc drivers. My system is Windows 7.
Is there anything else I need to adjust on my system?
Personal repository needs to be created first:
https://developer.ibm.com/answers/questions/470013/error-when-trying-to-connect-to-db2-vis-qmf/
Generally you get the reason 0x3 from error -4499 out of the IBM JDBC driver when you are connecting to a SSL port, but you have not specified sslConnection=true on your JDBC connection string. You can also get the error if your database name is incorrect (i.e. does not exist on the server), or your JDBC dirver is too old (DB2 JDBC Driver Versions and Downloads Download Fix Packs by version for IBM Data Server Client Packages)
If connecting to Db2 on Cloud, Db2 Warehouse or Db2 Warehouse on Cloud, all you should need is the sslConnection=true as the CA certificate used in these products is part of the Db2 driver package (for recent drivers anyway)
If connecting to Db2 on premise, you can specify your certificate location via the JDBC properties sslCertLocation or sslTrustStoreLocation and sslTrustStorePassword
Common IBM Data Server Driver for JDBC and SQLJ properties for all supported database products
sslCertLocation
Specifies that an application can configure the location of a trusted certificate file. For applications that have the database server certificate, sslCertLocation is the only property that is needed to be configured to instruct IBM Data Server Driver for JDBC and SQLJ to trust the certificate for SSL connections.
This property removes the need to import the certificate into a Java truststore database and related driver configurations.
Error codes issued by the IBM Data Server Driver for JDBC and SQLJ
error codes in the ranges -4200 to -4299, and -4450 to -4499 are reserved for the IBM® Data Server Driver for JDBC and SQLJ.

IBM Mobilefirst 8 with Websphere application server using oob derby database

Installed IBM Mobilefirst 8 server with WAS 8.5.5.12 using Apache derby database.
Facing below error while checking connection of datasource which are created for mobilefirst server :
java.lang.Exception: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: org.apache.derby.jdbc.AutoloadedDriver40 incompatible with org.apache.derby.jdbc.InternalDriver
Working fine with mysql database.
While this message would normally indicate that a data source implementation class was specified that does not implement javax.sql.ConnectionPoolDataSource, I don't believe that is the case here based on the classes identified in the exception message. Another possible cause is that multiple copies of the Derby JDBC driver are on the classpath at the same time. It should be noted that WebSphere Application Server traditional ships a copy of the Derby JDBC driver. If you do have two copies, is it possible to switch to only using the one that is shipped with the application server? If that is not possible, you might be able to work around this by selecting the option to isolate your JDBC provider.
For use with MFP 8.0 standalone server with Websphere Application Server 8.5.5.5, use DB2,MySQL or Oracle

DB2 driver filename issue with Server configuration tool

After installing a DB2 + WAS Liberty profile and the Mobile First server, we are trying to follow the Installing MobileFirst Server administration with the Server Configuration Tool steps.
At step 6, we're attempting to connect to a DB2 (v10.5) running on localhost:50000. After entering the hostname/port values - the message displayed in the panel is: "Invalid driver jar file name."
screenshot:
http://i.stack.imgur.com/LAoAx.png
DB2 V10.5
IBM MobileFirst Platform Server Configuration Tool 7.1.0.00.20150807-0630
IBM WebSphere Application Server Liberty Core - v8.5.5.7
IBM WebSphere SDK Java Technology Edition v7.0 for Libery 7.0.9.10
db2jcc4.jar was referenced during installation of the MobileFirst server components. Confirmed db2jcc4.jar and db2jcc_license_cu.jar exist in the WAS Liberty server profile
Anybody run into this?
Suspecting:
The Server Configuration tool isn't picking up the correct db2 jdbc jar file name .. bug?
The db2 driver jar name is misconfigured in a config file somewhere
Any pointers?
You need to re-enter the DB2 JDBC driver directory in the Server Configuration tool. Scroll down on the scren of the 'Database Settings' panel to have the text field to enter the directory.

How to deploy the war in remote Weblogic server with eclipse.

I am using weblogic 9 and i tried connecting to a remote server.
But first of all it is asking for Weblogic Home. Since i am connecting to a remote system how can i did not had the weblogic home directory on my system.
Again just to test i also installed the Weblogic on my local system and tried accessing the remote server.
I provided all the necessary values. It detected the running server.
But when i tried deploying a JSF web app it gave an error.
It is as follows:-
Module named 'HelloWorldJSF' failed to deploy. See Error Log view for more detail.
weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'E:\eclipseWorkspace.metadata.plugins\org.eclipse.core.resources.projects\HelloWorldJSF\beadep\remote_weblogic\HelloWorldJSF.war' to 't3://192.168.218.51:7001'
Exception received from deployment driver. See Error Log view for more detail.
If i try to run the same JSF web app in my local server it is working fine.
can you please let me know how to configure the remote server connection in eclipse without having the Weblogic Home successfully.
Thanks a lot indeed!
Mithun