3
respostas

Erro publicação Wildfly.

Ao subir o wildFly estora vários erros, estou usando a versão 20.0.1 e ja tentei com java 14 e 16 e nenhum funcionou.

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to unnamed module @1cff9885 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.AbstractProxyFactory$1.run(AbstractProxyFactory.java:121) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.AbstractProxyFactory.setupCachedProxyFields(AbstractProxyFactory.java:117) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.AbstractProxyFactory.finalizeStaticConstructor(AbstractProxyFactory.java:93) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.ProxyFactory.generateClass(ProxyFactory.java:292) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.AbstractClassFactory.buildClassDefinition(AbstractClassFactory.java:245) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:198) at org.jboss.invocation@1.5.2.Final//org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:162) at org.jboss.as.ejb3@20.0.0.Final//org.jboss.as.ejb3.component.stateless.StatelessComponentDescription$3.configure(StatelessComponentDescription.java:147) at org.jboss.as.ee@20.0.0.Final//org.jboss.as.ee.component.DefaultComponentViewConfigurator.configure(DefaultComponentViewConfigurator.java:101) at org.jboss.as.ee@20.0.0.Final//org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:92) ... 9 more

17:47:19,252 INFO [org.infinispan.PERSISTENCE] (MSC service thread 1-5) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.marshalling.jboss.JBossMarshaller' 17:47:19,267 INFO [org.infinispan.CONTAINER] (MSC service thread 1-5) ISPN000128: Infinispan version: Infinispan 'Turia' 10.1.8.Final 17:47:19,562 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 78) WFLYCLINF0002: Started client-mappings cache from ejb container 17:47:19,680 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "agendamento-email-0.0.1-SNAPSHOT.war")]) - failure description: { "WFLYCTL0080: Failed services" => {"jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment "agendamento-email-0.0.1-SNAPSHOT.war" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component AgendamentoEmailServico Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to unnamed module @1cff9885"}, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".WeldStartService", "jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".beanmanager" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".weld.weldClassIntrospector is missing [jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".beanmanager, jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".WeldStartService]", "jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".batch.artifact.factory is missing [jboss.deployment.unit."agendamento-email-0.0.1-SNAPSHOT.war".beanmanager]" ] }

3 respostas

Guilherme, boa tarde. Você está usando o JPMS? Java Platform Module System.

Não estou

Então não tem um arquivo module-info no seu projeto, certo?

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software