Re: unable to run the solr in tomcat 5.0

2009-07-20 Thread aligu

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:\TestDocumetsjava -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_579814008_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.



unable to run the solr in tomcat 5.0

2009-05-06 Thread uday kumar maddigatla

Hi,

I'm new to this Solr. I got distribution of Solr. i placed the war file in
tomcat/webapps. 

After that i don't know what to do. I got confused while reading The
instalation notes which is given in wiki .

What is the next step to run the Solr.

I really got confused with the lines in wiki.

Please help me with instalation instructions.
-- 
View this message in context: 
http://www.nabble.com/unable-to-run-the-solr-in-tomcat-5.0-tp23400759p23400759.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread KK
It would be easier for anyone to give you a precise answer if you can be
more specific about the steps you followed for installing solr/tomcat and
where exactly you got stuck.

KK

On Wed, May 6, 2009 at 11:58 AM, uday kumar maddigatla u...@mach.comwrote:


 Hi,

 I'm new to this Solr. I got distribution of Solr. i placed the war file in
 tomcat/webapps.

 After that i don't know what to do. I got confused while reading The
 instalation notes which is given in wiki .

 What is the next step to run the Solr.

 I really got confused with the lines in wiki.

 Please help me with instalation instructions.
 --
 View this message in context:
 http://www.nabble.com/unable-to-run-the-solr-in-tomcat-5.0-tp23400759p23400759.html
 Sent from the Solr - User mailing list archive at Nabble.com.




Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread Michael Ludwig

uday kumar maddigatla schrieb:

Hi,

I'm new to this Solr. I got distribution of Solr. i placed the war
file in tomcat/webapps.

After that i don't know what to do. I got confused while reading The
instalation notes which is given in wiki .


It might be easier for you to follow the instructions in the tutorial
and run Solr in Jetty as per the distribution, which works out of the
box:

http://lucene.apache.org/solr/tutorial.html

Michael Ludwig


Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread uday kumar maddigatla

hi
thanks for your help. i got the solution.

we need to place the examples/solr folder in bin folder of tomcat in order
to run

Now i'm able to run this.

But how to index the files.

The link which shows the things in Jetty. But i'm using Tomcat.

If i run the command which is given in the link, it is tryinge to post the
indexes at port number 8983. But in my case my tomcat is running on 8080.

Where to change the port.

here is the error
SimplePostTool: FATAL: Connection error (is Solr running at
http://localhost:8983/solr/update ?): java.net.ConnectException: Connection
refused: connect

please help me inthis.



uday kumar maddigatla wrote:
 
 Hi,
 
 I'm new to this Solr. I got distribution of Solr. i placed the war file in
 tomcat/webapps. 
 
 After that i don't know what to do. I got confused while reading The
 instalation notes which is given in wiki .
 
 What is the next step to run the Solr.
 
 I really got confused with the lines in wiki.
 
 Please help me with instalation instructions.
 

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



Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread Michael Ludwig

uday kumar maddigatla schrieb:


The link which shows the things in Jetty. But i'm using Tomcat.

If i run the command which is given in the link, it is tryinge to post
the indexes at port number 8983. But in my case my tomcat is running
on 8080.

Where to change the port.


That's a basic Tomcat question. The answer is: In your Tomcat's
server.xml configuration file. Look here:

http://tomcat.apache.org/tomcat-6.0-doc/config/

Then, look for the port parameter here:

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

You could also change the port in the address bar of your browser.
Or even do a string replacement s/8983/8080/g on the Solr doc you're
viewing.

Michael Ludwig


Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread uday kumar maddigatla

hi

i know we can change the tomcat port number.

But i don't want that. My intention is to use 8080 as port. 

Is there any other way taht Solr will post the files in 8080 port


Michael Ludwig-4 wrote:
 
 uday kumar maddigatla schrieb:
 
 The link which shows the things in Jetty. But i'm using Tomcat.

 If i run the command which is given in the link, it is tryinge to post
 the indexes at port number 8983. But in my case my tomcat is running
 on 8080.

 Where to change the port.
 
 That's a basic Tomcat question. The answer is: In your Tomcat's
 server.xml configuration file. Look here:
 
 http://tomcat.apache.org/tomcat-6.0-doc/config/
 
 Then, look for the port parameter here:
 
 http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
 
 You could also change the port in the address bar of your browser.
 Or even do a string replacement s/8983/8080/g on the Solr doc you're
 viewing.
 
 Michael Ludwig
 
 

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



Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread Michael Ludwig

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


Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread uday kumar maddigatla

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:\TestDocumetsjava -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_579814008_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-tp23400759p23403766.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread Michael Ludwig

uday kumar maddigatla schrieb:


When i try to use the command java -post.jar *.*. It is trying to Post
files in Solr which is there in 8983 port.


The post.jar seems to be hardcoded to port 8983, that's why I pointed
you to the curl utilty, which lets you specify any port and address you
can dream up.

Seriously, read the docs, it'll help you :-)

Michael Ludwig


Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread Sami Siren

post.jar also supports specifying alternative url, see output from

java -jar post.jar -help

for more info.

--
 Sami Siren


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:\TestDocumetsjava -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_579814008_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