Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

weblogic/utils/compiler/Tool

 
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)
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • 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.
 
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
 
Greenhorn
Posts: 3
Eclipse IDE Chrome 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
 
ice is for people that are not already cool. Chill with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic