Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Deploying SmartClient on Tomee application server

    Getting an Error when trying to deploy the SmartClient in TomEE application server

    11-22 10:55:50 [SEVERE] Exception sending context initialized event to listener instance of class com.isomorphic.base.InitListener
    java.lang.ExceptionInInitializerError
    at com.isomorphic.base.InitListener.contextInitialized(InitListener.java:90)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException
    at com.isomorphic.log.Log4jLogger.<init>(Log4jLogger.java:197)
    at com.isomorphic.log.Logger.<init>(Logger.java:284)
    at com.isomorphic.log.Logger.<init>(Logger.java:257)
    at com.isomorphic.io.ISCFile.<clinit>(ISCFile.java:92)
    ... 10 more

    Any help would be appreciated

    thanks

    #2
    This could be caused by not having Log4j on your classpath, while also not configuring logging to use any other logging system - see Server Logging.

    It's also possible that you skipped the step in installation where you should have copied log4j.isc.config.xml into the classpath.

    Comment


      #3
      Turns out TomEE is not using Log4j so i have added those 2 VM arugments to the Catalina.bat
      -DiscUseSlf4j=true -DiscUseLog4jConfig=false to fix the issue

      thank you

      Comment

      Working...
      X