You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Skid <ge...@mediabids.com> on 2008/04/24 18:17:42 UTC

JBoss working but

OK I have Roller 4 working on JBoss4 with DB2. A coworker has wrangled mod_jk
and mod_rewrite into shape and all looks great.

But I still am mystified by what is going on with logging. As I understand
it the log4j.properties
file in conf has no effect any longer? It doesn't seem to and I've googled
around a bit on this
and am still a bit mystified about what roller is doing with logging. As is
it seems to suppress
all logging in all apps running in the jboss instance I'm deployed in. 

So is there a easy way to either configure roller to play nice with other
apps or can I
disable logging entirely in roller so that it won't break logging elsewhere. 
The blog is a small part of our site so I really don't want to spend much
more time on messing with
this if possible. 


-- 
View this message in context: http://www.nabble.com/JBoss-working-but-tp16851023s12275p16851023.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: JBoss working but

Posted by Phillip Rhodes <mi...@cpphacker.co.uk>.
Gregory Engel wrote:
> Dave wrote:
>> On Thu, Apr 24, 2008 at 12:17 PM, Skid <ge...@mediabids.com> wrote:

> Well that doesn't seem to work either.
> I tried it.
> It's odd. If I run from an IDE typically I can see all the System.out's 
> in the console area at the bottom. But if I run with roller deployed
> all output ends at "INFO  [STDOUT] Roller Weblogger: Successfully loaded 
> custom properties file from classpath"
> Doesn't matter if I have configured log4j in roller-custom.properties or 
> not. No more console messages and no logging.
> 

Yeah, using log4j in an app server environment has always been quirky. 
I get this same problem running Roller on JBoss.  Have been meaning
to research a solution forever and just haven't found time.  But in the
meantime, note that logging does still happen.  It's just that the
Roller config somehow supercedes the container config.

Look in $JBOSS_HOME/server/default/logs for a file named roller.log. 
You *might* have to pre-create that directory and/or even touch the file
before starting JBoss, but it should work.  Everything that gets logged
after the "INFO  [STDOUT] Roller Weblogger: Successfully loaded
 > custom properties file from classpath" line will go into roller.log
instead of JBoss' server.log.




TTYL,


-- 
Phillip Rhodes
Chief Architect - OpenQabal
https://openqabal.dev.java.net
LinkedIn: http://www.linkedin.com/in/philliprhodes

Re: JBoss working but

Posted by Gregory Engel <ge...@mediabids.com>.
Dave wrote:
> On Thu, Apr 24, 2008 at 12:17 PM, Skid <ge...@mediabids.com> wrote:
>   
>>  OK I have Roller 4 working on JBoss4 with DB2. A coworker has wrangled mod_jk
>>  and mod_rewrite into shape and all looks great.
>>
>>  But I still am mystified by what is going on with logging. As I understand
>>  it the log4j.properties file in conf has no effect any longer? It doesn't seem to and I've googled
>>  around a bit on this and am still a bit mystified about what roller is doing with logging.
>> As is it seems to suppress all logging in all apps running in the jboss instance I'm deployed in.
>>     
>
> I can't explain why Roller's Log4J would supress logging from other
> apps, but I can explain what's happening with log4j.properties: with
> Roller 4.0, you put your Log4J configuration directly into your
> roller-custom.properties file.
>
> - Dave
>
>   
Well that doesn't seem to work either.
I tried it.
It's odd. If I run from an IDE typically I can see all the System.out's 
in the console area at the bottom. But if I run with roller deployed
all output ends at "INFO  [STDOUT] Roller Weblogger: Successfully loaded 
custom properties file from classpath"
Doesn't matter if I have configured log4j in roller-custom.properties or 
not. No more console messages and no logging.



Re: JBoss working but

Posted by Dave <sn...@gmail.com>.
On Thu, Apr 24, 2008 at 12:17 PM, Skid <ge...@mediabids.com> wrote:
>  OK I have Roller 4 working on JBoss4 with DB2. A coworker has wrangled mod_jk
>  and mod_rewrite into shape and all looks great.
>
>  But I still am mystified by what is going on with logging. As I understand
>  it the log4j.properties file in conf has no effect any longer? It doesn't seem to and I've googled
>  around a bit on this and am still a bit mystified about what roller is doing with logging.
> As is it seems to suppress all logging in all apps running in the jboss instance I'm deployed in.

I can't explain why Roller's Log4J would supress logging from other
apps, but I can explain what's happening with log4j.properties: with
Roller 4.0, you put your Log4J configuration directly into your
roller-custom.properties file.

- Dave