You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by RobJac <ro...@caritor.com> on 2006/04/22 14:43:52 UTC
jboss:deploy Issue
I am trying to deploy an EAR from my local PC to a remote jboss server using
maven2 The plugin that i am using is jboss-maven-plugin and iam trying to do
a jboss:deploy. But it throws me a parse exception for my pom xml for the
tag
<deployUrlPath> that i have in my pom xml for this plugin. Please find below
my usage of this plugin in my EAR pom xml.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<configuration>
<fileName>${project.build.directory}/${project.build.finalName}.${project.packaging}</fileName>
<deployUrlPath>/jmx-console/HtmlAdaptor?action==invokeOpByName&name==jboss.system:service%%3DMainDeployer&methodName==deploy&argType==java.net.URL&arg0==</deployUrlPath>
<hostName>10.153.134.122</hostName>
<port>8080</port>
</configuration>
</plugin>
When i try to run jboss:deploy it gives me parse exception saying that = or
% expressions are not allowed in the xml. But in
http://mojo.codehaus.org/jboss-maven-plugin/deploy-mojo.html, it says i have
to use this expression. Am I doing something wrong here? or what value do i
provide to the <deployUrlPath> tag?
--
View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4040488
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jboss:deploy Issue
Posted by jiangshachina <ji...@gmail.com>.
Hi guys,
I wish any one can give me some responds about my problems.
However, I can use harddeploy to deploy(exactly, copy war file to JBoss
deploy directory) web application,
but I wish to understand more about the plugin and goal jboss:deploy,
parameter deployUrlPath.
Thanks very much!
a cup of Java, cheers!
Sha Jiang
jiangshachina wrote:
>
> Hi guys,
>
> [1]Don't deploy successfully via the plugin.
> I used following config,
> <configuration>
> <jbossHome>E:/jboss-4.0.2</jbossHome>
> <serverName>default</serverName>
> <fileName>
>
> ${project.build.directory}/${project.build.finalName}.${project.packaging}
> </fileName>
> <hostName>localhost</hostName>
> <port>8082</port>
> </configuration>
> and run jboss:deploy, an error thrown,
> [INFO] Deploying D:\maven\demo\webapp\target/webapp.war to JBoss.
> [INFO] No server specified for authentication - using defaults
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Mojo error occurred: Connection refused: connect
> But when run jboss:harddeploy, all is OK.
> What's wrong with the matter?
> What's the difference between deploy and harddeploy.
>
> Especially, I don't understand parameter deployUrlPath :(
> How to set it?
>
> [2]Don't start/stop JBoss via the plugin.
> With docs of the plugin, please see
> http://mojo.codehaus.org/jboss-maven-plugin/start-mojo.html
> I just need set jbossHome and serverName for stating/stopping JBoss
> server.
> Both of the parameters are set, please see pom.xml srcripts shown at the
> top of the reply.
> When run jboss:start or jboss:stop(even JBoss server isn't started),
> console shows "BUILD SUCCESSFUL"!!!
> How to solve the problem?
>
> Thanks in advance!
>
> a cup of Java, cheers!
> Sha Jiang
>
>
> Wayne Fay wrote:
>>
>> You've got >![CDATA[[
>>
>> Try >![CDATA[
>>
>> Hopefully that will work... CDATA section basically tells XML "hey
>> this next section is not XML-compliant, its just a string, please
>> don't parse it and just keep it as-is".
>>
>> Wayne
>>
>> On 4/22/06, RobJac <ro...@caritor.com> wrote:
>>>
>>> Sorry wayne, but i did not actually understand what you meant here,
>>>
>>> I corrected my deployUrlPath tag as
>>> <deployUrlPath>![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=?and=yes]]</deployUrlPath>
>>> and iam still getting the same parse exception as
>>>
>>> Exception:
>>> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
>>> entity
>>> refe
>>> rence name can not contain character =' (position: START_TAG seen
>>> ...![CDATA[[/j
>>> mx-console/HtmlAdaptor?action=invokeOpByName&name=... @184:79)
>>>
>>> Is this what you meant or i need to give the absolute path of the
>>> location
>>> of the remote server here
>>> as
>>> <deployUrlPath>![CDATA[[/opt/jboss403SP1/server/default?and=yes]]</deployUrlPath>
>>> (This also did not work)
>>> --
>>> View this message in context:
>>> http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4041068
>>> Sent from the Maven - Users forum at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-tf1491112s177.html#a7426703
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jboss:deploy Issue
Posted by jiangshachina <ji...@gmail.com>.
Hi guys,
[1]Don't deploy successfully via the plugin.
I used following config,
<configuration>
<jbossHome>E:/jboss-4.0.2</jbossHome>
<serverName>default</serverName>
<fileName>
${project.build.directory}/${project.build.finalName}.${project.packaging}
</fileName>
<hostName>localhost</hostName>
<port>8082</port>
</configuration>
and run jboss:deploy, an error thrown,
[INFO] Deploying D:\maven\demo\webapp\target/webapp.war to JBoss.
[INFO] No server specified for authentication - using defaults
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Mojo error occurred: Connection refused: connect
But when run jboss:harddeploy, all is OK.
What's wrong with the matter?
What's the difference between deploy and harddeploy.
Especially, I don't understand parameter deployUrlPath :(
How to set it?
[2]Don't start/stop JBoss via the plugin.
With docs of the plugin, please see
http://mojo.codehaus.org/jboss-maven-plugin/start-mojo.html
I just need set jbossHome and serverName for stating/stopping JBoss server.
Both of the parameters are set, please see pom.xml srcripts shown at the top
of the reply.
When run jboss:start or jboss:stop(even JBoss server isn't started), console
shows "BUILD SUCCESSFUL"!!!
How to solve the problem?
Thanks in advance!
a cup of Java, cheers!
Sha Jiang
Wayne Fay wrote:
>
> You've got >![CDATA[[
>
> Try >![CDATA[
>
> Hopefully that will work... CDATA section basically tells XML "hey
> this next section is not XML-compliant, its just a string, please
> don't parse it and just keep it as-is".
>
> Wayne
>
> On 4/22/06, RobJac <ro...@caritor.com> wrote:
>>
>> Sorry wayne, but i did not actually understand what you meant here,
>>
>> I corrected my deployUrlPath tag as
>> <deployUrlPath>![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=?and=yes]]</deployUrlPath>
>> and iam still getting the same parse exception as
>>
>> Exception:
>> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
>> entity
>> refe
>> rence name can not contain character =' (position: START_TAG seen
>> ...![CDATA[[/j
>> mx-console/HtmlAdaptor?action=invokeOpByName&name=... @184:79)
>>
>> Is this what you meant or i need to give the absolute path of the
>> location
>> of the remote server here
>> as
>> <deployUrlPath>![CDATA[[/opt/jboss403SP1/server/default?and=yes]]</deployUrlPath>
>> (This also did not work)
>> --
>> View this message in context:
>> http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4041068
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-tf1491112s177.html#a7415906
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jboss:deploy Issue
Posted by Wayne Fay <wa...@gmail.com>.
You've got >![CDATA[[
Try >![CDATA[
Hopefully that will work... CDATA section basically tells XML "hey
this next section is not XML-compliant, its just a string, please
don't parse it and just keep it as-is".
Wayne
On 4/22/06, RobJac <ro...@caritor.com> wrote:
>
> Sorry wayne, but i did not actually understand what you meant here,
>
> I corrected my deployUrlPath tag as
> <deployUrlPath>![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=?and=yes]]</deployUrlPath>
> and iam still getting the same parse exception as
>
> Exception:
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity
> refe
> rence name can not contain character =' (position: START_TAG seen
> ...![CDATA[[/j
> mx-console/HtmlAdaptor?action=invokeOpByName&name=... @184:79)
>
> Is this what you meant or i need to give the absolute path of the location
> of the remote server here
> as
> <deployUrlPath>![CDATA[[/opt/jboss403SP1/server/default?and=yes]]</deployUrlPath>
> (This also did not work)
> --
> View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4041068
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: jboss:deploy Issue
Posted by RobJac <ro...@caritor.com>.
Sorry wayne, but i did not actually understand what you meant here,
I corrected my deployUrlPath tag as
<deployUrlPath>![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=?and=yes]]</deployUrlPath>
and iam still getting the same parse exception as
Exception:
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity
refe
rence name can not contain character =' (position: START_TAG seen
...![CDATA[[/j
mx-console/HtmlAdaptor?action=invokeOpByName&name=... @184:79)
Is this what you meant or i need to give the absolute path of the location
of the remote server here
as
<deployUrlPath>![CDATA[[/opt/jboss403SP1/server/default?and=yes]]</deployUrlPath>
(This also did not work)
--
View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4041068
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jboss:deploy Issue
Posted by Wayne Fay <wa...@gmail.com>.
Give this a try, I think it should work for you:
<deployUrlPath>![CDATA[/your/path/here?and=yes]]</deployUrlPath>
Wayne
On 4/22/06, RobJac <ro...@caritor.com> wrote:
>
> I am trying to deploy an EAR from my local PC to a remote jboss server using
> maven2 The plugin that i am using is jboss-maven-plugin and iam trying to do
> a jboss:deploy. But it throws me a parse exception for my pom xml for the
> tag
> <deployUrlPath> that i have in my pom xml for this plugin. Please find below
> my usage of this plugin in my EAR pom xml.
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>jboss-maven-plugin</artifactId>
> <configuration>
>
> <fileName>${project.build.directory}/${project.build.finalName}.${project.packaging}</fileName>
>
> <deployUrlPath>/jmx-console/HtmlAdaptor?action==invokeOpByName&name==jboss.system:service%%3DMainDeployer&methodName==deploy&argType==java.net.URL&arg0==</deployUrlPath>
> <hostName>10.153.134.122</hostName>
> <port>8080</port>
> </configuration>
> </plugin>
> When i try to run jboss:deploy it gives me parse exception saying that = or
> % expressions are not allowed in the xml. But in
> http://mojo.codehaus.org/jboss-maven-plugin/deploy-mojo.html, it says i have
> to use this expression. Am I doing something wrong here? or what value do i
> provide to the <deployUrlPath> tag?
>
> --
> View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4040488
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>