You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Raphaël Zürcher (Created JIRA)" <ji...@apache.org> on 2012/04/16 14:34:19 UTC

[jira] [Created] (MTOMCAT-143) contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run

contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
-----------------------------------------------------------------------------------

                 Key: MTOMCAT-143
                 URL: https://issues.apache.org/jira/browse/MTOMCAT-143
             Project: Apache Tomcat Maven Plugin
          Issue Type: Bug
          Components: tomcat7
    Affects Versions: 2.0
         Environment: linux
            Reporter: Raphaël Zürcher
            Assignee: Olivier Lamy (*$^¨%`£)


In the configuration of the plugin into my pom.xml, I've defined the path to the contextFile and the tomcatUsers like this :

<contextFile>${appdir}/context.xml</contextFile>
<tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>

It works using version 2.0-beta-1 and worked with 2.0-SNAPSHOT until a few days ago. Tomcat7 start correctly, but my tomcat-users.xml is not used and I cannot authentied services deployed on my tomcat. I use this configuration with jenkins for testing.

Is there a regression in 2.0-SNAPSHOT or a new configuration issue ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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] [Closed] (MTOMCAT-143) contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run

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

Olivier Lamy (*$^¨%`£) closed MTOMCAT-143.
------------------------------------------

    Resolution: Fixed

Should be fixed now.
Please test with last deployed SNAPSHOT
                
> contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
> -----------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-143
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-143
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: linux
>            Reporter: Raphaël Zürcher
>            Assignee: Olivier Lamy (*$^¨%`£)
>             Fix For: 2.0
>
>
> In the configuration of the plugin into my pom.xml, I've defined the path to the contextFile and the tomcatUsers like this :
> <contextFile>${appdir}/context.xml</contextFile>
> <tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>
> It works using version 2.0-beta-1 and worked with 2.0-SNAPSHOT until a few days ago. Tomcat7 start correctly, but my tomcat-users.xml is not used and I cannot authentied services deployed on my tomcat. I use this configuration with jenkins for testing.
> Is there a regression in 2.0-SNAPSHOT or a new configuration issue ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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-143) contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run

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

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

    Fix Version/s: 2.0
    
> contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
> -----------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-143
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-143
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: linux
>            Reporter: Raphaël Zürcher
>            Assignee: Olivier Lamy (*$^¨%`£)
>             Fix For: 2.0
>
>
> In the configuration of the plugin into my pom.xml, I've defined the path to the contextFile and the tomcatUsers like this :
> <contextFile>${appdir}/context.xml</contextFile>
> <tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>
> It works using version 2.0-beta-1 and worked with 2.0-SNAPSHOT until a few days ago. Tomcat7 start correctly, but my tomcat-users.xml is not used and I cannot authentied services deployed on my tomcat. I use this configuration with jenkins for testing.
> Is there a regression in 2.0-SNAPSHOT or a new configuration issue ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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-143) contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run

Posted by "Raphaël Zürcher (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255321#comment-13255321 ] 

Raphaël Zürcher commented on MTOMCAT-143:
-----------------------------------------

Here is my configuration in pom.xml :

<plugin>
						<groupId>org.apache.tomcat.maven</groupId>
						<artifactId>tomcat7-maven-plugin</artifactId>
						<version>2.0-SNAPSHOT</version>						
						<configuration>
							<domain>TomcatRunner</domain>
							<port>${app.port}</port>
							<url>/manager</url>
							<path>${app.contexturl}</path>
							<contextFile>${appdir}/context.xml</contextFile>
							<tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>
							<useTestClasspath>true</useTestClasspath>
							<contextReloadable>true</contextReloadable>
							<fork>${tomcat.fork}</fork><!-- fork=true will stop tomcat after run -->
						</configuration>
						<executions>
							<execution>
								<id>tomcat-run</id>
								<phase>pre-integration-test</phase>
								<goals>
									<goal>run-war-only</goal>
								</goals>
							</execution>
							<execution>
								<id>tomcat-shutdown</id>
								<phase>post-integration-test</phase>
								<goals>
									<goal>shutdown</goal>
								</goals>
							</execution>
						</executions>
						<dependencies>
							<dependency><!-- Servler 2.x not compatible with Tomcat 7 -->
								<groupId>javax.servlet</groupId>
								<artifactId>javax.servlet-api</artifactId>
								<version>3.0.1</version>
							</dependency>
							<dependency>
								<groupId>oracle.jdbc</groupId>
								<artifactId>ojdbc6</artifactId>
								<version>${oracle.version}</version>
							</dependency>
						</dependencies>
					</plugin>

Since the middle of the last week, this doesn't work anymore. The definition of my users in the specified tomcat-users.xml is not used.
                
> contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
> -----------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-143
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-143
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: linux
>            Reporter: Raphaël Zürcher
>            Assignee: Olivier Lamy (*$^¨%`£)
>
> In the configuration of the plugin into my pom.xml, I've defined the path to the contextFile and the tomcatUsers like this :
> <contextFile>${appdir}/context.xml</contextFile>
> <tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>
> It works using version 2.0-beta-1 and worked with 2.0-SNAPSHOT until a few days ago. Tomcat7 start correctly, but my tomcat-users.xml is not used and I cannot authentied services deployed on my tomcat. I use this configuration with jenkins for testing.
> Is there a regression in 2.0-SNAPSHOT or a new configuration issue ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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-143) contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run

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

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

contextFile not used with current trunk ? Sure ??
Any sample project to show this issue ?
                
> contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
> -----------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-143
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-143
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: linux
>            Reporter: Raphaël Zürcher
>            Assignee: Olivier Lamy (*$^¨%`£)
>
> In the configuration of the plugin into my pom.xml, I've defined the path to the contextFile and the tomcatUsers like this :
> <contextFile>${appdir}/context.xml</contextFile>
> <tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>
> It works using version 2.0-beta-1 and worked with 2.0-SNAPSHOT until a few days ago. Tomcat7 start correctly, but my tomcat-users.xml is not used and I cannot authentied services deployed on my tomcat. I use this configuration with jenkins for testing.
> Is there a regression in 2.0-SNAPSHOT or a new configuration issue ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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-143) contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run

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

Hudson commented on MTOMCAT-143:
--------------------------------

Integrated in TomcatMavenPlugin-mvn3.x #140 (See [https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/140/])
    [MTOMCAT-143] contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
configuring realm must be done before adding context. (Revision 1329339)

     Result = SUCCESS
olamy : http://svn.apache.org/viewvc/?view=rev&rev=1329339
Files : 
* /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
* /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java

                
> contextFile and tomcatUsers defined in pom.xml are not used with target tomcat7:run
> -----------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-143
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-143
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: linux
>            Reporter: Raphaël Zürcher
>            Assignee: Olivier Lamy (*$^¨%`£)
>             Fix For: 2.0
>
>
> In the configuration of the plugin into my pom.xml, I've defined the path to the contextFile and the tomcatUsers like this :
> <contextFile>${appdir}/context.xml</contextFile>
> <tomcatUsers>${appdir}/tomcat-users.xml</tomcatUsers>
> It works using version 2.0-beta-1 and worked with 2.0-SNAPSHOT until a few days ago. Tomcat7 start correctly, but my tomcat-users.xml is not used and I cannot authentied services deployed on my tomcat. I use this configuration with jenkins for testing.
> Is there a regression in 2.0-SNAPSHOT or a new configuration issue ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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