Intellij Idea 2020.1 Spring Tile Mapping Configuration Problem
Answered
Spring Bean XML Configuration:
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
<property name="definitions">
<list>
<value>/tiles/trd/damage-tiles.xml</value>
</list>
</property>
</bean>
damage-tiles File Definition
<definition name="SingleXtestView">
<put-attribute name="body" value="SingleView.jsp"/>
</definition>
Web Flow View State Referring To damage-tiles.xml
<view-state id="abcID" view="SingleXtestView"/>
As shown above the damage-tiles.xml is configurated using a XML Spring Bean config file
and the view names in web flows are mapped by the damage-tiles.XML file to the actual jsp paths.
The problem is intellij can't map the jsps in web flow to the configurations and is giving me errors
about not finding it, It works fine in the 2018.1 though with the exact same configuration,
and ideas on how to fix it?
Please sign in to leave a comment.
It should wok. Please make sure you have all Struts and Spring-related plugins enabled and the module has the Spring facet with the application context configured. Try with 3rd plugins disabled.
If problem remains please file an issue at https://youtrack.jetbrains.com/issues/IDEA with a sample project and idea.log. Thank you.
Unfortunately the complete code is an enterprise source code and I'm just an Intern without access to share parts of the code or knowledge to replicate the tiles code in a small Non-Business project.
As I noticed intellij idea 2018.1 comes preloaded with struts 1.x plugin but intellij idea 2020.1 doesn't, I'm gonna try installing this plugin and check if it helps.
Struts 1.X has is EOL for quite some time already and is indeed unbundled. Could be also similar to https://youtrack.jetbrains.com/issue/IDEA-221246 issue. If you are using Struts 1.X please install this plugin and configure the facet for Struts 1 version.
I tried installing struts 1.x plugin and inserted related facets but the detection is not working, I tried the 2019.1 version and it works. Can you provide me with the dropped plugins and feature after v 2019.1 so I can investigate?
Are you sure you are using Struts 1.X version?
Please attach the screenshots showing the issue you are seeing including the exact error which is reported. Please also attach screenshot of the module's settings (including all facets settings) that you have for the 2019.1 version.
If it is a configuration issue - try comparing the settings between two versions to see if there are differences.
Having idea.log files after IDE restart from both versions will also be helpful. For uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service.
I confirmed that any version above the mentioned does not work just as you mentioned in the issue tracker link, I compared the plugins installed between the two and facet and module configurations and couldn't find anything helpful, I'll provide shots and log of errors, facets, modules and idea when I can access the system again. Thanks for your help.
ps. I checked and located struts 1.2.6 (not sure about the exact version but it's 1.x) in the project libs so it is being used.
Here are the logs:
https://drive.google.com/drive/folders/1_-UOk1DXzUWyML7_JkSklGTS5PiUzHrM?usp=sharing
and the screenshots:
https://drive.google.com/drive/folders/1vJEaD0naxlKK4DjaSvgrKR927plZh2cR?usp=sharing
Thank you. I have reported separate issue (since in the https://youtrack.jetbrains.com/issue/IDEA-221246 it helped to install Struts 1.X plugin). Please vote and follow it for updates: https://youtrack.jetbrains.com/issue/IDEA-243742
Thanks for all the help. I'll look forward to seeing it fixed.