尝试在 ACC 中运行 jar 时出现密码凭据错误
我正在尝试运行一个独立的应用程序,它将在应用程序客户端容器中执行。
我正在运行 glassfish 并设置了相关的 JDBC 池和资源(对连接池执行 ping 操作会显示成功消息)。
运行程序:
appclient-客户端书店.jar
导致一个大的错误堆栈(我只包含了一小部分):
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found
看来是 PasswordCredential 导致了问题,但是我认为我已经正确设置了数据库连接。
关于可能导致这种情况的原因有什么想法吗?
I am trying to run a stand-alone application, which will be executed in a application client container.
I have glassfish running and have setup the relevant JDBC pool and resource (pinging the connection pool shows a successful message).
Running the program with:
appclient -client bookstore.jar
results in a large error stack (i've included only a small section):
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found
It appears that PasswordCredential is causing the problem, however I think I have setup the database connections correctly.
Any ideas on what could be causing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论