Redeploy the EAR OBIEE file

Hi, I'm following oracle patch 9492821 for OBIEE 10-1-3-4-1. The last step of this patch asks me to transfer my WAR OBIEE file.

However I use BI Apps 7.9.6.1 (formerly product Siebel Analytics) with OBIEE 10-1-3-4. My application server is OC4J which comes with BI applications / OBIEE

I checked in Admin OC4J and the deployed application analytical points actually to $OBIEE_HOME/oc4j_bi/j2ee/home/applications/analytics.ear and not the $OBIEE_HOME/web/analytics.war mentioned in patch 9492821 (although this WAR and its subdirectory are also exists on my system)

So in summary, I think I need to make the file changes recommended by the patch for files in the directory OBIEE_HOME/oc4j_bi/j2ee/home/applications/analytical $ and not the $OBIEE_HOME/web/analytics/app directory specified in patch 9492821

Then, I think I need to run the command

CD $OBIEE_HOME/oc4j_bi/j2ee/home/applications page
jar - cf analytical analytics.ear - C.

This will recreate the analytics.ear file that is picked up when I'm bouncing OC4J.

However to test this process, I thought I'd turn the jar command above before making any changes to the underlying analytical repertoire just to see if the jar command creates the file ok ear.

He has created the ear file, ok, but to my surpirse the new EAR file is almost twice the size of the daughter of original ear bundled with applications of BI / OBIEE which replaces the jar command

that is to say the original file
-rwxr-x---1 51275013 01 Apr 14:59 analytics.ear biapps bidev

new file
-rw - r - r - 1 103323731 01 Apr 15:35 analytics.ear biapps bidev

any ideas why a simple refresh file EAR before any changes would cause the file to be twice the original size?

Thank you
Jim

Like I said it was the only logical explanation.

Take a look at the ear and war using WinZip files, and you will see the difference. An ear file compresses a war with a file application.xml file. Aside from that, they are basically the same. Oracle includes both because the various Web App servers tend to require either of those for deployment, even though some support both.

Tags: Business Intelligence

