Using EJBGen

Guys,
I have a doubt regarding EJBGen and Workshop/WebLogic Server.
I would like to generate automatically some EJBs.
I have a DataSource working that points to a DataBase SQL Server. There are some Tables there that I would like to produce some EJBs.
How can I do that?
Is it possible to do by Eclipse Workshop? Or is it possible to do with a script? Maybe and ant script using ejbgen?
Thanks,

Hi,
Internally Workshop provides you to use EjbGen option for EJB 2.1 so you can use those EJB option but not for EJB 3.0
instead of using workshop use ant script which is more flexible and more efficient.
Regards,
Kal.

Similar Messages

  • Adding security info in DD using EJBGen

    Hi,
    I need to insert security information like security-role, method permission, etc.
    in ejb-jar.xml and weblogic-ejb-jar.xml for the EJBs created using EJBGen. I tried
    searching on bea newsgroups and googling but couldn't find anything on that. Does
    EJBGen supports this or any new release of EJBGen is expected to do this ?
    As a work around, I keep the copy of the DDs which have this info and after EJBGen
    is finished, these DDs are copied over and the rest of the build process continues.
    This is very restrictive approach as any change in EJB apart from bug fixing requires
    some manual effort on these DDs.
    Is there any other solution possible?
    thx
    -deepak

    Oops.. I lied Deepak. I thought there wasn't
    a way to do this but I was wrong. I should've
    double checked before I replied
    @ejbgen:method-permission-pattern
    Where:Class
    Applicable on:All
    have a look at the docs for this tag. This will allow
    you to do what you're looking to do.
    -Michael
    Michael Kovacs wrote:
    deepak,
    There's no way to do wildcard method permission mapping with ejbgen
    currently. You have to explicitly map each method to a role.
    Michael Kovacs
    Senior Software Engineer
    BEA Systems
    "deepak" <[email protected]> wrote in message
    news:3f93b041$[email protected]..
    Falk <[email protected]> wrote:
    EJBGen supports this.
    Look into the tag reference.
    FalkI have already searched that but couldn't find anything useful.
    To be more precise I want to insert something like following inweblogic-ejb-jar.xml
    <security-role-assignment>
    <role-name>testRole</role-name>
    <principal-name>testUser</principal-name>
    </security-role-assignment>
    and following things in ejb-jar.xml
    <security-role>
    <role-name>testRole</role-name>
    </security-role>
    <method-permission>
    <role-name>testRole</role-name>
    <method>
    <ejb-name>myEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    thx
    -deepak

  • Dispatch-policy using ejbgen

    Hi,
              I need to specify <dispatch-policy> on MDB for highest throughput. But ejbgen is giving error while setting this property.
              I have specified ejbgen attributes for message driven beans as,
              /** @ejbgen:message-driven
              * ejb-name = com.netapp.asup.mdb.ParserMDBean
              * destination-type = javax.jms.Queue
              * max-beans-in-free-pool = ${max-beans-in-free-pool-Parser}
              * initial-beans-in-free-pool = ${initial-beans-in-free-pool-Parser}
              * dispatch-policy = "netapp.patnaik.asup.Parser"
              * destination-jndi-name = ${destination-jndi-name-Parser}
              * @ejbgen:foreign-jms-provider
              * connection-factory-jndi-name = ${connection-factory-jndi-name}
              * initial-context-factory = ${initial-context-factory}
              * provider-url = ${provider-url}
              It is giving error as,
              mdb/ParserMDBean.java:42: Error: Tag 'ejbgen:message-driven', unknown attribute: 'dispatch-policy'.
              My environment is, Weblogic 8.1 SP4 and ejbgen version is 2.16.
              I am getting this error even if I have changed ejbgen to 2.19.
              Please suggect me.
              Thanks,
              Murthy P

    Thanks -
    FYI - Known issue (CR190476). The patch support sent seems to work (ejbgen doesn't choke). I just don't see the MDB using the queue I specify - a thread dump shows onMessage executing in the default thread pool...
    Cameron

  • How to specify ejbgen options using wlcompile ?

    We are using the split development model is WL8.1 are are using ant, specifically
    ant target wlcompile for development. How does one specify for example a valueObjectSuffix
    option for ejbgen, when auto generating value class(es) for CMP Entity Beans ?
    Using ejbgen, the ant snippet below looks somewhat like:
         <doclet name="weblogic.tools.ejbgen.EJBGen">
              <param name="-jndiPrefix" value="......"/>
              <param name="-valueObjectSuffix" value="MyValue"/>
              <param name="-propertyFile" value="..."/>
         </doclet>

    Unfortunately there's not a great integration between wlcompile and
    ejbgen. There is already an enhancement request CR107150 for this one.
    wlcompile only calls EJBGen on files which whose extension is .ejb. If
    yours are .java, then you can just call ejbgen yourself after wlcompile
    completes.
    There's other approaches, (like wrapping the real EJBGen with your own
    version that sets specific options) that would also work but require
    more leg work from you.
    -- Rob
    DP wrote:
    We are using the split development model is WL8.1 are are using ant, specifically
    ant target wlcompile for development. How does one specify for example a valueObjectSuffix
    option for ejbgen, when auto generating value class(es) for CMP Entity Beans ?
    Using ejbgen, the ant snippet below looks somewhat like:
         <doclet name="weblogic.tools.ejbgen.EJBGen">
              <param name="-jndiPrefix" value="......"/>
              <param name="-valueObjectSuffix" value="MyValue"/>
              <param name="-propertyFile" value="..."/>
         </doclet>

  • EJBGen start method error

    Hi,
    I am getting this error while trying to create a sample bean using EJBGen.
    1. I have added the ejbgen.jar to the classpath.
    2. I have set the classpath to the current dir where the AccountBean.java is present.
    I have used the following code in AccountBean.java
    * @ejbgen:entity
    * ejb-name = AccountEJB-OneToMany
    * data-source-name = examples-dataSource-demoPool
    * table-name = Accounts
    * prim-key-class = java.lang.String
    * @ejbgen:jndi-name
    * local = one2many.AccountHome
    * @ejbgen:finder
    * signature = "Account findAccount(double balanceEqual)"
    * ejb-ql = "WHERE balance = ?1"
    * @ejbgen:finder
    * signature = "Collection findBigAccounts(double balanceGreaterThan)"
    * ejb-ql = "WHERE balance > ?1"
    * @ejbgen:relation
    * name = Customer-Account
    * target-ejb = CustomerEJB-OneToMany
    * multiplicity = many
    * cmr-field = customer
    import javax.ejb.*;
    import com.sun.javadoc.*;
    abstract public class AccountBean implements EntityBean {
         * @ejbgen:cmp-field column = acct_id
         * @ejbgen:primkey-field
         * @ejbgen:remote-method transaction-attribute = Required
         abstract public String getAccountId();
         abstract public void setAccountId(String val);
    I am getting the following error.
    C:\>javadoc -docletpath ejbgen.jar -doclet weblogic.tools.ejbgen.EJBGen AccountBean.java
    Loading source file AccountBean.java...
    Constructing Javadoc information...
    javadoc: Doclet class weblogic.tools.ejbgen.EJBGen does not contain a start method
    1 error
    I have checked the EJBGen class file and the start method is present in it. Please suggest if I am missing anything.
    thanks,
    Srikanth.

    even i got the same error, where you able to fix it ?
    i am using weblogic 9.2

  • Problem with ejb-jar.xml created with ejbgen.

    Hi! ,
    I m using ejbgen for creating interfaces for my bean nut i m facing a problem which is suppose i have beans in different folders and i m using ejbgen for each folder containing beans.Now the problem is i m using ejbgen under one target in build.xml so wht happens is when ejb-jar.xml is generated it contains entry for the last folder beans and overrides other beans entry in different folder . i need some way so tht ejb-jar.xml keeps appending for every ejbgen is called.
    Thanks in advance....... :-)
    warm regards,
    Sourabh Singh

    My temporary workaround is copy all beans from different directory trees to one temporary directory, and create one FileSet in Ant.
    z.

  • EntityPropertyManager remote interface & ejbGen tags

    dear all,
    the remote interface of an EntityPropertyManager must extend EntityPropertyManager.
    when creating an EJB using ejbGen tags how do you specify what class the remote
    interface must extend?
    thanks
    tony

    Hi
    Create a Property file and use
    BeanName.remote.baseClass=fullyqualifiednameofclassyouwanttoextend
    here beanName corresponds to ejb-name in your java file
    while invoking ejbgen
    use the -propertyFile attribute to point to your property file
    for more information refer to
    http://www.beust.com/cedric/ejbgen/
    regards
    deepak
    "Tony" <[email protected]> wrote:
    >
    >
    dear all,
    the remote interface of an EntityPropertyManager must extend EntityPropertyManager.
    when creating an EJB using ejbGen tags how do you specify what class
    the remote
    interface must extend?
    thanks
    tony

  • Ejbgen: bug in many-to-many cmp

    I am trying to use ejbgen to generate the code for many-to-many cmr relationships.
    I have come across a bug where the ejb-jar.xml generates a non compliant ejb2.0 xml tag. The actual tag should be
    <relationship-role-source> however, it generates <role-source>.

    Saurabh Gupta <[email protected]> wrote in
    news:[email protected]:
    I am trying to use ejbgen to generate the code for many-to-many cmr
    relationships.
    I have come across a bug where the ejb-jar.xml generates a non
    compliant ejb2.0 xml tag. The actual tag should be
    <relationship-role-source> however, it generates <role-source>. Can you post (or email me) your two sources?
    Thanks.
    Cedric
    http://beust.com/weblog

  • EJBGen bug

    I'm having the following problem with WebLogic 9.1 EJBGen- whenever using it in an EJB that has static imports it throws a NullPointerException. I'm not sure if someone else experienced this problem, but it seems to be a bug.

    Saurabh Gupta <[email protected]> wrote in
    news:[email protected]:
    I am trying to use ejbgen to generate the code for many-to-many cmr
    relationships.
    I have come across a bug where the ejb-jar.xml generates a non
    compliant ejb2.0 xml tag. The actual tag should be
    <relationship-role-source> however, it generates <role-source>. Can you post (or email me) your two sources?
    Thanks.
    Cedric
    http://beust.com/weblog

  • Ejbgen:ejb-ref

    I am using Weblogic 8.1 server and Workshop.
    I have a session EJB that I would like to make talk to a remote session EJB, which
    is deployed on a different server. I know how talk to a local EJB using ejbgen:ejb-local-ref,
    but I want to understand what ejb-ref would do for me in the case of talking to
    a remote EJB.
    What values would I give for the "name", "id" and "link" parameters?
    Where would I specify the URL of the remote weblogic server?
    How would I write the lookup code in the ejbCreate method? The example given
    by the weblogic 81 tutorial for local EJB's is:
    private MyEJBHome mhEJBHome;
    public void ejbCreate() {
    try {
    javax.naming.Context ic = new InitialContext();
    myEBJHome = (MyEJBHome)ic.lookup("my.ejb's.jndi.name");
    catch (NamingException ne) {
    throw new EJBException(ne);
    Would I be able to lookup the remote EJB with the same code if I use the ejb-ref,
    or would I have to create an InitialContext for the remote URL and then do a lookup?
    Thanks,
    Tania

              Hi!
              Did you deploy your rar file? Which jndi name has the connector?
              If you use a reference try "java:comp/env/" as prefix. Would be helpful if you
              cut the passage about the reference from your ejb-jar.xml and weblogic-ejb-jar.xml
              file and post it.
              CU
              Chris
              

  • How to change the ejbgen templates in workshop

    I want the EJBHome interfaces generated by ejbgen via workshop to extend a proprietary
    interface as well as the EJBHome interface like so
    public interface MyHome extends EJBLocalHome, implements MyProjectHome
    The ejbgen site says that when using ejbgen directly (not inside workshop) I can
    extract the templates like so..
    c:> ejbgen -extractTemplates c:\my-directory
    then edir them and then change the template dir when calling ejbgen to generate
    the files...
    c:> ejbgen -templatedir c:\my-directory -d gen myclass.java
    I want to know how to work with proprietary templates when working with ejbgen
    and workshop.

    The rate at which ejbgen is upgrade is far often than unpredictable SP
    releases. Is there a way to change the EJBGen that workshop uses?
    "Raj Alagumalai" <[email protected]> wrote in message
    news:3f8d6366$[email protected]..
    Aaron,
    Unfortunately this feature is not supported by the Ejbgen version shipped
    with Workshop GA but will be available in SP2. This can also be verifiedby
    running java weblogic.tools.ejbgen.EJBGen on GA installation.
    The -templateDir option will not be listed. whereas this option is listedin
    the standalone version on EJBGen.
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "Aaron" <[email protected]> wrote in message
    news:3f82071a$[email protected]..
    I want the EJBHome interfaces generated by ejbgen via workshop to extend
    a
    proprietary
    interface as well as the EJBHome interface like so
    public interface MyHome extends EJBLocalHome, implements MyProjectHome
    The ejbgen site says that when using ejbgen directly (not inside
    workshop)
    I can
    extract the templates like so..
    c:> ejbgen -extractTemplates c:\my-directory
    then edir them and then change the template dir when calling ejbgen togenerate
    the files...
    c:> ejbgen -templatedir c:\my-directory -d gen myclass.java
    I want to know how to work with proprietary templates when working withejbgen
    and workshop.

  • Invoking ejbgen

    Hi,
    I wanna use EJBGen to code my session beans. I have already coded the .java file with several @ejbgen tags. But when I am looking up for the home of this bean, its giving me an error saying it can't find the home.class.
    Please help me in resovling the issue. I have also tried invoking my <bean>.java file as follows,
    java.weblogic.tools.ejbgen.EJBGen <bean-name>.java
    but its giving me the error "Exception in main thread, java.lang.NoClassDefFoundError:weblogic.tools.ejbgen.EJBGen "
    What I am supposed to do to fix this.
    Thanks

    Hi,
    Did you set the weblogic environment before invoking the
    ejbgen ?
    Regards
    Anilkumar kari

  • Med Rec medrec tutorial 10 deployments-- EJB Modules EJB is not shown

    This note adds missing steps in the Med Rec (medrec) Tutorial 10
    The tutorial shows how to use EJBGEN to generate EJB classes (incl java source) from .ejb files.
    Unfortunately it is missing a few key details. These are described below.
    Many thanks to Chris Wall for supplying the answers and hints.
    Q: The tutorial includes deploying the manually generated physSessionEjb’s. After doing the step that generates the PhysSession*.java files, onefinds that when trying to deploy that there are no class files – nothing has been built. Are the class files supposed to be generated by the ejbgen step?
    [Chris] No, EJBGen just generates the local and remote interfaces and descriptors only. An additional step should be added to explain how to build the newly generated EJBs. I believe you are correct in calling “src/physicianEar$ ant –f build.xml build”.
    Q: Manually built the class files using ‘ant –f build.xml build’ in the physicianEar src dir – but that failed in the acc.split.dir step with class not found /org/apache/struts/action/ActionForm.
    Obviously did not get the struts jars on the classpath. But as much of the build as completed did include creating the class files.
    [Chris] Yes, it looks like struts.jar is not in the classpath. Is this the “build.split.dir” or “appc.split.dir” target? In either case, wlcompile and wlappc should recognized all libs in "${app-inf.dest.lib}" and append them to the compile/appc classpath automatically. The libs should have been copied during the “prepare” target. Can you make sure that struts.jar exists in c:/medrec_tutorial/build/physicianEar/APP-INF/lib? If not, re-run the target with verbose: “src/physicianEar$ ant -verbose -f build.xml build”, and make sure that the libs are copied in the “prepare” target.
    Q: When doing the deploy step, we get no errors but on the console window and do not see the tutorial_deployment item under DeploymentsàEJB Modules. There is something under Deployments-->Applications --> tutorial_deployment. It appears the deploy failed since there’s nothing under Deployments --> EJB Modules, and what is there is ‘left over’ from deploying the jar (the ear?) that contains the stuff deployed by the deploy step at the start of tutorial 10.
    [Chris] Once the build is successful, you must deploy the EAR. This is done by executing : “src/physicianEar$ ant -f build.xml redeploy.physician.ear”. Again, a step that was left out. Yes, you should be looking at Deployments--> Applications--> tutorial_deployment. So, to summarize: generated the local and remote and descriptors for the EJB, compile the EJB and package the EAR, deploy the EAR, and then view the deployment in the console.

    This note adds missing steps in the Med Rec (medrec) Tutorial 10
    The tutorial shows how to use EJBGEN to generate EJB classes (incl java source) from .ejb files.
    Unfortunately it is missing a few key details. These are described below.
    Many thanks to Chris Wall for supplying the answers and hints.
    Q: The tutorial includes deploying the manually generated physSessionEjb’s. After doing the step that generates the PhysSession*.java files, onefinds that when trying to deploy that there are no class files – nothing has been built. Are the class files supposed to be generated by the ejbgen step?
    [Chris] No, EJBGen just generates the local and remote interfaces and descriptors only. An additional step should be added to explain how to build the newly generated EJBs. I believe you are correct in calling “src/physicianEar$ ant –f build.xml build”.
    Q: Manually built the class files using ‘ant –f build.xml build’ in the physicianEar src dir – but that failed in the acc.split.dir step with class not found /org/apache/struts/action/ActionForm.
    Obviously did not get the struts jars on the classpath. But as much of the build as completed did include creating the class files.
    [Chris] Yes, it looks like struts.jar is not in the classpath. Is this the “build.split.dir” or “appc.split.dir” target? In either case, wlcompile and wlappc should recognized all libs in "${app-inf.dest.lib}" and append them to the compile/appc classpath automatically. The libs should have been copied during the “prepare” target. Can you make sure that struts.jar exists in c:/medrec_tutorial/build/physicianEar/APP-INF/lib? If not, re-run the target with verbose: “src/physicianEar$ ant -verbose -f build.xml build”, and make sure that the libs are copied in the “prepare” target.
    Q: When doing the deploy step, we get no errors but on the console window and do not see the tutorial_deployment item under DeploymentsàEJB Modules. There is something under Deployments-->Applications --> tutorial_deployment. It appears the deploy failed since there’s nothing under Deployments --> EJB Modules, and what is there is ‘left over’ from deploying the jar (the ear?) that contains the stuff deployed by the deploy step at the start of tutorial 10.
    [Chris] Once the build is successful, you must deploy the EAR. This is done by executing : “src/physicianEar$ ant -f build.xml redeploy.physician.ear”. Again, a step that was left out. Yes, you should be looking at Deployments--> Applications--> tutorial_deployment. So, to summarize: generated the local and remote and descriptors for the EJB, compile the EJB and package the EAR, deploy the EAR, and then view the deployment in the console.

  • EJB 3.0 Bean name

    Is there a way that we can override the EJB 3.0 Bean name in the deployment descriptor? I know we can provide the name in the Annotation via @MessageDriven(name="bar").
    For example, if I have the following Bean,
    package com.example;
    @MessageDriven
    public class Foo implements MessageListener {
    When deployed, it always deploys as Foo, even if I have the following in my ejb-jar.xml and weblogic-ejb-jar.xml:
    <mesage-driven>
    <ejb-name>Bar</ejb-name>
    <ejb-class>com.example.Foo</ejb-class>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durablility>Durable</subscription-durablity>
    </message-driven>
    <mesage-driven>
    <ejb-name>Baz<r</ejb-name>
    <ejb-class>com.example.Foo</ejb-class>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven>
    There seems no way I can re-use the Same bean class with EJB 3.0 if I needed to. If there is anyway, the ejb-name can be used please let me know.
    Thanks

    Hi,
    For a JEE5 EJB module, rather than using EJBGen, you can use WLS specific annotations for configuring common settings. If you follow the link below, you can see a list of supported EJB annotations. Disregard the fact that the documentation section title is WebLogic Kodo Annotations. That is incorrect and I've filed a bug for it.
    http://edocs.bea.com/wls/docs103/ejb30/annotations.html#wp1438036.
    Unfortunately, we don't yet support setting all weblogic-ejb-jar.xml configuration values via annoations so in some cases a weblogic-ejb-jar.xml is still required.
    You can hand edit your weblogic-ejb-jar.xml and the example you posted below should work fine.
    - Matt

  • 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)
    >

Maybe you are looking for

  • [G575] CD/DVD drive disappeared - no longer recognized in Windows

    I have a Lenovo G575 that I have had for a couple of years now. Within the past week the CD/DVD drive has disappeared. If I go to device manager it is not listed. I went through the regedit and tried to delete all the upper/lower filters in the regis

  • Install demo error

    hi i am using vista and thought i would try premiere cs4 demo. i have encore premiere and photoshop cs3 already. i tried to install it and keep getting this one or more required components of adobe premiere pro cs4 failed to install correctly Adobe p

  • Can I connect my old G3 beige to my macbook?

    I would like to use my old G3 to back up my macbook. any suggestions?

  • Pan & zoom slide show in pre11

    I usually include 5 to 15 slides in a typical video project for my grandkids.  I am new to pre11.  I did not do any tutorials on slide shows (are there some good ones?)  What I have done is: 1.  move the stills into the video track 2.  select the fir

  • [SOLVED]Suddenly no sound, lenovo g455 alsa

    hi everyone My problem is: this morning I turned my laptop on  (Lenovo G455) and when I tried to volume up the sound, there was not sound!, I don't know why, alsamixer works fine, at least in the terminal, and when i try to play music in clementine,