Where do I put db.jar when using in a servlet?

servlet container library level, or servlet library? I am guessing that because db.jar uses JNI code, reloading would be a problem, so it should reside at the servlet container library level, but it would be nice to know for sure.

Hi Garey,
Because using the Java API in Berkeley DB (BDB) implies making JNI calls, you should place the "db.jar" JAR file under your servlet container library directory (e.g. for Tomcat this should be "common/lib").
All servlet engines use separate classloaders for each web application. You need to ensure that the native BDB library is loaded by the servlet engine's common classloader.
If you place the "db.jar" file under your web app's WEB-INF/lib directory you will get errors like "UnsatisfiedLinkError: Native library <path_to_BDB_lib>\libdbNN.dll already loaded in another classloader" when reloading your servlet.
Of course, the directory where the native library resides, should be included the PATH or LD_LIBRARY_PATH (java.library.path) environment variables.
Regards,
Andrei

Similar Messages

  • Where do we put common JARS in enterprise/web applications

    Hello everyone,
    Could someone please advice me as to a good/best way to handle this scenario:
    1. an EAR contains a bunch of web applications, which have to use a common archive of classes, like an XML parser for instance. Where can i put this JAR? the brute way would be to put in the WEB-INF/lib of every web-app, but...?
    Grateful for any suggestions,
    deepak

    Well... depends I suppose on your container. We use IBM's Websphere... and we have several EAR's that contain a half dozen or so dependant JARs... we "import" them into the EAR, and then whoever must have access to these dependencies references the EAR's path in the "Java Buildpath" and "Module Dependencies"
    The dependant JARs are just put into the root directory of the whatever EAR we happen to be dealing with.
    The trick is in whatever resource (i.e. EJB) is making sure that its MANIFEST is aware of the location of the dependant JARs, which IBM's Websphere Application Developer Studio handles all that stuff for you.
    ./dave

  • WHERE CAN I PUT MY INVOICES WHEN I AM FINISHED CREATING AND WANT TO USE THEM?

    I am creating Invoices for work.I have twelve clients and I have created a invoice I like. Where do I put these to use every month and how do I do that?

    Tara,
    Numbers has a Custom Template function. Create a document that you would like to reuse, and then File > Save as Template...
    From then on, when you want to start at that point with a new document you do a File > New... and navigate to the My Templates area at the bottom of the Template Chooser where you can click on the one you created.
    If you ever want to modify that template, just do it and then File > Save as Template... again, using the identical file name.
    Jerry

  • Where to put unattend.xml when using create task sequence media

    SCCM 2012 R2.
    I created a capture task sequence media to a flash drive. I noticed the capture media does run sysprep even though it is not located on the flash drive. Where do I put my customized unattend.xml for sysprep? Does it go in c:\sysprep 
    There is no documentation on this that I can find.

    sysprep doesn't use an unattend.xml file so you don't put it anywhere. You supply a custom unattend.xml during the deployment task sequence which in turn is delivered as part of the TS for use by WIndows Setup (which is what actually uses an unattend.xml
    file). Task Sequence media has nothing to do with sysprep either. I think you may be confusing sysprep with Windows mini-setup. sysprep is the process of generalizing a system generally preparing it to be captured. Windows mini-setup is what runs the first
    time a syspreped system is booted. They are two different things.
    You *can* place an unattend.xml file the image for use by Windows mini-setup -- the locations mini-setup will look for this file are detailed at
    http://technet.microsoft.com/en-us/library/cc749415(v=WS.10).aspx . But that is rarely done anymore with task sequences because you generally want to dynamically inject an unattend.xml
    file into the process instead of statically placing one in the image -- that defeats the purpose of having a generic reference image. This is done by configuring the Apply Windows step in a deployment task sequence.
    Still, that begs the question posed by narcoticoo. Your reference image(s) should be hardware agnostic, built on a VM, and automated. What you are doing will cause you pain in the long run.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • What is directory where I can put in jar file without specify classpath ?

    hi,
    Is there any directory in weblogic similar to the directory of WEB-INF/lib/ where I can throw a jar file in without specify classpath explicitly.
    The reason I'm looking for such directory is :
    -- I do not want to specify classpath explicitly
    -- I'd like it outside of an application so that it stay even if the application redeployed.
    Thanks

    Hi Aacc,
    The domain library directory that you are looking for is usually $DOMAIN_DIR/lib, for example "C:\Oracle\WLS_Middleware10.3.4\user_projects\domains\test_domain_1\lib" (Windows) or "/u01/weblogic/domains/my_domain/lib" (Linux/Unix).
    The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath.
    You can override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.
    -Cris

  • Where Is File Stored On Computer When Using: File.applicationStorageDirectory

    When using the File.applicationStorageDirectory function, where is Adobe storing the program on an Windows/Apple computer? I know what it means, but I would just like to be able to verify for myself that the file is being created when I'm developing my application.

    Adobe Flash Platform * Working with File objects in AIR
    Windows: C:\Documents and settings\userName\ApplicationData\applicationID\Local Store
    Mac: path/Library/Application Support/applicationid/Local Store (AIR 3.3 and later), where path is is either /Users/userName/Library/Containers/bundle-id/Data (sandboxed environment)                     or /Users/userName (when running outside a sandboxed environment)

  • Where do I put the .jar file for the database connection?

    I am trying to connect to an Oracle 11g database. I see under the coldfusion settings summary that the java version is 1.7.0_55. So I downloaded the ojdbc7.jar file from Abode.com. Now the question is where do I put it so that coldfusion can access it?
    Of course I need to set up the database connection (which I still don't have the connection string for), but I still need to know where to put the ojdbc.jar file.
    Thanks.

    jasonwryan wrote:What does the man page say?
           The  program  has builtin defaults and temperature thresholds but users
           can   specify   their   own    settings    in    configuration    files
           /etc/default/i8kmon  and  ~/.i8kmon.   The daemon defines 4 states with
           different fan speeds ({0 0}, {1 0}, {1 1}, {2 2}) and  for  each  state
           are  defined  the temperature thresholds which cause the switching to a
           higher or lower  state.  Furthermore  each  state  can  have  different
           thresholds  for operation on ac power or battery.  For example the fol‐
           lowing configuration:
    I've put the following file in /etc/default/i8kmon:
    # Run as daemon, override with --daemon option
    set config(daemon) 0
    # Automatic fan control, override with --auto option
    set config(auto) 1
    # Report status on stdout, override with --verbose option
    set config(verbose) 1
    # Status check timeout (seconds), override with --timeout option
    set config(timeout) 1
    # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
    set config(0) {{-1 0} -1 50 -1 50
    set config(1) {{-1 1} 50 70 50 70}
    set config(3) {{-1 2} 70 128 70 128}
    But it doesn't seem to do anything. I'm running a Dell Inspiron 3521 with no dedicated GPU, so it only has one fan. I was somehow able to get i8kmon to work in Ubuntu by putting this config in /etc/i8kmon, but can't get it to work in Arch. Putting it in /etc/i8kmon and /etc/default/i8kmon doesn't do anything.

  • Where does the date come from when using Tip type = dateFormat

    Hi,
    Can anyone tell me when using personilizations where the date that is shown comes from when using tip type = dateFormat? Today it shows (example: 24-Sep-2012) but yesterday it was the 23rd so seems to increment by one day. Is there a way to change the date shown here, to sysdate for example?
    Thanks

    Hi,
    You can check Inline Messaging, Tips, Hints and Bubble Text section in OA Framework Developer Guide
    Thanks,
    Jit

  • Where to put firmware files when using hwdetect

    I am using release 0.7.1. AFAIK in 0.7.1 hwdetect is used instead of hotplug. Where hwdetect expect to find firmware files? In the case it can be changed, please tell me where.

    it's udev that is handling firmware files, and I placed mine for atmel wireless in /lib/firmware works fine

  • Where is the Contacts Master file when using iCloud?

         It used to be when I used "MobileMe", I was very clear about where my Master file was for my CONTACTS (fka Address Book) information.  I could make changes on my iMac and then push them to my iPhone and iPad and evrything worked and synce perfectly (via iTunes).
         When iCloud replaced MobileMe nothing seems to be right anymore.  Updates on my phone don't show up in my iMac Contacts.  All my contacts in my iMac are now duplicated to most things are there twice.  And I'm afriad to deactivate iCloud becasue of the onmious "...iCloud will delter these files from your device." message.
         Could you possibly have taken something that worked so well and screwed it up any worse?
         I am a long time APPLE user and I have "gotten" most things that Apple has done in the past 20 years.  But iCloud seems to confound me on numerous levels.
         Where should I make changes and updates to my Contacts files so it flows to all my devices?
         Why does the Contacts file in my iMac now have duplicate entires?
         Why don't iCalendar updates I make in my iPhone transfer over to my iCalendar on my iMac?
         Is anyone else having troubles with something the used to work so perfectly?
    Frustrated in Denver....

    iCloud uses a server-client model in which your contacts and calendars reside in your account on Apple's iCloud server.  Your computers and iOS devices simply interact with the data on the server.  When any client device makes a change on the server, that change should be immediately seen by the other client devices signed into your account.  This video may help explain what's going on: http://www.youtube.com/watch?v=OBf7Uzv1OmQ&feature=player_embedded.
    That said, changes should be bi-directional; any change made on one device should be replicated on the others.  Since that's not happening for you, something isn't working properly.  To troubleshoot this, you start by determining wich of your devices is the problem.  Open you contacts on icloud.com (the "master" list), then add a test contact on your phone and on your Mac and see which one fails to appear on icloud.com.  Then do the same thing with your calendar: add a test event on your phone and your Mac and see which one fails to appear on your calendar on icloud.com.
    Let me know your results and we'll take it from there.

  • Why i canot deploy cd.jar when using JBoss on linux

    Hi,friends
    I have successfully deploy the interest.jar on my linux box.But when deploying cd.jar it tells me that "Could not deploy file:/usr/local/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/cd.jar,
    Cause:org.jboss.ejb.DeploymentException: Bean com.web_tomorrow.cd.CDBean not found within this application."
    The source directory is described as below:
    src
    |_com
    | |_web_tomorrow
    | |_cd
    | | (CD.class,CDBean.class,CDHome.class,
    | | CDCollection.class,
    | | CDCollectionBean.class,
    | | CDCollectionHome.class,
    | | CDExistsException.class)
    | |_jspcd
    | |_utils()
    |_MATA-INF
    | (ejb-jar.xml,jboss.xml)
    |_WEB_INF
    On src directory
    #jar -cvf cd.jar com/web_tomorrow/cd/*.class \
    com/web_tomorrow/utils/*.class META-INF/
    When i cp the cd.jar to deploy directory jboss automatically begin deploying the cd.jar and echo the above message and stop deploying.
    Here is my configuration file:
    [ejb-jar.xml]
    <?xml version="1.0" encoding="Cp1252"?>
    <ejb-jar>
    <display-name>MusicCDs</display-name>
    <enterprise-beans>
    <entity>
    <description>Models a music CD</description>
    <ejb-name>CDBean</ejb-name>
    <home>com.web_tomorrow.cd.CDHome</home>
    <remote>com.web_tomorrow.cd.CD</remote>
    <ejb-class>com.web_tomorrow.cd.CDBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-field><field-name>id</field-name></cmp-field>
    <cmp-field><field-name>title</field-name></cmp-field>
    <cmp-field><field-name>artist</field-name></cmp-field>
    <cmp-field><field-name>type</field-name></cmp-field>
    <cmp-field><field-name>notes</field-name></cmp-field>
    <primkey-field>id</primkey-field>
    </entity>
    <session>
    <description>Models a music CD collection</description>
    <ejb-name>CDCollectionBean</ejb-name>
    <home>com.web_tomorrow.cd.CDCollectionHome</home>
    <remote>com.web_tomorrow.cd.CDCollection</remote>
    <ejb-class>com.web_tomorrow.cd.CDCollectionBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Bean</transaction-type>
    <ejb-ref>
    <ejb-ref-name>ejb/CD</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.web_tomorrow.cd.CDHome</home>
    <remote>com.web_tomorrow.cd.CD</remote>
    <ejb-link>com.web_tomorrow.cd.CDBean</ejb-link>
    </ejb-ref>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>CDBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    [jboss.xml]
    <?xml version="1.0" encoding="Cp1252"?>
    <jboss>
    <secure>false</secure>
    <container-configurations />
    <resource-managers />
    <enterprise-beans>
    <session>
    <ejb-name>CDCollectionBean</ejb-name>
    <jndi-name>cd/CDCollection</jndi-name>
    <configuration-name></configuration-name>
    </session>
    <entity>
    <ejb-name>CDBean</ejb-name>
    <jndi-name>cd/CD</jndi-name>
    <configuration-name></configuration-name>
    </entity>
    </enterprise-beans>
    </jboss>
    I am frustrated now! Any help is greatly appreciated!
    Best Regards!

    $(jboss_home)/log/server.log told me that i should have a look at Container.java first.So i openned it and found the following code snippet:
    Logger.debug("Binding an EJBReference "+ref.getName());
    if (ref.getLink() != null) {
    // Internal link
    Logger.debug("Binding "+ref.getName()+" to internal JNDI source: "+ref.getLink());
    Container refContainer = getApplication().getContainer(ref.getLink());
    if (refContainer == null)
    throw new DeploymentException ("Bean "+ref.getLink()+" not found within this application.");
    OK,the DeploymentException is thrown because the refContainer is null.
    Have a look at getContainer method below:
    public Container getContainer(String name)
    return (Container)containers.get(name);
    where,
    containers is a HashMap which holds the mapping between ejbName and container.So the reason is the jboss cannot find corresponding container from the given parameter - name.Its value is ref.getLink()'s return value,com.web_tomorrow.cd.CDBean.
    open the ejb-jar.xml,i found link is defined as below:
    <ejb-ref>
    <ejb-ref-name>ejb/CD</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.web_tomorrow.cd.CDHome</home>
    <remote>com.web_tomorrow.cd.CD</remote>
    <ejb-link>com.web_tomorrow.cd.CDBean</ejb-link> <- wrong
    </ejb-ref>
    After i changed it to <ejb-link>CDBean</ejb-link> the jboss can deploy cd.jar normally.
    The problem itself isnot complicate but it demonstrated that the open source is good for you to fix the bug up!
    BTW,in order to making it easy to fix the bug, the jboss binay version is built with debug infomation.So you can rebuid it without any debug infomation.
    <target name="compile" depends="prepare">
    <mkdir dir="${build.classes.dir}"/>
    <javac srcdir="${src.dir}"
    destdir="${build.classes.dir}"
    debug="on" <- change it to "off"
    deprecation="off"
    optimize="on"
    includes="org/**"
    excludes="**/activation/**, **/*BeanInfo.java"
    >
    <classpath refid="classpath"/>
    </javac>
    </target>
    Thanks for all your help!

  • Where do the sent emails go when using iPhoto

    When i send an email using my iphoto for work I can't find where my sent emails go. Anybody have any ideas other than emailing it self? Thanks

    Have you looked in the Mail sent folder?

  • Where does the processing take place when using a remote front panel?

    Hi,
    I am considering upgrading my LabView software from 6i to 6.1 for the new "two click" remote front panel feature. I have already seen a demo of this feature but have just a few questions before I get the upgrade:
    My setup consists of several pieces of equipment connected to Labview via GPIB, to aid in the evaluation of a new microchip.
    1. I wish to grant control of the setup to anyone with a web browser, Is the remote monitoring feature compatible with both Netscape and IE?
    2. The VI which controls the setup is currently located on the PC beside my setup. When I embed a VI in a remote front panel, where does the processing take place, is the local VI still controlling the setup? and
    the remote panel just sending and receiving data from the local VI.
    Thanks, Troy

    > I am considering upgrading my LabView software from 6i to 6.1 for the
    > new "two click" remote front panel feature. I have already seen a demo
    > of this feature but have just a few questions before I get the
    > upgrade:
    >
    > My setup consists of several pieces of equipment connected to Labview
    > via GPIB, to aid in the evaluation of a new microchip.
    >
    > 1. I wish to grant control of the setup to anyone with a web browser,
    > Is the remote monitoring feature compatible with both Netscape and IE?
    >
    Yes. Provided they are resonably modern versions.
    > 2. The VI which controls the setup is currently located on the PC
    > beside my setup. When I embed a VI in a remote front panel, where does
    > the processing take place, is the local VI still controlling the
    >
    setup? and the remote panel just sending and receiving data from the
    > local VI.
    >
    The computer which we refer to as the server, the one with the GPIB card
    in your case, will execute as it does now. In fact, its window will
    even be open. The remote client computer, the one with the web browser
    will be running the runtime engine and processing user events, value
    change and property/method events from the server. So in reality, both
    computers will be sharing the load a bit. This allows for very small
    packets to be sent between the computers. It is in fact quite similar
    to publishing the data between the computers using datasocket.
    One thing to keep in mind. Standard LV includes a license for one
    connection. If you want to allow for multiple web browsers to view at
    the same time, additional licenses are available. Also, only one user,
    remote or server may be in control of the panel at a time. That means
    that if you want to be able to operate the panel, changing kn
    obs or
    flipping switches, the others will become viewers only until you give up
    control. Hopefully this isn't a surprise, but I thought you might want
    to hear about it now.
    Greg McKaskle

  • Where did you put my bookmarks - I used to have a button for them

    I used to have a little bookmark button on the top of the page and now it's gone. I have work to do and don't have time to figure out all the new stuff right now.
    How do I get my nice, organized button back?

    I think there are two or three bookmark buttons.
    The one I think you mean is the the same as the keyboard shortcut to show the '''bookmarks in the sidebar''' ("Ctrl+B"), but it could be the button to replace the loss of the menu bar which is a drop down replacement. Or you could just put things back to normal...
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • How can I put check conditions when using Function 'LDB_PROCESS'

    Hy experts,
    I am using LDB_PROCESS and I don't know how to use check conditions in the callback forms.
    for example:
    FORM CALLBACK_QALS USING  NAME  TYPE LDBN-LDBNODE
                              WA    TYPE QALS
                              EVT   TYPE C
                              CHECK TYPE C.
    CASE EVT.
       WHEN 'G'.
         MOVE-CORRESPONDING wa to ITAB_QALS.
         APPEND ITAB_QALS.
    ENDCASE.
    endform.                    " CALLBACK_QALS
    Have anyone an example of how I can use check conditions in this type of form???
    thx in advance

    Hi
    U should indicate in which node (the GET) you need to check the condition, you form should have the following interface:
    FORM <formname> USING <nodename> LIKE LDBCB-LDBNODE
                           <workarea> (LIKE ...)
                           <mode>
                           <selected>.
    So the code should be:
    CHECK <WORKAREA>-FIELD = ............
    Max

Maybe you are looking for