0
I compile a script using the ant task, the load and the application platform JBOSS EAP 7, below follows my source code:
<taskdef resource="cargo.tasks">
<classpath>
<fileset dir="${common.lib.dir}/cargo">
<include name="**/*.jar"/>
</fileset>
</classpath>
</taskdef>
<macrodef name="start-jboss">
<attribute name="jboss-home" default="${jboss.home}" />
<attribute name="jboss-configuration" default="standalone" />
<attribute name="jboss-hostname" default="${jboss.hostname}" />
<attribute name="jboss-port" default="8081" />
<attribute name="ear-file" default="${ear.jms.dist.dir}\NomeEAR.ear" />
<sequential>
<cargo
containerId="wildfly10x"
id="${jboss.refid}"
home="@{jboss-home}"
output="@{jboss-home}/@{jboss-configuration}/log/server.log"
log="@{jboss-home}/@{jboss-configuration}/log/cargo.log"
timeout="${jboss.start.timeout}"
action="start">
<configuration>
<property name="cargo.hostname" value="@{jboss-hostname}" />
<property name="cargo.servlet.port" value="@{jboss-port}" />
<property name="cargo.remote.username" value="admin"/>
<property name="cargo.remote.password" value="admin123"/>
<property name="cargo.jboss.configuration" value="@{jboss-configuration}" />
<property name="cargo.jboss.modules.dir" value="modules" />
<property name="cargo.jvmargs" value="${jboss.jvmargs}" />
<deployable type="ear" file="@{ear-file}" />
</configuration>
</cargo>
</sequential>
</macrodef>
When I perform the task Ant by the terminal to the initial server, but I get the following error:
-- *********************************************************************
2018-01-28 15:52:25,524 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 68) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "webservices")]): java.lang.IllegalArgumentException: JBWS022117: Invalid address provided: MYSERVER
at org.jboss.ws.common.management.AbstractServerConfig.toIPv6URLFormat(AbstractServerConfig.java:158)
at org.jboss.ws.common.management.AbstractServerConfig.setWebServiceHost(AbstractServerConfig.java:137)
at org.jboss.as.webservices.config.ServerConfigImpl.setWebServiceHost(ServerConfigImpl.java:98)
at org.jboss.as.webservices.dmr.WSSubsystemAdd.createServerConfig(WSSubsystemAdd.java:103)
at org.jboss.as.webservices.dmr.WSSubsystemAdd.performBoottime(WSSubsystemAdd.java:93)
at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performBoottime(AbstractBoottimeAddStepHandler.java:157)
at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:116)
at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:151)
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:359)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class br.com.NomeEAR.vida.dominio.service.faturamento.impl.BoletoFaturaColetivaService with ClassLoader ModuleClassLoader for Module "deployment.NomeEARVida-ear-jms.ear.NomeEARVida-ejb.jar:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
... 5 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/ws/soap/SOAPFaultException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
... 10 more
-- ********************************************************************
These dependencies are jdk and the ear is working in eclipse IDE Oxygen.
Thanks for helping me.