运行startNetworkServer时出错



我正在尝试从外部netbeans启动网络服务器。我确实将DERBY_INSTALL变量设置为适当的目录,然后发出setNetworkServerCP命令,该命令也可以正常工作。但是当我尝试运行startNetworkServer时,我得到以下错误

C: 用户tandon> D:

D:> cd D: netbeans glassfish-v2.1 javadb bin

D:netbeansglassfish-v2.1javadbbin>setNetworkServerCP DERBY_HOME或没有设置DERBY_INSTALL。将其中一个变量设置为的位置您的Derby安装。D: netbeans glassfish-v2.1 javadb bin>DERBY_INSTALL = D: netbeans glassfish-v2。1 javadb

D: netbeans glassfish-v2.1 javadb bin> setNetworkServerCP.bat

D: netbeans glassfish-v2.1 javadb bin>DERBY_INSTALL = D: netbeans GLASSF ~ 1.1 j avadb

D: netbeans glassfish-v2.1 javadb bin>CLASSPATH = D: netbeans glassfish-v2.1 javadb lib derbynet.jar; D: netbeans glassfish-v2.1 javadb lib derbytools.jar;

D: netbeans glassfish-v2.1 javadb bin> setNetworkServerCP

D: netbeans glassfish-v2.1 javadb bin>DERBY_INSTALL = D: netbeans GLASSF ~ 1.1 j avadb

D: netbeans glassfish-v2.1 javadb bin>CLASSPATH = D: netbeans glassfish-v2.1 javadb lib derbynet.jar; D: netbeans glassfish-v2.1 javadb lib derbytools.jar; D: netbeans glassfish-v2.1 javadb lib derbynet.jar; D: netbeans glassfish-v2.1 javadb

lib derbytools.jar;

D: netbeans glassfish-v2.1 javadb bin> startNetworkServer安全使用基本服务器安全策略安装的管理器。访问被拒绝("java.net.SocketPermission" "localhost:1527" "listen,resolve")accesscontrolexception:拒绝访问("java.net.SocketPermission" "localhost:1527" "listen,resolve")在java.security.AccessControlContext。checkPermission(未知源)在java.security.AccessController。checkPermission(未知源)在java.lang.SecurityManager。checkPermission(未知源)在java.lang.SecurityManager。checkListen(未知来源)在java.net.ServerSocket.bind(未知来源)(来源不明)在javax.net.DefaultServerSocketFactory.createServerSocket(未知来源e)在org.apache.derby.impl.drda.NetworkServerControlImpl.createServerSocket(未知源)在org.apache.derby.impl.drda.NetworkServerControlImpl.access 000美元(不知n源)在org.apache. derby.imp.drda.networkservercontrollimpl $1.run(未知远端控制设备)在java.security.AccessController。doPrivileged(本地方法)org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart (Unknown源)org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork (Unknown源)

D: netbeans glassfish-v2.1 javadb bin>

在Java程序中也有更好的方法来做到这一点。我阅读了Apache网站上给出的官方文档(使用NetworkServerControl api),但我几乎不能从那里给出的东西中做出任何东西..........

这是一个已知的bug。下面的链接中描述了解决方法。(谷歌是你的朋友):

Netbeans bug报告

博客1

博客2

相关内容

  • 没有找到相关文章

最新更新