Torna indietro   Hardware Upgrade Forum > Software > Programmazione

iPhone 17 Pro: più di uno smartphone. È uno studio di produzione in formato tascabile
iPhone 17 Pro: più di uno smartphone. È uno studio di produzione in formato tascabile
C'è tanta sostanza nel nuovo smartphone della Mela dedicato ai creator digitali. Nuovo telaio in alluminio, sistema di raffreddamento vapor chamber e tre fotocamere da 48 megapixel: non è un semplice smartphone, ma uno studio di produzione digitale on-the-go
Intel Panther Lake: i processori per i notebook del 2026
Intel Panther Lake: i processori per i notebook del 2026
Panther Lake è il nome in codice della prossima generazione di processori Intel Core Ultra, che vedremo al debutto da inizio 2026 nei notebook e nei sistemi desktop più compatti. Nuovi core, nuove GPU e soprattutto una struttura a tile che vede per la prima volta l'utilizzo della tecnologia produttiva Intel 18A: tanta potenza in più, ma senza perdere in efficienza
Intel Xeon 6+: è tempo di Clearwater Forest
Intel Xeon 6+: è tempo di Clearwater Forest
Intel ha annunciato la prossima generazione di processori Xeon dotati di E-Core, quelli per la massima efficienza energetica e densità di elaborazione. Grazie al processo produttivo Intel 18A, i core passano a un massimo di 288 per ogni socket, con aumento della potenza di calcolo e dell'efficienza complessiva.
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 03-10-2011, 18:25   #1
e-commerce84
Senior Member
 
Iscritto dal: Feb 2009
Messaggi: 700
[Java]Problema librerie mancanti importando progetto esempio Spring Web Flow :-(

Ciao,
spero di trovare quì qualcuno che ha già avuto modo di usare Spring Web Flow.

Devo iniziare ad usarlo a lavoro ma purtroppo stò incontrando qualche difficoltà ad importare ed eseguire i progetti di esempio distribuiti insieme alla release...

Come editor uso SpringSource Tool Suite che è la versione di Eclipse con tutti gli ammennicoli per Spring...

Per prima cosa sono andato quì dove si fà riferimento ai progetti di esempio: http://www.springsource.org/webflow-samples

Se scarico i .war e li carico in TomCat non ho alcun problema, tutto funziona alla perfezione !!! Solo che io avrei bisogno di caricare la versione con sorgente in Eclipse, compilarli ed eseguirli per poter farmi un'idea di come lavora il framework e quì viene il brutto...

Seguendo la guida presente nel precedente link sono andato quì: http://www.springsource.org/download#webflow ed ho scaricato l'ultima release di Spring Web Flow (nella pagina dei download ci sono 2 versioni della stessa release: spring-webflow-2.3.0.RELEASE-with-dependencies.zip e spring-webflow-2.3.0.RELEASE.zip io ho scaricato la prima perchè da quello che ho capito contiene anche le librerie o qualcosa del genere...ho poi provato anche con la seconda ma ho comunque problemi...)

Sempre seguendo la precedente mini guida su come ottenere i war dai sorgenti dei samples ho fatto le seguenti cose:

1) Ho scompattato in una directory il file spring-webflow-2.3.0.RELEASE-with-dependencies.zip

2) Ok ora da quello che ho capito potrei fare 2 possibili cose in base a come voglio compilare i progetti (se da riga di comando o importandoli dentro Eclipse)

2.1) COMPILARE I SORGENTI DA RIGA DI COMANDO:

Accedo alla directory /home/andrea/programmazione/Spring WebFlow/spring-webflow-2.3.0.RELEASE/projects/build-spring-webflow (come dice sulla guida...) e lancio il comando ant che da quanto dice sulla guida dovrebbe compilarmi tutti i progetti nella directory /projects/Spring-WebFlow-Samples.

Quindi nella scell di Linux digito:
Codice:
andrea@andrea-laptop:~/programmazione/Spring WebFlow/spring-webflow-2.3.0.RELEASE/projects/build-spring-webflow$ ant
(non avendo mai usato ant non sono sicuro al 100% che sia il comando giusto...)

In effetti fà delle cose e ci mette circa 2 minuti ed alla fine (dopo un lungo output) mi dice:
Codice:
BUILD SUCCESSFUL
Total time: 1 minute 45 seconds
Però...non c'è traccia dei famigerati file .war da nessuna parte...come se non li avesse creati...booo...sbaglio qualcosa?

2.2) IMPORTARE I PROGETTI IN ECLIPSE ED ESEGUIRLI DA LÀ (che poi è la cosa che dovrei fare effettivamente, per avere il progetto con i sorgenti su Eclipse):

Leggendo la guida mi pare di capire che se voglio importare uno dei progetti di samples (che contengono anche il codice sorgente) contenuti dentro /projects/Spring-WebFlow-Samples/ devo semplicemente prendere tale direcoty e copiarla nel mio WorkSpace, ok l'ho fatto e poi faccio:

FILE --> IMPORT --> EXISTING PROJECT INTO WORKSPACE --> seleziono la directory del progetto che voglio importare dentro Eclipse (ad esempio la directory booking-faces presente dentro /projects/Spring-WeFlow-Samples/)

