How to Debug Solr With Eclipse

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

How to Debug Solr With Eclipse

Rainer Gnan
Hello community,

my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
within Eclipse AND to test the code within a debuggable solr/lucene
local instance - also within Eclipse.
Searching the web led me to multiple instructions but for me no one
works.

The only relevant question I actually have to solve this problem is:
Where can I download the source code for the version I want that
includes the ANT build.xml for building an Eclipse-Project?

The solr project page (http://archive.apache.org/dist/lucene/solr/)
seems not to provide that.

I appreciate any hint!

Best regards
Rainer

Reply | Threaded
Open this post in threaded view
|

Re: How to Debug Solr With Eclipse

govind nitk
Hi,

Solr has releases, kindly checkout to the needed one.


cheers

On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
wrote:

> Hello community,
>
> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
> within Eclipse AND to test the code within a debuggable solr/lucene
> local instance - also within Eclipse.
> Searching the web led me to multiple instructions but for me no one
> works.
>
> The only relevant question I actually have to solve this problem is:
> Where can I download the source code for the version I want that
> includes the ANT build.xml for building an Eclipse-Project?
>
> The solr project page (http://archive.apache.org/dist/lucene/solr/)
> seems not to provide that.
>
> I appreciate any hint!
>
> Best regards
> Rainer
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to Debug Solr With Eclipse

Giovanni De Stefano-2
Hello Rainer,

you have the right link: select the version you want and download the -src version.

Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse.

Please note that you will need both and and ivy installed (just start with ant eclipse and take it from there: the script will tell you what to do next).

I hope it helps!

Cheers,
Giovanni


> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
>
> Hi,
>
> Solr has releases, kindly checkout to the needed one.
>
>
> cheers
>
> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
> wrote:
>
>> Hello community,
>>
>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
>> within Eclipse AND to test the code within a debuggable solr/lucene
>> local instance - also within Eclipse.
>> Searching the web led me to multiple instructions but for me no one
>> works.
>>
>> The only relevant question I actually have to solve this problem is:
>> Where can I download the source code for the version I want that
>> includes the ANT build.xml for building an Eclipse-Project?
>>
>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
>> seems not to provide that.
>>
>> I appreciate any hint!
>>
>> Best regards
>> Rainer
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: How to Debug Solr With Eclipse

Lars Karlsson
In reply to this post by Rainer Gnan
Another option that I normally find easier is attaching to existing Solr
instance and do remote debugging.
It require changing the JVM options and restarting Solr, then from eclipse
choose Remote Java Application.

On Thu, 13 Jul 2017 at 19:50, Rainer Gnan <[hidden email]>
wrote:

> Hello community,
>
> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
> within Eclipse AND to test the code within a debuggable solr/lucene
> local instance - also within Eclipse.
> Searching the web led me to multiple instructions but for me no one
> works.
>
> The only relevant question I actually have to solve this problem is:
> Where can I download the source code for the version I want that
> includes the ANT build.xml for building an Eclipse-Project?
>
> The solr project page (http://archive.apache.org/dist/lucene/solr/)
> seems not to provide that.
>
> I appreciate any hint!
>
> Best regards
> Rainer
>
>
Reply | Threaded
Open this post in threaded view
|

Antw: Re: How to Debug Solr With Eclipse

Rainer Gnan
In reply to this post by Giovanni De Stefano-2
Hi Giovanni,

thank you for this hint!

The whole process (tar -xvf ..., ant compile, ant eclipse) untill importing the eclipse-project seems to be fine .
After importing it as an existing eclipse project the project explorer shows an error sign on the project folder.
Refreshing does not help.

-> The sub-folder lucene/src is empty ...

I am using eclipse neon, java 1.8.0_112, solr-6.6.0-src.tgz.

Any suggestions?

Cheers,
Rainer

--------------------------------------------
Rainer Gnan
Bayerische Staatsbibliothek
Verbundzentrale des BVB
Referat Verbundnahe Dienste
80807 München
Tel.: +49(0)89/28638-4445
Fax: +49(0)89/28638-2605
E-Mail: [hidden email]
--------------------------------------------



>>> Giovanni De Stefano <[hidden email]> 13.07.2017 19:59 >>>
Hello Rainer,

you have the right link: select the version you want and download the -src version.

Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse.

Please note that you will need both and and ivy installed (just start with ant eclipse and take it from there: the script will tell you what to do next).

I hope it helps!

Cheers,
Giovanni


> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
>
> Hi,
>
> Solr has releases, kindly checkout to the needed one.
>
>
> cheers
>
> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
> wrote:
>
>> Hello community,
>>
>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
>> within Eclipse AND to test the code within a debuggable solr/lucene
>> local instance - also within Eclipse.
>> Searching the web led me to multiple instructions but for me no one
>> works.
>>
>> The only relevant question I actually have to solve this problem is:
>> Where can I download the source code for the version I want that
>> includes the ANT build.xml for building an Eclipse-Project?
>>
>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
>> seems not to provide that.
>>
>> I appreciate any hint!
>>
>> Best regards
>> Rainer
>>
>>


Reply | Threaded
Open this post in threaded view
|

Re: Re: How to Debug Solr With Eclipse

Erick Erickson
Rainer:

Have you seen: https://wiki.apache.org/solr/HowToContribute? There's a
section about using Eclipse and a couple of other IDEs. I use IntelliJ
so can't help there. A number of devs use Eclipse so it should work.
Please feel free to add to the docs if you find a gotcha.

You can also pull down the source code from the Git repository and
switch to whatever branch suits your fancy. What you're doing should
work so I'm not sure what's up there.

You say: The sub-folder lucene/src is empty

I'm assuming this is in Eclipse, you do have the source when you
unpack the tgz file, right?

Best,
Erick

On Fri, Jul 14, 2017 at 7:01 AM, Rainer Gnan
<[hidden email]> wrote:

> Hi Giovanni,
>
> thank you for this hint!
>
> The whole process (tar -xvf ..., ant compile, ant eclipse) untill importing the eclipse-project seems to be fine .
> After importing it as an existing eclipse project the project explorer shows an error sign on the project folder.
> Refreshing does not help.
>
> -> The sub-folder lucene/src is empty ...
>
> I am using eclipse neon, java 1.8.0_112, solr-6.6.0-src.tgz.
>
> Any suggestions?
>
> Cheers,
> Rainer
>
> --------------------------------------------
> Rainer Gnan
> Bayerische Staatsbibliothek
> Verbundzentrale des BVB
> Referat Verbundnahe Dienste
> 80807 München
> Tel.: +49(0)89/28638-4445
> Fax: +49(0)89/28638-2605
> E-Mail: [hidden email]
> --------------------------------------------
>
>
>
>>>> Giovanni De Stefano <[hidden email]> 13.07.2017 19:59 >>>
> Hello Rainer,
>
> you have the right link: select the version you want and download the -src version.
>
> Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse.
>
> Please note that you will need both and and ivy installed (just start with ant eclipse and take it from there: the script will tell you what to do next).
>
> I hope it helps!
>
> Cheers,
> Giovanni
>
>
>> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
>>
>> Hi,
>>
>> Solr has releases, kindly checkout to the needed one.
>>
>>
>> cheers
>>
>> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
>> wrote:
>>
>>> Hello community,
>>>
>>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
>>> within Eclipse AND to test the code within a debuggable solr/lucene
>>> local instance - also within Eclipse.
>>> Searching the web led me to multiple instructions but for me no one
>>> works.
>>>
>>> The only relevant question I actually have to solve this problem is:
>>> Where can I download the source code for the version I want that
>>> includes the ANT build.xml for building an Eclipse-Project?
>>>
>>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
>>> seems not to provide that.
>>>
>>> I appreciate any hint!
>>>
>>> Best regards
>>> Rainer
>>>
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Antw: Re: How to Debug Solr With Eclipse

Giovanni De Stefano-2
In reply to this post by Rainer Gnan
Hello Rainer,

Have you found the issue?

If not, just to be on the safe side:
1) once you extracted the .tgz you get the folder `solr-6.0.0`, cd in it and then just
2) execute `ant eclipse` and then
3) in Eclipse do Import -> Existing Projects in the workspace -> select the `solr-6.0.0` folder (leave all options the way they are)
4) wait a few minutes…it takes a while to build the whole thing, in the meantime it’s normal to see “errors” or “warning”…

