无法从Eclipse连接到derby数据库。我已经在derby数据库中运行了查询并连接到它。但是,当我尝试将jsp页面与derby数据库连接时,它给我一个错误:
javax.servlet.ServletException:java.sql.SQLException:DERBY SQL错误:ERRORCODE:0,SQLSTATE:XJ001,SQLERRMC:java.security.AccessControlException访问被拒绝(“ java.io.FilePermission”“ D:\ MyDerDB”“阅读”)XJ001.U
String url="jdbc:derby:D:/MyDerDB;create=true";
String userdb = "admin";
String passdb = "password";
DriverManager.registerDriver(new org.apache.derby.jdbc.EmbeddedDriver());
Connection conn=DriverManager.getConnection(url,userdb,passdb);