I keep getting errors related to connection pool when I try to deploy liferay.
My connection pool seems to be setup correctly. What could it be?
If you are configuring Glassfish with SqlServer using the javax.sql.ConnectionPoolDataSource the DataSource Classname should be com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource and not what Glassfish provides: com.microsoft.sqlserver.jdbc.ConnectionPoolSQLServerDataSource
Thanks!
Related
Trying to connect to localdb using Database tab in Rider.
I adding SqlServer jTds and Rider shows this error
Connection to SunEngineDb1 failed. [08S01] Network error IOException:
.\pipe\MSSQL$LOCALDB#E65C6709\sql\query (Can not find the specified
file)
What am I missing, and how it can be solved?
It is ASP.NET Core 2.0 project with localdb database on development. If I run it it works perfectly including database connect.
Well, finally we discovered the problem. It is the mistake in the driver we provide. To have this issue fixed urgently, delete the file \config\jdbc-drivers\jdbc-drivers.xml and restart the IDE. Then, please, refresh your driver to 1.3.1.1 or just put [latest] there.
I did a fresh install of SQL 2016 RC1. Report Builder works (for paginated reports). But I can't get the Mobile Report Publisher to create a connection to from my laptop to the sql instance. When I try to connect to the server I get a "Server Error" Unable to connect to remote server. I'm running the latest preview 3 of mobile publisher. I've tried server/reportserver & server/reports for a server address, no luck. I get a different error if I uncheck the option to use a secure connection.
Any ideas?
Ok, so, the reports_preview is gone. And after lots of trial and error, the url needs to include the port:
sqlrpt16-1:80/Reports/
I had to uncheck the Use secure connection option, which probably uses https, which i didn't configure during setup.
please try connecting to the new portal url : /reports_preview.
Hope that helps!
WE are connecting to SQL server from our WAS(websphere). Connection is fine before we made the data present in SQL server encrypted and made the connection as SSL. From that onwards, we are getting SSL connection error. BUt we had installed the certificates under trusted key store in WAS console. Below is the error. Any help is appreciated. Thanks in advance.
Could not get JDBC Connection; nested exception is com.ibm.websphere.ce.cm.StaleConnectionException: [IBM][SQLServer JDBC Driver]The SQL Server login requires an SSL connection.DSRA0010E: SQL State = 08001, Error Code = 0
RAD version is 7.5.5
WAS version is Websphere Application Server 6.1
Issue resolved by installing SQL server drivers in WAS console. Not sure how it worked before encryption without drivers.
Thanks.
If you have SSL configured correctly, then I'm not sure what the following portion of the error mean:
The SQL Server login requires an SSL connection.DSRA0010E: SQL State = 08001, Error Code = 0
A StaleConnectionException is explained in the IBM link below:
http://www-01.ibm.com/support/docview.wss?uid=swg21063645
Perhaps if you paste the entire error stack we can see more clues. Is there a 'caused-by' clause for example? If this issue only occurred right after you have enabled SSL then you would also want to make sure both parties have common cipher suites.
Iam running a codeigniter application which is hosted in IIS 7.Now I need it to use MSSQL server as DBMS.But I found some difficulties with connecting to MSSQL.can anybody please provide me with a good guide about this process.
thank you..
In the database configuration file, specify the database driver.
The config file is located at application/config/database.php
$db['default']['dbdriver'] = "mssql";
Reference : https://ellislab.com/codeigniter/user-guide/database/configuration.html
We are using in our project a websphere application server and want to connect to a sql server. In our websphere we have configured a datasource and the testing of the connection in the websphere works. In our deployed application the connection does not work. We get this exception:
Caused by: com.ibm.websphere.ce.cm.StaleConnectionException: Single-Sign-On is only supported on Windows. Please specify a user name.DSRA0010E: SQL State = 08001, Error Code = 0
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:608)
at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:670)
at com.ibm.ws.rsadapter.AdapterUtil.mapException(AdapterUtil.java:2111)
at com.ibm.ws.rsadapter.spi.WSRdbDataSource.getPooledConnection(WSRdbDataSource.java:2320)
at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:1600)
at com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:2036)
at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1713)
at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2496)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1063)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:700)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:668)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:635)
at de.volkswagen.dps.server.core.database.ConnectionFactory.createDatasourceConnection(ConnectionFactory.java:45)
... 40 more
We use this driver: jtds-1.2.4.jar which we got from here
Have anybody an idea how to solve the problem?
Looks like a security issue.
With Test Connection a SSO (Single sign on) can be used, but not in the deployed app.
you need to make sure you setup a JAAS authentication alias and configure your Datasource to use it, that alias comtains the username and password to be used for authentication.
Open the Datasource in the admin console and there is a link on the right to create the JAAS alias and tHere are combo boxes to tell the datasource to use it.