that did not work....
maybe i am doing something wrong here.
when I added these:
<dependencies>
<dependency>* <groupId>com.mycompany</groupId>
<artifactId>myBlock1</artifactId>
<version>1.0-SNAPSHOT</version>*
</dependency>
<dependency>* <groupId>com.mycompany</groupId>
<artifactId>myBlock2</artifactId>
<version>1.0-SNAPSHOT</version>*
</dependency>
and did the mvn package..it failed. so i had to do a mvn install for these 2
blocks b4 doing the mvn package.
Now if i check the war file, there are 2 jars out there corresponding to
myBlock1 and myBlock2, which contain the sitemaps and everything else.
however, there is nothing except for the lib/jars, applicationContext.xml,
web.xml and log4j.xml in the war WEB-INF folder.
-Ed.
On 2/26/08, Luca Morandini <[EMAIL PROTECTED]> wrote:
>
> Edward S wrote:
> >
> > here are my questions:
> >
> > * The demo page says, if I need to access myBlock1 i should go to:
> > http://localhost:8888/myBlock1/ . If my webapp is named,
> > 'myWebApp' why isnt that a part of the Url?
>
> Because it is, by default, the root application of that servlet container.
>
>
> > * If i do a mvn war:war, it creates a war file for the webapp with
> > the following name: myWebApp-1.0-SNAPSHOT.war in the target
> > directory. What should I do to deploy this war? If i drop it in
> > tomcat, and restart it, how can i access the same block?
> > http://localhost:8080/myWebApp-1.0-SNAPSHOT/ i get a 'resource not
> > found'
>
> Because you didn't specify the block, only the webapp.
>
>
> > if i go to http://localhost:8080/myBlock1 i get the same error.
>
> Because the root webapp of Tomcat is not myWebApp-1.0-SNAPSHOT.
>
> Try specifying both
> (http://localhost:8080/myWebApp-1.0-SNAPSHOT/myBlock1/) instead
>
> Regards,
>
> --------------------
> Luca Morandini
> www.lucamorandini.it
> --------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>