ibm-developer / generator-ibm-java-liberty

🚫Deprecated.
0 stars 7 forks source link

Errors running generated application in Docker when using --javametrics #33

Open sjanuary opened 6 years ago

sjanuary commented 6 years ago

Using a local checkout of generator-liberty installed via npm link. Running yo ibm-java --javametrics=true, mvn install, docker build -t liberty .docker run -p9080:9080 liberty I see the following error in the Docker logs and the server does not come up.

Running mvn liberty:run-server works fine.

[ERROR   ] CWWKE0701E: FrameworkEvent ERROR Bundle:com.ibm.ws.ejbcontainer(id=85) org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()
    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:222)
    at [internal classes]
Caused by: java.lang.NoClassDefFoundError: com.ibm.tivoli.itcam.was.ejb.access.IEJSWrapperBase
    at java.lang.ClassLoader.defineClassImpl(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:377)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:276)
    ... 1 more
Caused by: java.lang.ClassNotFoundException: com.ibm.tivoli.itcam.was.ejb.access.IEJSWrapperBase cannot be found by com.ibm.ws.ejbcontainer_1.0.19.201712061606
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
    ... 1 more
 Event:org.osgi.framework.FrameworkEvent[source=com.ibm.ws.ejbcontainer_1.0.19.201712061606 [85]] 
paulben commented 6 years ago

Assigning to Sian since it could be something local to her envir, and it doesn't fail with public devex generated projects.