Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while starting oc4j

 
Jyothi Kamatham
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.

Thanks
Jo
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34097
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.

Thanks,
Jeanne
Forum Bartender
 
Jyothi Kamatham
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

I have updated my profile accordingly and sorry for the inconvenience.

Thanks
Jyothi
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34097
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://www.oracle.com/technology/tech/java/oc4j/index.html

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.
 
Jyothi Kamatham
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Avi,

Thanks for the response.

I am using the oc4j Version 9.0.2.0.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 ).

Let me know if am missing anything.

Thanks
Jyothi
 
Jyothi Kamatham
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Avi,

Thanks for the clue...

I got the solution and now its working fine.

Thanks
Jyothi
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jyothi Kamatham:
I got the solution and now its working fine.
Jyothi

And the solution you found was ...?
 
Jyothi Kamatham
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The dms.jar was missing in lib folder and I have added the same.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic