Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

weblogic/utils/compiler/Tool

 
Jenny Lan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help. I have jdk1.6.0_24, have included wlfullclient.jar, tool.jar weblogic.jar xbeam.jar and weblogic-container-binding.jar in classpath, but I got errors as below.
I don't have weblogic installed in my system.

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/compiler/Tool
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClassCond(Unknown Source)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at java.security.SecureClassLoader.defineClass(Unknown Source)
[java] at java.net.URLClassLoader.defineClass(Unknown Source)
[java] at java.net.URLClassLoader.access$000(Unknown Source)
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at weblogic.appc.main(appc.java:14)
[java] Caused by: java.lang.ClassNotFoundException: weblogic.utils.compiler.Tool
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
 
Greg Charles
Sheriff
Posts: 2993
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jenny, welcome to JavaRanch!

I believe you get that error when you try to precompile JSPs, but don't have the compiler available. I think the fix may be as simple turning off the precompilation, but I'll move this to our WebLogic forum and let the real experts weigh in.
 
Jon Anslow
Greenhorn
Posts: 16
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jenny,

I have just created a wlfullclient.jar against WebLogic 10.3.5 Using the WebLogic JarBuilder Tool

and it does contain the weblogic.utils.compiler.Tool Class. Can you verify that the Tool Class is present in the wlfullclient.jar that you have?

You mention you do not have WebLogic installed so to try and establish the version of WebLogic that the wlfullclient.jar you have was created against you could check the MANIFEST.MF file to see the version against the Implementation-Version. An example snippet below:

Implementation-Version: 10.3.5.0

For further info - The individual JAR that contains the Tool Class in the version of WebLogic I am using is in WL_INSTALLATION_DIRECTORY/modules/com.bea.core.utils.full_1.9.0.1.jar and the contents of this JAR should get pulled into the wlfullclient.jar.

The stacktrace you posted also refers to appc? Are you trying to compile something using the appc tool


Jon
 
Vikas Baranwal
Greenhorn
Posts: 3
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey I am facing the same issue,

my stacktrace is as below:

ejbjar:
[mkdir] Created dir: C:\Development_Project\HedgePortal_3.8\stage\ejbjar\main
[ejbjar] building HedgePortalServiceEJB with 6 files
[ejbc] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/compiler/Tool
[ejbc] at java.lang.ClassLoader.defineClass1(Native Method)
[ejbc] at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
[ejbc] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[ejbc] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[ejbc] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[ejbc] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[ejbc] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ejbc] at java.security.AccessController.doPrivileged(Native Method)
[ejbc] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ejbc] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
[ejbc] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[ejbc] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
[ejbc] at weblogic.appc.main(appc.java:14)
[ejbc] Caused by: java.lang.ClassNotFoundException: weblogic.utils.compiler.Tool
[ejbc] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[ejbc] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ejbc] at java.security.AccessController.doPrivileged(Native Method)
[ejbc] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ejbc] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
[ejbc] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[ejbc] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
[ejbc] ... 13 more

BUILD FAILED
C:\Development_Project\HPC3.8\build.xml:986: The following error occurred while executing this line:
C:\Development_Project\HPC3.8\build\build-ejb.xml:112: Exception while calling weblogic.appc. Details: Ejbc reported an error

Struggling with this error from past two days,could anybody help me for this,Your help will be appreciated.
 
Jenny Lan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jon Anslow wrote:Hi Jenny,

I have just created a wlfullclient.jar against WebLogic 10.3.5 Using the WebLogic JarBuilder Tool

and it does contain the weblogic.utils.compiler.Tool Class. Can you verify that the Tool Class is present in the wlfullclient.jar that you have?

You mention you do not have WebLogic installed so to try and establish the version of WebLogic that the wlfullclient.jar you have was created against you could check the MANIFEST.MF file to see the version against the Implementation-Version. An example snippet below:

Implementation-Version: 10.3.5.0

For further info - The individual JAR that contains the Tool Class in the version of WebLogic I am using is in WL_INSTALLATION_DIRECTORY/modules/com.bea.core.utils.full_1.9.0.1.jar and the contents of this JAR should get pulled into the wlfullclient.jar.

The stacktrace you posted also refers to appc? Are you trying to compile something using the appc tool


Jon



I do have weblogic.utils.compiler.Tool Class in wlfullclient.jar. Could you please tell me how to turn off pre compilation ? I use eclipse build.xml to compile the files.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic