Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Ant Ojdeploy to create Jar

adfLearnerSep 5 2018

Hi ,

Jdev version - Studio Edition Version 12.2.1.3.0

I have two projects in my application. One project is deployed as Java Jar and other one as ADFLibrary Jar

Is it okay to use ojdeploy to create Java Jar and ADFLibrary Jar or ojdeploy should only be used for ADFLibrary jar.

Here is the log when ojdeploy is used to create Java Jar.... Jar is getting generated but with some errors in log.

[ora:ojdeploy] ----build file----

[ora:ojdeploy] <?xml version = '1.0' standalone = 'yes'?>

[ora:ojdeploy] <ojdeploy-build basedir="/P:/20180904_Jdev/ExternalCommonApps/deploy/">

[ora:ojdeploy]    <defaults>

[ora:ojdeploy]       <parameter name="statuslogfile" value="P:\20180904_Jdev\ExternalCommonApps\deploy/ojdeploy-statuslog.xml"/>

[ora:ojdeploy]    </defaults>

[ora:ojdeploy]    <deploy command="deployToArchive">

[ora:ojdeploy]       <parameter name="workspace" value="P:\20180904_Jdev\ExternalCommonApps\ExternalCommonApps.jws"/>

[ora:ojdeploy]       <parameter name="project" value="BIPServiceModel"/>

[ora:ojdeploy]       <parameter name="outputfile" value="P:\20180904_Jdev/ExternalCommonApps/deploy/BIPServiceModel.jar"/>

[ora:ojdeploy]       <parameter name="profile" value="*"/>

[ora:ojdeploy]    </deploy>

[ora:ojdeploy] </ojdeploy-build>

[ora:ojdeploy] ------------------

[ora:ojdeploy] Sep 05, 2018 7:39:57 PM oracle.ide.osgi.extension.internal.ClassLoaderProxy fullyLoadExtensionIfNeeded

[ora:ojdeploy] SEVERE: Failed while fully loading oracle.jdeveloper.webservice.share , trigerring class -> oracle.jdevimpl.webservices.ide.InterruptableHttpURLFileSystemHelperDecorator

[ora:ojdeploy] java.lang.IllegalStateException: Illegal attempt to load extension: oracle.jdeveloper.webservice.share. Extension loading code (such as hook handlers) cannot execute a code path that requires fully loading a different extension outside of the dependency chain.

[ora:ojdeploy] at oracle.ideimpl.extension.ExtensionManagerImpl.fullyLoadExtension(ExtensionManagerImpl.java:1599)

[ora:ojdeploy] at oracle.ide.osgi.extension.internal.ClassLoaderProxy.fullyLoadExtensionIfNeeded(ClassLoaderProxy.java:162)

[ora:ojdeploy] at oracle.ide.osgi.extension.internal.ClassLoaderProxy.loadMetaClass(ClassLoaderProxy.java:130)

[ora:ojdeploy] at javax.ide.util.MetaClass.toClass(MetaClass.java:104)

[ora:ojdeploy] at javax.ide.util.MetaClass.toClass(MetaClass.java:95)

[ora:ojdeploy] at oracle.ideimpl.net.LazyURLFileSystemHelperDecorator.getDecorator(LazyURLFileSystemHelperDecorator.java:65)

[ora:ojdeploy] at oracle.ideimpl.net.LazyURLFileSystemHelperDecorator.hashCode(LazyURLFileSystemHelperDecorator.java:176)

[ora:ojdeploy] at oracle.ide.net.URLFileSystem.hashCode(URLFileSystem.java:607)

[ora:ojdeploy] at oracle.ide.net.URLFactory.intern(URLFactory.java:420)

[ora:ojdeploy] at oracle.javatools.data.Structure.intern(Structure.java:60)

[ora:ojdeploy] at oracle.javatools.data.Structure.intern(Structure.java:44)

[ora:ojdeploy] at oracle.javatools.data.ListStructure.add(ListStructure.java:101)

[ora:ojdeploy] at oracle.ide.marshal.xml.StructureIO$StructureHandler.startListElement(StructureIO.java:818)

[ora:ojdeploy] at oracle.ide.marshal.xml.StructureIO$StructureHandler.startElement(StructureIO.java:777)

[ora:ojdeploy] at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1648)

[ora:ojdeploy] at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:471)

[ora:ojdeploy] at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:417)

[ora:ojdeploy] at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:251)

[ora:ojdeploy] at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:298)

[ora:ojdeploy] at oracle.ide.marshal.xml.StructureIO.parseWithSAX(StructureIO.java:266)

[ora:ojdeploy] at oracle.ide.marshal.xml.StructureIO.loadUsingSAX(StructureIO.java:226)

[ora:ojdeploy] at oracle.ide.marshal.xml.StructureIO.loadImpl(StructureIO.java:167)

[ora:ojdeploy] at oracle.ide.marshal.xml.StructureIO.loadImpl(StructureIO.java:156)

[ora:ojdeploy] at oracle.ide.marshal.xml.HashStructureIO.open(HashStructureIO.java:67)

[ora:ojdeploy] at oracle.ide.config.Preferences.open(Preferences.java:226)

[ora:ojdeploy] at oracle.ide.config.Preferences.getPreferences(Preferences.java:72)

