Issue Details (XML | Word | Printable)

Key: GLASSFISH-18544
Type: Task Task
Status: Open Open
Priority: Minor Minor
Assignee: guojun.shan
Reporter: Tim Quinn
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
glassfish

Removing the ejb-container dependency when building the app client container causes NPE in naming

Created: 21/Mar/12 07:55 PM   Updated: 02/Jul/13 03:15 AM
Component/s: naming
Affects Version/s: 4.0
Fix Version/s: future release

Time Tracking:
Not Specified

File Attachments: 1. Text File npe.txt (4 kB) 21/Mar/12 07:57 PM - Tim Quinn
2. File TestEJB.ear (4 kB) 21/Mar/12 07:57 PM - Tim Quinn

Issue Links:
Related
 

Tags:
Participants: guojun.shan, jthoennes, Tim Quinn and Tom Mueller


 Description  « Hide

In trying to reduce the footprint of the ACC, one step is to remove the dependency on the ejb container. This causes no build-time problems because the ACC itself does not depend on the class(es) in the ejb container that are used for injecting @EJB references, for example.

But if you rebuild the appserver/appclient/client/acc and appserver/appclient/client/acc-standalone components having removed the ejb dependency and then deploy an app containing an EJB and a client that uses the EJB, running the client fails with an NPE. (stack trace attached)

To reproduce:

1. cd to main/appserver/appclient/client/acc.
2. Edit the pom.xml file to comment out the dependency on the ejb-container module.
3. mvn clean install ; cp target/gf-client-module.jar glassfish3/glassfish/modules
4. cd ../acc-standalone
5. mvn clean install ; cp target/gf-client.jar glassfish3/glassfish/lib
6. Restart the server.
7. Deploy the attached app using "asadmin deploy --retrieve localdir TestEJB.ear"
8. Try to run the client using "appclient localdir/TestEJBClient.jar"



Sort Order: Ascending order - Click to sort in descending order
Tim Quinn made changes - 21/Mar/12 07:57 PM
Field Original Value New Value
Attachment npe.txt [ 49567 ]
Attachment TestEJB.ear [ 49568 ]
Tim Quinn made changes - 22/Mar/12 02:54 PM
Fix Version/s future release [ 11148 ]
Tim Quinn made changes - 22/Mar/12 02:55 PM
Link This issue is related to GLASSFISH-4109 [ GLASSFISH-4109 ]
Tom Mueller made changes - 15/Feb/13 10:45 PM
Assignee Cheng Fang [ cf126330 ] guojun.shan [ guojun.shan ]
guojun.shan made changes - 29/May/13 07:05 AM
Priority Major [ 3 ] Minor [ 4 ]
guojun.shan made changes - 02/Jul/13 03:15 AM
Issue Type Bug [ 1 ] Task [ 3 ]