Weblogic8.1sp2 and ant compiling problems - Weblogic

This is a discussion on Weblogic8.1sp2 and ant compiling problems - Weblogic ; Here is my ant xml Compile"> classpath="${java.class.path};${classes}" source="${classes}/${PonDir}/${PonEntity.jar}" output="${ejbDir}\${PonEntity.jar}" verbose="true" nowarn="true" /> This the error I get error in finding weblogic.Home at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompil er.java:164) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:415) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:387) at weblogic.appc.compileEJB(appc.java:802) at weblogic.appc.compileEJB(appc.java:776) at weblogic.appc.compileInput(appc.java:463) at weblogic.appc.runBody(appc.java:184) at weblogic.utils.compiler.Tool.run(Tool.java:146) ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Weblogic8.1sp2 and ant compiling problems

  1. Weblogic8.1sp2 and ant compiling problems

    Here is my ant xml




    classpath="${java.class.path};${classes}"
    source="${classes}/${PonDir}/${PonEntity.jar}"
    output="${ejbDir}\${PonEntity.jar}"
    verbose="true"
    nowarn="true"
    />


    This the error I get

    error in finding weblogic.Home

    at
    weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompil er.java:164)
    at
    weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:415)
    at
    weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:387)
    at weblogic.appc.compileEJB(appc.java:802)
    at weblogic.appc.compileEJB(appc.java:776)
    at weblogic.appc.compileInput(appc.java:463)
    at weblogic.appc.runBody(appc.java:184)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:1028)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain (CompilerTask.java:
    278)
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java: 179)
    at org.apache.tools.ant.Task.perform(Task.java:317)
    at org.apache.tools.ant.Target.execute(Target.java:30 9)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)

    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :371)
    at org.apache.tools.ant.Task.perform(Task.java:317)
    at org.apache.tools.ant.Target.execute(Target.java:30 9)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)

    at
    org.apache.tools.ant.Project.executeTargets(Projec t.java:1250)
    at org.apache.tools.ant.Main.runBuild(Main.java:610)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)

    java.lang.RuntimeException: error in finding weblogic.Home
    at weblogic.Home.(Home.java:52)
    at weblogic.Home.getInstance(Home.java:86)
    at weblogic.Home.getPath(Home.java:94)
    at
    weblogic.ejb20.persistence.InstalledPersistence.se tInstallationLocati
    on(InstalledPersistence.java:291)
    at
    weblogic.ejb20.persistence.InstalledPersistence.in itialize(InstalledP
    ersistence.java:134)
    at
    weblogic.ejb20.persistence.InstalledPersistence.ge tInstalledType(Inst
    alledPersistence.java:114)
    at
    weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.ge tPersistenceType(MB
    eanDeploymentInfoImpl.java:672)
    at
    weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.in itializeBeanInfos(M
    BeanDeploymentInfoImpl.java:601)
    at
    weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymen
    tInfoImpl.java:232)
    at
    weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompil er.java:155)
    at
    weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:415)
    at
    weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:387)
    at weblogic.appc.compileEJB(appc.java:802)
    at weblogic.appc.compileEJB(appc.java:776)
    at weblogic.appc.compileInput(appc.java:463)
    at weblogic.appc.runBody(appc.java:184)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:1028)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain (CompilerTask.java:
    278)
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java: 179)
    at org.apache.tools.ant.Task.perform(Task.java:317)
    at org.apache.tools.ant.Target.execute(Target.java:30 9)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)

    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :371)
    at org.apache.tools.ant.Task.perform(Task.java:317)
    at org.apache.tools.ant.Target.execute(Target.java:30 9)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)

    at
    org.apache.tools.ant.Project.executeTargets(Projec t.java:1250)
    at org.apache.tools.ant.Main.runBuild(Main.java:610)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)

    --------------- nested within: ------------------
    weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
    encountered wh
    ile compiling module
    'D:\web3710\classes\com\printeron\pon\PonEntity.ja r':

    error in finding weblogic.Home
    - with nested exception:
    [
    error in finding weblogic.Home
    ]
    at weblogic.appc.compileEJB(appc.java:781)
    at weblogic.appc.compileInput(appc.java:463)
    at weblogic.appc.runBody(appc.java:184)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:1028)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain (CompilerTask.java:
    278)
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java: 179)
    at org.apache.tools.ant.Task.perform(Task.java:317)
    at org.apache.tools.ant.Target.execute(Target.java:30 9)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)

    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :371)
    at org.apache.tools.ant.Task.perform(Task.java:317)
    at org.apache.tools.ant.Target.execute(Target.java:30 9)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)

    at
    org.apache.tools.ant.Project.executeTargets(Projec t.java:1250)
    at org.apache.tools.ant.Main.runBuild(Main.java:610)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    - with nested exception:
    [weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
    encountered w
    hile compiling module
    'D:\web3710\classes\com\printeron\pon\PonEntity.ja r':


    Can somebody help to figure out this problem please?

    thanks
    dharmesh




  2. Re: Weblogic8.1sp2 and ant compiling problems

    This used to work 8.1sp1. This happens when compiling container managed
    ejbs.
    Can somebody help me out

    Dharmesh Krishnammagaru wrote:

    > Here is my ant xml
    >
    >
    >
    >
    > > classpath="${java.class.path};${classes}"
    > source="${classes}/${PonDir}/${PonEntity.jar}"
    > output="${ejbDir}\${PonEntity.jar}"
    > verbose="true"
    > nowarn="true"
    > />
    >

    >
    > This the error I get
    >
    > error in finding weblogic.Home
    >
    > at
    > weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompil er.java:164)
    > at
    > weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:415)
    > at
    > weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:387)
    > at weblogic.appc.compileEJB(appc.java:802)
    > at weblogic.appc.compileEJB(appc.java:776)
    > at weblogic.appc.compileInput(appc.java:463)
    > at weblogic.appc.runBody(appc.java:184)
    > at weblogic.utils.compiler.Tool.run(Tool.java:146)
    > at weblogic.utils.compiler.Tool.run(Tool.java:103)
    > at weblogic.appc.main(appc.java:1028)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    > java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    > sorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain (CompilerTask.java:
    > 278)
    > at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java: 179)
    > at org.apache.tools.ant.Task.perform(Task.java:317)
    > at org.apache.tools.ant.Target.execute(Target.java:30 9)
    > at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    > at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    >
    > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :371)
    > at org.apache.tools.ant.Task.perform(Task.java:317)
    > at org.apache.tools.ant.Target.execute(Target.java:30 9)
    > at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    > at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    >
    > at
    > org.apache.tools.ant.Project.executeTargets(Projec t.java:1250)
    > at org.apache.tools.ant.Main.runBuild(Main.java:610)
    > at org.apache.tools.ant.Main.start(Main.java:196)
    > at org.apache.tools.ant.Main.main(Main.java:235)
    >
    > java.lang.RuntimeException: error in finding weblogic.Home
    > at weblogic.Home.(Home.java:52)
    > at weblogic.Home.getInstance(Home.java:86)
    > at weblogic.Home.getPath(Home.java:94)
    > at
    > weblogic.ejb20.persistence.InstalledPersistence.se tInstallationLocati
    > on(InstalledPersistence.java:291)
    > at
    > weblogic.ejb20.persistence.InstalledPersistence.in itialize(InstalledP
    > ersistence.java:134)
    > at
    > weblogic.ejb20.persistence.InstalledPersistence.ge tInstalledType(Inst
    > alledPersistence.java:114)
    > at
    > weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.ge tPersistenceType(MB
    > eanDeploymentInfoImpl.java:672)
    > at
    > weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.in itializeBeanInfos(M
    > BeanDeploymentInfoImpl.java:601)
    > at
    > weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymen
    > tInfoImpl.java:232)
    > at
    > weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompil er.java:155)
    > at
    > weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:415)
    > at
    > weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBComp iler.java:387)
    > at weblogic.appc.compileEJB(appc.java:802)
    > at weblogic.appc.compileEJB(appc.java:776)
    > at weblogic.appc.compileInput(appc.java:463)
    > at weblogic.appc.runBody(appc.java:184)
    > at weblogic.utils.compiler.Tool.run(Tool.java:146)
    > at weblogic.utils.compiler.Tool.run(Tool.java:103)
    > at weblogic.appc.main(appc.java:1028)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    > java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    > sorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain (CompilerTask.java:
    > 278)
    > at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java: 179)
    > at org.apache.tools.ant.Task.perform(Task.java:317)
    > at org.apache.tools.ant.Target.execute(Target.java:30 9)
    > at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    > at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    >
    > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :371)
    > at org.apache.tools.ant.Task.perform(Task.java:317)
    > at org.apache.tools.ant.Target.execute(Target.java:30 9)
    > at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    > at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    >
    > at
    > org.apache.tools.ant.Project.executeTargets(Projec t.java:1250)
    > at org.apache.tools.ant.Main.runBuild(Main.java:610)
    > at org.apache.tools.ant.Main.start(Main.java:196)
    > at org.apache.tools.ant.Main.main(Main.java:235)
    >
    > --------------- nested within: ------------------
    > weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
    > encountered wh
    > ile compiling module
    > 'D:\web3710\classes\com\printeron\pon\PonEntity.ja r':
    >
    > error in finding weblogic.Home
    > - with nested exception:
    > [
    > error in finding weblogic.Home
    > ]
    > at weblogic.appc.compileEJB(appc.java:781)
    > at weblogic.appc.compileInput(appc.java:463)
    > at weblogic.appc.runBody(appc.java:184)
    > at weblogic.utils.compiler.Tool.run(Tool.java:146)
    > at weblogic.utils.compiler.Tool.run(Tool.java:103)
    > at weblogic.appc.main(appc.java:1028)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    > java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    > sorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain (CompilerTask.java:
    > 278)
    > at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java: 179)
    > at org.apache.tools.ant.Task.perform(Task.java:317)
    > at org.apache.tools.ant.Target.execute(Target.java:30 9)
    > at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    > at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    >
    > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :371)
    > at org.apache.tools.ant.Task.perform(Task.java:317)
    > at org.apache.tools.ant.Target.execute(Target.java:30 9)
    > at org.apache.tools.ant.Target.performTasks(Target.ja va:334)
    > at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    >
    > at
    > org.apache.tools.ant.Project.executeTargets(Projec t.java:1250)
    > at org.apache.tools.ant.Main.runBuild(Main.java:610)
    > at org.apache.tools.ant.Main.start(Main.java:196)
    > at org.apache.tools.ant.Main.main(Main.java:235)
    > - with nested exception:
    > [weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
    > encountered w
    > hile compiling module
    > 'D:\web3710\classes\com\printeron\pon\PonEntity.ja r':
    >
    > Can somebody help to figure out this problem please?
    >
    > thanks
    > dharmesh



+ Reply to Thread