Where to place the third party jars on WLS 7.0SP2

Our application use the thirdparty JDBC driver, for example, the JDBC driver for
mySQL. I donot want my customer to modify startWeblogic.cmd or some file else
to make the jar file available for the applicaiton.
my question is if some directory exists under weblogic700/server where I can place
the jar file(that is, like the installed extension of JDK or JRE).
I try to place the jar file on server/ext, it does not work.
Guofeng

"Guofeng Zhang" <[email protected]> wrote in message
news:[email protected]...
>
Our application use the thirdparty JDBC driver, for example, the JDBCdriver for
mySQL. I donot want my customer to modify startWeblogic.cmd or some fileelse
to make the jar file available for the applicaiton.
my question is if some directory exists under weblogic700/server where Ican place
the jar file(that is, like the installed extension of JDK or JRE).
I try to place the jar file on server/ext, it does not work.
GuofengDisclaimer: I am a newcomer to the world of BEA WLS,
so try this at your own risk.
For the 3rd party classes to be found, they have to be included somewhere
in the CLASSPATH. The best place (IMO) for customisation of the CLASSPATH
is in the extEnv.sh. You will not find it in a standard installation of
WLS, but if you look in $WL_HOME/server/bin/startWLS.sh you will see this:
PATH=".${PATHSEP}${WL_HOME}/server/bin${PATHSEP}${JAVA_HOME}/jre/bin${PATHSE
P}${JAVA_HOME}/bin${PATHSEP}${PATH}"
# Import extended environment
if [ -f extEnv.sh ]; then
. extEnv.sh
fi
Note the inclusion of "." at the start of PATH. This is magic that enables
the ". extEnv.sh" command to locate the "extEnv.sh" script.
In "extEnv.sh" you can use the EXT_PRE_CLASSPATH, EXT_POST_CLASSPATH,
EXT_PRE_PATH, EXT_POST_PATH and LD_LIBRARY_PATH to add additional classes
and directories to the server environment.
For additional information, refer to the WebLogic Server Administration
Guide (http://e-docs.bea.com/wls/docs70/adminguide/startstop.html).
Similar, if you look in $WL_HOME/server/bin/setWLSEnv.sh you will see this:
PATH="${WL_HOME}/server/bin${PATHSEP}${JAVA_HOME}/jre/bin${PATHSEP}${JAVA_HO
ME}/bin${PATHSEP}${PATH}"
export PATH
# Import extended environment
if [ -f extEnv.sh ]; then
. extEnv.sh
fi
Note the missing "." in the PATH. This effectively means that even if
the "extEnv.sh" script exists in the current directory, then ". extEnv.sh"
command will only look along the PATH for the "extEnv.sh" script! To me,
that looks like an error (probably caused by a DOS-programmer used to
the default behavior in DOS to always look in the current directory
regardless of the setting PATH), so as part of my localised installation
procedure, I replace the offending part of setWLSEnv.sh with:
# Import extended environment
if [ -f extEnv.sh ]; then
. ./extEnv.sh
fi
which forces the "." command to read the "extEnv.sh" file in the current
directory, regardless of the setting of the PATH variable. I have
notified BEA of this, but their responses is that it is per design!
Regards,
Jan Bruun Andersen

