讨论区 » AAS-V10企业版 »
v10启动错误
场景:通过asadmin start-domain启动一直打印...............,随后通过startserv命令启动,正常打印了jvm参数和授权信息,并且随后打印出了异常信息
日志:
Completed shutdown of Log manager service
Exception in thread "initProcessApplications" MultiException stack 1 of 3
java.lang.IllegalStateException: Service com.apusic.enterprise.server.logging.LogManagerService was started at level 0 but it has a run level of 1. The full descriptor is SystemDescriptor(
implementation=com.apusic.enterprise.server.logging.LogManagerService
contracts={com.apusic.enterprise.server.logging.LogManagerService,com.apusic.aas.internal.api.LogManager}
scope=org.glassfish.hk2.runlevel.RunLevel
qualifiers={}
descriptorType=CLASS
descriptorVisibility=NORMAL
metadata=runLevelValue={1},Bundle-SymbolicName={com.apusic.aas.main.core.aas-logging},Bundle-Version={5.1.0.SNAPSHOT}
rank=50
loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [com.apusic.aas.main.core.aas-logging [13]], State = [READY],1132817194)
proxiable=null
proxyForSameScope=null
analysisName=null
id=628
locatorId=0
identityHashCode=166219774
reified=true)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.validate(AsyncRunLevelContext.java:422)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:275)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:92)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:675)
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:54)
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:188)
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:211)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:334)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:92)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:66)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:837)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.initializeRuntimeDependencies(ApplicationLoaderService.java:327)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
at com.apusic.enterprise.v10.server.ApplicationLoaderService$1.run(ApplicationLoaderService.java:228)
at java.lang.Thread.run(Thread.java:748)
MultiException stack 2 of 3
java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.apusic.aas.resourcebase.resources.listener.ResourceManager errors were found
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:224)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:334)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:92)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:66)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:837)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.initializeRuntimeDependencies(ApplicationLoaderService.java:327)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
at com.apusic.enterprise.v10.server.ApplicationLoaderService$1.run(ApplicationLoaderService.java:228)
at java.lang.Thread.run(Thread.java:748)
MultiException stack 3 of 3
java.lang.IllegalStateException: Unable to perform operation: resolve on com.apusic.aas.resourcebase.resources.listener.ResourceManager
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:363)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:92)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:66)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:837)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.initializeRuntimeDependencies(ApplicationLoaderService.java:327)
at com.apusic.enterprise.v10.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
at com.apusic.enterprise.v10.server.ApplicationLoaderService$1.run(ApplicationLoaderService.java:228)
at java.lang.Thread.run(Thread.java:748)
分析:从java.lang.IllegalStateException: Unable to perform operation: resolve on com.apusic.aas.resourcebase.resources.listener.ResourceManager来看和listener配置有关,检查domain.xml配置是否有修改http-listener-1和http-listener-2的address地址,例如下图address地址为172.22.58.4,该地址默认为0.0.0.0用于监听服务器地址,修改后监听不到所以造成了启动失败。
解决方案:将172.22.58.4改成0.0.0.0保存并重启就可了