Re: [appengine-java] log4j init fails

2010-03-12 Thread Rajeev Dayal
Can you post a copy of your log4j.properties file?

On Thu, Mar 11, 2010 at 12:45 PM, AJ Chen  wrote:

> yes, log4j.properties is copied by the build. the app uses it.  the warning
> message is weird.  thanks.
>
>
> On Thu, Mar 11, 2010 at 8:10 AM, Rajeev Dayal  wrote:
>
>> If you have your log4j.properties file at the root of your source tree, it
>> should automatically be copied over to war/WEB-INF/classes whenever Eclipse
>> performs a build of your project; you should not have to copy it over
>> manually.
>>
>> I'm not sure why you're getting the error with regard to
>> Datanucleus.Connection; I've added Don to this thread; he may have some
>> insight into this.
>>
>>
>> On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen  wrote:
>>
>>> I have the default log4j.properties in WEB-INF/classes dir. but the
>>> warning always comes up. the file is visible because I can change the log
>>> level to ERROR to get rid of the warning.
>>> -aj
>>>
>>>
>>>
>>> On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright 
>>> wrote:
>>>
 I think you can simply put the log4j.properties file in the
 WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it.
  Log4j looks for its configuration file "on the classpath" which means it
 looks in WEB-INF/classes (and also in all of the jars in the lib 
 directory).


 AJ Chen wrote:

> I have  log4j config in appengine-web.xml,
> 
> value="WEB-INF/logging.properties"/>
> value="file:WEB-INF/classes/log4j.properties"/>
> value="WEB-INF/monitor.properties"/>
>
>   but GAE still complains about it:
> log4j:WARN No appenders could be found for logger
> (DataNucleus.Connection).
> log4j:WARN Please initialize the log4j system properly.
>
> Is there anything else that should be set?
>
> thanks,
> -aj
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

 --
 0x2B | ~0x2b  --  Hamlet

 --
 You received this message because you are subscribed to the Google
 Groups "Google App Engine for Java" group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


>>>
>>>
>>> --
>>> AJ Chen, PhD
>>> Chair, Semantic Web SIG, sdforum.org
>>> http://web2express.org
>>> twitter @web2express
>>> Palo Alto, CA, USA
>>> 650-283-4091
>>> *Building social media monitoring pipeline, and connecting social
>>> customers to CRM*
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>
>
> --
> AJ Chen, PhD
> Chair, Semantic Web SIG, sdforum.org
> http://web2express.org
> twitter @web2express
> Palo Alto, CA, USA
> 650-283-4091
> *Building social media monitoring pipeline, and connecting social customers
> to CRM*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] log4j init fails

2010-03-11 Thread AJ Chen
yes, log4j.properties is copied by the build. the app uses it.  the warning
message is weird.  thanks.

On Thu, Mar 11, 2010 at 8:10 AM, Rajeev Dayal  wrote:

> If you have your log4j.properties file at the root of your source tree, it
> should automatically be copied over to war/WEB-INF/classes whenever Eclipse
> performs a build of your project; you should not have to copy it over
> manually.
>
> I'm not sure why you're getting the error with regard to
> Datanucleus.Connection; I've added Don to this thread; he may have some
> insight into this.
>
>
> On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen  wrote:
>
>> I have the default log4j.properties in WEB-INF/classes dir. but the
>> warning always comes up. the file is visible because I can change the log
>> level to ERROR to get rid of the warning.
>> -aj
>>
>>
>>
>> On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright wrote:
>>
>>> I think you can simply put the log4j.properties file in the
>>> WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it.
>>>  Log4j looks for its configuration file "on the classpath" which means it
>>> looks in WEB-INF/classes (and also in all of the jars in the lib directory).
>>>
>>>
>>> AJ Chen wrote:
>>>
 I have  log4j config in appengine-web.xml,
 
>>> value="WEB-INF/logging.properties"/>
>>> value="file:WEB-INF/classes/log4j.properties"/>
>>> value="WEB-INF/monitor.properties"/>

   but GAE still complains about it:
 log4j:WARN No appenders could be found for logger
 (DataNucleus.Connection).
 log4j:WARN Please initialize the log4j system properly.

 Is there anything else that should be set?

 thanks,
 -aj

 --
 You received this message because you are subscribed to the Google
 Groups "Google App Engine for Java" group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

>>>
>>> --
>>> 0x2B | ~0x2b  --  Hamlet
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>>
>>
>>
>> --
>> AJ Chen, PhD
>> Chair, Semantic Web SIG, sdforum.org
>> http://web2express.org
>> twitter @web2express
>> Palo Alto, CA, USA
>> 650-283-4091
>> *Building social media monitoring pipeline, and connecting social
>> customers to CRM*
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
AJ Chen, PhD
Chair, Semantic Web SIG, sdforum.org
http://web2express.org
twitter @web2express
Palo Alto, CA, USA
650-283-4091
*Building social media monitoring pipeline, and connecting social customers
to CRM*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] log4j init fails

