Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote
1 view

Hello I created a docker image of knowage basing upon the tomcat7 image .I followed the manual installation .Everything seems to be good but when I launched knowage I had a blank page.

When I have seen dockerfile I have found the following errors

Jul 24, 2017 9:01:21 AM org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: de.myfoo.commonj.work.FooWorkManagerFactory]
    at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:82)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:848)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
    at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:117)
    at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
    at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:145)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:110)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:82)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:388)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:333)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:751)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:694)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: java.lang.ClassNotFoundException: de.myfoo.commonj.work.FooWorkManagerFactory
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:80)
    ... 23 more

I tried to look for this error but I still don,t know its origine

I will be grateful if someone could help me

in Docker by (560 points)
retagged by

1 Answer

+2 votes
Hi,

    include foo-commonj.jar in <Tomcat root>/lib.

Please check that JAR file and others in a installed instance of Knowage CE.

Best regards,

Francesco
by (3.8k points)
yes thanks I tried this I found the following files
 el-api.jar                 tomcat-dbcp.jar
..             jasper-el.jar             tomcat-i18n-es.jar
annotations-api.jar  jasper.jar                 tomcat-i18n-fr.jar
catalina-ant.jar     jsp-api.jar             tomcat-i18n-ja.jar
catalina-ha.jar      postgresql-9.3-1102.jdbc41.jar  tomcat-jdbc.jar
catalina-tribes.jar  servlet-api.jar             tomcat-util.jar
catalina.jar         tomcat-api.jar             tomcat7-websocket.jar
ecj-4.4.2.jar         tomcat-coyote.jar             websocket-api.jar
Are they somefile missing
Hi,

    please check out also concurrent.jar and geronimo-commonj_1.1_spec-1.0.jar.
Best regards,

Francesco
Have you been able to resolve the issue?
yes thanks some libraries were missing
Thanks

Hi,

I'm having the same issue.

After shutting down knowage, i'm not able to restart it.

The log shows me the same as you.

What libraries were missing and in wich directory did you copy them?

I have these libraries in <Tomcat root>/lib:

Thanks.

...