I am very new to WebLogic.
I have a WebLogic domain in which there are 2 servers running one of which is the admin server and on both servers there are webservices that I am trying to test.
Whenever a request is sent to the url of the admin server, the output is showing in the server logs while when using that of the second server, nothing is showing although I configured the logging for both servers in the same way.
Appreciate any help.
EDIT :
Sorry I forgot to mention that I am using log4j for the webservices loggin
By default, the server log file is located in the logs directory below the server instance root directory; for example, DOMAIN_NAME\ servers \SERVER_NAME\ logs \SERVER_NAME. log , where DOMAIN_NAME is the name of the directory in which you located the domain and SERVER_NAME is the name of the server.
The logging implementation configured for WebLogic Server can be either Java Logging (the default), or Log4J Logging. When the appender receives an application log message, in the form of a org. apache.
As Viccari suggested, you should be able to find the logs in the following locations:
Server 1 node(Admin Server) :
[WL home]/user_projects/domains/[your domain]/servers/AdminServer/logs
Server 2 node:
[WL home]/user_projects/domains/[your domain]/servers/Server2_name/logs
Further, I would recommend starting the servers from the command-line and capture the output of those started processes into additional logging files, for example:
For AdminServer:
[WL home]/user_projects/domains/[your domain]/startWeblogic.sh | tee log.AdminServer
For Server2:
[WL home]/user_projects/domains/[your domain]/bin/startManagedWebLogic.sh server2_name t3://adminServer:7001 | tee log.server2_name
These logs will e.g. show you the output of System.out.println()
called in your Webservices.
Also, have a look into the [WL home]/user_projects/domains/[your domain]/bin/startWeblogic.sh
script and set the variable WLS_REDIRECT_LOG
to a value pointing to a file where you want to store the Weblogic output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With