1.6.0-Jakarta #107
Replies: 7 comments 5 replies
-
Hey, this is fantastic news and very convenient timing for me as I’m having to upgrade a project that uses stripes for tomcat10 that requires Jakarta. Much appreciated, and know that your efforts will be used. |
Beta Was this translation helpful? Give feedback.
-
I second what the commenter above said. We're currently migrating away from Stripes but still have some legacy stuff depending on it. As we need to update to Tomcat 10 soon, we were planning to create a custom fork but now that seems unnecessary. Very much appreciated We'll begin testing and will report back if we encounter any notable issues. Do you think you will be able to make this release available on Maven soon? |
Beta Was this translation helpful? Give feedback.
-
I've been using the Stripes Framework for a long time, ever since Tim Fennell's initial release. I appreciate Rick Grashel's efforts to revive this project. I only found out about the new version when I stumbled upon the project on GitHub while searching for something else. I'm part of the old user group ([email protected]) and haven't received any notification about this update. We should update the website and notify the community about this new release. I'm willing to donate to support hosting the website for the community. |
Beta Was this translation helpful? Give feedback.
-
We are in the same situation, where we need to update an application to the jakarta package namespace in order to patch some security holes with some other frameworks, but we have a fair amount of legacy code that is still using Stripes. We are having a bit of difficulty with the migration. When we have a page-hierarchy (using <s:layout-render />) the <s:layout-component /> elements in the middle page are never evaluated. In the debugger, we can see that the tags are called with "context.isComponentRenderPhase() => false" but never with "context.isComponentRenderPhase() => true" Everything worked correctly using stripes 1.5.7, but I am experiencing this identical behavior in the 1.6.0-Jakarta version here as well in a 1.5.7 version which I have ported myself (bare-bones, ignore all tests, etc...) Has anyone else seen this behavior? Here is a sample: <%@ include file="/WEB-INF/jsp-commons/taglibs-and-encoding/Taglib.jsp" %>
<s:layout-render name="/WEB-INF/jsp-layouts/page-with-base-layout.jsp">
<s:layout-component name="content">
This is my content
</s:layout-component>
</s:layout-render> page-with-base-layout.jsp <%@ include file="/WEB-INF/jsp-commons/taglibs-and-encoding/Taglib.jsp" %>
<s:layout-definition>
<s:layout-render name="/WEB-INF/jsp-layouts/page-with-empty-body.jsp" disablePageWrapper="${disablePageWrapper}">
<s:layout-component name="body">
${content}
</s:layout-component>
</s:layout-render>
</s:layout-definition> page-with-empty-body.jsp <%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<s:layout-definition>
<html lang="en">
<body>
Content: ${content}
<br />
Body: ${body}
</body>
</html>
</s:layout-definition> This renders the following HTML <html lang="en">
<body>
Content:
This is my content
<br />
Body:
</body>
</html> I've also attached a minimal maven project with 3 WAR modules, http://localhost:8080/tomcat9-stripes-1.5.7/stripes/Broken.action (Actually, this works OK) http://localhost:8080/tomcat11-stripes-1.5.7/stripes/Broken.action http://localhost:8080/tomcat11-stripes-1.6.0/stripes/Broken.action |
Beta Was this translation helpful? Give feedback.
-
Hi all! Good news! I have been able to work with Sonatype to get identity validation completed in order to publish to Maven Central. I did need to register a new namespace (it will be io.github.stripesframework). However, I now have the ability to publish. I will take a few days to modify the assemblies to publish using the updated namespace and then give it a try. I'll let you guys know the moment things look like they are working. Thanks! -- Rick |
Beta Was this translation helpful? Give feedback.
-
I'm a bit stuck. When I use this new library with my code I get
Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I don't think you should have to do this. You should be able to add this
to your web.xml:
<init-param>
<param-name>Extension.Packages</param-name>
<param-value>net.sourceforge.stripes.integration.spring</param-value>
</init-param>
This comes from this:
https://stackoverflow.com/questions/32223323/stripes-1-6-missing-springinterceptor
The interceptor approach for Spring injection was abandoned in favor of a
post processor in Stripes 1.6. So I think this should "just work" if you
use the above integration and then use @SpringBean.
Thanks.
…On Tue, Aug 19, 2025 at 3:05 PM jringbox ***@***.***> wrote:
I just took the original SpringInterceptor and made my own implementation
of it. I suppose that's the "go forward"?
—
Reply to this email directly, view it on GitHub
<#107 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF7QH3MQD4GACCT6IGXBAL3ON7QDAVCNFSM6AAAAAB37RHM2WVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJVGY2DSMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
It's been many years, since I've been able to contribute to Stripes, but after looking at some recent PRs by community members and seeing several asks (including my own asks), I have taken on the upgrade of the Stripes stable 1.6.0 branch to Jakarta. I'm not 100% complete, because I need to figure out how to get this pushed out to the Maven repositories, but after that, I think this is ready (as-is) for people to try out in their own test environments.
Just a few highlights of goodness in this branch:
Now, for some potentially breaking changes things that I took the liberty to do for security considerations:
Why The 1.6.0 Branch And Not Master?
I know this question will be in people's minds. And the answer is because, right now, I do not have a good level of comfort for what is in the master branch. I am not saying that what is there is not good, but I need to take a complete inventory of all of those commits. While there are some good things/fixes in master, I also know that there are things in there which don't make sense (some that I even wrote/contributed) which people have commented on, some poorly chosen dependencies, among other things. I will probably go commit-by-commit in a new branch, pulling in fixes, and potentially some enhancements. But I'll probably have to do that in a new branch. The new 1.7.0 (or maybe even 2.0) branch.
How Can You Help?
Please feel free to pull/build the 1.6.0-Jakarta branch. Build and test it in your own environments. I have personally tested it on Payara 6 and Tomcat 10 (not to mention that the Canoo webtests also pass on Tomcat 10.x). If you see any issues, please report them and I will try to get them fixed. One area that I would like people to try out is the SpringHelper/Injection. The tests pass for it, but I personally did not test this on a running/working application.
Where Will It Go From Here?
Next on my list will be to probably create a new Stripes 2.0 branch which will feature a build on Java17 (GraalVM). Along with that will be an upgrade to Spring 6.x and webtests targeting Tomcat 11.x. After that, I will look at pulling stable well-tested/sensible fixes/enhancements from master into the Stripes 2.0 branch. But I am 100% sure that some of what is in the master branch will be removed because it is too old, irrelevant, or unstable.
Please Comment!
If you read this and are still around, please make yourself known. If you are doing testing and have some success, please put some feedback here. I'm not expecting Stripes to replace Jakarta MVC in JEE10. I certainly don't expect it to replace Spring Boot. But I know it is used in many legacy applications that are still running around the world. At the very least, I hope this Jakarta release of Stripes 1.6.0 can serve you well and will give your projects/software some peace of mind and allow you to migrate onto the latest JakartaEE stack.
Best Regards,
Rick
What's Changed
Full Changelog: 1.6.0...1.6.0-Jakarta-beta
This discussion was created from the release 1.6.0-Jakarta.
Beta Was this translation helpful? Give feedback.
All reactions