【问题标题】:How to remove installed app in Wildfly 9如何在 Wildfly 9 中删除已安装的应用程序
【发布时间】:2016-11-11 06:01:10
【问题描述】:

我的 Wildfly 9 服务器无法启动,因为它正在访问一个不再存在的链接。

我修复了链接以指向最新的工作链接。

我的问题是……我的 Wildfly 服务器没有启动,我不知道如何替换 WAR 文件。

我想删除已安装的应用程序 IyotBihagay,以便我的 Wildfly 服务器启动,并且我可以使用更正的 wsdl 链接再次重新部署。

/var/log/wildfly/console.log

Caused by: com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.

java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl
java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl?wsdl

    at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:275)
    at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:246)
    at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:209)
    at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:178)
    at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:363)
    at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:321)
    at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:230)
    at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:211)
    at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:207)
    at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:114)
    at javax.xml.ws.Service.<init>(Service.java:57) [rt.jar:1.8.0_91]
    at com.amadeus.xml.AmadeusWebServices.<init>(AmadeusWebServices.java:47)
    at com.iyotbihagay.service.SaksakBilatServiceImpl.<init>(SaksakBilatServiceImpl.java:77)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_91]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_91]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_91]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_91]
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
    ... 24 more

[0m[31m23:15:46,927 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([("deployment" => "IyotBihagay.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./IyotBihagay" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./IyotBihagay: Failed to start service
    Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'saksakBilatServiceImpl' defined in \"/content/IyotBihagay.war/WEB-INF/classes/com/iyotbihagay/service/SaksakBilatServiceImpl.class\": Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.iyotbihagay.service.SaksakBilatServiceImpl]: Constructor threw exception; nested exception is com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.

java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl
java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl?wsdl

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'saksakBilatServiceImpl' defined in \"/content/IyotBihagay.war/WEB-INF/classes/com/iyotbihagay/service/SaksakBilatServiceImpl.class\": Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.iyotbihagay.service.SaksakBilatServiceImpl]: Constructor threw exception; nested exception is com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.

java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl
java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl?wsdl

    Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.iyotbihagay.service.SaksakBilatServiceImpl]: Constructor threw exception; nested exception is com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.

java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl
java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl?wsdl

    Caused by: com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.

java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl
java.io.FileNotFoundException: http://iyotbihagay.com/wsdl/saksak_bilat_consume.wsdl?wsdl
"}}
[0m[0m23:15:46,972 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "IyotBihagay.war" (runtime-name : "IyotBihagay.war")
[0m[0m23:15:46,973 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.undertow.deployment.default-server.default-host./IyotBihagay: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./IyotBihagay: Failed to start service

[0m[0m23:15:47,143 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://0.0.0.0:9990/management
[0m[0m23:15:47,143 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990
[0m[31m23:15:47,144 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.0.Final "Tweek" started (with errors) in 15362ms - Started 782 of 839 services (2 services failed or missing dependencies, 103 services are lazy, passive or on-demand)
[0m

我认为我的 wildfly 被配置或安装为独立的。

【问题讨论】:

  • 如果您在独立模式下运行,您可以简单地将其从standalone.xml 文件末尾的部署列表中删除。
  • 谢谢老兄,在standalone-full.xml 的部署节点中删除部署[IyotBihagay] 就成功了。再次感谢老兄。

标签: java jboss wildfly


【解决方案1】:

看起来你已经解决了你的问题,但其他人可能想要这样做。

在 WildFly 9+ CLI 中有一个 offline CLI mode。您应该能够使用它来取消部署。

$JBOSS_HOME/bin/jboss-cli.sh

CLI 命令示例

embed-server
undeploy IyotBihagay.war
stop-embedded-server

在 WildFly 9 中,您只能使用独立服务器。在 WildFly 10 中,同样适用于使用 embed-host-controller 命令的托管域。

【讨论】:

  • 请注意:它实际上可能不适用于 OP,日志似乎表明他实际上正在运行 Wildfly 8.2.0。
  • 好点。主题说的是 WildFly 9,我没有仔细看最后的日志消息。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-10-12
  • 1970-01-01
  • 2017-07-27
  • 1970-01-01
  • 2010-12-11
相关资源
最近更新 更多