roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harihara Vinayakaram" <>
Subject Error creating entity manager -- Roller on Postgres
Date Mon, 10 Mar 2008 15:30:58 GMT
   I searched the archives and could not find an entry for the above. My
apologies if this has already been answered .

   I am trying to deploy roller 4. on jboss-4.2.1 using Postgres 8.2  . I
managed to do the following :
    a) Get jboss to load the  which I confirmed
from the following logs

The roller.log file says :
INFO  2008-03-10 20:28:44,868 WebloggerFactory:bootstrap - Weblogger
Provider =
INFO  2008-03-10 20:28:44,877 DatabaseProvider:successMessage - SUCCESS: Got
parameters. Using configuration type JDBC_PROPERTIES
INFO  2008-03-10 20:28:44,877 DatabaseProvider:successMessage - -- Using
JDBC driver class: org.postgresql.Driver
INFO  2008-03-10 20:28:44,878 DatabaseProvider:successMessage - -- Using
JDBC connection URL: jdbc:postgresql://
INFO  2008-03-10 20:28:44,878 DatabaseProvider:successMessage - -- Using
JDBC username: postgres
INFO  2008-03-10 20:28:44,878 DatabaseProvider:successMessage - -- Using
JDBC password: [hidden]
INFO  2008-03-10 20:28:44,878 DatabaseProvider:successMessage - SUCCESS:
loaded JDBC driver class [org.postgresql.Driver]

But immesdiately I get an error that says  :

ERROR 2008-03-10 20:28:44,895 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: Provider error. Provider:
        at javax.persistence.Persistence.createFactory(
        at javax.persistence.Persistence.createEntityManagerFactory(

I searched the JBOSS forums for the above and found this link : - Forums - Problem creating
EntityManagerFactory<>( ) which indicates that this
API cannot be used but a different look up needs to be done.
Yes, this API doesn't work inside JBoss AS. Use the J2EE way of doing
things: aka @PersistenceContext or you can look up the EM/EMF in JNDI:


Is this the only way to do this or is there a different solution .

Thanks for the help

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message