Issue in Struts (login.jsp)

2022-07-26 Thread Deepak Lalchandani
Hi Struts users ,
I am facing error as below .Please help me to fix this issue


Im Getting error.as below

Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
with root cause

HTTP Status 500 – Internal Server Error
Type Exception Report

Message Unable to find taglib [bean] for URI: [/tags/struts-bean]

Description The server encountered an unexpected condition that prevented
it from fulfilling the request.

Exception

org.apache.jasper.JasperException: Unable to find taglib [bean] for URI:
[/tags/struts-bean]
 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
 
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
 org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
 org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
 org.apache.jasper.compiler.Parser.parse(Parser.java:138)
 org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
 jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.


My web.xml has been added as below

  
index.html
index.htm
login.jsp


Login.jsp has below entries

 <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>

All the tlds are under WEB-INF folder.

Further i am accessing the url as
http://127.0.0.1:8080/MyProjectTool/pages/login.jsp



On Wed, 27 Jul 2022, 12:28 am Deepak Lalchandani, 
wrote:

> Hi Struts users ,
> I am facing error as below .Please help me to fix this issue
>
>
> Im Getting error.as below
>
> Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
> threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
> with root cause
>
> HTTP Status 500 – Internal Server Error
> --
>
> *Type* Exception Report
>
> *Message* Unable to find taglib [bean] for URI: [/tags/struts-bean]
>
> *Description* The server encountered an unexpected condition that
> prevented it from fulfilling the request.
>
> *Exception*
>
> org.apache.jasper.JasperException: Unable to find taglib [bean] for URI: 
> [/tags/struts-bean]
>   
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
>   
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
>   
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
>   
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
>   org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
>   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
>   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
>   org.apache.jasper.compiler.Parser.parse(Parser.java:138)
>   
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
>   
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
>   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
>   
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
>   jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
>   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>
> *Note* The full stack trace of the root cause is available in the server
> logs.
>
> My web.xml has been added as  below

Re: Issue in Struts (login.jsp)

2022-07-26 Thread Deepak Lalchandani
Please help me with below issue ?

On Wed, 27 Jul 2022, 12:28 am Deepak Lalchandani, 
wrote:

> Hi Struts users ,
> I am facing error as below .Please help me to fix this issue
>
>
> Im Getting error.as below
>
> Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
> threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
> with root cause
>
> HTTP Status 500 – Internal Server Error
> --
>
> *Type* Exception Report
>
> *Message* Unable to find taglib [bean] for URI: [/tags/struts-bean]
>
> *Description* The server encountered an unexpected condition that
> prevented it from fulfilling the request.
>
> *Exception*
>
> org.apache.jasper.JasperException: Unable to find taglib [bean] for URI: 
> [/tags/struts-bean]
>   
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
>   
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
>   
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
>   
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
>   org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
>   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
>   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
>   org.apache.jasper.compiler.Parser.parse(Parser.java:138)
>   
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
>   
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
>   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
>   
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
>   jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
>   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>
> *Note* The full stack trace of the root cause is available in the server
> logs.
>
> My web.xml has been added as  below
>
>   
> index.html
> index.htm
> login.jsp
> 
>
> Login.jsp has below entries
>
>  <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
>
> All the tlds are under WEB-INF folder.
>
> Further i am accessing the url as
> http://127.0.0.1:8080/MyProjectTool/pages/login.jsp
>
> HTTP Status 404 – Not Found
> --
>
> *Type* Status Report
>
> *Message* JSP file [/pages/login.jsp] not found
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists
>
>
> Please help me to resolve this issue !!!
>
> Regards,
> Deepak
>
>
>
>


Re: ActionServlet for Java 11

2022-07-26 Thread Dave Newton
On Tue, Jul 26, 2022 at 15:34 Heidt, Larry 
wrote:

> #1)  At a low level, would a version of
> org.apache.struts.action.ActionServlet which imports jakarta.servlet.*
> exist somewhere else ?


Unlikely; the last S1 release was ~a decade before Java 11 was GA, and S1
was EOLed ~5 yrs before Java 11.

d.
-- 
em: davelnew...@gmail.com
mo: 908-380-8699
gh: davelnewton 
so: Dave Newton 
bl: Maker's End Blog 


ActionServlet for Java 11

2022-07-26 Thread Heidt, Larry
We have been given responsibility for several Java 6 webservices using Tomcat 
6, in production at a customer site, which the customer has contracted us to 
upgrade to Java 11

This software currently includes a custom XxWebActionServlet class, which 
extends from an old version of org.apache.struts.action.ActionServlet

This old version of struts ActionServlet currently used in production, and our 
current production XxWebActionServlet, both import javax.servlet.* classes

For Java 11, we have upgraded our XxWebActionServlet to import 
jakarta.servlet.* classes

Our upgrade results in the run-time ClassCastException shown below (from Tomcat 
10's localhost.-mm-dd.log)

Our guess is that this ClassCastException occurs because our upgraded 
XxWebActionServlet, which now imports jakarta.servlet.*, continues to 
extend from the same older version of struts ActionServlet which imports 
javax.servlet.* classes

After much web searching, we can't seem to find a version of 
org.apache.struts.action.ActionServlet which imports jakarta.servlet.*

The last version of org.apache.struts.action.ActionServlet that we can find (in 
https://archive.apache.org/dist/struts/1.3.10) imports javax.servlet.*

ActionFormValidationInterceptor.java in struts-2.3.20.1 imports (but does not 
seem to use) org.apache.struts.action.ActionServlet, but interestingly 
ActionServlet.java itself does not seem to be present within struts-2.3.20.1/src

#1)  At a low level, would a version of org.apache.struts.action.ActionServlet 
which imports jakarta.servlet.* exist somewhere else ?

#2)  At a higher level, is anyone aware of someone successfully upgrading from 
Struts 1 to Jakarta EE ?

#3)  If the answers to both #1 and #2 are "no", we'd be very appreciative of 
any suggestions for how to circumvent this ClassCastException

Thanks in advance very much for any assistance


22-Jun-2022 11:29:26.084 SEVERE [main] 
org.apache.catalina.core.StandardContext.loadOnStartup Servlet [action] in web 
application [/hkware] threw load() exception
java.lang.ClassCastException: class 
com.irista.ui.web.jspframework.IristaWebActionServlet cannot be cast to class 
jakarta.servlet.Servlet (com.irista.ui.web.jspframework.IristaWebActionServlet 
is in unnamed module of loader 
org.apache.catalina.loader.ParallelWebappClassLoader @3ce3b176; 
jakarta.servlet.Servlet is in unnamed module of loader java.net.URLClassLoader 
@6ddf90b0)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1011)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4906)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213)
at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1027)
at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2001)
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at 
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:828)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:478)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1708)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:320)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
at 
org.apache.catalina.core.Sta

Issue in Struts (login.jsp)

2022-07-26 Thread Deepak Lalchandani
Hi Struts users ,
I am facing error as below .Please help me to fix this issue


Im Getting error.as below

Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
with root cause

HTTP Status 500 – Internal Server Error
--

*Type* Exception Report

*Message* Unable to find taglib [bean] for URI: [/tags/struts-bean]

*Description* The server encountered an unexpected condition that prevented
it from fulfilling the request.

*Exception*

org.apache.jasper.JasperException: Unable to find taglib [bean] for
URI: [/tags/struts-bean]

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

*Note* The full stack trace of the root cause is available in the server
logs.

My web.xml has been added as  below

  
index.html
index.htm
login.jsp


Login.jsp has below entries

 <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>

All the tlds are under WEB-INF folder.

Further i am accessing the url as
http://127.0.0.1:8080/MyProjectTool/pages/login.jsp

HTTP Status 404 – Not Found
--

*Type* Status Report

*Message* JSP file [/pages/login.jsp] not found

*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists


Please help me to resolve this issue !!!

Regards,
Deepak


Re: Issue upgrading to Struts 6.0

2022-07-26 Thread Lukasz Lenart
Ok, so it's related to this issue
https://issues.apache.org/jira/browse/WW-5185

an easy workaround is this



org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml


more details in this thread
https://lists.apache.org/thread/v0sroj52gg5ok3rpcyxdlqrhkrz51q9d


wt., 26 lip 2022 o 20:29 A Name  napisał(a):
>
> Lukasz,
>
> We are currently using all the libraries we need from the 6.0.0 release,
> including the tiles plugin when we get the error dump I provided.  We've
> checked all the struts libraries and they are at the current versions. We
> also have read the migration guide and the internal notes and not found any
> indicator as to why we are having problems. Tomcat9 uses Servlet API 4.0
> and we are running a recent Java 8.  We looked at past Struts 2.5 release
> information to see if we had missed anything about deprecated functionality
> that was removed in 6.0.0 but didn't see anything.
>
> I only noted trying the 2.5.30 tiles plugin library to see if that
> triggered an idea. Sorry if that caused confusion.
>
> Just for reference - is there a timeline on the Struts 2.5x series - for
> obvious security reasons, we want to make sure we aren't running into EOL
> if we stay on Struts 2.5.30 for the moment while we seek an answer to what
> is blowing up Struts 6.0.0
>
> On Tue, Jul 26, 2022 at 2:11 PM Lukasz Lenart 
> wrote:
>
> > Please do not use the old plugin, it isn't compatible with Struts
> > 6.0.0. Run the application with the proper version of the plugin and
> > report any warnings. Have you read the migration guide? Also did you
> > notice internal changes
> >
> > https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.0.0#VersionNotes6.0.0-InternalChanges
> > ?
> >
> > Regards
> > Łukasz
> >
> > wt., 26 lip 2022 o 18:55 A Name  napisał(a):
> > >
> > > Hi,
> > >
> > > I have a legacy application running fine in struts 2.5.30 using Java 8
> > and
> > > Tomcat 9.  When I upgraded to Struts 6.0, it fails to run.  If I leave
> > the
> > > struts-tiles plugin at the 2.5.30 version, but upgrade the other
> > components
> > > to 6.0, it comes up but our selection lists don't work.
> > >
> > > Any suggestions - here's the core dump with everything at 6.0.
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: 13:36:50.135
> > > [ajp-nio-127.0.0.1-8009-exec-5] ERROR
> > > org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception
> > > occurred during processing request: Cannot find definition named
> > > '.security.Warning'
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9:
> > > org.apache.tiles.definition.NoSuchDefinitionException: Cannot find
> > > definition named '.security.Warning'
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:123)
> > > ~[tiles-core-3.0.8.jar:3.0.8]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
> > > ~[struts2-tiles-plugin-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)

Re: Issue upgrading to Struts 6.0

2022-07-26 Thread A Name
Lukasz,

We are currently using all the libraries we need from the 6.0.0 release,
including the tiles plugin when we get the error dump I provided.  We've
checked all the struts libraries and they are at the current versions. We
also have read the migration guide and the internal notes and not found any
indicator as to why we are having problems. Tomcat9 uses Servlet API 4.0
and we are running a recent Java 8.  We looked at past Struts 2.5 release
information to see if we had missed anything about deprecated functionality
that was removed in 6.0.0 but didn't see anything.

I only noted trying the 2.5.30 tiles plugin library to see if that
triggered an idea. Sorry if that caused confusion.

Just for reference - is there a timeline on the Struts 2.5x series - for
obvious security reasons, we want to make sure we aren't running into EOL
if we stay on Struts 2.5.30 for the moment while we seek an answer to what
is blowing up Struts 6.0.0

On Tue, Jul 26, 2022 at 2:11 PM Lukasz Lenart 
wrote:

