Search Results

Search found 2 results on 1 pages for 'bovo'.

Page 1/1 | 1 

  • Can't create EntityManager

    - by bovo
    New to EJB3, please help/explain. Inside a session bean I declare an EntityManager as follow @PersistenceContext(unitName="ScheduleUnit") private EntityManager em; and this works. But when I do this private EntityManager em; private EntityManagerFactory emf; public void myFunction() { emf = Persistence.createEntityManagerFactory("ScheduleUnit"); em = emf.createEntityManager(); } I get the following error: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property

    Read the article

  • Problem deploying GWT project with a servlet that invoke an EJB

    - by bovo
    I have a simple GWT project in Eclipse, it has a servlet that calls an EJB and everything works fine when I run it in hosted mode from Eclipse. MyProject +- src +- JRE System Library +- GWT SDK +- Apache Geronimo v2.2 +- myEJB.jar +- openejb.jar -- war -- +- images -- +- myproject -- +- WEB-INF I'm not sure what is the best way to deploy it, but what I did is create a .war file from the "war" folder of the project then deploy it to the server. Communication between client and server works fine but I get an error when I try to do JNDI look up for the EJB within the servlet. The error I get is something like "JNDI error, cannot find FooManagerRemote" Things works fine in hosted mode so I'm pretty sure that I din't deploy it correctly.

    Read the article

1