2010-03-11 Thread Rajeev Dayal
If you have your log4j.properties file at the root of your source tree, it
should automatically be copied over to war/WEB-INF/classes whenever Eclipse
performs a build of your project; you should not have to copy it over
manually.

I'm not sure why you're getting the error with regard to
Datanucleus.Connection; I've added Don to this thread; he may have some
insight into this.

On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen  wrote:

> I have the default log4j.properties in WEB-INF/classes dir. but the warning
> always comes up. the file is visible because I can change the log level to
> ERROR to get rid of the warning.
> -aj
>
>
>
> On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright wrote:
>
>> I think you can simply put the log4j.properties file in the
>> WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it.
>>  Log4j looks for its configuration file "on the classpath" which means it
>> looks in WEB-INF/classes (and also in all of the jars in the lib directory).
>>
>>
>> AJ Chen wrote:
>>
>>> I have  log4j config in appengine-web.xml,
>>> 
>>>>> value="WEB-INF/logging.properties"/>
>>>>> value="file:WEB-INF/classes/log4j.properties"/>
>>>>> value="WEB-INF/monitor.properties"/>
>>>
>>>   but GAE still complains about it:
>>> log4j:WARN No appenders could be found for logger
>>> (DataNucleus.Connection).
>>> log4j:WARN Please initialize the log4j system properly.
>>>
>>> Is there anything else that should be set?
>>>
>>> thanks,
>>> -aj
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>> --
>> 0x2B | ~0x2b  --  Hamlet
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>
>
> --
> AJ Chen, PhD
> Chair, Semantic Web SIG, sdforum.org
> http://web2express.org
> twitter @web2express
> Palo Alto, CA, USA
> 650-283-4091
> *Building social media monitoring pipeline, and connecting social customers
> to CRM*
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] log4j init fails

2010-03-11 Thread AJ Chen
I have the default log4j.properties in WEB-INF/classes dir. but the warning
always comes up. the file is visible because I can change the log level to
ERROR to get rid of the warning.
-aj


On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright wrote:

> I think you can simply put the log4j.properties file in the WEB-INF/classes
> dir and you don't need any appengine-web.xml stuff for it.  Log4j looks for
> its configuration file "on the classpath" which means it looks in
> WEB-INF/classes (and also in all of the jars in the lib directory).
>
>
> AJ Chen wrote:
>
>> I have  log4j config in appengine-web.xml,
>> 
>>> value="WEB-INF/logging.properties"/>
>>> value="file:WEB-INF/classes/log4j.properties"/>
>>> value="WEB-INF/monitor.properties"/>
>>
>>   but GAE still complains about it:
>> log4j:WARN No appenders could be found for logger
>> (DataNucleus.Connection).
>> log4j:WARN Please initialize the log4j system properly.
>>
>> Is there anything else that should be set?
>>
>> thanks,
>> -aj
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
> --
> 0x2B | ~0x2b  --  Hamlet
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
AJ Chen, PhD
Chair, Semantic Web SIG, sdforum.org
http://web2express.org
twitter @web2express
Palo Alto, CA, USA
650-283-4091
*Building social media monitoring pipeline, and connecting social customers
to CRM*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] log4j init fails

2010-02-19 Thread Rusty Wright

I think you can simply put the log4j.properties file in the WEB-INF/classes dir and you 
don't need any appengine-web.xml stuff for it.  Log4j looks for its configuration file 
"on the classpath" which means it looks in WEB-INF/classes (and also in all of 
the jars in the lib directory).


AJ Chen wrote:

I have  log4j config in appengine-web.xml,

value="WEB-INF/logging.properties"/>
value="file:WEB-INF/classes/log4j.properties"/>
value="WEB-INF/monitor.properties"/>


   
but GAE still complains about it:

log4j:WARN No appenders could be found for logger (DataNucleus.Connection).
log4j:WARN Please initialize the log4j system properly.

Is there anything else that should be set?

thanks,
-aj

--
You received this message because you are subscribed to the Google 
Groups "Google App Engine for Java" group.

To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


--
0x2B | ~0x2b  --  Hamlet

--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] log4j init fails

2010-02-18 Thread AJ Chen
I have  log4j config in appengine-web.xml,






but GAE still complains about it:
log4j:WARN No appenders could be found for logger (DataNucleus.Connection).
log4j:WARN Please initialize the log4j system properly.

Is there anything else that should be set?

thanks,
-aj

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.