Need to deploy custom EAR/WAR on EBS OC4J

hi all
I'm using the VIS12 EBS image from Fusion Factory. I need to deploy a custom EAR/WAR on it. I have no EBS expertise (I'm a tech guy, not an apps guy).
How do I do this deployment?
I tried using admin_client.jar to use RMI for deployment but could not (admin_client either blocked, or the famous Cannot get Deployment Manager error)
I also tried modifying the $OC4JHOME/j2ee/home/config/server.xml and use auto-deploy, then put my EAR in $OC4JHOME/j2ee/home/applications/
This didn't work either.
Also, I can't connect to ascontrol (port 7777/em or 7778/em give a 503 error). I am using the startall.sh script to start everything up.
This is rather urgent, I need to deploy this EAR (AD4J agent) for a POC. Thanks.

hi Hussein
that note is specific to re-deploying forms.ear, however i need to deploy an arbitrary ear file..
I was also able to use the note to re-deploy ascontrol, I also had to edit trusted.conf (in Apache/Apache...) to allow ascontrol Allow from all.
Now I can access ascontrol at myhost:8000/ascontrol/
I reset the password in system-jazn-data.xml and can verify that if I enter a wrong password, I get an error. However even with a correct password I get this error..
An error occurred while making the JMX RMI connection
and so I still cannot connect to AScontrol.

