[rules-users] mvn deploy to workbench fails: Return code is: 405, ReasonPhrase:Method Not Allowed.

jmterrettaz jean-marc.terrettaz at sbb.ch
Wed May 28 09:51:29 EDT 2014


Hi
I have installed the Drools Workbench
kie-drools-wb-distribution-wars-6.0.1.Final-jboss-as7.0.war on JBoss EAP
6.2. When I try to do a mvn deploy to the workbench it fails with "Return
code is: 405, ReasonPhrase:Method Not Allowed."
Here the distributionManagement section of the POM:

	<distributionManagement>
		<repository>
			<id>guvnor-m2-repo</id>
			<url>http://localhost:8080/kie-drools-wb/maven2/</url>
		</repository>
	</distributionManagement>

I also defined the server as follow in my settings.xml :

	<servers>
		<server>
			<id>guvnor-m2-repo</id>
			<configuration>
				<httpHeaders>
					<property>
						<name>Authorization</name>
						
						<value>Basic xxxoffuscatedxxxxx =</value>
					</property>
				</httpHeaders>
			</configuration>
		</server>
	</servers>

If I give a wrong Authorization value there I get a 401 non authorized, so I
think the server is correctly configured. 

In wireshark I see that an HTTP PUT call is made and the answer is:

HTTP/1.1 405 Method Not Allowed
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 CET
Content-Type: text/html;charset=utf-8
Content-Length: 1176
Date: Wed, 28 May 2014 12:00:44 GMT

<html><head><title>JBoss Web/7.2.2.Final-redhat-1 - JBWEB000064: Error
report</title> </head><body>
JBWEB000065: HTTP Status 405 - HTTP method PUT is not supported by this URL
<HR size="1" noshade="noshade"><p>*JBWEB000309: type* JBWEB000067: Status
report</p><p>*JBWEB000068: message* <u>HTTP method PUT is not supported by
this URL</u></p><p>*JBWEB000069: description* <u>JBWEB000125: The specified
HTTP method is not allowed for the requested resource.</u></p><HR size="1"
noshade="noshade">
JBoss Web/7.2.2.Final-redhat-1
</body></html>

in a more readable format: 

JBWEB000065: HTTP Status 405 - HTTP method PUT is not supported by this URL

JBWEB000309: type JBWEB000067: Status report
JBWEB000068: message HTTP method PUT is not supported by this URL
JBWEB000069: description JBWEB000125: The specified HTTP method is not
allowed for the requested resource.

JBoss Web/7.2.2.Final-redhat-1

Can someone help? Thanks.



--
View this message in context: http://drools.46999.n3.nabble.com/mvn-deploy-to-workbench-fails-Return-code-is-405-ReasonPhrase-Method-Not-Allowed-tp4029737.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list