Closed nengine closed 11 years ago
It looks like you have some type of networking problem on your machine. I would start by looking into whether you can do something like using wget or curl to get that file. Otherwise, possibly your Maven setup is broken.
Thanks that was firewall issue on Windows 8. When I launch ./bin/start-solr.sh solr-qa it is complaining "org.apache.solr.common.SolrException: Error loading class 'com.tamingtext.texttamer.solr.SentenceTokenizerFactory'" on windows 8. I did the same thing on Ubuntu 12.04 and it working, but now it is complaining "java.lang.NoSuchMethodError: org.apache.log4j.Logger.setAdditivity(Z)V".
I'm having problem reproducing this, so here are a couple things to try
There should be some output like after you run ./bin/start-solr.sh solr-qa
Jan 1, 2013 10:15:04 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/home/drew/projects/taming-text/svn/book/target/dependency/log4j-1.2.17.jar' to classloader
If you don't see this, check target/dependency to be sure it's populated. solrconfig.xml in apache-solr/solr-qa/conf references target/dependency as a lib directory so it should automatically obtain the log4j Logger from there.
If that looks good, perhaps there's something wrong with the log4j jar (or it is not the correct version?) I suppose solr could be picking up org.apache.log4j.Logger incorrectly from some other jar in the classpath.
It could be helpful if you could post either the startup logs from solr (./bin/start-solr.sh solr-qa 2>&1 | tee out), the contents of target/dependency (e.g ls -la) or both.
Thank you. I found this in the output. I'm not sure what to do next.
Jan 2, 2013 4:46:53 AM org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/home/nash/tt/target/dependency/log4j-1.2.17.jar' to classloader
Here is the gist out output: https://gist.github.com/4434394
I have very similar problem... runing oracle jdk1.7.0_17 , maven 3.0.5 on 64bit and all opennlp+wordnet downloaded, my debian box finishes with this:
vagrant@debian-606-x64:/vagrant_data/book-master$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Taming Text Source 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://opennlp.sourceforge.net/maven2/org/apache/thrift/libthrift/0.6.1/libthrift-0.6.1.pom
Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/thrift/libthrift/0.6.1/libthrift-0.6.1.pom
Downloading: http://maven.tamingtext.com/org/apache/thrift/libthrift/0.6.1/libthrift-0.6.1.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/thrift/libthrift/0.6.1/libthrift-0.6.1.pom
i let it run atleast one hour... canceled and started again 3 or 4 time, it always freezes. I also tried to rm ~.m2/repositoru/* and start again.. it always freezes.
Thanks
Got it working, added static record to /etc/hosts pointing to different ip for repo.maven.apache.org than my provider dns ..
Just a comment on the issue that neuralnw faced with "java.lang.NoSuchMethodError: org.apache.log4j.Logger.setAdditivity(Z)V".
in the Solr bug tracker https://issues.apache.org/jira/browse/SOLR-2303 says that the log4j .jar files should be removed from the Solr tarball, because they can conflict with existing .jars on the system. That conflict was exactly the error I was getting trying to lunch solr-qa. How I resolved it: Unzip solr.war (in .../example/webaps/) delete the jar /WEB-INF/lib/log4j-over-slf4j-1.6.1.jar relaunch bin/start-solr solr-qa. Hope is helps some of you that have similar problems.
it may be a good idea to delete the original solr.war then zip the directory contents (without the log4j jar) into a new solr.war
When i run "mvn clean package" getting error messag like below on windows 8 PC.