You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Furkan KAMACI <fu...@gmail.com> on 2013/05/17 01:22:22 UTC

Null identity service When Running Solr 4.2.1 with log4j

I have Solr 4.2.1 and want to use log4j. I have followed wiki. Here are my
jar versions:

java -jar start.jar --version
Active Options: [default, *]
Version Information on 15 entries in the classpath.
Note: order presented here is how they would appear on the classpath.
changes to the OPTIONS=[option,option,...] command line option will be
reflected here.
0: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-xml-8.1.8.v20121106.jar
1: 3.0.0.v201112011016 | ${jetty.home}/lib/servlet-api-3.0.jar
2: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-http-8.1.8.v20121106.jar
3: 8.1.8.v20121106 |
${jetty.home}/lib/jetty-continuation-8.1.8.v20121106.jar
4: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-server-8.1.8.v20121106.jar
5: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-security-8.1.8.v20121106.jar
6: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-servlet-8.1.8.v20121106.jar
7: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-webapp-8.1.8.v20121106.jar
8: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-deploy-8.1.8.v20121106.jar
9: 1.7.5 | ${jetty.home}/lib/ext/jcl-over-slf4j-1.7.5.jar
10: 1.2.17 | ${jetty.home}/lib/ext/log4j-1.2.17.jar
11: 1.7.5 | ${jetty.home}/lib/ext/slf4j-api-1.7.5.jar
12: 1.7.5 | ${jetty.home}/lib/ext/slf4j-log4j12-1.7.5.jar
13: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-util-8.1.8.v20121106.jar
14: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-io-8.1.8.v20121106.jar

I created a log4j.properties under etc folder and this is inside of it:

# Logging level

log4j.rootLogger=WARN, file


#- size rotation with log cleanup.

log4j.appender.file=org.apache.log4j.RollingFileAppender

log4j.appender.file.MaxFileSize=4MB

log4j.appender.file.MaxBackupIndex=9


#- File to log to and log format

log4j.appender.file.File=logs/solr.log

log4j.appender.file.layout=org.apache.log4j.PatternLayout

log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd
HH:mm:ss.SSS}; %C; %m\n

When I run start.jar I get that:


java -Dlog4j.debug
-Dlog4j.configuration=file:////home/kk/Desktop/preprop/etc/log4j.properties
-jar start.jar

log4j: Using URL [file:////home/kk/Desktop/preprop/etc/log4j.properties]
for automatic log4j configuration.
log4j: Reading configuration from URL
file:////home/kk/Desktop/preprop/etc/log4j.properties
log4j: Parsing for [root] with value=[WARN, file].
log4j: Level token is [WARN].
log4j: Category root set to WARN
log4j: Parsing appender named "file".
log4j: Parsing layout options for "file".
log4j: Setting property [conversionPattern] to [%-5p - %d{yyyy-MM-dd
HH:mm:ss.SSS}; %C; %m
].
log4j: End of parsing for "file".
log4j: Setting property [maxBackupIndex] to [9].
log4j: Setting property [file] to [logs/solr.log].
log4j: Setting property [maxFileSize] to [4MB].
log4j: setFile called: logs/solr.log, true
log4j: setFile ended
log4j: Parsed "file" options.
log4j: Finished configuring.
*Null identity service, trying login service: null
Finding identity service: null*

What I am missing?

Re: Null identity service When Running Solr 4.2.1 with log4j

Posted by Furkan KAMACI <fu...@gmail.com>.
When I check under logs folder I see that there is a file called solr.log
and has that line:

WARN - 2013-05-17 02:16:47.688; org.apache.solr.core.CoreContainer; Log
watching is not yet implemented for log4j


2013/5/17 Furkan KAMACI <fu...@gmail.com>

> I have Solr 4.2.1 and want to use log4j. I have followed wiki. Here are my
> jar versions:
>
> java -jar start.jar --version
> Active Options: [default, *]
> Version Information on 15 entries in the classpath.
> Note: order presented here is how they would appear on the classpath.
> changes to the OPTIONS=[option,option,...] command line option will be
> reflected here.
> 0: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-xml-8.1.8.v20121106.jar
> 1: 3.0.0.v201112011016 | ${jetty.home}/lib/servlet-api-3.0.jar
> 2: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-http-8.1.8.v20121106.jar
> 3: 8.1.8.v20121106 |
> ${jetty.home}/lib/jetty-continuation-8.1.8.v20121106.jar
> 4: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-server-8.1.8.v20121106.jar
> 5: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-security-8.1.8.v20121106.jar
> 6: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-servlet-8.1.8.v20121106.jar
> 7: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-webapp-8.1.8.v20121106.jar
> 8: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-deploy-8.1.8.v20121106.jar
> 9: 1.7.5 | ${jetty.home}/lib/ext/jcl-over-slf4j-1.7.5.jar
> 10: 1.2.17 | ${jetty.home}/lib/ext/log4j-1.2.17.jar
> 11: 1.7.5 | ${jetty.home}/lib/ext/slf4j-api-1.7.5.jar
> 12: 1.7.5 | ${jetty.home}/lib/ext/slf4j-log4j12-1.7.5.jar
> 13: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-util-8.1.8.v20121106.jar
> 14: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-io-8.1.8.v20121106.jar
>
> I created a log4j.properties under etc folder and this is inside of it:
>
> # Logging level
>
> log4j.rootLogger=WARN, file
>
>
> #- size rotation with log cleanup.
>
> log4j.appender.file=org.apache.log4j.RollingFileAppender
>
> log4j.appender.file.MaxFileSize=4MB
>
> log4j.appender.file.MaxBackupIndex=9
>
>
> #- File to log to and log format
>
> log4j.appender.file.File=logs/solr.log
>
> log4j.appender.file.layout=org.apache.log4j.PatternLayout
>
> log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd
> HH:mm:ss.SSS}; %C; %m\n
>
> When I run start.jar I get that:
>
>
> java -Dlog4j.debug
> -Dlog4j.configuration=file:////home/kk/Desktop/preprop/etc/log4j.properties
> -jar start.jar
>
> log4j: Using URL [file:////home/kk/Desktop/preprop/etc/log4j.properties]
> for automatic log4j configuration.
> log4j: Reading configuration from URL
> file:////home/kk/Desktop/preprop/etc/log4j.properties
> log4j: Parsing for [root] with value=[WARN, file].
> log4j: Level token is [WARN].
> log4j: Category root set to WARN
> log4j: Parsing appender named "file".
> log4j: Parsing layout options for "file".
> log4j: Setting property [conversionPattern] to [%-5p - %d{yyyy-MM-dd
> HH:mm:ss.SSS}; %C; %m
> ].
> log4j: End of parsing for "file".
> log4j: Setting property [maxBackupIndex] to [9].
> log4j: Setting property [file] to [logs/solr.log].
> log4j: Setting property [maxFileSize] to [4MB].
> log4j: setFile called: logs/solr.log, true
> log4j: setFile ended
> log4j: Parsed "file" options.
> log4j: Finished configuring.
> *Null identity service, trying login service: null
> Finding identity service: null*
>
> What I am missing?
>
>

Re: Null identity service When Running Solr 4.2.1 with log4j

Posted by Furkan KAMACI <fu...@gmail.com>.
Ok, I have used 4.3.0's jetty and lib folder (of course plus
log4j.properties) and it works with 4.2.1 now.

