-
1. Re: Grails project on Jboss 7 Blocks logging
dmlloyd Apr 26, 2012 6:05 PM (in response to thebravedave)Can you post an outline of your deployment's structure (i.e. what JARs it contains, what descriptors are there, etc.)?
-
2. Re: Grails project on Jboss 7 Blocks logging
dmlloyd Apr 26, 2012 6:17 PM (in response to dmlloyd)My hypothesis is that something in the Grails deployment is deliberately reconfiguring logging (i.e. turning it off). We've got a per-deployment log isolation feature in upstream right now that would be quite suitable for this situation if I'm right.
-
3. Re: Grails project on Jboss 7 Blocks logging
thebravedave Apr 26, 2012 6:17 PM (in response to dmlloyd)The Jboss version is 7.1.1.Final.
In deployment folder:
_____________________
User-ear.ear
--------------->api.war
--------------->AreaVault.war
--------------->UserServer-ejb.jar
ServerConfig.war
----------------->*standard grails project makeup*
__________________________
I'm not sure what else you want to know about the deployment structure (just let me know and I will be happy to add information).
I am doing a pretty standard logging setup in standalone.xml as such:
<subsystem xmlns="urn:jboss:domain:logging:1.1">
<async-handler name="ASYNC_SESSION">
<queue-length value="1024"/>
<subhandlers>
<handler name="sessionFileHandler"/>
</subhandlers>
</async-handler>
<async-handler name="ASYNC_HIBERNATE">
<queue-length value="1024"/>
<subhandlers>
<handler name="hibernateFileHandler"/>
</subhandlers>
</async-handler>
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="hibernateFileHandler">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="hibernate.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="sessionFileHandler">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="session.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="sococo.session">
<level name="INFO"/>
<handlers>
<handler name="ASYNC_SESSION"/>
</handlers>
</logger>
<logger category="org.hibernate">
<level name="WARN"/>
<handlers>
<handler name="ASYNC_HIBERNATE"/>
</handlers>
</logger>
<logger category="org.hibernate.jdbc.ConnectionManager">
<level name="WARN"/>
<handlers>
<handler name="ASYNC_HIBERNATE"/>
</handlers>
</logger>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
</subsystem>
__________________________________________
Once again all the logging works if I don't have ServerConfig.war added in the deployment folder.
If anyone can help, please do. Also if you need more information, just let me know.
Thank you for your help.
-
4. Re: Grails project on Jboss 7 Blocks logging
thebravedave Apr 26, 2012 6:45 PM (in response to dmlloyd)Hello, you said " We've got a per-deployment log isolation feature in upstream right now that would be quite suitable for this situation if I'm right."
What exactly does this mean? Does this mean that you have this feature available in an upcoming release? If so, which release is it, and when can we expect it to be out?
If you mean something else, can you please explain?
Thanks,
David
-
5. Re: Grails project on Jboss 7 Blocks logging
dmlloyd Apr 27, 2012 5:23 PM (in response to thebravedave)David Pugh wrote:
Hello, you said " We've got a per-deployment log isolation feature in upstream right now that would be quite suitable for this situation if I'm right."
What exactly does this mean? Does this mean that you have this feature available in an upcoming release? If so, which release is it, and when can we expect it to be out?
If you mean something else, can you please explain?
Thanks,
David
It'll be in 7.2.0 for sure. I don't know if we have another 7.1.x coming up.
Basically what it means is that you can tell the container that your deployment's log configuration should be separate. So if your JAR tries to wipe out the container logging config, as it appears it is, then it won't have any affect on the rest of the container.
-
6. Re: Grails project on Jboss 7 Blocks logging
1977 May 30, 2012 8:53 AM (in response to dmlloyd)Hi , I also have this issue
so what is the solution for this in the meantime ? i.e. until 7.2.0 comes out
thanks
-
7. Re: Grails project on Jboss 7 Blocks logging
dmlloyd May 30, 2012 8:56 AM (in response to 1977)You should be able to build and use the 7.1.2 tag.
-
8. Re: Grails project on Jboss 7 Blocks logging
1977 May 30, 2012 10:57 AM (in response to dmlloyd)thanks can you point me to a resource that shows me how to configure this feature ?
-
9. Re: Grails project on Jboss 7 Blocks logging
1977 May 31, 2012 11:08 AM (in response to dmlloyd)thanks can you point me to a resource that shows me how to configure this feature ?
im looking at the docs and obnly see a section about ears containing multiple wars. My situation is that I have 2 separate wars in their own right
-
10. Re: Grails project on Jboss 7 Blocks logging
dmlloyd May 31, 2012 12:02 PM (in response to 1977)All you should need to do is add a logging.properties file into your deployment META-INF area. It doesn't even need to contain anything - especially if my hypothesis is right (i.e., something in the deployment is wiping out the logging configuration).
-
11. Re: Grails project on Jboss 7 Blocks logging
1977 May 31, 2012 1:43 PM (in response to dmlloyd)i tried adding logging.properties of META-INF of the grails app and it still did not help. The grails app can write to the log, but the other app cannot write to it
-
12. Re: Grails project on Jboss 7 Blocks logging
thebravedave Jul 10, 2012 7:44 PM (in response to dmlloyd)I also added a logging.properties file to META-INF in my grails app and it is also not helping. Logging is still cut off. As soon as grails starts to deploy all logging stops.