@@ -172,7 +172,7 @@ def make_content_disposition_header(fn):
172172TikaServerLogFilePath = log_path
173173TikaServerJar = 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" )
176176ServerHost = "localhost"
177177Port = "9998"
178178ServerEndpoint = 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