What to do, the steps, the guides on configuring the Glassfish server with MySQL Dataresource
I initially created the JDBC connection pool and made a successful ping
22 Replies
⌛
This post has been reserved for your question.
Hey @Rag...JN 🌌 🦡 👽 💰! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
and I don't know what's next
Getting this error when running the app
Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: JNDI lookup failed for the resource: Name: WebPU,
So I assume I need to make a JNDI connection in the glassfish serverWhat's under jdbc resources
You need to link the data source to a jndi name under jdbc resources
Stack Overflow
Glasshfish jndi lookup failed
I am new on stack, this is my first post, so sorry if I did something wrong.
I'm trying to connect my glassfish 5 server with my MySQL database in NetBeans 8.2, but every time time I try to deploy ...
Alright I'll try this
Currently outside
can't this added in the glassfish server instead of the app?
here somewhere/
because I got the app/project from my friend, it works for him. but not for me because I missed some configurations
Expand jndi resources under jdbc
Not jndi by itself
yea Test is the one I successfully created
But it's not available as a jndi resource
Create a jdbc resource that points to Test connection pool
alright so I have to create a new JDBC resource
Yes. This will make it discoverable by apps running on the app server
By its jndi name
JNDI name should be WebPU
Ok
Still the same issue
jdbc/test could be it?
Oh you were asking not telling
WebPU sounds like the name of the jpa persistence unit (PU). Based on that error yes the jndi name should be jdbc/test
also there are codes uses that configuration as well.
I am confused whether it should be jdbc/Test or jdbc/WebPU
@imp_o_rt Hey it was the old ejb
after I rebuild my modules the error gone
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.