vendredi 22 janvier 2016

Java DB Web starter In Bluemix

I am trying to run a Java DB Web starter create In Bluemix in my local Liberty Server. But it keeps giving the error

ERROR   ] CWWJP0029E: The server cannot find the openjpa-todo persistence unit in the liberty-IRDS.war module and the JavaDBApp application.
[ERROR   ] CWNEN0035E: The java:comp/env/openjpa-todo/entitymanager reference of type javax.persistence.EntityManager for the null component in the liberty-IRDS.war module of the JavaDBApp application cannot be resolved.
[err] javax.naming.NamingException: CWNEN1001E: The object referenced by the java:comp/env/openjpa-todo/entitymanager JNDI name could not be instantiated. If the reference name maps to a JNDI name in the deployment descriptor bindings for the application performing the JNDI lookup, make sure that the JNDI name mapping in the deployment descriptor binding is correct. If the JNDI name mapping is correct, make sure the target resource can be resolved with the specified name relative to the default initial context. [Root exception is com.ibm.wsspi.injectionengine.InjectionException: The java:comp/env/openjpa-todo/entitymanager reference of type javax.persistence.EntityManager for the null component in the liberty-IRDS.war module of the JavaDBApp application cannot be resolved.]
[err]   at com.ibm.ws.injectionengine.osgi.internal.naming.InjectionJavaColonHelper.newCannotInstantiateObjectException(InjectionJavaColonHelper.java:183)
[err]   at [internal classes]

Steps done:

  • Create Java DB Web Starter in Bluemix
  • Download Code
  • Deploy
  • Tried adding VCAP_SERVICES in my system env variable

Also tried configuring datasource in server.xml (Which I am little unsure of) Need pointers how to fix this.




Aucun commentaire:

Enregistrer un commentaire