<div dir="ltr"><div><div><div><div>Hi Stephan,<br><br></div>unfortunately it's not working. I added dependencies to modules org.jboss.logmanager and org.jboss.log4j.logmanager but I don't get any output on the console or in the server.log file. <br>
<br></div>There are log statements in our Java classes which are included in our modules as well as in the JSPs.<br></div><br></div>So there are at least 3 places where log statements are executed:<br><br><div>- during startup (which is written to opencms.log but is missing in the JBoss logs or on the console)<br>
</div><div>- within Java classes (which are also missing)<br></div><div>- in JSP scriptlets (which are written to the JBoss log, presumably because JBoss Web is inserting its own logger into the JSPs)<br><br></div><div>Any further ideas?<br>
</div><div>Which OpenCMS version are you using?<br><br></div><div>Thanks again<br></div><div><br></div><div>Thomas<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-12 22:54 GMT+01:00 guo.tuomi <span dir="ltr"><<a href="mailto:guo.tuomi@googlemail.com" target="_blank">guo.tuomi@googlemail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div><div>Hi Stephan, Arash,</div><div><br></div><div>thanks for the tip, I'll check that tomorrow.</div>
<div><br></div><div>@Arash we have a similar use case where OpenCMS used as content provider for another application which depends on JPA, EJB and CDI.</div><div><br></div><div>We as well don't have much experience with TomEE, since we've been working with JBoss for years now.</div>
<div><br></div><div>Thomas</div><div><br></div><div><div style="font-size:6px;color:#575757">Von Samsung Mobile gesendet</div></div></div></div></div><br>Hi Stephan, Arash,<br>
<br>
thanks for the tip, I'll check that tomorrow.<br>
<br>
@Arash we have a similar use case where OpenCMS used as content provider for another application which depends on JPA, EJB and CDI.<br>
<br>
We as well don't have much experience with TomEE, since we've been working with JBoss for years now.<br>
<br>
Thomas<br>
<br>
Von Samsung Mobile gesendet<br><br><br><div>-------- Ursprüngliche Nachricht --------</div><div>Von: Stephan Schrader <<a href="mailto:zstephanz@gmail.com">zstephanz@gmail.com</a>> </div><div>Datum:12.03.2014  21:11  (GMT+01:00) </div><div>An: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>> </div><div>Betreff: Re: [opencms-dev] Log-Configuration on JBoss 7.2.0 </div><div><br></div><br>
<div><div dir="ltr">Hey Arash,<div><br></div><div>for me the absolute killer feature is the domain mode. With that, I can easily setup stage and live server or even running different webapps in independent server processes. Another thing I really love, when using JBoss LogManger, is to switch log levels at runtime.</div>

