Cocould not find system property or JNDI

Source: Internet
Author: User
Tags solr

Thanks everyone !! Finally got a solution for this problem on Jetty server.

Instead of setting Java System variables like
Java_opts =-dsolr. SOLR. Home = "C: \ SOLR \ apache-solr-1.3.0 \ apache-solr-1.3.0 \ example \ SOLR ",
We can provide the VM arguments directly while starting the jetty server.

I am running jetty as follows-
Java-dsolr. SOLR. Home = <path_to_solr_home>-jar start. Jar

After this I am not getting any error.

Thanks,
Manu


Nicholas Piasecki-2 wrote:
>
> For what it's worth, I bumped
> Http://jira.codehaus.org/browse/JETTY-854On a recent jetty Installation
> When trying to set up SOLR for a test run, so setting via JNDI may end
> Up causing even more heartburn. I ended up just using tomcat.
>
>V/R,
> Nicolas Piasecki
>
> Software developer
> Skiviez, Inc.
> Nick @ xxxxxxxxxxx
> 804-550-9406
>
> ----- Original message -----
>From: Chris hostetter [Mailto: hossman_lucene @ XXXXXXXXX]
> Sent: Tuesday, February 03,200
> To: SOLR-user @ xxxxxxxxxxxxxxxxx
> Subject: Re: Problem with setting SOLR. SOLR. Home Property
>
> : Till now I was working with the jetty server bundled with the SOLR
> : Distribution. But I want to deploy SOLR. War to another jetty server.
>Here I
> : Am facing some problem with SOLR/home. Whenever I start the jetty
> Server, I
> : Get the following error-
> ...
> : Info: SOLR home defaulted to 'solr/'(cocould not find system property
> Or
> : JNDI)
> ...
> : Severe: cocould not start SOLR. Check SOLR/home property
> : Java. Lang. runtimeexception: Can't Find resource 'solrconfig. xml' in
> : Classpath or 'solr/CONF/', CWD = c: \ jetty-6.1.3 \ je
> ...
>
> : I have tried following options-
> :
> : 1. Added system property on Windows as 'solr. SOLR. Home'. I am able
> Get
> : Its value when I check through command prompt.
> :Http://www.nabble.com/file/p21808987/cmd.gif
>
> I don't know much about windows, but I don't think that's the same
> Thing
> As a Java System property (that looks like an enviornment variable
>Me)
>
> : 2. I also tried adding VM argument through command prompt as follows-
>
> : Set
> :
> Java_opts =-dsolr. SOLR. Home = "C: \ SOLR \ apache-solr-1.3.0 \ apache-solr-1.3.0 \
> Example \ SOLR"
> :
>: But in all the case, I am getting the above exception.
>
> What about the info line I quoted above (SOLR home defaulted
> 'Solr/'...) Are you seeing that line even when you modify the java_opts
> This way? (I'm wondering if perhaps you are setting the system property
>
> But maybe the quotes or formating or soemthing is confusing it when
>Trying
> To find that directory)... it wocould be helpful to see the * Exact * logs
> And error messages you get when trying the java_opts method... I'm
> Suspicious that maybe it's a slightly different error.
>
> : 3. I tried to retrieve the system property through Java code (it is
> The
>: Similar code that is triggered by SOLR, solrresourceloader. Java
> : Locateinstancedir () method). I get the value of system property in
> Code.
>
> Your code looks right, but I don't understand exactly what you're re saying
>
> -- Do you in fact see the path in your logging output? If so then I'm
>More confident it's a problem with formating the path correctly so Java
> Understands it.
>
> FYI: in my opinion the best way to set SOLR home is using JNDI, but you
> Didn't mention trying that...
> Http://wiki.apache.org/solr/SolrJetty
>
>
>-Hoss
>
>
>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.