IBM Support

Syntax error in WebSphere Application Server Community Edition Deployment Descriptor and a synchronization issue in the security and source tabs

Technote (troubleshooting)


Syntax error in geronimo-application.xml and openejb-jar.xml.
Could not synchronize the security tab with source tab in geronimo-application.xml, geronimo-web.xml and openejb-jar.xml.


When use WebSphere Application Server Community Edition Eclipse Plugin to develop J2EE Application, will meet some syntax error in the deployment descriptor. The syntax errors are below.
1. cvc-complex-type.2.4.a: Invalid content was found starting with element 'dep:gbean'. One of '{"schema://":service}' is expected. The error is in geronimo-application.xml.
2. Referenced file contains errors (jar:file:/D:/eclipse/dropins/eclipse/plugins/!/v30/openejb-
jar-2.2.xsd). For more information, right click on the message in the Problems View and select "Show Details...". The error is in openejb-jar.xml.
3. cvc-complex-type.2.4.a: Invalid content was found starting with element 'dep:environment'. One of '{"schema://":ejb-ql-compiler-factory, "schema://":db-syntax-factory,"schema://":enforce-foreign-key-constraints, "schema://":enterprise-beans, "schema://":relationships}' is expected.The error is in openejb-jar.xml.

(schema as http here)

When add a Security Realm in geronimo-application.xml, geronimo-web.xml and openejb-jar.xml's Security Tab, couldn't save it, Conversely, when add a Security Realm manually in the Source Tab, it couldn't be saved and showed in the Security Tab too.

Resolving the problem

To solve the problem described in the symptom, there are two different ways you might need to go:

1. If you've already installed the bad WAS CE Eclipse Plugin(WEP) in your eclipse JEE IDE.

1.1 Uninstall the bad WEP first.

Depends on how you installed the WEP:

  • If WEP was installed via online update site or local update site, then uninstall it via clicking through "Help -> Install New Software...-> What is already installed -> WASCE v3.0 Server Adapter Assembly -> Uninstall...".
  • If WEP was installed via eclipse "dropins" folder or wizard of WAS CE installer, just delete it from the eclipse "dropins" folder when eclipse exits

1.2 Restart eclipse with "-clean" option to confirm the bad WEP uninstalled successfully.

1.3 Install the fixed latest WEP from the online update site[1]


2. If you decide to use a fresh eclipse JEE IDE, go directly to the online update site and install the WEP from there.

For more details about how to install WEP, refer to WEP installation document[2]


After installed the latest CE WTP Server Adapter, you need to set cancelling "Honour all XML schema locations." preference.

To cancel the option, follow the steps.

1. Eclipse->Window->Preferences->XML->XML Files->Validation.

2. If Honour all XML schema locations is checked, click the check box to cancel it.

Document information

More support for: WebSphere Application Server Community Edition
Eclipse Plugin for WAS CE

Software version:,

Operating system(s): AIX, Linux, Solaris, Windows

Software edition: Elite, Enhanced, Entry

Reference #: 1605858

Modified date: 24 October 2013

Translate this page: