Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-14 Thread Peter Schmidt
But it's used, it's in the JAVA_OPTIONS listet by service jetty check 2013/10/14 Peter Schmidt > But the flag is not listed under the Dashboard->Args in Solr Admin > Interface. > > > 2013/10/14 Peter Schmidt > >> It is necessary to configure the update-alternatives for Oracle Java JDK >> 7. A

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-14 Thread Peter Schmidt
But the flag is not listed under the Dashboard->Args in Solr Admin Interface. 2013/10/14 Peter Schmidt > It is necessary to configure the update-alternatives for Oracle Java JDK > 7. Afterwards i can use the -server flag > > > 2013/10/14 Peter Schmidt > >> I downloaded the Linux 64bit version

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-14 Thread Peter Schmidt
It is necessary to configure the update-alternatives for Oracle Java JDK 7. Afterwards i can use the -server flag 2013/10/14 Peter Schmidt > I downloaded the Linux 64bit version jdk-7u40-linux-x64.tar.gz > > > 2013/10/11 Guido Medina > >> Then I think you downloaded the wrong JDK 7 (32bits JDK

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-14 Thread Peter Schmidt
I downloaded the Linux 64bit version jdk-7u40-linux-x64.tar.gz 2013/10/11 Guido Medina > Then I think you downloaded the wrong JDK 7 (32bits JDK?), if you are > running JDK 7 64bits the -server flag should be recognized. According to > the stackoverflow link you mentioned before. > > Guido. > >

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Shawn Heisey
On 10/11/2013 4:55 AM, Peter Schmidt wrote: > So the main problem was that the libs must be copied to the WEB-INF/lib > directory insteed of the jetty lib/ext directory. Is the fact that you > should you use WEB-INF/lib somewhere documented? Actually, jetty's lib/ext is preferred, modifying the .w

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Guido Medina
Then I think you downloaded the wrong JDK 7 (32bits JDK?), if you are running JDK 7 64bits the -server flag should be recognized. According to the stackoverflow link you mentioned before. Guido. On 11/10/13 15:48, Peter Schmidt wrote: no it is 64bit and just a development VM. In production th

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
no it is 64bit and just a development VM. In production the solr will use multicore, also 64bit and some gb ram. 2013/10/11 Guido Medina > If your single core is at 32bits use Oracle JDK 7u25 or Ubuntu Open JDK 7, > the JDK 7u40 for 32bits will corrupt indexes as stated on the lucene bug > repo

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Guido Medina
If your single core is at 32bits use Oracle JDK 7u25 or Ubuntu Open JDK 7, the JDK 7u40 for 32bits will corrupt indexes as stated on the lucene bug report. Guido. On 11/10/13 15:13, Peter Schmidt wrote: Oh, i got it http://stackoverflow.com/a/5273166/326905 "at least 2 cores and at least 2 G

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
Oh, i got it http://stackoverflow.com/a/5273166/326905 "at least 2 cores and at least 2 GB physical memory" Until know i'm using a VM with single core and 1GB RAM. So this will be later for production :) Thank you Guido. 2013/10/11 Peter Schmidt > Strange. When i add "-server" to the argume

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
Strange. When i add "-server" to the arguments, i got everytime the error on jetty startup Invalid option -server Cannot parse command line arguments 2013/10/11 Guido Medina > It is JVM parameter, example: > > JAVA_OPTIONS="-Djava.awt.**headless=true -Dfile.encoding=UTF-8 -server > -Xms256m -X

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Guido Medina
It is JVM parameter, example: JAVA_OPTIONS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms256m -Xmx256m" If you want to concatenate more JVM parameters you do it like this: JAVA_OPTIONS="-Dsolr.solr.home=/usr/share/solr $JAVA_OPTIONS" Take a good look at the format, Guido. On 11

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
@Guido: Itried it before and than i thought you marked just the server options Because the -sever causes a: sudo service jetty start * Starting Jetty servlet engine. jetty Invalid option -server Cannot parse command line arguments Or should i substitute server with ...? Options with -server:

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Guido Medina
Remember the "-server" which for Java webapps or dedicated Java services will improve things. Guido. On 11/10/13 12:26, Peter Schmidt wrote: I can report that jetty is running now with this options: JAVA_OPTIONS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms256m -Xmx256m -XX:+UseG1GC -X

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Guido Medina
I can't tell for sure if that is documented somewhere, I did that straight forward cause of years I have been developing Java webapps, a class not found usually means that some jar/class is missing somewhere, because of all the issues I have seen with parent-child class loaders, my 1st choice i

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
I can report that jetty is running now with this options: JAVA_OPTIONS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms256m -Xmx256m -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+OptimizeStringConcat -XX:+UseStringCache -Dsolr.solr.home=/usr/share/solr $JAVA_OPTIONS" @Guido: I reduced the min/max

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
So the main problem was that the libs must be copied to the WEB-INF/lib directory insteed of the jetty lib/ext directory. Is the fact that you should you use WEB-INF/lib somewhere documented? 2013/10/11 Peter Schmidt > Not so hard switching it to Oracle JDK 7u40. > Just download it and change t

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-11 Thread Peter Schmidt
Not so hard switching it to Oracle JDK 7u40. Just download it and change the JAVA_HOME path in /etc/default/jetty, so it's not nescessary to switch java version with update-java-alternatives The machine is 64bit :) 2013/10/11 Bill Bell > Does this work ? > I can suggest -XX:-UseLoopPredicate

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Bill Bell
Does this work ? I can suggest -XX:-UseLoopPredicate to switch off predicates. ??? Which version of 7 is recommended ? Bill Bell Sent from mobile > On Oct 10, 2013, at 11:29 AM, "Smiley, David W." wrote: > > *Don't* use JDK 7u40, it's been known to cause index corruption and > SIGSEGV faults

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
Hmm, thanks for sharing this, according to the JIRA comments it seems to affect only 32 bits systems? https://issues.apache.org/jira/browse/LUCENE-5212 Guido. On 10/10/13 18:29, Smiley, David W. wrote: *Don't* use JDK 7u40, it's been known to cause index corruption and SIGSEGV faults with Luc

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Smiley, David W.
*Don't* use JDK 7u40, it's been known to cause index corruption and SIGSEGV faults with Lucene: LUCENE-5212 This has not been unnoticed by Oracle. ~ David On 10/10/13 12:34 PM, "Guido Medina" wrote: >2. Java version: There are huges performance winning between Java 5, 6 >and 7; we use Ora

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
Even if you use a newer jetty, you won't see any difference, what you should care: 1. Jetty using NIO which is enabled by default on Jetty coming from Ubuntu repo (I think) 2. Java version: There are huges performance winning between Java 5, 6 and 7; we use Oracle JDK 7u40. 3. JVM options

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
Why not just go straight for 4.5.0? Also, we have it running with JDK 7, we use Oracle's JVM sym-linked to /opt/java, that would be an extra step (modifying the JAVA_HOME at /etc/defaul/jetty), it it worthy doing. Glad I helped, cheers, Guido. On 10/10/13 16:57, Peter Schmidt wrote: SOLVED:

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
SOLVED: I reinstalled the jetty package, because i wanted to get a clean installation. And now it's working with your hint Guido :-) Thank you very much. What i did: # Download Solr wget http://archive.apache.org/dist/lucene/solr/4.4.0/solr-4.4.0.tgz tar xvfz solr-4.4.0.tgz # Extract content fro

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
i added the jars you have listet and recreated a solr.war 2013/10/10 Peter Schmidt > OK. I extracted the solr.war in webapps folder. And than out.log reports > > 2013-10-10 16:47:28.184:WARN::Config error at class="java.io.PrintStream">| class="org.mortbay.util.RolloverFileOutputStream

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
OK. I extracted the solr.war in webapps folder. And than out.log reports 2013-10-10 16:47:28.184:WARN::Config error at |/logs/_mm_dd.stderrout.logfalse90GMT| java.lang.reflect.InvocationTargetException 2013-10-10 16:47:28.191:WARN::EXCEPTION java.lang.reflect.InvocationTargetExce

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
Add the following jars inside solr.war WEB-INF/lib folder: jcl-over-slf4j-1.7.5.jar jul-to-slf4j-1.7.5.jar log4j-1.2.17.jar slf4j-api-1.7.5.jar slf4j-log4j12-1.7.5.jar Optional if you are going to use spatial search: jts-1.13.jar Guido. On 10/10/13 14:33, Peter Schmidt wrote: Sorry terminal s

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Furkan KAMACI
Did you check here as your logs says: http://wiki.apache.org/solr/SolrLogging You have NoClassDefFoundError: error for org/slf4j/Logger and this is because of there is a dependency mismatch at your libraries. 2013/10/10 Peter Schmidt > >>For repo Jetty (6.1.x) this is a good guide, which is v

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
>>For repo Jetty (6.1.x) this is a good guide, which is very similar to what we have on our environments: >>http://www.kingstonlabs.com/blog/how-to-install-solr-36-on-ubuntu-1204/ Guido, i used this guide and ended up with t

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
Sorry terminal shows: $ sudo service jetty start Found JAVA=/usr/lib/jvm/java-6-openjdk/jre/bin/java in JAVA_HOME=/ Starting Jetty: FAILED 2013/10/10 Peter Schmidt > The log: > > 2013-10-10 15:01:47.071:INFO::jetty-6.1.22 > 2013-10-10 15:01:47.110:INFO::Deploy /etc/jetty/contexts/javadoc.xml -

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
The log: 2013-10-10 15:01:47.071:INFO::jetty-6.1.22 2013-10-10 15:01:47.110:INFO::Deploy /etc/jetty/contexts/javadoc.xml -> org.mortbay.jetty.handler.ContextHandler@2353f67e {/javadoc,file:/usr/share/doc/libjetty-java/api/} 2013-10-10 15:01:47.161:INFO::NO JSP Support for , did not find org.apache

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
For repo Jetty (6.1.x) this is a good guide, which is very similar to what we have on our environments: http://www.kingstonlabs.com/blog/how-to-install-solr-36-on-ubuntu-1204/ Guido. On 10/10/13 13:20, Peter Schmidt wrote: No, it's not working that easy with the jetty 6.1. When i just add -D

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
On the config I pasted here, Solr mailing list is inserting "**" in between dots so make sure you remove those. Example: JAVA_OPTIONS="-Dsolr.solr.**home=$YOUR_SOLR_COLLECTION_**HOME $JAVA_OPTIONS" is really: JAVA_OPTIONS="-Dsolr . solr . home=$YOUR _ SOLR _ COLLECTION _ HOME $JAVA

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
Check the jetty logs, there must be something wrong in your collection config, usually if it doesn't start it will tell you there. And of course, for every change you make be sure you restart jetty. Guido. On 10/10/13 13:20, Peter Schmidt wrote: No, it's not working that easy with the jetty 6

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Furkan KAMACI
Hi Peter; You can learn its version as like that: java -jar start.jar --version 2013/10/10 Peter Schmidt > Is the integrated jetty in Solr 4.4.0 a jetty version 9 or 7 or 8 ? > > > 2013/10/10 Peter Schmidt > > > Your right. it worked although for me with Jetty 9. You mean 9.0.6 > > and i wa

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
Is the integrated jetty in Solr 4.4.0 a jetty version 9 or 7 or 8 ? 2013/10/10 Peter Schmidt > Your right. it worked although for me with Jetty 9. You mean 9.0.6 > and i was talking about jetty 6.1 which come with ubuntus packing. > > So i think i would use the solr with the integrated jetty.

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
Your right. it worked although for me with Jetty 9. You mean 9.0.6 and i was talking about jetty 6.1 which come with ubuntus packing. So i think i would use the solr with the integrated jetty. 2013/10/10 maephisto > Tried it and worked as expected with latest version of Jetty (.0.6 if I > rem

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Peter Schmidt
No, it's not working that easy with the jetty 6.1. When i just add -Dsolr.solr.home to my /etc/default/jetty and put the solr.war in the jetty webapps directory i got a 404 when in try to reach http://localhost:8080 or http://localhost:8080/solr. 2013/10/10 Guido Medina > My I forgot to mentio

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread maephisto
Tried it and worked as expected with latest version of Jetty (.0.6 if I remember correctly) and Solr 4.4.0 This tutorial should help you (it's verified by me and working): http://dcvan24.wordpress.com/2013/05/16/how-to-deploy-solr-4-3-on-jetty-9/ -- View this message in context: http://lucene.

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
My I forgot to mention where you need to copy the solr.war file: /var/lib/jetty/webapps Guido. On 10/10/13 10:48, Guido Medina wrote: Here is the pertinent changes you need to pass to /etc/default/jetty: * JAVA_OPTIONS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms8g -Xmx8

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
Here is the pertinent changes you need to pass to /etc/default/jetty: * JAVA_OPTIONS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms8g -Xmx8g -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+OptimizeStringConcat -XX:+UseStringCache" * JAVA_OPTIONS="-Dsolr.solr.home=$YOUR_SOLR_COLLEC

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Guido Medina
I can confirm solr 3.x and 4.x runs fine with jetty 6.x from Ubuntu repo, we have in production for few years now with no issues, you just need to be sure your solr.war has the required jars in it, also your collection must have the extra jars needed by your app. We have been running it in Ubu

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Tobias Kabbeck
Am 10.10.13 11:05, schrieb Stefan Matheis: Is there a specific reason you are trying to use that jetty instead of the provided one? No not really. I'm already using the provided one. But since i spend some tries on it i want to know if somebody is successfully using it that way :) -Stefa

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Tobias Kabbeck
Am 10.10.13 11:02, schrieb Furkan KAMACI: Do you get an error? As Webapp like in http://www.kingstonlabs.com/blog/how-to-install-solr-36-on-ubuntu-1204/ i got a 404 Recipe from the cookbook produces some errors in the jetty log. i thinks the jetty.xml an the Java Class is different. 201

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Stefan Matheis
Is there a specific reason you are trying to use that jetty instead of the provided one? -Stefan On Thursday, October 10, 2013 at 11:01 AM, Peter Schmidt wrote: > Hey folks, > for some days i tried to get Solr 4.4.0 working as a webapp with Jetty 6.1 > from the Ubuntu repository installed wit

Re: Solr 4.4.0 on Ubuntu 10.04 with Jetty 6.1 from package Repository

2013-10-10 Thread Furkan KAMACI
Do you get an error? 2013/10/10 Peter Schmidt > Hey folks, > for some days i tried to get Solr 4.4.0 working as a webapp with Jetty 6.1 > from the Ubuntu repository installed with apt-get. First i tried the > installation according the wiki http://wiki.apache.org/solr/SolrJetty. > Then > i foun