You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Alexander Skwar via user <us...@tika.apache.org> on 2025/04/11 05:38:40 UTC

docker-compose-tika-customocr.yml - Could not find or load main class org.apache.tika.server.core.TikaServerCli

Hello again…

After having fixed the issue I just posted in
"docker-compose-tika-customocr.yml - yaml: line 22: did not find
expected ',' or ']'", I'm still unable to start a container.

Trying to start it:

askwar@mail /o/t/tika-docker> sudo -u container docker compose -f docker-compose-tika-customocr.fixed.yml up
WARN[0000] /opt/tika/tika-docker/docker-compose-tika-customocr.fixed.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 1/0
 ✔ Container tika-docker-tika-1  Created                                                                                                                                                                0.0s
Attaching to tika-1
tika-1  | Error: Could not find or load main class org.apache.tika.server.core.TikaServerCli
tika-1  | Caused by: java.lang.ClassNotFoundException: org.apache.tika.server.core.TikaServerCli
…

That also happens with TAG=3.0.0.0.

Searching the net for that error message, it seems that this is a
reoccuring issue?

How to fix, please?

Best regards,
Alexander


Re: docker-compose-tika-customocr.yml - Could not find or load main class org.apache.tika.server.core.TikaServerCli

Posted by Alexander Skwar via user <us...@tika.apache.org>.
Hello Tilman

Thanks for filing and fixing that bug. Yes, I'd say that this is
what should be done. Not so hard to add a missing \ :-)

I've now also submitted another account request for Jira. As soon as
I've got the account, I'll be happy to file a bug.

Cheers, 
Alexander

On Saturday, 12. April 2025 10:37 CEST, Tilman Hausherr <TH...@t-online.de> wrote:

> Hi,
> 
> I fixed the other issue (including another file with the same problem):
> https://issues.apache.org/jira/browse/TIKA-4406
> please verify that it is what you had in mind.
> 
> I didn't realize that you're the same person whose account creation I 
> refused, sadly it's more than 24 hours so please submit it again using 
> the same name. I'm not a docker expert so I can't fix that one so it's 
> better you create a ticket and can answer and questions. If you don't 
> want to open a ticket then I can also create it myself.
> 
> Tilman
> 
> On 11.04.2025 07:38, Alexander Skwar via user wrote:
> > Hello again…
> >
> > After having fixed the issue I just posted in
> > "docker-compose-tika-customocr.yml - yaml: line 22: did not find
> > expected ',' or ']'", I'm still unable to start a container.
> >
> > Trying to start it:
> >
> > askwar@mail /o/t/tika-docker> sudo -u container docker compose -f docker-compose-tika-customocr.fixed.yml up
> > WARN[0000] /opt/tika/tika-docker/docker-compose-tika-customocr.fixed.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
> > [+] Running 1/0
> >   ✔ Container tika-docker-tika-1  Created                                                                                                                                                                0.0s
> > Attaching to tika-1
> > tika-1  | Error: Could not find or load main class org.apache.tika.server.core.TikaServerCli
> > tika-1  | Caused by: java.lang.ClassNotFoundException: org.apache.tika.server.core.TikaServerCli
> > …
> >
> > That also happens with TAG=3.0.0.0.
> >
> > Searching the net for that error message, it seems that this is a
> > reoccuring issue?
> >
> > How to fix, please?
> >
> > Best regards,
> > Alexander
> >
>


Re: docker-compose-tika-customocr.yml - Could not find or load main class org.apache.tika.server.core.TikaServerCli

Posted by Alexander Skwar via user <us...@tika.apache.org>.
Hello

I've now been able to create a ticket; please see https://issues.apache.org/jira/browse/TIKA-4407



-- 
<p>&nbsp;</p><p>Alexander</p><p>--&nbsp;<br>Complete contact details at https://a.skwar.xyz/<br>&nbsp;</p>

On Saturday, 12. April 2025 10:37 CEST, Tilman Hausherr <TH...@t-online.de> wrote:

> Hi,
> 
> I fixed the other issue (including another file with the same problem):
> https://issues.apache.org/jira/browse/TIKA-4406
> please verify that it is what you had in mind.
> 
> I didn't realize that you're the same person whose account creation I 
> refused, sadly it's more than 24 hours so please submit it again using 
> the same name. I'm not a docker expert so I can't fix that one so it's 
> better you create a ticket and can answer and questions. If you don't 
> want to open a ticket then I can also create it myself.
> 
> Tilman
> 
> On 11.04.2025 07:38, Alexander Skwar via user wrote:
> > Hello again…
> >
> > After having fixed the issue I just posted in
> > "docker-compose-tika-customocr.yml - yaml: line 22: did not find
> > expected ',' or ']'", I'm still unable to start a container.
> >
> > Trying to start it:
> >
> > askwar@mail /o/t/tika-docker> sudo -u container docker compose -f docker-compose-tika-customocr.fixed.yml up
> > WARN[0000] /opt/tika/tika-docker/docker-compose-tika-customocr.fixed.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
> > [+] Running 1/0
> >   ✔ Container tika-docker-tika-1  Created                                                                                                                                                                0.0s
> > Attaching to tika-1
> > tika-1  | Error: Could not find or load main class org.apache.tika.server.core.TikaServerCli
> > tika-1  | Caused by: java.lang.ClassNotFoundException: org.apache.tika.server.core.TikaServerCli
> > …
> >
> > That also happens with TAG=3.0.0.0.
> >
> > Searching the net for that error message, it seems that this is a
> > reoccuring issue?
> >
> > How to fix, please?
> >
> > Best regards,
> > Alexander
> >
>


Re: docker-compose-tika-customocr.yml - Could not find or load main class org.apache.tika.server.core.TikaServerCli

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,

I fixed the other issue (including another file with the same problem):
https://issues.apache.org/jira/browse/TIKA-4406
please verify that it is what you had in mind.

I didn't realize that you're the same person whose account creation I 
refused, sadly it's more than 24 hours so please submit it again using 
the same name. I'm not a docker expert so I can't fix that one so it's 
better you create a ticket and can answer and questions. If you don't 
want to open a ticket then I can also create it myself.

Tilman

On 11.04.2025 07:38, Alexander Skwar via user wrote:
> Hello again…
>
> After having fixed the issue I just posted in
> "docker-compose-tika-customocr.yml - yaml: line 22: did not find
> expected ',' or ']'", I'm still unable to start a container.
>
> Trying to start it:
>
> askwar@mail /o/t/tika-docker> sudo -u container docker compose -f docker-compose-tika-customocr.fixed.yml up
> WARN[0000] /opt/tika/tika-docker/docker-compose-tika-customocr.fixed.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
> [+] Running 1/0
>   ✔ Container tika-docker-tika-1  Created                                                                                                                                                                0.0s
> Attaching to tika-1
> tika-1  | Error: Could not find or load main class org.apache.tika.server.core.TikaServerCli
> tika-1  | Caused by: java.lang.ClassNotFoundException: org.apache.tika.server.core.TikaServerCli
> …
>
> That also happens with TAG=3.0.0.0.
>
> Searching the net for that error message, it seems that this is a
> reoccuring issue?
>
> How to fix, please?
>
> Best regards,
> Alexander
>