Deploying jars within a single (exploded) ear

Our project currently uses 8.1 SP3 with split deployment structure.
Currently the project is split into multiple ears deployed on a single (managed) server. It is my understanding that calls made across ear's even on the same server (jvm) need to be marshalled and unmarshalled using pass by value.
We are trying to consolidate all our EJBs and Web apps into a single .ear so that we can take advantage of call-by-reference. We also have a requirement of being able to deploy "groups" of EJBs (within a single jar) and/or a web app. Deploying a single ear for the entire project would be one extreme, as it would be painful to deploy individual modules within the ear. On the other hand, using an exploded ear would be too "granular" a way of deploying our changes (we have many EJBs, etc.).
Is it possible to deploy an exploded ear consisting of jar and war files ? I am in the process of trying this and was looking for feedback. The idea is of being able to deploy parts of the app, such as a .jar or a .war file. Can wlpackage create an exploded ear using .jar and .war files instead of modules consisting of .java/.jsp, etc. files? Thanks for your help!

There is a classpath issue. Normally ejbs are loaded on top of the ears classpath, so whenever you redeploy them, you have to redeploy the webapps, too. In 8.1 you can build your custom class loader hierarchy. Take a look at http://e-docs.bea.com/wls/docs81/programming/classloading.html#1065667
-Kai