<div><br></div><div>An use case we have often is, having OpenCms to deliver content and another integrated (or merged) webapp as a backoffice. The backoffice depends on JPA und CDI (I don't like Spring at all) and also uses the OpenCms as identity store, sending mails, .... </div>

<div><br></div><div>I don't have any experience with TomEE.</div><div><br></div><div>Stephan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-12 19:51 GMT+01:00 Arash Kaffamanesh <span dir="ltr"><<a href="mailto:ak@cloudssky.com" target="_blank">ak@cloudssky.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Thomas, Stephan,<div><br></div><div>I'm very interested to know, why you are using JBoss and which benefits it has compared to Tomcat or TomEE.</div>

<div><br></div><div>Thanks for your feedback in advance!</div>
<div><br></div><div>Kind Regards,</div><div>Arash</div><div><br></div><div class="gmail_extra"><div><div dir="ltr"><div><div style="font-family:arial;font-size:small"><div><div><a href="https://www.facebook.com/cloudssky" style="color:rgb(17,85,204)" target="_blank">Like</a> | <a href="https://twitter.com/CLOUDSSKYONE" style="color:rgb(17,85,204)" target="_blank">Follow</a> | <font color="#0000ff"><font color="#0000ff"><a href="http://cloudssky.com/en/cloud_services/cloudsites.html" target="_blank">Build your CloudSite with OpenCms OCCX</a></font></font></div>


</div><div><p style="color:rgb(34,34,34)"><span style="color:rgb(11,83,148)"><b></b></span><font> </font></p><font size="1"></font></div></div></div></div></div><div><div>
<br><br><div class="gmail_quote">On Wed, Mar 12, 2014 at 7:02 PM, Stephan Schrader <span dir="ltr"><<a href="mailto:zstephanz@gmail.com" target="_blank">zstephanz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">Hi Thomas,<div><br></div><div>in our projects we had to include the "org.jboss.logmanager" module. You can declare this inside the jboss-deployment-structure.xml, like this:<br><div><jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"></div>



<div>    <deployment></div><div>        <dependencies></div><div>            <module name="org.jboss.logmanager"/></div><div>        </dependencies></div><div>    </deployment></div>



<div></jboss-deployment-structure></div></div><div><br></div><div>After that all log messages will appear in the JBoss server.log.</div><div><br></div><div>Stephan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">



2014-03-12 16:57 GMT+01:00 Thomas G. <span dir="ltr"><<a href="mailto:guo.tuomi@googlemail.com" target="_blank">guo.tuomi@googlemail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>
<div dir="ltr"><div><div><div><div>Hi,<br><br>we're running a OpenCMS 8.0.4 instance on a JBoss 7.2.0 but have problems getting the logging to work correctly.<br><br></div>Logging works in that opencms.log is written but we require the OpenCMS logger to append to the JBoss logger, i.e. both JBoss and OpenCMS should log to the console and JBoss' server.log file.<br>




<br></div>Previously the same OpenCMS instance was running on a JBoss <a href="http://4.2.3.GA" target="_blank">4.2.3.GA</a> instance where everything worked as expected.<br><br></div>Here's an excerpt from our log4j.properties file:<br>




<br>log4j.rootLogger=\<br>    OC,\<br>    CONSOLE<br><br>log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender<br></div><div><br>log4j.appender.OC=org.apache.log4j.RollingFileAppender<br><br><br><br></div><div>We tried a couple of things, like exluding log4j, slf4j etc. or placing jcl-over-slf4j etc. into OpenCMS' lib folder, but had no success yet.<br>




</div><div><br></div><div>Any ideas?<br><br></div><div>Thanks in advance,<br><br>Thomas<br></div></div>
<br></div></div>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>
</div><br>Hey Arash,<br>
<br>
for me the absolute killer feature is the domain mode. With that, I can easily setup stage and live server or even running different webapps in independent server processes. Another thing I really love, when using JBoss LogManger, is to switch log levels at runtime.<br>

<br>
An use case we have often is, having OpenCms to deliver content and another integrated (or merged) webapp as a backoffice. The backoffice depends on JPA und CDI (I don't like Spring at all) and also uses the OpenCms as identity store, sending mails, ....<br>

<br>
I don't have any experience with TomEE.<br>
<br>
Stephan<br>
<br>
<br>
2014-03-12 19:51 GMT+01:00 Arash Kaffamanesh <<a href="mailto:ak@cloudssky.com">ak@cloudssky.com</a>>:<br>
Hi Thomas, Stephan,<br>
<br>
I'm very interested to know, why you are using JBoss and which benefits it has compared to Tomcat or TomEE.<br>
<br>
Thanks for your feedback in advance!<br>
<br>
Kind Regards,<br>
Arash<br>
<br>
Like | Follow | Build your CloudSite with OpenCms OCCX<br>
<br>
<br>
<br>
On Wed, Mar 12, 2014 at 7:02 PM, Stephan Schrader <<a href="mailto:zstephanz@gmail.com">zstephanz@gmail.com</a>> wrote:<br>
Hi Thomas,<br>
<br>
in our projects we had to include the "org.jboss.logmanager" module. You can declare this inside the jboss-deployment-structure.xml, like this:<br>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"><br>
    <deployment><br>
        <dependencies><br>
            <module name="org.jboss.logmanager"/><br>
        </dependencies><br>
    </deployment><br>
</jboss-deployment-structure><br>
<br>
After that all log messages will appear in the JBoss server.log.<br>
<br>
Stephan<br>
<br>
<br>
2014-03-12 16:57 GMT+01:00 Thomas G. <<a href="mailto:guo.tuomi@googlemail.com">guo.tuomi@googlemail.com</a>>:<br>
Hi,<br>
<br>
we're running a OpenCMS 8.0.4 instance on a JBoss 7.2.0 but have problems getting the logging to work correctly.<br>
<br>
Logging works in that opencms.log is written but we require the OpenCMS logger to append to the JBoss logger, i.e. both JBoss and OpenCMS should log to the console and JBoss' server.log file.<br>
<br>
Previously the same OpenCMS instance was running on a JBoss <a href="http://4.2.3.GA" target="_blank">4.2.3.GA</a> instance where everything worked as expected.<br>
<br>
Here's an excerpt from our log4j.properties file:<br>
<br>
log4j.rootLogger=\<br>
    OC,\<br>
    CONSOLE<br>
<br>
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender<br>
<br>
log4j.appender.OC=org.apache.log4j.RollingFileAppender<br>
<br>
<br>
<br>
We tried a couple of things, like exluding log4j, slf4j etc. or placing jcl-over-slf4j etc. into OpenCMS' lib folder, but had no success yet.<br>
<br>
Any ideas?<br>
<br>
Thanks in advance,<br>
<br>
Thomas<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br>
<br>
<br></blockquote></div><br></div>