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

Technote (troubleshooting)


Problem(Abstract)

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.

Symptom

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://geronimo.apache.org/xml/ns/deployment-1.2":service}' is expected. The error is in geronimo-application.xml.
2. Referenced file contains errors (jar:file:/D:/eclipse/dropins/eclipse/plugins/org.apache.geronimo.st.schemas_3.0.0.jar!/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://openejb.apache.org/xml/ns/openejb-jar-2.2":ejb-ql-compiler-factory, "schema://openejb.apache.org/xml/ns/openejb-jar-2.2":db-syntax-factory,"schema://openejb.apache.org/xml/ns/openejb-jar-2.2":enforce-foreign-key-constraints, "schema://openejb.apache.org/xml/ns/openejb-jar-2.2":enterprise-beans, "schema://openejb.apache.org/xml/ns/openejb-jar-2.2":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]

[1] http://public.dhe.ibm.com/software/websphere/wasce/updates/

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]

[2] http://publib.boulder.ibm.com/wasce/V3.0.0/en/installing-eclipse-plug-in.html

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.

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Application Server Community Edition
Eclipse Plugin for WAS CE

Software version:

3.0.0.1, 3.0.0.2

Operating system(s):

AIX, Linux, Solaris, Windows

Software edition:

Elite, Enhanced, Entry

Reference #:

1605858

Modified date:

2013-10-24

Translate my page

Machine Translation

Content navigation