A general question concerning .EAR files?

Hi All,
My question is, what should be the file extension of the utility class that
I will include in my ".ear" file? Should it be filename.jar or
filename.war? The team that I am on has successfully been able to deploy a
.ear file that only contains our entity and session beans. We would also
like to "JAR" up our utility class, so that we may be to use the hot
deployment feature of the application server and the removal of the
enviroment variable where the utility classes are located.
We are currently using the Ant utility to help us build our .ear file.
When I give the utility file name a ".war" extension and then deploy the
".ear" file; the application server boots up successfully without throwing
any exceptions. When I give the utility file name a ".jar" extension and
then deploy the ".ear" file, the application server boots up successfully
with exceptions concerning unable to locate one to several utility classes.
Thank you in advance,
Charles
Charles Jean-Baptiste
[email protected]

It sounds like you are having a ClassLoader problem.
The main advantage of deploying EJBs and WebApps in an ear file is that the
ClassLoader for the webapp inherrits from the ClassLoader for the EJBs.
This basicly means that the webapp can see the EJBs...when you put another
util.jar file in the EAR file this will be in a different ClassLoader and
not accesible by either the EJBs or the WebApp
(and visa-versa)....to make this accesible you need to add the entry
Class-Path: util.jar to the manifest file for the EJB.
1)Create a text file newmanifest.txt with a one line entry of
Class-Path: util.jar
2) When you build the original EJB jar file do like this:
jar cmf newmanifest.txt MyEJB.jar com META-INF
-this will create the jar file MyEJB.jar adding directories com and META-INF
and including the contents of newmanifest.txt in the manifest for the jar
file.
3) Build this all into the ear file.
The EJB will now be able to see the util.jar and because the WebApp can see
the same as the EJB it will also be able to see the util.jar.
Gareth
"Charles Jean-Baptiste" <[email protected]> wrote in message
news:[email protected]...
Hi All,
My question is, what should be the file extension of the utility classthat
I will include in my ".ear" file? Should it be filename.jar or
filename.war? The team that I am on has successfully been able to deploya
.ear file that only contains our entity and session beans. We would also
like to "JAR" up our utility class, so that we may be to use the hot
deployment feature of the application server and the removal of the
enviroment variable where the utility classes are located.
We are currently using the Ant utility to help us build our .ear file.
When I give the utility file name a ".war" extension and then deploy the
".ear" file; the application server boots up successfully without throwing
any exceptions. When I give the utility file name a ".jar" extension and
then deploy the ".ear" file, the application server boots up successfully
with exceptions concerning unable to locate one to several utilityclasses.
>
Thank you in advance,
Charles
Charles Jean-Baptiste
[email protected]

