Persistence, shared between the EJB and WAR projects

Hello

I created an Enterprise Application in netbeans which an EJB project and archive web. This can be expanded further at a later date by the presence of a client application as well. I'm still pretty new to this so you don't have to forgive me if it is a simple problem. I have a persistence unit (persistence.xml) that I need to share between the two WAR and EJB, but so far, does not feel very lucky. I have read the various responses and they say I should have the EAR that is constructed in the following way:

Project.ear
=======
META-INF/MANIFEST. MF
lib/Persistence.jar
-> META-INF
-> META-INF/persistence.xml
project - ejb.jar
project - war.war

When I try to compile, if I get the following messages among two EE modules:

Note: The XML persistence [META-INF/persistence.xml] has not been found. NO GENERATION will occur! Please ensure that a persistence XML is available either from the directory CLASS_OUTPUT [META-INF/persistence.xml] or by using the eclipselink.persistencexml property to specify its location.

I tried to copy the persistence.xml in the META-INF directory in the EAR file and defining the eclipselink.persistencexml=META-INF/persistence.xml, but it still shows the same thing. Is this a classpath problem or is something else wrong?

Thank you very much

The EAR is a good idea, but you put the META-INF/persistence.xml in your ejb module. The EJB is where you do all your (managed container) transactional stuff, so do call in your EJB since the WAR instead of trying to share a persistence between modules unit.

Tags: Java

