| Author |
Promblem configuring jboss-maven-plugin
|
Dilshan Edirisuriya
Ranch Hand
Joined: Apr 22, 2006
Posts: 299
|
|
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 ]
|
Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
|
 |
Sky Loi
Ranch Hand
Joined: Oct 06, 2008
Posts: 65
|
|
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
Joined: Apr 22, 2006
Posts: 299
|
|
Thanks Sky it solved the problem. I have not taken that in to consideration. Thank you
|
 |
 |
|
|
subject: Promblem configuring jboss-maven-plugin
|
|
|