Similar Messages

  • Deployment problems EAR & WAR

    I have serious problems deploying an EAR, containing 25 ejb-jars and 3 wars.
    The history of the project is that it was first developed on WLS 4.5 & 5.1. We
    have later moved to Orion were the actual development takes place. Now we can
    run the application on Orion and WLS 5.1. We now want to deploy the application
    on WLS 6.1 sp 2. We have setup the whole application to be deployed as one EAR,
    this works fine with Orion. The whole building is made in Ant.
    I'm new on WLS 6.1 but have worked a lot on WLS 5.1 and 4.5 (I think it was).
    I might have missed something but the documentation on EAR is very short.
    When I first deploy the EAR, it seemed to work fine according to the console,
    however when I tried to access servlets or JSPs, they simply weren't there (Error
    404--Not Found). When I deployed the EAR from the console I got a number of zipexceptions.
    After asking around, I was recommended to remove the compression in the jar,war
    & earfiles. When I did that I got a number of errors in static initializers in
    EJBs, which indicated that the EJBs actually were deployed. I fixed those and
    the application was deployed without errors (when I start WLS and the EAR is deployed
    by being in the config.xml file). Still when I deploy it from the console it still
    throws ZipExceptions.
    Anyway now I can access one of the war files but the other is not there. The deployed
    war file is a lot smaller than the one not being deployed.
    I think that all settings in application.xml, web.xml etc is correct. I'm also
    confident that modules are correct, it does work in Orion, which has similar classloading.
    From other developers, I have heard that I need to use WLS 6.1 sp 2, no compression
    and that I have to break up large EARs in smaller (my EAR is 6,5 MB) files.
    What really annoys me that I do not seem to get any errors, logs or anything.
    The console indicates that everything is deployed even if apparently is not.
    And I can deploy PerStore and everything works. If I deploy the wars, and ejbs
    from the console (one at a time), it works.
    I would appreciate any help on this subject any workarounds etc. I think that
    I have to skip my first intent and deploy an exploded EAR instead of having (almost)
    the same deployement as in Orion, which kind of pisses me of. I am also disappointed
    that BEA has apperantly skipped java-modules all together. It is after all in
    the specification.
    I have talked to a number of people and they say that the whole EAR deployment
    in WLS is very shaky. Is this true?
    Thanks in advance,
    Erik Romson

    EAR deployment works fine from my own experience. Use JAR and turn off
    compression for the WARs and JARs and the EAR itself, although I've never
    seen a ZIP exception and I use JAR and ZIP and Winzip and whatever else I
    can grab to muck with the files. 6.5MB is not tiny, but it isn't very large
    either -- WL can handle much bigger EARs. Normally we don't suggest having
    so many JARs and WARs in the EAR, but that is more preference ... are you
    using manifest class path? ... are you referring to any of the files in the
    WARs from any of the classes in the JARs?
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Erik Romson" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have serious problems deploying an EAR, containing 25 ejb-jars and 3wars.
    The history of the project is that it was first developed on WLS 4.5 &5.1. We
    have later moved to Orion were the actual development takes place. Now wecan
    run the application on Orion and WLS 5.1. We now want to deploy theapplication
    on WLS 6.1 sp 2. We have setup the whole application to be deployed as oneEAR,
    this works fine with Orion. The whole building is made in Ant.
    I'm new on WLS 6.1 but have worked a lot on WLS 5.1 and 4.5 (I think itwas).
    I might have missed something but the documentation on EAR is very short.
    When I first deploy the EAR, it seemed to work fine according to theconsole,
    however when I tried to access servlets or JSPs, they simply weren't there(Error
    404--Not Found). When I deployed the EAR from the console I got a numberof zipexceptions.
    After asking around, I was recommended to remove the compression in thejar,war
    & earfiles. When I did that I got a number of errors in staticinitializers in
    EJBs, which indicated that the EJBs actually were deployed. I fixed thoseand
    the application was deployed without errors (when I start WLS and the EARis deployed
    by being in the config.xml file). Still when I deploy it from the consoleit still
    throws ZipExceptions.
    Anyway now I can access one of the war files but the other is not there.The deployed
    war file is a lot smaller than the one not being deployed.
    I think that all settings in application.xml, web.xml etc is correct. I'malso
    confident that modules are correct, it does work in Orion, which hassimilar classloading.
    >
    From other developers, I have heard that I need to use WLS 6.1 sp 2, nocompression
    and that I have to break up large EARs in smaller (my EAR is 6,5 MB)files.
    >
    What really annoys me that I do not seem to get any errors, logs oranything.
    The console indicates that everything is deployed even if apparently isnot.
    >
    And I can deploy PerStore and everything works. If I deploy the wars, andejbs
    from the console (one at a time), it works.
    I would appreciate any help on this subject any workarounds etc. I thinkthat
    I have to skip my first intent and deploy an exploded EAR instead ofhaving (almost)
    the same deployement as in Orion, which kind of pisses me of. I am alsodisappointed
    that BEA has apperantly skipped java-modules all together. It is after allin
    the specification.
    I have talked to a number of people and they say that the whole EARdeployment
    in WLS is very shaky. Is this true?
    Thanks in advance,
    Erik Romson

  • Manually deploy custom taskflow war

    Hi Everyone,
    Is it possible to deploy a custom taskflow war to webspace server using the admin console of the weblogic server? Using jdev 11.1.1.5 and latest version of webspaces. System admins will not allow us to use the ant deployment from jdeveloper.
    If yes, is it just as simple as installing a new a deployment from the admin console?

    Hi Everyone,
    Is it possible to deploy a custom taskflow war to webspace server using the admin console of the weblogic server? Using jdev 11.1.1.5 and latest version of webspaces. System admins will not allow us to use the ant deployment from jdeveloper.
    If yes, is it just as simple as installing a new a deployment from the admin console?

  • EAR/WAR File Deployment Query on WEBLOGIC SERVER

    Hi,
    We are running weblogic server version 10.3.4.0 where EAR/ WAR files deployed on single server and that has been configured in the current WebLogic Server domain. These applications are up and running fine. We need to deploy a new WAR file on the same domain. My questions are:
    @ Whether I can deploy new WAR file without STARTing and STOPing weblogic server instance?
    @ When deploying new WAR file, whether it will affect existing deployed files or will it affect any other running services for a fraction of second?
    Note: This new WAR file is independent application and will not affect any other services in the future.
    Please assist.
    Thanks,
    Dheeraj

    Thank you for your help but the result is still the same.
    I deployed the library on weblogic server suggested by you.
    File Deployed as library = oracle.adf.desktopintegration.model.ear
    From the folder = C:\Oracle\Middleware\oracle_common\modules\oracle.adf.desktopintegration.model_11.1.1
    It is active.
    After this I loaded jdeveloper and deploy the same sample application and found that the result is same.
    Pls let me know where I am going wrong.
    Regards,
    Masood
    [11:53:09 AM] ---- Deployment started. ----
    [11:53:09 AM] Target platform is (Weblogic 10.3).
    [11:53:09 AM] Retrieving existing application information
    [11:53:09 AM] Running dependency analysis...
    [11:53:09 AM] Building...
    [11:53:09 AM] Deploying 2 profiles...
    [11:53:09 AM] Wrote Web Application Module to C:\JDeveloper\mywork\10MinDemo\ViewController\deploy\10MinDemo_ViewController_webapp.war
    [11:53:10 AM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\10MinDemo\deploy\10MinDemo_Project1_10MinDemo.ear
    [11:53:10 AM] Deploying Application...
    [11:53:10 AM] [Deployer:149191]Operation 'deploy' on application '10MinDemo_Project1_10MinDemo' is initializing on 'ADFServer'
    [11:53:11 AM] [Deployer:149193]Operation 'deploy' on application '10MinDemo_Project1_10MinDemo' has failed on 'ADFServer'
    [11:53:11 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application 10MinDemo_Project1_10MinDemo on ADFServer.: .
    [11:53:11 AM] Weblogic Server Exception: weblogic.management.DeploymentException:
    [11:53:11 AM] Caused by: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
    [11:53:11 AM] See server logs or server console for more details.
    [11:53:11 AM] weblogic.management.DeploymentException:
    [11:53:11 AM] Deployment cancelled.
    [11:53:11 AM] ---- Deployment incomplete ----.
    [11:53:11 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

  • Deploy same EAR twice in WLS

    Hi,
    I have an application developed under Jdev 11g.
    I prepared my ear file.
    I need to deploy the ear file twice on the same WLS.
    I deployed the first time.
    The second time i was told that the context "CGB" is already user.
    I created a deployment plan where i changed the context root to "DEMO" and updated the deployment to take into consideration the deployment plan "PLAN.XML"
    Still when i start the deployment, i always get the its is is use.
    Kindly advice the nature of the problem.
    A document or link to this case is highly appreciated.
    Thank you in advance
    Emile BITAR
    Edited by: ebitar on May 22, 2009 2:11 AM

    I think I would first only deploy the EAR with the modified context root from the deployment plan. Verify that the deployment plan actually worked by verifying the application is only available from the modified context root (and not the old one). Assuming that shows no issues, now deploy the original EAR and see what happens.

  • Problem while deploying an ear

    Hi,
      i have a problem in deploying an ear which contains an ejb and with a web service which is already deployed in another ear.The error is
      "Web service already exsits in the http service provider for that ear".
    Now i need a solution for this problem .I need to deploy that ear with out deleting that web service in the previous ear.Please send me the related links and information and the way of doing it.

    Hi Bhogi,
    Refer this link for deploying the ear files.<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/7d/dd813e77d46245e10000000a114084/frameset.htm">EJB Components ear deployment</a>
    Go to the EJB Components in the left hand side once u r into the link.
    Regards,
    Nagarajan.

  • Unable to deploy a simple WAR / EAR file on Standalone OC4J instance

    All,
    This issue is baffling me since yesterday and while I continue to look for options , would appreciate if anyone of you has run into something similar and give me some hints on how to proceed on this ..
    I downloaded the Standalone OC4J ( 10.1.3 ) from otn.oracle.com and also downloaded JDK 1.5 Update 12 from the Sun Website and installed it on my local
    Windows XP machine. Everything works well and the application gets deployed.
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already
    has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    However when trying to deploy even a simple HelloWorld.jsp file packaged as an EAR or WAR , we get these errors..
    [Aug 8, 2008 9:40:27 AM] Application Deployer for CISS STARTS.
    [Aug 8, 2008 9:40:27 AM] Copy the archive to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    [Aug 8, 2008 9:40:28 AM] Initialize /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear begins...
    [Aug 8, 2008 9:40:28 AM] Unpacking CISS.ear
    [Aug 8, 2008 9:40:28 AM] Error while unpacking CISS.ear java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:203) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:97) at oracle.oc4j.util.FileUtils.unjar(FileUtils.java:309) at oracle.oc4j.util.FileUtils.autoUnpack(FileUtils.java:488) at com.evermind.server.deployment.EnterpriseArchive.(EnterpriseArchive.java:234) at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:412) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:187) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
    [Aug 8, 2008 9:40:28 AM] Operation failed with error: Unable to find/read file META-INF/application.xml in /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS (META-INF/application.xml)
    Using the above error messages , I certainly do not find the CISS.ear file getting copied to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    which explains the rest of the messages.
    I have tried placing the EAR file both remote and local on the Application Server box but the results remain the same. Assuming it might be a permissions issue , we have opened up all the permissions on this OC4J home ( recursively )
    to everyone ..
    Is there a specific version of tar / unzip / jar required to deploy EARs / WARs on Solaris 5.9 running JDK 1.5 Update 12.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    Also looked at Bug:6330834 but am not very sure if this applies to our case because all these drives are local to the Sun box.
    Other than attempting a reinstall and opening an Service Request with Oracle , I am running out of ideas at this time ..
    So any ideas / hints would be gladly accepted :)
    Vishwa

    When you say:
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
    Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
    I don't know of any problems with Solaris, JDK5, U12.
    What about if you do this to remove any issues with the remote copy aspect of the deployment.
    1. Stop OC4J.
    2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
    3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
    4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
    5. Start the server and see what happens -- the application should be deployed.
    Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
    -steve-

  • Are JDev autogenerated paths needed to create ear, war and jar files ?

    Hi
    We want to create ear, war and jar files from Ant build script generated from JDeveloper 11.1.1.7.
    We also like to use ojdeploy with it.
    In the process of creating build.xml files from projects, we see these paths.
    We also have standalone Weblogic installed with ADF runtime 11.1.1.7
    Questions:
    1- Do we need these path ids to generate ear, jar, war files properly and then deploy the ear to our standalone Weblogic so that our webapp can run ok ?
    2- Why are they generated, if they are not needed
    From research, it appears that we don't need these paths except to keep ant targets of init, compile, exec etc with ojdeploy.
    3- Is that true ?
    We are afraid that because no paths are listed in the build.xml, then when we deploy the ear app, it cant use the ADF runtime on the standalone WLS.
    Thanks in advance for answering.
    Sincerely
    eg of paths generated below:
      <path id="library.SOA.Designtime"/>
      <path id="library.SOA.Runtime"/>
      <path id="library.BPEL.Runtime"/>
      <path id="library.Mediator.Runtime"/>
      <path id="library.MDS.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
      </path>
      <path id="library.BC4J.Service.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/commonj.sdo_2.1.0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.web-common_11.1.1.jar"/>
      </path>
      <path id="library.TopLink">
        <pathelement location="{oracle.middleware}/modules/com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/modules/com.bea.core.antlr.runtime_2.7.7.jar"/>
        <pathelement location="{oracle.middleware}/modules/javax.persistence_1.0.0.0_2-0-0.jar"/>
      </path>
      <path id="library.Oracle.Rules"/>
      <path id="classpath">
        <path refid="library.SOA.Designtime"/>
        <path refid="library.SOA.Runtime"/>
        <path refid="library.BPEL.Runtime"/>
        <path refid="library.Mediator.Runtime"/>
        <path refid="library.MDS.Runtime"/>
        <path refid="library.BC4J.Service.Runtime"/>
        <path refid="library.TopLink"/>
        <path refid="library.Oracle.Rules"/>
      </path>

    There are two different things here. Using ant to build the class files and then building an ear from the class files and other resources.
    The building part needs the libraries if you use javac as compiler. Building an ear file only needs the path to the jar files which are packed into the ear.
    In this sense you need the pages you see in the build.xml.
    Then Jdev offers another way: ojdeploy. This tool is a Jdev without a gui.
    You can use this tool and build the classes for each project of a workspace and to build build war and ear file. This is just like you click the rebuild button for each project and then the deploy the projects and application. If you use this approach you don't need the generated path ids as the whole build process is done inside Jdev as it's done on your developer pc.
    Timo

  • Hi,Can a WAR file be deployed as EAR file and vice versa.

    Hi,Can a WAR file be deployed as EAR file and vice versa.If so what are the changes we need to do.

    hi tel me in detail why u want 2 do that
    why u want to cnvert a web arch into enterp arch

  • Deploying ColdFusion 8 project via EAR/WAR file

    I was wondering what considerations to take when deploying a ColdFusion 8 project as an EAR/WAR file. Is it possible to create the file on one computer (eg: development) and run it on another (eg: server)?

    ecalibur_lk wrote on 1/14/2010 11:47 PM:
    With ColdFusion packaged into the EAR, do you need ColdFusion installed on the environment you are deploying it on for it to work?
    No. You need to have a J2EE server like JBoss or JRun.
    If so, does it make a difference on what version of ColdFusion it is packaged with (eg: Developer vs. Enterprise edition)?
    If you want to We package our EAR files without a license key and
    leave it up to our clients to make sure they have the proper licenses
    for their environment. If they put a key in the properties file, we use
    the Admin API to register the instance. If they don't put a key in the
    properties file, the instance is a developer edition.
    Do you know of somewhere that describes how to build an EAR file via ANT and how to deploy it?
    http://www.adobe.com/devnet/coldfusion/articles/ear.html

  • 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

  • Need to pass custom metadata with Managed Attachment in EBS

    Hi All,
    I have enabled Managed attachment in EBS.
    I also want to pass few custom metadata along with managed attachment.
    I have followed the section  "6.5 Configuring Managed Attachments Settings"
    from the Application Adapter's guide at http://docs.oracle.com/cd/E23943_01/doc.1111/e17953/c06_confg_attchmts.htm#BABIEIDF
    but still i dont see the custom metadata in the Managed attachment checkin screen.
    thanks,
    swapnil

    Hi Swapnil ,
    You will need to apply the following patch :
    Patch 13943045
    Read me file has all the steps required in addition to the patch to get Custom Parameters sent with EBS request , please check it and complete the steps .
    Once done , check to see if OAF is able to send the parameters .
    If not , then check the request / response files from EBS to get more details .
    Thanks,
    Srinath

  • Help needed in deploying EAR

    Hi i have created EAR in jdeveloper and i want to deploy it in oracle app server..please help me.. i tried to search everyewhere its either mentioned about clustered environment or using ant..i dont want to use either cant i deploy it without using them..if so please guide me or any URL which gives me guidence

    If you go to :
    EnterpriseManager > your_oc4j_where_to_deploy > tab Applications
    Overhere you can deploy the ear file

  • 10.1.3.4 - How to deploy custom jar file in SOA ?

    I want to deploy a custom jar file whose methods will be used in various application that I am building like BPEL, ADF etc. How can I do that ?

    When deploying an ear or a war using EM/Application Control in the Deployment Settings page you can add extra jar files. Click on the 'Go to task' button of the Configure Class Loading task. There you should be able to upload your jar.
    If you need the jar in just one or two apps then I would go this way. Otherwise you might consider creating a shared library, but I've tried that once, but could not make that work.
    Regards,
    Martien

  • How to structure a JSF application (EAR/WAR/JAR)

    Hi All,
    How do you recommend I should structure a JSF application in terms of EARs, WARs and JARs?
    Let me set the context for you: I have a fairly large project which consists of a number of sub components. Each of these sub components are JSF applications in the sense that they have JSF pages connected to each other. So, for instance, I have a company management sub component and a product management subcomponent. Most of these sub components share some Java libraries and/or entities.
    Because of this I decided to have each sub component contained in its own WAR, with no universal libraries in its lib folder, and to then add these WARs to an EAR with all the library JARs in the EAR's lib folder, as so:
    EAR
       |_ component1.WAR
       |_ component2.WAR
       |_ lib
             |_ sharedlib1.JAR
             |_ sharedlib2.JARUnfortunately I'm having more problems than I hoped I would with JSF with this setup. An alternative I have is to create one gigantic WAR which contains all the library archives and then to only deploy this WAR. Although this would probably work, it destroys the nice seperation I had between sub components, where I could for instance just remove the one WAR from the EAR if it was giving problems. That structure would look something like this:
    WAR
       |_ <WebContent>
       |_ WEB-INF
                 |_ classes
                           |_ <JSF classes>
                 |_ lib
                        |_ sharedlib1.JAR
                        |_ sharedlib2.JARFinally, I have a third option where I add all the libraries required by a WAR to its lib folder and I have no shared libraries in the EAR's lib folder. The disadvantages are of course that the EAR will be huge as JARs get duplicated unnecessarily, and I'm not sure that this won't cause conflicts. The structure would look like this:
    EAR
       |_ component1.WAR
                        |_ WEB-INF
                                  |_ lib
                                        |_ sharedlib1.JAR
                                        |_ sharedlib2.JAR
       |_ component2.WAR
                        |_ WEB-INF
                                  |_ lib
                                        |_ sharedlib1.JAR
                                        |_ sharedlib2.JARI believe the first way to be the best, but I'm struggling getting JSF to work like I expect (see [http://forum.java.sun.com/thread.jspa?threadID=5288069|http://forum.java.sun.com/thread.jspa?threadID=5288069] ). What are your suggestions?
    Thank you,
    Ristretto

    Dear hiwa,
    thank you very much for your response. I have had a look into the book and found out that it provides indeed half of the solution i need. Now I can generate a JSF response to my non-JSF request which has been issued by the main application.
    Unfortunately this is only the first half of the solution, because the JSF framework of the child application will still render URIs into HTML-forms (e.g. for the <f:view>) that point to the faces servlet and not to the non-JSF servlet of the main application.
    I'll try to solve this problem by providing my own ViewHandler that provides other URIs. But I still don't know how to encode the view ID into the generated HTML-form as a hidden field.
    After all, I am really surprised at how difficult it is to integrate the JSF framework into a non-JSF application. I don't think this is a very uncommon scenario. In my case, we integrate into an existing large application of our customer in order to extend his application with our product. I would expect this to work out of the box with JSF (sigh).
    I will post my progress in this matter if I found some interesting solution.
    Bye, Marcus

Maybe you are looking for