I hope it helps,
Giovanni



> On 14 Jul 2017, at 16:01, Rainer Gnan <[hidden email]> wrote:
>
> Hi Giovanni,
>
> thank you for this hint!
>
> The whole process (tar -xvf ..., ant compile, ant eclipse) untill importing the eclipse-project seems to be fine .
> After importing it as an existing eclipse project the project explorer shows an error sign on the project folder.
> Refreshing does not help.
>
> -> The sub-folder lucene/src is empty ...
>
> I am using eclipse neon, java 1.8.0_112, solr-6.6.0-src.tgz.
>
> Any suggestions?
>
> Cheers,
> Rainer
>
> --------------------------------------------
> Rainer Gnan
> Bayerische Staatsbibliothek
> Verbundzentrale des BVB
> Referat Verbundnahe Dienste
> 80807 München
> Tel.: +49(0)89/28638-4445
> Fax: +49(0)89/28638-2605
> E-Mail: [hidden email]
> --------------------------------------------
>
>
>
>>>> Giovanni De Stefano <[hidden email]> 13.07.2017 19:59 >>>
> Hello Rainer,
>
> you have the right link: select the version you want and download the -src version.
>
> Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse.
>
> Please note that you will need both and and ivy installed (just start with ant eclipse and take it from there: the script will tell you what to do next).
>
> I hope it helps!
>
> Cheers,
> Giovanni
>
>
>> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
>>
>> Hi,
>>
>> Solr has releases, kindly checkout to the needed one.
>>
>>
>> cheers
>>
>> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
>> wrote:
>>
>>> Hello community,
>>>
>>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
>>> within Eclipse AND to test the code within a debuggable solr/lucene
>>> local instance - also within Eclipse.
>>> Searching the web led me to multiple instructions but for me no one
>>> works.
>>>
>>> The only relevant question I actually have to solve this problem is:
>>> Where can I download the source code for the version I want that
>>> includes the ANT build.xml for building an Eclipse-Project?
>>>
>>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
>>> seems not to provide that.
>>>
>>> I appreciate any hint!
>>>
>>> Best regards
>>> Rainer
>>>
>>>
>
>

