Unknown entity bean class after hot deploy: netbeans 6.9 + glassfish 2.1 + eclipselink jpa 2.0

后端 未结 5 1589
挽巷
挽巷 2021-01-19 06:39

When I deploy my app, it works perfectly until I make a change, save, and netbeans hot deploys the application. At this point I get an unknown entity bean class error on a c

5条回答
  •  抹茶落季
    2021-01-19 07:13

    Although it is not apparent from the posted code if this is the solution but symptoms are the same.

    It seems to happen when creating entity manager from entity manager factory outside of the container. The factory needs to be closed on un-deploying. That is why it works only first time when deployed and not on redeploy. See: Unknown entity bean class issue with glassfish v3

提交回复
热议问题