C:\Vidya\WorkSpace\dealamendments>mvn -e jboss:deploy
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jboss'.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building RMB Calypso Schema
[INFO]    task-segment: [jboss:deploy]
[INFO] 
----------------------------------------------------------------------------
[INFO] [jboss:deploy]
[INFO] Deploying 
C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar 
to JBoss.
[INFO] No server specified for authentication - using defaults
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Mojo error occurred: Server returned HTTP response code: 401 for 
URL: http://localhost:8080/jmx-c
onsole/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argT
ype=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar

[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Mojo error 
occurred: Server returned HTTP respon
se code: 401 for URL: 
http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.sys
tem:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealamend
ments\target\dealamendments-1.0-SNAPSHOT.jar
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.jav
a:559)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExe
cutor.java:488)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java
:458)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifec
ycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecu
tor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140
)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Mojo error 
occurred: Server returned HTTP res
ponse code: 401 for URL: 
http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.
system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealam
endments\target\dealamendments-1.0-SNAPSHOT.jar
        at 
org.codehaus.mojo.jboss.AbstractDeployerMojo.doURL(AbstractDeployerMojo.java:101)
        at org.codehaus.mojo.jboss.DeployMojo.execute(DeployMojo.java:40)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.jav
a:534)
        ... 16 more
Caused by: java.io.IOException: Server returned HTTP response code: 401 
for URL: http://localhost:8080/j
mx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&
argType=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
        at 
org.codehaus.mojo.jboss.AbstractDeployerMojo.doURL(AbstractDeployerMojo.java:96)
        ... 19 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Feb 01 14:55:58 GMT+02:00 2007
[INFO] Final Memory: 2M/5M
[INFO] 
------------------------------------------------------------------------





"Greg Jones" <[EMAIL PROTECTED]> 
01/02/2007 13:41
Please respond to
"Maven Users List" <[email protected]>


To
"'Maven Users List'" <[email protected]>
cc

Subject
RE: jboss-maven-plugin






Hi Vidya,

Ignore the previous response. The <server> element in the 
jboss-maven-plugin
specifies which server definition to use for Jboss, not which (host) 
server
to use. In your case it is probably 'default' so leave it at that.

I suspect your problem stems from something else. Can you run Maven with
error reporting turned on (e.g. mvn -e clean install) and send your output
to this list.

Regards,

Greg.


-----Original Message-----
From: Vidya Mahavadi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 1 February 2007 8:35 PM
To: Maven Users List
Subject: Re: jboss-maven-plugin

Where is settings.xml located.. I cannot find it in jboss or my project
folder. I am using jboss 4.0.5 and maven2.





"Arik Kfir" <[EMAIL PROTECTED]> 
31/01/2007 17:51
Please respond to
"Maven Users List" <[email protected]>


To
"Maven Users List" <[email protected]>
cc

Subject
Re: jboss-maven-plugin






the <server> specifies the corresponding "<server>" block in your
settings.xml file which should contain the username/password to login to 
the
machine where the jbosshome is located.

On 1/31/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I don't use jboss-m-p. However reading the error message, I would try
> removing the <server>default</> line from the config and try again.
>
> Wayne
>
> On 1/31/07, Vidya Mahavadi <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am trying to use jboss-maven-plugin(maven2) from codehaus for
> deployment
> > in jboss 4.0. Here is my plugin configuration, can anyone please tell 
me
> > what I am missing in here..
> >
> >            <plugin>
> >                <groupId>org.codehaus.mojo</groupId>
> >                <artifactId>jboss-maven-plugin</artifactId>
> >                <configuration>
> >                    <jbossHome>c:/software/jboss-4.0.5.GA</jbossHome>
> >                    <server>default</server>
> >                    <hostName>localhost</hostName>
> >                    <port>8080</port>
> >                    <fileName>
> >
> > ${project.build.directory}\${project.build.finalName}.${
> project.packaging}
> >                    </fileName>
> >
> >                </configuration>
> >            </plugin>
> >
> > And here is the error trace.
> >
> > [INFO] [jboss:deploy]
> > [INFO] Deploying
> > 
C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar
> > to JBoss.
> > [INFO]
> > 
------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
------------------------------------------------------------------------
> > [INFO] Mojo error occurred: Server not defined in settings.xml: 
default
> >
> >
> > Thanks,
> > Vidya
> >
> > This e-mail is subject to a disclaimer, available at
> >
> 
http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html


> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


This e-mail is subject to a disclaimer, available at
http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This e-mail is subject to a disclaimer, available at
http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html

Reply via email to