2.1、WebLogic之简单配置

以下所有内容针对Weblogic12.1.1,可能也适用于其他版本。

1、第一次安装运行报错1:

Exception in thread "main" java.lang.AssertionError: JAX-WS 2.2 API is required, but an older version was found in the JDK.
Use the endorsed standards override mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/).
1) locate the bundled Java EE 6 endorsed directory in $WL_HOME/endorsed.
2) copy those JAR files to $JAVA_HOME/jre/lib/endorsed OR add the endorsed directory to the value specified by system property java.endorsed.dirs.
	at utils.ValidateJavaEE6EndorsedOverrides.validateLib(ValidateJavaEE6EndorsedOverrides.java:55)
	at utils.ValidateJavaEE6EndorsedOverrides.validateEndorsedOverrides(ValidateJavaEE6EndorsedOverrides.java:32)
	at weblogic.Server.main(Server.java:61)

 解决办法:

①、直接使用自己安装的jdk6,不用weblogic自带的(我用MyEclipse10集成WebLogic服务器,稍微配置下即可)——该方法自己试了,已经成功解决问题。

②、如果①不行,可以在jdk6目录下放2版本的jaxws和jaxb的jar文件再试试,目录为:Java\jdk1.6.0\jre\lib\endorsed,2版本的jaxws和jaxb的jar参加附件。

②、下载版本2的jaxws和jaxb,并放到WebLogic自带的jdk中,目录为:weblogic12.1.1.0\jdk160_29\jre\lib\endorsed下(2版本的jaxws和jaxb的jar见附件)——自己也是查询资料得知的办法,我试了下,不行,如果第一种办法不行,可以考虑试下。

                

2、第一安装运行报错2:

weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
	at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:960)
	at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
	at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
	at weblogic.security.SecurityService.start(SecurityService.java:148)
	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
	Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User weblogic javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User weblogic denied
	at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
	at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	Truncated. see log file for complete stacktrace

 解决办法:

①、如果使用MyEclipse集成服务器的话,注意在配置WebLogic服务器相关信息的地方,正确配置Administration的username和password,请确认检查。

②、方法①不行,请直接删除当前创建的域,然后在重新创建一个就OK了——自己采用的办法,已经成功解决问题。

②、如果上两种办法不行,可以试试下面这种办法(网上找的,不过没能解决我的问题,实在不行可以试下)。将C:\bea\user_projects\domains\base_domain\servers\AdminServer\security目录下的boot.properties文件里的username/password的值改成对应的weblogic/12345678(根据自己需要,自己设置),不必担心写成明文会泄露用户名和密码,运行一次后会自动被Weblogic用3DES加密的。再将C:\bea\user_projects\domains\base_domain\servers\AdminServer\data\下的ldap文件夹删掉(运行weblogic时会自动再次生成的).再将MyEclipse 中配置Weblogic 的用户明及密码进行对应的修改即可。然后从MyEclipse 启动Weblogic ,不会报错了。

3、删除已经创建的域:

首先,删除 $DOMAIN_HOME下的doamin目录,例如:XXX\user_projects\domains下的base_domain(就是你建的域)。

然后,检查domain-registry.xml(服务器安装根目录下),删除相应domain的描述条目。只有删除该条目,才能使用weblogic的配置向导重新创建相同名字的domain。

我的domain-registry.xml文件内容如下。 

<?xml version="1.0" encoding="UTF-8"?>
<domain-registry xmlns="http://xmlns.oracle.com/weblogic/domain-registry">
  <domain location="D:\Weblogic 10.3.6\weblogic12.1.1.0\user_projects\domains\base_domain"/>
  <domain location="D:\Weblogic 10.3.6\weblogic12.1.1.0\user_projects\domains\base_domain1"/>
</domain-registry>

 我建了两个域,所以有两个:base_domain、base_domain1,删掉你要删除的域即可。 

猜你喜欢

转载自wangyispider.iteye.com/blog/1846032