This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172229 - Sample JsfJpa doesn't work with remote server
Summary: Sample JsfJpa doesn't work with remote server
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: blueprints (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 22:42 UTC by davisn
Modified: 2013-02-13 10:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2009-09-14 22:42:34 UTC
The web sample JsfJpa (Java EE 5) does not run with GF V3 remote server. The problem seems occur with database connection.

Steps To Reproduce:
1. Install NB trunk build 09/14/2009
2. Install GF V3 b62 build on a remote machine -> start the server
3. Register the remote V3 server
4. Create the JsfJpa sample web project -> select GlassFish V3 domain as default server
5. Run the project
Note:
   The project was run successfully
6. Change the project runtime server to V3 remote server
7. Re-run the project
BUG:
   exception
javax.servlet.ServletException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse
Persistence Services - 2.0.0.v20090821-r4934): 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
root cause
javax.faces.el.EvaluationException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse
Persistence Services - 2.0.0.v20090821-r4934): 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
root cause
Comment 1 Vince Kraemer 2009-11-11 10:21:45 UTC
you have to make sure that the database is running on the remote server.  The IDE cannot do that for 'remote' servers in this release.  May depend on new feature development from the server team, too.