This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 70664 - App server plugin's verifier action should include all dependencies as per J2EE spec
Summary: App server plugin's verifier action should include all dependencies as per J2...
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-20 23:34 UTC by pcmreddy
Modified: 2006-06-04 23:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test Application (2.31 MB, application/x-compressed)
2005-12-20 23:35 UTC, pcmreddy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pcmreddy 2005-12-20 23:34:28 UTC
This problem will be hit by most medium to large applications that are comprised
of multiple modules. 

When running verifier action on EJB/Web modules App server plugin's verifier
action should include all dependencies as per J2EE spec.

How to reproduce :

Use attached Blueprints Adventure Builder application.
Extract this archive to a private directory.
Open all projects.
Start Appserver and Pointbase database.
Run "adventure_setup" ANT project. Make sure all server resources are  configured.
Now Select each of EJB/Web modules, Run "Build" and "Verify" actions on each of
the modules.

While running Verifier action on "OPC-EJB" Observe the following errors.
This is not appearing when user runs verifier action at J2EE application level.

See also similar bug "6359421" for more details.

    --------------
    FAILED TESTS :
    --------------
      Test Name : tests.webservices.EJBEndpointIsSLSBCheck
    Test Assertion : For a stateless session bean implementation, the ejb-link
element associates the port-component with a session element in the ejb-jar.xml
file. The ejb-link element may not refer to a session element defined in another
module. Please refer to JSR 109 Section #7.1.2 for further information.
    Test Description : For [ WebServiceBroker#opc-ejb#BrokerServiceIntfPort ]
Service implementation bean could not be resolved from the ejb-link specified.

    Test Name : tests.webservices.EJBEndpointIsSLSBCheck
    Test Assertion : For a stateless session bean implementation, the ejb-link
element associates the port-component with a session element in the ejb-jar.xml
file. The ejb-link element may not refer to a session element defined in another
module. Please refer to JSR 109 Section #7.1.2 for further information.
    Test Description : For [ OpcPurchaseOrderService#opc-ejb#PurchaseOrderIntfPort ]
Service implementation bean could not be resolved from the ejb-link specified.

    Test Name : tests.webservices.EJBEndpointIsSLSBCheck
    Test Assertion : For a stateless session bean implementation, the ejb-link
element associates the port-component with a session element in the ejb-jar.xml
file. The ejb-link element may not refer to a session element defined in another
module. Please refer to JSR 109 Section #7.1.2 for further information.
    Test Description : For [ OpcOrderTrackingService#opc-ejb#OrderTrackingIntfPort ]
Service implementation bean could not be resolved from the ejb-link specified.
Comment 1 pcmreddy 2005-12-20 23:35:47 UTC
Created attachment 27993 [details]
Test Application
Comment 2 Vince Kraemer 2005-12-21 00:13:00 UTC
I guess I missed that in the spec...

Do you have a reference for this?

BTW: why are you filing a "plugin bug" against j2ee/ejbproject? 

Comment 3 pcmreddy 2005-12-21 00:30:04 UTC
Verifier tool is providing this message. May be some body from appserver team
have information on Specs. I do not have EJB specs with me.
Comment 4 Vince Kraemer 2005-12-21 00:33:22 UTC
closing. 

Verifying a module that has been tailored to a particular application SHOULD NOT verify if the module is 
examined for "portability" (which is what the verifier does when you point it at a module) in isolation.

That is exactly the kind of situation you are running into.

The Verifier verifies the thing you ask it to verify.  It is NOT clairvoyant and cannot figure out that the 
module you are verifyings is part of something that you want to use as "context".



Comment 5 pcmreddy 2005-12-21 00:49:09 UTC
It may be good idea to inform user about this situation. Plugin may provide some
detailed message in outut windows, so that user should expect this kind of
errors. The information presented by verifier action in studio may not be good
enough for the user to understand what went wrong.