Hi all,
I'm currently trying to build a adept my Solr Maven Project to version
4.3 but it keeps complaining about missing SLF4j jars.
The relevant part from my pom.xml looks like that:
> <plugin>
> <groupId>org.codehaus.cargo</groupId>
> <artifactId>cargo-maven2-plugin</artifactId>
> <version>1.3.1</version>
> <configuration>
> <!-- Container configuration -->
> <container>
> <containerId>jetty6x</containerId>
> <type>embedded</type>
> <systemProperties>
>
> <solr.solr.home>${basedir}/target/classes</solr.solr.home>
>
> <cargo.servlet.port>${solrPort}</cargo.servlet.port>
> <log4j.debug>true</log4j.debug>
> </systemProperties>
> <dependencies>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j
> </artifactId>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jul-to-slf4j</artifactId>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jcl-over-slf4j</artifactId>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> </dependency>
> </dependencies>
> </container>
If I run my maven goals with "-X" for debug I see things like:
> Classpath location =
> [/home/dex/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar]
So I think those jars are getting added to the classpath correctly.
I tried adding a log4j.xml file via property an see:
> log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
> log4j: System property is :null
> log4j: Standard DocumentBuilderFactory search succeded.
> log4j: DocumentBuilderFactory is:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> log4j: debug attribute= "null".
> log4j: Ignoring debug attribute.
> log4j: Threshold ="null".
> log4j: Level value for root is [info].
> log4j: root level set to INFO
> log4j: Class name: [org.apache.log4j.ConsoleAppender]
> log4j: Setting property [target] to [System.err].
> log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
> log4j: Setting property [conversionPattern] to [%-5p %c{1} - %m%n].
> log4j: Adding appender named [console] to category [root].
Nevertheless I jetty is unable to deploy Solr.
Exactly the same config works if I just change Solr version to 4.2
I'm out of ideas now. Someone got some things I could try?
Greetings
Daniel
--
Daniel Exner
Softwareentwickler & Anwendungsbetreuer
ESEMOS GmbH
Leipziger-Str. 14
D-04442 Zwenkau
Telefon +49 34203433014
E-Mail [email protected]
www.esemos.de
Handelsregister: Amtsgericht Leipzig HRB 24025, Sitz der Gesellschaft:
Zwenkau
Steuernummer: 235/108/04503
USt.-ID: DE 259460837
Geschäftsführer: Ulrike Hübner, Peter Rieger, Dirk Scholz, Dr. Lutz
Tischendorf
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail und der darin enthaltenen Informationen
ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this email in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.