{"id":1405,"date":"2009-11-25T18:32:04","date_gmt":"2009-11-25T22:32:04","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/"},"modified":"2015-12-03T09:06:09","modified_gmt":"2015-12-03T13:06:09","slug":"exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/","title":{"rendered":"Exception in thread &#8220;main&#8221; java. lang. NoClassDefFoundError : weblogic\/WLST"},"content":{"rendered":"<p>This is my first attempt\u00a0with\u00a0WLST (<strong>W<\/strong>eb<strong>L<\/strong>ogic <strong>S<\/strong>cripting <strong>T<\/strong>ool) which is scripting tool to create , manage and monitor webLogic domains, more information <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E12839_01\/web.1111\/e13715\/using_wlst.htm\" target=\"_blank\">here<\/a>\u00a0.<\/p>\n<p>.<\/p>\n<p>You can invoke WLST by running\u00a0 &#8220;<strong>java weblogic.WLST<\/strong>&#8221;<\/p>\n<p>I tried this on my WebLogic Server and straight hit error<br \/>\n_________<\/p>\n<p><span style=\"color: #ff0000;\">Exception in thread &#8220;main&#8221; java.lang.NoClassDefFoundError: weblogic\/WLST<br \/>\n_________<\/span><\/p>\n<p>I soon realised that <strong>jar <\/strong>file which contains class weblogic.WLST is missing from classpath and quick fix\u00a0is to set environment variable using <strong>setWLSEnv.sh<\/strong> (under WL_HOME\/server\/bin) . For Fusion MiddleWare\u00a0(FMW) 11g, it should be under <strong>$MW_HOME\/ wlserver_10.3\/ server\/ bin<\/strong><\/p>\n<p><strong><br \/>\n______<br \/>\n<\/strong>set environemnt variable for weblogic server<br \/>\ncd WL_HOME\/server\/bin<br \/>\n. .\/setWLSEnv.sh<br \/>\n______<\/p>\n<p><span style=\"color: #ff0000;\">$ java weblogic.WLST<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Initializing WebLogic Scripting Tool (WLST) &#8230;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Welcome to WebLogic Server Administration Scripting Shell<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Type help() for help on available commands<\/span><\/p>\n<p><span style=\"color: #ff0000;\">wls:\/offline&gt;<\/span><br \/>\n__________<\/p>\n<p>.<br \/>\nMore on WLST commands coming in next posts but here are some WLST basics<\/p>\n<p>.<\/p>\n<p><strong>1. <\/strong>WebLogic Scripting Tool (WLST) \u2013 is command line scripting tool to create , manage and monitor webLogic domains and resources\/applications deployed on WebLogic<\/p>\n<p><strong>2.<\/strong> WLST is based on <a href=\"http:\/\/en.wikipedia.org\/wiki\/Jython\" target=\"_blank\">Jython<\/a> based scripting language, which in turn is Java implementation\u00a0of Python.<\/p>\n<p><strong>3.<\/strong> WLST is used<br \/>\n&#8211; To automate common tasks<br \/>\n&#8211; If administration console is not available or as alternative to Administration Console<\/p>\n<p><strong>4.<\/strong> WLST can be run in <strong>offline<\/strong> and <strong>online <\/strong>mode<br \/>\n<strong>a) online mode<\/strong>&gt; interact with running weblogic server<br \/>\n<strong>b) offline mode<\/strong>&gt; servers in domain should be shutdown and WLST updates directly config.xml on file system<\/p>\n<p><strong>5.<\/strong> If you do not supply any script file then WLST runs in <strong>interactive<\/strong> mode.<br \/>\n<strong>6.<\/strong>You can generate WLST scripts via WebLogic Console as well -&gt; click on <strong>Record<\/strong> button on console after clicking \u2018<strong>Lock and Edit\u2019<\/strong> button on change center. To end recording click on \u2018<strong>Activate Changes\u2019<\/strong><\/p>\n<p>.<br \/>\n<a title=\"wlst record\" href=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG\"><img decoding=\"async\" src=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG\" alt=\"wlst record\" \/><\/a><\/p>\n<p>.<\/p>\n<p><strong>7.<\/strong> WLST communicates with Weblogic\u2019s <strong>MBean<\/strong> to retrieve and update resources on a running server.<\/p>\n<p>&nbsp;<\/p>\n<div style=\"padding: 15px; margin-bottom: 15px; background: #ffffde; border: 1px solid #ddd; width: 85%;\" align=\"center\">\n<h2 align=\"left\">Learn Oracle Weblogic Server Administration<\/h2>\n<p>&nbsp;<\/p>\n<p>Get 100 USD OFF + 100% Money Back Guarantee<\/p>\n<p><a href=\"http:\/\/www.k21technologies.com\/oracle-weblogic-admin-training\" target=\"_blank\">Click here to get Early Bird Discounts<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is my first attempt\u00a0with\u00a0WLST (WebLogic Scripting Tool) which is scripting tool to create , manage and monitor webLogic domains, [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[217,278],"tags":[],"class_list":["post-1405","post","type-post","status-publish","format-standard","hentry","category-weblogic","category-wlst"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Exception in thread &quot;main&quot; java. lang. NoClassDefFoundError : weblogic\/WLST -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Exception in thread &quot;main&quot; java. lang. NoClassDefFoundError : weblogic\/WLST -\" \/>\n<meta property=\"og:description\" content=\"This is my first attempt\u00a0with\u00a0WLST (WebLogic Scripting Tool) which is scripting tool to create , manage and monitor webLogic domains, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/\" \/>\n<meta property=\"article:published_time\" content=\"2009-11-25T22:32:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-03T13:06:09+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/\",\"name\":\"Exception in thread \\\"main\\\" java. lang. NoClassDefFoundError : weblogic\/WLST -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG\",\"datePublished\":\"2009-11-25T22:32:04+00:00\",\"dateModified\":\"2015-12-03T13:06:09+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#primaryimage\",\"url\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG\",\"contentUrl\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exception in thread &#8220;main&#8221; java. lang. NoClassDefFoundError : weblogic\/WLST\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Exception in thread \"main\" java. lang. NoClassDefFoundError : weblogic\/WLST -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/","og_locale":"en_US","og_type":"article","og_title":"Exception in thread \"main\" java. lang. NoClassDefFoundError : weblogic\/WLST -","og_description":"This is my first attempt\u00a0with\u00a0WLST (WebLogic Scripting Tool) which is scripting tool to create , manage and monitor webLogic domains, [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/","article_published_time":"2009-11-25T22:32:04+00:00","article_modified_time":"2015-12-03T13:06:09+00:00","og_image":[{"url":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG","type":"","width":"","height":""}],"author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/","url":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/","name":"Exception in thread \"main\" java. lang. NoClassDefFoundError : weblogic\/WLST -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#primaryimage"},"thumbnailUrl":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG","datePublished":"2009-11-25T22:32:04+00:00","dateModified":"2015-12-03T13:06:09+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#primaryimage","url":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG","contentUrl":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/11\/wlst1.JPG"},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/11\/25\/exception-in-thread-main-java-lang-noclassdeffounderror-weblogicwlst\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Exception in thread &#8220;main&#8221; java. lang. NoClassDefFoundError : weblogic\/WLST"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/1405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1405"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/1405\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}