Skip to content
Advertisement

Tag: websphere

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”

My application is to be deployed on both tcServer and WebSphere 6.1. This application uses ehCache and so requires slf4j as a dependency. As a result I’ve added the slf4j-api.jar (1.6) jar to my war file bundle. The application works fine in tcServer except for the following error: However, when I deploy in WebSphere I get a java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder. Also

Read a Environment Variable in Java with Websphere

I’ve a little problem with Websphere application server 7.0 (WAS7) and the reading of Environment Varaibles. With TomCat, I’ve defined a variable as and I read it with a lookup on the initialContext : and it works! But with Websphere, I define a environment variable on the GUI but I can’t read it in my java code. I’ve a NamingException.

Advertisement