`

在WebLogic10 部署系统遇到的问题的列表

 
阅读更多

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规范。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics