You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Louis Burroughs <lb...@aholdusa.com> on 2004/11/11 22:16:07 UTC

RE: Problem with was5 plugin victory (kindof)

After editing the plugin.properties file to use user instead of username 
for each of the tasks.  I still ended up changing the soap.client.props 
file to add a username and password.  I think there is a way of passing in 
the username and password, but I have not yet found it.  The was5 plugin 
is working for me now with this configuration.


Thanks,
Louis M. Burroughs III





Louis Burroughs <lb...@aholdusa.com>
11/11/2004 02:11 PM
Please respond to "Maven Users List"




 
        To:     "Maven Users List" <us...@maven.apache.org>
        cc:     "Maven Users List" <us...@maven.apache.org>
        bcc: 
        Subject:        RE: Problem with was5 plugin


The javadoc for the ListApplications class shows the property user

<wsListApps
wasHome="location of websphere installation"
properties="java properties file containing attributes to set in
the JVM System properties"
profile="a script file to be executed before the main command or
file"
conntype="specifies the type of connection to be used."
host="the host to connect to"
port="the port on the host to connect to"
user="user ID to authenticate with"
password="password to authenticate with"/>

While the plugin specifies username

<ant:wasListApps>
<ant:setProperty name="profile"
value="${maven.was5.listApps.profile}"/>
<ant:setProperty name="properties"
value="${maven.was5.listApps.properties}"/>
<ant:setProperty name="conntype"
value="${maven.was5.listApps.conntype}"/>
<ant:setProperty name="host" value="${maven.was5.listApps.host}"/>
<ant:setProperty name="port" value="${maven.was5.listApps.port}"/>
<ant:setProperty name="username" value="${maven.was5.listApps.username}"/>
<ant:setProperty name="password"
value="${maven.was5.listApps.password}"/>
<ant:setProperty name="wasHome" value="${maven.was5.home}"/>
</ant:wasListApps>

After changing the plugin property to user. I got back to my first error
of the authentication failure.



Louis M. Burroughs III, OCTO




Louis Burroughs <lb...@aholdusa.com>
11/11/2004 01:52 PM
Please respond to "Maven Users List"





To:     "Maven Users List" <us...@maven.apache.org>
cc:     "Maven Users List" <us...@maven.apache.org>
bcc:
Subject:        RE: Problem with was5 plugin


I have gotten a little closer to connecting to the appserver by passing in

-Dmaven.was5.listApps.username=username
-Dmaven.was5.listApps.password=password
was5:listApps

Instead of the more generic 'script' The error I get now is:

[wasListApps] [ERROR] If one of userid or password is specified, both
attrib
utes must be specified.

I looked through the plugin.xml to the underlying task

<taskdef name="wasListApps"
classname="com.ibm.websphere.ant.tasks.ListApplications"
classpath="${maven.was5.home}/lib/wsanttasks.jar"/>

but I can't find the source for wsanttasks.  For whatever reason it thinks
that it is getting either a username or password, but not both.  I have
tried supplying the properties from the command line, the properties file
and setting them inside the goal with the same result.

Louis M. Burroughs III






Louis Burroughs <lb...@aholdusa.com>
11/11/2004 11:23 AM
Please respond to "Maven Users List"





To:     "Maven Users List" <us...@maven.apache.org>
cc:
bcc:
Subject:        RE: Problem with was5 plugin


I am running the plugin against WAS 5.0.2 on AIX.

The wsadmin script takes a username and password argument, but I don't
know if the plugin is using the

-Dmaven.was5.script.username=username
-Dmaven.was5.script.password=password

arguments that I have passed in.  The only guidance I have seen on this is
to turn off global security, but I don't know if that's a valid solution.


Louis M. Burroughs III, OCTO




"Oren Berenson" <or...@morpheus.co.uk>
11/11/2004 11:12 AM
Please respond to "Maven Users List"





To:     "Maven Users List" <us...@maven.apache.org>
cc:
bcc:
Subject:        RE: Problem with was5 plugin


I don't think you can use the plugin with wsad.

Oren


-----Original Message-----
From: Louis Burroughs [mailto:lburroug@aholdusa.com]
Sent: 11 November 2004 15:23
To: Maven Users List
Subject: Re: Problem with was5 plugin


When I run was5:listApps with the following command

maven -Dmaven.was5.script.username=username
-Dmaven.was5.script.password=password was5:listApps


The was5 plugin is trying to execute wsadmin but I am getting the
following errors:



was5:listApps:
[wasListApps] WASX7246E: Cannot establish "SOAP" connection to host
"localho
st" because of an authentication failure. Ensure that user and password
are corr
ect on the command line or in a properties file.
[wasListApps] Exception message (if any): "ADMN0022E: Access denied
for the
getProcessType operation on Server MBean due to insufficient or empty
credential
s."
[wasListApps] WASX7213I: This scripting client is not connected to a

