简体   繁体   中英

On IntelliJ, how to run JDBC connection on starting Glassfish

In Intellij Idea 12, i'm trying to start glassfish and deploy my application.

I got that error: rg.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Connection could not be allocated because: java.net.ConnectException. Port 1527 closed.

But when I run the same project in Netbeans, I see that Netbeans start the connection on 1527 before starting Glassfish. And the option is checked: "Enable JDBC Driver Deployment".

How can I do the same in Intellij?

Thanks in advance

That was due to the Apache derby server that wasn't running. I need to run before the script "startNetworkServer" from derby driver to make it work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM