0 Replies Latest reply on Dec 29, 2005 2:07 PM by matthew axworthy

    Remote Deployment from Eclipse IDE 3.1.1 to JBoss AS 4.0.3

    matthew axworthy Newbie

      Hi,
      I posted this question on the "beginners" forum and did not receive a reply, so I'm trying here.

      I checked the FAQs, install quides, and forums first for an answer. Nothing found of assistance to this particular problem.

      Here's the info required prior to posting.

      OS - Windows XP SP2
      JDK - 1.5.0_06
      Eclipse version - 3.1.1
      JBoss-IDE version - 1.5RC2
      JBoss version - 4.0.3.SP1, Java version 1.5.0_02, Linux 2.6.11-1.1369_FC4smp

      Steps to reproduce: Run deploy on EAR file using deployment string pointing to remote server.

      Stack trace:
      java.io.IOException: Server returned HTTP response code: 505 for URL: http://remotehost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Aservice=MainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:/C:/Documents and Settings/jbuser/workspace/app1/app1.ear
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at org.jboss.ide.eclipse.deployer.core.target.LocalMainDeployer.sendHttpRequest(LocalMainDeployer.java:375)
      at org.jboss.ide.eclipse.deployer.core.target.LocalMainDeployer.deploy(LocalMainDeployer.java:84)
      at org.jboss.ide.eclipse.deployer.ui.actions.DeployAction.process(DeployAction.java:86)
      at org.jboss.ide.eclipse.deployer.ui.actions.AbstractDeployAction$1.run(AbstractDeployAction.java:153)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

      Question:
      Is it possible to remote deploy an ear file from Eclipse 3.1.1 to JBOSS AS 4? I'm starting to think only local deployments are supported.

      Under Ecplipse->Window->preferences->JbossIDE->Deployer there is a reference to the HTTP based access to the MainDeployer MBean. It indicates support for JBOSS AS 3.0. What is the syntax for JBOSS AS 4.0.03 and the URL format of the location of the ear file?

      I changed the deployment string to what appears to be a V4 format (e.g. "http://remotehost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Aservice%3DMainDeployer&methodName={0}&argType=java.net.URL&arg0=" )

      This didn't work. (See stack trace above)


      Also related to the only other post on remote deployment from another user, how to perform the same from the JMX console/MainDeployer bean? The URL format of "file://windoes FQPN" doesn't work. JBOSS indicates it can't find the file.

      Eclipse 3.1.1 with JBoss plugin level 1.5RC2 is running on a Windows box running XP SP2. JBOSS AS 4.0.3SP1 on Linux.

      Thanks for your help//