server
process; please refer to the log file
/opt/websphere/appserver/logs/wsadmin.trac
eout for additional information.
[wasListApps] WASX7022E: Problem running command "$AdminApp list" --

excepti
on information: com.ibm.ws.scripting.ScriptingException: WASX7206W: The
applicat
ion management service is not running. Application management commands
will not
run.


I am using the username and password I use to log into the was admin
console.

Louis M. Burroughs III, OCTO




Mark van Holsteijn <mv...@xebia.com>
11/11/2004 09:19 AM


To:     lburroug@aholdusa.com
cc:
bcc:
Subject:        Re: Problem with was5 plugin


Let's hear it!

Louis Burroughs wrote:

Thanks!  You have allowed me to move on to new and more interesting
errors.


Louis M. Burroughs III, OCTO




"Bowe, Bastian" <Ba...@astrium.eads.net>11/11/2004 09:06 AM
Please respond to "Maven Users List"





To:     'Maven Users List' <us...@maven.apache.org>
cc:
bcc:
Subject:        RE: Problem with was5
pluginhttp://maven-plugins.sourceforge.net/maven-was5-plugin/faq.html#JA
VAHOME

-----Original Message-----
From: Louis Burroughs [mailto:lburroug@aholdusa.com]
Sent: Thursday, November 11, 2004 3:04 PM
To: Maven Users List
Subject: RE: Problem with was5 plugin


JAVA_HOME is set to a runtime environment external to
WebSphere, do I need
to set it to use the jdk provided with WebSphere for the was5
plugin to
run?


Louis M. Burroughs III, OCTO




"Oren Berenson" <or...@morpheus.co.uk>11/11/2004 03:57 AM
Please respond to "Maven Users List"





To:     "Maven Users List" <us...@maven.apache.org>
cc:
bcc:
Subject:        RE: Problem with was5 plugin


Is your JAVA_HOME set to the ibm jdk?

Oren


-----Original Message-----
From: Louis Burroughs [mailto:lburroug@aholdusa.com]
Sent: 10 November 2004 21:01
To: Maven Users List
Subject: Problem with was5 plugin


I got this error when trying to invoke a command on the was5
plugin (version 1.2) Any suggestions?

was5:listApps:

[wasListApps] java.lang.reflect.InvocationTargetException:
java.lang.NoClass
DefFoundError: com/ibm/jsse/IBMJSSEProvider
[wasListApps]       at java.lang.Class.forName1(Native Method)
[wasListApps]       at java.lang.Class.forName(Class.java:142)
[wasListApps]       at
com.ibm.websphere.management.AdminClientFactory.creat
eAdminClient(AdminClientFactory.java:273)
[wasListApps]       at
com.ibm.ws.scripting.CommonScriptingObject.connectToA
dminService(CommonScriptingObject.java:117)
[wasListApps]       at
com.ibm.ws.scripting.CommonScriptingObject.<init>(Com
monScriptingObject.java:99)
[wasListApps]       at
com.ibm.ws.scripting.AdminControlClient.<init>(AdminC
ontrolClient.java:152)
[wasListApps]       at
com.ibm.ws.scripting.AbstractShell.createControlClien
t(AbstractShell.java:866)
[wasListApps]       at
com.ibm.ws.scripting.AbstractShell.run(AbstractShell.
java:1495)
[wasListApps]       at
com.ibm.ws.scripting.WasxShell.main(WasxShell.java:80
5)
[wasListApps]       at java.lang.reflect.Method.invoke(Native
Method)
[wasListApps]       at
com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:
94)





**************************************************************
**************

This email and any files transmitted with it contain
information that may
be
confidential or privileged, and are intended solely for the
use of the individual or entity to whom they are addressed.
If you are not the
intended
recipient any disclosure, copying, distribution or use of the
information
is
prohibited. If you have received this email in error, please
notify me by return email immediately. Any opinions expressed
are those of the author, not of Morpheus Limited.


This message has been checked for all known viruses by UUNET
delivered through the MessageLabs Virus Control Centre.

**************************************************************
**************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.orgFor additional
commands, e-mail: users-help@maven.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.orgFor additional
commands, e-mail: users-help@maven.apache.org






--
ing. Mark van Holsteijn
senior consultant

Xebia bv, Melkweg 23a, 1251PP Laren, The Netherlands, www.xebia.com
office: +31-35-5381921, mobile: +31-622374114, mvanholsteijn@xebia.com





****************************************************************************

This email and any files transmitted with it contain information that may
be
confidential or privileged, and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the
intended
recipient any disclosure, copying, distribution or use of the information
is
prohibited. If you have received this email in error, please notify me by
return email immediately. Any opinions expressed are those of the author,
not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre.

****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org