This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have installed oc4j and when I start the server using the command java -jar oc4j.jar I am getting the following error.
D:\oc4j_extended\j2ee\home>java -jar oc4j.jar java.lang.ClassNotFoundException: oracle.dms.instrument.DMSConsole at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:183) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at com.evermind.server.ApplicationServer.initConsole(ApplicationServer.java:2824) at com.evermind.server.OC4JServer.main(OC4JServer.java:198) Unable to initialize DMS racle.dms.instrument_stub.DMSConsole java.lang.NoClassDefFoundError: javax/mail/internet/AddressException at com.evermind.server.ApplicationServerLauncher.run(ApplicationServer Launcher.java:46) at java.lang.Thread.run(Thread.java:479) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:49)
I have jdk1.3 and the operating system is Windows XP.
Please help me out by providing the solution for the same.
"Jyo", We're pleased to have you here with us in the J2EE forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Jyothi, Thanks for changing the display name. Now that you have a proper name, I can welcome you to JavaRanch! It's still ok to sign your posts Jo or Jyo if that's what you prefer to be called. It's just the display name that we care about.
I'm going to ask for this post to be moved to the Oracle forum where someone is more likely to know the answer.
Jo, First of all, are you using a version of OC4J that is compatible with JDK 1.3? Usually the FAQ for your OC4J version tells you what JDK version it is compatible with. You may find a link to the relevant FAQ from this Web page:
Secondly, you may have a corrupt installation. I haven't verified this, but I believe your missing class is in the "dms.jar" file. I suggest you check whether this file exists (somewhere below the "D:\oc4j_extended" directory).
Good Luck, Avi.
Joined: May 28, 2005
Thanks for the response.
I am using the oc4j Version 126.96.36.199.0 and it is compatible with jdk1.3. Infact I took the oc4j_extended and jdk folders from the machine where it is working and have copied the same in the new machine (where I have installed XP) and have set the path for the jdk. Regarding dms.jar, I will check the jar file for the existence of the class file ( oracle.dms.instrument.DMSConsole ).