Hi,

Please forget the previous message. As I bet it should be Tomcat 10, I had 
another look:

While bisecting there is one issue that can only be  fixed manually: freemarker:2.3.34-SNAPSHOT is no longer available. Not a big deal, just remove -SNAPSHOT.

Then we need to bisect plugins, but we can't because it would not be in sync 
with framework bisect.
So we need to manually find the commit must approaching the one picked by 
bisect in framework.
It must be last one before the framework commit by date. Be careful to not 
confuse the authored with the committed date.

I initially picked

framework: 73785d3ba141485106aec30719f45ab35ddae0e0
plugins:        c4f9563644a243c8d5bbaca0f600561331593324

Because of compilation issues, I later had to manually pick other ones for the 
plugins. Still the same scenario than above.

Finally, after 7 steps, I got:
C:\projectsASF\Git\ofbiz-framework>git bisect bad
64e5e6db5500ac87637ddf0bc43371eef561bca3 is the first bad commit
commit 64e5e6db5500ac87637ddf0bc43371eef561bca3 (HEAD)+-

ie:
C:\projectsASF\Git\ofbiz-framework>git show
commit 64e5e6db5500ac87637ddf0bc43371eef561bca3 (HEAD)
Author: cgaetan <gaetan.chabous...@nereide.fr>
Date:   Mon Jan 27 14:34:43 2025 +0100
    Upgrade Tomcat Version to 10.1.34 (OFBIZ-12989)

On the plugins side it's the only case where the sync was possible:
git reset --hard --end-of-options 5590a52e0bf8ce591c9c32bc865525dd622312f3 --
HEAD is now at 5590a52e Improved: Upgrade Tomcat Version to 10.1.34 
(OFBIZ-12989)

Long story short this was really not simple. Moreover on Win7, but that's my 
problem ;)
Please check on your side!

BTW, to be sure I also checked on embedded (VirtualBox) Ubuntu 20.04:
Jacques@jacques-VirtualBox:~/ofbiz-framework$ git bisect bad
64e5e6db5500ac87637ddf0bc43371eef561bca3 is the first bad commit
commit 64e5e6db5500ac87637ddf0bc43371eef561bca3 (HEAD)
Author: cgaetan <gaetan.chabous...@nereide.fr>
Date:   Mon Jan 27 14:34:43 2025 +0100s
    Upgrade Tomcat Version to 10.1.34 (OFBIZ-12989)


Gaetan's, and I guess Nicolas's, work was certainly extensive.
Obviously, if possible, it should be easier to fix the issue in the rest-api 
plugin.
Fortunately it works on stable ;)

HTH

Jacques


Le 16/08/2025 à 17:46, Jacques Le Roux a écrit :
Hi Jacopo, All,

It's not related with the last Tomcat upgrade that was done the 13/08 when 
Carlos's 1st message was the 9.

I also reverted all the Tomcat upgrades in trunk where we use version 10 but the change to version 10 (ie only back to 10.1.34 instead of currently 10.1.44) to no avail.

Then I reverted just before the change to Tomcat 10 including plugins. To no 
avail too, still a 404.

Then I reverted just at the start of 2025 including plugins. To no avail too, 
still a 404.

Finally I reverted to just before 24.09 creation (29/07/24 for framework) 
(11/07/24 for plugins. Logically it worked.

Note: I was unable to do a bisect with the plugins. With framework onlyI 
crossed issues so was able to do only 1 step among 6 before giving up.

Framework: git bisect bad 3a0fa41077ed101ecdb685df4937e28dff643244 git bisect 
good 1426f2c4236e8ebdece8efaa8be6e4b7c648b056

Plugins: git bisect bad 935fd44b77290eb7a0465ba2ed3c63455e92ead6 git bisect 
good 98eb1442f65899a53ae7dd227ed87700c5d1cfcb

HTH

Jacques

Le 15/08/2025 à 08:39, Jacopo Cappellato a écrit :
A small update.
It also works with the latest release, 24.09.02 that you can download from:

https://ofbiz.apache.org/download.html

This means that the offending commit was done during the last week (just a
guess but it may be related to the Tomcat upgrade).

Jacopo


On Fri, Aug 15, 2025 at 8:31 AM Jacopo Cappellato <
jacopo.cappell...@gmail.com> wrote:

Hi Carlos,

You are right, I can reproduce the same issue.
We are still investigating the root cause of the issue (it is probably a
regression caused by a commit not related to the rest-api plugin).
In the meantime, for your tests, you could download an older release from
the 24.09 series. For example, in 24.09.01 the rest-api plugin still works.
You can download 24.09.01 from here:
https://archive.apache.org/dist/ofbiz/apache-ofbiz-24.09.01.zip

(the download files already contain the rest-api plugin, so you don't have
to get it from GitHub).

Thanks,
Jacopo


On Sat, Aug 9, 2025 at 4:26 PM Carlos Navarro<carlosnavarro...@gmail.com>
wrote:

Hello community!

Apache OFBiz: 24
OS: Windows 10
Java: 17


For an Apache OFBiz 24 instance, running java 17, I'm trying to get the
rest-api plugin I got fromhttps://github.com/apache/ofbiz-plugins  to
work
correctly.

Once the plugin was downloaded and located in the Plugins folder, I ran
the
gradlew "install" -PcomponentName=rest-api command to install it (the
installation went smoothly). I started OFBiz with gradlew "ofbiz --start"
but when I try to accesshttps://localhost:8443/rest  from a browser, a
404
error occurs (HTTP Status 404 – Not Found Type Status Report Description
The origin server did not find a current representation for the target
resource or is not willing to disclose that one exists. Apache
Tomcat/10.1.43) and when I try to access the url
https://localhost:8443/docs/swagger-ui.html, the browser displays the
document correctly but the following error also appears "Failed to load
API
definition. Fetch error response status is 404
https://localhost:8443/rest/openapi.json";. The rest of the OFBiz modules
run correctly as far as I can tell and when I access the url of the
rest-api plugin, I don't see any errors in the console or in the logs. Am
I
skipping any steps or making a mistake?

Thanks in advance.
Carlos Navarro

Reply via email to