- This topic has 10 replies, 5 voices, and was last updated 20 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
gman22314MemberI just upgraded to Eclipse 2.1.3 and MyEclipse 2.7 GA. I’m running J2EE 1.4 and JAVA 1.4.1-2. Now when I create an EJB Project it does not create the ejb-jar.xml file in the META-INF folder. This shows up in the TASK view as a warning. Can’t find anything more specific on ejb-jar.xml (other than what folder it goes into) in the help files. Do I need to reconfigure something, or can I disregard this since it is only a warning? Thanks.
Scott AndersonParticipantI believe this is normal. We don’t generate an empty ejb-jar.xml file because it wouldn’t be valid with respect to the DTD. So, we leave you a task as a reminder that you still need to either add one manually or use XDoclet to generate one before your project can be deployed.
Scott RyanMemberI recently upgraded to the latest service level of MYEclipse. I am getting several warnings about missing ejb-jar.xml files in my META-INF folder withing my EJB projects even though the file is there. What am I missing?
Scott
support-michaelKeymaster1) Are you sure the directory is properly named and all uppercase, i.e., META-INF and not Meta-inf or meta-inf? MS frequently dorks filename capitalization.
2) Is your META-INF folder under your src folder or else where?
Scott RyanMember@support-michael wrote:
1) Are you sure the directory is properly named and all uppercase, i.e., META-INF and not Meta-inf or meta-inf? MS frequently dorks filename capitalization.
2) Is your META-INF folder under your src folder or else where?
Yes the directory is properly named META-INF and is in one of my source folders. My source folders are not called src but Java Source and Generated Source. Is that the problem?
Scott
support-michaelKeymasterYour project has 2 source folders, 1 named “Java Source” and 1 named “Generated Source”. Is that correct? If yes in which source folder (Java Source or Generated Source) does the META-INF folder reside?
Scott RyanMemberThe META-INF folder in in Java Source. We have to do this to make sure that our developers do not check in generated source. We check out the Java Source from PVCS into the Java Source directory. We then use XDoclet to generate the Home/Remote and descriptors into Java Source. Once the generation is complete and the code has been compiled we move the Generated source to a new folder away from the PVCS tree. This makes sure that Eclipse can see it for compilation but insures that a sleepy developer cannot accidently check the generated source into PVCS. We do run the risk of the Deployment descriptors being checked in but that is minor.
I hope this helps. The META-INF is in the Java Source folder.
Scott
support-michaelKeymasterAs an experiment to isolate the problem, can you temporarily copy your META-INF dir to the root of the “Generated ..” src folder? I’m speculating that ME thinks that src folder is the sole location of META-INF info.
pjuppMemberI have a similar problem with ME 3.8b1 on Eclipse Version: 3.0.0 Build id: 200405290105. I use the wizrd to create an EJB projectbut it seems to leave out the step to generate the ejb-jar.xml file in teh META-INF. Ok, so I add an EJB using the wizard, and still no xml. What am I missingout? I have tried the Run XDoclet menu item with no apparent success.
Using JDK 1.5.
pjuppMemberdoh! Just reread the comments in the generated EJB code, and worked out how to run the XDoclet wizard thing on my project and hey presto – a bit obtuse but got there in the end! ME is fab!
Scott AndersonParticipantGlad you got it figured out. XDoclet can be a little tough to get started with. 🙂
-
AuthorPosts