1 Reply Latest reply on May 16, 2006 8:31 AM by faisal aziz

    problems calling MainDeployer through ant

    faisal aziz Newbie

      hey guyz,
      i am trying to deploy ear though ant this is my ant snippet

      <target name="jbossremotedeploy" >
       <taskdef name="jmx" classname="org.jboss.ant.JMX" >
       </taskdef>
       <jmx serverurl="jnp://localhost:1099" adaptername="jmx/invoker/RMIAdaptor" />
      
       <propertyEditor type="java.math.BigDecimal" editor="org.jboss.util.propertyeditor.BigDecimalEditor"/>
       <propertyEditor type="java.util.Date" editor="org.jboss.util.propertyeditor.DateEditor"/>
      
       <invoke target="jboss.system:service=MainDeployer" operation="deploy">
       <parameter type="java.net.URL" arg="http://localhost:8084/spring-jmx/testejb.ear"/>
       </invoke>
       </target>


      and getting stuck on this

      jbossremotedeploy:
      [jmx] javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptorExt (no security manager: RMI class loader disabled)]
      [jmx] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
      [jmx] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      [jmx] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [jmx] at org.jboss.ant.JMX.execute(JMX.java:196)
      [jmx] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [jmx] at org.apache.tools.ant.Task.perform(Task.java:364)
      [jmx] at org.apache.tools.ant.Target.execute(Target.java:341)
      [jmx] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [jmx] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [jmx] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [jmx] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [jmx] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [jmx] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [jmx] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [jmx] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [jmx] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [jmx] Caused by: java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptorExt (no security manager: RMI class loader disabled)
      [jmx] at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
      [jmx] at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
      [jmx] at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
      [jmx] at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
      [jmx] at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
      [jmx] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
      [jmx] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
      [jmx] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      [jmx] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      [jmx] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      [jmx] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:51)
      [jmx] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
      [jmx] ... 15 more

      BUILD FAILED
      /home/faisal/java/projects/ant/remotedeploy/build.xml:19: problem: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptorExt (no security manager: RMI class loader disabled)]

      i'll appreciate any help or pointer