Accessing third party jars in Web Start. (Urgent)

hi!
I have developed an application using jbuilder which uses thirdparty jars, i specify the jars in the project properties & the application runs fine , I tried to deploy that application using Java web start ,i copied all the third party jars in the same directory as the jnlp file's directory.
my jnlp file has a tag-<jar href="accessor.jar" />
in the manifest file of accessor.jar-I specified :-Class-Path: a1.jar a2.jar...........an.jar
since the application access the local file system,
i gave <security> <all-permissions/> </security>
i signed all the jar files.
When i deploy the application i get the following exception
java.lang.NoClassDefFoundError: a1/StringData
StringData is a class in a1.jar.
thus my application cannot access "a1.jar"
How do i solve this problem?
Thanks
Sudhanshu

The following is the jnlp file:-
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/AccessorApp" href="A.jnlp">
<information>
<title>Acessor Application</title>
<vendor>abcd</vendor>
<homepage href="A.html" />
</information>
<resources>
<j2se version="1.3+" />
<jar href="accessor.jar" />
<jar href="a1.jar" />
</resources>
<security> <all-permissions/></security>
<application-desc main-class="accessor.DataAccess" />
</jnlp>
I hope Duck Creek Software -JNLP Wrapper solves this problem.
Sudhanshu........

Similar Messages

  • Accessing third party jars - please help

    I have an application that I developed and put in a jar file.
    The application will run from the jar file and will run after
    it has been signed with a certificate from the signed jar file.
    I think I followed all the necessary steps according to the developer
    documentation.
    When I attempt the use it under webstart it fails with the
    following messages.
    Unable to open SQL connection. - openSQLConnection - Class not found exception
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at ca.wim.passport.startup.openSQLConnection(startup.java:692)
         at ca.wim.passport.startup.main(startup.java:1011)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    The manifest in my jar file looks like this after it is signed.
    Name: ca/wim/passport/
    Sealed: true
    Main-Class: ca.wim.passport.startup
    Class-Path: . images/ jars/commons-collections.jar jars/commons-digester.jar jars/commons-logging.jar jars/commons-logging-api.jar jars/commons-beanutils.jar jars/jasperreports.jar jars/dnsns.jar jars/kunststoff.jar jars/ldapsec.jar jars/localedata.jar jars/mysql-connector-java-3.0.6-stable-bin.jar jars/pjx.jar jars/sound.jar jars/sunjce_provider.jar
    Name: ca/wim/passport/
    Specification-Title: "Passport"
    Specification-Version: "1.0"
    Specification-Vendor: "WIM Consulting"
    Implementation-Title: "passport"
    Implementation-Version: "build34.9"
    Implementation-Vendor: "WIM Consulting"
    Sealed: true
    The classpath in the manifest has "jars/mysql-connector-java-3.0.6-stable-bin.jar"
    I signed all the third party jars and they are in a sub directory "jars" under
    the directory my jar file is in.
    My JNLP file looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for the Passport Application -->
    <jnlp spec="1.0+" codebase="http://localhost:8080/sterlingcrane/" href="passport.jnlp">
    <information>
    <title>Passport</title>
    <vendor>WIM Consulting</vendor>
    <homepage href="http://www.wim.ca"/>
    <description>Sterling Crane Passport.</description>
    <description kind="short">Passport</description>
    <icon href="WIMicon.gif" width="32" height="32"/>
    <icon href="WIMsplash.jpg" kind="splash"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="passport.jar"/>
    </resources>
    <application-desc main-class="ca.wim.passport.startup"/>
    </jnlp>
    I checked the files webstart downloaded and they are all were downloaded.
    The code from my program is as follows:
    String connectionDriver = "jdbc:mysql://localhost/passport?user=root&password="
    Class.forName(connectionDriver); // Load database driverYet I am getting "ClassNotFoundException" as if the program cannot find
    the third party jars.
    Obviously I am missing something?
    rykk

    Thanks I now have it working.
    With your suggestion I added a "jar href"
    for each of the third party jars.
    It does seem rather stupid to have to do this
    as the manifest already has the required information
    in it.
    rykk

  • Accessing third party code from JNI. URGENT !!!!

    Hi,
    I have to use a .so library (Solaris) from another company. As this library has not the correct syntax to be accessed from JNI, I made another .so that calls it.
    For compile this library I just need the header file and I can compile it succesfully, but when I run it, throws an error:
    relocation error: file /usuarios/davidj/java/jnitest/libtmlog.so: symbol lgprnERRPar: referenced symbol not found
    where lgprnERRPar is a function in the 3 party library.
    Can anybdy helps me, please???
    This is very urgent for me.
    Thanks in advance

    Hi,
    I've found
    http://forums.java.sun.com/thread.jsp?forum=52&thread=94378
    http://forums.java.sun.com/thread.jsp?forum=52&thread=95551
    http://forums.java.sun.com/thread.jsp?forum=52&thread=95531
    http://forums.java.sun.com/thread.jsp?forum=52&thread=95577
    http://forums.java.sun.com/thread.jsp?forum=52&thread=95549
    http://forums.java.sun.com/thread.jsp?forum=52&thread=95567
    http://forums.java.sun.com/thread.jsp?forum=52&thread=91606
    http://forums.java.sun.com/thread.jsp?forum=52&thread=93411
    http://forums.java.sun.com/thread.jsp?forum=52&thread=95728
    Hope it helps,
    Klaus

  • Question about using third party jar files in Java Web Start Environment

    Hi everybody, I got a very strange problem and still can't figer out how to solve it. Can anyone help to overcome this problem?? Thanks in advance.
    Question: I wrote a simple java swing application to connect to Oracle database. I packed whole my classes and a third party jar file(classes12.jar) to a new jar file named "IRMASSvrMgntGUI.jar" and then use command 'jarsigner' to signed IRMASSvrMgntGUI.jar. There is no problem when I execute 'java -jar IRMASSvrMgntGUI.jar' in the command line. But when I execute this application via Web Start Environment, an "java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    " error occured with the following detail log shown in Jave Web Start Console:
    =============================================================
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at DBConnection.getNewConnection(DBConnection.java:25)
         at IRMASSvrMgntGUI.actionPerformed(IRMASSvrMgntGUI.java:524)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    ==========================================================================
    contents of the manifest file I used to create this jar file are as follows
    ===================================
    Manifest-Version: 1.0
    Main-Class: IRMASSvrMgntGUI
    Class-Path: classes12.jar
    Created-By: 0.9a (itoh)
    ===================================
    and file structures in "IRMASSvrMgntGUI.jar" is
    ====================================
    META-INF/
    classes12.jar
    DBAuthenticateDialog.class
    DBConnection.class
    IRMASSvrMgntGUI.class
    ====================================

    If you directly include classes12.jar in IRMASSvrMgntGUI.jar, the classloader won't be able to find the classes inside classes12.jar. You should sign classes12.jar separately and include that in jnlp along with your application specific jar. When you're launching your app using "java -jar somefile.jar" then the classpath settings in manifest file are used, but that's not the case when you start using JWS since in this case the classpath is based only on the " <jar href=..." entries in jnlp.

  • Unable to access classes in third party jar files packaged with my ejb.jar

    I have packaged some third party jar files in my xxx_ejb.jar file.  The third party jar file contains classes that are accessed by some custom classes which are in turn accessed by my bean classes.  I get the following error when my custom classes attempt to use any of the classes in one of the third party jar files:
    java.lang.NoClassDefFoundError: com/Ostermiller/util/CSVParser
    Shouldn't I be able to access classes in jar files that are packaged with my xxx_ejb.jar file?  I see the xxx_ejb.jar file as a resource of the application classloader that contains it but I don't see the third party jar files.

    As per the Java EE specification, additional JAR files should be packaged on the EAR level. Only WAR files' WEB-INF/lib folder is scanned for JAR files to be added to the classloader.

  • A few questions about signing JARs for Web start

    I'm still a bit new to all this, so just want to clear a few things up.
    I'm currently trying to publish an application using Web start, so i know I have to sign all the JARs, as it needs to do some writing to the hard drive.
    1. I have my main JAR file, and then two "third party" JAR files in the /lib subfolder, I take it I need to sign those two as well, does it matter that I don't have the .class file for those two, as I didn't write them?
    2. I'm running the JARSIGNER program with exactly the same command line apart from the filename of the .jar file, is that correct? or do I need a different certificate for each .jar file?
    Just can't seem to get all three signed, Web start says one different one isn't signed each time I try it out.
    3. When signing, does it add something to the end of the JAR file itself? as I can't see any extra files created.

    Signing adds entries in the mainifest, not in the main file list in the jar file.
    You can sign third party jar files, but it is not advisable. An alternative is to put third party jars in a seperate extension jnlp file, if they need all-permissions, you can get the third party jars already signed by whoever supplied them. If not, you do not need to request all-permissions in the extension jnlp file, and that part of the code will be run in the secure sandbox.
    /Andy

  • OIM 11g Plugin - Third Party Jars : Classloader issue

    Hi All,
    I am having a Plugins.zip under middleware/Oracle_IDM1/server/plugins folder.  [OIM 11g R2]
    This gets invoked from a schedule job.
    I have third party Jars (axis.jar) within Plugins.zip/lib. My code within Plugins.zip calls Thrid Party APIs.
    Now the issue is:
    The APIs (within axis.jar) do not seem to find property files from within their own JARS.
    These property files are within their own Third Party Jars and the Third Party APIs should be able to access them by default. I have tested these APIs from stand alone clients and web clients, they work perfectly.
    But within the Plugins.zip, these third party APIs do not seem to find property files from within their own JARs.
    Looks like some class loader issue. Something must be getting messed up in the way the Third Party JARs from within the Plugins.zip/lib are loaded.
    Has anyone faced similar issue.
    Any suggestions please?
    Thanks,
    Sandeep

    I placed the required JARs under middleware/Oracle_IDM1/server/ThirdParty.
    I also executed UploadJars utility for required JARs.
    I have also added to server startup path : .../middleware/Oracle_IDM1/server/ThirdParty/axis.jar.
    But I still get the following Error:
    java.lang.ExceptionInInitializerError
    Caused By: java.util.MissingResourceException: Cannot find resource 'org.apache.axis.i18n.resource'
    I'm calling axis APIs from my code. The resource "org/apache/axis/i18n/resource.properties" is clearly present inside axis.jar.
    My client works when executed outside of Plugins.zip.
    Please see the full stack trace below:
    java.lang.ExceptionInInitializerError
            at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)
            at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:144)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
            at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
            at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
            at org.apache.axis.client.Service.getAxisClient(Service.java:104)
            at org.apache.axis.client.Service.<init>(Service.java:113)
            at org.my.company.webservice.SecurityQASyncWS_ServiceLocator.<init>(SecurityQASyncWS_ServiceLocator.java:12)
            at org.my.company.webservice.SecurityQASyncWSClient.invoke(SecurityQASyncWSClient.java:31)
            at com.my.company.idm.xl.schedule.tasks.SecurityQASynchronization.processBatch(SecurityQASynchronization.java:561)
            at com.my.company.idm.xl.schedule.tasks.SecurityQASynchronization.execute(SecurityQASynchronization.java:222)
            at oracle.iam.scheduler.vo.TaskSupport.invokeExecute(TaskSupport.java:183)
            at oracle.iam.scheduler.vo.TaskSupport.access$000(TaskSupport.java:40)
            at oracle.iam.scheduler.vo.TaskSupport$1.processWithoutResult(TaskSupport.java:143)
            at oracle.iam.platform.tx.OIMTransactionCallbackWithoutResult.process(OIMTransactionCallbackWithoutResult.java:9)
            at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:13)
            at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:6)
            at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
            at oracle.iam.platform.tx.OIMTransactionManager.execute(OIMTransactionManager.java:22)
            at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:125)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at oracle.iam.scheduler.impl.quartz.QuartzJob$TaskExecutionAction.run(QuartzJob.java:268)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
            at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:77)
            at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    Caused By: java.util.MissingResourceException: Cannot find resource 'org.apache.axis.i18n.resource'
            at org.apache.axis.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:288)
            at org.apache.axis.i18n.MessagesConstants.<clinit>(MessagesConstants.java:32)
            at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)
            at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:144)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
            at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
            at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
            at org.apache.axis.client.Service.getAxisClient(Service.java:104)
            at org.apache.axis.client.Service.<init>(Service.java:113)
            at org.my.company.webservice.SecurityQASyncWS_ServiceLocator.<init>(SecurityQASyncWS_ServiceLocator.java:12)
            at org.my.company.webservice.SecurityQASyncWSClient.invoke(SecurityQASyncWSClient.java:31)
            at com.ets.idm.xl.schedule.tasks.SecurityQASynchronization.processBatch(SecurityQASynchronization.java:561)
            at com.ets.idm.xl.schedule.tasks.SecurityQASynchronization.execute(SecurityQASynchronization.java:222)
            at oracle.iam.scheduler.vo.TaskSupport.invokeExecute(TaskSupport.java:183)
            at oracle.iam.scheduler.vo.TaskSupport.access$000(TaskSupport.java:40)
            at oracle.iam.scheduler.vo.TaskSupport$1.processWithoutResult(TaskSupport.java:143)
            at oracle.iam.platform.tx.OIMTransactionCallbackWithoutResult.process(OIMTransactionCallbackWithoutResult.java:9)
            at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:13)
            at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:6)
            at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
            at oracle.iam.platform.tx.OIMTransactionManager.execute(OIMTransactionManager.java:22)
            at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:125)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at oracle.iam.scheduler.impl.quartz.QuartzJob$TaskExecutionAction.run(QuartzJob.java:268)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
            at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:77)
            at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

  • Create a JAR including third party JARS

    How can I export my project into a JAR file also including the third party JARs being used from my application (project)?
    I think Eclipse does not support this, does it?
    The problem is, that when I export my project into a JAR and then manually put the required JARs into the JAR using WinZip I do get such an Exception:
    java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceFactory
    In my project I have a class (Runner.java) with a main method which the user can invoke from command line. Furthermore I have a GUI also with a main method which internally invokes Runner.java. How can I start either of themain methods/classes both in the same JAR?
    Thank you.

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • Third Party Jars in OIM 11G

    Hi All,
    I am trying to invoke a web service stub to call create() functionality.
    From the stand alone program(with out integrating with OIM server), if I just run it from eclipse, I am able to create the user in target system. If I try to invoke through process task adapters, I am getting Connection Exception.
    I think there is something to do with the third party jars. I have copied all the jars to /<Oracle_Home>/Oracle_IDM1/server/ThirdParty and <WEBLOGIC_HOME>Middleware/wlserver_10.3/server/lib.
    Should I run "UploadJars.sh" utility of OIM?
    Should I update the classpath of OIM and weblogic? I heard that from 11g onwards it automatically pick up the third party jars. Isn't so?
    My OIM Server and Target System Application are in different machines. There is no SSL communication. So I think no need to exchange certificates also.
    Please help me to solve this.

    Hello, oimcoder.
    I've removed the jars everywhere (from database and CLASSPATH variable too) besides the ThirdParty folder. When I run my Scheduled task there is a stack trace in log:
    [2011-09-22T12:26:41.717+03:00] [oim_server1] [TRACE] [] [oracle.iam.platform.pluginframework] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: oracle.iam.platform.pluginframework.PluginClassLoader] [APP: oim#11.1.1.3.0] [SRC_METHOD: findClass] in find classorg.apache.cxf.jaxws.JaxWsProxyFactoryBean
    [2011-09-22T12:26:41.717+03:00] [oim_server1] [TRACE] [] [oracle.iam.platform.pluginframework] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: oracle.iam.platform.pluginframework.PluginClassLoader] [APP: oim#11.1.1.3.0] [SRC_METHOD: findClass] Class Not found - org.apache.cxf.jaxws.JaxWsProxyFactoryBean
    [2011-09-22T12:26:41.717+03:00] [oim_server1] [TRACE:32] [] [org.springframework.transaction.jta.JtaTransactionManager] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.transaction.support.AbstractPlatformTransactionManager] [APP: oim#11.1.1.3.0] [SRC_METHOD: triggerBeforeCompletion] Triggering beforeCompletion synchronization
    [2011-09-22T12:26:41.718+03:00] [oim_server1] [TRACE] [] [org.springframework.transaction.jta.JtaTransactionManager] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.transaction.support.AbstractPlatformTransactionManager] [APP: oim#11.1.1.3.0] [SRC_METHOD: processRollback] Should roll back transaction but cannot - no transaction available
    [2011-09-22T12:26:41.718+03:00] [oim_server1] [TRACE:32] [] [org.springframework.transaction.jta.JtaTransactionManager] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.transaction.support.AbstractPlatformTransactionManager] [APP: oim#11.1.1.3.0] [SRC_METHOD: triggerAfterCompletion] Triggering afterCompletion synchronization
    [2011-09-22T12:26:41.718+03:00] [oim_server1] [TRACE:32] [] [org.springframework.transaction.support.TransactionSynchronizationManager] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.transaction.support.TransactionSynchronizationManager] [APP: oim#11.1.1.3.0] [SRC_METHOD: clearSynchronization] Clearing transaction synchronization
    [2011-09-22T12:26:41.718+03:00] [oim_server1] [TRACE] [IAM-1020021] [oracle.iam.scheduler.vo] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: oracle.iam.scheduler.vo.TaskSupport] [APP: oim#11.1.1.3.0] [SRC_METHOD: executeJob] Exception encountered
    [2011-09-22T12:26:41.718+03:00] [oim_server1] [TRACE:16] [] [oracle.iam.scheduler.vo] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: su.jet.idm.otp.saphr.oimdataloader.SaphrLoader] [APP: oim#11.1.1.3.0] [SRC_METHOD: logJobExecution] ENTRY 16В 461 1В 316В 683В 601В 644 1В 316В 683В 601В 718 6 java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/cxf/jaxws/JaxWsProxyFactoryBean
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE] [] [org.springframework.beans.factory.support.DefaultListableBeanFactory] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.beans.factory.support.AbstractBeanFactory] [APP: oim#11.1.1.3.0] [SRC_METHOD: doGetBean] Returning cached instance of singleton bean 'txManager'
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE] [] [org.springframework.transaction.jta.JtaTransactionManager] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.transaction.support.AbstractPlatformTransactionManager] [APP: oim#11.1.1.3.0] [SRC_METHOD: getTransaction] Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE:32] [] [org.springframework.transaction.support.TransactionSynchronizationManager] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.transaction.support.TransactionSynchronizationManager] [APP: oim#11.1.1.3.0] [SRC_METHOD: initSynchronization] Initializing transaction synchronization
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE] [] [org.springframework.beans.factory.support.DefaultListableBeanFactory] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [SRC_CLASS: org.springframework.beans.factory.support.AbstractBeanFactory] [APP: oim#11.1.1.3.0] [SRC_METHOD: doGetBean] Returning cached instance of singleton bean 'toplinkSession'
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE:16] [] [org.eclipse.persistence.session.oim.connection] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [APP: oim#11.1.1.3.0] client acquired
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE:16] [] [org.eclipse.persistence.session.oim.transaction] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [APP: oim#11.1.1.3.0] acquire unit of work: 1992813264
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE:16] [] [org.eclipse.persistence.session.oim.transaction] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [APP: oim#11.1.1.3.0] TX binding to tx mgr, status=STATUS_ACTIVE
    [2011-09-22T12:26:41.719+03:00] [oim_server1] [TRACE:32] [] [org.eclipse.persistence.session.oim.query] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [APP: oim#11.1.1.3.0] Execute query ReadObjectQuery(referenceClass=JobHistory )
    [2011-09-22T12:26:41.720+03:00] [oim_server1] [TRACE:32] [] [org.eclipse.persistence.session.oim.query] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [APP: oim#11.1.1.3.0] Execute query ReadObjectQuery(referenceClass=JobHistory )
    [2011-09-22T12:26:41.720+03:00] [oim_server1] [TRACE:32] [] [org.eclipse.persistence.session.oim.connection] [tid: OIMQuartzScheduler_Worker-1] [userId: oiminternal] [ecid: 0000JAGRjisCgoYFLryGOA1EUjqc000005,0] [APP: oim#11.1.1.3.0] reconnecting to external connection pool
    [2011-09-22T12:26:41.723+03:00] [oim_server1] [TRACE] [] [org.springframework.jndi.JndiTemplate] [tid: [ACTIVE].ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 2ec07577f0893da0:3c1077a9:132906edc25:-8000-000000000000040d,0] [SRC_CLASS: org.springframework.jndi.JndiTemplate] [APP: oim#11.1.1.3.0] [SRC_METHOD: lookup] Looking up JNDI object with name [ejb.stateless.SchedulerService#oracle.iam.scheduler.api.SchedulerServiceRemote]

  • Best way to make a jar with third party jars

    hi, i have a question.
    i have an application that uses different third party jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    or
    b2) just put them as resources
    Another question :
    i sign my jar, but can't access the local file system. if i use solution a from above, do i have also to sign the jars that i include in my jar...
    for solution b i think i will have to sign all the jars... right ?
    Thx for your help

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • Using third party jars with Oracle Business Rules

    Hi
    I am working on Oracle AS 10g release 2.
    We are using Oracle Business Rules in integration with Oracle BPEL.
    While using third party jars however, Oracle Business Rules end is facing errors.
    Error during unmarshallingProvider com.sun.xml.bind.ContextFactory_1_0_1 not found
    oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: com.sun.xml.bind.ContextFactory_1_0_1
    Dependent class: javax.xml.bind.ContextFinder
    Loader: oracle.xml:10.1.0_2
    Code-Source: /D:/oracleasr3/lib/xml.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\oracleasr3\j2ee\home\oc4j.jar
    Can anybody help in figuring out where Jaxb jars(3rd party jars) are to be kept so that OAS access it?
    We tried using the applib folder to load the jars but we are getting class loading errors.
    When new instances are created, class loading is not happening.
    Pls help.
    Thanks
    Kavya

    Are you using Application Server Release 3 or Release 2? There are different versions listed in your mail.
    I think you probably want to add this as a shared library via EM and then import the shared library to your application with the application's xml config files.

  • Third-party jars not visible to EJB's and servlets.

    Hi, This is an unanswered post in an newsgroup which exactly displays our
    current problem,
    Extract Begins -->
    "I've got a WebApp with classloading issues while running WebLogic 5.1.
    According to the JSDK 2.2 API, if I include third-party classes in
    WEB-INF/lib, my EJBs and servlets should be able to load any jar'ed classes
    inside. In practice, however, it seems to make no difference. My EJB always
    comes back with a NoClassDefFound error for xerces.jar that's in WEB-INF/lib
    (and I've even tried adding it to the EJB JAR itself with no change).Of
    course, if I put Xerces in the server's classpath, there are no problems but
    that's a road I don't want to go down.How can I tell my EJB's to load
    third-party classes from the WEB-INF/lib directory of the WAR file? I'd
    appreciate your insight. <-- End
    We are busy migrating one of our apps from 5.1 to 6.1, What we have done
    thus far and fairly successfully is the following,
    We packaged all the jsps, WEB-INF, html, images into a WAR file and then
    packed all EJB's, META-INF and classes to which the ejbs refer, into an EAR
    file.
    EMARKET_APPS/
    +myjsp.jsp
    +myhtml.html
    +images
    +WEB-INF/+
    |
    +classes/+
    |
    +myclass1.class
    +myclass2.class
    |
    +lib/+
    |
    +OReily.jar
    +jts.jar
    +xerces-1_4_1.jar
    +junit.jar
    +jcschart110Kwl.jar
    |
    +web.xml
    +weblogic.xml
    +META-INF/+
    |
    +applications.xml
    +ejbs/+
    |
    +myejb1.jar
    +myejb2.jar
    +lib/+
    |
    +classes.jar
    Please advise.
    Rgs Roly

    Have you tried to include the jars in the Class path entry in the manifest file.
    That should work eventhough I haven't tried it yet (fighting with ear deployement
    and I must say WLS seems to be winning). I'll get back to when I've tried it.
    There is a VERY good article on theserverside.com regarding class loaders and
    EAR/WAR/EJBs at http://www.theserverside.com/resources/articles/J2EE-Deployment/chapter.html
    Good luck
    /erik

  • NoClassDefFoundError after adding third-party jars... need help

    Hello SDN! I'm strongly need your help.
    I'm developing a WD Java application which contains followed DCs:
    AppDC is a Web Dynpro which contains application-depended views, controllers, runnable WD app.
    ExporterDC is a Web Dynpro DC with no applications, this is helper DC for export table data into Excel and other formats
    MainDC is a Web Dynpro DC with no applications, this is a basis DC. This DC contains some common useful views and controllers which used by AppDC
    JavaDC is a Java DC (not J2EE Server Component) which contains my own common helper classes
    LibsDC is a External Library DC which contains third-party jars used by apps
    J2eeDC is a J2EE Server Component Library DC which is just a wrapper for LibsDC
    These DCs has followed  dependencies:
    LibsDC is Used DC for J2eeDC (both assemble and compile types) with Build-time dependency
    J2eeDC is Used DC for JavaDC (defLib) with Build-time and Run-time dependencies
    JavaDC is Used DC for ExporterDC, MainDC and AppDC (both assemble and compile types) with Build-time dependency
    ExporterDC is Used DC for MainDC (both assemble and compile types) with Build-time dependency
    MainDC is Used DC for AppDC (both assemble and compile types) with Build-time dependency
    Build perform without errors. I can deploy build results of J2eeDC, ExporterDC, MainDC and AppDC. But when I call my application I get NoClassDefFoundError at row of ExporterDC where is the first call of class from JavaDC which has reference to classes from third-aprty jars.
    Please note that I'm not using third-party jars in WD DCs, these jars used only in JavaDC.
    I've read quite many threads and blogs but I can't to find solution.
    P.S. I'm working with NW 7.0 SP 14, all DCs are local.
    Hell will be apriciated!
    Regards, Lev

    Hi!
    Thank you for reply!
    Here are few jars in Entities for assembly PP and compile PP in ExtLibrary DC. In "properties" tab property "type" has value "Archive" for every of jar in Entity.
    About blog - this blog about situation when Web Dynpro DC use third-party jar. But in my situation Web DC uses Java DC, there is no references to jars in code of WD DC. Only Java DC references to jars.
    regards, Lev

  • JAR executable do not find third party Jars

    Boy I am beat.
    I am trying to build executable jar that needs bunch of third party jars.
    So I import the jars into a ext folder at the top of the pkg. I jar it all up (using Ant)with a manifast that point the classpath to the jars at the ext folder
    Dir Structure:
    myJar.jar
    |
    +-build
    |main class
    |
    +EXT
    |
    + bunchOfJars
    </pre>
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5
    Built-By: Ted I Weitz
    Classpath: ext/dom.jar ext/xsltc.jar ext/dt jar ext/vecmath.jar
    ext/j3dcore.jar ext/j3dutils.jar ext/xercesImpl.jar ext/xalan.jar
    Main-Class: myMain
    Command:
    java -jar myJar.jar
    I will be very gratfull for any idea
    Ted

    Just posted on this in another thread I am watching. As far as I know, and every other post I have seen on this topic, there is no way to do this without using a custom classloader that is used by the executing .jar itself to load any .jar files. How I can see this work is the main class is nothing more than a "classloader" launcher. It creates a new instance of this custom classloader. It then opens "itself" (the .jar the main class and all the .jar's are in), reads the manifest file to locate the .jar files the application requires, then either loads them, or somehow is able to reference them without directly loading them. The URLClassLoader is a good one to extend for this. It already opens up any .jar file specified in its path when being created, scanning for any files in there. Basically, you need to "extend" this functionality to scan any .jar's in the .jar, and so on. So, the launcher may be like so:
    public void main (String[] args)
    JarClassLoader jcl = new JarClassLoader(this.getClass().getClassLoader());
    jcl.launchApp(this);
    the jcl.launchApp would be a method that tells the classloader to use THIS class, its "root" dir, to locate the .jar file to open and scan for more jar files. Each time it comes across a .jar file in the .jar, it opens it and scans it as well.
    Keep in mind, when the URLClassLoader contains one or more .jar files, when a class it loaded references a class that is not found in the that classloaders parent loader classpath, it then starts looking in the .jar files in the URL[] path specified to it. It looks at all classes in the .jar files, but it does NOT look in nested .jar files in the .jar file. Basically, you could take the source code of the URLClassLoader, and add the ability to open up any .jar files nested in each .jar file as needed to resolve a class. I would imagine this could take some time at runtime, probably a second or two on slower machines for a single typecast. However, that would be dependent on the number of nested .jar files, the number of .jar's in the classpath of the classloader. I think I may undertake this task when I have time. I gotta finish my plugin engine first, then I may undertake this classloader. I am pretty sure that is the proper approach to take. However, because it is not part of the JVM .jar execution mechanism, a special bit of coding will be required, such as what I posted above. The main class in the .jar file will have to create this classloader and tell it to "execute" the program, passing to it another main class, specifying the location of the .jar file the main class is in, etc. Hell, you could almost bypass the java -jar app.jar and just do a java Classname where by the class and the .jar are bundled together, although this wouldn't be as nice. The reason this might be better is that then you wouldn't have to do any special coding in the .jar main class. I suppose though, by providing the "launcher" class and having a developer just extend it as part of their main class could also work.
    }

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

Maybe you are looking for

  • Open Item Management in ECC 6

    Hello All, Just overheard that open item management is not possible in ECC 6. If true, how do we manage the same? Thanks Suresh

  • SWFVISU doesn't accept longer iView ids than 255 char as parameter value?

    Hi, I'm using the UWL to display SAP Business Workflow work items in the portal. Everything works fine. I made also a simple Business Workflow which starts a standard sap transaction after executing the task. The transaction is displayed in the porta

  • Problem With IFrame

    Hi Experts, I Developed Simple Web Dynpro.70  application like  displaying the pdf/tif file(this file is coming from R/3) in Iframe. My Problem is i need to develop the similar kind application in web dynpro 7.1. In web dynpro 7.1 UI Iframe is deprec

  • Help setting up ESB and MQ

    Hi Everyone, I am unable to configure an ESB service to enqueue into an MQ queue. I have SOA Suite 10.1.3.3 and MQSeries installed on my machine (winxp), and I am working with JDeveloper 10.1.3.3. I am looking everywhere but cannot find a good guide

  • Time Machine remove all backups of this files not working

    I've just left a company that had me use my MB as a BOYD...now I have to remove all of their stuff, including files held by Time Machine. I selected their directory in TM and said "remove all backups of this file".  It asked for my password and seeme