This discussion is archived
4 Replies Latest reply: Mar 4, 2011 1:43 AM by user609448 RSS

deploy to jar

user609448 Newbie
Currently Being Moderated
Hi.

I develop simple project based on JDeveloper 11G

ADF Business Components     11.1.1.56.60
BPMN Editor     11.1.1.3.0.6.84
CVS Version     Internal to Oracle JDeveloper 11g Release 1 (client-only)
Java(TM) Platform     1.6.0_23
Oracle IDE     11.1.1.3.37.56.60
SOA Composite Editor     11.1.1.3.0.25.57
Team Productivity Center     11.1.1.3.37.56.60
Versioning Support     11.1.1.3.37.56.60


I have tried to deploy my project to jar file using Developer deploy functionality.

I added manifest.mf file with all dependences. It looks like this:

Manifest-Version: 1.0
Class-Path: lib/xmlparserv2.jar lib/ojdbc6.jar lib/xdb.jar lib/orai18n-mapping.jar


After deployment in jar manifest.mf looks like this:


Manifest-Version: 1.0

Class-Path: lib/xmlparserv2.jar lib/ojdbc6.jar lib/xdb.jar lib/orai18n

-mapping.jar

Main-Class: client.handingXML



When I tried to run :

java -jar archive1.jar

As result got


E:\XML_Monitoring\database_monit>java -jar archive1.jar

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/DOMParser

at client.handingXML.ini_t(handingXML.java:76)

at client.handingXML.main(handingXML.java:254)

Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.DOMParser

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)



Where am I wrong ?


Thanks in advance for reply.
Andrii.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points