Checksum inside EAR Files

Hello All,
Is it possible to recurse an EAR file structure and compute checksums of the files inside the EAR file, say go inside wars, jars etc ? If it can be done then please let me know the Java API to use.
TIA

http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html

Similar Messages

  • Classpath per EAR file

    System:
    - Sun Java System Application Server 7 2004Q2
    - OS: Windows 2000 Professional
    - JVM: 1.4.2_04
    Does the "library" directory, inside EAR file (at the EAR root) works as a classpath ?
    The Assembly Tool, has an option to add libraries to the EAR file, where this action, just creates a
    directory called "library", at the root of EAR file and put there the libraries (JAR files). Does this works as
    classpath when deployed to SunOne 7 2004Q2 ?
    I need this because my EAR app, has 2 webcontexts and 1 JAR module (around 12 EJBs)
    each one has common libraries, where I want to put inside the EAR file, and don't want replicated
    libraries along the modules (web and ejb).
    Do you have some suggestion ?
    Thanks in advance.
    - Claudio

    check the classloader hierarchy at the following url:
    http://docs.sun.com/source/817-2171-10/dgdeploy.html#wp58502

  • Java files from a EAR file and from inner (inside EAR)

    I want to read all Java files from a EAR file and from inner (inside EAR) EAR or WAR file with out unpacking.
    suppose "Demo.ear" contaions the following files:
    abc.java
    programs / a.java
    programs / b.java
    src / index.java
    src / com / myFolder / main.java
    src.war
    and suppose "src.war" again contains some java files inside differenet folders.
    The main problem is that i can read all java files from "Demo.ear" but unable to reading from "src.war" b'coz my program is using JarFile class constructor which needs a archive file path, So only top level archive having the path but not the inner archives.
    So, pls help me out to this problems
    Thanks in advance

    Firstly Sorry to writing long letter. but i was unable to express my problem.
    see my code==============================
    JarFile jarFile = new JarFile("Demo.ear");
    Enumeration e=jarFile.entries();
    while (e.hasMoreElements())
    JarEntry entry=(JarEntry)e.nextElement();
    if (entry.getName().endsWith(".war"))
    // Then what Next to do...........
    ===========================================
    you have mentioned "theFile" , What is this?...............
    InputStream in = theFile.getInputStream(theEntryOfTheWAR);
    This line is not a compatible type casting in Java..........
    ZipOutputStream theWar = new ZipInputStream(in);

  • Session sharing among multiple WAR files inside an EAR file

    Hi all,
    Is there a way where I can share my session object among multiple WAR files which are inside an EAR file?
    Please suggest.

    r035198x wrote:
    Some application servers (like Weblogic) allow to configure session sharing when you deploy the application.Sidenote: which is completely against the servlet spec.

  • Specify a property file inside a ear file

    Hi guys I have this myApplication.ear file.
    All the project inside the ear file are using myProperties.properties file.
    I have been told that this property file has to be inside the ear file.In websphere 7.0 ,the administrator will specify a jvm classpath like /webAS/installedApps/myApplication.ear/myProperties.properties.During runtime my code will find the property file using this class path
    I am using RAD 7.5 to generate the ear file.Can some one tell me how to achieve this.Basically my ear file has to be bundled with the property file.
    thanks
    m

    You might get better results from a RAD forum if you a havent already figured out your issue.

  • ClassNotFoundException trying to load classes in a .war file inside an .ear file

    Hi. I've deployed an EJB2 enterprise app as an ear file on WebLogic 6
              without errors. The ear file contains web app and ejb components in war and
              jar files. The web component is set to be the default web app in the
              config.xml file. Everything deploys without error messages.
              My problem is that I get ClassNotFoundExceptions when I try to invoke a
              servlet (via its servlet-mapping) or do Class.forName() on any class file in
              the war file.
              I see in '.wl_temp_do_not_delete' that the ear file has been decomposed into
              the ejb jar and web war files. The war file is not 'exploded' into a
              directory structure, however (as the console.war is). Is this an error
              (should the class packages in the war file be 'exploded'?)
              I don't see a tag in the web.xml, config.xml, or application.xml that tells
              the server to explode the war file--is there one?
              Note that if I manually copy the exploded class folders into the
              '_tmp_war_myserver_myserver_<<webappname>>' directory (and not, curiously,
              into a WEB-INF/classes subdirectory of that directory), the servlets and
              other classes load correctly. Also, jsps and html files load just fine
              without exploding the war file.
              Note also that the server complains about not being able to find the
              classes, even though it reports that the decomposed war file is in the
              classpath. Is there a problem loading class files from a .war file (because
              the namespace is different, with root classes located in WEB-INF/classes
              rather than the .war file's root?)
              Also, in the application.xml file, what is the meaning of the
              <context-root></context-root> element? What should its value be? What if
              you leave it blank?
              Thanks for any help,
              Reid
              

    Is there a way to add jar libraries to the Oracle JVM CLASSPATH? Is this the same as the system's CLASSPATH env. variable?
    Thank you!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alex McClennan ([email protected]):
    The package prefix in the code extract was correct - i.e. "oracle.aurora.jndi". A value of "oracle.aurora.jndi.*" would be incorrect.
    The problem is that the context factory implementation specified (com.evermind.server.ApplicationClientInitialContextFactory
    ) can't be found, the mostly likely reason being that the library containing the class isn't on the classpath.
    Cheers,
    ax<HR></BLOCKQUOTE>
    null

  • Scheduling jobs inside an ear file

    Hi,
    I am newbie to scheduling concepts,
    we have a servlet which is deployed on websphere and which needs to be called on monthly/quarterly basis and the servlet expect an request parameter.
    Can we implement this using quartz scheduler?
    Also we might want to add few more jobs to the sceduler dynamically without redeploying EAR file? (Something like retrieving the job details from Database tables)
    Pls advise me, and also let me know if there is any other easy way of implementing the above functionality.
    Regards,
    Ram

    so u are planning to write your jobs in class files which implements jobs..is that right?
    Yes, I am planning write a new class which implements a Job
    and if u have 10 jobs...are u going to create 10 job class files? --- NO
    or in one jobs u can separate the jobs according to the job name...
    I will distinguish the jobs based on the job names..
    In the Database we maintain mutliple job details (only name is different) and their corresponding cron trigger expression.
    In the Job class based on the name of the job it performs different functionality.
    I got answers for my initial question, Whenever there are new jobs inserted in DB I am going to have a JSP where we can restart the scheduler, Which actually unschedules and deletes the previous jobs and loads all the jobs freshly from Database.
    Anyways, Thanks for your time, I have got the answers from the questions you have raised.
    Regards,
    Ram

  • Remote creation of MBean deployed in EAR file : loader's ObjectName ??

    I am trying to implement a client which connects to the MBean server
    running in weblogic and then creates an instance of an MBean deployed
    inside an ear file. However, since the class files of the MBean are
    inside the ear file (and NOT in the "serverclasses" directory), it
    looks as if I needed to specify a non-default classloader when calling
    RemoteMBeanServer.createMBean(...).
    --> How can I determine the ObjectName of the correct loader (on
    runtime) ?
    (I am running weblogic 6.1 SP2 on Win2K)
    import javax.naming.Context;
    import javax.management.*;
    import weblogic.jndi.*;
    import weblogic.management.*;
    public class TestClient {
    public static void main(String[] args) {
    String host = "localhost";
    int port = 7001;
    String username = "system";
    String password = "password";
    String serverName = "examplesServer";
    try {
    // get the remote MBean server
    Environment env = new Environment();
    env.setProviderUrl("t3://" + host + ":" + port);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME
    + "." + serverName);
    ctx.close();
    RemoteMBeanServer remoteServer =
    (RemoteMBeanServer)home.getMBeanServer();
    // remotely create a new instance of our MBean, deployed
    in an ear file (NOT the "serverclasses" directory !!)
    String domain = "examples";
    String mBeanClassName = "basic.SimpleStandard";
    String mBeanName = mBeanClassName + "_" +
    System.currentTimeMillis();
    ObjectName mBeanObjectName = new ObjectName(domain +
    ":Name=" + mBeanName + ",Type=" + mBeanClassName);
    //ObjectName loaderObjectName = ?? that's my question ??;
    //ObjectInstance mBeanInstance =
    remoteServer.createMBean(mBeanClassName, mBeanObjectName,
    loaderObjectName);
    ObjectInstance mBeanInstance =
    remoteServer.createMBean(mBeanClassName, mBeanObjectName);     // this
    throws "javax.management.ReflectionException: The MBean class could
    not be loaded by the default loader repository"
    } catch (Exception e) {
    e.printStackTrace();

    Atlast it worked. The problem was that in my ejb-jar.xml I was referring to 2_0.dtd. I have changed that to 2.1 and it worked.
    Older ejb-jar.xml had:
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "C:/jboss-4.0.1sp1/docs/dtd/ejb-jar_2_0.dtd">
    I changed that to:
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    And it worked.
    -Sathish

  • Reading Java files from a EAR file

    I want to read all Java files from a EAR file and from inner (inside EAR) EAR or WAR file with out unpacking.
    suppose "Demo.ear" contaions the following files:
    abc.java
    programs / a.java
    programs / b.java
    src / index.java
    src / com / myFolder / main.java
    src.war
    and suppose "src.war" again contains some java files inside differenet folders.
    The main problem is that i can read all java files from "Demo.ear" but unable to reading from "src.war" b'coz my program is using JarFile class constructor which needs a archive file path, So only top level archive having the path but not the inner archives.
    So, pls help me out to this problems
    Thanks in advance

    Maybe you can use java.util.zip.ZipInputStream to
    open the Ear and recursively to open the files in
    it; I'm not sure whether this will result in a full
    unpacking of the file in some temporary directory,
    though.
    Please let me know if it worked the way you wanted,
    I'm curious about it.This jerk just created the third thread about the same topic, because he didn't understand your suggestion, which I already provided earlier.
    http://forum.java.sun.com/thread.jspa?threadID=790015

  • How do I convert an war file to ear file, deploying weblogic apps

    Problem Description: I have a war file from a legacy application that needs to be migrated to weblogic. To migrate this application to weblogic, we need a ear file. Reading weblogic doc. it says we needs to use ant utility on an exploded web content application folder/ directory to create the ear file. I need to covert the existing war file to ear file , if it is doable or create one from the scratch. I need to know how to do that in weblogic. Please let me know if you have any hints .
    Thanks

    HI,
    Please try the following to convert your WAR file into an EAR exploded archieve:
    *1).* Create a Directory in your file system.
    Example:
    /home/apps/MyFirstEAR
    *2).* Place the WAR file inside the above Directory. (Suppose your WAR file name is test.war)
    Example:
    /home/apps/MyFirstEAR/test.war
    *3).* Now create a "META-INF" directory inside "/home/apps/MyFirstEAR" directory
    *4).* Now create an "application.xml" file like following inside "/home/apps/MyFirstEAR/META-INF" directory:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
    <description>Test EAR Example</description>
    <display-name>TestEAR Example</display-name>
    <module>
    <web>
    <web-uri>test.war</web-uri>
    <context-root>test</context-root>
    </web>
    </module>
    </application>
    *5).* Your EAR is ready now you can deploy the "MyFirstEAR" directory in the WebLogic Server.
    NOTE: if you want to place the "test.war" file also as an exploaded format content inside the EAR then you need to extract the test.war file and then in place of the test.war you can have "test" directory at the same place.
    You need to change the "application.xml" file like below in that case:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
    <description>Test EAR Example</description>
    <display-name>TestEAR Example</display-name>
    <module>
    <web>
    <font color=red> <web-uri>test</web-uri> </font><br>
    <context-root>test</context-root>
    </web>
    </module>
    </application>
    For more information on an EAR application structure you can refer to : http://middlewaremagic.com/weblogic/?p=1952
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic (Middleware Magic Is Here)

  • How to access a jar file in EAR file?

    I have a EAR file which contains EJB.jar file and util.jar file. Outside of EAR, I mean in client side, I need to reference util.jar file. How can I access it?
    EAR structure is
    |--+META-INF/
    |--|---application.xml
    |--|---manifest.mf
    |--EJB.jar
    |--|---+MEAT-INF/
    |--|---|--- deployment descriptors...
    |--|---|--- manifest.mf
    |--|--- EJB classes
    |--Util.jar
    Util.jar must be executed in server side. If I just add Util.jar in client program's classpath, when client program is executed, serverside Util.jar is executed? Or what else I should do in the client program to reference server-side Util.jar?

    Excellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
    Write another EAR file with the following structure:
    ear:
    META-INF/application.xml
    util.jar
    client.jar
    client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
    Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
    If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
    Points to note are:
    you have to repackage util.jar again inside this ear file.
    For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
    Hope this helps,
    Sahoo

  • Error in deploying, EAR file does not contain SAP_MANIFEST.MF

    I just upgraded to SAP Netweaver Developer Studio 7.1 from 7.0, and the process of creating and deploying an EJB archive seems to be quite different. Here are the steps I am following:
    (1) I create and build an EJB Project called foo.
    (2) Export the EJB Project foo as an EJB JAR (not sure if this is necessary)
    (3) Create an Enterprise Applications project called fooEAR, with target runtime set to SAP server. When I am prompted for J2EE Modules to add, I select foo (created in step (1)).
    (4) Export the EAR project fooEAR as an EAR file. When I am prompted for which EAR application I choose fooEAR.
    (5) Try to deploy the EAR created in (4) using Deploy View -> External Deployable Archives -> Add, then choose the fooEAR.ear as the target. But I get an error message:
    Wrong SDA/SCA archive
    Error while loading archive ...
    Archive has no entry META-INF/SAP_MANIFEST.MF
    I looked inside fooEAR.ear, and there is no SAP_MANIFEST.MF file. How can I create an EAR that has such a file ?

    Hi Ivaylo,
    to answer your first question, the EAR that I am trying
    to deploy gets created as part of the publish step. When
    I look in the application.xml file of this EAR I see a
    version attribute with value of 1.4 in the application
    tag, can we assume that this implies J2EE 1.4 compliancy?
    One thing about this generated EAR is that it does not
    include any java code (VM or otherwise). When I generate
    the EAR by hand (by exporting the EJB project as an EAR
    file there is a JAR for the actual java code put in
    there, but when generating the EAR via publish there is
    only some xml and manifest stuff put in the EAR, with the
    result that it's only 2KB or so in size. I have specified
    a J2EE module dependency from the Enterprise Application
    project to the EJB project, but is there something else I
    need to do to ensure that the java code (jar) gets
    included in the EAR of the Enterprise Application when
    attempting to deploy via publish?
    Thanks for the other suggest, "Import J2EE Archive".
    However, I am having difficulty locating this button.
    When I look at the "Deploy View" window I see on the left
    the Workspace and External Deployable Archives trees,
    and on the right there are "Setting for Updating
    SCAs/SDAs" radio buttons, as well as "Error Strategy"
    radio buttons, but no "Import J2EE Archive" button.
    Thanks for the info about SDM by the way, I was wondering
    why I was not able to launch it (there is still a remote
    gui shortcut, which should probably go away).

  • Error 160078 when deploying WAR file after EAR file

    I am tetsing an application which does automatic deployment to WebLogic 8.1 running on Windows XP using ejbgen tool through Ant.
    The following deployment sequence produces an error. I deploy an EAR file with EJB JAR and WAR file inside. It deploys correctly. I then undeploy the EAR file. This also works. Next I deploy a WAR file using the same deployment name as for the EAR file (the 'name' parameter of weblogic.Deployer command). This deployment fails. If I restart WebLogic server, the same deployment of the WAR file succeeds.
    Any idea what goes wrong?
    Thank you.
    Michael
    Here is the command used for deployment (as reported by Ant):
    [java] 'weblogic.Deployer'
    [java] '-debug'
    [java] '-verbose'
    [java] '-noexit'
    [java] '-remote'
    [java] '-upload'
    [java] '-name'
    [java] 'discoverytestproject'
    [java] '-source'
    [java] 'C:/Projects/Jetson/Toolbox/Tests/Projects/DiscoveryTestProject/build/staging/discoverytestproject-ws.war'
    [java] '-targets'
    [java] 'myserver'
    [java] '-adminurl'
    [java] 't3://10.10.0.123:7001'
    [java] '-user'
    [java] 'system'
    [java] '-password'
    [java] 'password'
    [java] '-deploy'
    This is the error message:
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <J2EE> <BEA-160018> <ComponentMBean: Nam
    e = discoverytestproject-ws, Type = WebAppComponentConfig - Targeted on this ser
    ver but, no corresponding module found in application descriptor. The component
    mbean is being Ignored.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <J2EE> <BEA-160078> <None of the modules o
    f application 'discoverytestproject' in 'META-INF/application.xml' are configure
    d in the 'Application' entry in 'config.xml' to be targetted to 'myserver'.>
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were d
    etected while initiating Deploy task for application discoverytestproject.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complet
    e the deployment task with ID 6 for the application discoverytestproject.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
    tainer(SlaveDeployer.java:2556)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2491)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

    I am tetsing an application which does automatic deployment to WebLogic 8.1 running on Windows XP using ejbgen tool through Ant.
    The following deployment sequence produces an error. I deploy an EAR file with EJB JAR and WAR file inside. It deploys correctly. I then undeploy the EAR file. This also works. Next I deploy a WAR file using the same deployment name as for the EAR file (the 'name' parameter of weblogic.Deployer command). This deployment fails. If I restart WebLogic server, the same deployment of the WAR file succeeds.
    Any idea what goes wrong?
    Thank you.
    Michael
    Here is the command used for deployment (as reported by Ant):
    [java] 'weblogic.Deployer'
    [java] '-debug'
    [java] '-verbose'
    [java] '-noexit'
    [java] '-remote'
    [java] '-upload'
    [java] '-name'
    [java] 'discoverytestproject'
    [java] '-source'
    [java] 'C:/Projects/Jetson/Toolbox/Tests/Projects/DiscoveryTestProject/build/staging/discoverytestproject-ws.war'
    [java] '-targets'
    [java] 'myserver'
    [java] '-adminurl'
    [java] 't3://10.10.0.123:7001'
    [java] '-user'
    [java] 'system'
    [java] '-password'
    [java] 'password'
    [java] '-deploy'
    This is the error message:
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <J2EE> <BEA-160018> <ComponentMBean: Nam
    e = discoverytestproject-ws, Type = WebAppComponentConfig - Targeted on this ser
    ver but, no corresponding module found in application descriptor. The component
    mbean is being Ignored.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <J2EE> <BEA-160078> <None of the modules o
    f application 'discoverytestproject' in 'META-INF/application.xml' are configure
    d in the 'Application' entry in 'config.xml' to be targetted to 'myserver'.>
    <Oct 13, 2006 3:04:21 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were d
    etected while initiating Deploy task for application discoverytestproject.>
    <Oct 13, 2006 3:04:21 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complet
    e the deployment task with ID 6 for the application discoverytestproject.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
    tainer(SlaveDeployer.java:2556)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: [J2EE:160078]None of the mod
    ules of application 'discoverytestproject' in 'META-INF/application.xml' are con
    figured in the 'Application' entry in 'config.xml' to be targetted to 'myserver'
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
    laveDeployer.java:2491)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
    oyer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

  • (un)deploy a single component in an .ear File in WLS 6.1

    I deployed a .ear File, that contains 25 EJBs and 5 webapplications) in WLS
    6.1. Everything is fine. Now i tried to undeploy a single EJB that is
    contained in the .ear File. But when i mark this EJB in the WLS admin
    console as undeployed, all other EJBs and WARs are marked as undeployed.
    Is this becaue of the J2EE specification or is it a weblogic feature /
    problem?
    alexander

    This issue is seen only with IBM JDK 1.6 (any SR) because, IBM packages the xerces version 2.9 as a part of $IBM_JDK_HOME/jre/lib/xml.jar.
    I think/understand that, your application is also packaging a xerces impl jar(different version otherthan xerces version 2.9) in WEB-INF/lib of you application.
    So, to make sure that the WebLogic Server uses the xerces impl jar that has been packaged, you are trying to use the filtered classloader in weblogic-application.xml
    But the filtered classloader would not have any effect, since, the IBM JDK packaged xerces parsers would also be with the same package structure. So, I think you should try with setting the following in WEB-INF/weblogic.xml inside the <weblogic-web-app> tag.
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    I think this should work with WLS 11gR1PS2 (WLS 10.3.3).

  • How to use application params in .EAR files

    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included in
    a jar inside the ear file.

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

Maybe you are looking for