[GLASSFISH-10705] Update list-sub-components command with web services info Created: 30/Oct/09  Updated: 06/Mar/12

Status: Open
Project: glassfish
Component/s: web_services
Affects Version/s: V3
Fix Version/s: not determined

Type: Improvement Priority: Major
Reporter: Nazrul Assignee: jitu
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 10,705

 Description   

Currently, in CLI, user can find out the deployed applications with
"list-components" command. Then, "list-sub-components" shows the meta data
(Servlet, JSP, EJB) of an application. This does not identify the Web Services
end points. We should update this command to include Web Services end-points and
the test url also. I am cc..ing Paul to see if REST web services end-point can
be identified as well in future.

After this is done in CLI, we should expose the same data from GUI application
page where we are showing the meta data. It will help to have an AMX API for GUI.

Please note the following:

  • We should discover the application artifacts from application repository under
    DAS (for GFv3, it means the single instance). The implementation should not
    require application to be deployed to DAS target (becomes a problem in GFv3.1).
  • The implementation should not rely on flashlight probe framework. Lets look at
    this problem as a discovery of application meta data from the repository instead
    of runtime monitoring exercise.

CLI Example:

----------------------------------------------------------
[dhcp-usca14-133-152:glassfish-v3-b68-full/glassfishv3/bin] nazrul% ./asadmin
list-components
Enter admin user name> admin
Enter admin password for user "admin">
hello-stateless-ejb <ejb>
servlet-stateless-ear <ear, ejb, web>
advancedMapping <ejb, web>

Command list-components executed successfully.

----------------------------------------------------------

dhcp-usca14-133-152:glassfish-v3-b68-full/glassfishv3/bin] nazrul% ./asadmin
list-sub-components
Enter admin user name> admin
Enter admin password for user "admin">
Enter the value for the modulename operand> advancedMapping
FacesServlet <JSP>
default <Servlet>
jsp <Servlet>
StatelessSessionBean <StatelessSessionBean>
TestServlet <Servlet>

Command list-sub-components executed successfully.
----------------------------------------------------------



 Comments   
Comment by Hong Zhang [ 30/Oct/09 ]

This is not a bug. This was what this command was intended to (get the ejb and
web components). Take a look at the man page and v2 behavior.

Marking it as an enhancement if we want to add additional functionality to the
command.

Comment by Anissa Lam [ 30/Oct/09 ]

I have been working with Hong on providing such API.
She has just committed some changes for me and I am about to test that out.

Comment by Anissa Lam [ 30/Oct/09 ]

oh, I missed the last part of the summary "with web esrvices info" when i made
the comment just now.

Hong has provided a way for GUI to list out the elements in the module, which is
the equivalent of "list-sub-components" command. I will test that out.

With this info, GUI will work with the web services team to support webservices
endpoint testing.

As for the the list-sub-components command with web services info, which is
what this ticket is for, I agree that this is an enhancement.

Comment by Anissa Lam [ 30/Oct/09 ]

sorry, i accidentally changed this to 'STARTED' state, and i can't seem to be
able to change it back to 'NEW'.

Comment by Nazrul [ 30/Oct/09 ]

Getting help from Jitu

Comment by Hong Zhang [ 23/Mar/11 ]

moving this issue under webservices category

Comment by Tom Mueller [ 06/Mar/12 ]

Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.





[GLASSFISH-8473] NPE in monitoring. it seems to be improperly MT-Unsafe. Created: 03/Jun/09  Updated: 06/Mar/12

Status: Open
Project: glassfish
Component/s: web_services_mgmt
Affects Version/s: 9.1peur2
Fix Version/s: not determined

Type: Bug Priority: Minor
Reporter: kasaihiroyoshi Assignee: jitu
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 8,473
Status Whiteboard:

v3_exclude,V2.1.1exclude


 Description   

com.sun.enterprise.admin.wsmgmt.msg.MessageTraceFactory holds messages in 'Map
_messages' and HashMap is asigned to it.

private MessageTraceFactory()

{ _messages = new HashMap(); _msgBodyPattern = Pattern.compile("<env:Body>.*</env:Body>"); }

HashMap is not synchronized map, and MessageTraceFactory is singleton and its
methods seem to be called asynchronously.

In our stress test, some NPEs occured at

private void setResponseInfo(SOAPMessageContext ctx,
com.sun.appserv.management.ext.wsmgmt.MessageTraceImpl trace) {
//omit
// sets the request size
HERE trace.setResponseSize( baos.size() );

and same problem is found at msgId2fc in
com.sun.enterprise.admin.wsmgmt.agent.GlobalMessageListenerImpl.
In our test, NPEs are caused at

public void processRequest(String messageID,
com.sun.enterprise.webservice.SOAPMessageContext context,
TransportInfo info)

{ com.sun.enterprise.admin.wsmgmt.SOAPMessageContext smc = new com.sun.enterprise.admin.wsmgmt.SOAPMessageContext_2_0(context); FilterContext fc = (FilterContext) msgId2fc.get(messageID); *HERE* fc.setTransportInfo(info); fc.setMessageContext(smc); FilterRouter.getInstance().applyFilters(Filter.PROCESS_REQUEST,fc); }

 Comments   
Comment by sirajg [ 22/Sep/09 ]

webservices issue->jitu

Comment by jitu [ 28/Sep/09 ]

This feature is not targeted for v3. Adding v3_exclude to Status whiteboard

Comment by jagadesh [ 15/Oct/09 ]

Will not be fixed for V2.1.1

Comment by jagadesh [ 15/Oct/09 ]

Will not be fixed for V2.1.1

Comment by Tom Mueller [ 06/Mar/12 ]

Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.





Generated at Mon Mar 30 07:50:32 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.