Issues while migrating form Struts2.3.16 to 2.5.14.1

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues while migrating form Struts2.3.16 to 2.5.14.1

Rajvinder Pal
Hi ,

I have upgraded the mandatory jars. But during websphere startup, i am
getting the below exception:-

[3/14/18 17:44:27:005 IST] 00000056 ecs           W
com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable
to open input stream for resource freemarker/core/_Java8Impl.class in
archive WEB-INF/lib/freemarker-2.3.26-incubating.jar
                                 java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at
com.ibm.ws.ecs.internal.scan.impl.ClassScanner.scanInputStream(ClassScanner.java:147)
at
com.ibm.ws.ecs.internal.scan.impl.ClassScanner.scanInputStream(ClassScanner.java:124)
at
com.ibm.ws.ecs.internal.scan.impl.ClassScanner.scanInputStream(ClassScanner.java:120)
at
com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJAR(ScannerContextImpl.java:275)
at
com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJARs(ScannerContextImpl.java:315)
at
com.ibm.ws.ecs.internal.scan.context.impl.WARScannerContext.scanInternal(WARScannerContext.java:76)
at
com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scan(ScannerContextImpl.java:87)
at
com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.getScannedClasses(ScannerContextImpl.java:70)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.scanForHandlesTypesClasses(WebAppImpl.java:752)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1175)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:774)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2182)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862

What should i check for the above error?
Reply | Threaded
Open this post in threaded view
|

Re: Issues while migrating form Struts2.3.16 to 2.5.14.1

adam brin
I'd look at the different versions of ASM you have installed both directly
and indirectly in our pom as a first guess.

On Wed, Mar 14, 2018 at 5:30 AM, Rajvinder Pal <[hidden email]>
wrote:

> Hi ,
>
> I have upgraded the mandatory jars. But during websphere startup, i am
> getting the below exception:-
>
> [3/14/18 17:44:27:005 IST] 00000056 ecs           W
> com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR
> unable
> to open input stream for resource freemarker/core/_Java8Impl.class in
> archive WEB-INF/lib/freemarker-2.3.26-incubating.jar
>                                  java.lang.IllegalArgumentException
> at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> at
> com.ibm.ws.ecs.internal.scan.impl.ClassScanner.
> scanInputStream(ClassScanner.java:147)
> at
> com.ibm.ws.ecs.internal.scan.impl.ClassScanner.
> scanInputStream(ClassScanner.java:124)
> at
> com.ibm.ws.ecs.internal.scan.impl.ClassScanner.
> scanInputStream(ClassScanner.java:120)
> at
> com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJAR(
> ScannerContextImpl.java:275)
> at
> com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJARs(
> ScannerContextImpl.java:315)
> at
> com.ibm.ws.ecs.internal.scan.context.impl.WARScannerContext.scanInternal(
> WARScannerContext.java:76)
> at
> com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scan(
> ScannerContextImpl.java:87)
> at
> com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.
> getScannedClasses(ScannerContextImpl.java:70)
> at
> com.ibm.ws.webcontainer.webapp.WebAppImpl.scanForHandlesTypesClasses(
> WebAppImpl.java:752)
> at
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInit
> ializers(WebAppImpl.java:600)
> at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(
> WebAppImpl.java:409)
> at
> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(
> WebGroupImpl.java:88)
> at
> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(
> VirtualHostImpl.java:169)
> at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(
> WSWebContainer.java:749)
> at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(
> WSWebContainer.java:634)
> at
> com.ibm.ws.webcontainer.component.WebContainerImpl.
> install(WebContainerImpl.java:426)
> at
> com.ibm.ws.webcontainer.component.WebContainerImpl.
> start(WebContainerImpl.java:718)
> at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(
> ApplicationMgrImpl.java:1175)
> at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.
> fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
> at
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(
> DeployedModuleImpl.java:639)
> at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(
> DeployedApplicationImpl.java:968)
> at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(
> ApplicationMgrImpl.java:774)
> at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(
> ApplicationMgrImpl.java:2182)
> at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(
> CompositionUnitMgrImpl.java:445)
> at
> com.ibm.ws.runtime.component.CompositionUnitImpl.start(
> CompositionUnitImpl.java:123)
> at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(
> CompositionUnitMgrImpl.java:388)
> at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$
> 500(CompositionUnitMgrImpl.java:116)
> at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(
> CompositionUnitMgrImpl.java:994)
> at
> com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(
> WsComponentImpl.java:502)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862
>
> What should i check for the above error?
>



--
_________________________________________________________
Adam Brin
Director of Technology, Digital Antiquity
480.965.1278
Reply | Threaded
Open this post in threaded view
|

