So, all I ever get is:
[#|2009-07-14T18:08:56.958-0700|SEVERE|sun-appserver2.1|
javax.enterprise.system.container.web|
_ThreadID=25;_ThreadName=Thread-262;_RequestID=aed4d972-
e489-42c7-9f4b-1920de37a62f;|WebModule[/afe.service-1.0]PWC1275:
Exception sending context initialized event to listener instance of
class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11:
failed to parse runtime descriptor:
com.google.inject.CreationException: Guice creation errors:
1) No implementation for javax.persistence.EntityManager was bound.
while locating
com.google.inject.Provider<javax.persistence.EntityManager>
for parameter 0 at
org.guiceyfruit.jpa.support.PersistenceMemberProvider.<init>
(PersistenceMemberProvider.java:44)
while locating org.guiceyfruit.jpa.support.PersistenceMemberProvider
1 error
at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized
(WSServletContextListener.java:118)
at org.apache.catalina.core.StandardContext.listenerStart
(StandardContext.java:4632)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:5312)
at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:989)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
973)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
704)
at com.sun.enterprise.web.WebContainer.loadWebModule
(WebContainer.java:1627)
at com.sun.enterprise.web.WebContainer.loadWebModule
(WebContainer.java:1232)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed
(WebModuleDeployEventListener.java:182)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed
(WebModuleDeployEventListener.java:278)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener
(AdminEventMulticaster.java:1005)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent
(AdminEventMultic
When I have the following Guice Module:
public class ServiceModule extends AbstractModule {
private static final Logger logger = Logger.getLogger
(ServiceModule.class);
/* (non-Javadoc)
* @see com.google.inject.AbstractModule#configure()
*/
@Override
protected void configure() {
ServiceModule.logger.info("AFE Service: Configure Start
Initialization Commencing...");
final long now = System.currentTimeMillis();
//Install the JPA and JSR-250 modules
this.install(new JpaModule());
//Install Hibernate as the JPA Provider
this.bind(PersistenceProvider.class).to(HibernatePersistence.class);
}
}
How do I use Guiceyfruit with JPA here?? If I don't get an answer...I
will have to switch to Spring Framework to get this to work
correctly....