Reply | Threaded
Open this post in threaded view
|

Antw: Re: Antw: Re: How to Debug Solr With Eclipse

Rainer Gnan
Hello Giovanni,

I could not resolve the issue on my workingplace computer.
On my laptop following exactly your steps it works perfectly without warnings or else.

But how to start solr correctly within eclipse (oxygen)?

I am navigating to the subdirectory "solr/webapp/web/" an with right-click on index.html I select Run as Run with Jetty.
Run Configuration Settings are as follows:
- WebApp = solr/webapp/web
- Context Path = /solr
- HTTP/HTTPS = 8983

But then I get a half of dozen of Exceptions and solr is unable to start ...
Webbrowser shows a HTTP Error 500 "java.lang.NoSuchMethodError: javax.servlet.ServletInputStream.isFinished()Z".
 
What am I doing wrong???

I appreciate any help or hints!
Rainer





--------------------------------------------

Rainer Gnan
Bayerische Staatsbibliothek
Verbundzentrale des BVB
Referat Verbundnahe Dienste
80807 München
Tel.: +49(0)89/28638-4445

Fax: +49(0)89/28638-2605
E-Mail: [hidden email]
--------------------------------------------
>>> Giovanni De Stefano <[hidden email]> 14.07.17 21.49 Uhr >>>
Hello Rainer,

Have you found the issue?

If not, just to be on the safe side:
1) once you extracted the .tgz you get the folder `solr-6.0.0`, cd in it and then just
2) execute `ant eclipse` and then
3) in Eclipse do Import -> Existing Projects in the workspace -> select the `solr-6.0.0` folder (leave all options the way they are)
4) wait a few minutes…it takes a while to build the whole thing, in the meantime it’s normal to see “errors” or “warning”…

I hope it helps,
Giovanni



> On 14 Jul 2017, at 16:01, Rainer Gnan <[hidden email]> wrote:
>
> Hi Giovanni,
>
> thank you for this hint!
>
> The whole process (tar -xvf ..., ant compile, ant eclipse) untill importing the eclipse-project seems to be fine .
> After importing it as an existing eclipse project the project explorer shows an error sign on the project folder.
> Refreshing does not help.
>
> -> The sub-folder lucene/src is empty ...
>
> I am using eclipse neon, java 1.8.0_112, solr-6.6.0-src.tgz.
>
> Any suggestions?
>
> Cheers,
> Rainer
>
> --------------------------------------------
> Rainer Gnan
> Bayerische Staatsbibliothek
> Verbundzentrale des BVB
> Referat Verbundnahe Dienste
> 80807 München
> Tel.: +49(0)89/28638-4445
> Fax: +49(0)89/28638-2605
> E-Mail: [hidden email]
> --------------------------------------------
>
>
>
>>>> Giovanni De Stefano <[hidden email]> 13.07.2017 19:59 >>>
> Hello Rainer,
>
> you have the right link: select the version you want and download the -src version.
>
> Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse.
>
> Please note that you will need both and and ivy installed (just start with ant eclipse and take it from there: the script will tell you what to do next).
>
> I hope it helps!
>
> Cheers,
> Giovanni
>
>
>> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
>>
>> Hi,
>>
>> Solr has releases, kindly checkout to the needed one.
>>
>>
>> cheers
>>
>> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
>> wrote:
>>
>>> Hello community,
>>>
>>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
>>> within Eclipse AND to test the code within a debuggable solr/lucene
>>> local instance - also within Eclipse.
>>> Searching the web led me to multiple instructions but for me no one
>>> works.
>>>
>>> The only relevant question I actually have to solve this problem is:
>>> Where can I download the source code for the version I want that
>>> includes the ANT build.xml for building an Eclipse-Project?
>>>
>>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
>>> seems not to provide that.
>>>
>>> I appreciate any hint!
>>>
>>> Best regards
>>> Rainer
>>>
>>>
>
>

