Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WASX7111E: Cannot find match for supplied option

750 views
Skip to first unread message

webhelp

unread,
Aug 12, 2009, 10:00:58 AM8/12/09
to
I am trying to install the application using the following on wasadmin command prompt :

$AdminApp install C:/IvtApp.ear "-appname IvtApp -usedefaultbindings -verbose true -MapModulesToServers{{ivtApp ivt_app.war,WEB-INF/web.xml WebSphere:cell=X1185J5Z2T91Node02Cell,node=X1185J5Z2T91Node02,server=server1}}"


I get the following errors:
WASX7015E: Exception running command: "$AdminApp install C:/IvtApp.ear "-appname IvtApp -usedefaultbindings -verbose true -MapModulesToServers{{ivtApp ivt_app.war,WEB-INF/web.xml WebSphere:cell=X1185J5Z2T91Node02Cell,node=X1185J5Z2T91Node02,server=server1}}""; exception information:
com.ibm.ws.scripting.ScriptingException: WASX7111E: Cannot find a match for sup
plied option: "[ivtApp, ivt_app.war,WEB-INF/web.xml, WebSphere:cell=X1185J5Z2T91
Node02Cell,node=X1185J5Z2T91Node02,server=server1]" for task "MapModulesToServer
s"


Any inputs??

SJC

unread,
Aug 13, 2009, 5:41:22 AM8/13/09
to
Try the following to find out exactly what Module and URI values are found in your EAR file:

$AdminApp taskInfo C:/IvtApp.ear MapModulesToServers

Other ideas:
Watch out for case sensitive matching. Put the string options containing "," in quotes (you can use curly {} instead of quotes to bracket the entire option list to avoid quotes in quotes problems).

//Stephen

ohad.r...@gmail.com

unread,
Aug 25, 2009, 7:03:54 AM8/25/09
to
hi
I had the same problem. I figured some interesting things... the "MapModulesToServers" options get parameters like this, for example:
[["WAR_X", "JavaTest_WAR.war,WEB-INF/web.xml", "WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server4"], ["JAR_X", "JavaTest.jar,META-INF/ejb-jar.xml", "WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server3"]]

Note that WAR_X and JAR_X are not just names: they *MUST* appear in the descriptors respectively (web.xml or ejb_jar.xml).
for example:
in the web.xml

WAR_X ...
or in the ejb-jar.xml:

JAR_X...
if they do not, you will end with the exception "WASX7111E: Cannot find match for supplied option"

for these cases, to be generic, one can decide that he wants to put all his WARs on server1 and all JARs on server2. so it will use "*":
-blablabla [[".*", ".*.war,.*", "WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server1"], [".*", ".*.jar,.*", "WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server2"]]


hope it helps,
ohad redlich

ohad.r...@gmail.com

unread,
Aug 25, 2009, 7:22:28 AM8/25/09
to
the last line of my post was cut. the example (because of the editor's limitations, i used # instead of '*' and used "new-lines"):

-blablabla [
['.#',
'.#.war,.#',
'WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server1'],
['.#',
'.#.jar,.#',
'WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server2']
]

ohad redlich
BMC SW

ohad.r...@gmail.com

unread,
Aug 25, 2009, 7:15:22 AM8/25/09
to
the last line of my post was cut. the example (sorry for the new-lines, its a problem here in the editor):

ohad.r...@gmail.com

unread,
Aug 25, 2009, 7:09:49 AM8/25/09
to
my post - the last line of it - was cut. the example i wanted to share is:


-blablabla [[".*", ".*.war,.*", "WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server1"], [".*", ".*.jar,.*", "WebSphere:cell=ohadrCell02,node=ohadrNode02,server=server2"]]

ohad redlich
BMC SW

0 new messages