Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/372.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在IntelliJ上,如何在启动Glassfish时运行JDBC连接_Java_Netbeans_Jdbc_Intellij Idea_Glassfish - Fatal编程技术网

Java 在IntelliJ上,如何在启动Glassfish时运行JDBC连接

Java 在IntelliJ上,如何在启动Glassfish时运行JDBC连接,java,netbeans,jdbc,intellij-idea,glassfish,Java,Netbeans,Jdbc,Intellij Idea,Glassfish,在Intellij Idea 12中,我尝试启动glassfish并部署我的应用程序 我得到了那个错误:rg.eclipse.persistence.exceptions.DatabaseException 内部异常:java.sql.SQLException:无法分配连接,因为:java.net.ConnectException。1527号港口关闭 但是当我在Netbeans中运行相同的项目时,我看到Netbeans在启动Glassfish之前在1527上启动了连接。选中该选项:“启用JDBC

在Intellij Idea 12中,我尝试启动glassfish并部署我的应用程序

我得到了那个错误:rg.eclipse.persistence.exceptions.DatabaseException 内部异常:java.sql.SQLException:无法分配连接,因为:java.net.ConnectException。1527号港口关闭

但是当我在Netbeans中运行相同的项目时,我看到Netbeans在启动Glassfish之前在1527上启动了连接。选中该选项:“启用JDBC驱动程序部署”

我如何在Intellij中实现同样的功能


提前感谢

这是由于Apache derby服务器没有运行。 我需要在derby驱动程序中的脚本“startNetworkServer”之前运行,以使其正常工作