Similar Questions

  • deploy the ear - invalid file file

    Hello
    I'm trying to deploy an ear file using ANT wldeploy tasks.

    The file contains
    -ejb (jar separate customer interfaces)
    -jpa persistence
    -webapp.

    The application server is 10.3.3

    Can I deploy the ear via eclipse with no problem on my local server.

    When I try and publish/deploy on a remote server I get an error [caused by: weblogic.deployment.EnvironmentException: duplicate units of persistence with name...]

    That's why agrees it to depoy via ant match. This method fails even on my local server. Say the (ear) file is not valid.
    It seems that the action "publish" in eclipse is making changes on the ear that the simple file-> export-> does not ear in eclipse.

    I then tried to pack the environment in the structure of directories of split (so far, I used just the standard eclipse - projects java/j2ee configuration).
    This attempt failed at the wlappc stage. ArrayIndexOutofRange exception.

    Any ideas?

    Thank you
    Michael

    Thanks for this stacktrace, it helps a lot.

    It seems that WLS is certainly see both persistence.xml files and reports the error.

    Caused by: weblogic.deployment.EnvironmentException: duplicate units of persistence with the name myapp_persistence in the field of myapp application.

    Then it is to point out the locations of the PUs in double, is to see (it's very useful diagnostics, I have not seen this before):

    First location of CENTRAL unit: file:/var/opt/oracle/middleware/user_projects/domains/ecm_domain/servers/AdminServer/tmp/_WL_user/myapp/upzgei_/lib/myapp_persistence.jar_.
    Second place Pu: file:/var/opt/oracle/middleware/user_projects/domains/ecm_domain/servers/AdminServer/tmp/_WL_user/myapp/upzgei_/APP-INF/lib/myapp_persistence.jar_

    For me, it looks like the packaging step in Eclipse, is updated the same module in two separate places within the file EAR - one being the standard Java EE 5 app library directory (/ lib) and the second being the application owner WLS directory library (/ APP-INF/lib).

    Look at how you have your setup of library/project in Eclipse dependencies - WLS fully supports the standard directory/lib to Java EE 5, so you can put some bookstores application level, you want to share between the modules of your application in there and be confident that it will work - so that you only have a single present myapp_persistence.jar in the EAR file.

    Hope that helps.

    see you soon
    -steve-

  • Redeploy the XellerateFull.ear

    Hi xperts.
    I am facing a problem while redeploying the xellerateFull.war after you have made some changes in xlWebAdmin.properties.

    Steps 1a...

    1. extract the xellerateFull.ear using the command jar xvf XellerateFull.ear

    2. extract the xlWebApp.war

    3. updated the xlWebAdmin.properties.

    4 packed up the xlWebApp.war using jar cvf xlWebApp.war
    and then xellerateFull.ear using jar FMC xlWebApp.war xlWebApp (I saw on the internet that it copies all the details of the CMF MetA_INF)

    Now I have cipied the new XellerateFull.ear in the default directory of my jboss application server.

    Double-click the patch_jboss.cmd

    started the jboss4.0.3

    Here is the error in the log file

    2010-05-11 23:00:52, 578 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.0.3SP1/jboss-4.0.3SP1/server/default/deploy/XellerateFull.ear-> file:/C:/jboss-4.0.3SP1/jboss-4.0.3SP1/server/default/deploy/XellerateFull.ear

    2010-05-11 23:00:52, 578 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] deployment incomplete listing:



    -Incompletely deployed packages-

    org.jboss.deployment.DeploymentInfo@3756ea53 {url=file:/C:/jboss-4.0.3SP1/jboss-4.0.3SP1/server/default/deploy/XellerateFull.ear}

    the Deployment Manager: org.jboss.deployment.EARDeployer@8f2ca6

    status: null

    State: FAILURE

    Look: file:/C:/jboss-4.0.3SP1/jboss-4.0.3SP1/server/default/deploy/XellerateFull.ear

    altDD: null

    lastDeployed: 1273644052562

    lastModified: 1273644052562

    MBeans:

    Any guys help?


    Thank you

    Patch command is to do all of this update of the IOM definition process. Copy ear to deploy is a shortcut method to deploy these changes. But cannot be done in the customer CA.

    And by the way he did zip form is what I suggested you.

    Thank you

    Sunny

  • How to deploy adf to the ear file in Jdeveloper 12 c

    Hi all

    How can I deploy adf to the ear using Jdeveloper 12 c file

    and what file deployed on weblogic 12 c (ear or war file)

    Create a profile to deploy the file EAR to deploy an EAR application.

  • generate the ear file in jdev and deployed using Ant

    Hi all

    I have a request of the ADF and I need generate the ear file and deploy it using ant script.
    The file option ear in deployment profiles (file-> new-> deployment profiles) is disabled in my worm jdev (11.1.1.5.0).

    Any help or pointers are highly appreciated.

    Thank you
    Usha

    You get the EAR deployment descriptor only if you add it to the application level. They are out on grayes model ot see controller projects.
    Right-click on the Application and select "new-> deployment descriptor.

    Timo

  • How to deploy the ear file in the OATS

    Hi the gems... Good afternoon...

    I need deploy my application EAR file in the OATS to test.
    I installed version 12.0 OATS and also started the demo of installation IE documentation medrec application.

    Now, how can I configure my application in OATS... I have the ear file and the database credentials.

    Pls guide me... thanks a lot...

    You're totally right :-)

  • IMC fails during Assembly and the ear of deployment files to the JBoss instance

    I installed the ATG 10.0.3 platform and the store of the ATG reference (http://localhost: 8080/crs/storeus) on Oracle Linux 5.8 long with Oracle 11.2.0.1 database, Oracle's JDK and JBoss Enterprise Platform 5.1.0 1.6.0_30 all in the same box.

    I run CIM script as follows:

    export JAVA_HOME=/oracle/jdk1.6.0_30
    export PATH=$PATH:/oracle/jdk1.6.0_30/bin
    export DYNAMO_HOME=/oracle/ATG/ATG10.0.3/home
    export JBOSS_HOME=/oracle/jboss-5.1.0.GA
    CD /oracle/ATG/ATG10.0.3/home/bin
    . CIM.sh

    The script to connect to the Oracle database, creates the schema and import the data successfully. Then, I create the production instance. All fine so far. The question appears on the step pre-assembled and deployment.

    1. in the CIM MAIN MENU, select [3] Assembly and Application deployment.
    2. in the SELECTION of the INSTANCE SERVER DEPLOYMENT menu, select [A] ATGProduction.
    Production of the lock with a Server Manager.
    3. in the menu FILE of EAR of ENTER NAME (S), enter the name of ATGProduction.ear.
    4. from the menu SELECT JBOSS SERVER to USE, select [C] CIM is expected to create a new server
    for me.
    5. from the menu SELECT JBOSS SERVER TEMPLATE to USE, select default [D].
    6 accept the default value, ATGProduction, for the name of the JBoss server.
    7. in the JBOSS DEPLOYMENT MENU, select [D] Production to deploy with a lock server
    Manager ATGProduction.ear to JBoss.

    on the last step (step 7), by selecting result "[D] Production to deploy with a Management Server locks for JBoss ATGProduction.ear ' the following error in the cim.log file

    Thu Apr 05 22:55:37 info that'S 2012 1333662937450 atg.cim.productconfig.deploy.jboss.DeployEarToJbossTask runAssembler-Server ATGProduction /oracle/jboss-5.1.0.GA/server/ATGProduction/deploy/ATGProduction.ear m DafEar.Admin DPS DSS B2CCommerce DCS. PublishingAgent DCS. AbandonedOrderServices Store.Storefront Store.Storefront.NoPublishing Store.Fulfillment Store.EStore
    Thu Apr 05 22:55:37 info that'S 2012 1333662937460 atg.cim.task.ant.utility.AntLogger
    Thu Apr 05 22:55:37 info that'S 2012 1333662937460 atg.cim.task.ant.utility.AntLogger exec.runAssembler.sh.file.nonwindows:
    Thu Apr 05 22:55:37 info that'S 2012 1333662937469 atg.cim.task.ant.utility.AntLogger [exec] DYNAMO_HOME = oracle/ATG/ATG10.0.3/home/... Homepage
    Thu Apr 05 22:55:37 info that'S 2012 1333662937469 atg.cim.task.ant.utility.AntLogger [exec]
    Thu Apr 05 22:55:37 CEST 2012 info 1333662937472 atg.cim.task.ant.utility.AntLogger [exec] TIME IS NOW / tmp
    Thu Apr 05 22:55:37 info that'S 2012 1333662937533 atg.cim.task.ant.utility.AntLogger [exec] before the base, JAVA_ARGS =
    info Thu Apr 05 22:55:37 BST 2012 1333662937535 atg.cim.task.ant.utility.AntLogger [exec] CLASSPATH=./locallib/:./lib/launcher.jar:/oracle/jboss-5.1.0.GA/common/lib/jsp-api.jar:/oracle/jboss-5.1.0.GA/common/lib/jboss-javaee.jar:/oracle/jboss-5.1.0.GA/lib/jboss-javaee.jar:/oracle/jboss-5.1.0.GA/common/lib/servlet-api.jar
    Thu Apr 05 22:55:38 info that'S 2012 1333662938026 atg.cim.task.ant.utility.AntLogger what follows [exec] installed ATG components used to launch:
    Thu Apr 05 22:55:38 CEST 2012 info 1333662938027 atg.cim.task.ant.utility.AntLogger [exec] ATGPlatform version 10.0.3 installed at /oracle/ATG/ATG10.0.3
    Thu Apr 05 22:55:38 info that'S 2012 1333662938027 atg.cim.task.ant.utility.AntLogger [exec]
    Thu Apr 05 22:55:38 CEST 2012 info 1333662938163 atg.cim.task.ant.utility.AntLogger [exec] Assembly began.
    Thu Apr 05 22:55:38 CEST 2012 info 1333662938163 atg.cim.task.ant.utility.AntLogger [exec] target application is oracle/jboss-5.1.0.GA/server/ATGProduction/deploy/ATGProduction.ear.
    Thu Apr 05 22:55:39 info this IS 2012 1333662939198 atg.cim.task.ant.utility.AntLogger [exec]

    Published by: ceitss on April 6, 2012 03:12

    Version Java support with 10.0.3 is Oracle (Sun) JDK 1.6.0_25.

  • Attempt to package a jar of shared library in the ear file. error wlappc

    I try to deploy files jar like shared libraries and decided to follow the recommendation to wrap the pots inside the separate ear files. I include all the modules in the ear, because each of them is designed to be deployed as a shared library. Jar files are placed in the APP-INF/lib directory. The manifest file in the directory META-INF of the ear contains name information and the version of the extension that I would use for these pots. When I run wlappc in my build the wlappc generates an error. I ran weblogic. DDConverter on the ear and the same error was generated. See below. Apparently, the error is caused by the fact that I do not declare all modules in the application.xml file. I found several examples of how package libraries with the help of a war. Even looking at the files in the C:\bea10.3.3\wlserver_10.3\common\deployable-libraries . I found no examples using the Archives of the ear.

    My question is how can I do this. I'd rather do not creation of dummy modules. The documentation seems unclear to me in this area. I would really appreciate the help on this ASAP.

    I use Weblogic Server 10.3.3


    DDConverter error message

    + < 30 August 2010 11:12:00 CEST > < error > < J2EE > < BEA-160197 > < cannot load the descriptor weblogic.application.ddconvert.ConvertCtx$VJarResourceLoader@17590db finder: weblogic.utils.classloaders.CodeGenClassFinder@17943a4 annotation: null module /META-INF/application.xml. The error is weblogic.descriptor.DescriptorException: VALIDATION of the PROBLEMS have BEEN FOUND.
    problem: cvc-complex - type. 2.4 c: expected for item 'module @http://java.sun.com/xml/ns/javaee' before the end of the item application @http://java.sun.com/xml/ns/javaee content: < null >
    + weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:245) +.
    + weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:231) +.
    + weblogic.descriptor.internal.MarshallerFactory$ 1.createDescriptor(MarshallerFactory.java:155) +.
    + weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768) +.
    + weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301) +.
    + weblogic.application.ddconvert.EarConverter.convertDDs(EarConverter.java:59) +.
    + weblogic.application.ddconvert.DDConverter.runBody(DDConverter.java:155) +.
    + weblogic.utils.compiler.Tool.run(Tool.java:158) +.
    + weblogic.utils.compiler.Tool.run(Tool.java:115) +.
    + weblogic.application.ddconvert.DDConverter.main(DDConverter.java:175) +.
    + weblogic. DDConverter.main (DDConverte +)

    My Application.xml. The problem persists once I deleted the < library-directory > element.

    + <? XML version = "1.0" encoding = "UTF - 8"? > +.
    + < application xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" +.
    xmlns = "http://java.sun.com/xml/ns/javaee" xmlns:application = "http://java.sun.com/xml/ns/javaee/application_5.xsd".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd".
    ID = 'Application_ID' version '5' = >
    + < display name > coreEar < / name >.
    + coreEar < description > < / description >.
    + APP-INF/lib < library-directory > < / library-directory > +.
    + < / application > +.

    My weblogic application. XML

    + <? XML version = "1.0" encoding = "UTF-8"? > +.
    + < wls:weblogic - application xmlns:wls = "http://xmlns.oracle.com/weblogic/weblogic-application" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd" > +.
    + < wls:application - param > +.
    + < wls:param - name > webapp.encoding.default < / wls:param - name > +.
    + < wls:param - value > UTF-8 < / wls:param - value > +.
    + < / wls:application - param > +.
    + < wls:fast - swap > +.
    + < wls: activated > true < / wls: activated > +.
    + < / wls:fast - swap > +.
    + < / wls:weblogic - application > +.

    My EAR/META-INF / "MANIFEST. MF.

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.1
    Created by: 1.6.0_21 - b07 (Sun Microsystems Inc.)
    Built by: weblogic
    Specification-title: coreEar
    Specification-vendor: Picot Entertainment Systems, Inc.
    Specification-Version: 1.0
    Implementation-title: coreEar
    Implementation-vendor: Picot Entertainment Systems, Inc.
    Implementation-Version: 1.0
    Extension name: com.picot.sempre
    WebLogic-Application-Version: v0.1b

    My APP-INF/lib/corelib.jar/META-INF/ manifesto

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.1
    Created by: 1.6.0_21 - b07 (Sun Microsystems Inc.)
    Built by: weblogic


    My EAR archives broken

    coreEar.ear
    + > APP - INF +.
    -> classes
    -> lib
    -= coreLib.jar
    -> META-INF
    -= MANIFESTO. MF
    -> com /.

    + > META-INF +.
    -= MANIFESTO. MF
    -= application.xml
    -= weblogic.application.xml

    You must create at least a model Module...
    Because the Standard EAR file must contain at least one valid... WAR... EJB jar... .or an ordinary Java Module.

    Please rerfer to: http://weblogic-wonders.com/weblogic/2010/06/22/how-to-build-ear-application-for-weblogic/
    Your Exception clearly said... There is no present valid Module in your "application.xml" file which is the root cause of this issue.

    NOTE: Still, if you do not want to create a Module inside your Application of EAR... then you can go ahead with the optional Packages. Optional packages also provides the same functionality as shared libraries... In this fit you can deploy a Plain Jar file on the server as an optional package, and other Applications can make reference to it. Like this: http://weblogic-wonders.com/weblogic/2009/12/06/optional-packages/

    To see an example of it, you can do refers to: http://forums.oracle.com/forums/thread.jspa?messageID=4439423 during the last answer of mine I have Pasted a link to Test case that I've developed for demonstration... http://www.4shared.com/file/aaudoKO-/Hibernate_Shared_Lib_Demo.html (around of-2, 1 MB size)

    The J2EE specification says: you must have a valid Module (war, ejbjar or simple Module Java) defined in the application ".» XML"of your Enterprise Application.
    .
    .
    Thank you
    Jay SenSharma
    http://WebLogic-wonders.com/WebLogic/ (WebLogic wonders are here)

  • How to exclude (ignore) some files to be packaged in the ears/wars

    We need to be able to ignore certain files AND folders (and their contents). It must also be by default so that we will not have to manually uncheck this teaching time. There is a single model to these files, because they are just artifacts SCM (for example: files in each directory .svn). How can present us EAR files so that they always ignore these ".svn" directories by default?

    Change the deployment profile to your EAR - under file groups, you will see a section called filters and there you have templates that you can apply.

  • The EAR file size may be 1 KB?

    I created an ADF application in Jdev10.1.3
    for model project that I created file.le EAR causing the EAR is of size 1 KB.
    I think that it's very small.
    actually what is the size of the EAR file?

    When I created the ejb jar (for model) r, war (for the view controller) for the same ADFapplication the size of the pot is 40 k, size of war is 6287 k. How could my EAR size 1 KB?
    Is something wrong with me? or it's ok.

    And I also have other doubt.if I create EAR for model in an application project, is that for the deployment of application.is all this EAR EAR will contain enough WAR
    from my view as controller.
    Please clarify my doubts.i appreciate your help.

    HM...
    I do not work with this version, but you should check the contributors. Access the projrct properties, select deployment and right-click on the deployment profile and edit it. Click help to get an overview of what each option means.

    TMO

  • Install the ear of Console - cannot run the application.

    JDeveloper 12 c 32bits.

    I'm checking my ear is produced correctly by deploying the console of weblogic (which is really just the integrated environment).

    The installation says it works great... but I can't launch the web page by using the same URL I used the deployment of Jdeveloper.

    I was capable of that test applications with little (with security). But the Application that I just spent a month of work on is a failure!

    Some features:

    The ADF security is on.  I have an application role, two users, and set up a same business role.

    users are granted to the role of the company.

    The role of the App is given to the role of the company

    Each workflow task and web pages are granted to the role of an application.

    WebLogic is configured with users and the role (which both correspond to users and the enterpise role in the security of the adf).

    The screen 'set up the Security deployment.

    Checked the weblogic application update. XML with the following parameters

    Application enabled policies

    Uncehcked credentials

    Groups and users not controlled

    Unchecked Auto generate and synchronize Weblogic JDBC descriptors during deployment

    Can I deploy on Jdeveloper to Weblogic Server the Integrated and it works.

    Connect the output: I get this when deploying Jdeveloper (it works) and when I install the ear to Weblogic (installation works, but I can not run the application).

    < 25 November 2015 14:54:52 this > < WARNING > < Application customer > < BEA-2162200 > < no hand-class defined in the Java Module manifest file: empty.jar. This module will be treated as a utility JAR and subsequent initialization steps will be skipped. >

    < 25 November 2015 14:54:55 this > < WARNING > < oracle.jps.credstore > < JPS-01033 > < cannot set credentials. The oracle.security.jps.service.credstore.CredentialAlreadyExistsException pattern: JPS-01007: identification with the card AISMainMenu-4131 and anonymous #ERPD key information already existing... >

    < 25 November 2015 14:54:55 this > < WARNING > < oracle.jps.upgrade > < JPS-06003 > < cannot migrate the information to key/identification of the AISMainMenu-4131/anonymous file #ERPD. The oracle.security.jps.service.credstore.CredentialAlreadyExistsException pattern: JPS-01007: identification with the card AISMainMenu-4131 and anonymous #ERPD key information already existing... >

    < 25 November 2015 14:54:57 this > < WARNING > < HTTP > < BEA-101384 > < WLServlet annotation is deprecated, use instead servlet 3.0 annotation. App:AISMainMenu@AISMenu, Class: oracle.adfinternal.view.faces.activedata.AdsServlet >

    I can deploy from Jdeveloper, but if I have a deployment on the built-in console (an ear file) of weblogic server, I can not run the application.

    I get the wrong URL?  It should be the same as the deployment of Jdeveloper on the integrated server.

    Thank you

    Stuart

    This is the error


    Error 404 - not found

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.4.5 404 not found

    Server not found anything matching the request URI. No indication is given whether the condition is temporary or permanent.

    If the server does not wish to make this information available to the client, the status code 403 (refused) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through a configurable mechanism, that an old resource is permanently unavailable and has no forwarding address

    Timo, Dario,

    I finally got to work.  I fiddled around so much with her, I don't know exactly what fixed - or a combination of two settings.

    Thank you very much for your help!

    Stuart

  • Copy of the ear to avoid re deployment

    I use Weblogic Server 10.3.6.0 version and Jdev version 11.1.2.4.0

    We have our ADF applications deployed on weblogic managed servers. To keep an alternative environment synchronized with the production code, I decided to copy the ear of the prod server application in the deployment of servers, replacing directory (/ db / orabin / apps / adf / Middleware / user_projects / domains / base_domain / sysman / upload / deploy/MyApplication/archive / MyApplication. ear) and bounced the server.

    But he did not pick up changes in the ear that is copied. I know that it is a standard, not a recommended method for the environment in sync, but I think it should work.

    Pointers to why changes are not reflected and replacements, I could use to do this.

    Thanks in advance.

    Have you tried to update the application after you have copied the ear file?

    Only from the console, select the application and then press update.

  • Application of JAX - RS not deployed when a part of the EAR

    I have a WAR file that contains a JAX - RS application. In the stand-alone deployment, I can access different resources. When instead this WAR file is deployed as part of an EAR, and then the JAX - RS application is not recognized by WebLogic and none of the JAX - RS are available.

    My JAX - RS application is very simple:

    MyApplication.java

    package company.rest;
    
    
    @ApplicationPath("/")
    public class MyApplication extends Application {
        @Override
        public Set<Class<?>> getClasses() {
            HashSet<Class<?>> classes = new HashSet<>();
            classes.add(MyResource.class);
            return classes;
        }
    }
    
    

    MyResource.java

    package company.rest;
    
    @Path("/foo")
    public class MyResource {
        @Produces(MediaType.APPLICATION_JSON)
        @Path("/")
        public String list() {
    return "[1,2,3]";
    }
    }
    
    
    
    

    I have a weblogic.xml:

    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
      <context-root>my/api/1/rest</context-root>
    </weblogic-web-app>
    
    

    Then application.xml for ear is empty.

    (Incidentally, I don't understand why the weblogic.xml is necessary. I tried to put the path of the context everything in the @ApplicationPath of the MyApplication but who was honored not...)

    When I deploy, I see in weblogic is that war MyApplication is deployed as a type of Web Application of 'Module' under the EAR. There is however no listed Web service. Also, if I click on the war MyApplication then look under surveillance, both tabs Web Applications and applications of JAX - RS show no entry.

    What I am doing wrong?

    In the greatest demand, I started to disable some wars / RPG are included in the ear and then he started to work identical to the minimal example. Somewhere, there is a conflict with the libraries in the ear / various wars, but I do not get any type of output in the paper, etc. It is not simply recognize the war as file containing resources of JAX - RS.

  • oracle.mds.core.MetadataNotFoundException when the EAR deployment in local WLS

    Hi all

    I tried searching the forum and read this: How to get rid of MDS , I checked the path in the field: C:\JDev11g_Home\system11.1.1.4.37.59.23\DefaultDomain, no space in the path. I searched this file, he complained of "adf - config.xml", could not find this file in my application at all. (My application is migrated from 10g to 11g using the Trinity.) I use JDEV 11.1.14.0 and WLS 10.

    Also, I tried these 2 scenarios during the creation of the EAR file: include / exclude these 2 jars: mdsrt.jar & oramds.jar, (although I don't think this is the cause because he did not complain ClassNotFoundException.) same mistake of deployment.

    Here's the output console during deployment of the EAR:

    < MDSBackingStore > < obtainMetadataObject > Exception when obtaining mutable object
    oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata not found for the metadata object '/META-INF/adf-config.xml '.
    at oracle.mds.core.MetadataObject.getBaseMO(MetadataObject.java:1163)
    at oracle.mds.core.MDSSession.getBaseMO(MDSSession.java:2837)
    at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:1204)
    at oracle.adf.share.jndi.MDSBackingStore.getMetadataObject(MDSBackingStore.java:389)
    at oracle.adf.share.jndi.MDSBackingStore.obtainMetadataObject(MDSBackingStore.java:510)
    at oracle.adf.share.jndi.MDSBackingStore.getMOBean(MDSBackingStore.java:566)
    at oracle.adf.mbean.share.config.RuntimeMXBeanImpl.init(RuntimeMXBeanImpl.java:169)
    to oracle.adf.mbean.share.config.RuntimeMXBeanImpl. < init > (RuntimeMXBeanImpl.java:159)
    to oracle.adf.mbean.share.config.RuntimeMXBeanImpl. < init > (RuntimeMXBeanImpl.java:151)
    at oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack.contextInitialized(ADFConfigLifeCycleCallBack.java:127)
    to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:636)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    in weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$ 100 (DeploymentReceiverCallbackDeliverer.java:13)
    to weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$ 2.run(DeploymentReceiverCallbackDeliverer.java:68)
    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    < ADFConfigLifeCycleCallBack > < contextInitialized > cannot create the mbean config.

    Help, please!

    Thank you.
    Shawn

    the adf file has the ear file... If you deploy by using the jdeveloper, he will understand the adf file... If you do with the ant script control if the ant script is written to include this file also in the ear file.

  • How do I delete the ear under folder sbgen safely

    Hi all

    Our server continually reporting error that OSB is trying to connect to the old jms destinations.
    But we check our codes, jms destinations are all updated, there isn't any old jms destinations.

    Then, I found that, under folder areas/user_domain/sbgen/it's a .ear files.

    Decompresser decompress the .ear file, then unzip the ejb.jar, weblogic-ejb-jar. XML open so I can see the old jms destination.

    I want to know why the old jms destinations are still there while these old jms destinations are all removed from our codes.
    And I also want to know how to remove these files .ear safely.


    Thank you and best regards,
    Bruce

    You can try to remove these deployments in the weblogic administration console.

Maybe you are looking for