jbossas / jboss-as-maven-plugin

Maven plugin to deploy applications to JBoss AS 7 (moved to https://github.com/wildfly/wildfly-maven-plugin)
74 stars 69 forks source link

ejb packaging deployment does not work #9

Closed spagop closed 12 years ago

spagop commented 12 years ago

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

4.0.0
<groupId>org.jboss.as.quickstarts</groupId>
<artifactId>jboss-as-helloworld-ejb-timer</artifactId>
<version>1.0.0</version>
<packaging>ejb</packaging>

.....

executed this command "mvn clean package jboss:as-deploy" does not deploy the application "cause is ejb" here is the error:

ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.0.CR1:deploy (default-cli) on project jboss-as-helloworld-ejb-timer: Could not execute goal deploy on jboss-as-helloworld-ejb-timer.ejb. Reason: /NotBackedUp/spagop/Channel-Team-SA-Unterstützung/partner-enablement/training/EAP/gitrepos/docs/helloworld-ejb-timer/target/jboss-as-helloworld-ejb-timer.ejb (No such file or directory) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.0.CR1:deploy (default-cli) on project jboss-as-helloworld-ejb-timer: Could not execute goal deploy on jboss-as-helloworld-ejb-timer.ejb. Reason: /NotBackedUp/spagop/Channel-Team-SA-Unterstützung/partner-enablement/training/EAP/gitrepos/docs/helloworld-ejb-timer/target/jboss-as-helloworld-ejb-timer.ejb (No such file or directory) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Could not execute goal deploy on jboss-as-helloworld-ejb-timer.ejb. Reason: /NotBackedUp/spagop/Channel-Team-SA-Unterstützung/partner-enablement/training/EAP/gitrepos/docs/helloworld-ejb-timer/target/jboss-as-helloworld-ejb-timer.ejb (No such file or directory) at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:210) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.io.FileNotFoundException: /NotBackedUp/spagop/Channel-Team-SA-Unterstützung/partner-enablement/training/EAP/gitrepos/docs/helloworld-ejb-timer/target/jboss-as-helloworld-ejb-timer.ejb (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:137) at java.io.FileInputStream.(FileInputStream.java:96) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:87) at org.jboss.as.controller.client.helpers.standalone.impl.DeploymentPlanBuilderImpl.add(DeploymentPlanBuilderImpl.java:154) at org.jboss.as.controller.client.helpers.standalone.impl.DeploymentPlanBuilderImpl.add(DeploymentPlanBuilderImpl.java:132) at org.jboss.as.plugin.deployment.Util.deployPlan(Util.java:30) at org.jboss.as.plugin.deployment.Deploy.createPlan(Deploy.java:68) at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:183) ... 21 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

jamezp commented 12 years ago

Sorry for the delayed response.

You should be able to add a jboss-as-helloworld-ejb-timer.jar under the configuration.