Similar Messages

  • Deploying Portal App in exploded EAR format

    Hi all,
    We are using Portal BEA 8.1 SP2 and we also configured a cluster with
    production mode enabled.
    We want to deploy our portal app in exploded EAR format.
    http://edocs.bea.com/wlp/docs81/bestprac/conf.html#1056723
    But when we use workshop to "Build App" and when the application build is successful.
    And when we copy the App folder to the production server and deploy,
    We get the following error,
    [Deployer:149033]preparing application commApp on mgServer1
    [Deployer:149033]preparing application commApp on mgServer2
    [Deployer:149033]failed application commApp on mgServer1
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:
    Exception:weblogic.management.ApplicationException: Application commApp is packaged using the WebLogic Split Development Directory structure. The Split Development Directory structure can only be used in development environments with a single WebLogic Server. If you wish to deploy this application to a separate managed server or cluster, use the wlpackage ant task to create an exploded or archived EAR.
    [Deployer:149033]failed application commApp on mgServer2
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:
    Exception:weblogic.management.ApplicationException: Application commApp is packaged using the WebLogic Split Development Directory structure. The Split Development Directory structure can only be used in development environments with a single WebLogic Server. If you wish to deploy this application to a separate managed server or cluster, use the wlpackage ant task to create an exploded or archived EAR.
    What is the problem ?
    Thanks,
    Karthi.
    [att1.html]

    To deploy the app as EAR (I am confused by the expression "exploed EAR", my understanding
    its either exploded or EAR format) build the app as EAR (there is an option in
    the workshop build drop down).
    Did this help?
    S
    "Karthi" <[email protected]> wrote:
    >
    >
    Hi all,
    We are using Portal BEA 8.1 SP2 and we also configured a cluster with
    production mode enabled.
    We want to deploy our portal app in exploded EAR format.
    http://edocs.bea.com/wlp/docs81/bestprac/conf.html#1056723
    But when we use workshop to "Build App" and when the application build
    =
    is successful.=20
    And when we copy the App folder to the production server and deploy,=20
    We get the following error,
    [Deployer:149033]preparing application commApp on mgServer1
    [Deployer:149033]preparing application commApp on mgServer2
    [Deployer:149033]failed application commApp on mgServer1
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy
    =
    application commApp on devCluster,bkarthiPS.:=20
    Exception:weblogic.management.ApplicationException: Application commApp
    =
    is packaged using the WebLogic Split Development Directory structure.
    =
    The Split Development Directory structure can only be used in =
    development environments with a single WebLogic Server. If you wish to
    =
    deploy this application to a separate managed server or cluster, use
    the =
    wlpackage ant task to create an exploded or archived EAR.
    [Deployer:149033]failed application commApp on mgServer2
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy
    =
    application commApp on devCluster,bkarthiPS.:=20
    Exception:weblogic.management.ApplicationException: Application commApp
    =
    is packaged using the WebLogic Split Development Directory structure.
    =
    The Split Development Directory structure can only be used in =
    development environments with a single WebLogic Server. If you wish to
    =
    deploy this application to a separate managed server or cluster, use
    the =
    wlpackage ant task to create an exploded or archived EAR.
    What is the problem ?
    Thanks,
    Karthi.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#c0c0c0 background=3D"">
    <DIV><FONT face=3DArial size=3D2>Hi all,<BR><BR>We are using Portal BEA
    =
    8.1 SP2 and=20
    we also configured a cluster with<BR>production mode enabled.<BR><BR>We
    =
    want to=20
    deploy our portal app in exploded EAR=20
    format.<BR><BR>http://edocs.bea.com/wlp/docs81/bestprac/conf.html#1056723=
    <BR><BR>But=20
    when we use workshop to "Build App" and when the application build is=20
    successful. <BR><BR>And when we copy the App folder to the production
    =
    server and=20
    deploy, <BR><BR>We get the following =
    error,<BR><BR>[Deployer:149033]preparing=20
    application commApp on mgServer1<BR>[Deployer:149033]preparing =
    application=20
    commApp on mgServer2<BR>[Deployer:149033]failed application commApp on=20
    mgServer1<BR>[Deployer:149034]An exception occurred for task=20
    [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:=20
    <BR>Exception:weblogic.management.ApplicationException: Application =
    commApp is=20
    packaged using the WebLogic Split Development Directory structure. The
    =
    Split=20
    Development Directory structure can only be used in development =
    environments=20
    with a single WebLogic Server. If you wish to deploy this application
    to =
    a=20
    separate managed server or cluster, use the wlpackage ant task to create
    =
    an=20
    exploded or archived EAR.<BR>.<BR>[Deployer:149033]failed application
    =
    commApp on=20
    mgServer2<BR>[Deployer:149034]An exception occurred for task=20
    [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:=20
    <BR>Exception:weblogic.management.ApplicationException: Application =
    commApp is=20
    packaged using the WebLogic Split Development Directory structure. The
    =
    Split=20
    Development Directory structure can only be used in development =
    environments=20
    with a single WebLogic Server. If you wish to deploy this application
    to =
    a=20
    separate managed server or cluster, use the wlpackage ant task to create
    =
    an=20
    exploded or archived EAR.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>What is the problem ?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Karthi.</FONT></DIV></BODY></HTML>

  • Invoking JAR within an EAR

    I am having trouble invoking my project which is packaged in a jar and the jar is then packaged in an ear file.
    I need to deploy this big ear file onto an AIX server. No single jar file can be deployed onto the server so I have no option but to include my batch project into the ear file, however, when I try to invoke my main within this jar (within the ear), the class can't be found! Can anyone help me with this? Thanks!

    oh also I forgot to mention that I am invoking my program via shell script.
    My script invokes the main function, so my first problem is not being able to 'see' that main function in my ear.I did, however, defined my ear file inside the classpath and used the classpath option when calling my programs. Thanks!

  • Deploying exploded ear file

    Hi,
    I have exploded an ear file, and I am trying to deploy it in weblogic 7.0.
    This ear has several jars and war files.
    However, when I deploy it
    (Access is denied) at java.io.FileInputStream.open(Native Method) -- while trying
    to open the war file.
    I have followed the same steps as mentioned in the bea docs , by exploding all
    the individual wars, jars, inside the ear ..
    Any help is appreciated..
    Thanks in advance.

    I believe manifest class-paths should work fine for exploded EARs as
    well. Don't you want 'common' rather than '../common' in your
    class-path entry?
    -- Rob
    Eric Ma wrote:
    Rob:
    Yes, I was talking about the MANIFEST.MF Class-Path entries. My exploded ear
    looks like (under mydomain/applications)
    app
    --META-INF
    ----application.xml
    --ejb
    ----com
    ------abc.class
    ----META-INF
    ------MANIFEST.MF
    ------ejb-jar.xml
    --common
    ----com
    ------xyz.class
    --web
    ----jsp
    ----WEB-INF
    ------web.xml
    ------lib
    --------struts.jar
    The MANIFEST.MF file has
    Class-Path: ../common/
    I read at http://e-docs.bea.com/wls/docs61/ejb/EJB_deployover.html#1074087 that
    Class-Path is only supported in the .ear format. Is it true?
    Rob Woollen <[email protected]> wrote:
    Are you talking about manifest class-path entries? If so, can you show
    me what your exploded EAR looks like? (ie its layout and your
    class-path entries.)

  • How to Deploy portal 8.1 production cluster in exploded ear format in solaris

    Hi all,
    How can we deploy our PORTAL application in
    Weblogic 8.1 SP2 Weblogic 8.1 SP2 Weblogic 8.1 SP2 Weblogic 8.1 SP2
    Solaris Solaris Solaris Solaris Solaris Solaris
    PORTAL PORTAL PORTAL PORTAL PORTAL PORTAL PORTAL
    APPLICATION
    with PRODUCTION MODE = true PRODUCTION MODE = true PRODUCTION MODE = true
    PRODUCTION MODE = true
    Cluster Cluster Cluster Cluster Cluster Cluster Cluster Cluster Cluster
    Cluster (2 x 2 managed servers)
    As
    exploded ear format exploded ear format exploded ear format exploded ear
    format exploded ear format
    PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE
    don't send me this link
    http://e-docs.bea.com/wlp/docs81/deploy/deploy.html#1003591
    I used this link 100 times, but no use.
    Steps I did
    1. Build the application using workshop ( NO ear NO ear NO ear NO ear NO ear
    NO ear NO ear NO ear )
    2. use wlpackage to pack the built application ( NO ear NO ear NO ear NO
    ear NO ear NO ear NO ear NO ear )
    3. Deploy using console ( NO stage NO stage NO stage NO stage NO stage)
    The Error,
    The following error message I got.
    [Deployer:149033]preparing application commApp on mgServer1
    [Deployer:149033]preparing application commApp on mgServer2
    [Deployer:149033]failed application commApp on mgServer1
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy
    application commApp on devCluster,bkarthiPS.:
    Exception:weblogic.management.ApplicationException: Application commApp is
    packaged using the WebLogic Split Development Directory structure. The Split
    Development Directory structure can only be used in development environments
    with a single WebLogic Server. If you wish to deploy this application to a
    separate managed server or cluster, use the wlpackage ant task to create an
    exploded or archived EAR.
    [Deployer:149033]failed application commApp on mgServer2
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy
    application commApp on devCluster,bkarthiPS.:
    Exception:weblogic.management.ApplicationException: Application commApp is
    packaged using the WebLogic Split Development Directory structure. The Split
    Development Directory structure can only be used in development environments
    with a single WebLogic Server. If you wish to deploy this application to a
    separate managed server or cluster, use the wlpackage ant task to create an
    exploded or archived EAR.
    Thanks,
    Karthi.

    Its simple PORTAL application . After deploying this application we can add portlets as a childs to this application .
    Now this is simple PORTAL application with CSS file.
    Give me some idea about
    How to create PORTLET application with CSS files . Where to include this CSS file in a PORTLET application??????
    Normally we are creating first PORTAL application and adding CSS files to
    Portlet Content-->Themes-->html--> abc.css .
    --> Head.jsp we are giving the css file path in this JSP page as
    <link href='<wps:urlFindInTheme file="abc.css"/>' rel="styleSheet" type="text/css">
    After this I am adding my PORTLET application to this PORTAL .
    Then its working fine. But I want to know how to add CSS files to PORTLET application???????
    Please help me :-(

  • Deployment question: exploded EAR application

    I've been having some EJB connection problems when I try to deploy an exploded
    EAR app.
    Here is some background info.
    Running WL 6.1 SP2 on Solaris 8
    I have the following directory structure for my EAR app which
    contains my EJB's and WEB app
    /deployment/config/mydomain
    /myApp
    /META-INF/application.xml
    /classes
    /ejb
    /webApp
    /WEB-INF/web.xml
    /weblogic.xml
    The application.xml file contains all the descriptors for each EJB jar file in
    the ejb directory as well as the deployment descriptor to the webApp.
    In the Weblogic console I can create a new application called myApp and point
    it to the above directory (/deployment/config/mydomain/myApp) and it will deploy
    all the EJB's and the web app and I can display the login page to my webApp but
    as soon as I try to login and the webApp has to connect to a LOGIN ejb it fails
    because it cannot connect to the EJB.
    If I deploy each ejb jar file separately into a running weblogic environement
    I can login which means I can successfully connect to the EJB's.
    Has anyone done something similar to this. I'm following the BANK example that
    came with WL6.1, but I have not been successful and wondering if anyone can shed
    some light here for me.
    If you want to see my application.xml or web.xml let me know and I'll post it
    up.
    Thanks
    Ray

    Make sure your EJB's have a deployment target. I noticed that when I
    deployed an exploded ear file, the EJB's weren't deployed to the server,
    they were present in the console, but not deployed.
    -Brett Schmoll
    "Ray" <[email protected]> wrote in message
    news:3c374e60$[email protected]..
    >
    I've been having some EJB connection problems when I try to deploy anexploded
    EAR app.
    Here is some background info.
    Running WL 6.1 SP2 on Solaris 8
    I have the following directory structure for my EAR app which
    contains my EJB's and WEB app
    /deployment/config/mydomain
    /myApp
    /META-INF/application.xml
    /classes
    /ejb
    /webApp
    /WEB-INF/web.xml
    /weblogic.xml
    The application.xml file contains all the descriptors for each EJB jarfile in
    the ejb directory as well as the deployment descriptor to the webApp.
    In the Weblogic console I can create a new application called myApp andpoint
    it to the above directory (/deployment/config/mydomain/myApp) and it willdeploy
    all the EJB's and the web app and I can display the login page to mywebApp but
    as soon as I try to login and the webApp has to connect to a LOGIN ejb itfails
    because it cannot connect to the EJB.
    If I deploy each ejb jar file separately into a running weblogicenvironement
    I can login which means I can successfully connect to the EJB's.
    Has anyone done something similar to this. I'm following the BANK examplethat
    came with WL6.1, but I have not been successful and wondering if anyonecan shed
    some light here for me.
    If you want to see my application.xml or web.xml let me know and I'll postit
    up.
    Thanks
    Ray

  • ZipException while deploying exploded .ear

    WLS 8.1 SP1.
    My .ear contains 2 ejb.jar's, 1 web.war, and some library jar's. It is deployed
    without any problem. Now trying to deploy as exploded directory, I got
    <Jul 30, 2003 12:15:14 PM EDT> <Error> <J2EE> <BEA-160131> <Error deploying abc_web:
    with deployment error Could not load abc_web and nested error weblogic.management.DeploymentException:
    [HTTP:101062][ServletContext(id=3831981,name=,context-path=/)] Error reading Web
    application "c:\bea\user_projects\ABC\deploy\abc_app.ear\abc_web.war".
    java.util.zip.ZipException: Access is denied
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:117)
    at java.util.jar.JarFile.<init>(JarFile.java:55)
    Any suggestions? Thanks.
    Eric Ma

    Are you saying that you are successfully using a directory name of
    <something>.war in WL 8.1xx? I continue to get the error you mentioned. I
    suspect that it is a bug in WL. You will notice that the stack trace goes
    through java.util.ZipFile. This makes me think that WL is supposing that the
    archive is jar'ed instead of exploded.
    "Eric Ma" <[email protected]> wrote in message
    news:[email protected]..
    >
    sangita:
    Thanks a lot! I deleted the .wlnotdelete directory and restarted theserver and
    now it works!
    Eric Ma
    "sangita" <[email protected]> wrote:
    did you deleted all references to the old .ear file ???
    i hope you might have deleted/undeployed the .ear file before deploying
    as in
    exploded form ?
    "Eric Ma" <[email protected]> wrote:
    WLS 8.1 SP1.
    My .ear contains 2 ejb.jar's, 1 web.war, and some library jar's. It
    is deployed
    without any problem. Now trying to deploy as exploded directory, Igot
    <Jul 30, 2003 12:15:14 PM EDT> <Error> <J2EE> <BEA-160131> <Error
    deploying
    abc_web:
    with deployment error Could not load abc_web and nested errorweblogic.management.DeploymentException:
    [HTTP:101062][ServletContext(id=3831981,name=,context-path=/)] Error
    reading Web
    application "c:\bea\user_projects\ABC\deploy\abc_app.ear\abc_web.war".
    java.util.zip.ZipException: Access is denied
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:117)
    at java.util.jar.JarFile.<init>(JarFile.java:55)
    Any suggestions? Thanks.
    Eric Ma

  • Exploded EAR deployment supported?

    Hi,
    I am currently developing with the MyEclipse IDE. Does Sun Java Studio Enterprise 8.1 support exploded deployment of EARs, and can it 'hot deploy' changes into the running Application Server?
    Thank You

    Hi.
    SJSE 8.1 doesn't support exploded deployment of EAR projects. It currently supports exploded deployment of WAR projects.
    I know that folks have extended NetBeans to support exploded EAR deployment in NB 6.0...
    You can find out more about that in this blog entry and screencast:
    http://blogs.sun.com/vkraemer/entry/new_glassfish_integration_feature_directory
    http://serverplugins.netbeans.org/screencasts/pfsc1.html
    Can you clarify what you mean by 'hot deploy'? Different folks have different definitions of this phrase... I think SJSE 8.1 does 'hot deploy' as I understand it... but my understanding may not match your vision of this feature...
    vbk

  • Redeploying of exploded EJBs within an exploded EAR

    Hi all,
    I've an exploded EAR application which has an exploded EJB. Inside my exploded EJB, I've a META-INF folder with a REDEPLOY file, if I update my EJB & touches the REDEPLOY file inside the META-INF, the EJB doesn't get redeployed. I'd to touched the REDEPLOY inside the META-INF folder of the exploded EAR, is this behavior correct?
    Or am I missing something here?
    Thanks!

    Hi,
    If you are only attempting to read the file, you should read the file as a resource. If you are planning on writing to this file, then it is not a good idea that you depend on where this file is deployed, just place it anywhere else.
    Anyhow, if you have to do it, the best way is to obtain the resource URL, and from that the file name. BTW, there is no warranty that the war will get exploded, that you may be able to freely modify the file, nor that the file name be null :-S
    {the Classloader of your choice}.getResource(<Resource name>).getFile()
    should do the trick.
    Regards,
    LG

  • NetWeaver exploded ear deployment

    Hi
    I'm depolying my application  on the  NetWeaver App Server 7.1 through  the script files (DeploymentManager etc.) - question is this:
    Is it possible to deploy an exploded ear, if so what entries should be putted into a deploy-manager-config.xml file?
    Regards
    P

    This is not possible.
    Regards,
    Benny

  • How to deploy jar file in WLS using ant script

    Hi,
    Im trying to deploy a jar file in weblogic 10.3 using ant script and am running into the below error.
    +[wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "/u01//RSJBObjects.jar" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.+
    When i try to deploy the same manually from the console, i get a warning stating that WLS thought this as a library and hence proceeding to deploy as a library. After this warning the deployment continues and completes.
    Problem is when i try to deploy using ant, it breaks at this point.
    Is there any means that we can deploy a jar to WLS using ant script. This has to be deployed as a library as other apps would be using this jar.
    Im unable to create a ear file for this single jar file.
    If there is any suggestion on can this be done, please share.
    Thanks,
    Vijay.

    Hi Sunil,
    Thanks for the reply, it worked.
    Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
    I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
    Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
    Thanks,
    Vijay.

  • Classloader problem with exploded EAR

    I'm trying to un-jar an EAR file and then un-jar the EJB jars within EAR and putting
    all the EJB and other classes from those jar files in the main application directory
    like application/com/abc/***. I have few WARs within EAR but I'm trying not to
    explode (un-jar) those. One of the WAR file has a JSP page and a depentent java
    class within it but when I try to use that JSP, I'm getting "java.lang.NoClassDefFoundError"
    exception. Any ideas?
    Is there a better/standard way to explode an EAR for development purposes?

    I had similar problem today with an EAR application using EclipseLink 1.0.1 on WebLogic Server 10.3.
    The stack trace looks a little different,
    java.lang.NoClassDefFoundError: org/eclipse/persistence/internal/jpa/deployment/DirectoryArchive$1
    at org.eclipse.persistence.internal.jpa.deployment.DirectoryArchive.init(DirectoryArchive.java:89)
    at org.eclipse.persistence.internal.jpa.deployment.DirectoryArchive.<init>(DirectoryArchive.java:73)
    at org.eclipse.persistence.internal.jpa.deployment.DirectoryArchive.<init>(DirectoryArchive.java:55)
    at org.eclipse.persistence.internal.jpa.deployment.ArchiveFactoryImpl.createArchive(ArchiveFactoryImpl.java:75)
    at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:184)
    at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(JPAInitializer.java:132)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:104)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:64)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:84)
    but the cause is the same: instances of JPA provider were cached in javax.persistence.Persistence which is loaded in WLS system classloader.
    When EAR is redeployed, the EclipseLink jar located in the EAR is reloaded but the cached instance is not updated.
    The reflection workaround did work but there is even simpler workaround: just copy eclipselink.jar (or other JPA provider JARs) into the
    /lib directory of the WLS domain -- the JARs in lib folders are loaded before EAR and would not be redeployed every time.

  • Classpath problem in exploded ear

    I'm having problems deploying an application in a new environment. We deploy Mercury.ear as an exploded ear under
    Windows in a single-server domain without any problem.
    I am tasked with setting up a WL cluster as the first step in our cluster certification/testing (under Linux/RedHat ASE 3.0).
    We are using WL 8.1. SP2. This should be a relatively trivial task, but I must be missing something obvious,
    because I've been banging my head on it the last couple of days.
    Basically, I have two WL managed servers, ClusterMember1 and ClusterMember2 and an admin server AdminServer created in a WL domain.
    All servers start normally (when no applications are deployed to the managed servers).
    I have appended our entire config.xml to the end of this post, but here is the relevant <Application> section:
    <Application Name="Mercury"
    Path="/root/bea/user_projects/domains/clusterdomain/applications/Mercury"
    StagingMode="nostage" TwoPhase="true">
    <EJBComponent Name="MercuryEJB.jar" Targets="ClusterMember1" URI="MercuryEJB.jar"/>
    <WebAppComponent Name="Apollo" Targets="ClusterMember1" URI="MercuryWeb.war"/>
    <ConnectorComponent Name="SpectraConnector.rar"
    Targets="ClusterMember1" URI="SpectraConnector.rar"/>
    </Application>
    I am only attempting to deploy to managed server ClusterMember1 at this time.
    When I attempt to start ClusterMember1:
    ./startManagedWebLogic.sh ClusterMember1 http://localhost:9001 &
    It starts up, syncs with the admin server, and then attempts to deploy the Mercury application. I get the following exception when it attempts to start the Mercury application:
    <Feb 1, 2006 10:07:55 AM CST> <Error> <HTTP> <BEA-101216> <Servlet: "context" failed to preload on startup in Web application: "Apollo".
    javax.servlet.ServletException: Error registering bean with name 'ApolloSessionManager' defined in URL [file:/root/bea/user_projects/domains/clusterdomain/applications/Mercury/mercuryresources.jar/resources/xml/springconfig/Service-DAO-config.xml]: Class that bean class [com.sg.sims.mercury.apolloweb.service.processor.ApolloSessionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
         at weblogic.servlet.internal.ServletStubImpl.createServlet()Ljavax/servlet/Servlet;(ServletStubImpl.java:985)
    {...snipped...}
    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'ApolloSessionManager' defined in URL [file:/root/bea/user_projects/domains/clusterdomain/applications/Mercury/mercuryresources.jar/resources/xml/springconfig/Service-DAO-config.xml]: Class that bean class [com.sg.sims.mercury.apolloweb.service.processor.ApolloSessionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
         at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(Lorg/w3c/dom/Element;Ljava/lang/String;)Lorg/springframework/beans/factory/config/BeanDefinition;(DefaultXmlBeanDefinitionParser.java:366)
    {...snipped...}
    Caused by: java.lang.NoClassDefFoundError: com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
         at java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;(Unknown Source)
         at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(Ljava/lang/String;Ljava/lang/String;Lorg/springframework/beans/factory/config/ConstructorArgumentValues;Lorg/springframework/beans/MutablePropertyValues;Ljava/lang/ClassLoader;)Lorg/springframework/beans/factory/support/AbstractBeanDefinition;(BeanDefinitionReaderUtils.java:50)
    {...snipped...}
    Clearly, Spring can't find the ApolloSessionManager class (or one of its dependent classes, the error message is somewhat unclear in places).
    However, the ApolloSessionManager.class file is there, under the mercurybusiness.jar directory (with package structure).
    // from ${DOMAIN_HOME}/applications/Mercury:
    ls -la mercurybusiness.jar/com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
    -rw-r--r-- 1 root root 7162 Jan 31 17:20 mercurybusiness.jar/com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager.class
    mercurybusiness.jar (in turn) is present in the MercuryEJB.jar MANIFEST.MF file:
    // ${DOMAIN_HOME}/applications/Mercury/MercuryEJB.jar/META-INF/MANIFEST.MF:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.1
    Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.)
    Class-Path: mercurycommon.jar mercuryresources.jar mercurybusiness.jar mercuryserviceflow.jar mercuryutils.jar spectraconnector.rar {...snipped...}
    The same situation appears for the classes that ApolloSessonManager depends on: MercuryLogger (a log4j wrapper) and the HTTPClient.jar classes
    (e.g. Cookie, etc), except 3rd party jars are listed in the MANIFEST.MF of MercuryEJB.jar but are not exploded.
    There is no weblogic-application.xml file to override the default classloader hierarchy, so my understanding
    is that everything in the application should share a single classloader.
    So I am at a loss to understand why classes in MercuryWeb.war can not load classes in dependent jars of MercuryEJB.jar.
    As a note, if I add /root/bea/user_projects/domains/clusterdomain/applications/Mercury/mercurybusiness.jar to the CLASSPATH variable in startManagedWebLogic.sh,
    this error disappears of course, and it barfs on the next application class it can't find (in one of the other exploded jars that MercuryEJB.jar depends on.
    Can someone help point out what I may be missing?
    Chris Goodacre
    // config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain ConfigurationVersion="8.1.5.0" Name="clusterdomain">
    <Server Cluster="SIMS_TEST_CLUSTER_1" ListenAddress=""
    ListenPort="9001" Name="AdminServer" NativeIOEnabled="true"
    ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.5.0">
    <SSL Enabled="false" HostnameVerificationIgnored="false"
    IdentityAndTrustLocations="KeyStores" Name="AdminServer"/>
    </Server>
    <WSReliableDeliveryPolicy DefaultRetryCount="10"
    DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
    <Security Name="clusterdomain"
    PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm" RealmSetup="true"/>
    <EmbeddedLDAP
    CredentialEncrypted="{3DES}dMeE/vNpCcbjzOMZGfNeShv5VFZuQ=" Name="clusterdomain"/>
    <SecurityConfiguration
    CredentialEncrypted="{3DES}jFRG5NzABP8IAJa5M/PNNRCtZYaqkc2zUTYjlysL+md+TAgZw6IfgCjzzre4e7p5gyJEt+0UkPXNleN0QtW7Ef"
    Name="clusterdomain" RealmBootStrapVersion="1"/>
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <PasswordPolicy Name="wl_default_password_policy"/>
    <JMSConnectionFactory DefaultDeliveryMode="Non-Persistent"
    JNDIName="jms/ConnectionFactory" Name="ConnectionFactory" Targets="AdminServer"/>
    <JMSFileStore Directory="rmfilestore" Name="FileStore"/>
    <JMSServer Name="WSStoreForwardInternalJMSServerAdminServer"
    Store="FileStore" Targets="AdminServer">
    <JMSQueue CreationTime="1123128740234"
    JNDIName="jms.internal.queue.WSStoreForwardQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueAdminServer"/>
    <JMSQueue CreationTime="1123128740390"
    JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueAdminServer"/>
    <JMSQueue CreationTime="1123128837453" JNDIName="jms/MenuQueue"
    Name="MenuQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128864296"
    JNDIName="jms/MenuXMLQueue" Name="MenuXMLQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128892343"
    JNDIName="jms/DataSyncQueue" Name="DataSyncQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128915421"
    JNDIName="jms/LoginRefreshQueue" Name="LoginRefreshQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128937046"
    JNDIName="jms/ProfileQueue" Name="ProfileQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128957125"
    JNDIName="jms/ReportsQueue" Name="ReportsQueue" StoreEnabled="false"/>
    </JMSServer>
    <Cluster Name="SIMS_TEST_CLUSTER_1"/>
    <Server Cluster="SIMS_TEST_CLUSTER_1" ExpectedToRun="false"
    ListenPort="9999" Name="ClusterMember1" ServerVersion="8.1.5.0">
    <ServerDebug Name="ClusterMember1"/>
    <SSL IdentityAndTrustLocations="KeyStores" Name="ClusterMember1"/>
    <KernelDebug Name="ClusterMember1"/>
    <Log Name="ClusterMember1"/>
    <ServerStart Name="ClusterMember1"
    PasswordEncrypted="{3DES}TC7nfOvKF0xwJB/f+tyYwQ==" Username="toolbox"/>
    <WebServer Name="ClusterMember1"/>
    <COM Name="ClusterMember1"/>
    <IIOP Name="ClusterMember1"/>
    <JTAMigratableTarget Name="ClusterMember1" UserPreferredServer="ClusterMember1"/>
    <JTARecoveryService Name="ClusterMember1"/>
    </Server>
    <MigratableTarget Cluster="SIMS_TEST_CLUSTER_1"
    Name="ClusterMember1 (migratable)"
    Notes="This is a system generated default migratable target for a server. Do not delete manually." UserPreferredServer="ClusterMember1"/>
    <Server Cluster="SIMS_TEST_CLUSTER_1" ExpectedToRun="false"
    ListenPort="9998" Name="ClusterMember2" ServerVersion="8.1.5.0">
    <ServerDebug Name="ClusterMember2"/>
    <SSL IdentityAndTrustLocations="KeyStores" Name="ClusterMember2"/>
    <KernelDebug Name="ClusterMember2"/>
    <Log Name="ClusterMember2"/>
    <ServerStart Name="ClusterMember2"
    PasswordEncrypted="{3DES}TC7nfOvKF0xwJB/f+tyYwQ==" Username="toolbox"/>
    <WebServer Name="ClusterMember2"/>
    <COM Name="ClusterMember2"/>
    <IIOP Name="ClusterMember2"/>
    <JTAMigratableTarget Name="ClusterMember2" UserPreferredServer="ClusterMember2"/>
    <JTARecoveryService Name="ClusterMember2"/>
    </Server>
    <MigratableTarget Cluster="SIMS_TEST_CLUSTER_1"
    Name="ClusterMember2 (migratable)"
    Notes="This is a system generated default migratable target for a server. Do not delete manually." UserPreferredServer="ClusterMember2"/>
    <JDBCConnectionPool DriverName="com.sybase.jdbc2.jdbc.SybDriver"
    Name="MercuryJDBCConnPool"
    PasswordEncrypted="{3DES}Enwr7V6DdUk="
    Properties="user=dbuser;url=jdbc:sybase:Tds:10.15.3.66:4100/ENT_60_DEV;networkProtocol=Tds;portNumber=4100;userName=dbuser;databaseName=ENT_60_DEV;serverName=10.15.3.66"
    Targets="SIMS_TEST_CLUSTER_1" TestTableName="SQL SELECT 1" URL="jdbc:sybase:Tds:10.15.3.66:4100/ENT_60_DEV"/>
    <JDBCDataSource JNDIName="jdbc/MercuryDS" Name="MercuryDS"
    PoolName="MercuryJDBCConnPool" Targets="SIMS_TEST_CLUSTER_1"/>
    <MigratableTarget Cluster="SIMS_TEST_CLUSTER_1"
    Name="AdminServer (migratable)"
    Notes="This is a system generated default migratable target for a server. Do not delete manually." UserPreferredServer="AdminServer"/>
    <Application Name="Mercury"
    Path="/root/bea/user_projects/domains/clusterdomain/applications/Mercury"
    StagingMode="nostage" TwoPhase="true">
    <EJBComponent Name="MercuryEJB.jar" Targets="ClusterMember1" URI="MercuryEJB.jar"/>
    <WebAppComponent Name="Apollo" Targets="ClusterMember1" URI="MercuryWeb.war"/>
    <ConnectorComponent Name="SpectraConnector.rar"
    Targets="ClusterMember1" URI="SpectraConnector.rar"/>
    </Application>
    </Domain>
    ////////////////////////////////////////////////////////////

    Sorry, I don't have the response to your question.
    But I'd like to know how youmake your servlet and your applet communicate.
    I'm building a web site using both applets and servlet. And I nned to make them communicate. I'm trying to use RMI but I get many problems.
    Can I know Which solution you have chosen for applet-servlet communication ?
    Thank's.

  • Exploded EAR and REDPLOY file

    WLS 6.1 ( SP2) , NT 5.0
    I have an exploded EAR outside the weblogic home as mentioned in the
    tutorial. I can deploy
    the app fine, when I start the server. However when I change a servlet or
    EJB bean and touch
    the REDPLOY file within the META-INF folder, the application does not seem
    to pick up
    the changes. I am running the server as an administrative server.
    I have to restart the server for the changes to take effect. Please advise.

    All the archive files used in Java apps are basically ZIP files with the extension changed.
    JARs are used to package classes.
    WARs are used to package web applications ( the complete directory structure are mandated by J2EE specs ) and may contain JARs
    EARs are used to package a J2EE application ( think web app + EJBs in general ) and may consist of many web modules packaged as WARs.
    Take a look at this too: http://searchwebservices.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_gci837938,00.html
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Exploded EAR in Weblogic 7.0.2

    I'm trying to deploy an exploded EAR file but I must be missing something since WLS doesn't deploy my application.
    I've read the documentation from http://e-docs.bea.com/wls/docs70/programming/deploying.html.
    Beneath the structure in my 'applications' directory as describes in http://e-docs.bea.com/wls/docs70/programming/deploying.html#1125125. I've put application.xml in the MyApp directory - is it the right place and is the file correct?
    MyApp\
    \MyApp.war
    WEB-INF\
    web.xml
    classes\
    dk\
    ...(JSP etc.)
    \MyApp-ejb.jar
    META-INF\
    application.xml
    ejb-jar.xml
    REDEPLOY
    weblogic-cmp-rdbms-jar.xml
    weblogic-ejb-jar.xml
    dk\
    ...(class files)
    application.xml looks like:
    <application>
    <display-name>MyApp</display-name>
    <module>
    <ejb>MyApp-ejb.jar</ejb>
    </module>
    <module>
         <web>
         <web-uri>MyApp.war</web-uri>
         <context-root>myapp</context-root>
         </web>
    </module>
    </application>
    Thanks
    Thomas Aagaard Jensen
    UNI-C, Uddannelse - IT-undervisningsmidler
    WWW : http://www.uni-c.dk/
    Tlf. : +45 8937 6673
    E-mail : [email protected]

    Hie,
              We are facing the same problem; i.e. we are getting the same error message when we are trying to run our struts application on Weblogic 7.0.5 using JDK 1.3.1. This problem occured particularly when we tried to do a load testing using approx 20 concurrent users (a lesser load was supported though). Can you please let us know how this problem was sorted out on your end?
              thanks,
              Debanjan

Maybe you are looking for

  • Having problems creating new playlists...

    When I get on iTunes i get a message saying The songs on the ipod cannot be updated because all of the playlists selected for updating no longer exists...but i have tried to create new ones and i still recieve the same message   Other OS  

  • Version 3.6.14 has a bug & does not support Java to play Pogo games - How do I install a earlier version?

    Pogo games plays on Java - the last version of Firefox 3.16.14 has a bug that does not support Java - I have been instructed by Pogo to install an earlier version of Firefox. How do I do that?

  • CS6 - add non-editable region inside editable template region?

    I have the following in a template:     <div class="main-content"> <!-- TemplateBeginEditable name="main-content" -->       <div class="content p7ehc-1"> <!-- from projectseven.com; don't change -->         <h1 class="page-topper">Enter topic here</h

  • ITunes Store Error -42003

    I don't know if this was posted before, and if it was i do apologize... HELP!! I have just upgraded to iTunes 10 on a Dell XPS 400 using Windows 7 Ultimate. The problem I am having is that some of my iTunes purchased music requires an authorization t

  • Mc shows Xlib: connection to ":0.0" refused by ser

    After upgrading mc to mc 4.6.1-3 I see these msg after runing mc or mcedit as root: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified I tried to downgrade to mc from current but pacman says: error: archive mc-4.6.1-2.pkg.tar.gz