Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Professional IBM WebSphere 5.0 Application Server
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional IBM WebSphere 5.0 Application Server
This is the forum to discuss the Wrox book Professional IBM WebSphere 5.0 Application Server by Tim Francis, Eric Herness, Rob High Jr., Jim Knutson, Kim Rochat, Chris Vignola; ISBN: 9780764543661
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional IBM WebSphere 5.0 Application Server section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old September 26th, 2003, 04:51 PM
Registered User
Join Date: Sep 2003
Location: Irving, TX, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with WebSphere Ant Task at Appendix A

I tried running the ant task wsStopApp from Appendix A of the book. Here is my ant script
<project name="MyProject" default="stopApp" basedir=".">
        websphere admin

  <property name="server" location="server1"/>
  <property name="app" location="HelloEAR"/>
  <property name="wasHome" location="C:\Program Files\WebSphere\AppServer" />
  <taskdef name="wsStopApp"
      classname="com.ibm.websphere.ant.tasks.StopApplica tion" />
  <target name="stopApp">
    <wsStopApp application="${app}"


Initially it could find the class com.ibm.websphere.ant.tasks.StopApplication.
I browsed through the jar files under
C:\Program Files\WebSphere\AppServer\lib
and found the class in wsanttasks.jar
Then I got this next error message
[wsStopApp] Stopping Application [C:\Documents and Settings\JNg\My Documents\devel\deploy automation\WebSphere\HelloEAR]...
  [wsadmin] WASX7023E: Error creating "SOAP" connection to host "localhost"; exception information:java.lang.NoClassDefFoundError: com/sun/mail/util/BASE64DecoderStream
  [wsadmin] WASX7213I: This scripting client is not connected to a server process; please refer to the log file C:\Program Files\WebSphere\AppServer\logs\wsadmin.traceout for additional information.
  [wsadmin] WASX7017E: Exception received while running file "C:\DOCUME~1\JNg\LOCALS~1\Temp\wsant28410jacl" ; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression: java.lang.NoClassDefFoundError: com/ibm/logging/LoggerCfg
  [wsadmin] Java Result: 105
Apparently it could not find the classes com/ibm/logging/LoggerCfg and com/sun/mail/util/BASE64DecoderStream. I could not find them either under C:\Program Files\WebSphere\AppServer\lib. Does any one know where they are? or better yet, is there another scripts or ant tasks that helps us setup the correct classpath so we don't have to look through all the jar files each time we run a different ant tasks. It is very time consuming and tedious.

James Ng
Reply With Quote
  #2 (permalink)  
Old November 28th, 2003, 12:59 AM
Registered User
Join Date: Nov 2003
Location: chennai, tn, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

hi i have got a solution for u'r problem.

my Name = shanmugam

location = india - (city : chennai)

I had the same problem, so I can help you on that.
You need to include 2 jar files into a class path for the wsadmin.

1) in C:\Program Files\WebSphere\AppServer\bin there is a file called setupCmdLine.bat
2) edit it and chenge the line

SET WAS_CLASSPATH=%WAS_HOME%/properties;%WAS_HOME%/lib/bootstrap.jar;%WAS_HOME%/lib/j2ee.jar;%WAS_HOME%/lib/lmproxy.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/mail.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/log.jar

so that includes the MAIL.JAR and LOG.JAR.

Reply With Quote
  #3 (permalink)  
Old March 9th, 2005, 06:32 PM
Registered User
Join Date: Mar 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Thank you SO MUCH for posting this!

You are a life saver!

Reply With Quote
  #4 (permalink)  
Old February 11th, 2008, 06:42 AM
Registered User
Join Date: Feb 2008
Location: , , United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


this error happened to me on an AIX box. Out of the blue the profile stopped SOAPing. wsadmin.sh came back with the message java.lang.NoClassDefFoundError com.sun.mail.util.BASE64DecoderStream
and that the Admin service was not available. This was on a Standalone WebSphere 6.1 server that had been started (duh).
The fix was to restore the java directory from a backup i had made.

The only thing (though i didn't look too long at the issue) that i saw wrong with the old java was that the COPYRIGHT file went from 907 bytes to a whopping 105512960.

Hope this helps

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving classpath with ant <xslt> task igraham XSLT 9 September 26th, 2007 03:37 PM
Logging problem with IBM Websphere 6.1 NEO1976 Pro Java 0 April 20th, 2007 09:01 AM
Ch11 Exerc 3 Appendix A problem VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 16th, 2006 02:41 PM

All times are GMT -4. The time now is 05:54 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.