开发者社区 问答 正文

weblogic12C受管服务器无法启动

weblogic12C在本机上启动了Administration(已正常启动),web界面也可以访问,已在web上添加了服务器Server-1

准备启动受管服务器的时候,
[weblogic@test4 bin]$ ./startManagedWebLogic.sh Server-1 http://172.16.10.213:7002 这样启动的,
第一次启动报错:weblogic.management.ManagementException: [Management:141223]The server name Server-1 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}

这个报错我百度了一次,打开startWeblogic.sh文件找到-Dweblogic.Name 参数,但是
if [ "${WLS_REDIRECT_LOG}" = "" ] ; then

    echo "Starting WLS with line:"
    echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${LAUNCH_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}"
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${LAUNCH_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}

else

    echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${LAUNCH_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}  >"${WLS_REDIRECT_LOG}" 2>&1

然后我去找SERVER_NAME这个变量在配置中没有搜索到,所有没解决

然后第二次命令启动报错:
TIM_20181021181134

  1. weblogic.security.SecurityInitializationException: Authentication for user weblogic denied.
  2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.security.SecurityService
  3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.jndi.internal.RemoteNamingService errors were found
  4. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.jndi.internal.RemoteNamingService
  5. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.management.mbeanservers.runtime.internal.RuntimeServerService errors were found
  6. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.management.mbeanservers.runtime.internal.RuntimeServerService
  7. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.cacheprovider.CacheProviderServerService errors were found
  8. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.cacheprovider.CacheProviderServerService
    上面提示密码账号认证错误,但是输入的用户名和密码登录weblogic的控制台,却可以正常登录。运行上面的命令时,输入那个用户名和密码,就是不能启动那个服务。我自己尝试删除重建,还是依然报这个错误。百度了一些方法也无法解决。

展开
收起
liucx1201 2018-10-21 18:32:59 8639 分享 版权
阿里云 AI 助理回答

遇到这个错误 [Management:141223]The server name Server-1 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer},意味着WebLogic管理控制台没有找到名为Server-1的受管服务器配置。尽管您已经在Web界面添加了该服务器,但可能在实际的配置文件中并没有正确地注册或配置它。

解决这个问题通常需要以下几个步骤:

  1. 检查配置文件:确保config.xml(位于$DOMAIN_HOME/config/目录下)包含了Server-1的定义。您应该能看到类似于以下的条目:

    <server>
     <name>Server-1</name>
     <!-- 其他配置 -->
    </server>
    

    如果没有,请手动添加或使用管理控制台重新创建并确保保存配置。

  2. 使用管理控制台验证:再次登录到WebLogic管理控制台,确认Server-1确实已经作为受管服务器列出,并且状态显示为已配置或待启动。如果有必要,重新保存配置更改。

  3. 清理和重启:有时候,即使做了正确的修改,由于某些缓存问题,WebLogic可能仍然引用旧的配置信息。尝试清理(如删除tmp、cache等目录下的内容,注意备份重要数据),然后重启整个域(包括AdminServer)。

  4. 命令行参数检查:在您的启动脚本中,确保传递给startManagedWebLogic.sh的服务器名称与配置中完全一致。根据您的描述,看起来这部分是正确的,但仍需确认没有其他命令行参数或环境变量导致的问题。

  5. 日志分析:查看AdminServer的日志文件(如logs/AdminServer.log),可能会有更多关于为什么Server-1未被识别的线索。

  6. 权限与网络:虽然不太可能是直接原因,但确保运行WebLogic的用户具有访问和修改配置文件的权限,同时网络配置(特别是如果您指定了远程AdminServer地址)也是正确的。

如果以上步骤都未能解决问题,可能需要更详细的日志或者进一步排查特定于您环境的问题。

有帮助
无帮助
AI 助理回答生成答案可能存在不准确,仅供参考
0 条回答
写回答
取消 提交回答