Deploying maven project to glassfish with Netbeans -


this first post here hi wonderful community. tips found here helped me many times, in need ask question

so here problem. i'm struggling deploy simple maven application glassfish server, check if configuration correct further developing. usenetbeans ide, since provides small , barely readable console log, try using system terminal (i use fedora).

application i'm trying deploy consists of stateless ejb bean (called dziekanatbean , doing nothing) , maven pom project (simply called maven), includes ejb bean module. try deploy whole project using

mvn -e glassfish:deploy

project not deploy, occur following errors:

[info] error stacktraces turned on. [info] scanning projects... [info] ------------------------------------------------------------------------ [info] reactor build order: [info]  [info] maven [info] dziekanatbean [info]                                                                          [info] ------------------------------------------------------------------------ [info] building maven 1.0-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-glassfish-plugin:2.1:deploy (default-cli) @ maven --- downloading: http://maven.ocean.net.au/release/org/apache/maven/maven-plugin-api/maven-metadata.xml downloading: http://maven.ocean.net.au/external/org/apache/maven/maven-plugin-api/maven-metadata.xml downloading: http://maven.ocean.net.au/snapshot/org/apache/maven/maven-plugin-api/maven-metadata.xml [warning] not transfer metadata org.apache.maven:maven-plugin-api/maven-metadata.xml from/to release.ocean.net.au (http://maven.ocean.net.au/release): maven.ocean.net.au: ta nazwa lub usługa jest nieznana [warning] not transfer metadata org.apache.maven:maven-plugin-api/maven-metadata.xml from/to external.ocean.net.au (http://maven.ocean.net.au/external): maven.ocean.net.au [warning] not transfer metadata org.apache.maven:maven-plugin-api/maven-metadata.xml from/to snapshot.ocean.net.au (http://maven.ocean.net.au/snapshot): maven.ocean.net.au [info] asadmin --host localhost --port 4848 --user anonymous --passwordfile /tmp/mgfp3352576098599531177.tmp --interactive=false --echo=true --terse=true deploy --name maven --force=false --precompilejsp=false --verify=false --generatermistubs=false --availabilityenabled=false --asyncreplication=true --keepreposdir=false --keepfailedstubs=false --isredeploy=false --logreportederrors=true --upload=false "/mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar" [error] remote failure: file not found : /mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar [error] deployment of /mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar failed. [error] more detail on might causing problem try running maven --debug option  [error] or setting maven-glassfish-plugin "echo" property "true". [info] ------------------------------------------------------------------------ [info] reactor summary: [info]  [info] maven ............................................. failure [16.724s] [info] dziekanatbean ..................................... skipped [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 16.893s [info] finished at: sat may 18 23:45:39 cest 2013 [info] final memory: 12m/172m [info] ------------------------------------------------------------------------ [error] failed execute goal org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy (default-cli) on project maven: deployment of /mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar failed. -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy (default-cli) on project maven: deployment of /mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar failed.     @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:213)     @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153)     @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145)     @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84)     @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59)     @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183)     @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161)     @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320)     @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156)     @ org.apache.maven.cli.mavencli.execute(mavencli.java:537)     @ org.apache.maven.cli.mavencli.domain(mavencli.java:196)     @ org.apache.maven.cli.mavencli.main(mavencli.java:141)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:601)     @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290)     @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230)     @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409)     @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.maven.plugin.mojofailureexception: deployment of /mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar failed.     @ org.glassfish.maven.plugin.command.asadmincommand.execute(asadmincommand.java:121)     @ org.glassfish.maven.plugin.deployglassfishmojo.doexecute(deployglassfishmojo.java:66)     @ au.net.ocean.maven.plugin.oceanmojo.execute(oceanmojo.java:67)     @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101)     @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209)     ... 19 more [error]  [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojofailureexception 

these settings:
~/.m2/settings.xml

<settings xmlns="http://maven.apache.org/settings/1.0.0"           xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"           xsi:schemalocation="http://maven.apache.org/settings/1.0.0                       http://maven.apache.org/xsd/settings-1.0.0.xsd">     <localrepository/>     <interactivemode/>     <usepluginregistry/>     <offline/>     <plugingroups/>     <servers/>     <mirrors/>     <priveprofiles>     <activeprofile>glassfish-context</activeprofile> </activeprofoxies/>     <profiles>         <profile>             <id>glassfish-context</id>             <properties>                 <local.glassfish.home>/usr/lib64/glassfish</local.glassfish.home>                 <local.glassfish.user>admin</local.glassfish.user>                 <local.glassfish.domain>domain1</local.glassfish.domain>                 <local.glassfish.httpport>8080</local.glassfish.httpport>                 <local.glassfish.adminport>4848</local.glassfish.adminport>             </properties>         </profile>     </profiles>     <activeprofiles>         <activeprofile>glassfish-context</activeprofile>     </activeprofiles> </settings> 

pom.xml

<?xml version="1.0" encoding="utf-8"?> <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/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>     <groupid>com.zulik</groupid>     <artifactid>maven</artifactid>     <version>1.0-snapshot</version>     <packaging>pom</packaging>     <name>maven</name>     <modules>         <module>dziekanatbean</module>     </modules>     <pluginrepositories>         <pluginrepository>              <id>maven.java.net</id>             <name>java.net maven2 repository</name>             <url>http://download.java.net/maven/2</url>         </pluginrepository>     </pluginrepositories>     <dependencies>         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>4.11</version>             <scope>test</scope>         </dependency>     </dependencies>     <build>         <finalname>dziekanat</finalname>         <plugins>             <plugin>                 <groupid>org.glassfish.maven.plugin</groupid>                 <artifactid>maven-glassfish-plugin</artifactid>                 <version>2.1</version>                 <configuration>                     <glassfishdirectory>${local.glassfish.home}</glassfishdirectory>                     <echo>true</echo>                     <debug>true</debug>                     <autocreate>true</autocreate>                     <glassfishdirectory>${local.glassfish.home}</glassfishdirectory>                     <user>anonymous</user>                     <adminpassword>password_here</adminpassword>                      <domain>                         <name>${local.glassfish.domain}</name>                         <httpport>${local.glassfish.httpport}</httpport>                         <adminport>${local.glassfish.adminport}</adminport>                     </domain>                     <components>                         <component>                             <name>${project.artifactid}</name>                             <artifact>${project.build.directory}/${project.build.finalname}.jar</artifact>                         </component>                     </components>                 </configuration>             </plugin>         </plugins>     </build> </project> 

thanks in advance help.

did check if file

/mnt/d/studia/semestr 4/java/projekt/maven/target/dziekanat.jar 

is there? if not, a

mvn clean install  

before deploy.

hope helps.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -