try this:

java -Durl=http://localhost:8080/solr/update -jar post.jar filename.xml

it should work.

HH


uday kumar maddigatla wrote:
> 
> hi
> 
> you mis understood my question.
> 
> When i try to use the command java -post.jar *.*. It is trying to Post
> files in Solr which is there in 8983 port. If we use Jety then the default
> port number is 8983. But what about the thing that if we use tomcat which
> uses 8080 as port.
> 
> If we use Jetty we can access Solr with this address
> http://localhost:8983/solr.
> 
> If we use Tomcat we can access Solr with this address 
> http://localhost:8080/solr.
> 
> So if we use above command(java -post.jar....) it clearly shows this kind
> of message in command promt
> 
> C:\TestDocumets>java -jar post.jar *.*
> SimplePostTool: version 1.2
> SimplePostTool: WARNING: Make sure your XML documents are encoded in
> UTF-8, other encodings are not currently supported
> SimplePostTool: POSTing files to http://localhost:8983/solr/update..
> SimplePostTool: POSTing file OIO_INV_5798000014008_14118.xml
> SimplePostTool: FATAL: Connection error (is Solr running at
> http://localhost:8983/solr/update ?): java.net.ConnectException:
> Connection refused: connect
> 
> Means it is trying to post the files in Solr running at
> http://localhost:8983/solr/update . But in my case Solr is running in 8080
> port. Only b'use of Solr i can't change my tomcat port number.
> 
> Is there any other possibility in Solr to index the documents rather than
> command utility.
> 
> 
> Michael Ludwig-4 wrote:
>> 
>> uday kumar maddigatla schrieb:
>> 
>>> My intention is to use 8080 as port.
>>>
>>> Is there any other way taht Solr will post the files in 8080 port
>> 
>> Solr doesn't post, it listens.
>> 
>> Use the curl utility as indicated in the documentation.
>> 
>> http://wiki.apache.org/solr/UpdateXmlMessages
>> 
>> Michael Ludwig
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/unable-to-run-the-solr-in-tomcat-5.0-tp23400759p24576184.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to