JDeveloper & user libraries

Hello,
In a jdeveloper project I'm using jakarta poi (http://jakarta.apache.org/poi/) to generate microsoft excel files. The jar files are included in my project as user libraries.
If I run the application in the jdeveloper environment everything works well and I'm able to create excel files. But if I deploy the application to a standalone oc4j application server (using an ear-file after running the "create jnlp files for java webstart" wizard) and I try to run the application, it's not possible to write excel files (and I don't get any errors).
However, after a manual copy of the jakarta poi jar files to the "ext" folder of the jre installation on my system, the application runs smoothly.
So it seems that jdeveloper isn't including the imported jar files/user libraries in the deployment package.
Now, if I want to deploy my application to a group of users, I have to copy the jakarta jars to the correct folder on every client computer. If there's an update of the jars, I have to update every client computers as well. Is there a way to include the user libraries in the deployment files?
Kind regards,
Jeroen

So, how do you include user libraries for deployment? Importing the user libraries into the system libraries and then adding them in the contributors list of a War-file doesn't seem to work.

Similar Messages

  • JDeveloper project libraries and Maven dependencies

    hi
    Using the Apache Trinidad Maven JDev Plugin, I am wondering how JDeveloper project libraries and Maven dependencies are supposed to be related (or "matched", or "kept in sync", or "work together", or ...).
    With the Maven settings.xml configured like this ...
    <settings>
      <!-- ... -->
      <localRepository>C:\my-maven-repository</localRepository>
      <!-- ... -->
    </settings>... I tried this ...
    C:\projects>mvn -v
    Maven version: 2.0.9
    Java version: 1.6.0_05
    OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
    C:\projects>mvn archetype:create -DgroupId=com.oracle.forums.mvnfirstproj -DartifactId=mvn-first-proj
    [INFO] OldArchetype created in dir: C:\projects\mvn-first-proj
    C:\projects>cd mvn-first-proj
    C:\projects\mvn-first-proj>mvn org.apache.myfaces.trinidadbuild:maven-jdev-plugin:jdev
    [INFO] Scanning for projects...
    [INFO] artifact org.apache.myfaces.trinidadbuild:maven-jdev-plugin: checking for updates from central
    Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/trinidadbuild/maven-jdev-plugin/1.2.7/maven-jdev-plugin-1.2.7.pom
    2K downloaded
    [INFO] [jdev:jdev]
    [INFO] Generating JDeveloper 10.1.3.0.4 Project mvn-first-proj
    [INFO] Generating JDeveloper 10.1.3.0.4 Project mvn-first-proj-test
    ...After this, the file C:\projects\mvn-first-proj\mvn-first-proj-test.jpr contains
          <!-- ... -->
          <list n="libraryDefinitions">
            <hash>
              <list n="classPath">
                <url path="../../my-maven-repository/junit/junit/3.8.1/junit-3.8.1.jar" jar-entry=""/>
              </list>
              <value v="true" n="deployedByDefault"/>
              <value v="junit:junit:jar:3.8.1" n="description"/>
              <value v="junit:junit:jar:3.8.1" n="id"/>
            </hash>
          </list>
          <!-- ... -->Notice the path for the JAR file in my specific Maven repository, to be relative to my specific project location.
    questions:
    (1) This seems to severely limit the options to share such a JDeveloper project file between developers in a team (e.g. using Subversion), because they would need their Maven repository and their JDeveloper project to be in the same (relative) location. Is this intended? Are there any options to work around these limitations?
    (2) If a project evolves, and additional libraries need to be configured in a JDeveloper project, what would be the preferred approach to keep these in sync with Maven dependency configurations?
    many thanks
    Jan Vervecken

    Hi Jan,
    Yes, some of the current approach is not ideal.
    +"Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time."+ - By having the pom.xml define for the project, I get the ability to run site goals, junit tests and other maven reports - get a feel for the project state. Even with a very basic pom.xml file containing the groupId, ArtifactId, version, SVN repository definition and the release plugin you gain the ability to use "mvn release:clean release:prepare" to help with tagging the source in SVN. These represent progress as up to this point the team has not had access to this.
    +"Making the build process easy".+ - The approach does make the build part easier for JDeveloper 10.1.2. As a maven build, it is now possible to check the project into SVN and have it built by Bamboo, without having to include an installation of JDeveloper 10.1.2 (for library access) on the CI server.
    +"If I understand correctly, in your approach, you are trying to keep both pom.xml and JDeveloper project files up-to-date manually?"+ - The only reason for keeping the JPR in sync with the pom.xml file is to allow the developers to still make use of features such as selecting run from the right click menu. At present, I am still slowly getting up to speed on how JDeveloper works and interacts with OC4J. Ultimately, you would want a maven plugin that will deploy the packaged WAR or EAR to the OC4J stand-alone or remote instance. This plugin would probably wrap the commands that the IDE uses, e.g.
    If you right click on the deployment profile for a project (JDeveloper 10.1.2) and select the Platform > Standalone OC4J options, you find:
    Deploying Ear+
    ${java} ${jvm.max.heap.size} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -deploy -file ${ear.file}
    -deploymentName ${j2ee.app.name}
    Binding Web Apps+
    ${java} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -bindWebApp ${j2ee.app.name} ${j2ee.web.app.name}
    ${oc4j.web.site} ${j2ee.context.root}
    And for Platform > OracleAS Remote DCM:
    ${java} -Djava.protocol.handler.pkgs=HTTPClient
    -jar ${Oc4jDcmClient.jar}
    ${dcm.servlet.url} ${username} ${password}
    redeploy ${remote.oracle.home}
    ${ear.file} ${j2ee.app.name} ${oc4j.instance.name}
    With a maven plugin- wrapping the deployment (possible even to the embedded OC4J) you could then look at get away without maintaining the libraries in the JPR. The JPR the becomes the configuration file for the IDE interaction only without affecting the build. For debugging, you can deploy to a standalone instance and start it using:
    java -server -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
    Then connect to the port specified. The primary project I was working on was developed in Netbeans and deployed to SJSAS. I have since switch this project to working with JDeveloper 11.1.1 as the IDE and doing remote debugging from the IDE connecting to the SJSAS debug port.
    Note, that the maven plugin development for the managing of these aspects should be easier with JDeveloper 11.1.1 and the integrated WLS.
    Have you used this approach in a project that uses ADF Business Components? - Yes, I have used it on one of the smaller ADF projects that had already been produced by the team. This project has all the maven features and ability to deploy to the remotes AS via ant scripts. The approach worked in both the dev and test environments. However, for final deployment, I still used the deployment profile to be consistent with the rest of the team.
    Regards,
    Graeme.

  • Where can I found User libraries to download?

    hello,
    I'm searching the lvwutil32 user library compatible with LabVIEW 8.5. Any inputs ?? plus if someone know where there's free user librarie to download it helps Thanks !!

    You've posted to the Developers Seeking Employment board.
    A search should have turned up this. You can also do a search for the dll but I attached it below. The NI site is filled with free code to download. could you be a lttle more specific on what you want.
    Attachments:
    LVWUtil32dll.zip ‏14 KB

  • JDeveloper 11g - Auto Load User Libraries for Every Project

    Hello.  I have created a user library in JDeveloper 11g by going through Tools -> Managed Libraries.  These are standard libraries for my company, and I would like to load them automatically into every project (Fusion ADF) on project creation.  Is there any way to do this?  I already tried checking the "Deployed by Default" flag, but that did not work.
    Thank you in advance.

    Exactly which version do you use?
    You can try to create an application out project template and select your library in the projects.
    Timo

  • Accessing user libraries from deployed JSP. Problem

    I've created a workspace and project contining 1 web bean "AQABeanPK1.AQATableView" .
    I then used the 'manage libaries' to add it to Jdeveloper as a library.
    I also added the webbean to Jdeveloper via the manage web objects tool
    In my jsp project I included the library in the project settings
    created a JSP and used the web bean from the component palette.
    When I deploy the JSP I get the error :-
    Errors compiling:C:\jdev903\j2ee\home\application-deployments\webapp1\webapp1\persistence\_pages\\_CustomersView1__Browse.java
    Line # Error
    118
    [jsp src:line #:22]
    Class AQABeanPK1.AQATableView not found. AQABeanPK1.AQATableView CA = null;
    129
    [jsp src:line #:22]
    Class AQABeanPK1.AQATableView not found. CA = (AQABeanPK1.AQATableView) pageContext.findAttribute("CA");
    134
    [jsp src:line #:22]
    Class AQABeanPK1.AQATableView not found. CA = (AQABeanPK1.AQATableView) pageContext.findAttribute("CA");
    139
    [jsp src:line #:24]
    Variable CA may not have been initialized. CA.render();
    If I create the webbean in the same project as the JSP then I get a successful run.
    Any help on deploying user libraires would be appreciated
    Cheers
    Colin

    Place your web bean .jar file in the OC4J j2ee\home\lib directory.

  • Synch-ing user libraries

    Hi, posted this question earlier but I might not have been specific... here it goes again:
    How do I synchronize two iTunes libraries?? I have two user accounts on my computer and each account individually adds files to the iTunes library. The files are being stored in a 'Shared Folder' and that's where my iTunes folder is stored, but the only way I can add files to my user account library is manually bring browsing through the 'add file' option in the file menu.
    Is there anyway to update the library automatically when files are added under the other user account??
    Thanks.

    The files are being stored in a 'Shared Folder' and that's where my iTunes folder is stored,
    Is the *iTunes folder* there or the *iTunes music folder*?
    If the *iTunes folder* is there, start iTunes while holding the Shift key.
    select *Choose exisiting library* and select the iTunes library.itl file in the iTunes folder in the Shared directory.
    Quit iTunes and do the same for the other user.

  • 2 user libraries in finder?

    Hi everyone,
    I just updated to Mountain Lion today and discovered something that seems a little strange. It appears I now have 2 different user library folders. If I select my macbook from the devices menu in the finder sidebar then Macintosh HD, I am presented with several folders including Library, System, Applications, User Guides and Info etc. I was under the impression that this Library folder represeted my user library, however it appears the info in this library is different from if I navigate to Library using the Go tab in finder and holding down option and selecting library. For example, in the Go, Option library the folder Mobile Document exists. This folder and a few others is not present when accessing the library using the first method. It appears these libraries contain different information. Any ideas what that first library is? Possibly a previous library from an older version of OSX? Thanks for the help.

    Thanks for the replies guys. If you don't mind my asking, what is the purpose of the library at the level Devices>MacHD>Library if this is not my user library. I was previously under the impression that there were two libraries, a system library and a user library. Thanks.

  • Consolidating Different User Libraries in Windows XP

    We have 2 separate users accounts set up in Windows. A lot of the music is duplicated under each user. I would like to consolidate both libraries into one to save space and delete completely the second user account as this is all the second user is set up for on my PC. I am hoping to update the two ipods manually via separate playlists in my user account once consolidated. I know that I can consolidate music held outside the itunes library but in this instance all music is held in the itunes folder but under different users.
    Can anyone confirm the process?
    ipod photo 30gb/ ipod 20gb   Windows XP  

    the following document might help with the initial "consolidation" process:
    iTunes: How to share music between different accounts on a single computer

  • Consolidate user libraries on Macbook pro

    I have 3 different user accounts on this computer, but I can't seem to merge each user's library into one central library. We don't want separate libraries. How do I create a central library and maintain it as a single library. When one user gets downloads, we want the downloads to go to the central library.

    Use the instructions in this article to merge the libraries.
    (14822)

  • Restoring multiple users/libraries

    Hi - my hard drive crashed and I was able to restore iTunes and re-synch my iPod under my user name. Before the crash, my iPod synched to my user account and my wife's iPod synched to her user account. We keep our music in a shared folder.
    Now I am trying to point iTunes under my wifes user account to the shared folder and it is giving me an "access denied" error. She is set up as an Administrator (as I am) and I do not understand why the error.
    Help!
    Thx, Chris
    Dell 8400   Windows XP Pro  

    If you want to share the one library, you can set either or all of the iPods so that they only get updated with only certain playlists (you can update from more than one if you wish):
    Loading songs onto iPod automatically - Mac
    Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for the iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used some other time if you choose. You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes
    Or you can choose to update any or all of the iPods manually and just drag whatever content you want to them: Managing content manually on iPod
    Loading the iPod shuffle differs slightly but it can still be used with the others, for details have a look at this page:
    Loading songs onto iPod shuffle - Mac
    It's also possible to have multiple libraries in a single Mac user account. To create or access a second (or more) library, hold down the Option key when launching iTunes 7. In the resulting dialogue you will get the option to create a new library or navigate to the other Library.
    Note: You can only have one Library open at a time and iTunes will default to the last library opened if you don't use the keyboard command to choose one. This can prove tricky when using multiple iPods, if you don't use the keyboard command you can risk syncing to the wrong library:
    Using multiple iTunes libraries -Mac

  • Multiple users/libraries

    We have five different users on this computer (family) and we all have ipods. Question is, we all like a lot of the same music, yet up until now, we've each downloaded the same CD's over and over again, to put them on our own itunes libraries. Seems to me that this is taking up way too much space on the computer. Is there a better way to do this? There must be....thanks....
    All 7 of our ipods are listed below....thanks!
    ~~Mara
    Power Mac G5   Mac OS X (10.3.9)   3: 60G ipods, 1: 4G nano, 2:10G ipods, 1: 1G shuffle

    If you want to share the one library, you can set either or all of the iPods so that they only get updated with only certain playlists (you can update from more than one if you wish):
    Loading songs onto iPod automatically - Mac
    Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for the iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used some other time if you choose. You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes
    Or you can choose to update any or all of the iPods manually and just drag whatever content you want to them: Managing content manually on iPod
    Loading the iPod shuffle differs slightly but it can still be used with the others, for details have a look at this page:
    Loading songs onto iPod shuffle - Mac
    It's also possible to have multiple libraries in a single Mac user account. To create or access a second (or more) library, hold down the Option key when launching iTunes 7. In the resulting dialogue you will get the option to create a new library or navigate to the other Library.
    Note: You can only have one Library open at a time and iTunes will default to the last library opened if you don't use the keyboard command to choose one. This can prove tricky when using multiple iPods, if you don't use the keyboard command you can risk syncing to the wrong library:
    Using multiple iTunes libraries -Mac

  • ITunes Match, multiple users/libraries

    I've poked around a bit, and can't find a clean answer to my question.
    My situation is three users, a couple of shared devices, and several ipods/iphones. To this point, we have used one apple id for everything. But each user has pretty specific tastes, so three fairly divergent music libraries. I want each user to be able to manage their library in the cloud most effectively without merging. iTunes Match, however, doesn't differentiate by library. If I turn it on for everyone, everyone's music gets mashed together, including play counts and playlists.
    My next solution was to just give everyone their own apple id, and pay for each person to have music match. However, when I tried this last night, as I activated a new id, I was told my computer was already associated with an Apple ID, and that ID would be locked out for 90 days in terms of iTM.
    My conclusion is that there is no way to have multiple users manage their libraries independently using iTunes Match. Is this correct? Does anyone know of anyone work arounds? Am I missing a setting somewhere?
    Thanks

    Each user on each computer will have to set iTUnes to use the external as the library location.
    Next depends on what you want to do. Move all files to external then using iTunes add the files to iTunes library again. Empty library in iTunes then add files to library recreating library from scratch.
    All users will have to maintain each library separately even though all files will be in same place and accessible to all users. When one person adds something to their own library the other ones will not know it. If someone else wants those files also then they will have to use add folder or add file option to add the files to their own library. It should not duplicate the files on the drive but is sometimes does when you do this. Deleting files or renaming them can be problematic if one user deleted a file another user has in library it will affect both. Podcasts are an exception, these will always duplicate if multiple users subscribe. This allows individual management of episodes.

  • ITunes Issues - Multiple Users/Libraries

    I am experiencing several issues that revolve around multiple users, multpile iPods and two networked computers. To describe the situation - I have two computers networked with an external drive connected to the main computer. My wife, my son, and I are all users of the computers, we all have our own iPods and it seems like we have multiple libraries out there. I am looking for a solution to do the following: Consolidate all of the libraries into one shared library that all of us can use located on the external drive (due to size constraints and trasportability). The external drive is a plug and play type device with ample space for this. SOme of the issues I have are some songs appear in one iTunes list with a gray exclamation point in front of them and then you have to go searching for the proper folder/library to locate the file, so obviously there are multiple libraries/folders. I believe this has everything to do with my sons "ability" to fix things on the computer. Can anyone direct me to or provide me with a solution to this dilemma? Is there a way to consolidate these without creating multiple copies of the same songs (this has also occurred in the past when my son was solving things. Sorry for the long description but I am trying to provide as much info as necessary.

    Each user on each computer will have to set iTUnes to use the external as the library location.
    Next depends on what you want to do. Move all files to external then using iTunes add the files to iTunes library again. Empty library in iTunes then add files to library recreating library from scratch.
    All users will have to maintain each library separately even though all files will be in same place and accessible to all users. When one person adds something to their own library the other ones will not know it. If someone else wants those files also then they will have to use add folder or add file option to add the files to their own library. It should not duplicate the files on the drive but is sometimes does when you do this. Deleting files or renaming them can be problematic if one user deleted a file another user has in library it will affect both. Podcasts are an exception, these will always duplicate if multiple users subscribe. This allows individual management of episodes.

  • Making to user libraries on one computer?

    Hey i was wondering if its possible to make two libraries on one Computer. Im on my laptop and my mothers songs are on here from her ipod and mine are on my desktop. Is there a way where i can keep her itunes songs on there and some how put my songs on there too without them both getting mixed in with each other

    Sure thing,
    just click on the iTunes icon, immediate (and I really mean immediate ) hold down the Shift-key. You will see the option to shift between 2 libraries or to make a new one. Chose to make a new library and follow the instruction on your screen.

  • How do I combine separate user libraries into one public library

    In Windows Vista, most of the iTunes files (musing & movies) are in the public folder. But, my kids have files in their separate user folders.
    My question is how do I copy the files from the separate user folders to the public folder so that any of them can load any of the files into their iPods?
    Thanks in advance for the help.

    Drag one account's home folder from the Users folder to the other account's desktop, provide your administrator password, and then move your files from it.
    (75344)

Maybe you are looking for