> Thanks for the investigation.
>
> Venkat, do you want this filed as a bug against JavaEE SE?
>
> Jim Whiteley wrote:
>> On Mon, Oct 26, 2009 at 3:28 PM, Jim Whiteley <
[hidden email]>
>> wrote:
>>
>>> On Fri, Oct 23, 2009 at 11:01 AM, Andreas Egloff
>>> <
[hidden email]> wrote:
>>>
>>>> Besides starting to modify the build scripts one way (which I don't
>>>> know if
>>>> acceptable and I have not tried) might be to have your war packaged
>>>> into an
>>>> ear; e.g. create and add a "Java EE/Enterprise Application", in
>>>> project
>>>> properties add "JAR/Folder" and remove what's not needed.
>>>>
>>> This almost works. I'm able to add the .ear to the CASA, and deploy
>>> it, but when my WS consumer tries to make a call, I get either
>>> ThreadDeath exceptions, or "NoClassDefFoundError: Could not initialize
>>> class com.sun.xml.ws.fault.SOAPFaultBuilder".
>>>
>>>
>>
>> This appears to be a bug. I've got two NB projects, one with the WS
>> provider, and the other with the WS Consumer. I put them both in a
>> service assembly, and it works: the WS consumer calls into the WS
>> provider through the NMR.
>>
>> As a proof of concept, I take the .war produced by the WS consumer
>> project, and treat it as "external" -- as though it didn't come from
>> an external project. I create a new Enterprise Application as
>> described above, and add the WS consumer .war to this project. I then
>> create a new service assembly containing the WS provider NB project,
>> and this Enterprise Application containing the "external" .war. When
>> I deploy it, I see a couple of problems:
>>
>> When restarting glassfish, although the admin console says it is
>> deployed and started, I can't hit my servlet that is part of the WS
>> consumer .war (server returns 404).
>>
>> If I undeploy the service assembly, and redeploy it, I no longer get
>> the 404. Instead, I get a ThreadDeath exception the first time the WS
>> Consumer is invoked. Each time thereafter I get
>> "NoClassDefFoundError: Could not initialize class
>> com.sun.xml.ws.fault.SOAPFaultBuilder." I believe these subsequent
>> errors are a result of the first ThreadDeath error [1].
>>
>> Keep in mind that this is the same .war that works if I build the
>> service assembly out of two NB projects directly, instead of the
>> enterprise app wrapper project.
>>
>> [1]
>>
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppStoppedIllegalAccessError
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
[hidden email]
>> For additional commands, e-mail:
[hidden email]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>