Я пытаюсь использовать Cargo (glassfish5x) в Netbeans 8.2 с Gradle (Mac OS 10.11.6). Я следую инструкции: https://github.com/bmuschko/gradle-cargo-plugin. Когда я строю , проект не обнаружил ошибок, а папка ... / cargo / conf генерирует только обновление файла password.properties. , Однако, когда я вызываю gradle cargoRunLocal -s задача из терминал и обнаруживается ошибка:
Задача: cargoRunLocal FAILED
org.codehaus.cargo.container.ContainerException: не удалось создать отдельную конфигурацию GlassFish 5.x
FAILURE: сборка не удалась, исключение.
Что пошло не так:
Не удалось выполнить задачу ': cargoRunLocal'.
org.codehaus.cargo.container.ContainerException: не удалось создать отдельную конфигурацию GlassFish 5.x
Попробуйте:
Запустите с параметром --info или --debug, чтобы получить больше вывода журнала. Запустите --scan, чтобы получить полную информацию.
Исключение составляют:
org.gradle.api.tasks.TaskExecutionException: выполнение не выполнено для задачи ': cargoRunLocal'.
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ 2.accept (ExecuteActionsTaskExecuter.java:121)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ 2.accept (ExecuteActionsTaskExecuter.java:117)
в org.gradle.internal.Try $ Failure.ifSuccessfulOrElse (Try.java:184)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute (ExecuteActionsTaskExecuter.java:110)
в org.gradle.api.internal.tasks.execution.ResolveIncrementalChangesTaskExecuter.execute (ResolveIncrementalChangesTaskExecuter.java:84)
в org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute (ResolveTaskOutputCachingStateExecuter.java:91)
в org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute (ResolveBeforeExecutionStateTaskExecuter.java:74)
в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute (ValidatingTaskExecuter.java:58)
в org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute (SkipEmptySourceFilesTaskExecuter.java:109)
в org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute (ResolveBeforeExecutionOutputsTaskExecuter.java:67)
в org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute (ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
в org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute (CleanupStaleOutputsExecuter.java:93)
в org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute (FinalizePropertiesTaskExecuter.java:45)
в org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute (ResolveTaskExecutionModeExecuter.java:94)
в org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute (SkipTaskWithNoActionsExecuter.java:57)
в org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute (SkipOnlyIfTaskExecuter.java:56)
в org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute (CatchExceptionTaskExecuter.java:36)
в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.executeTask (EventFiringTaskExecuter.java:63)
в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter.java:49)
в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter.java:46)
в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:416)
в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:406)
в org.gradle.internal.operations.DefaultBuildOperationExecutor $ 1.execute (DefaultBuildOperationExecutor.java:165)в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:250)
в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:158)
в org.gradle.internal.operations.DefaultBuildOperationExecutor.call (DefaultBuildOperationExecutor.java:102)
в org.gradle.internal.operations.DelegatingBuildOperationExecutor.call (DelegatingBuildOperationExecutor.java:36)
в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute (EventFiringTaskExecuter.java:46)
в org.gradle.execution.plan.LocalTaskNodeExecutor.execute (LocalTaskNodeExecutor.java:43)
в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execute (DefaultTaskExecutionGraph.java:355)
в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execute (DefaultTaskExecutionGraph.java:343)
в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute (DefaultTaskExecutionGraph.java:336)
в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute (DefaultTaskExecutionGraph.java:322)
в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor.java:134)
в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor.java:129)
в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.execute (DefaultPlanExecutor.java:202)
в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.executeNextNode (DefaultPlanExecutor.java:193)
в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.run (DefaultPlanExecutor.java:129)
в org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy.java:63)
в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl.java:46)
в org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl.java:55)
Вызвано:: org.codehaus.cargo.container.ContainerException: Не удалось создать отдельную конфигурацию GlassFish 5.x
в org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:116)
в org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted (BasicAntBuilder.java:78)
в org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod (BasicAntBuilder.java:103)
на com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction (LocalCargoContainerTask.groovy: 191)
at jdk.internal.reflect.GeneratedMethodAccessor429.invoke (неизвестный источник)
в java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask $ _start_closure2.doCall (AbstractCargoContainerTask.groovy: 92)
at com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask $ _start_closure2.doCall (AbstractCargoContainerTask.groovy)
at jdk.internal.reflect.GeneratedMethodAccessor549.invoke (неизвестный источник)
в java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
в com.bmuschko.gradle.cargo.util.LoggingHandler.withAntLoggingListener (LoggingHandler.groovy: 36)
в com.bmuschko.gradle.cargo.util.LoggingHandler $ withAntLoggingListener.call (неизвестный источник)
на com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask.start (AbstractCargoContainerTask.groovy: 91)
в java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод)
в java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
в java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
в org.gradle.internal.reflect.JavaMethod.invoke (JavaMethod.java:103)в org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute (StandardTaskAction.java:48)
в org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute (StandardTaskAction.java:41)
в org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute (StandardTaskAction.java:28)
в org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute (AbstractTask.java:705)
в org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute (AbstractTask.java:672)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ 4.run (ExecuteActionsTaskExecuter.java:338)
в org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:402)
в org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:394)
в org.gradle.internal.operations.DefaultBuildOperationExecutor $ 1.execute (DefaultBuildOperationExecutor.java:165)
в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:250)
в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:158)
в org.gradle.internal.operations.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:92)
в org.gradle.internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor.java:31)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction (ExecuteActionsTaskExecuter.java:327)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions (ExecuteActionsTaskExecuter.java:312)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access $ 200 (ExecuteActionsTaskExecuter.java:75)
в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ TaskExecution.execute (ExecuteActionsTaskExecuter.java:158)
в org.gradle.internal.execution.impl.steps.ExecuteStep.execute (ExecuteStep.java:46)
в org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute (CancelExecutionStep.java:34)
в org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout (TimeoutStep.java:69)
в org.gradle.internal.execution.impl.steps.TimeoutStep.execute (TimeoutStep.java:49)
в org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute (CatchExceptionStep.java:34)
в org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute (CreateOutputsStep.java:49)
в org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute (SnapshotOutputStep.java:42)
в org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute (SnapshotOutputStep.java:28)
в org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache (CacheStep.java:133)
в org.gradle.internal.execution.impl.steps.CacheStep.lambda $ execute $ 5 (CacheStep.java:83)
в org.gradle.internal.execution.impl.steps.CacheStep.execute (CacheStep.java:82)
в org.gradle.internal.execution.impl.steps.CacheStep.execute (CacheStep.java:37)
в org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute (PrepareCachingStep.java:33)
в org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute (StoreSnapshotsStep.java:38)
в org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute (StoreSnapshotsStep.java:23)
в org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause (SkipUpToDateStep.java:95)
в org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda $ execute $ 0 (SkipUpToDateStep.java:88)
в org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute (SkipUpToDateStep.java:52)
в org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute (SkipUpToDateStep.java:36)
в org.gradle.internal.execution.impl.DefaultWorkExecutor.execute (DefaultWorkExecutor.java:34)в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute (ExecuteActionsTaskExecuter.java:109)
... еще 37
Вызвано: org.codehaus.cargo.container.ContainerException: Не удалось создать отдельную конфигурацию GlassFish 5.x
в org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure (AbstractLocalConfiguration.java:289)
в org.codehaus.cargo.container.spi.AbstractLocalContainer.start (AbstractLocalContainer.java:198)
в org.codehaus.cargo.ant.CargoTask.executeActions (CargoTask.java:730)
в org.codehaus.cargo.ant.CargoTask.execute (CargoTask.java:572)
в org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:293)
в java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод)
в java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
в java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
в org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)
... еще 91
Вызывается: org.codehaus.cargo.util.CargoException: административная команда GlassFish с аргументами (--interactive = false --user --passwordfile /var/folders/yb/3nwj5jls6w3_4s2fj00bgx4m0000gn/T/cargo/conf/password.properties create домен --adminport 4848 --instanceport 8080 --domainproperties jms.port = 7676: orb.listener.port = 3700: orb.ssl.port = 3820: http.ssl.port = 8181: orb.mutualauth.port = 3920: domain.jmxPort = 8686: java.debugger.port = 9009: osgi.shell.telnet.port = 6666 --domaindir / var / folder / yb / 3nwj5jls6w3_4s2fj00bgx4m0000gn / T / cargo / conf domain1) завершился ошибкой 1
в org.codehaus.cargo.container.glassfish.internal.GlassFish3xAsAdmin.invokeAsAdmin (GlassFish3xAsAdmin.java:98)
в org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalContainer.invokeAsAdmin (AbstractGlassFishInstalledLocalContainer.java:96)
в org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalContainer.invokeAsAdmin (AbstractGlassFishInstalledLocalContainer.java:82)
в org.codehaus.cargo.container.glassfish.GlassFish3xStandaloneLocalConfiguration.configureUsingAsAdmin (GlassFish3xStandaloneLocalConfiguration.java:69)
в org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishStandaloneLocalConfiguration.doConfigure (AbstractGlassFishStandaloneLocalConfiguration.java:128)
в org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure (AbstractLocalConfiguration.java:284)
... еще 99
Это мой файл build.gradle.
plugins{
id 'java'
id "com.bmuschko.cargo" version "2.6.1"
id 'war'
}
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.10'
testCompile group: 'org.codehaus.cargo', name: 'cargo-ant', version: '1.7.3'
compile group: 'org.codehaus.cargo', name: 'cargo-core-uberjar', version: '1.7.3'
}
cargo{
containerId = 'glassfish5x'
deployable {
file = file('...')
context = '/Web1'
}
local {
homeDir = file('/Users/.../Desktop/Java/GlassFish/5.0/glassfish5')
containerProperties{
property 'cargo.glassfish.admin.port', 4848
property 'cargo.remote.password', ''
property 'cargo.remote.username', ''
property 'cargo.hostname', 'localhost'
property 'cargo.glassfish.domain.name', 'domain1'
}
}