Details
Description
I can't use cargo for jetty because I need to configure a custom realm (org.mortbay.jetty.security.HashUserRealm), webAppSourceDirectory, overrideWebXml and contextPath.
I.e. I want to be able to do with cargo exactly what I can do with jetty:run - this is all in order to achieve automated integration testing.
My maven-jetty-plugin pom:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<webAppSourceDirectory>
WebContent
</webAppSourceDirectory>
<overrideWebXml>
test/resources/override-web.xml
</overrideWebXml>
<contextPath>/TAMSWeb</contextPath>
<scanIntervalSeconds>0</scanIntervalSeconds>
<scanTargetPatterns>
<scanTargetPattern>
<directory>WebContent</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</scanTargetPattern>
</scanTargetPatterns>
<userRealms>
<userRealm
implementation="org.mortbay.jetty.security.HashUserRealm">
<!-- overrides websphere's default realm -->
<name>default</name>
<config>
test/resources/jetty-user-realm.properties
</config>
</userRealm>
</userRealms>
<systemProperties>
<property>
<name>tams.environment</name>
<value>local</value>
</property>
<property>
<name>oracle.jdbc.J2EE13Compliant</name>
<value>true</value>
</property>
<property>
<name>oracle.jdbc.V8Compatible</name>
<value>true</value>
</property>
</systemProperties>
</configuration>
</plugin>
Issue Links
Activity
Savas Ali Tokmen
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
I can't use cargo for jetty because I need to configure a custom realm (org.mortbay.jetty.security.HashUserRealm), webAppSourceDirectory, overrideWebXml and contextPath. I.e. I want to be able to do with cargo exactly what I can do with jetty:run - this is all in order to achieve automated integration testing. My maven-jetty-plugin pom: {quote} {{<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <webAppSourceDirectory> WebContent </webAppSourceDirectory> <overrideWebXml> test/resources/override-web.xml </overrideWebXml> <contextPath>/TAMSWeb</contextPath> <scanIntervalSeconds>0</scanIntervalSeconds> <scanTargetPatterns> <scanTargetPattern> <directory>WebContent</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </scanTargetPattern> </scanTargetPatterns> <userRealms> <userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> <!-- overrides websphere's default realm --> <name>default</name> <config> test/resources/jetty-user-realm.properties </config> </userRealm> </userRealms> <systemProperties> <property> <name>tams.environment</name> <value>local</value> </property> <property> <name>oracle.jdbc.J2EE13Compliant</name> <value>true</value> </property> <property> <name>oracle.jdbc.V8Compatible</name> <value>true</value> </property> </systemProperties> </configuration> </plugin>}} {quote} |
I can't use cargo for jetty because I need to configure a custom realm (org.mortbay.jetty.security.HashUserRealm), webAppSourceDirectory, overrideWebXml and contextPath.
I.e. I want to be able to do with cargo exactly what I can do with jetty:run - this is all in order to achieve automated integration testing. My maven-jetty-plugin pom: {quote} <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <webAppSourceDirectory> WebContent </webAppSourceDirectory> <overrideWebXml> test/resources/override-web.xml </overrideWebXml> <contextPath>/TAMSWeb</contextPath> <scanIntervalSeconds>0</scanIntervalSeconds> <scanTargetPatterns> <scanTargetPattern> <directory>WebContent</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </scanTargetPattern> </scanTargetPatterns> <userRealms> <userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> <!-- overrides websphere's default realm --> <name>default</name> <config> test/resources/jetty-user-realm.properties </config> </userRealm> </userRealms> <systemProperties> <property> <name>tams.environment</name> <value>local</value> </property> <property> <name>oracle.jdbc.J2EE13Compliant</name> <value>true</value> </property> <property> <name>oracle.jdbc.V8Compatible</name> <value>true</value> </property> </systemProperties> </configuration> </plugin> {quote} |
Savas Ali Tokmen
made changes -
| Description |
I can't use cargo for jetty because I need to configure a custom realm (org.mortbay.jetty.security.HashUserRealm), webAppSourceDirectory, overrideWebXml and contextPath.
I.e. I want to be able to do with cargo exactly what I can do with jetty:run - this is all in order to achieve automated integration testing. My maven-jetty-plugin pom: {quote} <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <webAppSourceDirectory> WebContent </webAppSourceDirectory> <overrideWebXml> test/resources/override-web.xml </overrideWebXml> <contextPath>/TAMSWeb</contextPath> <scanIntervalSeconds>0</scanIntervalSeconds> <scanTargetPatterns> <scanTargetPattern> <directory>WebContent</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </scanTargetPattern> </scanTargetPatterns> <userRealms> <userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> <!-- overrides websphere's default realm --> <name>default</name> <config> test/resources/jetty-user-realm.properties </config> </userRealm> </userRealms> <systemProperties> <property> <name>tams.environment</name> <value>local</value> </property> <property> <name>oracle.jdbc.J2EE13Compliant</name> <value>true</value> </property> <property> <name>oracle.jdbc.V8Compatible</name> <value>true</value> </property> </systemProperties> </configuration> </plugin> {quote} |
I can't use cargo for jetty because I need to configure a custom realm (org.mortbay.jetty.security.HashUserRealm), webAppSourceDirectory, overrideWebXml and contextPath.
I.e. I want to be able to do with cargo exactly what I can do with jetty:run - this is all in order to achieve automated integration testing. My maven-jetty-plugin pom: {noformat} <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <webAppSourceDirectory> WebContent </webAppSourceDirectory> <overrideWebXml> test/resources/override-web.xml </overrideWebXml> <contextPath>/TAMSWeb</contextPath> <scanIntervalSeconds>0</scanIntervalSeconds> <scanTargetPatterns> <scanTargetPattern> <directory>WebContent</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </scanTargetPattern> </scanTargetPatterns> <userRealms> <userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> <!-- overrides websphere's default realm --> <name>default</name> <config> test/resources/jetty-user-realm.properties </config> </userRealm> </userRealms> <systemProperties> <property> <name>tams.environment</name> <value>local</value> </property> <property> <name>oracle.jdbc.J2EE13Compliant</name> <value>true</value> </property> <property> <name>oracle.jdbc.V8Compatible</name> <value>true</value> </property> </systemProperties> </configuration> </plugin> {noformat} |
Savas Ali Tokmen
made changes -
| Comment | [ I think you can try overriding via http://cargo.codehaus.org/Configuration+files+option ] |
Savas Ali Tokmen
made changes -
Savas Ali Tokmen
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.0.2 [ 16464 ] | |
| Resolution | Fixed [ 1 ] |
Savas Ali Tokmen
made changes -