[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Maven/Terracotta Problem starting the client  XML
Forum Index -> General
Author Message
dr_pompeii

neo

Joined: 05/11/2009 17:59:42
Messages: 8
Offline

Dear Members

(I tried this in maven forums but no help yet, perhaps from Terracotta side I hope have better results)

I am trying to work in peace about terracotta/maven integration

follow part of my configuration

Code:
 
 <plugin>
                
         <groupId>org.terracotta.maven.plugins</groupId>
         <artifactId>tc-maven-plugin</artifactId>
         <version>1.3.1</version>
 
                 <configuration>
                   <!-- used by tc:bootjar -->
                   <verbose>true</verbose>
                   <!-- <overwriteBootjar>true</overwriteBootjar> -->
                   <!-- <bootJar>target/bootjar.jar</bootJar> -->
        
                   <!-- used by tc:start and tc:stop so DSO server could outlive mvn process -->
                    <startServer>true</startServer>
                   <!-- <spawnServer>true</spawnServer> -->
                    <config>D:\java\maven-projects\distributedspring\target\classes\tc-customerconsole-wo-spring.xml</config>
                    <jvm>D:\java\jdk1.5.0_16\bin\java.exe</jvm>
                    <jvmargs>-Xmx20m</jvmargs>
 


I can start the server
mvn tc:start
without problems,

but if I try to start the client
mvn tc:client, I receive this error

Code:
 
 [INFO] [jar:jar]
 [INFO] Building jar: D:\java\maven-projects\distributedspring\target\distributed
 spring-1.0-SNAPSHOT.jar
 [INFO] ------------------------------------------------------------------------
 [ERROR] BUILD ERROR
 [INFO] ------------------------------------------------------------------------
 [INFO] Error assembling JAR
 
 Embedded error: Problem creating jar: El proceso no tiene acceso al archivo porque
 otro proceso tiene bloqueada una parte del archivo
 [INFO] ------------------------------------------------------------------------
 [INFO] For more information, run Maven with the -e switch
 [INFO] ------------------------------------------------------------------------
 [INFO] Total time: 2 seconds
 [INFO] Finished at: Sat Jun 20 06:32:50 COT 2009
 [INFO] Final Memory: 12M/21M
 [INFO] ------------------------------------------------------------------------
 D:\java\maven-projects\distributedspring>
 
 

The spanish part

El proceso no tiene acceso al archivo porque otro proceso tiene bloqueada una parte del archivo

would be translated to

The process has no access to the file because other process has block a part of the file

Of course that the server is the other process

How I can resolve this?

Thanks in advanced

Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
gkeim

ophanim

Joined: 12/05/2006 10:22:37
Messages: 685
Location: Terracotta, Inc.
Offline

Sounds like you have another running process holding the config file open. Windows doesn't like that.

Gary Keim (terracotta developer) Want to post to this forum? Join the Terracotta Community
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

dr_pompeii wrote:

but if I try to start the client
mvn tc:client, I receive this error

 


Do you mean tc:run? I do not believe our maven plugin supports a tc:client command.
[WWW]
dr_pompeii

neo

Joined: 05/11/2009 17:59:42
Messages: 8
Offline

Hello guys

Thanks both you for the replies

About gkeim

Sounds like you have another running process holding the config file open. Windows doesn't like that.
 

Thats right, windows shouldnt put its hands in this.

I did this, the same application from windows (of course with the same pom.xml) was executed in Linux Fedora Core 5 and works fine!, the unique difference is that in my windows I work with maven 2.1.0 and in Linux 2.0.9
I will test maven 2.0.9 in windows, would be this a bug?

About tgautier
Do you mean tc:run? I do not believe our maven plugin supports a tc:client command.  

yes, typo error, is mvn tc:run .

But my previous paragraph happens

Regards

Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team