[ora:ojdeploy] at oracle.ideimpl.searchbar.SearchBarHook.addProviders(SearchBarHook.java:82)

[ora:ojdeploy] at oracle.ideimpl.searchbar.SearchBarHook.access$000(SearchBarHook.java:33)

[ora:ojdeploy] at oracle.ideimpl.searchbar.SearchBarHook$1.elementVisited(SearchBarHook.java:62)

[ora:ojdeploy] at oracle.ide.extension.HashStructureHook._fireElementVisitedEvent(HashStructureHook.java:304)

[ora:ojdeploy] at oracle.ide.extension.HashStructureHook.end(HashStructureHook.java:133)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerReader.callElementEnd(LayerReader.java:373)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerReader.scan(LayerReader.java:315)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerReader.scanChildren(LayerReader.java:287)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerHookRegistry.scanHooks(LayerHookRegistry.java:344)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerHookRegistry.loadTriggers(LayerHookRegistry.java:270)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerHookRegistry.registerExtensions(LayerHookRegistry.java:215)

[ora:ojdeploy] at oracle.ideimpl.extension.LayerHookRegistry.initExtension(LayerHookRegistry.java:110)

[ora:ojdeploy] at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtension(ExtensionManagerImpl.java:2342)

[ora:ojdeploy] at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(ExtensionManagerImpl.java:2300)

[ora:ojdeploy] at oracle.ideimpl.extension.ExtensionManagerImpl.initializeExtensionRegistry(ExtensionManagerImpl.java:848)

[ora:ojdeploy] at oracle.ide.osgi.extension.ExtensionManagerOSGiImpl.initialize(ExtensionManagerOSGiImpl.java:61)

[ora:ojdeploy] at javax.ide.Service.getService(Service.java:68)

[ora:ojdeploy] at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:472)

[ora:ojdeploy] at oracle.ide.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:184)

[ora:ojdeploy] at oracle.ide.IdeCore.startupImpl(IdeCore.java:1578)

[ora:ojdeploy] at oracle.ide.Ide.startup(Ide.java:770)

[ora:ojdeploy] at oracle.jdevimpl.deploy.boot.DeployStarter.startIdeImpl(DeployStarter.java:128)

[ora:ojdeploy] at oracle.jdevimpl.deploy.boot.DeployStarter.startIde(DeployStarter.java:85)

[ora:ojdeploy] at oracle.ide.osgi.Activator.start(Activator.java:204)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)

[ora:ojdeploy] at java.security.AccessController.doPrivileged(Native Method)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1184)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)

[ora:ojdeploy] at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)

[ora:ojdeploy] at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)

[ora:ojdeploy] at org.netbeans.core.netigso.Netigso.start(Netigso.java:191)

[ora:ojdeploy] at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:209)

[ora:ojdeploy] at org.netbeans.ModuleManager.enable(ModuleManager.java:1359)

[ora:ojdeploy] at org.netbeans.ModuleManager.enable(ModuleManager.java:1163)

[ora:ojdeploy] at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)

[ora:ojdeploy] at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)

[ora:ojdeploy] at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)

[ora:ojdeploy] at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)

[ora:ojdeploy] at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)

[ora:ojdeploy] at org.netbeans.core.startup.Main.start(Main.java:307)

[ora:ojdeploy] at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)

[ora:ojdeploy] at java.lang.Thread.run(Thread.java:748)

[ora:ojdeploy]

[ora:ojdeploy] Sep 05, 2018 7:39:58 PM oracle.jdevimpl.vcs.svn.client.SVNClientRegistry initialize

[ora:ojdeploy] INFO: discovered native svn client with version: 1.8.1

[ora:ojdeploy] Sep 05, 2018 7:39:58 PM oracle.jdevimpl.vcs.svn.client.SVNClientRegistry initialize

[ora:ojdeploy] INFO: discovered SVNKit client with version: SVNKit/1.8.10 Client Installed, JNA (https://jna.dev.java.net/) Disabled

[ora:ojdeploy] [07:39:59 PM] ----  Deployment started.  ----

[ora:ojdeploy] [07:39:59 PM] Target platform is Standard Java EE.

[ora:ojdeploy] [07:39:59 PM] Running dependency analysis...

[ora:ojdeploy] [07:39:59 PM] Building...

[ora:ojdeploy] Compiling...

[ora:ojdeploy] Sep 05, 2018 7:39:59 PM oracle.security.jps.util.JpsUtil disableAudit

[ora:ojdeploy] INFO: JpsUtil: isAuditDisabled set to true

[ora:ojdeploy]

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\bin\javac

[ora:ojdeploy] -source 1.8

[ora:ojdeploy] -target 1.8

[ora:ojdeploy] -verbose

[ora:ojdeploy] -encoding Cp1252

[ora:ojdeploy] -bootclasspath

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\jre\lib\resources.jar;

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\jre\lib\rt.jar;

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\jre\lib\jsse.jar;

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\jre\lib\jce.jar;

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\jre\lib\charsets.jar;

[ora:ojdeploy] C:\Oracle12c\Middleware\Oracle_Home\oracle_common\jdk\jre\lib\jfr.jar

Regards,

adfLearner

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2018
Added on Sep 5 2018
0 comments
567 views