Skip to main content

Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

  • From: Mirea Vasile <mirea_vasile@...>
  • To: "users@..." <users@...>, "users@..." <users@...>
  • Subject: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)
  • Date: Wed, 15 Feb 2012 10:34:48 +0000 (GMT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=NwYjwBJ9VREBLsGuQsiL+SvRNh4mrC1fpKEhkSAPzGUbSCYhrzySyzbyHGlCYTbdIi/63wFCCdTDiqfag1ctBVUfVH5p/pqhMECSS0kJCndQO2UMhmkk+DC2mWTQktDsd86/GEjbqeJ2zKSvOHO684IKVBe/lJ6SeCUPafpwLGk=;



 Hi,

  I have the following issue:

  I am using the maven-embedded-glassfish-plugin .
  I am having the following configuration in maven for it:
   
 <plugin>
            <groupId>org.glassfish</groupId>
            <artifactId>maven-embedded-glassfish-plugin</artifactId>
            <version>3.0</version>
            
            <configuration>
              <goalPrefix>embedded-glassfish</goalPrefix>
          <serverID>localhost</serverID>
          <name>${build.finalName}</name>
          <app>${project.build.directory}/${build.finalName}.war</app>
          <port>8080</port>
 
          <instanceRoot>${project.build.directory}/glassfish</instanceRoot>

          <autoDelete>true</autoDelete>

        </configuration>

            <executions>
               <execution>
                  <id>start-glassfish</id>
                  <phase>pre-integration-test</phase>
                  <goals>
                     <goal>start</goal>
                  </goals>
               </execution>
               <execution>
                  <id>glassfish-deploy</id>
                  <phase>pre-integration-test</phase>
                  <goals>
                     <goal>deploy</goal>
                  </goals>
               </execution>
               <execution>
                  <id>glassfish-undeploy</id>
                  <phase>post-integration-test</phase>
                  <goals>
                     <goal>undeploy</goal>
                  </goals>
               </execution>
               <execution>
                  <id>stop-glassfish</id>
                  <phase>post-integration-test</phase>
                  <goals>
                     <goal>stop</goal>
                  </goals>
               </execution>
            </executions>
          </plugin> 

This configuration works just fine in the version 3.0.
Important is the option: <instanceRoot>

In the Version 3.1 I am getting a strange error:
  15.02.2012 11:30:48 com.sun.enterprise.v3.server.DomainXmlPersistence getPidFile

ERROR: Cannot obtain lockfile location T:\workspace2\web-app\
target\glassfish\config\lockfile, configuration changes will not be persisted
java.io.IOException: The System cannot find the specied path.
        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:883)
        at com.sun.enterprise.v3.server.DomainXmlPersistence.getPidFile(DomainXm
lPersistence.java:92)
        at com.sun.enterprise.v3.server.DomainXmlPersistence.accessRead(DomainXm
lPersistence.java:114)
        at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:
210)
  ...

In the version 3.0 the directory structure will be created by the plugin, in the version 3.1 not any more and then I get this errors.
Something change in the new version or it is a bug ?


 Thanks,
  Vasile.
 


Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Mirea Vasile 02/15/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Bhavanishankar 02/20/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Mirea Vasile 02/20/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Bhavanishankar 02/20/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Mirea Vasile 02/21/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Bhavanishankar 02/21/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Mirea Vasile 02/21/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Bhavanishankar 02/21/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Mirea Vasile 02/22/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Bhavanishankar 02/23/2012

Re: Issue with maven-embedded-glassfish-plugin version 3.1(3.1.1)

Mirea Vasile 02/24/2012
 
 
Close
loading
Please Confirm
Close