Salve, sono svariati giorni che cerco di far girare un progetto j2ee. vi dico subito che ho:
- java 7
- NetBeans 7.2.1
- mysql-connector-java-5.1.22-bin
- MySql Workbench 5.2
ho cercato di aggiornare il tutto alle ultime versioni.
IL problema e che non riesco a fare il deploy per colpa di un errore.
Qui di seguito riporto la porzione, che netbenas segnala come errore, nel mio file build.xml:
l'errore invece è questo(riporto l'output del deploy, magari vi è utile per aiutarmi):codice:<target depends="compile" name="library-inclusion-in-manifest"> <copyfiles files="${libs.MySQLDriver.classpath}" todir="${dist.ear.dir}/lib"/> <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/> </target>
ant -f C:\\Users\\uomosound\\Documents\\NetBeansProjects\ \NoleggioAuto "-Dlibs.MySQLDriver.classpath=C:Program FilesNetBeans 7.2.1idemodulesext" "-Dlibs.CopyLibs.classpath=C:Program FilesNetBeans 6.9.1javaantextra" -DforceRedeploy=true -Ddirectory.deployment.supported=true run-deploy
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
Could not load definitions from resource org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml. It could not be found.
init:
deps-jar:
deps-j2ee-archive:
Could not load definitions from resource org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml. It could not be found.
NoleggioAuto-ejb.init:
NoleggioAuto-ejb.deps-jar:
NoleggioAuto-ejb.compile:
NoleggioAuto-ejb.library-inclusion-in-manifest:
C:\Users\uomosound\Documents\NetBeansProjects\Nole ggioAuto\nbproject\build-impl.xml:191: The following error occurred while executing this line:
C:\Users\uomosound\Documents\NetBeansProjects\Nole ggioAuto\NoleggioAuto-ejb\nbproject\build-impl.xml:794: Problem: failed to create task or type copyfiles
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 0 seconds)
non riesco a capire proprio che cosa fare..
grazie in anticipom a tutti
(spero di aver rispettato i tag codice e altre regole)