TP06 Echec execution ant yaps-build [RESOLU]

Modérateurs : graffion, jmdouin, agoncal, mlebihan

jean-jacques K
Messages : 6
Inscription : 06 nov. 2014 4:38

TP06 Echec execution ant yaps-build [RESOLU]

Message par jean-jacques K » 28 nov. 2014 1:20

L'exécution de ant yaps-build connaît un echec. La réponse obtenue sur le corrigé du TP et ma solution est:

C:\Users\Ntadi\GLG203\corTP06\Yaps>ant yaps-build
Buildfile: C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml

check:

yaps-prepare:
[echo] Setup the Yaps environment
[mkdir] Created dir: C:\Users\Ntadi\GLG203\corTP06\Yaps\classes\production
[mkdir] Created dir: C:\Users\Ntadi\GLG203\corTP06\Yaps\classes\test
[mkdir] Created dir: C:\Users\Ntadi\GLG203\corTP06\Yaps\build

yaps-compile:
[echo] Compile the YAPS classes
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:168: warning: 'includea
ntruntime' was not set, defaulting to build.sysclasspath=last; set to false for
repeatable builds
[javac] Compiling 84 source files to C:\Users\Ntadi\GLG203\corTP06\Yaps\clas
ses\production
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:239: warning: [deprecation] show() in Window has been deprecated
[javac] new CreateOrderFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:244: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageOrderFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:250: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageCustomerFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:255: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageCategoryFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:260: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageProductFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:265: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageItemFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:270: warning: [deprecation] show() in Window has been deprecated
[javac] new ListCustomerFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:275: warning: [deprecation] show() in Window has been deprecated
[javac] new ListCategoryFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:280: warning: [deprecation] show() in Window has been deprecated
[javac] new ListProductFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:285: warning: [deprecation] show() in Window has been deprecated
[javac] new ListItemFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\Menu.java:297: warning: [deprecation] show() in Window has been deprecated
[javac] new Menu().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\client
\ui\order\CreateOrderFrame.java:113: warning: [unchecked] unchecked call to add(
E) as a member of the raw type Collection
[javac] orderLinesDTO.add(orderLineDTO);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\util\persistence\AbstractDataAccessObject.java:141: warning: [unchecked] unchec
ked call to add(E) as a member of the raw type Collection
[javac] objects.add(transformResultset2DomainObject(resultSe
t));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\domain\orderline\OrderLineDAO.java:73: warning: [unchecked] unchecked call to a
dd(E) as a member of the raw type Collection
[javac] orderLines.add(orderLine);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\service\catalog\CatalogService.java:411: warning: [unchecked] unchecked call to
add(E) as a member of the raw type Collection
[javac] categoriesDTO.add(transformCategory2DTO(category));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\service\catalog\CatalogService.java:439: warning: [unchecked] unchecked call to
add(E) as a member of the raw type Collection
[javac] productsDTO.add(transformProduct2DTO(product));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\service\catalog\CatalogService.java:466: warning: [unchecked] unchecked call to
add(E) as a member of the raw type Collection
[javac] itemsDTO.add(transformItem2DTO(item));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\service\customer\CustomerService.java:187: warning: [unchecked] unchecked call
to add(E) as a member of the raw type Collection
[javac] customersDTO.add(transformCustomer2DTO(customer));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\service\order\OrderService.java:91: warning: [unchecked] unchecked call to add(
E) as a member of the raw type Collection
[javac] orderLines.add(orderLine);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\server
\service\order\OrderService.java:178: warning: [unchecked] unchecked call to add
(E) as a member of the raw type Collection
[javac] orderLinesDTO.add(orderLineDTO);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] 20 warnings
[echo] Compile the YAPS test classes
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:176: warning: 'includea
ntruntime' was not set, defaulting to build.sysclasspath=last; set to false for
repeatable builds
[javac] Compiling 18 source files to C:\Users\Ntadi\GLG203\corTP06\Yaps\clas
ses\test
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\We
bTest.java:3: error: package com.meterware.httpunit does not exist
[javac] import com.meterware.httpunit.WebConversation;
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\We
bTest.java:12: error: cannot find symbol
[javac] private WebConversation webConversation = new WebConversation();

