java.lang.NoClassDefFoundError: weblogic/utils/Debug

We use WLDeploy as an ant task to hot deploy our ears into weblogic via an ant script. I am moving that over to maven. I had the dependency for weblogic.jar but got the error;

[INFO] ---------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------
[INFO] An Ant BuildException has occured: java.lang.NoClassDefFoundError: weblogic/utils/Debug
 weblogic.utils.Debug

I needed to add the wlfullclient.jar as a dependency and then add it to the classpathref for the ant target inside the pom.

NoClassDefFoundError: weblogic/j2ee/descriptor/wl/DeploymentPlanBean

Following on from this issue; next bump in using WLDeploy;

 Error J2EE Deployment SPI BEA-260125 Errors detected attempting to communicate with admin server: [J2EE Deployment SPI:260111]
Errors detected attempting to communicate with admin server.
weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260111]Errors detected attempting to communicate with admin server.
at weblogic.deploy.api.spi.deploy.mbeans.MBeanCache.getMBeans(MBeanCache.java:65)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getModules(ModuleCache.java:85)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getResultTmids(ModuleCache.java:305)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.updateTmids(ProgressObjectImpl.java:181)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.getResultTargetModuleIDs(ProgressObjectImpl.java:158)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.reportEvent(ProgressObjectImpl.java:334)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl$TaskPoller.poll(ServerConnectionImpl.java:1067)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl$TaskPoller.run(ServerConnectionImpl.java:1032)
java.lang.NoClassDefFoundError: weblogic/j2ee/descriptor/wl/DeploymentPlanBean
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:409)
at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:306)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:501)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:264)
at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:636)
at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:200)
at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:431)
at $Proxy6.getAppDeployments(Unknown Source)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getTypedMBeans(ModuleCache.java:55)
at weblogic.deploy.api.spi.deploy.mbeans.MBeanCache.getMBeans(MBeanCache.java:56)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getModules(ModuleCache.java:85)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getResultTmids(ModuleCache.java:305)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.updateTmids(ProgressObjectImpl.java:181)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.getResultTargetModuleIDs(ProgressObjectImpl.java:158)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.reportEvent(ProgressObjectImpl.java:334)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl$TaskPoller.poll(ServerConnectionImpl.java:1067)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl$TaskPoller.run(ServerConnectionImpl.java:1032)
java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.wl.DeploymentPlanBean
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:409)
at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:306)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:501)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:264)
at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:636)
at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:200)
at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:431)
at $Proxy6.getAppDeployments(Unknown Source)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getTypedMBeans(ModuleCache.java:55)
at weblogic.deploy.api.spi.deploy.mbeans.MBeanCache.getMBeans(MBeanCache.java:56)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getModules(ModuleCache.java:85)
at weblogic.deploy.api.spi.deploy.mbeans.ModuleCache.getResultTmids(ModuleCache.java:305)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.updateTmids(ProgressObjectImpl.java:181)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.getResultTargetModuleIDs(ProgressObjectImpl.java:158)
at weblogic.deploy.api.spi.status.ProgressObjectImpl.reportEvent(ProgressObjectImpl.java:334)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl$TaskPoller.poll(ServerConnectionImpl.java:1067)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl$TaskPoller.run(ServerConnectionImpl.java:1032)

The solution is to add com.bea.core.desriptor.wl_1.1.0.0.jar to the classpath for the WLDeploy task. Now the ear is deploying via maven through ant to weblogic.

Where is Ant in OSX

I wanted to add the svnantlib.xml to my system after getting this error on an ant build:

[typedef] Could not load definitions from resource org/tigris/subversion/svnant/svnantlib.xml. It could not be found.

I downloaded the necessary libraries from http://subclipse.tigris.org/svnant.html but had to cut and paste them into ant's lib directory. On OSX the ant stuff is found in /usr/bin/ and is a link to;

lrwxr-xr-x  1 root  wheel    22B Nov  1 08:32 ant -> /usr/share/ant/bin/ant

Which an ls returns;

localhost-cde:ant cam.riley$ pwd
/usr/share/ant
localhost-cde:ant cam.riley$ ls -lha
total 16
drwxr-xr-x   7 root  wheel   238B Sep 21 14:10 .
drwxr-xr-x  15 root  wheel   510B Nov  1 08:32 ..
-rw-r--r--   1 root  wheel    15K Sep 21 14:10 LICENSE.txt
-rw-r--r--   1 root  wheel   218B Sep 21 14:10 NOTICE.txt
drwxr-xr-x   8 root  wheel   272B Sep 21 14:10 bin
drwxr-xr-x  15 root  wheel   510B Sep 21 14:10 etc
drwxr-xr-x  36 root  wheel   1.2K Sep 21 14:10 lib

Which can then be dumped in the lib. \o/ hooray.

Most Popular on South Sea Republic

The articles that have been viewed the most:

Most Popular Restaurants in Phoenix

Phoenix Eats Out is the restaurant review site for Phoenix, Scottsdale and Old Town Scottsdale which lists the modernist and contemporary restaurants, taverns and bars in the greater Phoenix area. This is the list of the most popular restaurants pages from phoenixeatsout.com that have been viewed the most; My personal favourite restaurants in Phoenix are AZ88, Postinos, Bomberos with Grazie, Humble Pie, Orange Table, The Vig, Fez and others coming close behind. View the complete list with the photo-journalistic style images on phoenixeatsout.com

Most Popular Hikes in Arizona

Arizona is an outdoor state and has lots of hiking in the city and around the state. Phoenix is unusual for most cities in having several large mountains in the center of the city with great hiking. Anyone who comes to Phoenix has to do the Echo Canyon trail on Camelback and the Summit Hike on Squaw Peak or Piesta Peak. The views of the city, suburbs and surrounding mountains are wonderful from Camelback and Piesta Peak. For more experienced hikers there is the McDowell Mountains in North Scottsdale that has several difficult and strenuous hikes in Tom's Thumb and Bell Pass. Alternatively, you can hike the highest mountain in Arizona. At 12,600 feet Humphrey's Peak is a long and difficult hike.

Alternate Australian Constitutions

Between 2004 and 2009 this site, southsearepublic.org, was a constitutional blog based on scoop which focused on Australian and global constitutional issues. One of the strongest aspects of it was the development of constitutions by those involved in the blog. These constitutions are the outcome: The constitutions were built using principles from Montesquieu's separation of powers, the enlightnment's universal political rights and the ancient Athenian technology of sortition and choice by lot.

Archives For South Sea Republic

South Sea Republic started in 2004 as an Australian constitutional blog in 2004 based on scoop software. It was an immigrative outgrowth of Kuro5hin. The archives for each year since then; The articles are ordered by views.

Who Is Cam Riley

Cam Riley I am an Australian living in the United States as a permanent resident. I am a software developer by trade and mostly work in Java and jump between middleware and front end. I originally worked in the New York area of the United States in telecommunications before moving to Washington DC and working in a mix of telecommunications, energy and ITS. I started my own software company before heading out to Arizona and working with Shutterfly. Since then I have joined a startup in the Phoenix area and am thoroughly enjoying myself.

I do a lot of photography which I post on this website, but also on flickr. I have a photo-journalistic website which lists the modernist and contemporary restaurants in phoenix. I have a site on the Australian Flying Corps [AFC] which has been around since the 1990s and which I unfortunately lost the .org URL to during a life event; however, it is under the www.australianflyingcorps.com URL now. The AFC website has gone through several iterations since the 90s and the two most recent are Australian Flying Corps Archives(2004-2002) and Australian Flying Corps Archives(2002-1999) which are good places to start.

Websites Worth Reading

Websites of friends, colleagues and of interest;