2013/5/17 Furkan KAMACI <fu...@gmail.com>

> Thanks Shawn. I have just wondered that how other people could used log4j
> with 4.2.1 because of there is a paragraph for "Using log4j with Solr from
> source, 4.2.1 or earlier" at wiki.
>
>
> 2013/5/17 Shawn Heisey <so...@elyograg.org>
>
>> On 5/16/2013 5:22 PM, Furkan KAMACI wrote:
>>
>>> *Null identity service, trying login service: null
>>> Finding identity service: null*
>>>
>>> What I am missing?
>>>
>>
>> That's a message from jetty that has nothing to do with Solr.
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=396295
>>
>> You'll probably need to upgrade your jetty version to get rid of it, but
>> it's harmless.
>>
>>
>> > When I check under logs folder I see that there is a file called
>> > solr.log and has that line:
>> > WARN - 2013-05-17 02:16:47.688; org.apache.solr.core.CoreContainer; Log
>> watching is not yet implemented for log4j
>>
>> This is normal for 4.2.1 - it means that you can't view the log in the
>> admin UI, because the UI doesn't support log4j.
>>
>> You'll find that with your logging level set to WARN, Solr logs next to
>> nothing - that message about the log watching may be the only message you
>> see.
>>
>> Thanks,
>> Shawn
>>
>>
>

Re: Null identity service When Running Solr 4.2.1 with log4j

Posted by Furkan KAMACI <fu...@gmail.com>.
Thanks Shawn. I have just wondered that how other people could used log4j
with 4.2.1 because of there is a paragraph for "Using log4j with Solr from
source, 4.2.1 or earlier" at wiki.

2013/5/17 Shawn Heisey <so...@elyograg.org>

> On 5/16/2013 5:22 PM, Furkan KAMACI wrote:
>
>> *Null identity service, trying login service: null
>> Finding identity service: null*
>>
>> What I am missing?
>>
>
> That's a message from jetty that has nothing to do with Solr.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=396295
>
> You'll probably need to upgrade your jetty version to get rid of it, but
> it's harmless.
>
>
> > When I check under logs folder I see that there is a file called
> > solr.log and has that line:
> > WARN - 2013-05-17 02:16:47.688; org.apache.solr.core.CoreContainer; Log
> watching is not yet implemented for log4j
>
> This is normal for 4.2.1 - it means that you can't view the log in the
> admin UI, because the UI doesn't support log4j.
>
> You'll find that with your logging level set to WARN, Solr logs next to
> nothing - that message about the log watching may be the only message you
> see.
>
> Thanks,
> Shawn
>
>

Re: Null identity service When Running Solr 4.2.1 with log4j

Posted by Shawn Heisey <so...@elyograg.org>.
On 5/16/2013 5:22 PM, Furkan KAMACI wrote:
> *Null identity service, trying login service: null
> Finding identity service: null*
>
> What I am missing?

That's a message from jetty that has nothing to do with Solr.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=396295

You'll probably need to upgrade your jetty version to get rid of it, but 
it's harmless.

 > When I check under logs folder I see that there is a file called
 > solr.log and has that line:
 > WARN - 2013-05-17 02:16:47.688; org.apache.solr.core.CoreContainer; 
Log watching is not yet implemented for log4j

This is normal for 4.2.1 - it means that you can't view the log in the 
admin UI, because the UI doesn't support log4j.

You'll find that with your logging level set to WARN, Solr logs next to 
nothing - that message about the log watching may be the only message 
you see.

Thanks,
Shawn