5 Replies Latest reply on May 17, 2006 3:45 PM by 666705

    weblogic ant redeploy failing

    3004

      Hi,
      I am using Weblogic 8.1 SP1 under Windows2000 and Eclipse 2.1.3 as IDE. From
      Ant view of Eclipse, there have written a part in build.xml as below:


      <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"
      />

      <target name="deploy" description="clean up, Build and deploy " depends="clean,
      build" >
      <wldeploy
           action="redeploy"
           adminurl="http://orion:7001/console"
           name="fcEar"
           nostage="true"
           user="orion"
           password="orion123"
           source="${builddir}"
           targets="myserver"
           verbose="true"
      />

      where 'builddir' holds unexploded directory structure of my application. It's
      working fine from Admin console. And even I issue the command below from DOS-Prompt
      it redploy the application:

      java weblogic.Deployer -nostage -verbose -noexit -name fcEar -source D:\fcSkyTech21stApril\build\fcEar\APP-INF\classes
      -targets myserver -adminurl http://orion:7001/console -user orion -password orion123
      -redeploy

      but getting the following exception:
      [wldeploy] java.lang.NullPointerException
      [wldeploy] at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:785)
      [wldeploy] at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:758)
      [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:803)
      [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
      [wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
      [wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
      [wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security.java:152)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:597)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:534)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:336)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
      [wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
      [wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:143)
      [wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(MBeanHomeTool.java:157)
      [wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
      [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
      [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
      [wldeploy] at weblogic.Deployer.main(Deployer.java:399)
      [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
      [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:209)
      [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:170)
      [wldeploy] at org.apache.tools.ant.Task.perform(Task.java:341)
      [wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
      [wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
      [wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
      [wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
      [wldeploy] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
      [wldeploy] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:166)
      [wldeploy] --------------- nested within: ------------------
      [wldeploy] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
      to generate class for weblogic.common.internal.RMIBootServiceImpl_811_WLStub ]
      - with nested exception:
      [wldeploy] [java.lang.NullPointerException]
      [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
      [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
      [wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
      [wldeploy] at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
      [wldeploy] at weblogic.security.acl.internal.Security.authenticate(Security.java:152)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:597)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:534)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:336)
      [wldeploy] at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
      [wldeploy] at weblogic.jndi.Environment.getContext(Environment.java:164)
      [wldeploy] at weblogic.jndi.Environment.getInitialContext(Environment.java:143)
      [wldeploy] at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(MBeanHomeTool.java:157)
      [wldeploy] at weblogic.Deployer.runBody(Deployer.java:555)
      [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:146)
      [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:103)
      [wldeploy] at weblogic.Deployer.main(Deployer.java:399)
      [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [wldeploy] at java.lang.reflect.Method.invoke(Method.java:324)
      [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:209)
      [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:170)
      [wldeploy] at org.apache.tools.ant.Task.perform(Task.java:341)
      [wldeploy] at org.apache.tools.ant.Target.execute(Target.java:309)
      [wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:336)
      [wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
      [wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
      [wldeploy] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
      [wldeploy] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:166)
      [wldeploy] java.lang.reflect.InvocationTargetException
      [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


      Please help ASAP. For any further information give me a shout.

      Thanks,
      Suman
      sumanpal@skytechsolutions.co.in
        • 1. Re: weblogic ant redeploy failing
          666705
          Any luck with this? I'm encountering the same error. The setup includes WebLogic 8.1 (SP1), NetBeans 3.6 and JDK 1.4.1.03.
          • 2. Re: weblogic ant redeploy failing
            666705
            Hi

            Any solution for this issue. I am getting the same error.

            Thanks
            Kanag
            • 3. Re: weblogic ant redeploy failing
              666705
              Is it just me or does WebLogic have the worst support? I used to think that IBM was bad - but the number of unanswered posts out in weblogic's forums is staggering. I would think that you'd put a priority on answering your CUSTOMERs software issues with YOUR software.

              So, with that said - does anyone have a fix for this issue?
              • 4. Re: weblogic ant redeploy failing
                666705
                before calling wldeploy on ANT script run the setWLSEnv.cmd of your weblogic server on the comand prompt and then call the "wldeploy" script.

                NOTE : setWLSEnv.cmd should set the weblogic.jar to classpath.
                • 5. Re: weblogic ant redeploy failing
                  666705
                  try removing /console from your adminurl. I think it just needs t3://host:port

                  I am having a similar problem trying to deploy via ant on my pc within eclipse. Any ideas???

                  [wldeploy] weblogic.Deployer -noexit -name ppt_web -source C:\webdev\eclipse\workspace\ppt_web\Build\ppt_web -adminurl http://localhost:7001 -user system -password ******** -deploy
                  [wldeploy] java.lang.reflect.InvocationTargetException
                  [wldeploy] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  [wldeploy] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                  [wldeploy] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                  [wldeploy] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                  [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
                  [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)




                  ...


                  [wldeploy] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
                  [wldeploy] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
                  [wldeploy] Caused by: java.lang.IllegalAccessError: tried to access method weblogic.rmi.internal.StubInfo.getInterfaces(Ljava/lang/ClassLoader;)[Ljava/lang/Class; from class weblogic.management.internal.MBeanHomeImpl_815_WLStub
                  [wldeploy] at weblogic.management.internal.MBeanHomeImpl_815_WLStub.ensureInitialized(Unknown Source)
                  [wldeploy] at weblogic.management.internal.MBeanHomeImpl_815_WLStub.<init>(Unknown Source)
                  [wldeploy] ... 48 more
                  [wldeploy] --------------- nested within: ------------------
                  [wldeploy] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.management.internal.MBeanHomeImpl_815_WLStub ] - with nested exception:
                  [wldeploy] [java.lang.reflect.InvocationTargetException - with target exception:
                  [wldeploy] [java.lang.IllegalAccessError: tried to access method weblogic.rmi.internal.StubInfo.getInterfaces(Ljava/lang/ClassLoader;)[Ljava/lang/Class; from class weblogic.management.internal.MBeanHomeImpl_815_WLStub]]
                  [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
                  [wldeploy] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                  [wldeploy] at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                  [wldeploy] at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                  [wldeploy] at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)