You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Christopher Styles <st...@gmail.com> on 2007/11/08 19:11:16 UTC

Websphere 6 Ant Tasks can't be found....

Hi,

I'm using Cruise Control and Websphere 6 to build and deploy my application
to a remote server, but when I execute the build/deploy, I get and *Ant
Error Message*... My websphere ant tasks can't seem to be found.... If I
comment out the taskdefs, the build portion works fine, but I need the
websphere ant tasks for my deployment... Here's the error message: *Ant
Error Message:*C:\CruiseControl\projects\mib\MIB_2.X_FWD_DEV_AIX-WAS-DB2\EP_US_PSO_2.X\build\build.xml:72:
taskdef class com.ibm.websphere.ant.tasks.StopServer cannot be found....
Below, is how I my have my Websphere Home and taskdefs defined in my
build.xml... Is my Websphere Home defined correctly in order for the
websphere ant tasks to be found...??? I'd appreciate it if someone could
point me in the right direction...

Thanks


<property name="ws.home" value="C:/Progra~1/IBM/WebSph~/AppServer"/>


<path id="lib.path">
    <pathelement location="${ws.home}/lib/*.jar"/>
</path>

<taskdef name="wsStopServer"
        classname="com.ibm.websphere.ant.tasks.StopServer">
    <classpath refid="lib.path"/>
</taskdef>

<taskdef name="wsStartServer"
        classname="com.ibm.websphere.ant.tasks.StartServer">
    <classpath refid="lib.path"/>
</taskdef>

<taskdef name="wsUninstallApp"
        classname="com.ibm.websphere.ant.tasks.UninstallApplication">
    <classpath refid="lib.path"/>
</taskdef>

<taskdef name="wsInstallApp"
        classname="com.ibm.websphere.ant.tasks.InstallApplication">
    <classpath refid="lib.path"/>
</taskdef>

Re: Websphere 6 Ant Tasks can't be found....

Posted by Christopher Styles <st...@gmail.com>.
Thanks... I'll try that...

On 11/8/07, Peter Reilly <pe...@gmail.com> wrote:
>
> On Nov 8, 2007 6:11 PM, Christopher Styles <st...@gmail.com> wrote:
> > Hi,
> >
> > I'm using Cruise Control and Websphere 6 to build and deploy my
> application
> > to a remote server, but when I execute the build/deploy, I get and *Ant
> > Error Message*... My websphere ant tasks can't seem to be found.... If I
> > comment out the taskdefs, the build portion works fine, but I need the
> > websphere ant tasks for my deployment... Here's the error message: *Ant
> > Error
> Message:*C:\CruiseControl\projects\mib\MIB_2.X_FWD_DEV_AIX-WAS-DB2\EP_US_PSO_2.X\build\build.xml:72:
> > taskdef class com.ibm.websphere.ant.tasks.StopServer cannot be found....
> > Below, is how I my have my Websphere Home and taskdefs defined in my
> > build.xml... Is my Websphere Home defined correctly in order for the
> > websphere ant tasks to be found...??? I'd appreciate it if someone could
> > point me in the right direction...
> >
> > Thanks
> >
> >
> > <property name="ws.home" value="C:/Progra~1/IBM/WebSph~/AppServer"/>
> >
> >
> > <path id="lib.path">
> >     <pathelement location="${ws.home}/lib/*.jar"/>
> > </path>
> >
> This is incorrect.
> the location attribute does not do a glob expand on *.
> You need something like.
> <path id="lib.path">
>   <fileset dir="${ws.home}/lib" includes="*.jar"/>
> </path>
>
> Peter
>
> > <taskdef name="wsStopServer"
> >         classname="com.ibm.websphere.ant.tasks.StopServer">
> >     <classpath refid="lib.path"/>
> > </taskdef>
> >
> > <taskdef name="wsStartServer"
> >         classname="com.ibm.websphere.ant.tasks.StartServer">
> >     <classpath refid="lib.path"/>
> > </taskdef>
> >
> > <taskdef name="wsUninstallApp"
> >         classname="com.ibm.websphere.ant.tasks.UninstallApplication">
> >     <classpath refid="lib.path"/>
> > </taskdef>
> >
> > <taskdef name="wsInstallApp"
> >         classname="com.ibm.websphere.ant.tasks.InstallApplication">
> >     <classpath refid="lib.path"/>
> > </taskdef>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: Websphere 6 Ant Tasks can't be found....

Posted by Peter Reilly <pe...@gmail.com>.
On Nov 8, 2007 6:11 PM, Christopher Styles <st...@gmail.com> wrote:
> Hi,
>
> I'm using Cruise Control and Websphere 6 to build and deploy my application
> to a remote server, but when I execute the build/deploy, I get and *Ant
> Error Message*... My websphere ant tasks can't seem to be found.... If I
> comment out the taskdefs, the build portion works fine, but I need the
> websphere ant tasks for my deployment... Here's the error message: *Ant
> Error Message:*C:\CruiseControl\projects\mib\MIB_2.X_FWD_DEV_AIX-WAS-DB2\EP_US_PSO_2.X\build\build.xml:72:
> taskdef class com.ibm.websphere.ant.tasks.StopServer cannot be found....
> Below, is how I my have my Websphere Home and taskdefs defined in my
> build.xml... Is my Websphere Home defined correctly in order for the
> websphere ant tasks to be found...??? I'd appreciate it if someone could
> point me in the right direction...
>
> Thanks
>
>
> <property name="ws.home" value="C:/Progra~1/IBM/WebSph~/AppServer"/>
>
>
> <path id="lib.path">
>     <pathelement location="${ws.home}/lib/*.jar"/>
> </path>
>
This is incorrect.
the location attribute does not do a glob expand on *.
You need something like.
<path id="lib.path">
   <fileset dir="${ws.home}/lib" includes="*.jar"/>
</path>

Peter

> <taskdef name="wsStopServer"
>         classname="com.ibm.websphere.ant.tasks.StopServer">
>     <classpath refid="lib.path"/>
> </taskdef>
>
> <taskdef name="wsStartServer"
>         classname="com.ibm.websphere.ant.tasks.StartServer">
>     <classpath refid="lib.path"/>
> </taskdef>
>
> <taskdef name="wsUninstallApp"
>         classname="com.ibm.websphere.ant.tasks.UninstallApplication">
>     <classpath refid="lib.path"/>
> </taskdef>
>
> <taskdef name="wsInstallApp"
>         classname="com.ibm.websphere.ant.tasks.InstallApplication">
>     <classpath refid="lib.path"/>
> </taskdef>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org