This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Promblem configuring jboss-maven-plugin

 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have configured jboss-maven-plugin as,

<build>
<defaultGoal>package</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<jbossHome>H:/jboss-4.2.3.GA</jbossHome>
<server>default</server>
<hostName>localhost</hostName>
<port>8080</port>
</configuration>
</plugin>
</plugins>
</build>

Also my settings.xml looks like this.

<server>
<id>default</id>
<username>admin</username>
<password>admin</password>
</server>

But when I run the jboss deploy command I get the following error.

------------------------------------------------------------------------
[INFO] Mojo error occurred: Server returned HTTP response code: 505 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:H:\Eclipse Workspace\testdilshan\target/testdilshan-0.0.1-SNAPSHOT.war

What will be the possible reason for this ?



Thank you.
[ October 29, 2008: Message edited by: Dilshan Edirisuriya ]
 
Sky Loi
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try to add the following settings in POM.xml:

<serverName>default</serverName> --> this is Jboss server location


The <server>default</server> tag is looking up the following info:

In setting.xml, check if it like this:
<settings>
......
<servers>
<server>
<id>default</id>
<username>XXX</username>
<password>XXX</password>
</server>
</servers>
...........
</settings>

It works in my project.
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sky it solved the problem. I have not taken that in to consideration.

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic