当前位置: 首页 > 知识库问答 >
问题:

在使用JBoss developer studio部署web服务时,Java8和JBoss EAP7是否存在严重的兼容性问题

段干华晖
2023-03-14

当我将服务器设置为部署我的.war文件时,我在JBoss dev Studio上得到以下错误日志:

我正在使用Java 1.8.0-161和JBOSS EAP 7.0.0.ga Core 2.1.2.final-redhat-1以及JBOSS Red Hat Developer Studio version 10.4.0.ga尝试部署一个服务,这也是一个非常古老的服务。但以前效果很好。但我得到以下错误日志,安装中止。

10:37:36,403 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-1) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@551b90d9: defining beans [supportsTransactionTemplate,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,berichtFactoryComponent,protokollService]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@2f390677
10:37:37,653 INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://webservice.webkash.bgs.datagroup.de/import/V1}KashEImportWebserviceImplService from class de.datagroup.bgs.kashe.webservice.KashEImportWebserviceImpl
10:37:37,676 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."Web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."Web.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "Web.war"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154) [wildfly-server-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_161]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_161]
      at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_161]
Caused by: java.lang.VerifyError: (class: de/datagroup/bgs/kashe/webservice/jaxws_asm/ImportData, method: setImportRequest signature: (Lde/datagroup/bgs/kashe/webservice/model/ImportRequest;)V) Illegal instruction found at offset 1
      at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.8.0_161]
      at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) [rt.jar:1.8.0_161]
      at java.lang.Class.getConstructor0(Unknown Source) [rt.jar:1.8.0_161]
      at java.lang.Class.getDeclaredConstructor(Unknown Source) [rt.jar:1.8.0_161]
      at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:105)
      at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:102)
      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_161]
      at org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructor(ReflectionUtil.java:102)
      at org.apache.cxf.common.jaxb.JAXBUtils.getValidClass(JAXBUtils.java:582)
      at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:309)
      at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:187)
      at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97)
      at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
      at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315)
      at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
      at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:467)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:696)
      at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:527)
      at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
      at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460)
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338)
      at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:79)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543)
      at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:234)
      at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
      at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
      at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147) [wildfly-server-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]
      ... 5 more

10:37:37,676 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "Web.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"Web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Web.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"Web.war\"
    Caused by: java.lang.VerifyError: (class: de/datagroup/bgs/kashe/webservice/jaxws_asm/ImportData, method: setImportRequest signature: (Lde/datagroup/bgs/kashe/webservice/model/ImportRequest;)V) Illegal instruction found at offset 1"}}
10:37:37,801 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 31) WFLYSRV0010: Deployed "Web.war" (runtime-name : "Web.war")
10:37:37,801 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."Web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."Web.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "Web.war"

10:37:38,020 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
10:37:38,020 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
10:37:38,020 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) started (with errors) in 38736ms - Started 259 of 449 services (1 services failed or missing dependencies, 251 services are lazy, passive or on-demand)
10:37:38,098 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-5) HV000001: Hibernate Validator 5.2.4.Final-redhat-1
10:37:41,473 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0028: Stopped deployment Web.war (runtime-name: Web.war) in 3406ms
10:37:41,556 INFO  [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location C:\Users\KASHAd\devstudio\runtimes\jboss-eap\standalone\data\content\76\c572c3aa6c2bac786b47d25711fe91d5708b64\content
10:37:41,556 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "Web.war" (runtime-name: "Web.war")
10:37:41,556 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."Web.war".INSTALL

共有1个答案

赫连飞沉
2023-03-14

正如这里所解释的,java.lang.VerifyError可能发生在针对不同于运行时实际使用的库进行编译时。特别是在这种情况下,我想您使用了不同的JDK来编译和执行,这可能是因为Developer Studio上的默认值发生了变化。

 类似资料:
  • 我编写了一个maven web服务,它引用了另一个项目。web服务本身仅包含2个pom条目: jersey容器servlet:2.13 web服务POM: 项目1也是一个maven项目,只有一个pom条目,另一个本地项目(我们称之为项目2)。 项目2又是一个maven项目,其pom文件包含5个条目: lang-猜测: 0.0.7 Stanford-corenlp: 3.5.2 斯坦福-科伦坡: 3

  • 我使用apache-cxf创建了web服务,并使用johnzon provider来编组和解组JSON,还在open-ejb-jar文件中配置了provider-service。一旦我在tomee服务器中部署了应用程序,我就可以访问我的api,但是在我的应用程序被取消部署和再次部署之后。我无法使用http://localhost:8080/demo/school-services/student/

  • 我们希望将 ASP.NET MVC Web 应用程序和 Windows 服务部署到弹性豆茎。我们使用.exe来处理 Web 应用程序的部署。该服务和 Web 应用程序共享配置和库。要部署服务,我的计划是: 将 Windows 服务 exe 包含在 Web 部署包 \bin 目录中,并将服务和 Web 应用程序一起部署 使用 .eb 扩展文件安装服务 但是,这似乎不起作用,因为在安装webdeplo

  • 比较早之前,部署 Java web 服务只是单纯使用 Tomcat 做 Web 服务器,前后端代码融合在一个工程之中。Tomcat 启动后对外提供一个端口接收和相应 http请求。随着 Nginx 的越来越流行,同时加上其优秀的反响代理和负载均衡功能,我们在线上的 Java web 通常会结合二者,即使用 Nginx + Tomcat 的方式来部署 Java web 服务。最近两年,随着微服务化和

  • 我在RHEL上使用JBOSS final 6.1.0,在服务器上部署servlet没有问题。但在尝试部署SOAP web服务时,我在http://[serverName]:8080/jbossws/中找不到它。首先,我为JBOSS 6.1.0服务器创建了动态web项目SoapTestService,并编写了简单的web服务: 我导出项目到TestSoapService.war文件,把这个战争到[P

  • “C:\users\siviw\appdata\local\Android\sdk\platform-tools\ADB.exe中的ADB二进制文件已过时,并且在Android模拟器中存在严重的性能问题。请更新到较新的版本,以获得明显更快的应用程序/文件传输”。 我是一个没有什么经验的新开发人员。我需要什么更新到一个较新的版本,以使消息不再显示?