Parent Applications with Eclipse WTP

Hello,
I have an question upon Eclipse WTP and Oracle 10.1.3.
In my project we have 4 EJB Modules which are in 4 EAR Files and are deployed on the Oracle 10.1.3 application server. One EAR is the parent for all the others. So I configured the server.xml like this:
<application name="Server" path="server.ear" />
<application name="Server2" parent="Server" path="server2.ear" />
<application name="Server3" parent="Server" path="server3.ear" />
<application name="Server4" parent="Server" path="server4.ear" />
What must I do to tell Eclipse WTP that the projects depend from "Server" when they are deployed by Eclipse to the application server?
Anyone any ideas?
Greetings
Marcel

The deployment task doesn't expose the parent attribute as an out of the box capability in WTP.
Under the covers it's invoking an Ant build script which uses the <oracle:deploy> Ant task. This Ant task does expose the parent attribute for the application being deployed.
I just mucked around with a little and have a 'sorta' solution.
The OC4J WTP plugin is defined in a file called: servers\oracle.10.1.3.serverdef.
This defines the details for an OC4J server definition.
What I did was to add a new property called application.parent.
     <property id="application.parent"
          label="%label.application.parent"
          type="string"
          context="server"
          default="default" />
And in plugin.properties added the label text
label.application.parent=Parent Application:
Then I modified the buildfiles\oracle.10.1.3.xml file and added the parent attribute to the deploy.j2ee.ear target:
<target name="deploy.j2ee.ear" depends="check.skip.ear.deploy"
unless="skip.deploy">
<antcall target="package.module.ear"/>
     <oracle:deploy
          deployerUri="${deployer.uri}"
          userId="${oc4j.admin.user}"
          password="${oc4j.admin.password}"
          file="${server.publish.dir}/${module.name}.ear"
          deploymentName="${module.name}"
          parent="${application.parent}"
          bindAllWebApps="${oc4j.bind.website}"/>
</target>
Now fire up eclipse.
What you should now see is when you define an OC4J 10.1.3 instance you can set the "Application Parent:" value and this is then supplied to application when it is deployed.
Voila!
Now the small usage wrinkle here is that this property is set per OC4J server instance definition -- so in your case, you'd need define 2 OC4J server instances. One server definition where the parent is the "default" application and use that deploy "Server" and another where the parent application is set to "Server" and use that to deploy Server 2-4.
If you want the changes I made to the file, then send me an email at steve dot button at oracle dot com and I'll send them to you.
I put a few screen shots and a bit of a discussion here:
http://buttso.blogspot.com/2006/11/hacking-eclipse-wtp-oc4j-to-add-parent.html
cheers
-steve-

