|
Problem |
After configuring an XMLConfig import script to start and
stop a Web module, the following error is produced:
Error: On line 1, Column: 259
Message: Attribute "action" must be declared for element type
"web-module".
XMLC0139W: You may be using an incompatible XML config file.
Below is the example xml script:
<?xml version="1.0"?>
<!DOCTYPE websphere-sa-config SYSTEM "file:///
$XMLConfigDTDLocation$$dsep$xmlconfig.dtd" >
<websphere-sa-config>
<enterprise-application action="locate" name="MeronTest">
<web-module action="stop" name="New_Web_Module2.war">
</web-module>
</enterprise-application>
</websphere-sa-config> |
|
Cause |
In WebSphere® Application Server architecture, individual
module is not supported with XMLConfig tool. A different administrative
tool must be used for starting and stopping an individual module. |
|
Solution |
The DTD for WebSphere Application Server V4.0.4 did not contain the
action for the individual module that allows starting and stopping from
XMLConfig.
<!ELEMENT web-module ((context-root?,war-file?,module-install-info?,
web-module-binding?)*)>
<!ATTLIST web-module
name CDATA #REQUIRED
>
The above sample does not have the action set; therefore, it is not
implemented.
In this case, only the entire enterprise-application can be started and
stopped using XMLConfig.
<!ELEMENT enterprise-application
(ear-file-name?,source-node?,enterprise-app-install-info?,web-module?,ejb-module?,application-binding?)*>
<!ATTLIST enterprise-application name CDATA #REQUIRED action
(create|update|locate|export|start|stop|delete) #IMPLIED>
Now the administrative console allows starting and stopping an individual
module. |
|
|
|
|
|
|