[javac] ^
[javac] symbol: class WebConversation
[javac] location: class WebTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:3: error: package com.meterware.httpunit do
es not exist
[javac] import com.meterware.httpunit.WebConversation;
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:4: error: package com.meterware.httpunit do
es not exist
[javac] import com.meterware.httpunit.WebForm;
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:5: error: package com.meterware.httpunit do
es not exist
[javac] import com.meterware.httpunit.WebResponse;
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:20: error: cannot find symbol
[javac] private WebConversation webConversation = new WebConversation();

[javac] ^
[javac] symbol: class WebConversation
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\We
bTest.java:12: error: cannot find symbol
[javac] private WebConversation webConversation = new WebConversation();

[javac] ^
[javac] symbol: class WebConversation
[javac] location: class WebTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:20: error: cannot find symbol
[javac] private WebConversation webConversation = new WebConversation();

[javac] ^
[javac] symbol: class WebConversation
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:102: error: cannot find symbol
[javac] WebResponse customerPage = webConversation.getResponse(URL_P
ETSTORE + "/createcustomer.html");
[javac] ^
[javac] symbol: class WebResponse
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:103: error: cannot find symbol
[javac] WebForm createCustomerForm = customerPage.getFormWithName("c
ustomerForm");
[javac] ^
[javac] symbol: class WebForm
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:124: error: cannot find symbol
[javac] WebResponse currentPage = webConversation.getCurrentPage();
[javac] ^
[javac] symbol: class WebResponse
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:131: error: cannot find symbol
[javac] WebResponse customerPage = webConversation.getResponse(URL_P
ETSTORE + "/createcustomer.html");
[javac] ^
[javac] symbol: class WebResponse
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:132: error: cannot find symbol
[javac] WebForm createCustomerForm = customerPage.getFormWithName("c
ustomerForm");
[javac] ^
[javac] symbol: class WebForm
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:141: error: cannot find symbol
[javac] WebResponse currentPage = webConversation.getCurrentPage();
[javac] ^
[javac] symbol: class WebResponse
[javac] location: class CreateCustomerServletTest
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 14 errors

BUILD FAILED
C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:176: Compile failed; see the compil
er error output for details.

Les variables d'environnement sont:

set JAVA_HOME=C:\Program Files\java\jdk1.7.0_71
set JAVA_HOME=C:\Program Files\java\jdk1.7.0_71\jre
set ANT_HOME=C:\Program Files\java\apache-ant-1.8.4
set JUNIT_HOME=C:\Program Files\java\junit4.4
set MYSQL_HOME=C:\Applications\MySQL
set TOMCAT_HOME=C:\Applications\apache-tomcat-7.0.55
set HTTPUNIT_HOME=C:\Applications\httpunit-1.6.2

PATH "%JRE_HOME%\bin";"%JAVA_HOME%\bin";%ANT_HOME%\bin;"%TOMCAT_HOME%\bin";%PATH%

set CLASSPATH=.;%JUNIT_HOME%\junit4.4.jar

et
%HTTPUNIT_HOME%\jars;
C:\Applications\apache-tomcat-7.0.55\lib\servlet-api.jar;
C:\Applications\httpunit-1.6.2\jars

Merci d'avance pour toutes les réponses.

graffion
Messages : 662
Inscription : 21 juin 2005 14:05

Re: TP06 Echec execution ant yaps-build

Message par graffion » 28 nov. 2014 11:31

[javac] symbol: class WebForm
[javac] location: class CreateCustomerServletTest
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\test\src\com\yaps\petstore\web\se
rvlet\CreateCustomerServletTest.java:141: error: cannot find symbol
[javac] WebResponse currentPage = webConversation.getCurrentPage();
[javac] ^
[javac] symbol: class WebResponse
[javac] location: class CreateCustomerServletTest
La class WebForm est fournie par HttpUnit.
Elle n'est pas trouvée.

Vérifiez le contenu de votre répertoire %HTTPUNIT_HOME%

jean-jacques K
Messages : 6
Inscription : 06 nov. 2014 4:38

Re: TP06 Echec execution ant yaps-build

Message par jean-jacques K » 29 nov. 2014 0:58

Dans la recherche d'une solution:
J'ai installé le programme httpunit (complet) à la place de httpunit (jars uniquement). La compilation connaît toujours un échec.
Le résultat est:

C:\Users\Ntadi\GLG203\corTP06\Yaps>ant yaps-build
Buildfile: C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml

check:

yaps-prepare:
[echo] Setup the Yaps environment
[mkdir] Created dir: C:\Users\Ntadi\GLG203\corTP06\Yaps\classes\production
[mkdir] Created dir: C:\Users\Ntadi\GLG203\corTP06\Yaps\classes\test
[mkdir] Created dir: C:\Users\Ntadi\GLG203\corTP06\Yaps\build

yaps-compile:
[echo] Compile the YAPS classes
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:168: warning: 'includ
ntruntime' was not set, defaulting to build.sysclasspath=last; set to false fo
repeatable builds
[javac] Compiling 84 source files to C:\Users\Ntadi\GLG203\corTP06\Yaps\cl
ses\production
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:239: warning: [deprecation] show() in Window has been deprecated
[javac] new CreateOrderFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:244: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageOrderFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:250: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageCustomerFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:255: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageCategoryFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:260: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageProductFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:265: warning: [deprecation] show() in Window has been deprecated
[javac] new ManageItemFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:270: warning: [deprecation] show() in Window has been deprecated
[javac] new ListCustomerFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:275: warning: [deprecation] show() in Window has been deprecated
[javac] new ListCategoryFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:280: warning: [deprecation] show() in Window has been deprecated
[javac] new ListProductFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:285: warning: [deprecation] show() in Window has been deprecated
[javac] new ListItemFrame().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\Menu.java:297: warning: [deprecation] show() in Window has been deprecated
[javac] new Menu().show();
[javac] ^
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\clie
\ui\order\CreateOrderFrame.java:113: warning: [unchecked] unchecked call to ad
E) as a member of the raw type Collection
[javac] orderLinesDTO.add(orderLineDTO);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\util\persistence\AbstractDataAccessObject.java:141: warning: [unchecked] unch
ked call to add(E) as a member of the raw type Collection
[javac] objects.add(transformResultset2DomainObject(result
t));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\domain\orderline\OrderLineDAO.java:73: warning: [unchecked] unchecked call to
dd(E) as a member of the raw type Collection
[javac] orderLines.add(orderLine);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\service\catalog\CatalogService.java:411: warning: [unchecked] unchecked call
add(E) as a member of the raw type Collection
[javac] categoriesDTO.add(transformCategory2DTO(category));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\service\catalog\CatalogService.java:439: warning: [unchecked] unchecked call
add(E) as a member of the raw type Collection
[javac] productsDTO.add(transformProduct2DTO(product));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\service\catalog\CatalogService.java:466: warning: [unchecked] unchecked call
add(E) as a member of the raw type Collection
[javac] itemsDTO.add(transformItem2DTO(item));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\service\customer\CustomerService.java:187: warning: [unchecked] unchecked cal
to add(E) as a member of the raw type Collection
[javac] customersDTO.add(transformCustomer2DTO(customer));
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\service\order\OrderService.java:91: warning: [unchecked] unchecked call to ad
E) as a member of the raw type Collection
[javac] orderLines.add(orderLine);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\src\java\com\yaps\petstore\serv
\service\order\OrderService.java:178: warning: [unchecked] unchecked call to a
(E) as a member of the raw type Collection
[javac] orderLinesDTO.add(orderLineDTO);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface Collection
[javac] 20 warnings
[echo] Compile the YAPS test classes
[javac] C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:176: warning: 'includ
ntruntime' was not set, defaulting to build.sysclasspath=last; set to false fo
repeatable builds
[javac] Compiling 18 source files to C:\Users\Ntadi\GLG203\corTP06\Yaps\cl
ses\test
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

