ooops I looked at the error message again 
--------------
18K downloaded
[INFO] [tomcat:deploy]
[INFO] Deploying war to http://localhost:8080/tutorial
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot invoke Tomcat manager
 
Embedded error: Connection refused: connect
--------------
and figured it needs a running tomcat instance.

So i did mvn tomcat:run
and it worked fine. 
I can now access my tomcat instance hosting my bootstrap struts2 project at
 http://localhost:8080/tutorial
which is cool. 
thanks everyone,
robin


robinbajaj wrote:
> 
> Thanks for your response Dave. 
> I tried the tomcat-maven-plugin
> 
> basically removed the jetty plugin and introduced tomcat-maven-plugin into
> my pom.xml
> as follows
>                         <plugin>
>                       <groupId>org.codehaus.mojo</groupId>
>                       <artifactId>tomcat-maven-plugin</artifactId>
>                       <configuration>
>                               <url>http://localhost:8080/manager</url>
>                       </configuration>
>                       </plugin>
> 
> And then ran the mvn tomcat:deploy on command line.
> Here's the error I am getting 
> URL: http://rafb.net/p/6avAol60.html
> I don't think I have to have a tomcat pre-installed for this, since I
> noticed maven downloads 
> the required components on its own. Don't know what I am doing wrong here. 
> can someone please help... 
> thanks,
> robin 
> 
> 
> 
> 
> Dave Newton-4 wrote:
>> 
>> --- yitzle <[EMAIL PROTECTED]> wrote:
>>> The way I deploy is by shutting down Tomcat, using
>>> an ANT script to copy to files into the 
>>> Tomcat/webapps and starting Tomcat.
>> 
>> The OP, however, wanted to use Maven.
>> 
>> http://mojo.codehaus.org/tomcat-maven-plugin/
>> 
>> d.
>> 
>> 
>> 
>>      
>> ____________________________________________________________________________________Shape
>> Yahoo! in your own image.  Join our Network Research Panel today!  
>> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts-2-setup-for-tomcat-5.5-6-tf3841534.html#a10880575
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to