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 87057 - executing stock sample with liberty failed with exception
Summary: executing stock sample with liberty failed with exception
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Srividhya Narayanan
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-10-13 05:32 UTC by _ hlu
Modified: 2006-10-18 07:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hlu 2006-10-13 05:32:33 UTC
coke build22:
Executing the stocksample with both liberty x509 and liberty bearer token failed
with following exceptions. Calendar sample with liberty x509 and bearer token
works though.
WSS: getContext returning:
com.sun.enterprise.security.jauth.ConfigFile$ConfigClient@6f63a0
Container Auth: ClientAuthContext.secureRequest
AMClientAuthModule.secureRequest: SOAPMessage before securing: <env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://sun.com/stockquote.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><ns0:QuoteRequest><Symbol>SUNW</Symbol></ns0:QuoteRequest></env:Body></env:Envelope>
AMClientAuthModule.secureRequest:  Failed in Securing the Request.
com.sun.identity.wss.security.SecurityException: Securing request failed
       at
com.sun.identity.wss.security.handler.SOAPRequestHandler.getSecureMessageFromLiberty(SOAPRequestHandler.java:740)
       at
com.sun.identity.wss.security.handler.SOAPRequestHandler.secureRequest(SOAPRequestHandler.java:332)
       at
com.sun.identity.agents.jsr196.as9soap.AMClientAuthModule.secureRequest(AMClientAuthModule.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.java:128)
       at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:78)
       at java.security.AccessController.doPrivileged(Native Method)
       at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java:75)
       at
com.sun.enterprise.security.jauth.ConfigFile$ConfigClient.secureRequest(ConfigFile.java:609)
       at
com.sun.enterprise.security.wss.WebServiceSecurity.secureRequest(WebServiceSecurity.java:290)
       at
com.sun.enterprise.security.wss.WebServiceSecurity.secureRequest(WebServiceSecurity.java:240)
       at
com.sun.enterprise.webservice.MessageLayerClientHandler.handleRequest(MessageLayerClientHandler.java:128)
       at
com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:103)
       at
com.sun.xml.rpc.client.StreamingSender._callRequestHandlers(StreamingSender.java:786)
       at
com.sun.xml.rpc.client.StreamingSender._preRequestSendingHook(StreamingSender.java:749)
       at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:108)
       at
com.sun.identity.wss.sample.stockclient.StockQuotePortType_Stub.getStockQuote(StockQuotePortType_Stub.java:67)
       at
com.sun.identity.wss.sample.stockclient.ClientServlet.processPostRequest(ClientServlet.java:71)
       at
com.sun.identity.wss.sample.stockclient.ClientServlet.doPost(ClientServlet.java:156)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
       at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
       at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
       at
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
       at
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
       at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
       at
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
SEC2004: Container-auth: wss: Error securing request
com.sun.enterprise.security.jauth.AuthException: Securing Request Failed
       at
com.sun.identity.agents.jsr196.as9soap.AMClientAuthModule.secureRequest(AMClientAuthModule.java:156)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.java:128)
       at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:78)
       at java.security.AccessController.doPrivileged(Native Method)
       at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java:75)
       at
com.sun.enterprise.security.jauth.ConfigFile$ConfigClient.secureRequest(ConfigFile.java:609)
       at
com.sun.enterprise.security.wss.WebServiceSecurity.secureRequest(WebServiceSecurity.java:290)
       at
com.sun.enterprise.security.wss.WebServiceSecurity.secureRequest(WebServiceSecurity.java:240)
       at
com.sun.enterprise.webservice.MessageLayerClientHandler.handleRequest(MessageLayerClientHandler.java:128)
       at
com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:103)
       at
com.sun.xml.rpc.client.StreamingSender._callRequestHandlers(StreamingSender.java:786)
       at
com.sun.xml.rpc.client.StreamingSender._preRequestSendingHook(StreamingSender.java:749)
       at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:108)
       at
com.sun.identity.wss.sample.stockclient.StockQuotePortType_Stub.getStockQuote(StockQuotePortType_Stub.java:67)
       at
com.sun.identity.wss.sample.stockclient.ClientServlet.processPostRequest(ClientServlet.java:71)
       at
com.sun.identity.wss.sample.stockclient.ClientServlet.doPost(ClientServlet.java:156)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
       at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
       at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
       at
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
       at
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
       at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
       at
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: com.sun.identity.wss.security.SecurityException: Securing request failed
       at
com.sun.identity.wss.security.handler.SOAPRequestHandler.getSecureMessageFromLiberty(SOAPRequestHandler.java:740)
       at
com.sun.identity.wss.security.handler.SOAPRequestHandler.secureRequest(SOAPRequestHandler.java:332)
       at
com.sun.identity.agents.jsr196.as9soap.AMClientAuthModule.secureRequest(AMClientAuthModule.java:141)
       ... 45 more
java.rmi.RemoteException: request handler error: ; nested exception is:
       javax.xml.rpc.JAXRPCException:
com.sun.enterprise.security.jauth.AuthException: Securing Request Failed
       at
com.sun.xml.rpc.client.StreamingSender._callRequestHandlers(StreamingSender.java:788)
       at
com.sun.xml.rpc.client.StreamingSender._preRequestSendingHook(StreamingSender.java:749)
       at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:108)
       at
