java.lang.IllegalStateException:Unable to initialise endpoint. A previous call to init() failed. See

本文记录了启动Tomcat时遇到端口冲突错误的具体解决过程。通过更改配置文件中的端口号,成功解决了启动异常问题。

今天打算写一点关于SSH框架的小项目,综合复习一下最近的学习成果,启动tomCat的时候,出现了如下异常:


严重: Error starting endpoint

Java.lang.IllegalStateException: Unable to initialise endpoint. A previous call to init() failed. See previous log messages for details.

bulabula......


严重: Failed to start connector [Connector[HTTP/1.1-8090]]

LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.lang.IllegalStateException: Unable to initialise endpoint. A previous call to init() failed. See previous log messages for details.

       bulabula......

       第一个异常的意思是:无法初始化端点。前一个调用init()失败。详情见以前的日志消息。

      应该是个端口冲突问题(不知道正确不,试试再说,谁让我是菜鸟)。

      下面说的是端口8090开启失败,修改端口8090为8080( 这个可以任意,别与其他端口号冲突就行,比如我之前一直用8081)

      然后重新启动,OK。

A MultiException has 11 exceptions. They are: 1. weblogic.management.ManagementException: [Management:141266]Parsing failure in config.xml: The following failures occurred: -- Unresolved reference to ms1-cfe-dm by /SecurityConfiguration/DefaultRealm . 2. java.lang.IllegalStateException: Unable to perform operation: create on weblogic.management.provider.internal.RuntimeAccessImpl 3. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.management.provider.internal.RuntimeAccessService 4. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.t3.srvr.FinalThreadLocalService errors were found 5. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.t3.srvr.FinalThreadLocalService 6. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.t3.srvr.BootService errors were found 7. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.t3.srvr.BootService 8. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.rjvm.RJVMService errors were found 9. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.rjvm.RJVMService 10. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.protocol.ProtocolRegistrationService errors were found 11. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.protocol.ProtocolRegistrationService
最新发布
09-11
以下针对常见的 WebLogic 异常给出相应解决办法: ### java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.management.mbeanservers.runtime.internal.RuntimeServerService 此异常一般表明在运行时服务解析操作上存在问题,可能是由于配置错误、服务启动顺序问题或者 MBean 服务器初始化失败导致。 - 检查 WebLogic 配置文件(如 `config.xml`)是否存在错误配置,确保配置文件中的引用和定义都正确。 - 查看服务器日志,确认是否有其他相关的错误信息,可能存在的依赖服务未正确启动。 - 尝试重启 WebLogic 服务器,让其重新初始化 MBean 服务器。 ### weblogic.management.ManagementException: [Management:141223] The server name 116 - 7011 specified with -Dweblogic.Name does not exist.异常是因为指定的服务器名称在配置中不存在。 - 检查启动脚本或者命令行参数中 `-Dweblogic.Name` 指定的服务器名称是否正确,与 `config.xml` 中的服务器名称一致。 - 若名称有误,修改启动脚本或者命令行参数中的服务器名称。 ### weblogic.descriptor.DescriptorValidateException 如 `weblogic.descriptor.DescriptorValidateException: The following failures occurred: -- Unresolved reference to ms1 - cfe - dm by /SecurityConfiguration[ms1 - cfe - dm]/DefaultRealm` 这类异常,是配置文件中存在未解析的引用。 - 检查配置文件(如 `config.xml`),搜索相关引用(如 `ms1 - cfe - dm`),确保所有引用都正确且存在对应的定义。 - 重新部署 WebLogic 域,以确保所有配置都被正确加载。可以先停止 WebLogic 服务器,删除域目录下 `config` 目录中的 `config.xml` 文件的备份(如果有),然后启动服务器让其重新生成配置文件。 - 清理 WebLogic 的缓存目录,通常位于域目录下的 `servers` 目录中,清理后重新启动服务器: ```bash # 停止 WebLogic 服务器 # 清理缓存目录 rm -rf /path/to/your/domain/servers/*/cache # 启动 WebLogic 服务器 ``` 对于其他未提及的异常,一般可以遵循以下通用方法来解决: - 查看 WebLogic 服务器日志,日志中通常会包含详细的错误信息和堆栈跟踪,有助于定位问题。 - 检查配置文件的正确性,确保所有配置项都符合 WebLogic 的规范。 - 确认 WebLogic 版本与应用程序和依赖库的兼容性。
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值