Ciao a tutti, ho un leggero problemino riguardante l'avvio di un'applicazione java su windows server 2008 R2.
Premetto che l'applicazione utilizza JPA (eclipselink) per la persistenza.
L'applicazione in locale funziona perfettamente ma se da remoto l'avvio sul server dedicato di aruba mi lancia la seguente eccezione:
codice:
java -jar Server.jar [EL Info]: 2012-07-04
21:26:08.722--ServerSession(795316704)--EclipseLink, versi on: Eclipse Persistence
Services - 2.3.0.v20110604-r9504 [EL Severe]: 2012-07-04
21:26:38.594--ServerSession(795316704)--Local Exception Stack: Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.3.0.v20110604-r95 04):
org.eclipse.persistence.exceptions.DatabaseException Internal Exception:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host
95.110.193.73, port 5835 has failed. Error: "connect time d out. Verify the connection
properties, check that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no f irewall is blocking TCP connections to the
port.". Error Code: 0 at
org.eclipse.persistence.exceptions.DatabaseException.sqlException(Dat
abaseException.java:324) at
org.eclipse.persistence.exceptions.DatabaseException.sqlException(Dat
abaseException.java:319) at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConn
ector.java:138) at
org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(
DatasourceLogin.java:162) at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAn
dDetectDatasource(DatabaseSessionImpl.java:582) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.log
in(EntityManagerFactoryProvider.java:206) at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(En
tityManagerSetupImpl.java:472) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.get
DatabaseSession(EntityManagerFactoryDelegate.java:188) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.cre
ateEntityManagerImpl(EntityManagerFactoryDelegate.java:277) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createE
ntityManagerImpl(EntityManagerFactoryImpl.java:290) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createE
ntityManager(EntityManagerFactoryImpl.java:268) at server.ServerControlPanel.
<init>(ServerControlPanel.java:31) at
server.ServerControlPanel$3.run(ServerControlPanel.java:189) at
java.awt.event.InvocationEvent.dispatch(Unknown Source) at
java.awt.EventQueue.dispatchEventImpl(Unknown Source) at
java.awt.EventQueue.access$000(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour ce) at
java.awt.EventQueue.dispatchEvent(Unknown Source) at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at
java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
java.awt.EventDispatchThread.run(Unknown Source) Caused by:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connectio n to the host
95.110.193.73, port 5835 has failed. Error: "connect timed out. Ve rify the connection
properties, check that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no firewall i s blocking TCP connections to the
port.". at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(S
QLServerException.java:171) at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLSer
verConnection.java:1033) at
com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConne
ction.java:817) at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerCon
nection.java:700) at
com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver. java:842)
at java.sql.DriverManager.getConnection(Unknown Source) at
java.sql.DriverManager.getConnection(Unknown Source) at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConn
ector.java:98) ... 24 more Exception in thread "AWT-EventQueue-0"
javax.persistence.PersistenceException: E xception [EclipseLink-4002] (Eclipse
Persistence Services - 2.3.0.v20110604-r950 4):
org.eclipse.persistence.exceptions.DatabaseException Internal Exception:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host
95.110.193.73, port 5835 has failed. Error: "connect time d out. Verify the connection
properties, check that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no f irewall is blocking TCP connections to the
port.". Error Code: 0 at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(En
tityManagerSetupImpl.java:501) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.get
DatabaseSession(EntityManagerFactoryDelegate.java:188) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.cre
ateEntityManagerImpl(EntityManagerFactoryDelegate.java:277) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createE
ntityManagerImpl(EntityManagerFactoryImpl.java:290) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createE
ntityManager(EntityManagerFactoryImpl.java:268) at server.ServerControlPanel.
<init>(ServerControlPanel.java:31) at
server.ServerControlPanel$3.run(ServerControlPanel.java:189) at
java.awt.event.InvocationEvent.dispatch(Unknown Source) at
java.awt.EventQueue.dispatchEventImpl(Unknown Source) at
java.awt.EventQueue.access$000(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.awt.EventQueue$3.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method) at
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour ce) at
java.awt.EventQueue.dispatchEvent(Unknown Source) at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at
java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
java.awt.EventDispatchThread.pumpEvents(Unknown Source) at
java.awt.EventDispatchThread.run(Unknown Source) Caused by: Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.3.0.v2 0110604-r9504):
org.eclipse.persistence.exceptions.DatabaseException Internal Exception:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host
95.110.193.73, port 5835 has failed. Error: "connect time d out. Verify the connection
properties, check that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no f irewall is blocking TCP connections to the
port.". Error Code: 0 at
org.eclipse.persistence.exceptions.DatabaseException.sqlException(Dat
abaseException.java:324) at
org.eclipse.persistence.exceptions.DatabaseException.sqlException(Dat
abaseException.java:319) at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConn
ector.java:138) at
org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(
DatasourceLogin.java:162) at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAn
dDetectDatasource(DatabaseSessionImpl.java:582) at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.log
in(EntityManagerFactoryProvider.java:206) at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(En
tityManagerSetupImpl.java:472) ... 20 more Caused by:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connectio n to the host
95.110.193.73, port 5835 has failed. Error: "connect timed out. Ve rify the connection
properties, check that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no firewall i s blocking TCP connections to the
port.". at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(S
QLServerException.java:171) at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLSer
verConnection.java:1033) at
com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConne
ction.java:817) at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerCon
nection.java:700) at
com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver. java:842)
at java.sql.DriverManager.getConnection(Unknown Source) at
java.sql.DriverManager.getConnection(Unknown Source) at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConn
ector.java:98) ... 24 more C:\Users\Administrator>
Grazie del supporto.