|Re: No EntityFactory in Eclipse [message #210276]
||Wed, 12 March 2008 12:55
Originally posted by: merks.ca.ibm.com|
This sounds like a question for the WTP newsgroup, so I've added that to
the to list of my reply.
Is something supposed to automagically initialize "factory" or is that
not what's null? (A stack trace is always good.)
> I have a little WebProject developes with Eclipse Europe (188.8.131.52) and
> a GlassFish v.2 (9.1_01). Because of some problems after the deploy
> with Eclipse I teste my Project with another IDE. Installed NetBeans
> 6, copied all my ProjectFiles, i left out only the persistence.xml and
> let NetBeans generate it for me.
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="1.0"
> <persistence-unit name="DReminderPU" transaction-type="JTA">
> <provider>oracle.toplink.essentials.PersistenceProvider</provider >
> <property name="toplink.ddl-generation" value="create-tables"/>
> for this case i create a new connection pool for my server (worked
> fine) and try to get the EntityManagerFactory
> private EntityManagerFactory factory;
> The PROBLEM. After the deploy with NetBeans, all work fine (even after
> a redploy). But when i deploy it with Eclipse (same SourceCode, same
> Config-XMLs!, same Server) i get a null-pointer exception when i try
> to get my EntityManager: EntityManager em =
> Its confusing me :( Pls help...
Powered by FUDForum
. Page generated in 0.03570 seconds