lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <ryan...@gmail.com>
Subject Re: svn commit: r724181 - /lucene/solr/trunk/build.xml
Date Tue, 09 Dec 2008 23:22:39 GMT
try again...

I have no idea why it has been behaving ok for me.  Perhaps because i  
have been testing with calling 'ant dist' before 'ant example'

someday we will use maven...  but i'll save that discussion for  
another year!  I don't want to give Hoss a heart attack before his  
prime.

ryan


On Dec 9, 2008, at 5:58 PM, Koji Sekiguchi wrote:

> 'ant clean example' is no problem:
>
> [koji@macbook SOLR]$ ant clean example
>   :
>
> Then I did:
>
> [koji@macbook example]$ java -jar start.jar
> 2008-12-10 07:53:10.942::INFO:  Logging to STDERR via  
> org.mortbay.log.StdErrLog
> 2008-12-10 07:53:11.086::INFO:  jetty-6.1.3
> 2008-12-10 07:53:11.161::INFO:  Extract jar:file:/Users/koji/TDI/ 
> SOLR/example/webapps/solr.war!/ to /Users/koji/TDI/SOLR/example/work/ 
> Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp
> 2008-12-10 07:53:11.749::WARN:  failed SolrRequestFilter
> java.lang.NoClassDefFoundError: org/apache/solr/common/SolrException
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   at java.lang.Class.getConstructor0(Class.java:2671)
>   at java.lang.Class.newInstance0(Class.java:321)
>   at java.lang.Class.newInstance(Class.java:303)
>   at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>   at  
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 
> 594)
>   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>   at  
> org 
> .mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1218)
>   at  
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 500)
>   at  
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 117)
>   at org.mortbay.jetty.Server.doStart(Server.java:210)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.mortbay.start.Main.invokeMain(Main.java:183)
>   at org.mortbay.start.Main.start(Main.java:497)
>   at org.mortbay.start.Main.main(Main.java:115)
> 2008-12-10 07:53:11.751::WARN:  failed  
> org.mortbay.jetty.webapp.WebAppContext@d2d58b{/solr,jar:file:/Users/ 
> koji/TDI/SOLR/example/webapps/solr.war!/}
> java.lang.NoClassDefFoundError: org/apache/solr/common/SolrException
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   at java.lang.Class.getConstructor0(Class.java:2671)
>   at java.lang.Class.newInstance0(Class.java:321)
>   at java.lang.Class.newInstance(Class.java:303)
>   at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>   at  
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 
> 594)
>   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>   at  
> org 
> .mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1218)
>   at  
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 500)
>   at  
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 117)
>   at org.mortbay.jetty.Server.doStart(Server.java:210)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.mortbay.start.Main.invokeMain(Main.java:183)
>   at org.mortbay.start.Main.start(Main.java:497)
>   at org.mortbay.start.Main.main(Main.java:115)
> 2008-12-10 07:53:11.753::WARN:  failed ContextHandlerCollection@c19919
> java.lang.NoClassDefFoundError: org/apache/solr/common/SolrException
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   at java.lang.Class.getConstructor0(Class.java:2671)
>   at java.lang.Class.newInstance0(Class.java:321)
>   at java.lang.Class.newInstance(Class.java:303)
>   at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>   at  
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 
> 594)
>   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>   at  
> org 
> .mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1218)
>   at  
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 500)
>   at  
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 117)
>   at org.mortbay.jetty.Server.doStart(Server.java:210)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.mortbay.start.Main.invokeMain(Main.java:183)
>   at org.mortbay.start.Main.start(Main.java:497)
>   at org.mortbay.start.Main.main(Main.java:115)
> 2008-12-10 07:53:11.758::WARN:  failed HandlerCollection@6c2896
> java.lang.NoClassDefFoundError: org/apache/solr/common/SolrException
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   at java.lang.Class.getConstructor0(Class.java:2671)
>   at java.lang.Class.newInstance0(Class.java:321)
>   at java.lang.Class.newInstance(Class.java:303)
>   at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>   at  
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 
> 594)
>   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>   at  
> org 
> .mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1218)
>   at  
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 500)
>   at  
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 117)
>   at org.mortbay.jetty.Server.doStart(Server.java:210)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.mortbay.start.Main.invokeMain(Main.java:183)
>   at org.mortbay.start.Main.start(Main.java:497)
>   at org.mortbay.start.Main.main(Main.java:115)
> 2008-12-10 07:53:11.760::WARN:  Error starting handlers
> java.lang.NoClassDefFoundError: org/apache/solr/common/SolrException
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   at java.lang.Class.getConstructor0(Class.java:2671)
>   at java.lang.Class.newInstance0(Class.java:321)
>   at java.lang.Class.newInstance(Class.java:303)
>   at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>   at  
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 
> 594)
>   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>   at  
> org 
> .mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1218)
>   at  
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 500)
>   at  
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at  
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 117)
>   at org.mortbay.jetty.Server.doStart(Server.java:210)
>   at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 40)
>   at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.mortbay.start.Main.invokeMain(Main.java:183)
>   at org.mortbay.start.Main.start(Main.java:497)
>   at org.mortbay.start.Main.main(Main.java:115)
> 2008-12-10 07:53:11.765::INFO:  Started SocketConnector @ 0.0.0.0:8983
>
>
>
>
>
>
> Ryan McKinley wrote:
>> what is the error?
>>
>> have you done an 'ant clean' 'and example' first?
>>
>>
>> On Dec 9, 2008, at 12:24 PM, Koji Sekiguchi wrote:
>>
>>> Now I got an error when starting example by "java -jar start.jar"...
>>>
>>>
>>> Ryan McKinley wrote:
>>>> try now...
>>>>
>>>>
>>>> On Dec 7, 2008, at 8:20 PM, Koji Sekiguchi wrote:
>>>>
>>>>> Ryan,
>>>>>
>>>>> I got an error when doing 'ant dist'.
>>>>>
>>>>> Koji
>>>>>
>>>>> ryan@apache.org wrote:
>>>>>> Author: ryan
>>>>>> Date: Sun Dec  7 11:27:54 2008
>>>>>> New Revision: 724181
>>>>>>
>>>>>> URL: http://svn.apache.org/viewvc?rev=724181&view=rev
>>>>>> Log:
>>>>>> SOLR-900 -- fixing war file
>>>>>>
>>>>>> Modified:
>>>>>>  lucene/solr/trunk/build.xml
>>>>>>
>>>>>> Modified: lucene/solr/trunk/build.xml
>>>>>> URL: http://svn.apache.org/viewvc/lucene/solr/trunk/build.xml?rev=724181&r1=724180&r2=724181&view=diff
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> = 
>>>>>> = 
>>>>>> =================================================================
>>>>>> --- lucene/solr/trunk/build.xml (original)
>>>>>> +++ lucene/solr/trunk/build.xml Sun Dec  7 11:27:54 2008
>>>>>> @@ -458,10 +458,13 @@
>>>>>>      <lib dir="${lib}">
>>>>>>        <exclude name="servlet-api*.jar" />
>>>>>>        <exclude name="easymock.jar" />
>>>>>> +         <exclude name="junit-*.jar" />
>>>>>> +         <exclude name="*.txt" />
>>>>>> +         <exclude name="*.template" />
>>>>>>      </lib>
>>>>>>      <lib dir="${dist}">
>>>>>>        <include name="${fullname}-solrj-${version}.jar" />
>>>>>> -         <include name="${fullname}-${version}.jar" />
>>>>>> +         <include name="${fullname}-core-${version}.jar" />
>>>>>>      </lib>
>>>>>>      <fileset dir="${src}/webapp/web" />
>>>>>>      @@ -505,7 +508,7 @@
>>>>>> <!-- Creates the solr jar. -->
>>>>>> <target name="dist-jar"
>>>>>>         description="Creates the Solr JAR Distribution file."
>>>>>> -          depends="compile, make-manifest">
>>>>>> +          depends="dist-solrj, compile, make-manifest">
>>>>>>   <mkdir dir="${dist}" />
>>>>>>   <solr-jar destfile="${dist}/${fullname}-core-${version}.jar">
>>>>>>     <fileset dir="${dest}/solr" />
>>>>>> @@ -516,7 +519,7 @@
>>>>>> <!-- Creates the solr jar. -->
>>>>>> <target name="dist-solrj"
>>>>>>         description="Creates the Solr JAR Distribution file."
>>>>>> -          depends="compile-solrj, dist-jar">
>>>>>> +          depends="compile-solrj">
>>>>>>   <mkdir dir="${dist}" />
>>>>>>   <solr-jar
>>>>>>        destfile="${dist}/${fullname}-solrj-${version}.jar"
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>


Mime
View raw message