> Please do not use the old plugin, it isn't compatible with Struts
> 6.0.0. Run the application with the proper version of the plugin and
> report any warnings. Have you read the migration guide? Also did you
> notice internal changes
>
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.0.0#VersionNotes6.0.0-InternalChanges
> ?
>
> Regards
> Łukasz
>
> wt., 26 lip 2022 o 18:55 A Name  napisał(a):
> >
> > Hi,
> >
> > I have a legacy application running fine in struts 2.5.30 using Java 8
> and
> > Tomcat 9.  When I upgraded to Struts 6.0, it fails to run.  If I leave
> the
> > struts-tiles plugin at the 2.5.30 version, but upgrade the other
> components
> > to 6.0, it comes up but our selection lists don't work.
> >
> > Any suggestions - here's the core dump with everything at 6.0.
> >
> > Jul 25 13:36:50 myserver01 tomcat9: 13:36:50.135
> > [ajp-nio-127.0.0.1-8009-exec-5] ERROR
> > org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception
> > occurred during processing request: Cannot find definition named
> > '.security.Warning'
> >
> > Jul 25 13:36:50 myserver01 tomcat9:
> > org.apache.tiles.definition.NoSuchDefinitionException: Cannot find
> > definition named '.security.Warning'
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:123)
> > ~[tiles-core-3.0.8.jar:3.0.8]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
> > ~[struts2-tiles-plugin-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > ~[struts2-core-6.0.0.jar:6.0.0]
> >
> > Jul 25 13:36:50 myserver01 tomcat9: at
> >
> org.apache.struts2.interceptor.FetchMetadataInterceptor.intercept(FetchMetadataInterceptor.java:76)
> > ~[struts2

Re: Issue upgrading to Struts 6.0

2022-07-26 Thread Lukasz Lenart
Please do not use the old plugin, it isn't compatible with Struts
6.0.0. Run the application with the proper version of the plugin and
report any warnings. Have you read the migration guide? Also did you
notice internal changes
https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.0.0#VersionNotes6.0.0-InternalChanges
?

Regards
Łukasz

wt., 26 lip 2022 o 18:55 A Name  napisał(a):
>
> Hi,
>
> I have a legacy application running fine in struts 2.5.30 using Java 8 and
> Tomcat 9.  When I upgraded to Struts 6.0, it fails to run.  If I leave the
> struts-tiles plugin at the 2.5.30 version, but upgrade the other components
> to 6.0, it comes up but our selection lists don't work.
>
> Any suggestions - here's the core dump with everything at 6.0.
>
> Jul 25 13:36:50 myserver01 tomcat9: 13:36:50.135
> [ajp-nio-127.0.0.1-8009-exec-5] ERROR
> org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception
> occurred during processing request: Cannot find definition named
> '.security.Warning'
>
> Jul 25 13:36:50 myserver01 tomcat9:
> org.apache.tiles.definition.NoSuchDefinitionException: Cannot find
> definition named '.security.Warning'
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:123)
> ~[tiles-core-3.0.8.jar:3.0.8]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
> ~[struts2-tiles-plugin-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.interceptor.FetchMetadataInterceptor.intercept(FetchMetadataInterceptor.java:76)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.interceptor.CoopInterceptor.intercept(CoopInterceptor.java:57)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> org.apache.struts2.interceptor.CoepInterceptor.intercept(CoepInterceptor.java:56)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:143)
> ~[struts2-core-6.0.0.jar:6.0.0]
>
> Jul 25 13:36:50 myserver01 tomcat9: at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> ~[struts2-core-6.0.0.jar:6.0.0

Issue upgrading to Struts 6.0

2022-07-26 Thread A Name
Hi,

I have a legacy application running fine in struts 2.5.30 using Java 8 and
Tomcat 9.  When I upgraded to Struts 6.0, it fails to run.  If I leave the
struts-tiles plugin at the 2.5.30 version, but upgrade the other components
to 6.0, it comes up but our selection lists don't work.

Any suggestions - here's the core dump with everything at 6.0.

Jul 25 13:36:50 myserver01 tomcat9: 13:36:50.135
[ajp-nio-127.0.0.1-8009-exec-5] ERROR
org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception
occurred during processing request: Cannot find definition named
'.security.Warning'

Jul 25 13:36:50 myserver01 tomcat9:
org.apache.tiles.definition.NoSuchDefinitionException: Cannot find
definition named '.security.Warning'

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:123)
~[tiles-core-3.0.8.jar:3.0.8]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
~[struts2-tiles-plugin-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.interceptor.FetchMetadataInterceptor.intercept(FetchMetadataInterceptor.java:76)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.interceptor.CoopInterceptor.intercept(CoopInterceptor.java:57)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
org.apache.struts2.interceptor.CoepInterceptor.intercept(CoepInterceptor.java:56)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:143)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:146)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-6.0.0.jar:6.0.0]

Jul 25 13:36:50 myserver01 tomcat9: at
com.opensymphony.xwork2.Defau