Integrate Solr with Tomcat in Linux
Hi, I have solr with jetty as server application running on Linux. Could anyone please tell me the changes i need to make to integrate Tomcat with solr on Linux. Thanks, Sandip --- On Mon, 7/7/08, Benson Margulies <[EMAIL PROTECTED]> wrote: > From: Benson Margulies <[EMAIL PROTECTED]> > Subject: Re: js client > To: [EMAIL PROTECTED], "solr-user" > Date: Monday, 7 July, 2008, 11:43 PM > The Javascript should have the right URL automatically if > you get it from > the ?js URL. > > Anyway, I think I was the first person to say > 'stupid' about that WSDL in > the sample. > > I'm not at all clear on what you are doing at this > point. > > Please send along the URL that works for you in soapUI and > the URL that > works for you in the ... > element. > > > > > On Mon, Jul 7, 2008 at 5:54 AM, Christine Karman > <[EMAIL PROTECTED]> > wrote: > > > On Sun, 2008-07-06 at 10:25 -0400, Benson Margulies > wrote: > > > In the sample, it is a relative URL to the web > service endpoint. The > > > sample starts from a stupid WSDL with silly names > for the service and > > > the port. > > > > I'm sorry about using the word "stupid". > > > > > > > > Take your endpoint deployment URL, the very URL > that is logged when > > > your service starts up, and add ?js to the end of > it. Period. > > > > Yes, that's what I do, and that part has been > working all the time. What > > doesn't work is I use the same url without the ?js > for the web service. > > Is there a way to see the Jetty log file? Mabye that > will give me a clue > > what's happening. If nothing is in the jetty log > file, I know the > > problem is elsewhere. > > > > Christine > > > > > > > > If it is > > > > > > http://wendy.christine.nl:9000/soap, make it > > > > > > http://wendy.christine.nl:9000/soap?js > > > > > > > > > > > > The sample is taking advantage of relative URLs > to avoid typing > > > http://etc. > > > > > > On Sun, Jul 6, 2008 at 8:52 AM, Christine Karman > > > <[EMAIL PROTECTED]> wrote: > > > On Sun, 2008-07-06 at 07:37 -0400, Benson > Margulies wrote: > > > > The javascript client probably > cannot handle redirects. If > > > you are now > > > > using ?js, you shouldn't need a > redirect. > > > > > > > > > well actually, the server redirect is > similar to a rewrite. It > > > makes /soap the same as /soap:9000. > removing the redirect > > > brings me back > > > to the 650 error, "access to > restricted uri denied". > > > > > > What does the /Soap/SoapPort mean in the > sample? how does that > > > translate > > > to my localhost:9000 or localhost/soap? > (localhost == > > > wendy.christine.nl). > > > > > > It's silly that creating the web > service from my java code is > > > so very > > > simple, and that some stupid javascript > code can't be > > > persuaded to work > > > properly :-) I've done my part of > javascript but I have never > > > liked it. > > > > > > CXF is really good. I was in a project a > while ago where I > > > suggested to > > > use cxf, but someone who was supposed to > have releavant > > > experience > > > insisted on using axis2. Took him a week > to create some soap > > > services. > > > He had to remove all enums and nested > objects from the > > > project because > > > axis wouldn't support that. A friend > of mine is using cxf in > > > his project > > > and he insisted I use it also. > > > > > > Christine > > > > > > > > > > > > > > The browser allows an HTML page to > load javascript from > > > anywhere. Once > > > > it has loaded javascript from a > host:port, it will allow > > > outbound > > > > connections to that host:port. > > > > > > > > So, once you use > src="./?js" you should be set. > > > > > > > > The sample does not fully > demonstrate this effect, since it > > > has the > > > > benefit of really running the web > service and the static > > > HTML from > > > > the very same host::port. > > > > > > > > In the past, before there was such a > thing as the ?js URL, > > > the > > > > solution here was a reverse proxy > instead of a redirect. You > > > set up > > > > URL rewriting in plain old Apache 2 > so that xxx:9000 is > > > transparently > > > > available at xxx. > > > > > > > > I don't have my recipe for this > available at home, if you're > > > still > > > > stuck tomorrow I can dig it out of > my office. > > > > > > > > > > > > > > > > > > > > On Sun, Jul 6, 2008 at 7:20 AM, > Christine > > > <[EMAIL PROTECTED]> > > > > wrote: > > > > Benson, > > > > I'm sti
Re: Integrate Solr with Tomcat in Linux
thanks and sorry, i will take care of this next time --- On Tue, 8/7/08, Shalin Shekhar Mangar <[EMAIL PROTECTED]> wrote: > From: Shalin Shekhar Mangar <[EMAIL PROTECTED]> > Subject: Re: Integrate Solr with Tomcat in Linux > To: solr-user@lucene.apache.org, [EMAIL PROTECTED] > Date: Tuesday, 8 July, 2008, 4:40 PM > Take a look at http://wiki.apache.org/solr/SolrTomcat > > Please avoid replying to an older message when you're > starting a new topic. > > On Tue, Jul 8, 2008 at 4:36 PM, sandeep kaur > <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > I have solr with jetty as server application running > on Linux. > > > > Could anyone please tell me the changes i need to make > to integrate Tomcat > > with solr on Linux. > > > > Thanks, > > Sandip > > > > --- On Mon, 7/7/08, Benson Margulies > <[EMAIL PROTECTED]> wrote: > > > > > From: Benson Margulies > <[EMAIL PROTECTED]> > > > Subject: Re: js client > > > To: [EMAIL PROTECTED], "solr-user" > > > > Date: Monday, 7 July, 2008, 11:43 PM > > > The Javascript should have the right URL > automatically if > > > you get it from > > > the ?js URL. > > > > > > Anyway, I think I was the first person to say > > > 'stupid' about that WSDL in > > > the sample. > > > > > > I'm not at all clear on what you are doing at > this > > > point. > > > > > > Please send along the URL that works for you in > soapUI and > > > the URL that > > > works for you in the > ... > > > element. > > > > > > > > > > > > > > > On Mon, Jul 7, 2008 at 5:54 AM, Christine Karman > > > <[EMAIL PROTECTED]> > > > wrote: > > > > > > > On Sun, 2008-07-06 at 10:25 -0400, Benson > Margulies > > > wrote: > > > > > In the sample, it is a relative URL to > the web > > > service endpoint. The > > > > > sample starts from a stupid WSDL with > silly names > > > for the service and > > > > > the port. > > > > > > > > I'm sorry about using the word > "stupid". > > > > > > > > > > > > > > Take your endpoint deployment URL, the > very URL > > > that is logged when > > > > > your service starts up, and add ?js to > the end of > > > it. Period. > > > > > > > > Yes, that's what I do, and that part has > been > > > working all the time. What > > > > doesn't work is I use the same url > without the ?js > > > for the web service. > > > > Is there a way to see the Jetty log file? > Mabye that > > > will give me a clue > > > > what's happening. If nothing is in the > jetty log > > > file, I know the > > > > problem is elsewhere. > > > > > > > > Christine > > > > > > > > > > > > > > If it is > > > > > > > > > > http://wendy.christine.nl:9000/soap, > make it > > > > > > > > > > http://wendy.christine.nl:9000/soap?js > > > > > > > > > > > > > > > > > > > > The sample is taking advantage of > relative URLs > > > to avoid typing > > > > > http://etc. > > > > > > > > > > On Sun, Jul 6, 2008 at 8:52 AM, > Christine Karman > > > > > <[EMAIL PROTECTED]> wrote: > > > > > On Sun, 2008-07-06 at 07:37 > -0400, Benson > > > Margulies wrote: > > > > > > The javascript client > probably > > > cannot handle redirects. If > > > > > you are now > > > > > > using ?js, you > shouldn't need a > > > redirect. > > > > > > > > > > > > > > > well actually, the server > redirect is > > > similar to a rewrite. It > > > > > makes /soap the same as > /soap:9000. > > > removing the redirect > > > > > brings me back > > > > > to the 650 error, "access > to > > > restricted uri denied". > > > > > > > > > > What does the /Soap/SoapPort > mean in the > > > sample? how does that > > > > > translate > > > > &
Re: Integrate Solr with Tomcat in Linux
Hi, As i am running tomcat after copying the solr files to appropriate tomcat directories, i am getting the followin error in the catalina log: Jul 8, 2008 10:30:02 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_06 /jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jr e/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Jul 8, 2008 10:30:02 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 8, 2008 10:30:02 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 285 ms Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.9 Jul 8, 2008 10:30:02 PM org.apache.solr.servlet.SolrDispatchFilter init INFO: SolrDispatchFilter.init() Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config getInstanceDir INFO: Using JNDI solr.home: /home/user_name/softwares Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config setInstanceDir INFO: Solr home set to '/home/user_name/softwares/' Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/solr] startup failed due to previous errors Jul 8, 2008 10:30:03 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 8, 2008 10:30:03 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 8, 2008 10:30:03 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/30 config=null Jul 8, 2008 10:30:03 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 589 ms In the browser while typing http://localhost:8080/solr/admin i am getting the following error HTTP Status 404 - /solr/admin type Status report message /solr/admin description The requested resource (/solr/admin) is not available. Apache Tomcat/6.0.9 Could anyone please suggest how to resolve this error. Thanks, Sandip --- On Tue, 8/7/08, Shalin Shekhar Mangar <[EMAIL PROTECTED]> wrote: > From: Shalin Shekhar Mangar <[EMAIL PROTECTED]> > Subject: Re: Integrate Solr with Tomcat in Linux > To: solr-user@lucene.apache.org, [EMAIL PROTECTED] > Date: Tuesday, 8 July, 2008, 4:40 PM > Take a look at http://wiki.apache.org/solr/SolrTomcat > > Please avoid replying to an older message when you're > starting a new topic. > > On Tue, Jul 8, 2008 at 4:36 PM, sandeep kaur > <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > I have solr with jetty as server application running > on Linux. > > > > Could anyone please tell me the changes i need to make > to integrate Tomcat > > with solr on Linux. > > > > Thanks, > > Sandip > > > > --- On Mon, 7/7/08, Benson Margulies > <[EMAIL PROTECTED]> wrote: > > > > > From: Benson Margulies > <[EMAIL PROTECTED]> > > > Subject: Re: js client > > > To: [EMAIL PROTECTED], "solr-user" > > > > Date: Monday, 7 July, 2008, 11:43 PM > > > The Javascript should have the right URL > automatically if > > > you get it from > > > the ?js URL. > > > > > > Anyway, I think I was the first person to say > > > 'stupid' about that WSDL in > > > the sample. > > > > > > I'm not at all clear on what you are doing at > this > > > point. > > > > > > Please send along the URL that works for you in > soapUI and > > > the URL that > > > works for you in the > ... > > > element. > > > > > > > > > > > > > > > On Mon, Jul 7, 2008 at 5:54 AM, Christine Karman > > > <[EMAIL PROTECTED]> > > > wrote: > > > > > > > On Sun, 2008-07-06 at 10:25 -0400, Benson > Margulies > > > wrote: > > > > > In the sample, it is a relative URL to > the web > > > service endpoint. The > > > > > sample starts from a stupid WSDL with > silly names > > > for the service and > > > > > the port. > > > > > > > > I'm sorry about using the word > "stupid". > > > > > > > > > > > > > > Take your endpoint deployment URL, the > very URL > > > that is logged when > > > > > your service starts up, and add ?js to > the end of > > > it. Period. &
Re: Integrate Solr with Tomcat in Linux
Hi, As i am running tomcat after copying the solr files to appropriate tomcat directories, i am getting the followin error in the catalina log: Jul 8, 2008 10:30:02 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_06 /jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jr e/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Jul 8, 2008 10:30:02 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 8, 2008 10:30:02 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 285 ms Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.9 Jul 8, 2008 10:30:02 PM org.apache.solr.servlet.SolrDispatchFilter init INFO: SolrDispatchFilter.init() Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config getInstanceDir INFO: Using JNDI solr.home: /home/user_name/softwares Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config setInstanceDir INFO: Solr home set to '/home/user_name/softwares/' Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jul 8, 2008 10:30:02 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/solr] startup failed due to previous errors Jul 8, 2008 10:30:03 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 8, 2008 10:30:03 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 8, 2008 10:30:03 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/30 config=null Jul 8, 2008 10:30:03 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 589 ms In the browser while typing http://localhost:8080/solr/admin i am getting the following error HTTP Status 404 - /solr/admin type Status report message /solr/admin description The requested resource (/solr/admin) is not available. Apache Tomcat/6.0.9 Could anyone please suggest how to resolve this error. Thanks, Sandip --- On Wed, 9/7/08, sandeep kaur <[EMAIL PROTECTED]> wrote: > From: sandeep kaur <[EMAIL PROTECTED]> > Subject: Re: Integrate Solr with Tomcat in Linux > To: solr-user@lucene.apache.org > Date: Wednesday, 9 July, 2008, 3:24 AM > Hi, > > As i am running tomcat after copying the solr files to > appropriate tomcat directories, i am getting the followin > error in the catalina log: > > Jul 8, 2008 10:30:02 PM > org.apache.catalina.core.AprLifecycleListener init > INFO: The Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: /usr/java/jdk1.6.0_06 > /jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jr > e/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib > Jul 8, 2008 10:30:02 PM > org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Jul 8, 2008 10:30:02 PM > org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 285 ms > Jul 8, 2008 10:30:02 PM > org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Jul 8, 2008 10:30:02 PM > org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.9 > Jul 8, 2008 10:30:02 PM > org.apache.solr.servlet.SolrDispatchFilter init > INFO: SolrDispatchFilter.init() > Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config > getInstanceDir > INFO: Using JNDI solr.home: /home/user_name/softwares > Jul 8, 2008 10:30:02 PM org.apache.solr.core.Config > setInstanceDir > INFO: Solr home set to '/home/user_name/softwares/' > Jul 8, 2008 10:30:02 PM > org.apache.catalina.core.StandardContext start > SEVERE: Error filterStart > Jul 8, 2008 10:30:02 PM > org.apache.catalina.core.StandardContext start > SEVERE: Context [/solr] startup failed due to previous > errors > Jul 8, 2008 10:30:03 PM > org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Jul 8, 2008 10:30:03 PM org.apache.jk.common.ChannelSocket > init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > Jul 8, 2008 10:30:03 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/30 config=null > Jul 8, 2008 10:30:03 PM > org.apache.catalina.startup.Catalina start > INFO: Server startup in 589 ms > > In the browser while typing > http://localhost:8080/solr/admin > > i am getting the following error > > HTTP Status 404 - /solr/admin > > type Status report > >
changing port 8983 to 8080 for Tomcat in solr
Hi, Solr is working with jetty at port 8983. I want Solr to send the requets to port 8080. I have made changes to SimplePostTool.java and changed port 8983 to 8080. Also made changes in scripts.conf file for port. still post.jar is looking at port 8983(as i don't know the contents of jar). Could anyone please suggest something to correct this. Thanks, Sandip Kaur Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/
Re: changing port 8983 to 8080 for Tomcat in solr
Hi, I have got -Durl=" + DEFAULT_POST_URL in the SimplePostTool.java where the value of DEFAULT_POST_URL, as i had changed it to 8080 public static final String DEFAULT_POST_URL = "http://localhost:8080/solr/update"public static final String DEFAULT_POST_URL = "http://localhost:8080/solr/update"; So now what should be my next steps for these changes to become effective. I have compiled this java file also. But how the changes will get reflected in the post.jar file? Please suggest. Thanks, Sandip Kaur --- On Thu, 10/7/08, Erik Hatcher <[EMAIL PROTECTED]> wrote: > From: Erik Hatcher <[EMAIL PROTECTED]> > Subject: Re: changing port 8983 to 8080 for Tomcat in solr > To: solr-user@lucene.apache.org > Date: Thursday, 10 July, 2008, 6:18 PM > On Jul 10, 2008, at 8:27 AM, sandeep kaur wrote: > > > Hi, > > > > Solr is working with jetty at port 8983. > > I want Solr to send the requets to port 8080. > > > > I have made changes to SimplePostTool.java and changed > port 8983 to > > 8080. > > > > Also made changes in scripts.conf file for port. > > > > still post.jar is looking at port 8983(as i don't > know the contents > > of jar). > > $ java -jar post.jar -help > SimplePostTool: version 1.2 > This is a simple command line tool for POSTing raw XML to a > Solr > port. XML data can be read from files specified as > commandline > args; as raw commandline arg strings; or via STDIN. > Examples: >java -Ddata=files -jar post.jar *.xml >java -Ddata=args -jar post.jar > '42' >java -Ddata=stdin -jar post.jar < hd.xml > Other options controlled by System Properties include the > Solr > URL to POST to, and whether a commit should be executed. > These > are the defaults for all System Properties... >-Ddata=files >-Durl=http://localhost:8983/solr/update >-Dcommit=yes Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups/bestofyahoo/
Re: changing port 8983 to 8080 for Tomcat in solr
Hi, Just a add on: ./Solr_Lucene/apache-solr-1.2.0/example/exampledocs I am executing java -jar post.jar *.xml from above path. Do i need to copy it into some folder in Tomcat directory? Thanks, Sandip Kaur --- On Thu, 10/7/08, sandeep kaur <[EMAIL PROTECTED]> wrote: > From: sandeep kaur <[EMAIL PROTECTED]> > Subject: Re: changing port 8983 to 8080 for Tomcat in solr > To: solr-user@lucene.apache.org, [EMAIL PROTECTED] > Date: Thursday, 10 July, 2008, 6:43 PM > Hi, > > I have got -Durl=" + DEFAULT_POST_URL in the > SimplePostTool.java > > where the value of DEFAULT_POST_URL, as i had changed it to > 8080 > > public static final String DEFAULT_POST_URL = > "http://localhost:8080/solr/update"public static > final String DEFAULT_POST_URL = > "http://localhost:8080/solr/update"; > > So now what should be my next steps for these changes to > become effective. > > I have compiled this java file also. But how the changes > will get reflected in the post.jar file? > > Please suggest. > > Thanks, > Sandip Kaur > > --- On Thu, 10/7/08, Erik Hatcher > <[EMAIL PROTECTED]> wrote: > > > From: Erik Hatcher <[EMAIL PROTECTED]> > > Subject: Re: changing port 8983 to 8080 for Tomcat in > solr > > To: solr-user@lucene.apache.org > > Date: Thursday, 10 July, 2008, 6:18 PM > > On Jul 10, 2008, at 8:27 AM, sandeep kaur wrote: > > > > > Hi, > > > > > > Solr is working with jetty at port 8983. > > > I want Solr to send the requets to port 8080. > > > > > > I have made changes to SimplePostTool.java and > changed > > port 8983 to > > > 8080. > > > > > > Also made changes in scripts.conf file for port. > > > > > > still post.jar is looking at port 8983(as i > don't > > know the contents > > > of jar). > > > > $ java -jar post.jar -help > > SimplePostTool: version 1.2 > > This is a simple command line tool for POSTing raw XML > to a > > Solr > > port. XML data can be read from files specified as > > commandline > > args; as raw commandline arg strings; or via STDIN. > > Examples: > >java -Ddata=files -jar post.jar *.xml > >java -Ddata=args -jar post.jar > > > '42' > >java -Ddata=stdin -jar post.jar < hd.xml > > Other options controlled by System Properties include > the > > Solr > > URL to POST to, and whether a commit should be > executed. > > These > > are the defaults for all System Properties... > >-Ddata=files > >-Durl=http://localhost:8983/solr/update > >-Dcommit=yes > > > Bollywood, fun, friendship, sports and more. You name > it, we have it on > http://in.promos.yahoo.com/groups/bestofyahoo/ Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/
Re: changing port 8983 to 8080 for Tomcat in solr
Thanks Erik It has helped. Please bear with me as i am new to java, tomcat and solr Best Regards, Sandip Kaur --- On Thu, 10/7/08, Erik Hatcher <[EMAIL PROTECTED]> wrote: > From: Erik Hatcher <[EMAIL PROTECTED]> > Subject: Re: changing port 8983 to 8080 for Tomcat in solr > To: solr-user@lucene.apache.org > Date: Thursday, 10 July, 2008, 6:50 PM > It seems you're misunderstanding what -help is saying. > You don't > need to change any .java code to change the URL post.jar > posts to. > > Simply... > > java -Durl=http://localhost:8080/solr/update -jar > post.jar *.xml > > However, if you wish to rebuild post.jar, Solr's Ant > build.xml file > will do this by running "ant example" from a Solr > source checkout/ > distribution. > > Erik > > > On Jul 10, 2008, at 9:13 AM, sandeep kaur wrote: > > > > > Hi, > > > > I have got -Durl=" + DEFAULT_POST_URL in the > SimplePostTool.java > > > > where the value of DEFAULT_POST_URL, as i had changed > it to 8080 > > > > public static final String DEFAULT_POST_URL = > "http://localhost:8080/solr/update > > "public static final String DEFAULT_POST_URL = > "http://localhost:8080/solr/update > > " > > > > So now what should be my next steps for these changes > to become > > effective. > > > > I have compiled this java file also. But how the > changes will get > > reflected in the post.jar file? > > > > Please suggest. > > > > Thanks, > > Sandip Kaur > > > > --- On Thu, 10/7/08, Erik Hatcher > <[EMAIL PROTECTED]> wrote: > > > >> From: Erik Hatcher > <[EMAIL PROTECTED]> > >> Subject: Re: changing port 8983 to 8080 for Tomcat > in solr > >> To: solr-user@lucene.apache.org > >> Date: Thursday, 10 July, 2008, 6:18 PM > >> On Jul 10, 2008, at 8:27 AM, sandeep kaur wrote: > >> > >>> Hi, > >>> > >>> Solr is working with jetty at port 8983. > >>> I want Solr to send the requets to port 8080. > >>> > >>> I have made changes to SimplePostTool.java and > changed > >> port 8983 to > >>> 8080. > >>> > >>> Also made changes in scripts.conf file for > port. > >>> > >>> still post.jar is looking at port 8983(as i > don't > >> know the contents > >>> of jar). > >> > >> $ java -jar post.jar -help > >> SimplePostTool: version 1.2 > >> This is a simple command line tool for POSTing raw > XML to a > >> Solr > >> port. XML data can be read from files specified > as > >> commandline > >> args; as raw commandline arg strings; or via > STDIN. > >> Examples: > >> java -Ddata=files -jar post.jar *.xml > >> java -Ddata=args -jar post.jar > >> > '42' > >> java -Ddata=stdin -jar post.jar < hd.xml > >> Other options controlled by System Properties > include the > >> Solr > >> URL to POST to, and whether a commit should be > executed. > >> These > >> are the defaults for all System Properties... > >> -Ddata=files > >> -Durl=http://localhost:8983/solr/update > >> -Dcommit=yes > > > > > > Bollywood, fun, friendship, sports and more. You > name it, we > > have it on > http://in.promos.yahoo.com/groups/bestofyahoo/ From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/