You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Steve S." <sm...@gmail.com> on 2005/01/03 22:02:03 UTC

WAS5.1 and wsadmin issue

I am trying to update our build file as we have just upgraded to
WAS5.1 to use the wasdmin task. Unfortunately, I get the following
relevant snippet when trying to stop the server:
  
  [wsadmin]     at java.lang.reflect.Method.invoke(Method.java:324)
  [wsadmin]     at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
  [wsadmin] Caused by: java.lang.NoClassDefFoundError:
com/ibm/jsse/IBMJSSEProvider

This is what I have in my build.xml

<path id="project.class.path">
      <pathelement path="${classpath}"/>
      <fileset dir="/opt/WebSphere/AppServer/lib">
        <include name="**/*.jar"/>
      </fileset>
      <fileset dir="/opt/WebSphere/AppServer/java/jre/lib">
        <include name="jsse.jar"/>
      </fileset>
  </path>

<taskdef name="wsadmin" classname="com.ibm.websphere.ant.tasks.WsAdmin">
     <classpath refid="project.class.path"/>
</taskdef>

Should I be doing this differently? I am fairly new to WAS so perhaps
I am missing something obvious, but it seems to be a classpath issue
when Ant (1.6.2) executes.Any help would be appreciated.

Thanks,
Steve

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


Re: WAS5.1 and wsadmin issue

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Steve


this problem is the one described here :
http://ant.apache.org/faq.html#delegating-classloader

I had this happening also with a JNDI implementation class.

Are the JSSE interfaces part of the JDK you are using ?

I wonder whether a good wording for this type of problems would not be
something like :
"Classloaders are not reentrant" ?


As workarounds :
if you use ant 1.6, start ant like this :

ant -lib [path to ws jars]

with older versions of ant, you will have to set your CLASSPATH to
include the jars which you need, then start ant

Cheers,

Antoine

> I am trying to update our build file as we have just upgraded to
> WAS5.1 to use the wasdmin task. Unfortunately, I get the following
> relevant snippet when trying to stop the server:
>   
>   [wsadmin]     at java.lang.reflect.Method.invoke(Method.java:324)
>   [wsadmin]     at
> com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
>   [wsadmin] Caused by: java.lang.NoClassDefFoundError:
> com/ibm/jsse/IBMJSSEProvider
> 
> This is what I have in my build.xml
> 
> <path id="project.class.path">
>       <pathelement path="${classpath}"/>
>       <fileset dir="/opt/WebSphere/AppServer/lib">
>         <include name="**/*.jar"/>
>       </fileset>
>       <fileset dir="/opt/WebSphere/AppServer/java/jre/lib">
>         <include name="jsse.jar"/>
>       </fileset>
>   </path>
> 
> <taskdef name="wsadmin" classname="com.ibm.websphere.ant.tasks.WsAdmin">
>      <classpath refid="project.class.path"/>
> </taskdef>
> 
> Should I be doing this differently? I am fairly new to WAS so perhaps
> I am missing something obvious, but it seems to be a classpath issue
> when Ant (1.6.2) executes.Any help would be appreciated.
> 
> Thanks,
> Steve
> 

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