yaps-rmic:
[echo] Creates RMI stubs and skeletons
[rmic] RMI Compiling 1 class to C:\Users\Ntadi\GLG203\corTP06\Yaps\classe
production
[rmic] RMI Compiling 1 class to C:\Users\Ntadi\GLG203\corTP06\Yaps\classe
production
[rmic] RMI Compiling 1 class to C:\Users\Ntadi\GLG203\corTP06\Yaps\classe
production

yaps-build-common-jar:
[echo] Creates the PetStore Customer jar
[jar] Building jar: C:\Users\Ntadi\GLG203\corTP06\Yaps\build\common.jar

yaps-build-client-jar:
[echo] Creates the PetStore Client Application
[jar] Building jar: C:\Users\Ntadi\GLG203\corTP06\Yaps\build\client.jar

yaps-build-server-jar:
[echo] Creates the PetStore Server Application
[jar] Building jar: C:\Users\Ntadi\GLG203\corTP06\Yaps\build\server.jar

yaps-war:
[echo] Creates the PetStore Web Application

BUILD FAILED
C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:227: C:\Users\Ntadi\GLG203\corTP0
Yaps\resources does not exist.

Total time: 8 seconds

graffion
Messages : 662
Inscription : 21 juin 2005 14:05

Re: TP06 Echec execution ant yaps-build

Message par graffion » 29 nov. 2014 20:48

Là c'est beaucoup mieux vous avez réussi à compiler l'appli et à construire les fichiers jar!

Ce qui échoue cest la création du .war
yaps-war:
[echo] Creates the PetStore Web Application

BUILD FAILED
C:\Users\Ntadi\GLG203\corTP06\Yaps\build.xml:227: C:\Users\Ntadi\GLG203\corTP06\Yaps\resources does not exist.

Le répertoire Yaps\resources aurait-il été supprimé?
Restaurez le.

jean-jacques K
Messages : 6
Inscription : 06 nov. 2014 4:38

Re: TP06 Echec execution ant yaps-build

Message par jean-jacques K » 30 nov. 2014 23:45

Il s'avère qu'il y a une absence du fichier répertoire "ressources" dans la solution complète. Ceci ne pose plus problème. Le blocage se situe cette fois au lancement du script startServer. Le résultat obtenu est:

Répertoire de C:\Users\Ntadi\GLG203\Tp06\Yaps\bin

30/11/2014 13:26 <REP> .
30/11/2014 13:26 <REP> ..
18/12/2008 14:37 280 mylogging.properties
20/12/2012 11:27 388 startClient.bat
20/12/2012 11:44 519 startClient.sh
11/12/2009 14:47 245 startClientWithRMI.bat
19/11/2012 11:09 408 startServer.bat
19/11/2012 11:10 544 startServer.sh
20/11/2014 17:45 1 012 startServer3.bat
7 fichier(s) 3 396 octets
2 Rép(s) 40 427 835 392 octets libres

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>startServer

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>set JAVA=C:\Program Files\java\jdk1.7.0_71\j
re\bin\java

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>set RMIREGISTRY=C:\Program Files\java\jdk1.7
.0_71\jre\bin\rmiregistry

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>set DEPLOY_DIR=..\build

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>set LIB_DIR=..\lib

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>set CLASSPATH=..\build\server.jar;..\build\c
ommon.jar;C:\Applications\MySQL\lib\mysql-connector-java-5.1.21-bin.jar

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>start C:\Program Files\java\jdk1.7.0_71\jre\
bin\rmiregistry
Le système ne peut trouver le fichier C:\Program.

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>C:\Program Files\java\jdk1.7.0_71\jre\bin\ja
va -cp ..\build\server.jar;..\build\common.jar;C:\Applications\MySQL\lib\mysql-c
onnector-java-5.1.21-bin.jar -Djava.util.logging.config.file=mylogging.propertie
s com.yaps.petstore.server.RegisterServices
'C:\Program' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

C:\Users\Ntadi\GLG203\Tp06\Yaps\bin>pause
Appuyez sur une touche pour continuer...

S'agit-il d'un mauvais emplacement du fichier rmiregistry?

graffion
Messages : 662
Inscription : 21 juin 2005 14:05

Re: TP06 Echec execution ant yaps-build

Message par graffion » 02 déc. 2014 23:14

S'agit-il d'un mauvais emplacement du fichier rmiregistry?
Non c'est java qui n'est pas trouvé :

'C:\Program' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.


Modifier JAVA_HOME, par exemple : JAVA_HOME=C:/Progra~1/Java/jdk1.7.0_17

ou recopier le répertoire d'installation de java dans un répertoire dont le chemin ne contient aucun espace (par exemple JAVA_HOME=C:/Applications/java/jdk1.7.0_17)

Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité