Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Build Error with Weblogic10.3 and Ant 1.6.5

 
Arun Rama
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am trying to build my ear with weblogic10.3 and Ant1.6.5. I have weblogic.jar in my classpath. When doing a build I get the following error:
BUILD FAILED
java.lang.NoClassDefFoundError: weblogic/utils/NestedException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:298)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
at org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:114)
at org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:100)
at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
at org.apache.tools.ant.Main.runBuild(Main.java:653)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.NestedException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 30 more


I ran Ant diagnostics and the output is:
------- Ant diagnostics report -------
Apache Ant version 1.6.5 compiled on June 2 2005
-------------------------------------------
Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks : 1.6.5
optional tasks : 1.6.5
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /opt/beahome10.3/modules/org.apache.ant_1.6.5
ant-all.jar (714 bytes)
ant-antlr.jar (5667 bytes)
ant-apache-bcel.jar (8617 bytes)
ant-apache-bsf.jar (12597 bytes)
ant-apache-log4j.jar (3022 bytes)
ant-apache-oro.jar (48034 bytes)
ant-apache-regexp.jar (3724 bytes)
ant-apache-resolver.jar (4082 bytes)
ant-commons-logging.jar (3864 bytes)
ant-commons-net.jar (35303 bytes)
ant-icontract.jar (9721 bytes)
ant-jai.jar (21359 bytes)
ant-javamail.jar (6761 bytes)
ant-jdepend.jar (8160 bytes)
ant-jmf.jar (6605 bytes)
ant-jsch.jar (22726 bytes)
ant-junit.jar (74237 bytes)
ant-launcher.jar (9180 bytes)
ant-netrexx.jar (9998 bytes)
ant-nodeps.jar (421008 bytes)
ant-starteam.jar (35472 bytes)
ant-stylebook.jar (2328 bytes)
ant-swing.jar (6763 bytes)
ant-trax.jar (68841 bytes)
ant-vaj.jar (49742 bytes)
ant-weblogic.jar (14363 bytes)
ant-xalan1.jar (4465 bytes)
ant-xslp.jar (2244 bytes)
ant.jar (1034506 bytes)
xercesImpl.jar (1010675 bytes)
xml-apis.jar (124724 bytes)

-------------------------------------------
Tasks availability
-------------------------------------------
p4opened : Not Available
image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
sshexec : Missing dependency com.jcraft.jsch.UserInfo
servicegen : Missing dependency weblogic.utils.NestedException
scp : Missing dependency com.jcraft.jsch.UserInfo
wspackage : Missing dependency weblogic.utils.NestedException
compliance : Missing dependency weblogic.utils.NestedException
p4changes : Not Available
wsdlgen : Missing dependency weblogic.utils.NestedException
p4versionstring : Not Available
autotype : Missing dependency weblogic.utils.NestedException
wsdl2service : Missing dependency weblogic.utils.NestedException
wsgen : Missing dependency weblogic.utils.NestedException
ddinit : Not Available
jdepend : Missing dependency jdepend.xmlui.JDepend
clientgen : Missing dependency weblogic.utils.NestedException
junit : Missing dependency junit.framework.Test
wlconfig : Missing dependency weblogic.management.WebLogicObjectName
source2wsdd : Missing dependency weblogic.utils.NestedException

-------------------------------------------
org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
XML Parser information
-------------------------------------------
weblogic/utils/NestedException


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, it would help if you indicated which target/task is getting the problem. You might have the classpath set correctly for building, but not for a wls-specific ant task.

Second, run with the -v option - if the problem is really one of compiling then the -v option prints the classpath used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic