[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.jsr220-orm] Re: Have you ever tried to run hibernate EntityManager from inside a plugin ?

Postgresql isn't supported (form rdb), unfortunately
Thomas wrote:

> I'm getting started with EJB3. I have a little demo that starts up fine
> when run as an Standalone J2SE App. When I try to start up the same when
> running as an eclipse plugin I get the Exception shown below. I assume
> that the META-INF/persistence.xml file isn't found at all. I tried jaring
> the META-INF and putting it an the classpath, I also tried to put the
> META.INF right alog with the plugin binaries. Any Ideas ? Where can I find
> the javax.persistence sources so I con inspect it better ? I guess its a
> eclipse classloader problem. Any help/hint would be very appreciated.
> Plain Hibernate works fine inside an eclipse plugin for me. I did that
> before.
> 
> Thomas
> Hibernate version:
> 3.1beta3
> Entity Manager beta 2
> 
> Mapping documents:
> persistence xml
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-manager>
> <name>paris</name>
> <class>eiswind.paris.domain.Category</class>
> <properties>
> <property name ="hibernate.connection.url" value="jdbc:postgresql:paris"/>
> <property name ="hibernate.dialect"
> value="org.hibernate.dialect.PostgreSQLDialect"/>
> <property name ="hibernate.connection.driver_class"
> value="org.postgresql.Driver"/>
> <property name ="hibernate.connection.username" value="thomas"/>
> <property name ="hibernate.connection.password" value=""/>
> </properties>
> </entity-manager>
> 
> Full stack trace of any exception that occurs:
> javax.persistence.PersistenceException: No Persistence provider for
> EntityManager named paris
> at
>
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:41)
> at
>
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
> at eiswind.paris.application.Application.run(Application.java:25)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> Name and version of the database you are using:
> PostgreSQL 7.3