Configuring fileset for Struts 2 plugin

Earlier when configuring fileset for Struts 2, IDEA would present me with a list of struts xml files it found, so I could just select those I wanted. (my own struts.xml, struts-default.xml etc)
Now it seems like I have to find those myself?



Attachment(s):
Screen shot 2009-11-03 at 6.42.28 PM.png
0
12 comments

Hello Ronny,

works for me. What build are you using? What struts.xml files do you have in your project? Did this project work before in S2 facet configuration?

Yann

0

I'm using the latest build, 90.137.
I have just the regular struts.xml file in src/main/resources.
It worked before with this project, don't remember which Maia build.
I suddenly realized the Struts 2 facet were missing. I had to disable and enable the plugin to get the facet back again.

0

Hm, please check your module settings:

- struts.jar present
- src/ marked as source root

Maybe try to recreate the project?

0

Tried to recreate the project. IDEA didn't detect any struts facet at all, only a spring facet (although the spring xml is in the same folder as struts.xml, src/main/resources)
struts2-core.jar, struts2-sitemesh-plugin.jar and struts2-spring-plugin.jar are all present.
src/main/java, src/main/groovy and src/main/resources marked as Source Folders.

0

Turned off "Enable auto-detection" for Struts 2 facet, then turned it back on again. Struts 2 facet was then detected. This time IDEA presented me with a list with at least my own struts.xml. But struts-default.xml and other base struts xml files were not in the list, like they used to.



Attachment(s):
Screen shot 2009-11-03 at 10.51.13 PM.png
0

Are other facets (Spring, ...) detected correctly? Could you try again with a previous version of IDEA?

Maybe clearing caches (File->Invalidate Caches) might help.

0

Spring facet is detected correctly.
Maia 90.94 had same problem.
Maia 10666 does not have this problem. Struts facet were correctly detected, and I got a list of xml files that included the base struts xml files, see screenshot



Attachment(s):
Screen shot 2009-11-04 at 9.43.52 AM.png
0

Hm, I will investigate more. Could you attach a stripped-down version of your project to YouTrack to help debug this? Thanks.

0

I will try to get the time to create a stripped down project. But I have used quite a lot of time reporting various problems lately, mostly related to Groovy, Maven and Flex, and need to focus more on actual development
Build 10666 were quite stable, but 90.94 and later has not been that pleasant experience. However, 90.137 seems much better than the previous 90.x builds.

0

When going back to 90.137 now after trying 10666, the problem seems to be almost gone. Struts 2 facet now presents me with a correct list of struts xml files. Maybe som cache problems have been cleaned out?
But I still need to disable and then enable facet auto-detection to trigger the detection of struts 2 facet.

0

Ok, this really looks like a caching issue in IDEA.

0

You're probably right. A colleague of mine opened the project on a clean install of IDEA today (90.154) without any problems.

0

Please sign in to leave a comment.