You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lr...@apache.org> on 2008/02/08 18:30:43 UTC
Tuscany web-apps and jUnit dependencies
I'm trying to run our sample webapps, and realize that they are all
requiring jUnit as dependencies, even when there is no test available.
This might be a side effect of our effort to automate the run of
iTests in a web container. I just want to double check if others are
seeing the same issue, and I'll try to investigate the issue later
today.
Error 500: Filter [tuscany]:
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
is missing another required class.
and the following stack trace
[2/7/08 17:10:28:882 PST] 00000023 WebApp E [Servlet
Error]-[Filter [tuscany]:
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
is missing another required class.
]: java.lang.NoClassDefFoundError: junit.framework.Test
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.<init>(TuscanyServletFilter.java:46)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1300)
at java.beans.Beans.instantiate(Beans.java:219)
at java.beans.Beans.instantiate(Beans.java:63)
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Raymond Feng <en...@gmail.com>.
+1 on what Sebastien described. In fact, the refactored code already works
this way.
Thanks,
Raymond
----- Original Message -----
From: "Jean-Sebastien Delfino" <js...@apache.org>
To: <tu...@ws.apache.org>
Sent: Monday, February 11, 2008 6:46 PM
Subject: Re: Tuscany web-apps and jUnit dependencies
> Simon Nash wrote:
>> ant elder wrote:
>>> On Feb 8, 2008 8:55 PM, Luciano Resende <lu...@gmail.com> wrote:
>>>
>>> <snip>
>>>
>>> As for the other items, If we have TuscanyServletFilter and
>>>> TuscanyTestServletFilter, it would only work for the iTests, as they
>>>> have generated web.xml. If we want to have simmilar aproach on our
>>>> sample applications, that have real web.xml, how would we do it ?
>>>>
>>>
>>> I already said earlier on the other thread but just to reiterate I don't
>>> think we should use this approach with the samples. They need to be as
>>> simple and clear as possible so they're easy for new users to
>>> understand.
>>>
>>> ...ant
>>>
>> +1 for keeping the samples as simple as possible.
>>
>> Is it possible to automate the running of sample tests in a way that
>> doesn't change the contents of the sample war files? I'm thinking of
>> a test framework that starts Tomcat or Jetty, deploys a sample war,
>> then runs some JUnit tests. I don't see why this would need any change
>> to the web.xml in the sample war.
>>
>> Simon
>>
>
> My 2c, with my application developer hat on:
>
> My webapp should not have to depend on junit unless I'm packaging test
> cases that need junit.
>
> I don't want any fancy web.xml generator as it'll wipe out the application
> servlets and welcome pages that I'll declare in web.xml.
>
> My application's web.xml should just contain the following:
> <filter>
> <filter-name>tuscany</filter-name>
> <filter-class>
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter
> </filter-class>
> </filter>
>
> and in that case the TuscanyServletFilter should not open execution of
> test cases under the /junit path.
>
> To enable junit test execution, I should just have to add the following to
> my web.xml:
> <filter>
> <filter-name>tuscany-junit</filter-name>
> <filter-class>
> org.apache.tuscany.sca.whatever.TuscanyJUnitServletFilter
> </filter-class>
> </filter>
>
> Finally, samples should show me how to do what I just described.
>
> --
> Jean-Sebastien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Simon Nash wrote:
> ant elder wrote:
>> On Feb 8, 2008 8:55 PM, Luciano Resende <lu...@gmail.com> wrote:
>>
>> <snip>
>>
>> As for the other items, If we have TuscanyServletFilter and
>>> TuscanyTestServletFilter, it would only work for the iTests, as they
>>> have generated web.xml. If we want to have simmilar aproach on our
>>> sample applications, that have real web.xml, how would we do it ?
>>>
>>
>> I already said earlier on the other thread but just to reiterate I don't
>> think we should use this approach with the samples. They need to be as
>> simple and clear as possible so they're easy for new users to understand.
>>
>> ...ant
>>
> +1 for keeping the samples as simple as possible.
>
> Is it possible to automate the running of sample tests in a way that
> doesn't change the contents of the sample war files? I'm thinking of
> a test framework that starts Tomcat or Jetty, deploys a sample war,
> then runs some JUnit tests. I don't see why this would need any change
> to the web.xml in the sample war.
>
> Simon
>
My 2c, with my application developer hat on:
My webapp should not have to depend on junit unless I'm packaging test
cases that need junit.
I don't want any fancy web.xml generator as it'll wipe out the
application servlets and welcome pages that I'll declare in web.xml.
My application's web.xml should just contain the following:
<filter>
<filter-name>tuscany</filter-name>
<filter-class>
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter
</filter-class>
</filter>
and in that case the TuscanyServletFilter should not open execution of
test cases under the /junit path.
To enable junit test execution, I should just have to add the following
to my web.xml:
<filter>
<filter-name>tuscany-junit</filter-name>
<filter-class>
org.apache.tuscany.sca.whatever.TuscanyJUnitServletFilter
</filter-class>
</filter>
Finally, samples should show me how to do what I just described.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Simon Nash <na...@apache.org>.
ant elder wrote:
> On Feb 8, 2008 8:55 PM, Luciano Resende <lu...@gmail.com> wrote:
>
> <snip>
>
> As for the other items, If we have TuscanyServletFilter and
>> TuscanyTestServletFilter, it would only work for the iTests, as they
>> have generated web.xml. If we want to have simmilar aproach on our
>> sample applications, that have real web.xml, how would we do it ?
>>
>
> I already said earlier on the other thread but just to reiterate I don't
> think we should use this approach with the samples. They need to be as
> simple and clear as possible so they're easy for new users to understand.
>
> ...ant
>
+1 for keeping the samples as simple as possible.
Is it possible to automate the running of sample tests in a way that
doesn't change the contents of the sample war files? I'm thinking of
a test framework that starts Tomcat or Jetty, deploys a sample war,
then runs some JUnit tests. I don't see why this would need any change
to the web.xml in the sample war.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by ant elder <an...@gmail.com>.
On Feb 8, 2008 8:55 PM, Luciano Resende <lu...@gmail.com> wrote:
<snip>
As for the other items, If we have TuscanyServletFilter and
> TuscanyTestServletFilter, it would only work for the iTests, as they
> have generated web.xml. If we want to have simmilar aproach on our
> sample applications, that have real web.xml, how would we do it ?
>
I already said earlier on the other thread but just to reiterate I don't
think we should use this approach with the samples. They need to be as
simple and clear as possible so they're easy for new users to understand.
...ant
Re: Tuscany web-apps and jUnit dependencies
Posted by Raymond Feng <en...@gmail.com>.
----- Original Message -----
From: "Luciano Resende" <lu...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Friday, February 08, 2008 12:55 PM
Subject: Re: Tuscany web-apps and jUnit dependencies
> +1 for a new module.
>
> As for the other items, If we have TuscanyServletFilter and
> TuscanyTestServletFilter, it would only work for the iTests, as they
> have generated web.xml. If we want to have simmilar aproach on our
> sample applications, that have real web.xml, how would we do it ?
We could simply configure the web.xml to be similar with what the plugin
generate. We could even remove the web.xml and have the plugin generate it.
>
> I'd probably suggest that we make the "host-webapp-junit" or
> "host-webapp-testing" more like a "clone" of the original
> "host-webapp", add the necessary logic there for testing, and then,
> the only thing we would need to do to enable the testing is change
> dependency from "host-webapp" to "host-webapp-junit", and this can be
> easily accomplished by maven profiles, right ?
I don't like the "clone". If that's the case, why don't we keep it in the
same module (now it already tolerates even if the junit is not on the
classpath)?
>
> Thoughts ?
>
> On Feb 8, 2008 10:41 AM, Raymond Feng <en...@gmail.com> wrote:
>> As the first step, I fixed the code (r619973) to tolerate the case that
>> junit is not present on the classpath. Now the webapp samples should be
>> working as-is now.
>>
>> How about the following refactoring?
>>
>> 1) Create a new module as "host-webapp-junit" under "modules" folder. (I
>> think it should be under "modules" instead of "tools" since it's the
>> runtime
>> code).
>> 2) Rename WebTestRunner to TuscanyTestServletFilter and extend it from
>> the
>> TuscanyServletFilter
>> 3) Adjust the maven plugin togenerate the web.xml for itests to use
>> TuscanyTestServletFilter
>> 4) Adjust the itest/pom.xml to reference host-webapp-junit as the
>> dependency
>> for "webapp" profile?
>>
>> Thanks,
>> Raymond
>>
>>
>> ----- Original Message -----
>> From: "Jean-Sebastien Delfino" <js...@apache.org>
>> To: <tu...@ws.apache.org>
>> Cc: <lr...@apache.org>
>> Sent: Friday, February 08, 2008 10:12 AM
>> Subject: Re: Tuscany web-apps and jUnit dependencies
>>
>>
>> > ant elder wrote:
>> >> On Feb 8, 2008 5:30 PM, Luciano Resende <lr...@apache.org> wrote:
>> >>
>> >>> I'm trying to run our sample webapps, and realize that they are all
>> >>> requiring jUnit as dependencies, even when there is no test
>> >>> available.
>> >>> This might be a side effect of our effort to automate the run of
>> >>> iTests in a web container. I just want to double check if others are
>> >>> seeing the same issue, and I'll try to investigate the issue later
>> >>> today.
>> >>>
>> >>> Error 500: Filter [tuscany]:
>> >>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found,
>> >>> but
>> >>> is missing another required class.
>> >>>
>> >>> and the following stack trace
>> >>>
>> >>> [2/7/08 17:10:28:882 PST] 00000023 WebApp E [Servlet
>> >>> Error]-[Filter [tuscany]:
>> >>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found,
>> >>> but
>> >>> is missing another required class.
>> >>> ]: java.lang.NoClassDefFoundError: junit.framework.Test
>> >>> at java.lang.J9VMInternals.verifyImpl(Native Method)
>> >>> at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
>> >>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
>> >>> at
>> >>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.<init>(
>> >>> TuscanyServletFilter.java:46)
>> >>> at java.lang.Class.newInstanceImpl(Native Method)
>> >>> at java.lang.Class.newInstance(Class.java:1300)
>> >>> at java.beans.Beans.instantiate(Beans.java:219)
>> >>> at java.beans.Beans.instantiate(Beans.java:63)
>> >>>
>> >>
>> >> Yes i also see it. It has come from the webapp itest work. I still
>> >> think
>> >> it
>> >> would be better to move that out of the runtime into an itest module.
>> >>
>> >> ...ant
>> >>
>> >
>> > Me too, normal apps should not require junit.
>> >
>> > --
>> > Jean-Sebastien
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Luciano Resende <lu...@gmail.com>.
+1 for a new module.
As for the other items, If we have TuscanyServletFilter and
TuscanyTestServletFilter, it would only work for the iTests, as they
have generated web.xml. If we want to have simmilar aproach on our
sample applications, that have real web.xml, how would we do it ?
I'd probably suggest that we make the "host-webapp-junit" or
"host-webapp-testing" more like a "clone" of the original
"host-webapp", add the necessary logic there for testing, and then,
the only thing we would need to do to enable the testing is change
dependency from "host-webapp" to "host-webapp-junit", and this can be
easily accomplished by maven profiles, right ?
Thoughts ?
On Feb 8, 2008 10:41 AM, Raymond Feng <en...@gmail.com> wrote:
> As the first step, I fixed the code (r619973) to tolerate the case that
> junit is not present on the classpath. Now the webapp samples should be
> working as-is now.
>
> How about the following refactoring?
>
> 1) Create a new module as "host-webapp-junit" under "modules" folder. (I
> think it should be under "modules" instead of "tools" since it's the runtime
> code).
> 2) Rename WebTestRunner to TuscanyTestServletFilter and extend it from the
> TuscanyServletFilter
> 3) Adjust the maven plugin togenerate the web.xml for itests to use
> TuscanyTestServletFilter
> 4) Adjust the itest/pom.xml to reference host-webapp-junit as the dependency
> for "webapp" profile?
>
> Thanks,
> Raymond
>
>
> ----- Original Message -----
> From: "Jean-Sebastien Delfino" <js...@apache.org>
> To: <tu...@ws.apache.org>
> Cc: <lr...@apache.org>
> Sent: Friday, February 08, 2008 10:12 AM
> Subject: Re: Tuscany web-apps and jUnit dependencies
>
>
> > ant elder wrote:
> >> On Feb 8, 2008 5:30 PM, Luciano Resende <lr...@apache.org> wrote:
> >>
> >>> I'm trying to run our sample webapps, and realize that they are all
> >>> requiring jUnit as dependencies, even when there is no test available.
> >>> This might be a side effect of our effort to automate the run of
> >>> iTests in a web container. I just want to double check if others are
> >>> seeing the same issue, and I'll try to investigate the issue later
> >>> today.
> >>>
> >>> Error 500: Filter [tuscany]:
> >>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
> >>> is missing another required class.
> >>>
> >>> and the following stack trace
> >>>
> >>> [2/7/08 17:10:28:882 PST] 00000023 WebApp E [Servlet
> >>> Error]-[Filter [tuscany]:
> >>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
> >>> is missing another required class.
> >>> ]: java.lang.NoClassDefFoundError: junit.framework.Test
> >>> at java.lang.J9VMInternals.verifyImpl(Native Method)
> >>> at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
> >>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
> >>> at
> >>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.<init>(
> >>> TuscanyServletFilter.java:46)
> >>> at java.lang.Class.newInstanceImpl(Native Method)
> >>> at java.lang.Class.newInstance(Class.java:1300)
> >>> at java.beans.Beans.instantiate(Beans.java:219)
> >>> at java.beans.Beans.instantiate(Beans.java:63)
> >>>
> >>
> >> Yes i also see it. It has come from the webapp itest work. I still think
> >> it
> >> would be better to move that out of the runtime into an itest module.
> >>
> >> ...ant
> >>
> >
> > Me too, normal apps should not require junit.
> >
> > --
> > Jean-Sebastien
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Raymond Feng wrote:
> As the first step, I fixed the code (r619973) to tolerate the case that
> junit is not present on the classpath. Now the webapp samples should be
> working as-is now.
>
> How about the following refactoring?
>
> 1) Create a new module as "host-webapp-junit" under "modules" folder. (I
> think it should be under "modules" instead of "tools" since it's the
> runtime code).
+1
> 2) Rename WebTestRunner to TuscanyTestServletFilter and extend it from
> the TuscanyServletFilter
Do we have to?
> 3) Adjust the maven plugin togenerate the web.xml for itests to use
> TuscanyTestServletFilter
Do we have to? Can't we just have web.xml just there in the modules?
> 4) Adjust the itest/pom.xml to reference host-webapp-junit as the
> dependency for "webapp" profile?
+1
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Raymond Feng <en...@gmail.com>.
As the first step, I fixed the code (r619973) to tolerate the case that
junit is not present on the classpath. Now the webapp samples should be
working as-is now.
How about the following refactoring?
1) Create a new module as "host-webapp-junit" under "modules" folder. (I
think it should be under "modules" instead of "tools" since it's the runtime
code).
2) Rename WebTestRunner to TuscanyTestServletFilter and extend it from the
TuscanyServletFilter
3) Adjust the maven plugin togenerate the web.xml for itests to use
TuscanyTestServletFilter
4) Adjust the itest/pom.xml to reference host-webapp-junit as the dependency
for "webapp" profile?
Thanks,
Raymond
----- Original Message -----
From: "Jean-Sebastien Delfino" <js...@apache.org>
To: <tu...@ws.apache.org>
Cc: <lr...@apache.org>
Sent: Friday, February 08, 2008 10:12 AM
Subject: Re: Tuscany web-apps and jUnit dependencies
> ant elder wrote:
>> On Feb 8, 2008 5:30 PM, Luciano Resende <lr...@apache.org> wrote:
>>
>>> I'm trying to run our sample webapps, and realize that they are all
>>> requiring jUnit as dependencies, even when there is no test available.
>>> This might be a side effect of our effort to automate the run of
>>> iTests in a web container. I just want to double check if others are
>>> seeing the same issue, and I'll try to investigate the issue later
>>> today.
>>>
>>> Error 500: Filter [tuscany]:
>>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
>>> is missing another required class.
>>>
>>> and the following stack trace
>>>
>>> [2/7/08 17:10:28:882 PST] 00000023 WebApp E [Servlet
>>> Error]-[Filter [tuscany]:
>>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
>>> is missing another required class.
>>> ]: java.lang.NoClassDefFoundError: junit.framework.Test
>>> at java.lang.J9VMInternals.verifyImpl(Native Method)
>>> at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
>>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
>>> at
>>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.<init>(
>>> TuscanyServletFilter.java:46)
>>> at java.lang.Class.newInstanceImpl(Native Method)
>>> at java.lang.Class.newInstance(Class.java:1300)
>>> at java.beans.Beans.instantiate(Beans.java:219)
>>> at java.beans.Beans.instantiate(Beans.java:63)
>>>
>>
>> Yes i also see it. It has come from the webapp itest work. I still think
>> it
>> would be better to move that out of the runtime into an itest module.
>>
>> ...ant
>>
>
> Me too, normal apps should not require junit.
>
> --
> Jean-Sebastien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by Jean-Sebastien Delfino <js...@apache.org>.
ant elder wrote:
> On Feb 8, 2008 5:30 PM, Luciano Resende <lr...@apache.org> wrote:
>
>> I'm trying to run our sample webapps, and realize that they are all
>> requiring jUnit as dependencies, even when there is no test available.
>> This might be a side effect of our effort to automate the run of
>> iTests in a web container. I just want to double check if others are
>> seeing the same issue, and I'll try to investigate the issue later
>> today.
>>
>> Error 500: Filter [tuscany]:
>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
>> is missing another required class.
>>
>> and the following stack trace
>>
>> [2/7/08 17:10:28:882 PST] 00000023 WebApp E [Servlet
>> Error]-[Filter [tuscany]:
>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
>> is missing another required class.
>> ]: java.lang.NoClassDefFoundError: junit.framework.Test
>> at java.lang.J9VMInternals.verifyImpl(Native Method)
>> at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
>> at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.<init>(
>> TuscanyServletFilter.java:46)
>> at java.lang.Class.newInstanceImpl(Native Method)
>> at java.lang.Class.newInstance(Class.java:1300)
>> at java.beans.Beans.instantiate(Beans.java:219)
>> at java.beans.Beans.instantiate(Beans.java:63)
>>
>
> Yes i also see it. It has come from the webapp itest work. I still think it
> would be better to move that out of the runtime into an itest module.
>
> ...ant
>
Me too, normal apps should not require junit.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Tuscany web-apps and jUnit dependencies
Posted by ant elder <an...@gmail.com>.
On Feb 8, 2008 5:30 PM, Luciano Resende <lr...@apache.org> wrote:
> I'm trying to run our sample webapps, and realize that they are all
> requiring jUnit as dependencies, even when there is no test available.
> This might be a side effect of our effort to automate the run of
> iTests in a web container. I just want to double check if others are
> seeing the same issue, and I'll try to investigate the issue later
> today.
>
> Error 500: Filter [tuscany]:
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
> is missing another required class.
>
> and the following stack trace
>
> [2/7/08 17:10:28:882 PST] 00000023 WebApp E [Servlet
> Error]-[Filter [tuscany]:
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter was found, but
> is missing another required class.
> ]: java.lang.NoClassDefFoundError: junit.framework.Test
> at java.lang.J9VMInternals.verifyImpl(Native Method)
> at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
> at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.<init>(
> TuscanyServletFilter.java:46)
> at java.lang.Class.newInstanceImpl(Native Method)
> at java.lang.Class.newInstance(Class.java:1300)
> at java.beans.Beans.instantiate(Beans.java:219)
> at java.beans.Beans.instantiate(Beans.java:63)
>
Yes i also see it. It has come from the webapp itest work. I still think it
would be better to move that out of the runtime into an itest module.
...ant