- This topic has 5 replies, 2 voices, and was last updated 19 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
developerwizMemberHello:
I create new J2EE project, go through the wizard to add web module and EJB module.
The resulting application.xml file does not have any modules defined…Please help!
This seems to happen if I try to define an EAR file with both web module and EJB module.
Here is an examle: as you can see it does not put modules in the project for some reason.
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE application PUBLIC “-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN” “http://java.sun.com/dtd/application_1_3.dtd”><application>
<display-name>SiestaEAR</display-name>
</application>I am getting a red “X” of course and the error message from Eclipse:
Severity Description Resource In Folder Location Creation Time
2 The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”. application.xml SiestaEAR/META-INF line 6 October 11, 2005 4:20:56 PM
Riyad KallaMemberI was unabel to reproduce this locally, have you tried right-clicking on the EAR project and going to MyEclipse > Add/Remove MOdules, are they listed there correctly? If not can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
developerwizMemberSorry, here is the requred information:
I am using MyEclipse 4.0 Milestone 3 ( 3.9.310)Should I upgrade to latest version before anything else?
Yes, I did try to use MyEclipse->Add Module, it has the same behaviour.
Thanks
Gennadiy
developerwizMemberOk, I upgraded to the latest version.
No change, same problem.
Here is the info, please helpThanks
Gennadiy
*** Date: Wed Oct 12 13:12:15 EDT 2005*** System properties:
OS=Windows2000
OS version=5.0
Java version=1.4.2_06*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.2 GA
Build id: 20051010-4.0.2-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
E:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
9c_3c
-clean
-vm
C:\WINNT\system32\javaw.exe
Riyad KallaMemberShould I upgrade to latest version before anything else?
Ahh, yes you shoudl. Please note that you cannot use the update manager, you must download MyEclipse 4.0.2 from the site and install it against your Eclipse 3.1 GA install. Be sure to remove your current install before continuing.
Also, this is important, after installing MyEclipse 4.0.2, edit the shortcut you use to start MyEclipse and add -clean to it and then start it up.
Riyad KallaMemberTry a new Workspace: File > Switch Workspace > C:\testworkspace, hit OK. Now create a new Enterprise Project with EJB and Web modules, did that work?
-
AuthorPosts