0    INFO  (main) [    ] o.e.j.u.log Logging ini or incomplete.
680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
    at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
    at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
    at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
    at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
    at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
    at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
    at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
0    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
    at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
    at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
    at org.aporg.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
    at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
    at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
    at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
0    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
    at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
    at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
    at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
    at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
    at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
    at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbedd.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)

2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:89830    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
    at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
    at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
    at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
    at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
    at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
    at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
    at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)

2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:89830    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find sfrom C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
    at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
    at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
    at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
    at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
    at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
    at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
    at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)

2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:89832017-08-15 19:03:12.981:WARN:oeja.AnnotationParser:EXCEPTIONhttp://localhost:8983/solr/http://localhost:8983/solr/http://localhost:8983/solr/http://localhost:8983/solr/
Reply | Threaded
Open this post in threaded view
|

Re: Re: Antw: Re: How to Debug Solr With Eclipse

Erick Erickson
Personally I don't start Solr inside my IDE. I use IntelliJ, but I'm
sure Eclipse has the same capability. Have you seen:
https://wiki.apache.org/solr/HowToConfigureEclipse?

I create a "remote" configuration and fill in the blanks. Then
starting the project like this:

bin/solr start -c -z localhost:2181 -p 8983 -s ./example/cloud/node1/solr
-a "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=6900"

The bits after the "-a" are provided to me by IntelliJ when I create
the remote project and specify how IntelliJ connects remotely. So I
start Solr with the above, then attach through my IDE. At that point I
can set breakpoints and the like, it all just works. In this
particular case, the "suspend=y" means that Solr does _nothing_ until
I connect.

And often it's much easier to debug Solr by creating a junit test that
does what you're interested in (or finding one of the pre-existing
ones) and just debug that individually without even starting Solr.

Best,
Erick

On Tue, Aug 15, 2017 at 10:43 AM, Rainer Gnan
<[hidden email]> wrote:

