On 6/5/05, Franz Ruebe <[EMAIL PROTECTED]> wrote:
> I re-inserted log4j.properties as described in
> http://lenya.apache.org/1_2_x/how-to/search.html, put mypub back in
> lenya/pubs (it works) and tried again.
> Result:
...
>      [java] log4j:WARN No appenders could be found for logger
> (org.apache.lenya.xml.DOMUtil).
>      [java] log4j:WARN Please initialize the log4j system properly.
...
>      [java] log4j:WARN No appenders could be found for logger
> (org.apache.lenya.xml.DOMUtil).
>      [java] log4j:WARN Please initialize the log4j system properly.
>      [java] java.lang.StringIndexOutOfBoundsException: String index out of
> range: -1
...
> 
> Have their been changes in log-handling? Theres no lucene.log (as it was in
> lenya 1.2.2). Sigh...
> Hoping for help...
> 
> Franz

I wrote the How-To as a complete set.  I did not realize people would
try to use it in pieces.   Sorry.

log4j.properties must be on the CLASSPATH.  The ANT Batch file has:
SET CLASSPATH=.
so having log4j.properties in the tools/bin directory works.  If you
are not resetting the CLASSPATH, you must put log4j.properties on your
CLASSPATH.
 
As far as the StringIndexOutOfBoundsException, my version does not use
the crawler.  So follow all of my instructions and this problem
disappears.
OR
org.apache.avalon.excalibur.io.FileUtil.catPath(FileUtil.java:509)
forgot to check the bounds before using substring.  Might work if you
wrap the code:
if(lowerbound >= 0){ 
   newString = oldString.substring(lowerbound [, upperbound]);
}
but it would be better to read the code and figure out why the
lowerbound is -1.  Usually the -1 comes from searching with indexOf()
or lastIndexOf() for a substring that is not there .

Enjoy,
solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to