Skip to content

Commit 1d61e09

Browse files
committed
Fix for 381 and closes #381 #377
1 parent 7f342fc commit 1d61e09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tika/tika.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def make_content_disposition_header(fn):
172172
TikaServerLogFilePath = log_path
173173
TikaServerJar = os.getenv(
174174
'TIKA_SERVER_JAR',
175-
"http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/"+TikaVersion+"/tika-server-"+TikaVersion+".jar")
175+
"http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server-standard/"+TikaVersion+"/tika-server-standard-"+TikaVersion+".jar")
176176
ServerHost = "localhost"
177177
Port = "9998"
178178
ServerEndpoint = os.getenv(
@@ -648,10 +648,10 @@ def startServer(tikaServerJar, java_path = TikaJava, java_args = TikaJavaArgs, s
648648
# setup command string
649649
cmd_string = ""
650650
if not config_path:
651-
cmd_string = '%s %s -cp "%s" org.apache.tika.server.TikaServerCli --port %s --host %s &' \
651+
cmd_string = '%s %s -cp "%s" org.apache.tika.server.core.TikaServerCli --port %s --host %s &' \
652652
% (java_path, java_args, classpath, port, host)
653653
else:
654-
cmd_string = '%s %s -cp "%s" org.apache.tika.server.TikaServerCli --port %s --host %s --config %s &' \
654+
cmd_string = '%s %s -cp "%s" org.apache.tika.server.core.TikaServerCli --port %s --host %s --config %s &' \
655655
% (java_path, java_args, classpath, port, host, config_path)
656656

657657
# Check that we can write to log path
@@ -688,7 +688,7 @@ def startServer(tikaServerJar, java_path = TikaJava, java_args = TikaJavaArgs, s
688688
while try_count < TikaStartupMaxRetry:
689689
with open(tika_log_file_path, "r") as tika_log_file_tmp:
690690
# check for INFO string to confirm listening endpoint
691-
if "Started Apache Tika server at" in tika_log_file_tmp.read():
691+
if "Started Apache Tika server" in tika_log_file_tmp.read():
692692
is_started = True
693693
break
694694
else:

0 commit comments

Comments
 (0)