Problem using struts 1.5 RC version with moduler struts configuration files #27
-
|
Hi Team, I am testing struts [1.5.0-RC1] with my enterprise application, bumping from struts 1.1 to struts [1.5.0-RC1] due to jakarta change with tomcat 10.1.x but facing issue using multi module configuration for struts in action servlet init parameters. Below is my configuration snippet from web.xml action servlet init params Problem that i am facing is form-beans, actions, forwards definitions etc mentioned in other files except first config file are NOT available when executing struts action. Debugging results shows that struts init phase is successful in reading the modular configuration but component definitions are not available while execution. We were using older way of deceleration before with struts1.1 by separating file names with comma under single config param but it throws error using struts [1.5.0-RC1]. I am not sure if it is a bug or configuration issue. Please suggest correct way to pass multiple struts files with struts [1.5.0-RC1]. Please let me know in case any further details are required to understand it better. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @psinghwatermark, at first glance, your configuration in the May this Example-App can give you some hints. Upgrading from 1.1 directly to 1.5 is a big step. I would try to make small steps and upgrade your application from 1.1 to 1.2 to 1.3 to 1.4 to 1.5. I think, all Struts versions up to 1.4 should run with Tomcat 9. The step from Struts 1.4 to 1.5 and Tomcat 9 to 10.1 is then only very small. The Apache Struts team also provides upgrade notes: Maybe there are some notes there that will helps you with the first steps. From 1.3.11 onwards, I have tried to document the breaking-changes in the release documentation: Releases I hope I have been able to help you a little |
Beta Was this translation helpful? Give feedback.
Hi @psinghwatermark,
at first glance, your configuration in the
web.xmllooks fine. Have you also updated the DTDs in your configuration files?May this Example-App can give you some hints.
Upgrading from 1.1 directly to 1.5 is a big step. I would try to make small steps and upgrade your application from 1.1 to 1.2 to 1.3 to 1.4 to 1.5. I think, all Struts versions up to 1.4 should run with Tomcat 9. The step from Struts 1.4 to 1.5 and Tomcat 9 to 10.1 is then only very small.
The Apache Struts team also provides upgrade notes:
Old Struts-Wiki - Struts Upgrade
Maybe there are some notes there that will helps you with the first steps.
From 1.3.11 onwards, I have tried to document the break…