我已尝试将wso2 EI 6.5.0和6.6.0以及MI 1.0和1.1.0产品安装为Windows服务。在检查runConsole.bat
本身时,将引发批量异常。
[如果有人遇到相同的情况,意味着要帮助我摆脱那些例外。
6.6.0例外
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| Details:
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| Problematic reference = Reference[name = serverConfigurationService, interface = org.wso2.carbon.base.api.ServerConfigurationService, policy = dynamic, cardinality = 0..n, target = null, bind = setServerConfigurationService, unbind = unsetServerConfigurationService]
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| of service component = org.wso2.carbon.crypto.impl
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| component implementation class = org.wso2.carbon.crypto.impl.internal.CryptoImplComponent
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| located in bundle with symbolic name = org.wso2.carbon.crypto.impl
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| bundle location = reference:file:../plugins/org.wso2.carbon.crypto.impl_1.1.2.jar java.lang.reflect.InvocationTargetException
INFO|wrapper|Service "WSO2 Carbon"|20-02-13 12:26:50|Trigger found: Exception in line:
INFO|wrapper|Service "WSO2 Carbon"|20-02-13 12:26:50| bundle location = reference:file:../plugins/org.wso2.carbon.crypto.impl_1.1.2.jar java.lang.reflect.InvocationTargetException
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO|wrapper|Service "WSO2 Carbon"|20-02-13 12:26:50|start script scripts/trayMessage.gv
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at java.lang.reflect.Method.invoke(Method.java:497)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:444)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:343)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
INFO|wrapper|Service "WSO2 Carbon"|20-02-13 12:26:50|end script scripts/trayMessage.gv
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at java.lang.Thread.run(Thread.java:745)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50|Caused by: java.lang.NoClassDefFoundError: org/apache/xerces/util/SecurityManager
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.wso2.carbon.base.ServerConfiguration.getSecuredDocumentBuilder(ServerConfiguration.java:523)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.wso2.carbon.base.ServerConfiguration.toDOM(ServerConfiguration.java:501)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.wso2.carbon.base.ServerConfiguration.getDocumentElement(ServerConfiguration.java:468)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| at org.wso2.carbon.crypto.impl.internal.CryptoImplComponent.setServerConfigurationService(CryptoImplComponent.java:123)
INFO|216808/0|Service "WSO2 Carbon"|20-02-13 12:26:50| ... 16 more```
对EI 6.6.0的文档进行了一些最近的更改。 https://docs.wso2.com/display/EI660/Running+the+Product+as+a+Windows+Service
您能确认您是否遵循了此特定文档中的所有步骤吗?
请注意以下几点
WSO2推荐了另一个Java Service Wrapper(YAJSW)版本12.14。如果您在JDK 11上运行,则YAJSW的早期版本将不兼容。
也,
步骤1:设置YAJSW包装器