Similar Questions

  • import problem between the ApplicationController and ViewController project

    Hi all

    Strange question (?) in my application ADF containing the standard ApplicationController and plans a ViewController: a class in the ViewController project uses project ApplicationController, in 'Sources of the Application' and 'application' - about the default package.
    That's why I intend to import this class, which fails unexpectedly ("import... not found"). Also, without an import statement, it not there no import-AutoComplete proposed in the code where the "imported" class name.

    In a similar (but independent) sample application, import works fine, no error whatsoever.

    What could be wrong here?

    Hello

    If these are two different projects, did you create a dependency to the class with the project in the project properties many?

    Frank

  • folder shared between the administrator and guest user

    Hello

    I am trying to hire someone to work for me, using my computer...

    It will record both use comments, but I need it to access some of my files, for example my quickbooks etc...

    Is it possible to have a shared folder, or in some way to grant access to certain files and applications?

    Thank you very much

    You can use the Public/Dropbox folder in your user folder.

  • Sharing between the office and cell phones driver

    How to share a driver (with data files) from the desktop (Windows 7 Home Premium) with a laptop (window Vista Home Basic) through a router?

    Hello little bb,.

    A quick correction: you mean in car no driver.  A road is a place of storage for files, a driver is a program that communicates with the hardware (printers, cameras, scanners and the mouse have a drivers for example).

    In any case, to share your car from the desktop to a laptop computer, there are several choices.  This tutorial on this page provides an excellent walkthrough.

    However, an easier method is to use the "Homegroup".  Since the first computer, open your Start menu and type "homegroup" to find the option to create a home group.  Once created, you can do the same from the laptop to join the home group.  Once completed, the two computers will see each other and you will see a new folder 'group' on the left side of your file Explorer that allows you to access shared drives on the other computer.

  • How to disable the sharing of files between the host and guest XP PRO?

    Hello my setup is:

    Host of XP PRO and XP PRO comments using NAT.

    How to disable file sharing between the host and guest (do not want to view or access the file share on host comments)?

    In the comments

    I tried to disable simple file sharing in folder options and uninstall

    File sharing and printing of LAN properties but can always see and have access to the

    Organizing actions of folder...

    Help please!

    Then you will need to disable "Microsoft File and Printer sharing" or you need to set restrictions with the GPO. As long as the systems have their default values the value of a Microsoft network allows to use actions.

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' answers and answers. Thank you!!

  • Problem to create the Internet connection sharing between Windows XP and Windows Vista.

    Original title: Internet connection sharing between Windows XP and Windows Vista.

    Hello

    Recently, I plugged a laptop running Windows XP to a desktop computer running Windows Vista using a standard Ethernet cable with the intention of use sharing of Internet connection. The notebook contains a wireless connection that I've routed to the office via the cable said.  While the initial phase of installation went well (I was too lazy to do it manually, so I just used the Wizard "Set up a home or small business network" Windows XP,) I had to turn off the host computer to install a program. When I tried to set up ICS again, I couldn't connect to the Internet by using ICS. After this failure, I tried to configure the properties of TC/IPv4 (IP, gateway by default, etc.) manually, but I still couldn't run.  I am able to access the shared host PC and client files. It seems to me that some service essential to the proper functioning of the ICS may be disabled in some way, but it's just speculation, as I have no evidence of such a service. Help would be most appreciated.

    Thank you

    FG-man

    I tried this before using a laptop to share internet with my 360.  problem is there was Nat on the router, and it is in contradiction with the ics.

    Anyway long story short I did some research on the Internet and discovered that if you're behind a router ICS will be confllict with her, as ICS also does routing. a much better option is to "bridge the conections ' on the laptop.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/hnw_bridge_install.mspx?mfr=true

    If you go this route, you need to set a static ip address for the office,

    Either that or if you want to continue using ICS put the laptop in the DMZ in the router may help, but it will be less secure.

    Hope that this helped good luck

  • Unknown device on network adapter between the laptop and the wireless router

    I am running windows 7 64 bit on a laptop computer connected wireless to the router and internet.  The router is Linksys WRT160N connected to the internet.  The map of the network, there is a question mark device unknown between the laptop and the router.  However, I still have access to the internet.  In terms of network, if I hover over the laptop, it does not show an IP address.  It only shows the name of the computer and its MAC address.  Any help would be appreciated.

    Solved my problem.  I checked the button of the IPv6 protocol in the properties of a network connection on the laptop, and now I can see it's the IP address and the unknown device has been replaced by a switch and hub which is part of the router.   I do not uncheck the button IPV4.  I'm guessing that it is a bug in Windows 7 that you need to cut of ipV6 Protocol when you have a Win XP computer on the network if you want to see a map of own network.  As I said before, everything worked before, so this seems to be a cosmetic fix only.  I see that my shared files on the XP computer appear faster after a reboot.

  • authentication between the ACS and AD

    Hello

    I would like to know what kind of authentication mechanism ACS 5.1 use to speak with Active Directory. Does simply use MSCHAP, MSCHAPv2 or PAP. By default, it uses PAP to talk between the Cisco IOS and the AEC on the 5.1.

    If you llook at the default admin tab and click on allowed protocols---> he mentions PAP.

    Should I use a safe means of transport between the ACS and AD. IDF, so anyone can say the authentication mechanism?

    Thank you

    Any meeting of directors like telnet, ssh and comfort they always use PAP as an authentication method.

    Although communication pap can be captured and read in this case in clear text. However, since we have Ganymede in use, he always encrypt the whole package with shared secret defined on the IOS and ACS/GANYMEDE so if you capture traffic between the radius and the device you won't be able to decipher it without the key.

    In case you have Ray then using SSH (Putty) so that it can help you for a safe communication.

    ACS and AD support PAP, CHAP, MSCHAPv1 and MSCHAPv2.

    However, the administration does not work on another method of authentication except PAP.

    HTH

    Regds,

    Jousset

    Note the useful posts ~

  • What is the difference between the ADF and ADF Essentials?

    What is the difference between the ADF and ADF Essentials?

    and how to ensure that the essentials of the ADF is enough for the project rather then ADF.

    Thanks in advance.

    Hello

    The main problem is, you are not allowed to deploy critical applications of the ADF in the clustered environment.

    Kuba

  • good when I have several pictures im by clicking between the spaces and the 2Installez them but theres a lot so I was wondering if there is a way to select and make snap toghter I looked online but no help

    good when I have several pictures im by clicking between the spaces and the 2Installez them but theres a lot so I was wondering if there is a way to select and make snap toghter I looked online but no help

    Yes, you can select a group of items in the project Panel, use of the PLC to the sequence option.

    Neil

  • Store of data sharing between 4 ESX and ESXi 5

    Hello

    I have a vSphere environment 4.1 with a vCenter and a cluster of 3 ESX 4.1 access to the content of data through fiberchanel (type scneario) warehouses.

    And now I need to install a new ESXi 5.x (cannot be a different version) in a separate environment, outside of the current vCenter, BUT to access the warehouses of data even as the cluster of vSphere 4 current.

    Anyone know if there should be no problem sharing between 4 ESX and ESXi 5 access to the same data storage?

    Thanks in advance

    As long as the FC zoning is configured properly, avoid all the problems.   ESXi 5 will be able to see the data created by ESX4 VMFS3 stores, it will not be able to create the same size of virtual machine he can on a 5 VMFS datastore.

  • What are the relationships between the logging and IKM?

    What is the best method to use in the following scenario:
    I have about 20 tables with the large amount of data sources.
    I need to create interfaces that join the source tables in target tables.
    The tables are inserted every few seconds with about hundreds of thousands lines.
    There may be a gap of a few seconds between the insertion of different tables that could be attached.
    The source and target tables are on the same Oracle instance and schema.
    I want to understand the role of: 'Logging CDC' and "IKM - incremental" and
    How can I use it in my script?
    In general, what are the relationships between "Logging" and 'IKM '?
    Use both? Or maybe it's better deelte and insert the target tables?

    I want to understand what is the role of "Logging CDC"?
    Can 'IKM - incremental' work without "logging"?
    Must 'Logging' have PK on the tables?
    What should I do if I can't say PK (there may be several identical lines)?

    Yael thanks in advance

    user604062 wrote:
    Hello
    Thanks for your quick response!

    No probs - its still fresh in memory I did a major project on this topic last year (400 tables, millions of lines per day (inserts, updates, deletes), sup-5 minute latency). The problem is it isn't that well written on the web, that you have read the blog of the example I linked to in my first answer? See also here: http://odiexperts.com/changed-data-capture-cdc/

    Always on logging:
    My source table is inserted all the time.
    The interface to join the source table in the target table.

    In ODI, the correct term would be your source table "fits" in the table target, unless you mean literally that want to join the the source with the taget table table? My question if you want to do with the result of the join?

    What exactly the "journaling" CDC updates?
    It updates the model of ODI? interfaces? The source of data in the model of ODI? The target table?

    Logging CDC configures and deploys the data capture mechanism (Triggers or log based capture, IE Logminer/streams/Goldengate) - it is not updated the model as such, she pointed out the metadata of the model of ODI repositoty as a CDC data store, allowing you, the developer say ODI to use log data if you wish (reported in the interface) There is no change in the target table, you get an indicator of metadata (IND_UPD) against a line during the integration (in C$ and I have tables$) that tells you if its insertion (I) and update (U) or deletion (D). It had ' lines allow you to synchronize the deletions, but yoy say its inserts only then you probably used use this option. "
    So the only changes are the source table to your interface, another diary data (if you use logging) or the table of the actual source (if not using the logging).

    This is the main thing that I don't understand!

    I hope I made a little clearer.

    Try the following as a quick test:

    Reverse a source table an engineer and the target (at least) table.
    Import the update incremental LKM and IKM.
    Import of the JKM you want to use.

    Create an interface between the source and the target without any deployed JKM.
    Configure the options of JKM on the model, the "Start log" to start the process of capture - this is quite a complex stage and a lot of things to understand what is happening in the source database, better to check code ODI sends to the database and to review the documentation of Oracle database for a description of what his weight (instantiate Tables (, sets of creating change, creation of subscribers etc. establishment of newspaper groups, creating views Journalising etc.) -you will need to consult your Source DBA database initially as ODI wants to make many changes to the source DB (in mode Archivelog process max, parallelism, size, Java etc.)

    Now, edit your interface and mark the table source for use "Journalized data bank.
    Restart your interface
    Compare the difference in the generated code in the journal of the operator, see the differences of the operator.

    >

    Thank you, Yael

  • sharing between ESXi3.5 and ESX4 vmfs volume

    Is it possible to share a LUN with a vmfs between ESXi3.5 and ESX4 servers?

    IM upgrading to ESX4 and wanted to know if I can share the volume between the old and new guests and migrate virtual machines gradually. I read that the vmfs specification has not changed between 3.5 and 4, it should be possible to share beween 3.5 and 4.

    Is it possible?, supported?, not recommended?

    Hello

    I assume you mean shared storage?

    To answer your question. Yes that is supported and this is the route that most of the people.

    Storage is compatible.

    As soon as you upgrade virtual hardware of your virtual machine it can be started from a vSphere host.

    --
    Wil
    _____________________________________________________
    VI Toolkit & scripts wiki at http://www.vi-toolkit.com

    Writer to the blog www.planetvm.net

    Twitter: @wilva

  • Move files between the DSO and the storage library

    Hi all

    I use Oracle RAC 11 g ASM on Oracle Enterprise Linux 32-bit 2.

    I created a group of disks called + FRA for my quick/flash recovery area.
    I take the backup of my database and and all backups are created sub + FRA.

    My requirement I want old backups to a /backup of operating system mount points to be moved to the library of storage by my backup storage management solution.
    and in the case where I want to restore everything back up I'll copy back from /backup to + FRA diskgroup and then restore my database

    Is the above a good practice?
    Should what I do? CP command will help? given that I have faced questions while moving the files using the command cp of ASM to the OS directories for vice versa.

    Kind regards

    Hello

    1. I'll take a daily backup of my database to the FRA + ASM disk group.
    2 backups older then 1 month, that I need it submitted to / backup /.
    I used this: backupset finished after ' sysdate-30' backup format ' / testasm/backup%U' tag = "OLDBACKUPS" entry of deletion;
    is correct?
    or can I say backup obsolete? and there I will be backed up obsolete since FRA on different location?
    3 when I backup my Flash region recover I can instead just delete to delete the input set based on condition of "longer than 1 month?

    The question is how long you want to keep your backups in both places?
    Example:
    If I want to keep two months of backup (regardless of location)

    Configure the 65-day WINDOW retention policy;

    Above all the backup of the database will be stored on + FRA

    Then as maintenance will pass you every day all the backups more 30 days to ' / testasm / '.
    for example

    backup backupset completed after 'sysdate -xxx' format '/testasm/backup_%U' tag=OLDBACKUP delete input;
    

    So, you all first 30 days of backup on + FRA and older than 30 days in ' / testasm / '.

    So, during the restoration, the concept is the same, the Oracle will read the files in your own location.

    The two locations will be kept, catalogued and managed by RMAN.

    In this scenario, the RMAN delete expired files only in ' / testasm / ' because the older files will be there.

    If ' / testasm / ' is not shared between the nodes, I recommend that lets you share the NFS file system. (although I prefer ACFS)

    If NFS is not an option, you need to move and delete obsolete node that have mounted "/ testasm /". You should be aware of the limits of availability of this file system.

    Suppose that you backup all the files in ' / testasm / ' tape (without using RMAN) and RMAN delete these files, because they are obsolete. You can restore these files from a bunch of ' / testasm / "and catalog with this command" RMAN > CATALOGUE START WITH ' / testasm / '; This will increase you the retention of backup, but covering these files saved will be your provider of backup media retention policy.

    Hope this helps,
    Levi Pereira

  • How to communicate between the host and the guest in a stand-alone PC

    I have a professional Standalone XP (host) that is not connected to a network. I created a host (XP Professional) using vmware. Pls know me how to communicate and transfer files between the guest and the host.

    Pls post the procedure or send it to [email protected]

    Thanks and greetings

    Ganesh.

    Use "NAT" or "Host-Only' networking for your virtual machine, NOT bridged.

    Activate a shared folder on your virtual computer configuration, map as a network of virtual machine of your shared folder on the host drive.

    Good bye

    Riccardo Riva

    VCP, RHCE, FCNSA

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '. Thank you!

Maybe you are looking for

  • versions of Toolbox

    Is it possible to determine which version of a tool that I installed? Thank you Joel

  • Cannot open the .docx and .xlsx spare email

    Description of the problem: I am using Window XP.  On the Outlook Express 6.0 window, I was always able to open .doc and .xls attachments.  I recently received attachments of .docx, .xlsx, which only opens and displays a message that I do not have a

  • ESXi monitoring material 5

    Hello I would like to watch my 5 ESXi hardware. That's why I need to get information through WBEM as SNMP is no longer supported. How what can be done with vFoglight (6,6)? I did some research on google and watched through the discussions on this com

  • BlackBerry Smartphones need help with my email on my Blackberry Curve

    I got an email from Yahoo (POP) and an e-mail to AOL (IMAP) address.  I use firefox thunderbird on my PC and both operate independently of each other. However, I have problems on my Blackberry Curve.  When the email is sent to my Yahoo account, it ap

  • Validation setting required for custom properties

    HelloI have a custom as property: ProjectManager (data type: String) and you want to define a validation for this property at the level of the node.The value of this property must be entered in the format Lastname, Firstname M. (Raj, Mr.Fernandez). H