Closed (works as designed)
Project:
Apache Solr Search
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2008 at 21:04 UTC
Updated:
12 May 2017 at 14:03 UTC
Jump to comment: Most recent
Comments
Comment #1
JacobSingh commentedHi Kyle...
I'm not sure, but I think this may be related to your JAVA version. Try upgrading to whatever the latest version is. I kinda remember that on Ubuntu in the main repo, they are using an older version.
Best,
Jacob
Comment #2
robertdouglass commentedKyle, what java version are you using? Also, what Solr download did you grab?
Comment #3
ToRum commentedHi,
We have similar problems. On our offline server, all went fine. This server uses Centos 5 with tomcat5-jsp-2.0-api (release 0jpp.7.el5_2.1), tomcat5-servlet-2.4-api (release 0jpp.7.el5_2.1) and java-1.4.2-gcj-compat (release 40jpp.115) and gave the next output:
On our online server however, we only get
with the next command line output:
This is a Centos 4.5 server with tomcat5 (release 11jpp), tomcat5-servlet-2.4-api (release 11jpp), java-1.4.2-gcj-compat (release 27jpp) and java-1.4.2-sun (release 1jpp). The current used Java package is "/usr/lib/jvm/jre-1.4.2-sun/bin/java"; when I set this to "/usr/lib/jvm/jre-1.4.2-gcj/bin/java" I only get
Any idea what to do to get this working? I already tried to upgrade Java but release 40jpp is not available for Centos 4.5.
Thanks in advance,
ToRum
Comment #4
robertdouglass commentedHi ToRum,
your Tomcat package in this case is totally unrelated - you're not using it at all for Solr, you're using the Jetty application server that is packaged with the start.jar file.
I'm guessing the problem is your Java version: "/usr/lib/jvm/jre-1.4.2-sun/bin/java"
As you can see here, the required Java version is 1.5.
Comment #5
dipen chaudhary commentedjava.lang.UnsupportedClassVersionError - http://java.sun.com/j2se/1.5.0/docs/api/java/lang/UnsupportedClassVersio...
Solr jar's compiled against 1.5 and being read by 1.4 would cause this as mentioned above.
Should we close this?
Comment #6
JacobSingh commentedThanks Dipen
Comment #7
rsvelko commentedusing the info on top of that http://wiki.osuosl.org/display/DEV/Java+on+Debian worked for me ( unsuccessfully tried the apt-get way before that ..)
# Grab: http://java.sun.com/j2se/1.5.0/download.jsp
# apt-get install java-package fakeroot
# fakeroot make-jpkg jre-1_5_0_02-linux-i586.bin
# dpkg -i sun-j2re1.5_1.5.0+update02_i386.deb
# since java bin is now in sth like /usr/lib/j2re1.5-sun/bin/java you have to point /usr/bin/java to it . Since /usr/bin/java -> /etc/alternatives/java it is better to rename /etc/alternatives/java to .bak and then create /etc/alternatives/java -> /usr/lib/j2re1.5-sun/bin/java
# now java -version gives 1.5
Comment #8
francewhoaFind step 2 at http://drupal.org/node/504558
Ubuntu is based on Debian.
Comment #9
quotesbro commentedHi,
I have a problem with running the Solr application
Server OS is CentOS release 5.3 (Final)
Here Tim Phang wrote about this problem, and Janak answered that port 8983 must be open. I have access to port 8983 from localhost, but still have this problem.
Any ideas?
Thanks,
Mikhail.
upd: I reinstalled Apache Solr and it began to work.
Comment #10
Wzu commentedI'm also using CentOS 5.3 with OpenJDK and I have the same problem as #9.
java -jar start.jar
2010-07-09 12:54:30.061::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2010-07-09 12:54:30.209::INFO: jetty-6.1.3
2010-07-09 12:54:30.251::INFO: Started SocketConnector @ 0.0.0.0:8983
java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (rhel-1.11.b16.el5-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
Reinstall didn't solve the problem, and it isn't a firewall problem either. I haven't enabled the module, because I can't get the java application to work. Any suggestions?
Comment #11
yngens commentedI am too fighting with 'INFO: JNDI not configured for solr (NoInitialContextEx)' error. I am on CENTOS 5.5 Tried with Java 6, did not work. Now my java -version gves:
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
Runing jarfile gives:
Comment #12
guysaban commentedI also got the error:
I went Solr Install page and notice that it says:
Set the java system property solr.solr.home to your Solr home. (ie: using the example jetty setup: java -Dsolr.solr.home=/some/dir -jar start.jar
I did that and got access to:
http://:8983/solr/