You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2012/10/17 17:50:04 UTC

[jira] [Created] (MTOMCAT-181) Allow to run the webapp under the root context

Sergio Fernández created MTOMCAT-181:
----------------------------------------

             Summary: Allow to run the webapp under the root context
                 Key: MTOMCAT-181
                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
             Project: Apache Tomcat Maven Plugin
          Issue Type: New Feature
          Components: tomcat7
            Reporter: Sergio Fernández
            Assignee: Olivier Lamy (*$^¨%`£)
            Priority: Minor


Right now the plugin simply ignores this:

            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <path>/</path>
                </configuration>
            </plugin>

and take the artifactId as default context path. 

Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Enrico Olivelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478045#comment-13478045 ] 

Enrico Olivelli commented on MTOMCAT-181:
-----------------------------------------

please implement this, in this way I will be able to use tomcat plugin for integration testing
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: 2.1
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478044#comment-13478044 ] 

Olivier Lamy (*$^¨%`£) commented on MTOMCAT-181:
------------------------------------------------

Do you have any sample to reproduce ?
Because I cannot reproduce.
Thanks!
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: 2.1
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Sergio Fernández (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478775#comment-13478775 ] 

Sergio Fernández commented on MTOMCAT-181:
------------------------------------------

You can reproduce the issue with any webapp which uses the plugin. This setup is quite common with other plugins, such as jetty: http://stackoverflow.com/questions/8685970/setting-root-context-path-with-maven-jetty-plugin#8880979

In my case, the issue is raised by the LMF webapp: https://code.google.com/p/lmf/source/browse/lmf-webapp/pom.xml?name=mavenized#40

Therefore, we can provide support for testing the implementation of such feature. 
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: moreinfo
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Updated] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy (*$^¨%`£) updated MTOMCAT-181:
-------------------------------------------

    Fix Version/s:     (was: 2.1)
                   moreinfo
    
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: moreinfo
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478908#comment-13478908 ] 

Olivier Lamy (*$^¨%`£) commented on MTOMCAT-181:
------------------------------------------------

Read home page here http://tomcat.apache.org/maven-plugin-2.0/index.html
Especially part about <pluginGroups> etc...
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: moreinfo
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478807#comment-13478807 ] 

Olivier Lamy (*$^¨%`£) commented on MTOMCAT-181:
------------------------------------------------

Again I cannot reproduce the issue !
Simple test project generated using the archetype: http://tomcat.apache.org/maven-plugin-2.0/archetype.html
Once it's generated I run: mvn tomcat7:run 
And I hit my browser on http://localhost:9090/
And AFAIK it works.

                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: moreinfo
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Sergio Fernández (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478883#comment-13478883 ] 

Sergio Fernández commented on MTOMCAT-181:
------------------------------------------

OK, I see the source of this issue:

- the project generated by the artifact includes the path at /project/build/pluginManagement/plugins/plugin/configuration/path

- since I had it at /project/build/plugins/plugin/configuration/path

But reorganizing my pom as it should be, I got the following error:

The plugin 'org.apache.maven.plugins:maven-tomcat7-plugin' does not exist or no valid version could be found

Notice the wrong groupId of the plugin, which I'm not sure from where it comes from :-S
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: moreinfo
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Sergio Fernández (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478930#comment-13478930 ] 

Sergio Fernández commented on MTOMCAT-181:
------------------------------------------

True, not a real bug, just a bit confusing how maven manages the external plugin groups. Thanks anyway.
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Resolved] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy (*$^¨%`£) resolved MTOMCAT-181.
--------------------------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: moreinfo)

Not a bug.
                
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Updated] (MTOMCAT-181) Allow to run the webapp under the root context

Posted by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MTOMCAT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy (*$^¨%`£) updated MTOMCAT-181:
-------------------------------------------

    Fix Version/s: 2.1
    
> Allow to run the webapp under the root context
> ----------------------------------------------
>
>                 Key: MTOMCAT-181
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-181
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: New Feature
>          Components: tomcat7
>            Reporter: Sergio Fernández
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: 2.1
>
>
> Right now the plugin simply ignores this:
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> and take the artifactId as default context path. 
> Would be possible to run it under the root context?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org