Similar Messages

  • Question about ear file and jar file

    I have an ear file that I built using ant. Say my project name is test. So my ear file name is test.ear. Everytime I try to deploy the ear file, weblogic complains about not finding the test-ejb.jar. I'm confused as to why weblogic expects a test-ejb.jar in the ear because I didn't intend to put one in. My question is whats inside the ear file that weblogic thinks it needs the test-ejb.jar? I went through the file, but couldn't find anything that should tell weblogic that it should find a test-ejb.jar. In addition, I don't have either weblogic-ejb-jar.xml or ejb-jar.xml in the ear file. Any help would be appreciated.
    Thanks in advance.

    An EAR should have an "application.xml" in the META-INF directory within the JAR. You might take a look at it. I suspect there is an EJB module specified by that name.

  • Question on EAR file Limitations

    To Whom it may concern,
    We are utilizing Weblogic 9.2 R3 in a 32-Bit Windows Server environment and I am having trouble deploying a ear file. The EAR file contains the help files for our IBM application but it seems to not want to show many of the files when you look at the help for the applicatons. I believe it has to do with the fact that the number of files in the EAR file have exceeded 65535. The # is around 69000 files.
    I removed several application help folders to bring the build down to 65100. I redeployed he ear and the help files seem to appear.
    Is there a way to enable Weblogic to deploy the EAR file if the number of files in the ear is past 65535? Also is there a technote for the limitations of Weblogic 9.2 32 bit EAR files?
    Thanks in Advance!
    Edited by: user2237078 on Jul 26, 2011 4:59 PM

    An EAR should have an "application.xml" in the META-INF directory within the JAR. You might take a look at it. I suspect there is an EJB module specified by that name.

  • General question regarding environment files in APPL_TOP

    Hi. I will be passing my OCP (hopefully) next month and I am now turning my head to teh Applications side since my job involves a lot of Oracle Financials.
    I just did a clean installation of 11.5.10.2 but at the level of seeting environment files, my boss swooped in and did them all. I would love to know which ones need changing, or even which ones do what ...
    I am using the Oracle doc Re: Generate the Database Context File
    to follow with, but what I see before me in our own (9i, AIX 5.2) set up doesnt always mirror what the doc says.
    I need some general information about these env. files. In our <ORA>APPL directory we have the following env. files:
    APPSORA.env
    DEV.env
    DEV_davidcl.env
    APPSDEV_davidcl.env
    DAVIDCUST.env (I have changed our firm's name to David)
    In the doc, it explains that there is a "main applications env file", and a consolidated applications file". <CONTEXT_NAME>.env and APPS<CONTEXT_NAME>.env respectively. Which ones are those in my directory listing?
    I have also checked in the .profile of the appcldev and the appdbdev users, and they both point to the same two environment files -
    $APPL_TOP/DAVIDCUST.env
    and
    $APPL_TOP/APPSORA.env
    Sorry this is a bit scrambled message - is there any other source out there to explain environment files?
    Thanks
    DA

    Thanks - they are the same! That's why the DEV_davidcl.env has all the parameters that according to the doc APPDDEV_davidcl.env should have.
    Thanks - very helpful. The DBA here never has any time to explain this stuff, since I think he's been doing it for so long that he doenst understand why anyone would not know it too. Its very hard working for him sometimes since nothing is explained.
    All of my questions are stemming from this clean installation of 11.5.2 that I have done.
    I am still wondering about the .profiles of each user we have on the system though. I understand that we had to copy the profiles from TEST to this, our DEV side, then we edited the profiles to match the DEV parameters. Fine.....but the actual .env files themselves - I am looking at them and dont understand at all.
    Each .profile and each user are as follows:
    appdbdev:
    appdbdev@TEST:more .profile
    APPL_TOP=/oradbi3/oracle/testappl;export APPL_TOP
    . $APPL_TOP/DAVIDCUST.env
    . $APPL_TOP/APPSORA.env
    appcldev:
    appcldev@TEST:more .profile
    APPL_TOP=/oracli3/oracle/devappl;export APPL_TOP
    . $APPL_TOP/DAVIDCUST.env
    . $APPL_TOP/APPSORA.env
    So these two, both on the cl node, appear to be pointing to same env files.
    Then comes the db node:
    oradbdev:
    oradbdev@TEST:more .profile
    . /oradbi3/oracle/devdb/9.2.0/DEV_daviddb.env
    . /oradbi3/oracle/devappl/DAVIDCUST.env
    I think I can understand the .env that are pointed to on the cl node, but I dont understand the oradbdev .profile, since its pointing to oradbi3/oracledevdb for one env file, then oradbi3/oracle/devappl for another.
    I asked our DBA about this, and he said "dont worry about it". I have to try and run the script to start the application server this morning, but every time I try to su to the db node user I get this:
    doralcl:/> su - appdbdev
    .profile[2]: /oradbi3/oracle/devappl/DAVIDCUST.env: not found.
    Like I mentioned, I pinted this out to our DBA and he told me not to worry.
    DA

  • General questions concerning gaming in (arch)linux

    Hi,
    I've searched the forums, and I found a lot of howto's that sometimes worked, and sometimes didn't. I'm not a gamer, but have been a longtime linux-user.
    I have talked a lot of people into using linux, and almost all of them are happy with there new OS, but my brother (my latest convert) is a gamer 'pure sang'. He's not to happy with the switch to Ubuntu:
    * Enemy Territory works, but punkbuster keeps kicking him off the servers
    * WoW: he was used to getting rocksolid 80+ FPS in windows, now he gets 50FPS with drops to below 20FPS
    * Mumble: giving problems
    Yesterday I have found a link to a solution for punkbuster - maybe I can solve that one myself. Is it normal that you have a significant amount lower FPS in linux than in windows? I thought the nvidia-blob was about 'on par' with the windows-driver? I have set WoW to OpenGL and applied several tweaks that I have found around the interwebs...
    Should I give archlinux for him a try (I only chose Ubuntu to make it easier for him to update)? Since punkbuster is 32bit-only, should I install 32bit linux for him? Or should I advise him to buy a 'windows 7'-licence key?
    PS: Is the Archlinux gaming repo still alive? It looks as if no updates have made since early 2010 and only 1 of the 3 mirrors mentioned in the wiki is still up...
    THX!

    I am a pretty much a gamer, less so in recent years but...  I have found that Linux does not offer the same gaming possibilities as Windows.  To this day, I am still dual-booting because of gaming, and I doubt that will change in the near future.  I have ran things like Half-life2 and Stracraft 2 in Linux with statisfying results, but with generally fewer frame rates than Windows.  As for gaming performance, recent test ran by Phoronix suggest that BSD is faster than Linux, but that's not your question.  For myself, I doubt you would find a distro with a significant performance boost for gaming, as they all share the same drivers and all share Xorg to produce graphics.  The only reserve is that other test ran by Phoronix suggest that "compositing" as used in Ubuntu's Unity or Gnome 3 has some negative effect on 3D gaming performance, so if you switch to Arch, you might want to consider the "less cute" desktops, like XFCE or LXDE and the like, without compositing.  Also, I should mention that using 64 bit Linux to run 32 bit windows games tends to make things a little more difficult.  If gaming under Linux with Wine is a must, consider staying under a 32 bit version of the distro of your choice.
    As for Windows games, you might want to look at Crossover ( http://www.codeweavers.com/ ) which offers an interface to Wine and better support.  There is a "gaming edition" of crossover which might help.  Check their DB to see which games are supported, but there's a full-featured demo mode anyway, so try before you buy.  Also, you might try playonlinux ( http://www.playonlinux.com/ ) wich offers an interfaces that manages Wine installations for you with "recepies" in the background that are known to offer the best results.  If you want the "free" option, playonlinux is the way to go if you want the best chances at running your games, if supported.
    Lastly, I would suggest looking at http://www.penguspy.com/ to find Linux native games.  Of course, that might not satisfy your brother if he wants specific games.
    Last edited by jpsimard (2011-09-27 14:50:16)

  • General question and RAW Files

    My apologies if this has been asked before, or if this is in the wrong forum, but I just couldn't find all the answers that I was looking for by searching the forums.
    I am getting ready to purchase a new Mac Pro for my wife (and myself of course) because she has really gotten into digital photography. In addition, she has asked for a new high end Camera. Something that would let her enjoy her hobby to the fullest. Now I have a couple of questions I'm still looking for clarification on.
    1. What exactly are RAW files, most of the other terminology she has thrown at me I have found the answers too and think I now understand. I am getting the feeling this is something that I should understand based upon what I have read but I just havn't found a clear definition.
    2. Is there a good website that I can use to help educate myself in order to make informed decisions in purchasing a new camera and helping make full use of the new mac. I enjoy the help of the forums but I don't want to waste anyone's time when I can just 'RTFM' in a manner of speaking.
    I have already bribed her to buy the mac, however I ask these questions due to the fact the camera is a surprise for her b-day so I don't want to just start asking her questions and give it away. I want to make sure I get the right camera the first time around.
    Thanks for the help!
    Home Grown   Windows XP Pro  

    A raw file in essence saves the information differently, so you can make a photo mistake (underexpose for example) and correct it within reason on your computer. with other formats ie. jpg you get what you get, the information is embedded into your file and you really can't change anything. so if you have a really red photo, take it out in raw, but in jpg you can take it out but then it will replace with green. hard to explain the numbers are set in jpg, not so in raw. Or the underexposed example, in raw you play with the numbers and it can still come out good, in jpg format you do the same thing and the photo would lose crispness, lose saturation, and color, and would probably come out looking washed out.
    There are standards starting in the RAW arena DNG and most programs do support it. and it is the way to go if you are considering high end photography, amatuer or not.
    my latest complaint is that i was trying to utilize my TIFF files made from a raw format for some of these quickie projects. I'm having a bit of an output problem here with iphoto. But once solved will probably be fine. but no matter i would want HIGH input, so there is plenty of wiggle room for whatever output.
    I have a D70 nikon... takes only 6.1 mp shots.. works great for my usage for now. cost is in the $1500 range. Best advice is pick a brand and stick with it. because once you start buying the lens's to go with the camera they don't alway work on other new digital bases from different brands. anything SLR is going to give you the same feel shooting from an old film based SLR. Some lens's will swap out. My old flashes from my older cameras work fine in digital.
    No matter what you get, shooting in raw format takes up space. minimum 20mb per photo. retouch resize, and resave and you can get larger. And although the iphoto 6 does seem to be able to handle the large requirements, it seems they can't handle the quality that goes with it on the output end. Knowing what your output is going to be is important when managing your files (my newest lesson learned).

  • RAID - a very general question concerning stability

    Hi everyone,
    I've read quite a bit about RAID and the various types of arrays one may set up. Most posts give the following info:
    ••• RAID 0, while fast, is risky because if one drive dies, everything is lost; good backup routines is essential in this scenario (unless it is only used for scratch disk purposes).
    ••• RAID 1, and other types of mirrored arrays, are safer because of the built-in duplication of the data on one or more disks.
    ••• Mirrored arrays, as a general rule, should not be used for backup purposes because, while they duplicate data, they don't replace good backup routines and are therefore susceptible to human error, fires, floods, theft, and general calamity.
    But there is one question which I cannot seem to find an answer to:
    As I understand it, the stability of any particular array depends on the stability of the disks used. I have used quite a lot of harddrives in my years but have never had a drive fail on me. Perhaps I've been lucky. Then again, I've never hooked drives up using RAID.
    My question is therefore:
    Using harddrives in any type of RAID setup, will that make them more prone to failure?
    Is it a matter of statistical risk? In other words, each drive has a certain, theoretical Mean Time Between Failure and the more drives you have the greater the theoretical MTBF.
    Or has it do to with the error handling of the hard-/software controller? I guess it is could be relevant whether you use Enterprise grade drives or not because those, as I understand it, skip errors more easily than non-Enterprise drives and leave the rebuilding of the broken bit up to the controller (of course this is not a RAID 0 scenario).
    Basically, do drives become more susceptible to errors because they've been hooked up in a RAID array?
    Any thoughts would be very much appreciated.
    /pullman

    pullman,
    No, drives do not become more susceptible to failure as a result of being included in an array.
    I'm not sure I totally agree about mirrored arrays not being good for backup purposes. In this regard, one must make the distinction between using a RAID array to make a backup, versus using the array to store a backup. In the first case, the data is stored on the array and the built-in redundancy stands in place of a de facto backup strategy. In the second, the backup strategy includes the use of a RAIDed volume to further safeguard the already-redundant backup (which is made by other means).
    In other words, using an external mirrored RAID array to store ones backups seems to me to be an excellent solution. Plus, one can add additional drives to the array, to further increase the redundancy in the system. In a mirrored array, the risk of drive failure is removed from the equation.
    However, the risk of a software, or logical failure still remains. By this, I mean potential disk errors. I have suffered far more disk errors than I have actual drive failures. A mirrored RAID array only contains one logical volume, and this volume is just as susceptible to directory failure as any other. However, backup storage on a single mirrored RAID array is no different in this regard as storing it on a single, dedicated drive.
    So, we get back to the age-old question: Is a single backup enough? Well, it really comes down to the critical nature of the data being backed up.
    Scott

  • Question concerning read file

    Hello All,
    I wrote a program to read a file. When I compile and run the file it runs fine. I take this same code and try to read the file using a JSP page and now my error is file cannot be found, can some one tell be what's wrong here. I'm just calling the class from the JSP page nothing more, and I'm getting File not found although the path was specified correctly and the program worked as a stand alone using Main before.
    Please any help?
    KT

    I want this program to at least read the file from my JSP page
    Here is part of the source code for the Java file
    1)
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("Data_452SY2.txt")));
              DataOutputStream outFile = new DataOutputStream(
                               new FileOutputStream("test2.xls"));
              String readDetail_topLayer;2)
    Here is the JSP page (not doing anything yet) just accepting the java file
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" import="java.util.*" %>
    <jsp:useBean id="wagerhist" scope="page" class="dev.RoundDetail2" />
    3) the rest is just HTML code
    the path for the inoput file ("Data_452SY2.txt") is in the same directory as the class file, but I'm getting file not found exception
    any help?

  • General questions concerning RAC installation

    Dear Oracle experts,
    I would like to try an RAC installation using Oracle 10g on Solaris(Sparc).
    I just want to go through the installation process without the intention to use
    the RAC productively.
    Is it possible to install the RAC database in a second ORACLE_HOME additionally to
    an existing Oracle installation ?
    Are there any traps to avoid ?
    Do I really have to install the database software after installing the Cluster software or
    is it possible to install the cluster software to upgrade an existing database installation ?
    Is it possible to use the RAC without ASM ? (My second machine doesn't have a harddisk left..).
    Thanks in advance for your advices.
    Best regards,
    Daniel

    Hi Daniel,
    You can't have only one instance of ASM running and sharing the disks. You need to have ASM installed on each RAC node in order to mount the shared disks.
    Now you can use one single ASM instance on a server that could be shared by multiple databases (on that same server). We do this in one of our development environments.
    You may not have to upgrade your hardware for a little RAC sandbox. The main thing is getting storage shared between the 2 servers and having the extra NICs for the private interconnect.
    Alfredo

  • Questions concerning the Apachectl file in Oracle HTTP Server

    Three more questions concerning Apachectl file:
    (1) The ORACLE_HOME in the file should be the ORACLE_HOME for HTTP SERVER, not the one for database, right?
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/http_1
    (2) The TNS_ADMIN in the file should be the TNS_ADMIN for HTTP SERVER, not the one for database, right?
    TNS_ADMIN=${TNS_ADMIN="/u01/app/oracle/product/10.2.0/http_1/network/admin"}; export TNS_ADMIN
    (3) I don't have a httpd.pid file pointed by PIDFILE. Is this a problem?
    PIDFILE=/u01/app/oracle/product/10.2.0/http_1/Apache/Apache/logs/httpd.pid

    1) right, OHS should be installed in separate home then db
    2) not right...in OHS there is no TNS entry...frankly there is no "/ADMIN" dir at all! In db ORACLE_HOEM TNS entry is irrelevant for OHS...it looks the same before and after instlation of OHS.
    3) On my server "httpd.pid" is in "C:\oracle\product\10.2.0\db_2\Apache\Apache\logs" and content is "2272". There is reference in httpd.conf file "PidFile logs/httpd.pid". I have never touched or reconfigured it by myself, httpd.conf is customized by instalation of apex!
    Hope this helps

  • How to deploy a project to EAR file

    Hi,
    I am a new bee to Jdeveloper. Could some body give me hints how to deploy my project to EAR file as I need to handover that EAR file to my admin to deploy it on the Application server.
    I am following these steps
    right clicked on the project >> click NEW >> Deployment profiles >> select EAR file from the right hand side and click OK >> given the deployment profile name as Jobmanage
    And selected the path as C:\Oracle_Jdeveloper\jdev\mywork\MANAGEJOB\Project and clicked OK >> and given the application name as Jobmanage and pressed OK>>
    In the Deploy folder of the project the EAR project is created but it is only 7 KB which is normally above 4 MB.
    And it automatically creatig a file underneath RESOURCES >> Jobmanage.Deploy
    Cheers,
    Krishna

    More specifically,
    - create a WAR deployment profile (New... -> General -> Deployment Profiles -> WAR File)
    - create an EAR deployment profile (New... -> General -> Deployment Profiles -> EAR File)
    - double-click on the EAR deployment profile and tick the check box for the WAR deployment profile.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Good afternoon ladies and gentlemen!   My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In t

    Good afternoon ladies and gentlemen!
    My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In the settings Adobe Bridge - in "open RAW-files by double-clicking in Adobe Camera Raw» box is checked. When you try any changes in the settings Adobe Bridge system displays a message:
    Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature.
    The entire line of Adobe products on my computer updated to the latest updates. Previously, a family of products Adobe Photoshop on your computer is not set. Computer - PC, Windows 7 Enterprises.

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • Lead File Attachments General Question

    Lead File Attachments General Question, can attachments somehow be made in the full edit view?

    Attachments are Related Objects till R17. So it can not be seen in Full-Edit Mode.
    In R18, one attachment is available at the Object Level.
    Trust this helps.
    Akesh

  • Packaging question ear file

    We have common classes that are used in all
    modules. These are available in several jars. The way we have packaged is that these jars are put in the ear file and the Manifest.mf of the web application wars reference these jar files. This does not seem to work. I have also tried the classloader configuration in sub-web.xml and that also does not seem to work as documented. It throws a NoClassDefFoundError for a
    class defined in log4j.jar.
    Here is the ear structure I use
    MyApp.ear
    - services.jar
    - log4j.jar
    - server.war
    - META-INF/Manifest.mf (Contains the Class-Path entry for services.jar, log4j.jar etc)
    - WEB-INF/sub-web.xml (Contains classloader extra-class-path attribute for services.jar log4j.jar etc)
    This is on Sun One App server 7.
    Any ideas what is wrong? Thanks

    In your MANIFEST.MF (note the case!), make sure that your Class-Path: has the two .jar files are separated by a space and that there is at least one blank line after the last line of text. Put two, just to make sure.

  • How to create a custom ear file and deploy it onto a freshly created oc4j

    Hi,
    Wanted to know that how should i go about creating a custom EAR file or for that matter any application and deploy it onto a test oc4j instance created within the 10.1.3 Home of Oracle Apps R12.
    I believe in a standalone Application server installation it is quite simple to deploy an application by creating an oc4j instance using the AS console ,but not very sure about how to go about it in Oracle Apps .
    N.B:I have been able to create a test oc4j instance by the name of Test and able to start and stop it using the opmn of 10.1.3 oracle home.
    Any help in this regard will be appreciated.

    Hi,
    can you please post this question to one of the Apps forums if your main concern is to deploy applications in the context of Oracle Apps?
    It seems that you don't have a problem in creating the EAR file in JDev.
    Frank

