The javaee.api module already adds a dependency to the javax.api module.
So the problem doesn't lie there. Infact, this issue is specific to the
way the Arquillian tests are integrated within AS7. I have figured a way
to get past this and am going to send out another mail explaining what
the problem was (just trying to figure out why things are the way they
are currently)
-Jaikiran
On Wednesday 23 March 2011 08:53 PM, Carlo de Wolf wrote:
The quick fix is adding it to EjbDependencyDeploymentUnitProcessor,
but
I'm more in favor of centralizing class loading logic. Although on
re-reading 8.3 there is a lot of tech specific muck.
Carlo
On 03/23/2011 04:04 PM, Ales Justin wrote:
> Cool, nice approach.
> But then this must be auto-magically added to every JEE deployment -- which imo
should already be the case.
> (along with few other "useful" modules -- which was already discussed and I
think we all agreed it should be done)
> Then as David said, we need to see which module is missing this
"javax.api".
>
> On Mar 23, 2011, at 3:37 PM, Jason T. Greene wrote:
>
>> javax.api is a special aggregation module where we filter stuff from the
>> jdk we don't want in the app server (things we redefine)
>>
>> On 3/23/11 9:32 AM, Ales Justin wrote:
>>> Last time I checked javax.naming.Context was part of JDK.
>>> Or is "javax.api" module where we put those javax.* JDK classes?
>>>
>>> On Mar 23, 2011, at 3:19 PM, David M. Lloyd wrote:
>>>
>>>> The module that is missing is "javax.api" - you should not add
"system".
>>>> The question is, from what module is this declaration missing?
>>>>
>>>> On 03/23/2011 08:35 AM, Ales Justin wrote:
>>>>> What about if you add "system" module?
>>>>>
>>>>> On Mar 23, 2011, at 1:02 PM, Jaikiran Pai wrote:
>>>>>
>>>>>> I'm trying to write a test in testsuite/smoke-tests. The test
is
>>>>>> pretty simple and has a javax.naming.Context import in it. I
keep
>>>>>> running into this CNFE every time I try running it:
>>>>>>
>>>>>> 17:12:22,623 SEVERE
[org.jboss.arquillian.protocol.jmx.JMXTestRunner]
>>>>>> (pool-31-thread-1) Error in test method:
testLocalBindingsOnSLSB:
>>>>>> java.lang.NoClassDefFoundError: javax/naming/Context
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> jboss-as7-dev mailing list
>>>>> jboss-as7-dev(a)lists.jboss.org
>>>>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>>>
>>>> --
>>>> - DML
>>>> _______________________________________________
>>>> jboss-as7-dev mailing list
>>>> jboss-as7-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>> --
>> Jason T. Greene
>> JBoss, a division of Red Hat
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev