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.
jdharshaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

radarshCommented:
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
0
radarshCommented:
Post the existing XML file and the complete error here.

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

Harsha.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

jdharshaAuthor Commented:
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.
0
sriki77Commented:
Hi jdharsha,

If you see the error: (icon?,display-name,description?,module+,security-role*)

module+  - means there must be one or more modules in the application tag. In you case you have none.

A correct example would be

<?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>
        <module id="EjbModule_1">
            <ejb>EJB.jar</ejb>
        </module>
        <module id="WebModule_1">
            <web>
                <web-uri>WebApp.war</web-uri>
                <context-root>Test</context-root>
            </web>
        </module>
    </application>

Basic you application must have  EJB module or Web Module or any other client module in J2EE.

Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jdharshaAuthor Commented:
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">
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.