[英]Connecting from WebLogic 11g to SQL Server
I am unable to set up a WebLogic 11g data source to our SQL Server database. 我无法为我们的SQL Server数据库设置WebLogic 11g数据源。 Can you please help diagnose the error
你能帮忙诊断错误吗
weblogic.common.ResourceException: Could not create pool connection.
weblogic.common.ResourceException:无法创建池连接。 The DBMS driver exception was: [FMWGEN][SQLServer JDBC Driver][SQLServer]Login failed for user 'carynt\\posapp'
DBMS驱动程序异常为:[FMWGEN] [SQLServer JDBC驱动程序] [SQLServer]用户'carynt \\ posapp'登录失败
The value carynt\\posapp
is the value I specify for the user. 值
carynt\\posapp
是我为用户指定的值。 I have attempted various different "AuthenticationMethod" settings as prescribed in the docs . 我尝试了docs中规定的各种不同的“ AuthenticationMethod”设置。
My unit tests (from within the Eclipse IDE) run successfully. 我的单元测试(在Eclipse IDE中)成功运行。 However those use integratedSecurity settings .
但是,它们使用IntegratedSecurity设置 。 Is it possible to somehow use similar settings for the WebLogic datasource?
是否可以以某种方式对WebLogic数据源使用类似的设置?
Answering my own question... 回答我自己的问题...
We noticed an error in the WebLogic console logs about an unrelated class not being found. 我们注意到WebLogic控制台日志中出现错误,提示未找到不相关的类。 Our WebLogic administrator correctly diagnosed it as owing to the tweaked
java.library.path
(as suggested for using integratedSecurity ). 我们的WebLogic管理员正确地诊断出它是由于对
java.library.path
进行了调整(有关使用IntegratedSecurity的建议)。
We could not determine which of the myriad WebLogic's startup scripts was initializing the java.library.path
value. 我们无法确定无数WebLogic的启动脚本中的哪个正在初始化
java.library.path
值。 Obviously my setting of this variable was clobbering the original value. 显然,我对此变量的设置破坏了原始值。 By undoing my changes we noticed that the default
java.library.path
was the same as the Windows PATH system variable value. 通过撤消更改,我们注意到默认的
java.library.path
与Windows PATH系统变量值相同。 Therefore we 因此,我们
java.library.path
by tweaking the Windows PATH value in the startWebLogic.cmd
file startWebLogic.cmd
文件中的Windows PATH值来自定义java.library.path
integratedSecurity=true
setting in the data source definition. integratedSecurity=true
设置。 Paydirt! 财源!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.