users@glassfish.java.net

issue running glassfish-embedded from maven

From: Cyril Auburtin <cyril.auburtin_at_gmail.com>
Date: Wed, 26 Mar 2014 17:07:15 +0100

here's the relevant part of my pom.xml

<build> <pluginManagement> <plugins>
<plugin> <groupId>org.glassfish.embedded</groupId>

<artifactId>maven-embedded-glassfish-plugin</artifactId>
     <version>4.0</version> </plugin> </plugins>
       </pluginManagement> <plugins> <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
<configuration> <source>1.7</source>
    <target>1.7</target> </configuration>
</plugin> <plugin>
<groupId>org.glassfish.embedded</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
 <version>4.0</version> <configuration>
   <goalPrefix>embedded-glassfish</goalPrefix>
<app>target/${artifactId}-${version}.war</app>
<port>8080</port> <contextRoot>/</contextRoot>
              <autoDelete>true</autoDelete>
</configuration> </plugin>


here's what I get after mvn clean package and mvn -X embdeed-glassfish:run

...

mars 26, 2014 4:28:10 PM com.sun.enterprise.v3.server.AppServerStartup
postStartupJob
INFOS: Undefined Product Name - define product and version info in
config/brandi
ng 0.0.0 (0) startup time : Embedded (822ms), startup services(821ms),
total(1
á643ms)

mars 26, 2014 4:28:10 PM org.glassfish.jersey.server.ApplicationHandler
initiali
ze INFOS: Initiating Jersey application, version Jersey: 2.0 2013-05-03
14:50:15...

mars 26, 2014 4:28:10 PM
org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread
run
INFOS: JMXStartupService has disabled JMXConnector system

mars 26, 2014 4:28:10 PM com.sun.enterprise.connectors.jms.util.JmsRaUtil
getIns
talledMqVersion AVERTISSEMENT: RAR7000 : Check for a new version of MQ
installation failed :
C:\Users\pit\AppData\Local\Temp\gfembed4824149722639171259tmp\lib\install\applic
ations\jmsra\..\imqjmsra.rar (Le fichier spÚcifiÚ est
introuvable):C:\Users\pit\AppData\Local\Temp\gfembed4824149722639171259tmp\lib\install\applications\jmsra\imqjmsra.rar

mars 26, 2014 4:28:10 PM PluginUtil startGlassFish
INFOS: Started GlassFish ServerId = maven, GlassFish =
com.sun.enterprise.glassf
ish.bootstrap.StaticGlassFishRuntime$1_at_546e61d5, TimeTaken = 1á065 ms
Hit ENTER to redeploy, X to exit


[image: Images intégrées 1]

I then tried with version 3.1 (groupId is org.glassfish)

it still can't deploy:

[INFO] --- maven-embedded-glassfish-plugin:3.1:run (default) @ mongo-cli ---
Downloading:
http://repo.maven.apache.org/maven2/org/glassfish/simple-glassfish-
api/3.1/simple-glassfish-api-3.1.pom
Downloaded:
http://repo.maven.apache.org/maven2/org/glassfish/simple-glassfish-a
pi/3.1/simple-glassfish-api-3.1.pom (3 KB at 5.8 KB/sec)
Downloading:
http://repo.maven.apache.org/maven2/org/glassfish/glassfish-parent/
3.1/glassfish-parent-3.1.pom
Downloaded:
http://repo.maven.apache.org/maven2/org/glassfish/glassfish-parent/3
.1/glassfish-parent-3.1.pom (59 KB at 168.0 KB/sec)
Downloading:
http://repo.maven.apache.org/maven2/org/glassfish/simple-glassfish-
api/3.1/simple-glassfish-api-3.1.jar
Downloaded:
http://repo.maven.apache.org/maven2/org/glassfish/simple-glassfish-a
pi/3.1/simple-glassfish-api-3.1.jar (12 KB at 47.4 KB/sec)
Downloading:
http://repo.maven.apache.org/maven2/org/glassfish/extras/glassfish-
embedded-all/3.1/glassfish-embedded-all-3.1.jar
Downloaded:
http://repo.maven.apache.org/maven2/org/glassfish/extras/glassfish-e
mbedded-all/3.1/glassfish-embedded-all-3.1.jar (66166 KB at 254.5 KB/sec)
Created New Bootstrap ClassLoader. ServerId = maven, ClassPaths =
ClassPath Element :
file:/C:/Users/pit/.m2/repository/org/glassfish/extras/gl
assfish-embedded-all/3.1/glassfish-embedded-all-3.1.jar
ClassPath Element :
file:/C:/Users/pit/.m2/repository/org/glassfish/maven-emb
edded-glassfish-plugin/3.1/maven-embedded-glassfish-plugin-3.1.jar
ClassPath Element :
file:/C:/Users/pit/.m2/repository/org/codehaus/plexus/ple
xus-utils/1.0.4/plexus-utils-1.0.4.jar
ClassPath Element :
file:/C:/Users/pit/.m2/repository/junit/junit/3.8.1/junit
-3.8.1.jar
ClassPath Element :
file:/C:/Users/pit/.m2/repository/org/glassfish/simple-gl
assfish-api/3.1/simple-glassfish-api-3.1.jar
[INFO] Hibernate Validator null
[INFO] Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATr
aversableResolver.
mars 26, 2014 5:02:40 PM PluginUtil getGlassFish
INFOS: Created GlassFish ServerId = maven, BootstrapProperties =
{GlassFish_Plat
form=Static}, GlassFishRuntime =
com.sun.enterprise.glassfish.bootstrap.StaticGl
assFishRuntime_at_373f7450, GlassFishProperties =
{embedded-glassfish-config.server
.network-config.network-listeners.network-listener.http-listener.enabled=true,
e
mbedded-glassfish-config.server.network-config.network-listeners.network-listene
r.http-listener.port=8080}, GlassFish =
com.sun.enterprise.glassfish.bootstrap.S
taticGlassFishRuntime$1_at_d74bac4, GlassFish Status = INIT, TimeTaken = 766 ms
mars 26, 2014 5:02:40 PM com.sun.enterprise.v3.services.impl.GrizzlyService
crea
teNetworkProxy
INFOS: Network listener https-listener on port 0 disabled per domain.xml
mars 26, 2014 5:02:40 PM com.sun.enterprise.v3.server.AppServerStartup run
INFOS: GlassFish Server Open Source Edition 3.1 (java_re-private) startup
time :
 Embedded (585ms), startup services(294ms), total(879ms)
mars 26, 2014 5:02:40 PM
com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 on
Ready
INFOS: Grizzly Framework 1.9.31 started in: 68ms - bound to [0.0.0.0:8080]
mars 26, 2014 5:02:40 PM
org.glassfish.admin.mbeanserver.JMXStartupService$JMXCo
nnectorsStarterThread run
INFOS: JMXStartupService: JMXConnector system is disabled, skipping.
mars 26, 2014 5:02:40 PM PluginUtil startGlassFish
INFOS: Started GlassFish ServerId = maven, GlassFish =
com.sun.enterprise.glassf
ish.bootstrap.StaticGlassFishRuntime$1_at_d74bac4, TimeTaken = 649 ms
PlainTextActionReporterFAILUREFile not found :
c:\Users\pit\mongo-cli-java\ta
rget\mongo-cli-0.0.1-SNAPSHOT.warmars 26, 2014 5:02:40 PM PluginUtil
doDeploy
INFOS: Deployed null
Hit ENTER to redeploy, X to exit

[image: Images intégrées 1]
so still failing..

any idea?




image.png
(image/png attachment: image.png)

image.png
(image/png attachment: 02-image.png)