-
1. Re: Access server.log with JBoss5
jaikiran Mar 12, 2009 7:55 AM (in response to mawa)org.jboss.xb.binding.JBossXBException: Failed to parse source: Context not found as a child of Host
See this http://www.jboss.org/index.html?module=bb&op=viewtopic&t=150966 -
2. Re: Access server.log with JBoss5
mawa Mar 12, 2009 8:21 AM (in response to mawa)Thanks for your answer, but I read it already. The suggestion is to put static content into war-files and deploy them, ok. I didn't find any hint, how to access the log/server.log with JBoss5.
-
3. Re: Access server.log with JBoss5
peterj Mar 12, 2009 11:07 AM (in response to mawa)Here's a bizarre idea. Set the jboss.server.log.dir system property to use a .war extension and then follow the advice in the above jira. To set the system property, add something like "-Djboss.server.log.dir=/path/to/server/xxx/log.war" to JAVA_OPTS within run.conf (Linux) or run.bat (Windows).
-
4. Re: Access server.log with JBoss5
peterj Mar 12, 2009 11:10 AM (in response to mawa)Slight revision - I think you will also need to move the log directory out of server/xxx because if you leave it there then the deploy directory could be scanned twice. So I suggest something like: "-Djboss.server.log.dir=/opt/jboss/log.war" then add "/opt/jboss" as another deploy directory.
-
5. Re: Access server.log with JBoss5
mawa Mar 13, 2009 8:20 AM (in response to mawa)Peter, isn't it true that deploy directories are scanned for changes continually jboss is running. I'm afraid to put log files in such a deploy directory, so jboss is notified about each modification. Is this a problem ?
-
6. Re: Access server.log with JBoss5
peterj Mar 13, 2009 12:02 PM (in response to mawa)Yes, the deploy directory is scanned periodically, but for an exploded war directory (which is what you will have), it only looks at the WEB-INF/web.xml file, which in your case will never change. So the fact that the log file is changing constantly should not be an issue.
-
7. Re: Access server.log with JBoss5
mawa Mar 13, 2009 6:33 PM (in response to mawa)I used the existing log directory and created a new log.war directory in it. Then I added the log directory to the applicationURIs and put web.xml and jboss-web.xml into log.war/WEB-INF. At last, following your suggestion, I set the -Djboss.server.log.dir to the log.war in run.bat.
It works very fine, doing what I wanted to do. Thanks a lot.