Re: Issues while migrating form Struts2.3.16 to 2.5.14.1

Rajvinder Pal
This is issue with java version. I am using java 7 which i cannot change
now. but looks like Freemarker jar is compiled using java8. Any Suggestion?

Thanks,
Raj

On Wed, Mar 14, 2018 at 6:03 PM, Adam Brin <[hidden email]>
wrote:

> I'd look at the different versions of ASM you have installed both directly
> and indirectly in our pom as a first guess.
>
> On Wed, Mar 14, 2018 at 5:30 AM, Rajvinder Pal <[hidden email]>
> wrote:
>
> > Hi ,
> >
> > I have upgraded the mandatory jars. But during websphere startup, i am
> > getting the below exception:-
> >
> > [3/14/18 17:44:27:005 IST] 00000056 ecs           W
> > com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR
> > unable
> > to open input stream for resource freemarker/core/_Java8Impl.class in
> > archive WEB-INF/lib/freemarker-2.3.26-incubating.jar
> >                                  java.lang.IllegalArgumentException
> > at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> > at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> > at org.objectweb.asm.ClassReader.<init>(Unknown Source)
> > at
> > com.ibm.ws.ecs.internal.scan.impl.ClassScanner.
> > scanInputStream(ClassScanner.java:147)
> > at
> > com.ibm.ws.ecs.internal.scan.impl.ClassScanner.
> > scanInputStream(ClassScanner.java:124)
> > at
> > com.ibm.ws.ecs.internal.scan.impl.ClassScanner.
> > scanInputStream(ClassScanner.java:120)
> > at
> > com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJAR(
> > ScannerContextImpl.java:275)
> > at
> > com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJARs(
> > ScannerContextImpl.java:315)
> > at
> > com.ibm.ws.ecs.internal.scan.context.impl.WARScannerContext.
> scanInternal(
> > WARScannerContext.java:76)
> > at
> > com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scan(
> > ScannerContextImpl.java:87)
> > at
> > com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.
> > getScannedClasses(ScannerContextImpl.java:70)
> > at
> > com.ibm.ws.webcontainer.webapp.WebAppImpl.scanForHandlesTypesClasses(
> > WebAppImpl.java:752)
> > at
> > com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInit
> > ializers(WebAppImpl.java:600)
> > at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(
> > WebAppImpl.java:409)
> > at
> > com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(
> > WebGroupImpl.java:88)
> > at
> > com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(
> > VirtualHostImpl.java:169)
> > at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(
> > WSWebContainer.java:749)
> > at
> > com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(
> > WSWebContainer.java:634)
> > at
> > com.ibm.ws.webcontainer.component.WebContainerImpl.
> > install(WebContainerImpl.java:426)
> > at
> > com.ibm.ws.webcontainer.component.WebContainerImpl.
> > start(WebContainerImpl.java:718)
> > at
> > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(
> > ApplicationMgrImpl.java:1175)
> > at
> > com.ibm.ws.runtime.component.DeployedApplicationImpl.
> > fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
> > at
> > com.ibm.ws.runtime.component.DeployedModuleImpl.start(
> > DeployedModuleImpl.java:639)
> > at
> > com.ibm.ws.runtime.component.DeployedApplicationImpl.start(
> > DeployedApplicationImpl.java:968)
> > at
> > com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(
> > ApplicationMgrImpl.java:774)
> > at
> > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(
> > ApplicationMgrImpl.java:2182)
> > at
> > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(
> > CompositionUnitMgrImpl.java:445)
> > at
> > com.ibm.ws.runtime.component.CompositionUnitImpl.start(
> > CompositionUnitImpl.java:123)
> > at
> > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(
> > CompositionUnitMgrImpl.java:388)
> > at
> > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$
> > 500(CompositionUnitMgrImpl.java:116)
> > at
> > com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(
> > CompositionUnitMgrImpl.java:994)
> > at
> > com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(
> > WsComponentImpl.java:502)
> > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862
> >
> > What should i check for the above error?
> >
>
>
>
> --
> _________________________________________________________
> Adam Brin
> Director of Technology, Digital Antiquity
> 480.965.1278
>
Reply | Threaded
Open this post in threaded view
|

Re: Issues while migrating form Struts2.3.16 to 2.5.14.1

Lukasz Lenart
2018-03-15 7:15 GMT+01:00 Rajvinder Pal <[hidden email]>:
> This is issue with java version. I am using java 7 which i cannot change
> now. but looks like Freemarker jar is compiled using java8. Any Suggestion?

It isn't, it just supports Java 8 but your version of ASM doesn't. You
can ask Oracle Support how to switch class loading order to load
classes/jars from you webapp first.


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Issues while migrating form Struts2.3.16 to 2.5.14.1

