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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]