Ok lo importa...ma mi dà moltissimi errori relativi al ClassPath:

Codice:
Description	Resource	Path	Location	Type
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/asm/asm/3.1/asm-3.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/cglib/cglib/2.2/cglib-2.2.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/com/sun/faces/jsf-api/2.0.3/jsf-api-2.0.3.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/com/sun/faces/jsf-impl/2.0.3/jsf-impl-2.0.3.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1.3.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/aspectj/aspectjrt/1.6.8/aspectjrt-1.6.8.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/aspectj/aspectjweaver/1.6.8/aspectjweaver-1.6.8.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/easymock/easymock/2.5.2/easymock-2.5.2.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hibernate/hibernate-annotations/3.5.0-Final/hibernate-annotations-3.5.0-Final.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hibernate/hibernate-core/3.5.0-Final/hibernate-core-3.5.0-Final.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hibernate/hibernate-entitymanager/3.5.0-Final/hibernate-entitymanager-3.5.0-Final.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hibernate/hibernate-validator/4.0.2.GA/hibernate-validator-4.0.2.GA.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/primefaces/primefaces/2.2.1/primefaces-2.2.1.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/security/spring-security-config/3.0.2.RELEASE/spring-security-config-3.0.2.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/security/spring-security-core/3.0.2.RELEASE/spring-security-core-3.0.2.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/security/spring-security-web/3.0.2.RELEASE/spring-security-web-3.0.2.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/spring-jdbc/3.0.5.RELEASE/spring-jdbc-3.0.5.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/spring-orm/3.0.5.RELEASE/spring-orm-3.0.5.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/spring-test/3.0.5.RELEASE/spring-test-3.0.5.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/spring-tx/3.0.5.RELEASE/spring-tx-3.0.5.RELEASE.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/webflow/spring-binding/2.3.0.BUILD-SNAPSHOT/spring-binding-2.3.0.BUILD-SNAPSHOT.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/webflow/spring-faces/2.3.0.BUILD-SNAPSHOT/spring-faces-2.3.0.BUILD-SNAPSHOT.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/webflow/spring-js-resources/2.3.0.BUILD-SNAPSHOT/spring-js-resources-2.3.0.BUILD-SNAPSHOT.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/webflow/spring-js/2.3.0.BUILD-SNAPSHOT/spring-js-2.3.0.BUILD-SNAPSHOT.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/org/springframework/webflow/spring-webflow/2.3.0.BUILD-SNAPSHOT/spring-webflow-2.3.0.BUILD-SNAPSHOT.jar'	booking-faces		Build path	Build Path Problem
Project 'booking-faces' is missing required library: '/home/andrea/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar'	booking-faces		Build path	Build Path Problem
Se clicko col tasto desto sul progetto e faccio PROPERTIES --> JAVA BUIL PATH --> LIBRARIES vedo la lista di tante librerie di cui la maggior parte con il segnetto rosso (come se non se le trovasse...)

Altre invece le trova...noto che tutte queste librerie (sia quelle che trova che quelle che non trova) dovrebbero stare dentro la sottodirectory di: /home/andrea/.m2/

Ma che cos'è questa cartella .m2? chi l'ha creata? e quando? booo

E' evidente che lui si aspetta di trovare anche altre librerie in delle subdirectory di questa directory...solo che non ho idea di cosa debba fare per fargliele avere...

Qualcuno sà aiutarmi? Stò iniziando ad impazzire

Grazie mille
Andrea
e-commerce84 è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


iPhone 17 Pro: più di uno smartphone. È uno studio di produzione in formato tascabile iPhone 17 Pro: più di uno smartphone. &Eg...
Intel Panther Lake: i processori per i notebook del 2026 Intel Panther Lake: i processori per i notebook ...
Intel Xeon 6+: è tempo di Clearwater Forest Intel Xeon 6+: è tempo di Clearwater Fore...
4K a 160Hz o Full HD a 320Hz? Titan Army P2712V, a un prezzo molto basso 4K a 160Hz o Full HD a 320Hz? Titan Army P2712V,...
Recensione Google Pixel Watch 4: basta sollevarlo e si ha Gemini sempre al polso Recensione Google Pixel Watch 4: basta sollevarl...
Samsung è sempre più prota...
ChatGPT ha pregiudizi politici? Ecco cos...
Un solo iPhone rubato ha portato alla sc...
Xiaomi 17 Ultra sta arrivando: ecco come...
Il Motorola Edge 70 non ha più se...
Alcuni Galaxy S26 utilizzeranno il chip ...
Amazon, ecco i super sconti del weekend:...
Scovare un bug di sicurezza sui disposit...
Offerta Amazon su NordVPN: proteggi 10 d...
ECOVACS DEEBOT X8 PRO OMNI in offerta su...
Scope elettriche Tineco in offerta su Am...
Offerta Amazon sui robot EUREKA J15 Ultr...
Chrome disattiverà automaticament...
Tornano tutti e 4 i colori disponibili p...
Super sconto su iPhone 16: Amazon abbass...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 06:06.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Served by www3v