Rajvinder Pal
ok got it, working on it. Meanwhile there is one more  exception when
accessing index.jsp.


[3/15/18 13:32:12:669 IST] 00000094 SystemOut     O 15 Mar 2018
13:32:12,668 DEBUG cache:44 - Couldn't find template in cache for
"org/apache/struts2/dispatcher/error.ftl"("en_US", UTF-8, parsed); will try
to load it.
[3/15/18 13:32:12:684 IST] 00000094 SystemOut     O 15 Mar 2018
13:32:12,684 DEBUG cache:44 -
TemplateLoader.findTemplateSource("org/apache/struts2/dispatcher/error.ftl"):
Found
[3/15/18 13:32:12:687 IST] 00000094 SystemOut     O 15 Mar 2018
13:32:12,686 DEBUG cache:44 - Loading template for
"org/apache/struts2/dispatcher/error.ftl"("en_US", UTF-8, parsed) from
"wsjar:file:/WAS85/IBM/WebSphere/AppServer/profiles/myprofile/installedApps/myprofile-cell1/MyEAR.ear/MyWAR.war/WEB-INF/lib/struts2-core-2.5.14.1.jar!/org/apache/struts2/dispatcher/error.ftl"
[3/15/18 13:32:12:955 IST] 00000094 WASSessionCor W SessionAffinityManager
setCookie SESN0066E: The response is already committed to the client. The
session cookie cannot be set.
[3/15/18 13:32:12:956 IST] 00000094 SRTServletRes W
com.ibm.ws.webcontainer.srt.SRTServletResponse addSessionCookie WARNING:
Cannot set session cookie. Response already committed.
[3/15/18 13:32:13:118 IST] 00000095 ServletWrappe I
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [ MyEAR ]
[/myapp] [/index.jsp]: Initialization successful.
[3/15/18 13:32:15:116 IST] 00000094 FfdcProvider  W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on /WAS85/IBM/WebSphere/AppServer/profiles/ myprofile
/logs/ffdc/myserver_530e808c_18.03.15_13.32.15.0127026367779684925623.txt
com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp 259
[3/15/18 13:32:15:117 IST] 00000094 webapp        E
com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet
Error]-[/jsp/userlogin/loginPage.jsp]: com.ibm.ws.jsp.JspCoreException:
JSPG0218E: *Error failed to locate setter method for attribute maxLength in
tag class org.apache.struts2.views.jsp.ui.TextFieldTag*
at
com.ibm.ws.jsp.taglib.TagClassInfo.getParameterClassName(TagClassInfo.java:191)
at
com.ibm.ws.jsp.translator.visitor.generator.BaseTagGenerator.evaluateAttribute(BaseTagGenerator.java:454)
at
com.ibm.ws.jsp.translator.visitor.generator.BaseTagGenerator.generateSetters(BaseTagGenerator.java:331)
at
com.ibm.ws.jsp.translator.visitor.generator.CustomTagGenerator.startGeneration(CustomTagGenerator.java:368)
at
com.ibm.ws.jsp.translator.visitor.generator.GenerateVisitor.startGeneration(GenerateVisitor.java:711)
at
com.ibm.ws.jsp.translator.visitor.generator.GenerateVisitor.visitCustomTagStart(GenerateVisitor.java:395)
at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:366)
at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419)
at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:369)
at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419)
at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:234)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:216)
at
com.ibm.ws.jsp.translator.visitor.generator.GenerateJspVisitor.visit(GenerateJspVisitor.java:143)
at
com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:127)
at
com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:254)
at
com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:121)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:548)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:465)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:294)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:498)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.getServletWrapper(AbstractJSPExtensionProcessor.java:338)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:965)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194)
at
org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:169)
at
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:204)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:279)
at
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:250)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:101)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:142)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:137)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:137)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:85)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:203)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)


Thanks,
Raj
On Thu, Mar 15, 2018 at 12:06 PM, Lukasz Lenart <[hidden email]>
wrote:

> 2018-03-15 7:15 GMT+01:00 Rajvinder Pal <[hidden email]>:
> > This is issue with java version. I am using java 7 which i cannot change
> > now. but looks like Freemarker jar is compiled using java8. Any
> Suggestion?
>
> It isn't, it just supports Java 8 but your version of ASM doesn't. You
> can ask Oracle Support how to switch class loading order to load
> classes/jars from you webapp first.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Issues while migrating form Struts2.3.16 to 2.5.14.1

Lukasz Lenart
maxLength was removed, use maxlength instead

2018-03-15 9:19 GMT+01:00 Rajvinder Pal <[hidden email]>:

