Hi Dario,
I still don't know how to solve this problem from yesterday. But except this
problem with GlassFish V2 I found out one more problem with Java app which I
have never have. I am not sure if it can be connected with this one or not.

>From yesterday all my Java applications are not able to connect to MySQL
server by means of mysql-connector-java 5.0.6. The problem is that the
method
DriverManager.getConnection(
"jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8",
"root", "pswd"); always raises the following exception

com.mysql.jdbc.CommunicationsException: Communications link failure due to
underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.ConnectException
MESSAGE: Connection refused: connect
STACKTRACE:
java.net.ConnectException: Connection refused: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.<init>(Socket.java:366)
 at java.net.Socket.<init>(Socket.java:209)
 at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
 at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:268)
 at com.mysql.jdbc.Connection.createNewIO(Connection.java:2745)
 at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
 at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
 at java.sql.DriverManager.getConnection(DriverManager.java:582)
 at java.sql.DriverManager.getConnection(DriverManager.java:185)
 at Common.DbConnection.<init>(DbConnection.java:54)
 at Main.BaseClass.configFileReading(BaseClass.java:531)
 at Main.BaseClass.<init>(BaseClass.java:108)
 at Main.BaseClass$1.run(BaseClass.java:865)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
 at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
 at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
 at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

** END NESTED EXCEPTION **

Last packet sent to the server was 0 ms ago.

I suppose this may be connected with my problem with GlassFish V2 server.
Both problems have begun at the same time. And today I was trying to
reinstall not only Netbeans but also JRE, JDK and MySQL server, but no
success. But fortunately my supervisor advised me to enable root access from
remote machine to MySQL server and then replace "localhost" by IP adress of
my computer:

DriverManager.getConnection(
"jdbc:mysql://XXX.XXX.XX.X:3306/test?useUnicode=true&characterEncoding=UTF-8",
"root", "pswd");

where XXX.XXX.XX.X is IP address of my PC, and it partially solves my
problem with connection to MySQL. So now I am thinking that there may be one
source of both problems like network settings (firewall is turned off).
Dario could you please verify if you are able to connect to MySQL database
from java app using
DriverManager.getConnection(
"jdbc:mysql://locahost:3306/test?useUnicode=true&characterEncoding=UTF-8",
"root", "pswd"); commad ?

Peter
On Fri, Mar 13, 2009 at 11:04 PM, Darío Alvarez <dalva...@roshka.com.py>wrote:

> Hi People,
>
> same problem here. Server.log file has absolutely NONE error messages. I
> read somewhere it could be a corrupted domain.xml file. I tried several,
> each-nastier-than-the-previous, things:
>
>    1. created another domain, same problem.
>    2. Deleted and recreated domain1, same problem.
>    3. Uninstalled and reinstalled NB / GF, same problem.
>
> One strange thing is that the message (in form of dialog) only appears when
> starting the server from NB. When doing it via asadmin console, there is no
> error, but the server is not up either.
>
> I'm running out of ideas really. Any help will be useful!
>
> Thanks,
>
> Darío.
>
> Karl escribió:
>
> Peter,
> Look in the server.log file as the message mentions. It should provide more 
> information. Not sure why the error message doesn't give the actual path 
> (would save a few messages to this list) but it should be somewhere like this:
> [GlassfishFolder]/domains/domain1/logs/server.log
>
> ~Karl
>
>
> --- On Thu, 3/12/09, Kukučka, Peter <peter.kuku...@gmail.com> 
> <peter.kuku...@gmail.com> wrote:
>
>
> I have the problem, I cannot run Web App on GlassFish V2
> sever.
>
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to