Similar Messages

  • Looking for education materials of developing C++ application with Eclipse

    Hello everyone,
    I am looking for education materials of developing C++ application with Eclipse. Could anyone recommend some good education materials?
    Thanks in advance,
    George

    Thanks nereidahoxhaj,
    So this is funny...
    Hi George,
    i see from your history that you have never ever
    tried to help anybody... anyway i'll answer just to
    show you that the people in this forum are different!
    Download CTD plugin form eclipse site:
    http://www.eclipse.org/cdt/
    and then go to another forum...
    Addio!Your reply is very helpful. You are really different.
    regards,
    George

  • Redeploy parent application with Enterprise Manager

    If I attempt to redeploy a parent application using Enterprise Manager I get the following error:
    "Only a single application can be redeployed at a time. Only childless applications can be Redeployed"
    I don't understand why I am being prevented from doing something seemingly trivial. Why do I need to go through the process of undeploying all child applications and then deploying them again?

    Luis,
    If all of the files uploaded piecemeal worked fine, then I believe your problem to be with your deployment descriptor(s). Also, note that the .war file lives in a different directory:
    C:\oc4j\j2ee\home\applications\Application-Name
    Perhaps if you have time you could post all of the associated deployment descriptor files. Log files from the C:\oc4j\j2ee\home\log\oc4j directory would also help to troubleshoot your deployment issues. You can turn up the logging level to "FINEST" for maximum output to your log file.
    -Michael

  • Newbie: does ADF install/run with Eclipse instead of JDeveloper?

    Hi,
    Can ADF install/run with Eclipse instead of JDeveloper?
    Thx
    -Rob

    If you mean can you design ADF applications with Eclipse then yes, you can do that with Oracle Enterprise Pack for Eclipse. It isn't as full-featured as the JDeveloper experience, though.
    More info: http://www.oracle.com/technetwork/developer-tools/eclipse/overview/index.html
    Tutorial: http://www.oracle.com/webfolder/technetwork/eclipse/adf/gettingStarted/Tutorial/ADFwithOEPE_1.html
    If you meant something else, please be more specific!
    - Joonas

  • OC4J debug with Eclipse

    I been trying to debug a oc4j application with eclipse but so far I can only see variables like
    ' this IndexAction,
    arg0 ActionMapping,
    arg1 null,
    arg2 EvermindHttpServletRequest,
    arg3 EvermindHttpServletResponse' ,
    I did setup Ant compile to create an *.ear in debug.
    classpath="${libclasspath};${build}/${classes}" debug="true"
         debuglevel="lines, vars, source"/>
    Also, I cannot place a watch file in any variable.
    Is there a configuration that I need to do with the java compile or OC4J to be able to see the content of the variables.
    Thank you
    P.S. with Jdev I'm able to debug with the embedeed-OC4J but the config of the \j2ee\home\config\*.xml files are totally different.

    Starting oas server with this command, -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=4000,
    Eclipse debugger cannot connect anymore but apparently dt_shmem is used for windows machines and dt_socked for unix.
    Any hints would be greatly appreciated.

  • OEPE 12.1.2.1 with Eclipse (Kepler) M2E and M2E-WTP and Seam 2 problem

    I've a JEE project with Maven 3.0.5  and JBoss Seam 2.3. I've some problems in Weblogic 12.1.2 application deployments with Eclipse.
    If I deploy the application as virtual application (split_src and .beabuild.txt), the .beabuild.txt includes the directories:
    C\:/FundeWeb/2.0/workspace/fundeweb2/web/target/m2e-wtp/web-resources = web_fundeweb2  (m2e-wtp project generated resources)
    C\:/FundeWeb/2.0/workspace/fundeweb2/web/src/main/webapp = web_fundeweb2 (project web resources)
    That's produces the next error (Multiple WEB-INF/ejb-jar.xml found):
    <01-ago-2013 14H07' CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1375358874432" for task "1". Error is: "weblogic.application.ModuleException: Multiple WEB-INF/ejb-jar.xml found. [weblogic.servlet.internal.WarSource@19d4f67, weblogic.servlet.internal.WarSource@c7fd40]"
    weblogic.application.ModuleException: Multiple WEB-INF/ejb-jar.xml found. [weblogic.servlet.internal.WarSource@19d4f67, weblogic.servlet.internal.WarSource@c7fd40]
      at weblogic.ejb.container.deployer.EjbModuleExtensionFactory.create(EjbModuleExtensionFactory.java:26)
      at weblogic.application.internal.ExtensibleModuleWrapper.createModuleExtensions(ExtensibleModuleWrapper.java:264)
      at weblogic.application.internal.ExtensibleModuleWrapper.initDrivenObjectArray(ExtensibleModuleWrapper.java:232)
      at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:107)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      Truncated. see log file for complete stacktrace
    If I deploy the aplication in Weblogic Console with the split_src, with only the web/target/m2e-wtp/web-resources, the applications deploy succesfully.
    If I deploy de application as exploded archive, the jboss-seam.jar file isn't included in the WEB-INF/lib folder. The others jboss-seam-xxxx.jar files are included.
    In the virtual application deployments, I think that the OEPE integration with M2E and M2E-WTP, there are include only the m2e-wtp folders.

    Hi Subash,
    I tried the same installer on a 32bit machine and was able to run without any issues.
    I did however come across a few users jdeveloper users who had similar issues with the jdev installer and the following workaround seems to have solved the issue for them. coudl you try the same and let us know if that helped ?
    1. Extract "oepe-12.1.2.1-kepler-installer-win32.exe" file into C:\oepe-12.1.2.1-kepler-installer-win32
    2. In cmd go to C:\oepe-12.1.2.1-kepler-installer-win32
    3. Execute follow command:
       C:\PROGRA~1\Java\jdk1.6.0_31\bin\java.exe ( path to your JDK)  -jar install/modules/ora-launcher.jar DISKCNT=1 JRE_COMPONENT=oracle.jdk,oracle.jre
    thanks
    Raj

  • JSP Debugging with Eclipse 3.2 WTP

    I am using OC4J 10.1.3 Standalone and the latest version of Eclipse WTP. Has anybody been able to debug JSP pages with this configuration? I have found a few references to getting remote debugging to work using JDeveloper, but nothing regarding WTP.
    I have tried setting the debug <init-param> to class, but the breakpoints are not hit when starting the server in debug mode. I have also set the debug_mode and emit_debuginfo init parameters to true. The development attribute in the orion-web-app element is set to true.
    I have tried starting OC4J using the following command:
    java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000 -jar oc4j.jar
    and then debugging through Eclipse using a Remote Java Application launcher and connecting to port 4000. Again, no breakpoint is hit even though Eclipse does connect ok to port 4000.
    I am trying to debug a simple JSP named index.jsp with a breakpoint on the line <% out.print("Hello, World!"); %>. Nothing fancy.
    Do I need to use the JspOjcCompiler compiler even though I am not using JDeveloper? I was not able to get this compiler to work. It was failing with the _index class not found.
    Thanks,
    Dave

    Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
              But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
              1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
              2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
              3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
              4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
              5.     Leave checked the Install this deployment as an application and click Next.
              6.     Put name for Name of deployment. . From here you can click Finish.
              7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
              8.     Enter the URL of the application. This example is
              http://localhost:7001/web/index.htm
              The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
              Edited by mwooten77 at 01/18/2007 9:34 AM
              Edited by mwooten77 at 01/18/2007 9:35 AM

  • How to develop web application using ejb3.0 with eclipse

    Hi ,
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...
    how to develop web application using ejb3.0 with eclipse.please help me... server jboss4.2.2. database mqsql5.0
    Thanks,

    jsf_VWP5.5.1 wrote:
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...http://help.eclipse.org/help33/index.jsp

  • EPS Files Do Not With Correct Parent Application

    I already posted this question in the Install & Setup Forum on April 3. But no response since then. I also posted this question on the Adobe Forum. So far no response there either.
    I am hoping someone in this Using Mac OS X Tiger forum might be able to shed some light on the problem.
    I am running Adobe Creative Suite 2 under Mac OS 10.4.6.
    Lately, I have been unable to open any EPS files under the correct Adobe parent application.
    It started out with when I double-clicked on any Illustrator EPS file, it launches Adobe Photoshop.
    I ran the usual Mac OS X maintenance (Repair Permissions, purged caches and specific preference files, ran crons, etc.). No change,
    Next, I did a "Get Info" on a Illustrator EPS file, select "Open with" Illustrator and did a "Change All..."
    Now Illustrator EPS files will open under Illustrator. But now when I double click on any Photoshop EPS file it launches Illustrator.
    Someone suggested modifying the preferences in the Adobe Bridge application. No change.
    I then deleted the Adobe Illustrator and Photoshop folder with any associated files and re-installed just those application. Still no change.
    I would rather not do the control-click option every time I need to open an EPS under the correct application.
    Does anyone have any ideas as to why this is happening?
    Power Mac G5 / 2GHz   Mac OS X (10.3.9)  

    Kevin wrote: "In Cocktail they have a setting that just says Rebuild Launch Services database. I should write them and find out exactly what that does."It's described in Cocktail Help: in Cocktail, select Help > Cocktail Help > System. Read under Misc.
    What's unclear from the description therein is if Cocktail deletes both the caches and the user's preference, just the caches, or just the user's preference.
    I don't know what the script does that Francine cited: I've never looked at it.
    I recommend the manual approach in my FAQ as it is very conservative, especially if you have defined a large number of user-specfied bindings, i.e. where you've specified certain documents or document types should open in a given application, known as a binding. Those are saved in the preference and can take a good bit of time to recreate if you've defined many of your own bindings.
    Trashing the appropriate cache files, per my FAQ, is usually sufficient, but if that doesn't work, then one must nuke the caches and preference. Hence the approach in my FAQ.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to use Preloader with stand-alone application in Eclipse? Thank you.

    My IDE is eclipse and my project is a stand-alone application(pure CS architecture with OSGI framework).
    How to use Preloader thus the preloader would be started before my main Application and hid later?
    I found some code in http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABGGDJG
    but I still don't know how to deploy the Preloader with my startup Application in OSGI framework.
    I give some code of my startup application below:
    public class MyPrjMain extends Application
        private static Stage primaryStage;
         public void start(final Stage stage)
            throws BusinessException
            primaryStage = stage;
            init(primaryStage);
            primaryStage.show();
    }Thanks very much, everybody.
    Edited by: Slash Wang on 2013-2-27 下午5:36

    Your question has already been answered on StackOverflow:
    http://stackoverflow.com/questions/15126210/how-to-use-javafx-preloader-with-stand-alone-application-in-eclipse/15148611

  • Flash Builder 4 and Eclipse WTP Plug-in

    I need someone to help put me in the right direction as to how configure Eclipse WTP Plug-in in Flash Builder 4. I have the plug-in downloaded on my desktop with 2 main folders (features and plug-ins) in it. At this point I am stuck as to where to go from here to get WTP into, and/or work with Flash Builder 4. I running the standalone version of FB4. Someone please help me.
    Bliss

    Praveen
    Please accept my sincere gratitude for your advice. Because for the time, after countless attempts to install this plug-in that I am noticing that even for a beginner something is beginning to make sense in the installation process. Now, I am NOT confirming completion because I am no sure of it. I am just saying I like what I see so far. That said, please advise as to what next  on what about to narrate to you. That is:
    I followed the recommended method (Help --> Install New Software). I did several plug-ins filtering along the way on installation prompts. After which the installation completed. FB4 restarted and for the first time there is emerged among the menus in the menu bar "WTP Tests". But as try to test-create a new Flex project I realized that the "combined Java and Flex projects" does not show up under the J2EE Application Server Type. Meanwhile, when I hover over the "WTP Tests" I see an "open" option. When clicked, I get a dialog captioned "Test Collector" listing many test suites to be ran/tested.
    Question:
          1.     What must i do to make the "combined Java and Flex projects" show up under the J2EE Application Server Type?
          2.     Do I need to run the tests on these Test Suites?
    Please advise. Once again, I appreciate your advice a great deal. Thanx in advance.
    Bliss_0

  • In Adobe Bridge when I try to open my camera raws, I get a pop up box stating "Bridges parent application is not active.  Bridge requires that a qualifying product has been launched at least once to enable this feature"  What do I do? Please advise

    In Adobe Bridge, when I try to open my camera raws, I get a pop up stating"Bridges parent application is not active.  Bridge requires that a qualifying product has been launced at least once to enable this feature."  What the heck?  I have a PC and haven't had problems before.. I have adobe cloud and pay my monthly bill...

    Have you opened Photoshop or any other Adobe app that Bridge works with?  You need to do this if you've upgraded PS or just signed up for CC.

  • Bridge's Parent Application is Not Active, Bridge Requires That a Qualifying Product Has Been Launch

    Has anyone figured out how to fix this?  Tried  fixes & I still can not open RAW files from Bridge or Photoshop CS5.  I upgraded the Camera RAW plug-in and downloaded all fixes  for Photoshop CS5 ( done automatically through Adobe updater) so program is up to date.  I can open RAW files from mini bridge if I right click the photo BUT if I take the photo back to Bridge I can not open it there. ( I could do this before the upgrades so this is not different ). I have windows 7 professional 32 bit. I tried DNG files & .cr2 files.
    In Photoshop CS4 I had the same problem ( almost the same error message...bridge requires a qualify product to be launched at least once... Camera RAW) and it was never fixed but I didn't understand the advantages of working in camera RAW. So it may be the same glich if I had it in CS4 & CS5. Thanks in advance for your help.

    i ran into the same issue just this last week....and i finally found (at least in my case) the SOLUTION...i'd D/Led the trial version of adobe illustrator...something in that download, or the preference choices that followed afterward, KICKED my "Parent Application," which had always been photoshop CS4, to the curb!  realizing, as i've had to in the past,  that i should "look back to what you'd done just prior to the change (with its resulting ERROR message) and UNDO it."  ergo:  i dumped the trial version of illustrator, and VOILA!  i can now, once again, open jpgs by opting for "open in camera raw"  directly from the BRIDGE again...hope this helps!  too bad newly added ADOBE programs don't ask you to actually ESTABLISH which of their programs you would LIKE to designate as the PARENT APPLICATION when you're loading  said new software!

  • Bridge's parent application is not active

    Hi,
    I've suddenly come across a problem with Adobe Bridge where it isn't allowing me to open .CR2 files into Camera Raw. When I right click on an image in Bridge, an error message pops up:
    "Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature."
    Originally, I opened Photoshop CS6, then File > Browse in Bridge. I've have opened ACR hundreds of times on this computer so I don't understand why it wants me to open it to be able to use it. I've opened a RAW file from Windows explorer, but when going back to Bridge, the same error occurs.
    Does anyone know what the problem is here and how to fix it?
    Running Windows 7, Photoshop CS6 64-bit, ACR 7.1, Bridge CS6 64-bit.
    Thank you!

    Then, in Bridge, I get the dreaded "Camera Raw blah blah blah" message when trying to open files in ACR by pressing 'cmd-R' or going to File > Open in Camera Raw.
    This seems related to an old thread and I'm using email to read and write to the forum. Can you clarify a bit more about the blahblah?
    You stated that it happened suddenly this morning and also mention a subscription trouble with the creative cloud. Did you use Bridge after the trouble was solved and it worked but stopped this morning or was it directly after you reinstalled everything?
    Did you already try the obvious restart Bridge holding down option key and choose reset preferences? The Clean tool is not deleting everything Adobe has installed before.
    And double check on the updates, the application manager sometimes has a mind of its own, especially when having multiple language versions installed, it only updates the language version set in preferences.
    And check PS the About Menu
    for about PS it should say 13.1.2 x64
    and about plug in / camera raw it should say 7.3.0.71.
    And in Bridge About Bridge it should say 5.0.2.4
    Can you confirm this and can you also report what other applications you have installed from the creative cloud.
    And since I changed to OSX 10.8 I can't check myself, is 10.7.5 the latest update?

  • Bridge CC parent application is not active

    Hi, I'm currently using elements 13 (that's both premiere and photoshop) on windows 7 64 bit. I installed Bridge CC specifically to use the camera Raw feature, however as the title says every time I attempt to open a .cr2 file using camera raw it brings up the message "bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature."
    Now I assume a qualifying product would be photoshop, which i've opened before, I've looked around elsewhere for solutions and only found swapping the AMTlib.dll which hasn't worked at all for me as it just breaks bridge completely. This is bearing in mind that everything worked fine on elements 12 on my previous PC but I've gotten rid of that and there's no way for me to able to access it now.
    Thanks for the help in advance.

    Bridge CC only works with CC products not Elements versions of anything which have their “Organizer”.

Maybe you are looking for

  • Query Sales By Quarter

    Hello, Need to build a query that gives sales data by quarter from 2009 to current year end of quarter. I think I have to use offset variables and build a structure, any hints or pointers in the right direction would be appreciated. thanks

  • I try to use the App Tab feature. if i close the browser i loose all the App tab that i already create. It should open the App tabs when the brouser starts again.

    The benefit of app tab is to save this buttons to use them again later on. when i close the browser they are lost.

  • Master/Detail - At wits end

    I am trying to learn Application Express and I have read the threads that sorta relate to the following error message but I still cannot get it to work. Can anyone help we with the following error please? Thanks I am trying to create a Master/Detail

  • DME - House Bank Settings

    hi all, What settings do i have to maintain in the Master data of House Banks and Bank Accounts for generating DME file in the Payment run? Regards

  • Sid clean up

    Hi We have some problem in query.If we restrict  the values for one of the master data characteristic in the query designer  its showing reults when i execute query.If i wont put any restrictions on that it does display any data (no results). Some of