I have deployed my application on JBOSS7.2. It is working fine on some servers. But on some servers, application log is not working. It just creates the file and writes "successfully created memcache client
" and nothing else is logged. The same build in working fine on some JBOSS 7 servers. Tried whatever is written on internet, not helping.
could be a problem with your:
logging-configuration
the general logging level
Which log level are you using in your application?
Regards,
Sascha
Related
I am currently trying to get an application running on a Websphere Application Server [1] (commonly shortened to 'WAS') Docker image [2].
I can connect to the websphere online console (wsadmin) and use it to create a new Enterprise application based on a .war file. I created an application, decided not to run it in distributed mode, but kept the other settings to their default values. The application has been created successfully, I can see it under Applications > Websphere Enterprise Applications.
-But it has the application status 'unknown', which does not change if I start or stop it (neither starting nor stopping generates an error message in the online console).
So without any feedback and as a complete newby to WAS, I have no idea how to further deploy this application.
How can I get an application status, start the application or get at least an error message to make some progress?
EDIT 1
The log directory /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1 contains (_only) the following log files:
logdata
(multiple logs in the form) {id like 1628494344657_368}_server1
tracedata
1628494344624_368-server1.lock
List item
(multiple logs in the form) TextLog_{YY}.{MM}.{DD}_{hh}.{mm}.{ss}_server1.log
hpelRepository.owner
logViewer.pos
native_stderr.log
native_stdout.log
server1.pid
startServer.log
(multiple logs in the form) verbosegc.{index starting at 001}.log
Since I haven't found something like systemErr/Out.log, I have looked into most of the files. I didn't find an obvious error message at the end of these files (- the ones dated for today seemed to contain more useful information, like documents being created during deployment of my example application, I can add them if someone needs them to help me).
[1] Server Version: 9.0.5
[2] Docker image used: ibmcom/websphere-traditional#sha256:334dede7396a7ff372b048a974f676969e0d847ceba30b3e81b255a86bc42500
I'm following one tutorial to get kie-drools-workbench and kie-server working: https://www.intertech.com/Blog/simple-setup-of-drools-kie-workbench-and-kie-server-in-one-wildfly-instance/
Installed wildfly and downloaded the kie-server-6.4.0.Final-ee7 and kie-drools-wb-distribution-wars-6.4.0.Final-wildfly8 and move them to C:\apps\wildfly-8.2.1.Final\standalone\deployments
Created user jeff with roles admin and developer on wildfly like the tutorial shows.
on CMD start standalone which starts wildfly 8.2.1
got at C:\apps\wildfly-8.2.1.Final\standalone\deployments
- kie drools .war and .deployed
- kie server 64.0 .war and .deployed
Login with jeff user at administration on http://localhost:8080/ and got redirected to http://localhost:9990/console/App.html#home
Under deployments I have the kie-server and kie-drools enabled, how can I access them?
I can land to the kie Workbench with kie server user at http://localhost:8080/kie-drools-wb-distribution-wars-6.4.0.Final-wildfly8/kie-drools-wb.html but I can't land on the kie-server, got forbidden with user jeff or user kieserver at http://localhost:8080/kie-server-6.4.0.Final-ee7/services/rest/server/containers
I don't find why, I login with jeff user but got forbidden and have to restart all to try another user / pass, like kieserver user.
I access kie-workbench, loggin with kieserver user and under deploy -> rule deployments -> remote servers got the kie server link, but the problem is the same, can't access it. forbidden and only have one shot to get the user pass right, or else I have to restart it.
The objective is to work better with drools rules and debug rules the best way, get to check which fact are loaded and which rules are applied to each fact..
Does anyone got the same issue? Or got something like what I need working?
EDIT: I can work with rules on kie-Drools-wb, the question is, do I really need the kie server to start? Because I only need to create rules based one a database.
I think I found the solution.
I don't need to use the server, the server is wildfly and should be running by then, the drools Workbench as explained on the tutorial works and the demo project is the sandbox.
This is only for academic purposes.
I'm using Console.WriteLine in a Guest Executable service.
I enabled ConsoleRedirection as instructed here and am able to see logs locally.
When I log into the Cloud VM I see the log files, but they are empty.
Any ideas?
Thanks,
Jon
It is possible that the process is still running and has not flushed the buffers?
Can someone please give detailed way to monitor JBOSS app server ?
The production application running on JBOSS server starts working fine after restarting the server. How do I identify what is the cause behind it?
To see what is "hung", try getting a thread dump from your JBoss instance by running it in the foreground from a command shell. Then on Linux, send a kill -3 [PID] to JBoss to dump its thread state to stdout. On Windows, you would type Control-Break in the CMD shell running JBoss. Alternatively, use a monitoring tool like VisualVM.
NServiceBus writes to the logs into the folder where the host process is. How can I write my application specific log to a separate file using log4net so that I look at the application logs and then if there is a NServiceBus issue, I go look at the NServiceBus logs.
If I go the IWantCustomLogging route, everything gets written to the destination file.
Any suggestions?
Thanks
Prasad
You can configure that in app.config. http://particular.net/articles/generic-host-sample