Similar Messages

  • Where should the third party JAR files be placed ?

    Hi,
    We have a requirement to perform encryption / decryption of supplier bids. In this case we require to use third party provider JAR files with OA framework code. Where should the JAR files generally be placed in such a scenario ?
    Thanks and Regards,
    Sandhya

    Checkout this post.
    How to inclue a third party .jar file in OA fwk classpath Class not found

  • NoClassdefFoundError on the third-party jar's classes when building APK

    I am building a native extension for Android.
    For the android library, I create a android project and add several third-party jar files to build path.
    I extract a jar file from a android project and merge it and third-party jar files into a single jar file.
    I package ANE using a merged jar file and build a APK.
    When I install a APK and launch it, NoClassdefFoundError on the third-party class occurs.
    I use Flash Builder 4.6 and set sdk version to the Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    I decompile APK and check the classes.dex.
    Strangely a certain jar's classes are missing in the classes.dex.
    I tried googling and found a similar case.
    The following is the link :
    http://stackoverflow.com/questions/24777394/noclassdeffounderror-on-thirdparty-class-files -when-building-adobe-native-extens
    I try to follow the answer in this link.
    Did dx.jar in the AIR SDK really strip out some classes of third-party jar file??
    I inquired the java version of the third-party related with NoClassdefFoundError.
    Now I am waiting for the reply.
    Is anybody else know about this?

    The android-support-v4.jar is same.
    I check android-support-v4.jar's classes in ANE.
    But they are missing in APK after release build.
    I don't know why.
    I use Flash Builder 4.6 and Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    Is there anyone else know about this???

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • Using Third-Party jar file in database; Where to put license file?

    Hi!
    I have a third-party product that has a .jar file that references some .so files. I have successfully loaded the .jar file and the .so files are being called successfully, but when the program gets to the part where it reads the third-party license file, it is failing (ORA-3113 and an hs_err_pid<12345>.log and udump file are created. I know the issue is the location of the license file because I am getting the same exact error when I run it outside of the database. (I have been able to run it successfully outside of the database.)
    The instructions for the third-party product say to put the license file in the application's runtime directory.
    What I can't figure out is this: What is the application's runtime directory when I am running the code in the database?
    I thought it would be user.dir which is set to $ORACLE_HOME, but putting the license file there didn't work. I have tried lots of other places under $ORACLE_HOME.
    Any ideas?
    Thanks,
    Laurel

    Hi Laurel:
    Whether or not you can read the license file, sure you will have problem then when trying to load your .so file.
    Java JNI call are not allowed inside OJVM for security reasons, see Kuassi's answer to a similar question:
    Access Berkeley DB from Java Stored Procedure
    Best regards, Marcelo.

  • Where to put Third Party Jars in an .ear file

    Where to put Third Party Jar files in an .ear file so that they can be packaged along with the entire application and thus bypass the trouble of putting the third party .jars inside the application server lib directory and set the class path.

    Just put them in the root of your EAR. You can specify them in the classpath of your EJB JAR's manifest.

  • Eclipse third-party jar inclusion

    I really should know how to do this but...
    I'm using the Apache jakarta commons CLI package (org.apache.commons.cli)
    I had assumed that
    import org.apache.commons.cli.*;would work just like
    import java.util.Iterator;In that once it compiled, I wouldn't need to worry about where the third party jar file was etc and could distribute my package freely.
    Apparently I was mistaken:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
    How do I "include" the appropriate information in my .jar file so I don't have to worry about the environment in which the program is run?
    java is still my lovely language

    This program is a small part of a larger package, and
    sits in the same directory as a bunch of other .jars,
    each representing one program. It just seemed a little
    bit messy to require multiple files for a single
    program in this case.
    I did review the links, thank you, and have since used
    the class-path entry method with multiple .jars as a
    workable solution. I'm just not happy with it.Typically when users install software, they run one of those InstallShield (or their competitors) installers. And they have no idea how many files are created or what it does. One file, ten files, a thousand files, they don't really care.
    Right now it looks to me like you're wearing both the user hat and the installer hat here, and as a result not doing really well at either hat. You as the user shouldn't care if you have to install three or five files to run the program; to you as the installer it looks messy but compared to most real-life installs it's incredibly tidy. Don't worry about it.

  • 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

  • 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]

  • 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.

  • How to Call third party Jar into Application

    Hi Can any Expert help ?
    I want to put third party Jar into my application but i have some problem occur.
    1. how to call jar with parameter in application ?
    2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
    3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
    Thanks.
    Sanki Poon ([email protected])

    1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
    2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
    3) Under the resources tag you can have as many jar tags as needed.
        <resources>
            <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
            <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
        </resources>

  • 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

  • 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........

  • 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

  • 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)

Maybe you are looking for

  • Error while running adobe interactive form

    Hi, I made a scenario to update a z table using adobe interactive form in webdynpro.While executing I am getting the error as : Termination type was : RABAX_STATE Can anyone please guide me as to what can be the reason behind this error. Thanks in ad

  • [SOLVED] Dmenu + Xmonad, problem in a new version.

    Hello guys. I recently have problem with the new version of Dmenu on Xmonad. Dmenu version is 4.5 and the code i use is this: keys' :: XConfig Layout -> M.Map (KeyMask, KeySym) (X ()) keys' conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $ --

  • Terminal/Unix Command to Mount External USB Drive?

    I am having a probelm with the directory on an external HDD. The "device" is showing up in the utility software (DRIVE GENIUS/DISK UTILITY) but not the "volume," so it can't affect any repairs except INTIALIZE. So, I'm presuming the drive is physical

  • Org strcuture creation

    Client requirment is to create New Org Unit. im creating New org Units in Development Server and Transport request gets generated. if I Transport the Transport Request to Production will all Org Units gets transported into Production??? Generally Wha

  • Can BC4J.xcfg ConnectionDefinition point to a file

    I'd like have my connection information defined in a file on each server in deploy to and have the bc4j.xcfg connection definition point to it. This way i can deploy and each server already knows what database it is suppose to use. Can this be done?