Sono principiante in Java EE. Oggi ho provato a imparare Java EE seguendo questo tutorial: http://netbeans.org/kb/docs/javaee/javaee-gettingstarted.htmlImpossibile eseguire il deployment del progetto JavaEE
insegna fondamentalmente come creare un'applicazione Web Java da categorie Web usando Netbeans.
Quando eseguo l'applicazione, ho avuto la generazione non riuscita messaggio di errore simile a questo:
WebApplication1/build/web&name=WebApplication1&contextroot=/WebApplication1&force=true failed on GlassFish Server 3+
Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection.
Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused.
Error Code: 0. Please see server.log for more details.
WebApplication1/nbproject/build-impl.xml:721: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 2 seconds)
ho già girare server di GlassFish su e scelgo GlassFish come server durante la creazione di questo progetto, ma sembra che il server nega connessione.
Puoi pubblicare cosa c'è nel file server.log glassfish? – Preston
Non riuscivo a trovarlo. È glassfish 3.1.2. – qusr