I use logback in an EAR file that contains JAR (ejb) and WAR. This should run on the Glassfish v3 server. Everything works, except for loading logback.xml. It is impossible to find. I am creating a project with Netbeans. The external libraries used are located in the lib-Directory EAR (which should not matter where they are ...). I planned to put the logback.xml file in the root directory or another subdirectory in the EAR. The Classpath is specified in the JAR and WAR manifest files. But for some reason, logback.xml was not found ... (Courting the assembly contains logback.xml;))
I tried every place in the logback.xml file. Even in WAR or JAR. Nothing worked ...
If I use a standalone WAR then everything works fine and logback.xml was found. (OK. Not all. Changing the class path in the manifest does not work ...)
So my question is: Does anyone already run logback.xml to run in the EAR?
Here is my manifest (I hope this is the correct syntax):
Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.2 Created-By: 1.7.0_147-icedtea-b147 (Oracle Corporation) Class-Path: ./
Hope someone can help me.
Hi
jsf glassfish logback ear
Knox
source share