Compilation fails - Weblogic

This is a discussion on Compilation fails - Weblogic ; Hello, I am having trouble compiling my weblogic application. I have set up a split directory and use ant + build.xml file generated by buildXMLGen. Furthermore my application contains two stateless session EJB's (A and B, where A uses B). ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Compilation fails

  1. Compilation fails


    Hello,

    I am having trouble compiling my weblogic application. I have set up a split directory
    and use ant + build.xml file generated by buildXMLGen.

    Furthermore my application contains two stateless session EJB's (A and B, where
    A uses B).

    This is where i run into problems. When I issue a "ant compile" command, I get
    an error that EJB A will not compile, because it refers to EJB B and B is not
    (yet) compiled.

    Is there a way to make sure EJB B is compiled first?


    Thanks in advance for any help!!

    Arjan Huijzer
    Software Developer
    Capgemini

  2. Re: Compilation fails


    Hi,

    Can you please post the exact error you are getting? The exception and stack
    trace goes a long way in helping us understand the problem. Thanks!

    - Matt

    "Arjan Huijzer" wrote:
    >
    >Hello,
    >
    >I am having trouble compiling my weblogic application. I have set up
    >a split directory
    >and use ant + build.xml file generated by buildXMLGen.
    >
    >Furthermore my application contains two stateless session EJB's (A and
    >B, where
    >A uses B).
    >
    >This is where i run into problems. When I issue a "ant compile" command,
    >I get
    >an error that EJB A will not compile, because it refers to EJB B and
    >B is not
    >(yet) compiled.
    >
    >Is there a way to make sure EJB B is compiled first?
    >
    >
    >Thanks in advance for any help!!
    >
    >Arjan Huijzer
    >Software Developer
    >Capgemini



  3. Re: Compilation fails

    wlcompile supports an include/exclude syntax for modules.

    So you can do something like this:




    -- Rob


    Arjan Huijzer wrote:
    > Hello,
    >
    > I am having trouble compiling my weblogic application. I have set up a split directory
    > and use ant + build.xml file generated by buildXMLGen.
    >
    > Furthermore my application contains two stateless session EJB's (A and B, where
    > A uses B).
    >
    > This is where i run into problems. When I issue a "ant compile" command, I get
    > an error that EJB A will not compile, because it refers to EJB B and B is not
    > (yet) compiled.
    >
    > Is there a way to make sure EJB B is compiled first?
    >
    >
    > Thanks in advance for any help!!
    >
    > Arjan Huijzer
    > Software Developer
    > Capgemini



  4. Re: Compilation fails


    Hello,

    This is the output on screen I get when I issue an "ant compile" command.

    As you can see, the source for CommandInputEJB will not compile because it needs
    another EJB, namely InputHandlerEJB, that is not yet compiled.

    Thanks so far,

    Arjan

    ================================================== ====

    C:\harm\vjp>ant compile
    Buildfile: build.xml

    compile:
    [javac] Compiling 3 source files to C:\harm\vjp\build\harmEar\APP-INF\classes
    [java] Loading source file C:\harm\vjp\build\harmEar\CommandInputEJB\nl\prora il\vjp\jms\ejb\CommandInputEJB.java...
    [java] Constructing Javadoc information...
    [java] EJBGen 2.16

    [java] [Info:] Creating C:\harm\vjp\build\harmEar\CommandInputEJB\\ejb-jar.xml
    [java] [Info:] Creating C:\harm\vjp\build\harmEar\CommandInputEJB\\weblogi c-ejb-jar.xml
    [java] [Info:] Creating C:\harm\vjp\build\harmEar\CommandInputEJB\ejbgen-build.xml2
    warnings
    [move] Moving 2 files to C:\harm\vjp\build\harmEar\CommandInputEJB\META-INF
    [javac] Compiling 1 source file to C:\harm\vjp\build\harmEar\CommandInputEJB
    [wlcompile] C:\harm\vjp\build\harmEar\CommandInputEJB\nl\prora il\vjp\jms\ejb\CommandInputEJB.java:11:
    package nl.prorail.vjp.controller.ejb does not e
    xist
    [wlcompile] import nl.prorail.vjp.controller.ejb.InputHandlerLocalHom e;
    [wlcompile] ^
    [wlcompile] C:\harm\vjp\build\harmEar\CommandInputEJB\nl\prora il\vjp\jms\ejb\CommandInputEJB.java:12:
    package nl.prorail.vjp.controller.ejb does not e
    xist
    [wlcompile] import nl.prorail.vjp.controller.ejb.InputHandlerLocal;
    [wlcompile] ^
    [wlcompile] C:\harm\vjp\build\harmEar\CommandInputEJB\nl\prora il\vjp\jms\ejb\CommandInputEJB.java:46:
    cannot resolve symbol
    [wlcompile] symbol : class InputHandlerLocalHome
    [wlcompile] location: class nl.prorail.vjp.jms.ejb.CommandInputEJB
    [wlcompile] InputHandlerLocalHome home = (InputHandlerLocalHome)
    ctx.lookup("java:comp/env/ejb/InputHandlerLocalHome");
    [wlcompile] ^
    [wlcompile] C:\harm\vjp\build\harmEar\CommandInputEJB\nl\prora il\vjp\jms\ejb\CommandInputEJB.java:46:
    cannot resolve symbol
    [wlcompile] symbol : class InputHandlerLocalHome
    [wlcompile] location: class nl.prorail.vjp.jms.ejb.CommandInputEJB
    [wlcompile] InputHandlerLocalHome home = (InputHandlerLocalHome)
    ctx.lookup("java:comp/env/ejb/InputHandlerLocalHome");
    [wlcompile] ^
    [wlcompile] C:\harm\vjp\build\harmEar\CommandInputEJB\nl\prora il\vjp\jms\ejb\CommandInputEJB.java:47:
    cannot resolve symbol
    [wlcompile] symbol : class InputHandlerLocal
    [wlcompile] location: class nl.prorail.vjp.jms.ejb.CommandInputEJB
    [wlcompile] InputHandlerLocal h = home.create();
    [wlcompile] ^
    [wlcompile] 5 errors

    BUILD FAILED
    file:C:/harm/vjp/build.xml:35: Compile failed; see the compiler error output for
    details.

    Total time: 9 seconds


    "Matthew Shinn" wrote:
    >
    >Hi,
    >
    >Can you please post the exact error you are getting? The exception and
    >stack
    >trace goes a long way in helping us understand the problem. Thanks!
    >
    >- Matt
    >
    >"Arjan Huijzer" wrote:
    >>
    >>Hello,
    >>
    >>I am having trouble compiling my weblogic application. I have set up
    >>a split directory
    >>and use ant + build.xml file generated by buildXMLGen.
    >>
    >>Furthermore my application contains two stateless session EJB's (A and
    >>B, where
    >>A uses B).
    >>
    >>This is where i run into problems. When I issue a "ant compile" command,
    >>I get
    >>an error that EJB A will not compile, because it refers to EJB B and
    >>B is not
    >>(yet) compiled.
    >>
    >>Is there a way to make sure EJB B is compiled first?
    >>
    >>
    >>Thanks in advance for any help!!
    >>
    >>Arjan Huijzer
    >>Software Developer
    >>Capgemini

    >



+ Reply to Thread