java ee - Oracle Firstcup tutorial (firstcup-war) -


I am new to JavaE I got a tutorial firstcup from Oracle Java A page. I followed the dukes-age for tutorials and it works fine does not seem to be the tutorial for the first system running on my system.

I am using Netbeans 8.0, Glassfish 4.0 and Windows 7 operating system. 1. I followed the instructions given and when I started the project, I found the first message I had not seen on the tutorial (firstcup-war).

2. After adding the glassfish server the project was not deployed to the server and I received these warnings and exceptions are in the form of a glassfish server:

2.1

  WARNING: RAR5038: Unexpected exception exception while creating resource for the derby pool pool: javax.resource.spi.ResourceAllocationException: allocated connections Could not be used because: java.net.ConnectException: server with localhost on port 1527 Error in connecting to RT: Connect Warning: RAR5117: Connection pool [DerbyPool] failed to create / create connection due to: com.sun.appserv.connectors.internal.api.PoolingException: Could not allocate connection because : Java.net.ConnectException: Error message connecting to localhost on port 1527 with message: Connect warning: RAR5114: Error in allocating connection: [Error in assigning connection. Cause: Connection could not be allocated because: java.net.ConnectException: The error in connecting to the server localhost on port 1527 with the message has been denied: Connect.] Critical: Local Exception Stack: Exceptions [EclipseLink-4002] ] (Eclipse persistence service - 2.5 0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Error in assigning the connection. Cause: Connection could not be allocated because: java.net.ConnectException: Error message connecting server to localhost on port 1527 with message: Connect Error code: 0 org.eclipse.persistence.exceptions.DatabaseException. sqlException at (databaseException.java:316) org.eclipse.persistence.sessions.JNDIConnector.connect (JNDIConnector.java:135) ..... and series other exceptions which caused the above execution. Exceptions while deploying the app [Early War]: Critical: Excerpt during lifecycle processing org.glassfish:  2.2   
  Critical: Exception .deployment.common.DeploymentException: Exception [EclipseLink-4002] (Eclipse Strength Service - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Connection Error in assigning Cause: The connection could not be allocated because: java.net.ConnectException: The server with the message denied the error connecting to the server localhost at 1527: Connect .....   < p>  3.   

On the run (first-war) Output page I found this message after log: The success of the build says:

  ------- ----------------------------- --------------------- --------------- Total Time: 7.994 seconds Finished: Mon 21 Apr 17:05: 54 Watt 2014 Final Memory: 9m / 111m -------- -------------------------------- ------------------ -------------- Netbeans: Glassfish employed on server profile mode: Wrong debug mode: Wrong force redeploy: true C: \ Users \ NYE \ Documents \ NetBusiness Projects \ Java E \ War Shy \ firstcup-war-1.0-SNAPSHOT Glasfis server, deploy,   

Please help me fix it.

The tutorial only creates a war file in Maven, using this glassfish console to be installed on the Glassfish server is.

  http: // localhost: 4848   

In addition to this, you have to start the Java database.

  asadmin start-database    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -