Link to home
Start Free TrialLog in
Avatar of jdharsha
jdharsha

asked on

The content of element type........WSAD

Hello experts,

                 I am new to webapp development and also new to WSAD where I have encountered with the following error when I switch to tasks tab....infact I played with this tool and I do not know what exactly has happened.


The content of element type "application" is incomplete, it must match "(icon?,display-name,description?,module+,security-role*)".      application.xml      DefaultEAR/META-INF      line 5


Any help or further clarification would be glad to hear.hope this should not be tough question.

Thanks,
Harsha.
Avatar of radarsh
radarsh

Hi jdharsha,

Which version of J2EE Project did you create? It is just telling you that your application.xml
file is not valid. It is not validating. You should reorder some tags.

________
radarsh
Post the existing XML file and the complete error here.

________
radarsh
Avatar of jdharsha

ASKER

Hello radarsh,
                    I have created in J2EE1.3 and how do I get access to the application.xml file.

Harsha.
Hello radarsh,
                    Is thi swhat u asked for.

<?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 id="Application_ID">
      <display-name>DefaultEAR</display-name>
</application>


and the complete error is as follows.........

The content of element type "application" is incomplete, it must match "(icon?,display-name,description?,module+,security-role*)".      application.xml      DefaultEAR/META-INF      line 5


Thanks,
Harsha.
ASKER CERTIFIED SOLUTION
Avatar of sriki77
sriki77

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello siriki77,
                   That was very clear.Anyway I need some clarification,  can I just go with the doctype declaration i.e. without the application tag as follows?

for example if I do not have any modules for the time being....

<?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">