> ok got it, working on it. Meanwhile there is one more  exception when
> accessing index.jsp.
>
>
> [3/15/18 13:32:12:669 IST] 00000094 SystemOut     O 15 Mar 2018
> 13:32:12,668 DEBUG cache:44 - Couldn't find template in cache for
> "org/apache/struts2/dispatcher/error.ftl"("en_US", UTF-8, parsed); will try
> to load it.
> [3/15/18 13:32:12:684 IST] 00000094 SystemOut     O 15 Mar 2018
> 13:32:12,684 DEBUG cache:44 -
> TemplateLoader.findTemplateSource("org/apache/struts2/dispatcher/error.ftl"):
> Found
> [3/15/18 13:32:12:687 IST] 00000094 SystemOut     O 15 Mar 2018
> 13:32:12,686 DEBUG cache:44 - Loading template for
> "org/apache/struts2/dispatcher/error.ftl"("en_US", UTF-8, parsed) from
> "wsjar:file:/WAS85/IBM/WebSphere/AppServer/profiles/myprofile/installedApps/myprofile-cell1/MyEAR.ear/MyWAR.war/WEB-INF/lib/struts2-core-2.5.14.1.jar!/org/apache/struts2/dispatcher/error.ftl"
> [3/15/18 13:32:12:955 IST] 00000094 WASSessionCor W SessionAffinityManager
> setCookie SESN0066E: The response is already committed to the client. The
> session cookie cannot be set.
> [3/15/18 13:32:12:956 IST] 00000094 SRTServletRes W
> com.ibm.ws.webcontainer.srt.SRTServletResponse addSessionCookie WARNING:
> Cannot set session cookie. Response already committed.
> [3/15/18 13:32:13:118 IST] 00000095 ServletWrappe I
> com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [ MyEAR ]
> [/myapp] [/index.jsp]: Initialization successful.
> [3/15/18 13:32:15:116 IST] 00000094 FfdcProvider  W
> com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
> emitted on /WAS85/IBM/WebSphere/AppServer/profiles/ myprofile
> /logs/ffdc/myserver_530e808c_18.03.15_13.32.15.0127026367779684925623.txt
> com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp 259
> [3/15/18 13:32:15:117 IST] 00000094 webapp        E
> com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet
> Error]-[/jsp/userlogin/loginPage.jsp]: com.ibm.ws.jsp.JspCoreException:
> JSPG0218E: *Error failed to locate setter method for attribute maxLength in
> tag class org.apache.struts2.views.jsp.ui.TextFieldTag*
> at
> com.ibm.ws.jsp.taglib.TagClassInfo.getParameterClassName(TagClassInfo.java:191)
> at
> com.ibm.ws.jsp.translator.visitor.generator.BaseTagGenerator.evaluateAttribute(BaseTagGenerator.java:454)
> at
> com.ibm.ws.jsp.translator.visitor.generator.BaseTagGenerator.generateSetters(BaseTagGenerator.java:331)
> at
> com.ibm.ws.jsp.translator.visitor.generator.CustomTagGenerator.startGeneration(CustomTagGenerator.java:368)
> at
> com.ibm.ws.jsp.translator.visitor.generator.GenerateVisitor.startGeneration(GenerateVisitor.java:711)
> at
> com.ibm.ws.jsp.translator.visitor.generator.GenerateVisitor.visitCustomTagStart(GenerateVisitor.java:395)
> at
> com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:366)
> at
> com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419)
> at
> com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:369)
> at
> com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419)
> at
> com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:234)
> at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:216)
> at
> com.ibm.ws.jsp.translator.visitor.generator.GenerateJspVisitor.visit(GenerateJspVisitor.java:143)
> at
> com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:127)
> at
> com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:254)
> at
> com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:121)
> at
> com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:548)
> at
> com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:465)
> at
> com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:294)
> at
> com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:498)
> at
> com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.getServletWrapper(AbstractJSPExtensionProcessor.java:338)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:965)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194)
> at
> org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:169)
> at
> org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:204)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:279)
> at
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:250)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:101)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:142)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:137)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:137)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:85)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:203)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> at
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
>
>
> Thanks,
> Raj
> On Thu, Mar 15, 2018 at 12:06 PM, Lukasz Lenart <[hidden email]>
> wrote:
>
>> 2018-03-15 7:15 GMT+01:00 Rajvinder Pal <[hidden email]>:
>> > This is issue with java version. I am using java 7 which i cannot change
>> > now. but looks like Freemarker jar is compiled using java8. Any
>> Suggestion?
>>
>> It isn't, it just supports Java 8 but your version of ASM doesn't. You
>> can ask Oracle Support how to switch class loading order to load
>> classes/jars from you webapp first.
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]