Maybe you are looking for

  • Where to download 10.9

    I am currently on 10.8.5 and I want to upgrade to Maverick before going to Yosemite.  I can find the 10.9.5 update download, but it requires 10.9 So, can anyone tell me where to download 10.9??

  • Download "photo library"  & "picture" to pc

    I have been able to download "camera roll" to my PC, but the files labeled "Photo Library" and "Picture" will not show when I open the camera to download (on PC>Guy's iphone>Camera Tasks>Get Pictures).  Please respond with the steps I need to take to

  • How I fixed: You have been signed out problem in 2 minutes!

    Very frustratingly I was having the same problem with Creative Cloud saying you have been signed out all the time, so I was reading through the forum and got some ideas, so this is what I did and finally I can get back to work and hopefully help some

  • Oracle JInitiator for 64-Bit OS

    Hello, I am trying to Install Oracle Jinitiator on Windows XP 64-bit. It gives me the following error. Program Cannot Start or Run The program or feature "\??\D:\DOCUME~1\ADMIN~1\LOCALS~1\TEMP\~EXB0000\DISK1\SETUP.EXE" cannot start or run due to inco

  • Slow TV subscription downloads

    Hello, I just updated to Mountain Lion over the weekend and I noticed something is wrong with my iTunes when downloading seasons. I bought season pass for Burn Notice and Breaking Bad and both are extremely slow now. Normally both of the 1.2-1.7 GB f