> Hello Giovanni,
>
> I could not resolve the issue on my workingplace computer.
> On my laptop following exactly your steps it works perfectly without warnings or else.
>
> But how to start solr correctly within eclipse (oxygen)?
>
> I am navigating to the subdirectory "solr/webapp/web/" an with right-click on index.html I select Run as Run with Jetty.
> Run Configuration Settings are as follows:
> - WebApp = solr/webapp/web
> - Context Path = /solr
> - HTTP/HTTPS = 8983
>
> But then I get a half of dozen of Exceptions and solr is unable to start ...
> Webbrowser shows a HTTP Error 500 "java.lang.NoSuchMethodError: javax.servlet.ServletInputStream.isFinished()Z".
>
> What am I doing wrong???
>
> I appreciate any help or hints!
> Rainer
>
>
>
>
>
> --------------------------------------------
>
> Rainer Gnan
> Bayerische Staatsbibliothek
> Verbundzentrale des BVB
> Referat Verbundnahe Dienste
> 80807 München
> Tel.: +49(0)89/28638-4445
>
> Fax: +49(0)89/28638-2605
> E-Mail: [hidden email]
> --------------------------------------------
>>>> Giovanni De Stefano <[hidden email]> 14.07.17 21.49 Uhr >>>
> Hello Rainer,
>
> Have you found the issue?
>
> If not, just to be on the safe side:
> 1) once you extracted the .tgz you get the folder `solr-6.0.0`, cd in it and then just
> 2) execute `ant eclipse` and then
> 3) in Eclipse do Import -> Existing Projects in the workspace -> select the `solr-6.0.0` folder (leave all options the way they are)
> 4) wait a few minutes…it takes a while to build the whole thing, in the meantime it’s normal to see “errors” or “warning”…
>
> I hope it helps,
> Giovanni
>
>
>
>> On 14 Jul 2017, at 16:01, Rainer Gnan <[hidden email]> wrote:
>>
>> Hi Giovanni,
>>
>> thank you for this hint!
>>
>> The whole process (tar -xvf ..., ant compile, ant eclipse) untill importing the eclipse-project seems to be fine .
>> After importing it as an existing eclipse project the project explorer shows an error sign on the project folder.
>> Refreshing does not help.
>>
>> -> The sub-folder lucene/src is empty ...
>>
>> I am using eclipse neon, java 1.8.0_112, solr-6.6.0-src.tgz.
>>
>> Any suggestions?
>>
>> Cheers,
>> Rainer
>>
>> --------------------------------------------
>> Rainer Gnan
>> Bayerische Staatsbibliothek
>> Verbundzentrale des BVB
>> Referat Verbundnahe Dienste
>> 80807 München
>> Tel.: +49(0)89/28638-4445
>> Fax: +49(0)89/28638-2605
>> E-Mail: [hidden email]
>> --------------------------------------------
>>
>>
>>
>>>>> Giovanni De Stefano <[hidden email]> 13.07.2017 19:59 >>>
>> Hello Rainer,
>>
>> you have the right link: select the version you want and download the -src version.
>>
>> Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse.
>>
>> Please note that you will need both and and ivy installed (just start with ant eclipse and take it from there: the script will tell you what to do next).
>>
>> I hope it helps!
>>
>> Cheers,
>> Giovanni
>>
>>
>>> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
>>>
>>> Hi,
>>>
>>> Solr has releases, kindly checkout to the needed one.
>>>
>>>
>>> cheers
>>>
>>> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[hidden email]>
>>> wrote:
>>>
>>>> Hello community,
>>>>
>>>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
>>>> within Eclipse AND to test the code within a debuggable solr/lucene
>>>> local instance - also within Eclipse.
>>>> Searching the web led me to multiple instructions but for me no one
>>>> works.
>>>>
>>>> The only relevant question I actually have to solve this problem is:
>>>> Where can I download the source code for the version I want that
>>>> includes the ANT build.xml for building an Eclipse-Project?
>>>>
>>>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
>>>> seems not to provide that.
>>>>
>>>> I appreciate any hint!
>>>>
>>>> Best regards
>>>> Rainer
>>>>
>>>>
>>
>>
>
> 0    INFO  (main) [    ] o.e.j.u.log Logging ini or incomplete.
> 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
> 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
> 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
> 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
> 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
>     at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
>     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
>     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
>     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
>     at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
>     at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
>     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
>     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
>     at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> 0    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
> 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
> 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
> 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
> 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
> 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
> 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
>     at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
>     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
>     at org.aporg.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
>     at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
>     at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
>     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
>     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
>     at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> 0    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
> 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
> 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
> 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
> 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
> 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
> 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
>     at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
>     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
>     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
>     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
>     at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
>     at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
>     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
>     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbedd.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
>
> 2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:89830    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
> 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
> 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
> 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
> 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
> 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
> 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
>     at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
>     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
>     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
>     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
>     at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
>     at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
>     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
>     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
>     at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
>
> 2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:89830    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
> 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete.
> 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.3.0
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port null
> 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: null
> 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2017-08-15T17:03:32.443Z
> 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find sfrom C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
> 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr cannot start Solr
>     at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:107)
>     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
>     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:234)
>     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:202)
>     at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:153)
>     at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
>     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
>     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
>     at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
>     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
>
> 2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:89832017-08-15 19:03:12.981:WARN:oeja.AnnotationParser:EXCEPTIONhttp://localhost:8983/solr/http://localhost:8983/solr/http://localhost:8983/solr/http://localhost:8983/solr/
Reply | Threaded
Open this post in threaded view
|

Re: Re: Antw: Re: How to Debug Solr With Eclipse

Karthik Ramachandran
I start Solr in my Eclipse for small test.

I have made some changes to ant build script to copy the webapp to required
location and also added eclipse launchers in this commit (
https://github.com/mrkarthik/lucene-solr/commit/d793a9b8ac0b1b4969aace4329ea5a6ddc22de16
)

Run "ant eclipse" from shell and refresh the eclipse project.  After you
could use one of the launchers to start Solr.

I have not used *-src.tgz so i am sure if this would work or not.



On Tue, Aug 15, 2017 at 3:28 PM, Erick Erickson <[hidden email]>
wrote:

