【发布时间】:2015-11-11 16:07:35
【问题描述】:
我想在 glassfish 4 中创建一个 JDBC 连接池。
我在 Eclipse Mars 中运行我的应用程序服务器,并访问 glassfish 的 administration page。
然后,我去 JDBC -> JDBC CONNECTION POOL -> NEW...
在表格中,我告知以下信息:
当我点击下一步时,我得到了这个错误页面
错误日志是:
2015-11-11T16:13:20.350+0000|Avertissement: Context path from ServletContext: differs from path from bundle: /
2015-11-11T16:13:21.789+0000|Infos: Redirecting to /index.jsf
2015-11-11T16:13:21.878+0000|Infos: Admin Console: Initializing Session Attributes...
2015-11-11T16:13:21.978+0000|Avertissement: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
2015-11-11T16:13:30.379+0000|Infos: Exception Occurred :null
2015-11-11T16:13:30.382+0000|Grave: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'event144'.
2015-11-11T16:13:44.087+0000|Infos: Exception Occurred :null
2015-11-11T16:14:00.368+0000|Avertissement: StandardWrapperValve[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
【问题讨论】:
-
检查您的域日志并发布堆栈跟踪,以便我们查看是否有解决方法 (glassfish4/glassfish/domains/
/logs/server.log) 否则会针对 Glassfish 记录一个错误项目。 -
哎呀,看起来像是管理界面中的一个错误。如果您无法解决它,您始终可以自己直接编辑 domain.xml 文件。
-
@Gimby :我应该在 domain.xml 文件中进行哪些更改。我不是应用服务器领域的专业人士。
-
我真的不知道你希望我回复什么,最好谷歌一下。
-
我遇到同样的问题,你可以看到这个答案stackoverflow.com/a/34030106/5627499
标签: java jdbc glassfish connection-pooling