How do I access files within projects of the same web application?

Using JDeveloper Studio 11.1.1.1.0
I'm creating a web application using the Model-View-Controller design pattern. Model represents data, View represents data display, and Controller is control...
In my application, I created two projects: EJBModel and UserInterface. EJBModel contains the model aspect so it has entity objects and beans to access/manipulate the data. The UserInterface project stores the web interface - mostly jsps. In the UserInterface project, I need a managed bean that calls methods from the beans created in the EJBModel project. I can do this using the @EJB annotation and creating an instance of the class, but since the files are in separate projects that can't see each other and JDeveloper shows an error because it can't find the necessary file. It is best practice to create two projects as it keeps both elements distinct.
So I wanted to know the best way to access the files stored in separate projects within the same application. Is there a way to package them together?
Thanks...

In the UI project, go to project properties->dependencies and add a dependency on the model project.
This way JDeveloper will know what classes you are referencing.

Similar Messages

  • How to upload pdf file in a canvas in flex web application?

    how to upload pdf file in a canvas in flex web application?

    Hey saif.antri,
    You can view PDFs and more using iBooks on your iPhone:
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/HT4227
    Have a great day,
    Delgadoh

  • How do I share files between users on the same machine?

    I tried using /Users/shared to share files between myself (Admin user) and another user on the machine (Standard user). Whenever I put a file or a folder into said directory permissions are 755 for directories and 644 for files, my umask is 0022. The files and directories belong to my user and the group staff. This means I can read and write and others can read. If I do the same using the other users account. Permissions are 700 and 600 respectively. (Owner is the other user and group is staff.) Strangely the other users umask is 0022, too.
    The result is, that all directories and files I create with my account (Admin user) are readable to every other user on the machine, whereas all directories and files the other user (Standard user) creates are not readable for anyone else. I can easily rectify this using the Terminal and chmod and/or chown, but it is a pain having to do this, since I also need to forcefully restart the Finder App for it to notice the changed permissions.
    Ideally I'd like all directories in /Users/Shared to have permissions 777 and all files 666 no matter which user created, copied or moved them to said location. I think this could possibly be done using applescript and shellscripting and the folder action hook. So far my attempts to find such a script on the net or/and write it myself have failed. I'd be grateful for any hints how I:
    a) write and setup such a script
    b) accomplish what I try to do (share files and folders on the same machine) in another possibly more Mac way
    Kind regards
    David

    The following AppleScript will recursively descend the directory tree and change the items to your modes:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving these_items
    repeat with some_item in these_items
    ProcessStuff from some_item
    end repeat
    end adding folder items to
    to ProcessStuff from SomeItem
    processes items contained in SomeItem, recursively descending the directory tree
    parameters - SomeItem [mixed]: an item containing the items to process
    returns nothing
    set SomeItem to SomeItem as text
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder (not a package)
    do shell script "chmod 666 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    try -- to get items in the folder
    tell application "Finder" to set SubFolder to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with SubItem in SubFolder -- process the sub items
    ProcessStuff from SubItem
    end repeat
    else -- a file
    do shell script "chmod 777 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    end if
    return
    end ProcessStuff
    </pre>
    You shouldn't need to change the ownership, so I commented out the chown shell script since this would need to be run as a super user. You can run a shell script with administrator privileges, but in order to be used by a standard user you will need to provide the appropriate user name and password in the script, which might not be a good idea - note that the folder action script will need to be attached in all accounts that you want to change the permissions, which means that it would need to be accessible to those accounts.

  • How do I share files between users on the same Macbook pro?

    I have created different users on my new Macbookpro, but I can't seem to share files between two users. Help how do I share files between users on one laptop? eg. a pdf file that I want to grab from my user x and use it on user y, thanks.  By the way I have already tries going into system preferences, sharing folder, then turning on file sharing and that didnt work. thanks

    From the Help Menu using the search criteria Drop Box

  • How to find duplicated files across users on the same mac

    I have an iMac under 10,8,3 with different users. How can I find out the duplicated files ie same file under different users account ?
    Thanks

    You can't. Other user's files shouldn't be discoverable by an user. If they were, then the security model would be broken.

  • How do I share files between users on the same computer?

    My wife has a MacBook, and I just bought my first iMac.  When I booted it for the first time, it asked me if I wanted to copy preferences from her computer.  I thought that was a great idea.  It took 8 hours to copy everything (this I totally did not expect, but couldn't interrupt), but when it was done, I had all of my fiiles and applications and everything, so that's cool.  Now the problem is the separate user accounts.  I had always used her account on her computer while mine sat idle, for the most part.  Now I want to use my account on my computer but cannot find *any* of my files, unless I switch users and view them on *her* account.  Even when I "search my entire computer" for a file, the Mac acts like the files don't exist.  I turned on file sharing in the sys pref, but that didn't seem to help.  Any ideas?

    Mac OS X by design keeps documents and settings owned by one user private from and inaccessible to any other user on the system. This is normal and has always been the case with Mac OS X.
    If you want documents accessible from both accounts, the easiest way to accomplish it is to put those documents in the Users/Shared folder. If you want to move your documents from your wife's account to yours, log into her account, move the documents to the Shared folder, then log into your own account and move the documents from the Shared folder to your own Documents folder.
    Regards.

  • How do I share files across accounts on the same iMac?

    I used Migration Assistant to bring documents from a Windows laptop over to my new iMac.  I setup several accounts already on the iMac.  I want to be able to view the migrated documents across all of the accounts on my iMac.  How do I do that?

    In FINDER, copy the migrated documents you want to share into the Dropbox, in the second column over.
    Hope this helps

  • How to disable access to internet completely in the jnlp file

    Hi All,
    Can someone help me in figuring out how to disable access to internet completely in the jnlp file.
    To be specific with the scenario if the client does not have the JRE installed, i would like to have it downloaded from the server where application runs instead of going to java.sun.com website which needs internet access.
    How can we configure it in such a way that it does not go to internet at all.
    Here is the snapshot of my jnlp file
    <j2se version="1.5.0+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="128m"/>
    I tried with the following and still unsuccessful.
    <j2se version="1.5.0+" initial-heap-size="128m" max-heap-size="128m"/>
    Could not find any useful information in the documentation.

    see post from Mike at:
    http://forum.java.sun.com/thread.jspa?threadID=704112&messageID=4082098#4082098
    for how to set up your own autodownload of jre from within your internet.
    /Andy

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • How can I access files that I moved from an older MacBook Pro to a newer one via Firewire and Migration assistant.  The files show up on the new MacBook but cannot be opened.  Thanks!

    How can I access files that I moved from an older MacBook Pro to a newer one via Firewire and Migration assistant?  The files show up on the new MacBook but cannot be opened.  Thanks!

    Get info then check permissions then add your curent user name (it was probably different on old Mac) and give your username full read/write permissions.

  • How to import swf files into project

    I am new to flash programming. I have to make minor
    modifications to an swf
    file. I decompiled it to the fla file but all of the sprites
    which are
    themselves swf files did not end up in the fla file. how do I
    get these swf
    files back into the project so when I make the new swf file
    it will be the
    same as the original one?

    Hi
    I think 'Handbrake' will convert swf files used it for lots of converting but not tried it with swf recently, its available for free download just give it a google.
    Hope this helps

  • How do I access files that have been recovered (after a Mavericks problem) with the .cca file extension

    How do I access files that have been recovered (after a Mavericks problem) with the .cca file extension

    First, to access documents you must use an app designed for that specific Document type. So Pages will not be able to open PDFs. The Documents app by Readdle can handle PDFs though. In the latter case, you'd open the app, click the menu icon at its top left, and click Open to go to your iCloud Drive. With Pages, if you had files outside the main Pages folder, click + then iCloud and navigate to the file's location.
    Matt

  • How do you access files on your time capsule from your mac?

    how do you access files on your time capsule from your mac?

    i had an old macbook pro that i had all the pictures on and i backed it up to my time capsule through time machine. i got a new macbook pro retina display recently and im wanting to see if i can get some of the pictures off of my time capsule now but i dont want all of them.

  • How to ftp a file within PL/SQL procedure?

    Hi, all:
    Any idea of how to ftp a file within PL/SQL procedure? I have scheduled a job to periodically generate a file and want to ftp this file to another machine. I know crontab can do the ftp part, since we can send email within Oracle, I am wondering whether we can ftp within Oracle as well? Thanks a lot!

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:150612348067

  • Office 2010 & 2007 - Excel and Access File Locking Out On the Network With Multiple Users

    This is also posted in the Office 2010 - IT Pro General Discussions, but was suggested to repost here, since a definitive answer was not found.
    Hi,
    An issue that's happening is that Excel and Access files are locking on the network. We're currently using Office 2007 and 2010.
    Here are some different scenarios that are happening:
    When opening the file it is locked out by “User X” which is the person that has the file locked out and no one else can open the file.
    When opening the file it is locked out by “User Y” which is NOT the actual person, but is locked out by “User X” and no one else can access the file.
    When opening the file  it is locked out by “…another user” which is generic and no one else can access the file.
    The two more common events are incident 1 and 2 with 3 happening the less common.
    This message will continue until the sessions are closed through computer management on the file server.
    The file server is running Windows Server 2003.
    This does happen on both Windows XP and Windows 7 clients.
    This does happen for users using Office 2007 and Office 2010.
    There are two sets of Office 2010 Users when it comes to patches. Everyone has the most current patches with Office 2010 SP2 while anyone that has Microsoft Project 2010 is using all the current update before Office 2010 SP2.
    All users that are using Office 2007 have all the current patches and service packs.
    Another variable is that we have users that will leave a file open on the network for 3+ days and after a while it will lock the file out.
    Also we have Shadow Copy that runs daily on the system which I'm not for sure if that impacts anything if a file is opening during that time.
    Any ideas on how to mitigate the lock out issues would be appreciated.
    Thanks,
    Binary Process
    Edit November 12, 2013: This issue can occur if and if not another person actually has the file open. If the person doesn't have the file open then there is a hung connection which needs to be disconnected by going to the Computer Management of the File
    server.

    Hi Binary,
    I know that the description of the hotfix does not relate to the issue. The purpose is to install it for upgrading SMB related file.
    A similar issue I encountered before:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b7fcc59b-52d9-4a02-863a-1a529bcb8cb1/temp-doc-etc-files-dont-close-after-a-file-closes-this-causes-locked-files?forum=winserverfiles
    It is resolved by upgrading SMB files so maybe it will help on your case.
    Another hotfix which may related:
    http://support.microsoft.com/kb/983458
    If you have any feedback on our support, please send to [email protected]

Maybe you are looking for

  • From today both my iPad and iPhone will no longer charge

    It's the weirdest thing. My Iphone & Ipad will no longer charge. They both worked/ charged fine yesterday. I have tried various other chargers for my iPhone as we have other Apple equipment at our house & they all charge fine. The lightning bolt is n

  • Intel graphic adapter

    i have a hp 630 notebook, intell core i3. i installed a fresh windows 8.1 os. but couldnt find graphic driver for my device. i downloaded intell hd graphic driver and after installing, i get a message that my device doesnt have minimal requirement to

  • Hand Tool Default in Acrobat 9

    I hope this is an easy question, but it has been bugging me since my last update.  When I view a PDF (Acrobat 9 Pro) the select tool is the default.  I cannot find any setting that will make the hand tool be the default.  Does anyone know where this

  • Error #1009

    I'm getting this error when I try to use a bitmap collision test: TypeError: Error #1009: Cannot access a property or method of a null object reference. at PlayerGroundCollisions/frameEvents()[/Users/Bill/Desktop/Lunar_Madness/PlayerGroundCollis ions

  • Visual effects in iTunes

    Can anyone tell me what software was used to get the Visual effects in iTunes? I didn't know where to post this query so Using iTunes won out. cheers stevebaz eMac   Mac OS X (10.3.9)   eMac   Mac OS X (10.3.9)