> Personally I don't start Solr inside my IDE. I use IntelliJ, but I'm
> sure Eclipse has the same capability. Have you seen:
> https://wiki.apache.org/solr/HowToConfigureEclipse?
>
> I create a "remote" configuration and fill in the blanks. Then
> starting the project like this:
>
> bin/solr start -c -z localhost:2181 -p 8983 -s ./example/cloud/node1/solr
> -a "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=6900"
>
> The bits after the "-a" are provided to me by IntelliJ when I create
> the remote project and specify how IntelliJ connects remotely. So I
> start Solr with the above, then attach through my IDE. At that point I
> can set breakpoints and the like, it all just works. In this
> particular case, the "suspend=y" means that Solr does _nothing_ until
> I connect.
>
> And often it's much easier to debug Solr by creating a junit test that
> does what you're interested in (or finding one of the pre-existing
> ones) and just debug that individually without even starting Solr.
>
> Best,
> Erick
>
> On Tue, Aug 15, 2017 at 10:43 AM, Rainer Gnan
> <[hidden email]> wrote:
> > Hello Giovanni,
> >
> > I could not resolve the issue on my workingplace computer.
> > On my laptop following exactly your steps it works perfectly without
> warnings or else.
> >
> > But how to start solr correctly within eclipse (oxygen)?
> >
> > I am navigating to the subdirectory "solr/webapp/web/" an with
> right-click on index.html I select Run as Run with Jetty.
> > Run Configuration Settings are as follows:
> > - WebApp = solr/webapp/web
> > - Context Path = /solr
> > - HTTP/HTTPS = 8983
> >
> > But then I get a half of dozen of Exceptions and solr is unable to start
> ...
> > Webbrowser shows a HTTP Error 500 "java.lang.NoSuchMethodError:
> javax.servlet.ServletInputStream.isFinished()Z".
> >
> > What am I doing wrong???
> >
> > I appreciate any help or hints!
> > Rainer
> >
> >
> >
> >
> >
> > --------------------------------------------
> >
> > Rainer Gnan
> > Bayerische Staatsbibliothek
> > Verbundzentrale des BVB
> > Referat Verbundnahe Dienste
> > 80807 München
> > Tel.: +49(0)89/28638-4445
> >
> > Fax: +49(0)89/28638-2605
> > E-Mail: [hidden email]
> > --------------------------------------------
> >>>> Giovanni De Stefano <[hidden email]> 14.07.17 21.49 Uhr >>>
> > Hello Rainer,
> >
> > Have you found the issue?
> >
> > If not, just to be on the safe side:
> > 1) once you extracted the .tgz you get the folder `solr-6.0.0`, cd in it
> and then just
> > 2) execute `ant eclipse` and then
> > 3) in Eclipse do Import -> Existing Projects in the workspace -> select
> the `solr-6.0.0` folder (leave all options the way they are)
> > 4) wait a few minutes…it takes a while to build the whole thing, in the
> meantime it’s normal to see “errors” or “warning”…
> >
> > I hope it helps,
> > Giovanni
> >
> >
> >
> >> On 14 Jul 2017, at 16:01, Rainer Gnan <[hidden email]>
> wrote:
> >>
> >> Hi Giovanni,
> >>
> >> thank you for this hint!
> >>
> >> The whole process (tar -xvf ..., ant compile, ant eclipse) untill
> importing the eclipse-project seems to be fine .
> >> After importing it as an existing eclipse project the project explorer
> shows an error sign on the project folder.
> >> Refreshing does not help.
> >>
> >> -> The sub-folder lucene/src is empty ...
> >>
> >> I am using eclipse neon, java 1.8.0_112, solr-6.6.0-src.tgz.
> >>
> >> Any suggestions?
> >>
> >> Cheers,
> >> Rainer
> >>
> >> --------------------------------------------
> >> Rainer Gnan
> >> Bayerische Staatsbibliothek
> >> Verbundzentrale des BVB
> >> Referat Verbundnahe Dienste
> >> 80807 München
> >> Tel.: +49(0)89/28638-4445
> >> Fax: +49(0)89/28638-2605
> >> E-Mail: [hidden email]
> >> --------------------------------------------
> >>
> >>
> >>
> >>>>> Giovanni De Stefano <[hidden email]> 13.07.2017 19:59 >>>
> >> Hello Rainer,
> >>
> >> you have the right link: select the version you want and download the
> -src version.
> >>
> >> Once un untar the .tgz you can run `ant eclipse` from the command line
> and then import the generated project in eclipse.
> >>
> >> Please note that you will need both and and ivy installed (just start
> with ant eclipse and take it from there: the script will tell you what to
> do next).
> >>
> >> I hope it helps!
> >>
> >> Cheers,
> >> Giovanni
> >>
> >>
> >>> On 13 Jul 2017, at 19:54, govind nitk <[hidden email]> wrote:
> >>>
> >>> Hi,
> >>>
> >>> Solr has releases, kindly checkout to the needed one.
> >>>
> >>>
> >>> cheers
> >>>
> >>> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <
> [hidden email]>
> >>> wrote:
> >>>
> >>>> Hello community,
> >>>>
> >>>> my aim is to develop solr custom code (e.g. UpdateRequestProcessor)
> >>>> within Eclipse AND to test the code within a debuggable solr/lucene
> >>>> local instance - also within Eclipse.
> >>>> Searching the web led me to multiple instructions but for me no one
> >>>> works.
> >>>>
> >>>> The only relevant question I actually have to solve this problem is:
> >>>> Where can I download the source code for the version I want that
> >>>> includes the ANT build.xml for building an Eclipse-Project?
> >>>>
> >>>> The solr project page (http://archive.apache.org/dist/lucene/solr/)
> >>>> seems not to provide that.
> >>>>
> >>>> I appreciate any hint!
> >>>>
> >>>> Best regards
> >>>> Rainer
> >>>>
> >>>>
> >>
> >>
> >
> > 0    INFO  (main) [    ] o.e.j.u.log Logging ini or incomplete.
> > 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _
>  Welcome to Apache Solr™ version 6.3.0
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _
>  Starting in standalone mode on port null
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|
> Install dir: null
> > 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|
> Start time: 2017-08-15T17:03:32.443Z
> > 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted
> to 'solr/' (could not find system property or JNDI)
> > 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container
> configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> > 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start
> Solr. Check solr/home property and the logs
> > 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:
> solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr
> cannot start Solr
> >     at org.apache.solr.core.SolrXmlConfig.fromFile(
> SolrXmlConfig.java:107)
> >     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(
> SolrXmlConfig.java:140)
> >     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(
> SolrDispatchFilter.java:234)
> >     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(
> SolrDispatchFilter.java:202)
> >     at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:153)
> >     at org.eclipse.jetty.servlet.FilterHolder.doStart(
> FilterHolder.java:118)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.servlet.ServletHandler.initialize(
> ServletHandler.java:768)
> >     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
> ServletContextHandler.java:265)
> >     at org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1242)
> >     at org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:717)
> >     at org.eclipse.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:494)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.server.handler.HandlerWrapper.
> doStart(HandlerWrapper.java:95)
> >     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
> >     at net.sourceforge.eclipsejetty.starter.common.
> AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> > 0    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
> > 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option
> solr.log.dir. Logging may be missing or incomplete.
> > 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _
>  Welcome to Apache Solr™ version 6.3.0
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _
>  Starting in standalone mode on port null
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|
> Install dir: null
> > 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|
> Start time: 2017-08-15T17:03:32.443Z
> > 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted
> to 'solr/' (could not find system property or JNDI)
> > 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container
> configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> > 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start
> Solr. Check solr/home property and the logs
> > 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:
> solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr
> cannot start Solr
> >     at org.apache.solr.core.SolrXmlConfig.fromFile(
> SolrXmlConfig.java:107)
> >     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(
> SolrXmlConfig.java:140)
> >     at org.aporg.apache.solr.servlet.SolrDispatchFilter.
> createCoreContainer(SolrDispatchFilter.java:202)
> >     at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:153)
> >     at org.eclipse.jetty.servlet.FilterHolder.doStart(
> FilterHolder.java:118)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.servlet.ServletHandler.initialize(
> ServletHandler.java:768)
> >     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
> ServletContextHandler.java:265)
> >     at org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1242)
> >     at org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:717)
> >     at org.eclipse.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:494)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.server.handler.HandlerWrapper.
> doStart(HandlerWrapper.java:95)
> >     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
> >     at net.sourceforge.eclipsejetty.starter.common.
> AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> > 0    INFO  (main) [    ] o.e.j.u.log Logging initialized @42361ms
> > 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option
> solr.log.dir. Logging may be missing or incomplete.
> > 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _
>  Welcome to Apache Solr™ version 6.3.0
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _
>  Starting in standalone mode on port null
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|
> Install dir: null
> > 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|
> Start time: 2017-08-15T17:03:32.443Z
> > 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted
> to 'solr/' (could not find system property or JNDI)
> > 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container
> configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> > 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start
> Solr. Check solr/home property and the logs
> > 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:
> solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr
> cannot start Solr
> >     at org.apache.solr.core.SolrXmlConfig.fromFile(
> SolrXmlConfig.java:107)
> >     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(
> SolrXmlConfig.java:140)
> >     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(
> SolrDispatchFilter.java:234)
> >     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(
> SolrDispatchFilter.java:202)
> >     at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:153)
> >     at org.eclipse.jetty.servlet.FilterHolder.doStart(
> FilterHolder.java:118)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.servlet.ServletHandler.initialize(
> ServletHandler.java:768)
> >     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
> ServletContextHandler.java:265)
> >     at org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1242)
> >     at org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:717)
> >     at org.eclipse.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:494)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.server.handler.HandlerWrapper.
> doStart(HandlerWrapper.java:95)
> >     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbedd.
> sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(
> AbstractJettyLauncherMain.java:84)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> >
> > 2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started
> SelectChannelConnector@0.0.0.0:89830    INFO  (main) [    ] o.e.j.u.log
> Logging initialized @42361ms
> > 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option
> solr.log.dir. Logging may be missing or incomplete.
> > 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _
>  Welcome to Apache Solr™ version 6.3.0
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _
>  Starting in standalone mode on port null
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|
> Install dir: null
> > 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|
> Start time: 2017-08-15T17:03:32.443Z
> > 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted
> to 'solr/' (could not find system property or JNDI)
> > 769  INFO  (main) [    ] o.a.s.c.SolrXmlConfig Loading container
> configuration from C:\Users\rainer\workspace\solr-6.3.0\solr\solr.xml
> > 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start
> Solr. Check solr/home property and the logs
> > 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:
> solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr
> cannot start Solr
> >     at org.apache.solr.core.SolrXmlConfig.fromFile(
> SolrXmlConfig.java:107)
> >     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(
> SolrXmlConfig.java:140)
> >     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(
> SolrDispatchFilter.java:234)
> >     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(
> SolrDispatchFilter.java:202)
> >     at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:153)
> >     at org.eclipse.jetty.servlet.FilterHolder.doStart(
> FilterHolder.java:118)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.servlet.ServletHandler.initialize(
> ServletHandler.java:768)
> >     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
> ServletContextHandler.java:265)
> >     at org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1242)
> >     at org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:717)
> >     at org.eclipse.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:494)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.server.handler.HandlerWrapper.
> doStart(HandlerWrapper.java:95)
> >     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
> >     at net.sourceforge.eclipsejetty.starter.common.
> AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> >
> > 2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started
> SelectChannelConnector@0.0.0.0:89830    INFO  (main) [    ] o.e.j.u.log
> Logging initialized @42361ms
> > 675  ERROR (main) [    ] o.a.s.s.StartupLoggingUtils Missing Java Option
> solr.log.dir. Logging may be missing or incomplete.
> > 680  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter  ___      _
>  Welcome to Apache Solr™ version 6.3.0
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _
>  Starting in standalone mode on port null
> > 681  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|
> Install dir: null
> > 696  INFO  (main) [    ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|
> Start time: 2017-08-15T17:03:32.443Z
> > 752  INFO  (main) [    ] o.a.s.c.SolrResourceLoader solr home defaulted
> to 'solr/' (could not find sfrom C:\Users\rainer\workspace\
> solr-6.3.0\solr\solr.xml
> > 775  ERROR (main) [    ] o.a.s.s.SolrDispatchFilter Could not start
> Solr. Check solr/home property and the logs
> > 903  ERROR (main) [    ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:
> solr.xml does not exist in C:\Users\rainer\workspace\solr-6.3.0\solr
> cannot start Solr
> >     at org.apache.solr.core.SolrXmlConfig.fromFile(
> SolrXmlConfig.java:107)
> >     at org.apache.solr.core.SolrXmlConfig.fromSolrHome(
> SolrXmlConfig.java:140)
> >     at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(
> SolrDispatchFilter.java:234)
> >     at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(
> SolrDispatchFilter.java:202)
> >     at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:153)
> >     at org.eclipse.jetty.servlet.FilterHolder.doStart(
> FilterHolder.java:118)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.servlet.ServletHandler.initialize(
> ServletHandler.java:768)
> >     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
> ServletContextHandler.java:265)
> >     at org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1242)
> >     at org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:717)
> >     at org.eclipse.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:494)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at org.eclipse.jetty.server.handler.HandlerWrapper.
> doStart(HandlerWrapper.java:95)
> >     at org.eclipse.jetty.server.Server.doStart(Server.java:282)
> >     at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:64)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
> >     at net.sourceforge.eclipsejetty.starter.common.
> AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
> >     at net.sourceforge.eclipsejetty.starter.embedded.
> JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
> >
> > 2017-08-15 19:03:32.876:INFO:oejs.AbstractConnector:Started
> SelectChannelConnector@0.0.0.0:89832017-08-15 19:03:12.981:WARN:oeja.
> AnnotationParser:EXCEPTIONhttp://localhost:8983/solr/http://localhost:
> 8983/solr/http://localhost:8983/solr/http://localhost:8983/solr/
>