cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris snow (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FEDIZ-32) SimpleWebapp example to startup the IDP, STS and RP from maven
Date Tue, 06 Nov 2012 08:44:12 GMT

    [ https://issues.apache.org/jira/browse/FEDIZ-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491305#comment-13491305
] 

chris snow edited comment on FEDIZ-32 at 11/6/12 8:42 AM:
----------------------------------------------------------

mvn tomcat:run will run an embedded tomcat, but I think the IDP, STS and RP will need to run
in the same tomcat instance.

Adding the fediz tomcat dependency to the tomcat configuration on simpleWebapp allows you
to start up tomcat in embedded mode using mvn tomcat:run

{code}
<plugins>
      <plugin><!--for mvn tomcat:deploy/:undeploy/:redeploy -->
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>tomcat-maven-plugin</artifactId>
           <version>1.1</version>
           <configuration>
              <server>myTomcat</server>
              <url>http://localhost:8080/manager/text</url>
              <path>/${project.build.finalName}</path>
           </configuration>
           <dependencies> 
              <dependency> 
                   <groupId>org.apache.cxf.fediz</groupId> 
                   <artifactId>fediz-tomcat</artifactId> 
                   <version>${project.version}</version> 
              </dependency> 
          </dependencies> 
      </plugin>
</plugins>
{code}

More configuration will be needed to point to the keystores (http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html#keystoreFile),
and the war file projects for the IDP and STS (http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html#addContextWarDependencies)

One thing I would like to do is run in debug mode with minimal setup effort so that I can
stick in some breakpoints and have a look what is happening under the hood.  I agree that
learning how to set up tomcat, keys, etc, is important, however, to start with I prefer to
get a deeper understanding of the java logic.
                
      was (Author: snowch):
    mvn tomcat:run will run an embedded tomcat, but I think the IDP, STS and RP will need
to run in the same tomcat instance.

One thing I would like to do is run in debug mode with minimal setup effort so that I can
stick in some breakpoints and have a look what is happening under the hood.  I agree that
learning how to set up tomcat, keys, etc, is important, however, to start with I prefer to
get a deeper understanding of the java logic.
                  
> SimpleWebapp example to startup the IDP, STS and RP from maven
> --------------------------------------------------------------
>
>                 Key: FEDIZ-32
>                 URL: https://issues.apache.org/jira/browse/FEDIZ-32
>             Project: CXF-Fediz
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: chris snow
>
> It would be great if the simpleWebapp example ran directly from a maven command line,
for example:
> {code}
> mvn tomcat:run
> {code}
> This command would setup the IDP, STS and RP war files in the embedded tomcat instance(s)
allowing new users to quickly try out the example.

--
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

Mime
View raw message