We are deploying our application from maven compiled code to JBoss.
Maven is able to compile the code and it is shared by people. Also, it is using log4j
version 1.2.16
. Within JBoss the application build is successful, but the web page is not opening.
JBoss has the log4j.jar
in server\default\lib
and client
folders.Plus, log4jboot.jar
is in client
folder.
As it is not working with opening web page, I changed all log jars in JBoss to version 1.2.16
.
Now the application is up and web page is running, but I am not able to see the log details in server command prompt.
Currently this is the error:
failed to initialize plugin org.jboss.logging.log4jloggerplugin
Could anybody give an idea on this?
Edit:
With log4jboot.jar, the error is 500 error:
type Exception report
// message:
The server encountered an internal error () that prevented it from fulfilling this request.
// exception:
javax.servlet.ServletException: Filter execution threw an exception
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
// root cause:
java.lang.NoSuchMethodError: org/apache/log4j/MDC.clear()V