Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application build error in WebLogic Server using weblogic.appc in Apache ANT 1.7.1  RSS feed

Verma Neeraj
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am migrating an application from weblogic 8.1 to weblogic 10.3.5 version.
while building application through ant script; I am getting below error:-
[java] Usage: java weblogic.appc [options] <ear, jar, war or rar file or directory> [java] [java] where options include: [java] -help Print the standard usage message. [java] -version Print version information. [java] -output <file> Specifies an alternate output archive or [java] directory. If not set, output will be [java] placed in the source archive or directory. [java] -plan <file> Specifies an optional deployment plan. [java] -forceGeneration Force generation of EJB and JSP classes. [java] Without this flag the classes may not be [java] regenerated if it is determined to be [java] unnecessary. [java] -quiet Turns off output except for errors [java] -lineNumbers Add JSP line numbers to generated class [java] files to aid in debugging. [java] -library <file> Comma-separated list of libraries. Each [java] library may optionally set its name and [java] versions, if not already set in its [java] manifest, using the following syntax: <file> [java] [@name=<string>@libspecver=<version> [java] @libimplver=<version|string>] [java] -librarydir <dir> Registers all files in specified directory [java] as libraries. [java] -writeInferredDescriptors Write out the descriptors with inferred [java] information including annotations. [java] -manifest <file> Include manifest information from specified [java] manifest file. [java] -clientJarOutputDir <dir> Specifies a directory to put generated [java] client jars. [java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/j2ee/J2EELogger [java] -keepgenerated Keep the generated .java files. [java] -verbose Compile with verbose output. [java] -classpath <path> Classpath to use. [java] -source <source> Source version. [java] -target <target> Target version. [java] -advanced Print advanced usage options. [java] [java] at weblogic.application.compiler.Appc.runBody( [java] at [java] at [java] at weblogic.application.compiler.Appc.main( [java] at weblogic.appc.main( [java] Caused by: java.lang.ClassNotFoundException: weblogic.j2ee.J2EELogger [java] at$ [java] at Method) [java] at [java] at java.lang.ClassLoader.loadClass( [java] at sun.misc.Launcher$AppClassLoader.loadClass( [java] at java.lang.ClassLoader.loadClass( [java] ... 5 more

Below are ANT script which I am running over it.

<java classname="weblogic.appc" failonerror="true" fork="true" maxmemory="512m"> <arg value="-disableHotCodeGen"/> <arg line="-verbose"/> <arg line="${weblogic.arg.line.compiler}"/> <arg line="-compilerclass"/> <arg line="${weblogic.appc.options}"/> <arg value="${compile.dir}/${ejb.domain}-ejbc.jar"/> <arg value="${project.dir}/src/java"/> <arg value="${compile.dir}/ejb/${ejb.domain}"/> <classpath> <path refid="weblogic.classpath"/> <path refid="project.classpath"/> <fileset dir="${java.home}/../lib" includes="tools.jar"/> </classpath> </java>

Even though I am not able to find java.lang.NoClassDefFoundError: weblogic/j2ee/J2EELogger . which jar does supports this? Also I have set PATH and CLASSPATH properly.
Let me know if more information is required from my side.
Thanks in Advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!