Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2003, 04:51 PM
Registered User
 
Join Date: Sep 2003
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=".">
    <description>
        websphere admin
    </description>

  <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}"
               wasHome="${wasHome}"
    />
  </target>

</project>

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
------------------------------------------------------------------
stopApp:
[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
[email protected]
 
Old November 28th, 2003, 01:59 AM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default


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.


 
Old March 9th, 2005, 07:32 PM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thank you SO MUCH for posting this!

You are a life saver!

:D
 
Old February 11th, 2008, 07:42 AM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

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






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 03:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.