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: [email protected] > 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: [email protected] > >> 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 > >> > '<delete><id>42</id></delete>' > >> 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/
