Hi Oliver,

Wondering if you are getting confused between the Tika Application in server 
mode (-s or -p option) which allows socket level communication and the Tika 
Server which allows REST-ful communication.

Using the Tika Application you can use the server mode to perform extraction 
via a TCP socket.  For example, the commands below will extract the contents of 
the sample file:

java -jar tika-app-1.2.jar -t -s 9998 &
nc localhost 9998 < samplefile.pdf

Using the Tika Server you can use Tika using REST-full calls.  For example, the 
commands below will extract the contents of a sample file via a HTTP PUT:

java -jar tika-server-1.2.jar &
curl -T samplefile.pdf http://localhost:9998/tika
You can find out more about the JSR-311 Tika Server here:
http://wiki.apache.org/tika/TikaJAXRS

Cheers,
Dave

On 21 Jul 2012, at 17:08, Oliver Steinau wrote:

> Hi,
> 
> I want to run tika-app-1.2.jar in server mode (using java -jar 
> tika-app-1.2.jar -t -s 9998), but it doesn't respond to any request.
> Using netstat I see that it listens on port 9998 and accepts an incoming 
> request, but other than that nothing happens.
> 
> Running it in gui or CLI mode works just fine, though.
> 
> I downloaded an old version of the tika-server 
> (tika-server-1.0-20110309.180805-5.jar), and running this works just fine. 
> However, I would of course like to use the newest version...
> 
> I'm on a 64bit Windows 7 system, and "java -version" says:
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> 
> Any help would be greatly appreciated!
> 
> Thanks,
> Oliver
> 

Reply via email to