Reputation: 149
Hey I am getting following error while try to deploy my project on remote glassfish server using netbeans:
SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
SEVERE: Exception while preparing the app
SEVERE: Invalid resource : proximity__pm
But If I deploy this project on my local machine glassfish server it works fine. I dont know why it gives me error on remote machine. Please can any one help me and let me know what is the wrong in it. Thanks in advance.
Upvotes: 3
Views: 4922
Reputation: 30025
This error can occur if your resources (connection pool, jdbc resource) are not deployed together with your application.
If you deploy with Netbeans locally, the IDE manages the deployment of resources for you. On a remote server if you only deploy the WAR file, resources will not be deployed automatically (unless you use application scoped resources).
You could either:
try to set up your resources manually on the remote server before you deploy your app
or change your application setting to use application scoped resources (which are then only available to the application they are deployed with and not to other web apps on the same server).
The documentation on application scoped GF resources is not very good at the moment. Best tutorial I found for my own project was this video tutorial.
Upvotes: 3
Reputation: 7665
Try looking in the remote glassfish server logs and find out what the exact error message is.
Upvotes: 0