Author |
Message |
06/20/2009 12:14:37
|
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 |
|
|
06/22/2009 16:22:54
|
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 |
|
|
06/22/2009 21:23:53
|
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.
|
|
|
06/23/2009 14:27:15
|
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 |
|
|
|