You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2009/05/29 20:27:24 UTC

Re: svn commit: r779869 - /tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml

Can you tell us what modules are failing?

Thanks,
Raymond
--------------------------------------------------
From: <an...@apache.org>
Sent: Thursday, May 28, 2009 11:51 PM
To: <co...@tuscany.apache.org>
Subject: svn commit: r779869 - 
/tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml

> Author: antelder
> Date: Fri May 29 06:51:32 2009
> New Revision: 779869
>
> URL: http://svn.apache.org/viewvc?rev=779869&view=rev
> Log:
> Go back to eplicit dependencies as the features are dragging extra stuff 
> that doesnt work with the tomcat integration yet and is cauasing failures
>
> Modified:
>    tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>
> Modified: tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
> URL: 
> http://svn.apache.org/viewvc/tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml?rev=779869&r1=779868&r2=779869&view=diff
> ==============================================================================
> --- tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml (original)
> +++ tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml Fri May 29 
> 06:51:32 2009
> @@ -48,25 +48,13 @@
>         </dependency>
>         <dependency>
>             <groupId>org.apache.tuscany.sca</groupId>
> -            <artifactId>tuscany-feature-webservice</artifactId>
> +            <artifactId>tuscany-implementation-web-runtime</artifactId>
>             <version>2.0-SNAPSHOT</version>
> -            <type>pom</type>
> -            <exclusions>
> -                <exclusion>
> -                    <groupId>org.apache.tuscany.sca</groupId>
> -                    <artifactId>tuscany-host-jetty</artifactId>
> -                </exclusion>
> -                <exclusion>
> -                    <groupId>org.apache.tuscany.sca</groupId>
> -                    <artifactId>tuscany-host-tomcat</artifactId>
> -                </exclusion>
> -            </exclusions>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.tuscany.sca</groupId>
> -            <artifactId>tuscany-feature-webapp</artifactId>
> +            <artifactId>tuscany-binding-ws-axis2</artifactId>
>             <version>2.0-SNAPSHOT</version>
> -            <type>pom</type>
>         </dependency>
>
>     </dependencies>
>
> 

Re: svn commit: r779869 - /tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml

Posted by Raymond Feng <en...@gmail.com>.
We use the features (or profiles) to group a list of related modules 
together based on the functions they provide. It provides an easy-to-use 
dependency for our samples in maven. Then we can build distributions to 
assemble a set of features into a downloadable archive.

The feature/profile is very lightweight (just a pom). We can create as many 
features as we want. For the Tomcat distribution, it's probably not an 
all-for-one thing. Depending on what functions the webapp wants to use, it 
can contain various features. For example, if web services are needed, then 
the distro has to contain binding.ws. The OSGi stuff can be potentially used 
in the webapp too.

We can use the exclusion to exclude some of the stuff or define a new 
feature/profile.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <an...@gmail.com>
Sent: Monday, June 01, 2009 12:32 AM
To: <de...@tuscany.apache.org>
Subject: Re: svn commit: r779869 - 
/tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml

> The problem is with the various webapp toolkits like myfaces and
> stripes which get included with the tuscany runtime and try to
> initialize themselves but the webapps don't have the correct
> configuration so that results in spurious errors which make debugging
> the tomcat integration harder, but also I think for now at least
> (perhaps even always) we shouldn't embed client things like myfaces
> and stripes with the tuscany runtime and it would be better to have
> each webapp include those themselves if they need. Another issue is
> that when using the features other unnecessary dependencies are
> getting included like osgi jars.
>
> To be honest I don't understand what the feature approach gives us
> here and think its better and clearer and simpler to just use the
> explicit dependencies so would really prefer we stick with that for
> now.
>
>   ...ant
>
> On Fri, May 29, 2009 at 7:27 PM, Raymond Feng <en...@gmail.com> wrote:
>> Can you tell us what modules are failing?
>>
>> Thanks,
>> Raymond
>> --------------------------------------------------
>> From: <an...@apache.org>
>> Sent: Thursday, May 28, 2009 11:51 PM
>> To: <co...@tuscany.apache.org>
>> Subject: svn commit: r779869 -
>> /tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>>
>>> Author: antelder
>>> Date: Fri May 29 06:51:32 2009
>>> New Revision: 779869
>>>
>>> URL: http://svn.apache.org/viewvc?rev=779869&view=rev
>>> Log:
>>> Go back to eplicit dependencies as the features are dragging extra stuff
>>> that doesnt work with the tomcat integration yet and is cauasing 
>>> failures
>>>
>>> Modified:
>>>   tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>>>
>>> Modified: tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>>> URL:
>>> http://svn.apache.org/viewvc/tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml?rev=779869&r1=779868&r2=779869&view=diff
>>>
>>> ==============================================================================
>>> --- tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml (original)
>>> +++ tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml Fri May 29
>>> 06:51:32 2009
>>> @@ -48,25 +48,13 @@
>>>        </dependency>
>>>        <dependency>
>>>            <groupId>org.apache.tuscany.sca</groupId>
>>> -            <artifactId>tuscany-feature-webservice</artifactId>
>>> +            <artifactId>tuscany-implementation-web-runtime</artifactId>
>>>            <version>2.0-SNAPSHOT</version>
>>> -            <type>pom</type>
>>> -            <exclusions>
>>> -                <exclusion>
>>> -                    <groupId>org.apache.tuscany.sca</groupId>
>>> -                    <artifactId>tuscany-host-jetty</artifactId>
>>> -                </exclusion>
>>> -                <exclusion>
>>> -                    <groupId>org.apache.tuscany.sca</groupId>
>>> -                    <artifactId>tuscany-host-tomcat</artifactId>
>>> -                </exclusion>
>>> -            </exclusions>
>>>        </dependency>
>>>        <dependency>
>>>            <groupId>org.apache.tuscany.sca</groupId>
>>> -            <artifactId>tuscany-feature-webapp</artifactId>
>>> +            <artifactId>tuscany-binding-ws-axis2</artifactId>
>>>            <version>2.0-SNAPSHOT</version>
>>> -            <type>pom</type>
>>>        </dependency>
>>>
>>>    </dependencies>
>>>
>>>
>> 

Re: svn commit: r779869 - /tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml

Posted by ant elder <an...@gmail.com>.
The problem is with the various webapp toolkits like myfaces and
stripes which get included with the tuscany runtime and try to
initialize themselves but the webapps don't have the correct
configuration so that results in spurious errors which make debugging
the tomcat integration harder, but also I think for now at least
(perhaps even always) we shouldn't embed client things like myfaces
and stripes with the tuscany runtime and it would be better to have
each webapp include those themselves if they need. Another issue is
that when using the features other unnecessary dependencies are
getting included like osgi jars.

To be honest I don't understand what the feature approach gives us
here and think its better and clearer and simpler to just use the
explicit dependencies so would really prefer we stick with that for
now.

   ...ant

On Fri, May 29, 2009 at 7:27 PM, Raymond Feng <en...@gmail.com> wrote:
> Can you tell us what modules are failing?
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: <an...@apache.org>
> Sent: Thursday, May 28, 2009 11:51 PM
> To: <co...@tuscany.apache.org>
> Subject: svn commit: r779869 -
> /tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>
>> Author: antelder
>> Date: Fri May 29 06:51:32 2009
>> New Revision: 779869
>>
>> URL: http://svn.apache.org/viewvc?rev=779869&view=rev
>> Log:
>> Go back to eplicit dependencies as the features are dragging extra stuff
>> that doesnt work with the tomcat integration yet and is cauasing failures
>>
>> Modified:
>>   tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>>
>> Modified: tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml
>> URL:
>> http://svn.apache.org/viewvc/tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml?rev=779869&r1=779868&r2=779869&view=diff
>>
>> ==============================================================================
>> --- tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml (original)
>> +++ tuscany/java/sca/distribution/tomcat/tomcat-war/pom.xml Fri May 29
>> 06:51:32 2009
>> @@ -48,25 +48,13 @@
>>        </dependency>
>>        <dependency>
>>            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-webservice</artifactId>
>> +            <artifactId>tuscany-implementation-web-runtime</artifactId>
>>            <version>2.0-SNAPSHOT</version>
>> -            <type>pom</type>
>> -            <exclusions>
>> -                <exclusion>
>> -                    <groupId>org.apache.tuscany.sca</groupId>
>> -                    <artifactId>tuscany-host-jetty</artifactId>
>> -                </exclusion>
>> -                <exclusion>
>> -                    <groupId>org.apache.tuscany.sca</groupId>
>> -                    <artifactId>tuscany-host-tomcat</artifactId>
>> -                </exclusion>
>> -            </exclusions>
>>        </dependency>
>>        <dependency>
>>            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-webapp</artifactId>
>> +            <artifactId>tuscany-binding-ws-axis2</artifactId>
>>            <version>2.0-SNAPSHOT</version>
>> -            <type>pom</type>
>>        </dependency>
>>
>>    </dependencies>
>>
>>
>