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: [email protected]
--------------------------------------------
>>> Giovanni De Stefano <[email protected]> 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 <[email protected]> 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: [email protected]
> --------------------------------------------
> 
> 
> 
>>>> Giovanni De Stefano <[email protected]> 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 <[email protected]> wrote:
>> 
>> Hi,
>> 
>> Solr has releases, kindly checkout to the needed one.
>> 
>> 
>> cheers
>> 
>> On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan <[email protected]>
>> 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 
[email protected]: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 
[email protected]: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 
[email protected]: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 via email to