1、在配置连接SqlServer2005数据库的数据源时,如果用JTDS驱动,那么可能会遇到以下异常:
1) Cannot load driver class: net.sourceforge.jtds.jdbc.Driver
解决办法:将jtds-1.2.5.jar复制到D:\bea\user_projects\domains\cjm_domain\lib\(路径根据实际情况调整)。 —— cjm_domain 为个人自定义的域
2) weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property.
原因: It seems that you are Along with Windows Authentication you are missing some DLL. jTDS uses Windows (NTLM) authentication instead of the usual SQL Server authentication (i.e. the user and password provided are the domain user and password). This allows non-Windows clients to log in to servers which are only configured to accept Windoes authentication.
If the domain parameter is present but no user name and password are provided, jTDS uses its native Single-Sign-On library and logs in with the logged Windows user's credentials.
解决办法: 将ntlmauth.dll文件复制到操作系统的WINDOWS\system32目录下。
You will need to update the jtds version included and at the same time use the ntlmauth.dll file included in the new version.
Step 1) Stop the server
Step 2) Download the latest JTDS version.
Step 3) Extract jtds-1.2.2.jar. Rename it to jtds.jar and replace the one in WLS_Home/Server/lib with the new one
Step 4) Extract the x86/SSO/ntlmauth.dll or x64/SSO/ntlmauth.dll (if you are using a 64 bit architecture) and copy it to C:\windows and C:\windows\system32
Step 5) Restart the server and validate the changes.
另外,在Eclipse中运行系统也会出现该异常,只要将ntlmauth.dll文件复制到JDK的bin目录即可。
2、如果系统使用Hibernate3,则可能会遇到以下异常:
1) weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Network error IOException: Connection refused: connect
原因及解决办法:Hibernate从3.0开始就采用了新的基于ANTLR的查询翻译器,而在WebLogic中使用的是antlr2.6.1.jar,无法满足该要求,需要从新版本的Hibernate中提取该jar并添加到WebLogic
的Classpath中。 将antlr-2.7.6.jar复制到%JAVA_HOME%\jre\lib\ext中。
数据源的配置:
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName"><value>spring2</value></property>
<property name="resourceRef" value="true"/>
<property name="jndiEnvironment">
<props>
<prop key="java.naming.provider.url">t3://localhost:7001</prop>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
</props>
</property>
</bean>
SessionFactory的hibernateProperties属性要增加以下属性项:
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
3、Servlet规范导致的异常:
java.lang.IllegalArgumentException: Illeagal combination - Mode.PAYLOAD and Provider<javax.xml.soap.SOAPMessage>
使用web.xml2.4的规范而不是使用web.xml2.5规范。
分享到:
相关推荐
WebLogic10配置部署手册 WebLogic10 配置部署说明书 图文并茂 手把手教程 很好用的
WebLogic10 配置 部署 JNDI 数据源
Linux系统weblogic安装部署详解
weblogic集群部署文档 weblogic集群部署文档 weblogic集群部署文档
Weblogic项目部署文档 Weblogic项目部署文档 Weblogic项目部署文档 Weblogic项目部署文档
完全webLogic_10部署说明书(详细).doc
webLogic10部署,
weblogic12c部署webservice错误问题WSSERVLET11: 无法解析运行时描述符: java.lang.IllegalStateException: MASM0001:
该文档对weblogic使用过程中,包括下载,安装,部署运营过程中出现的问题进行了描述和提供了解决方法,比如1. 包引入错误... 3 2. 乱码现象... 3 3. mime-typeType配置问题... 4 4. 应用不存在... 4 5. ...
在开发软件的时候,WebLogic服务热部署可以有效的提过开发速度,不用把时间浪费到不停的重启服务上。
WebLogic集群部署 单服务器 多服务器 资料 简单易懂的图文教程,绝对有用!!!
将应用部署到weblogic10及oracle linux遇到的问题及解决方案
weblogic 8.1部署应用程序(图解)
学会在WebLogic平台下部署Servlet与Jsp 二、实验环境 Windows XP 三、实验内容: 1、Weblogic Server的安装和Weblogic管理控制台 1)Weblogic安装 从服务器上下载server813_win32.exe安装 2)创建自己的工作区 ...
weblogic的详细部署指南,包括具体部署步骤,有详细的截图说明。还有weblogic的详细讲解
linux上的weblogic部署项目,内含weblogic的启动和部署
主要是webLogic_10的软件介绍、环境部署过程及环境搭建 主要是webLogic_10的软件介绍、环境部署过程及环境搭建
Linux系统安装weblogic及部署环境流程 1 创建用户组及用户 2 安装weblogic程序 3 建立weblogic的domain
weblogic 集群 OA系统安装与部署图文并茂!
weblogic部署图解.rar weblogic部署图解.rar weblogic部署图解.rar