|
|
|
[
Permlink
| « Hide
]
Anton Makeev - 10 Apr 08 15:37
Could you please attach the poms?
Notice application.xml within ear folder (e.g. no context, although it is defined within pom,both ID's are "Web").
Also, if you change it manually, and than change one of the poms, and than synchronise, idea will change your application.xml, which is than invalid again.. <module id="EJB"> btw, happens on linux/windows (probably platform doesn't matter)
Using 2 EJB jars in 1 ear causes the same havoc, because both EJB facets get the id "EJB".
I tried giving them unique names, and on the next maven sync I had 4 EJB facets Why is IntelliJ so intrusive in the application.xml? Can I tell IntelliJ to keep its hand off that file and still use the EAR facet (to build the exploded ear etc)? Related issue: IDEA-18001 Please try any of the next releases and let me know if any problem occur.
Hi Anton,
I tried on a existing project and there's one thing that still goes wrong, abd that is that context-root of a web module is ignored (not inserted): <module id="admin-Web"> after some changes, Idea makes this: <module id="admin-Web"> Above is again invalid, because context-root is completely missing.. If possible, it would be nice to take context root from pom: <webModule> thx it works ok if I fill in contextroot myself within IDEA dialog, problem is of course it gets lost each time POM is updated, so it would be nice if it is parsed from webmodule/contextroot value:
<webModule> Thanks, I've found the problem.
The fix will be available in the next eap. BTW, there's one more issue I noticed in the latest EAP (7860), and that is that idea is placing "/" in front of war file name, e.g:
instead of: <web-uri>admin-1.0-SNAPSHOT.war</web-uri> notice "/" in front of admin-1.0-SNAPSHOT.war It was done in sake of unification. Does it lead to problems?
Hi Anton,
glassfish v2 gives problems because it cannot find war files if deployed this way (throws zip exception: file xxx.war cannot be found or something similar) I am deploying as an EAR with 2 wars in it, admin.war and site.war Anton, there's one more thing that goes wrong, and that is that, after re-synching a project,
Idea chooses *.ejb name as name of EJB module, however, if you try to deploy, it fails. What I do to get it working is following: 1. go to ear deployment settings, select EJB module to "do not package" and after that click apply button 2. than I select it again and choose "include facet in build" 3. after I do this I see that Idea changes extension to *.jar (instead of *.ejb) and deployment now works.. resulting application XML looks like one below, and deployment works nice: <module id="admin-Web"> |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||