com.sun.identity.wss.sample.stockclient.StockQuotePortType_Stub.getStockQuote(StockQuotePortType_Stub.java:67)
       at
com.sun.identity.wss.sample.stockclient.ClientServlet.processPostRequest(ClientServlet.java:71)
       at
com.sun.identity.wss.sample.stockclient.ClientServlet.doPost(ClientServlet.java:156)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
       at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
       at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
       at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
       at
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
       at
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
       at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
       at
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.xml.rpc.JAXRPCException:
com.sun.enterprise.security.jauth.AuthException: Securing Request Failed
       at
com.sun.enterprise.webservice.MessageLayerClientHandler.handleRequest(MessageLayerClientHandler.java:133)
       at
com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:103)
       at
com.sun.xml.rpc.client.StreamingSender._callRequestHandlers(StreamingSender.java:786)
       ... 31 more
Comment 1 Srividhya Narayanan 2006-10-13 23:21:45 UTC
Couple of issues. Fixed in release55_dev

The stockclient sample in the IDE has modified local wsdl which alters the
service name in the starting wsdl. which I dont think is normal user behaviour.
I cleaned up this sample and then there is now matching service name for disco
lookup and registration and hence liberty works.

The second issue is that in the code where we generate the service_type name for
disco registration I changed the code to get the servicename from the wsdl
itself for J2EE 1.4 project just like the Java EE 5 project type instead of
relying on service node APIs.

Checking in nbproject/genfiles.properties;
/cvs/identity/samples/StockClient/nbproject/Attic/genfiles.properties,v  <-- 
genfiles.properties
new revision: 1.1.2.3.4.2; previous revision: 1.1.2.3.4.1
done
Checking in nbproject/project.properties;
/cvs/identity/samples/StockClient/nbproject/Attic/project.properties,v  <-- 
project.properties
new revision: 1.1.2.3.4.2; previous revision: 1.1.2.3.4.1
done
Checking in nbproject/ant-deploy.xml;
/cvs/identity/samples/StockClient/nbproject/Attic/ant-deploy.xml,v  <-- 
ant-deploy.xml
new revision: 1.1.2.3.4.2; previous revision: 1.1.2.3.4.1
done
Checking in nbproject/jax-ws.xml;
/cvs/identity/samples/StockClient/nbproject/Attic/jax-ws.xml,v  <--  jax-ws.xml
new revision: 1.1.2.3.4.2; previous revision: 1.1.2.3.4.1
done
Checking in nbproject/project.xml;
/cvs/identity/samples/StockClient/nbproject/Attic/project.xml,v  <--  project.xml
new revision: 1.1.2.4.4.2; previous revision: 1.1.2.4.4.1
done
Checking in nbproject/build-impl.xml;
/cvs/identity/samples/StockClient/nbproject/Attic/build-impl.xml,v  <-- 
build-impl.xml
new revision: 1.1.2.3.4.2; previous revision: 1.1.2.3.4.1
done
Checking in web/WEB-INF/web.xml;
/cvs/identity/samples/StockClient/web/WEB-INF/Attic/web.xml,v  <--  web.xml
new revision: 1.1.2.4.2.2; previous revision: 1.1.2.4.2.1
done
Checking in web/WEB-INF/sun-web.xml;
/cvs/identity/samples/StockClient/web/WEB-INF/Attic/sun-web.xml,v  <--  sun-web.xml
new revision: 1.1.2.5.2.2; previous revision: 1.1.2.5.2.1
done
Checking in web/WEB-INF/wsdl/stock.xsd;
/cvs/identity/samples/StockClient/web/WEB-INF/wsdl/Attic/stock.xsd,v  <--  stock.xsd
new revision: 1.1.2.3.4.2; previous revision: 1.1.2.3.4.1
done
Checking in web/WEB-INF/wsdl/stock-config.xml;
/cvs/identity/samples/StockClient/web/WEB-INF/wsdl/Attic/stock-config.xml,v  <--
 stock-config.xml
new revision: 1.1.2.1.4.2; previous revision: 1.1.2.1.4.1
done
Checking in web/WEB-INF/wsdl/stock.wsdl;
/cvs/identity/samples/StockClient/web/WEB-INF/wsdl/Attic/stock.wsdl,v  <-- 
stock.wsdl
new revision: 1.1.2.1.4.2; previous revision: 1.1.2.1.4.1
done
Checking in build.xml;
/cvs/identity/samples/StockClient/Attic/build.xml,v  <--  build.xml
new revision: 1.1.2.4.4.2; previous revision: 1.1.2.4.4.1
done
IDE: [10/13/06 3:05 PM] Committing "StockClient" finished

IDE:-------------------------------------------------
IDE: [10/13/06 3:08 PM] Committing "J2eeProjectHelper.java" started
Checking in J2eeProjectHelper.java;
/cvs/identity/profileui/src/org/netbeans/modules/identity/profile/ui/support/Attic/J2eeProjectHelper.java,v
 <--  J2eeProjectHelper.java
new revision: 1.1.2.29.2.6; previous revision: 1.1.2.29.2.5
done
Comment 2 Srividhya Narayanan 2006-10-14 04:54:41 UTC
checked onto release55
Comment 3 _ hlu 2006-10-18 07:27:40 UTC
verified in build20061015.