<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6353144865603095734</id><updated>2024-10-24T22:39:27.229-07:00</updated><title type='text'>Jimmy Xu&#39;s Blog -- Weblogic Web Service Security</title><subtitle type='html'>A blog to share some experiences for using Web Services Security in Weblogic server</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-6804599823670250266</id><published>2011-06-30T07:21:00.000-07:00</published><updated>2017-08-18T10:24:17.377-07:00</updated><title type='text'>Error - No certificates found in the LDAP directory</title><content type='html'>Our organization has upgrade the PKI environment recently. And the secure web services does not work any more with following error message.&lt;br /&gt;
&lt;br /&gt;
Failed to derive subject from&lt;br /&gt;
token.javax.security.auth.login.LoginException:&lt;br /&gt;
[Security:090377]Identity Assertion Failed,&lt;br /&gt;
weblogic.security.spi.IdentityAssertionException:&lt;br /&gt;
[Security:090377]Identity Assertion Failed,&lt;br /&gt;
weblogic.security.spi.IdentityAssertionException: [Security:090833]No certificates found in the LDAP directory.&lt;br /&gt;
&lt;br /&gt;
We&#39;ve enable security trace by add following parameter into weblogic server startup script &quot;-Dweblogic.security.verbose=* -Djava.security.verbose=* -Dweblogic.wsee.verbose=*&quot;&lt;br /&gt;
It show in the log that we have passed encryption and signature validation successfully and the error is right after the validations.&lt;br /&gt;
&lt;br /&gt;
Then we have enabled weblogic server debug for the security, and we have traced the ladp lookup query statement, it turns out our LDAP X509 Identity Assertion Provider in WebLogic was configured to expect &quot;userCertificate;binary&quot; which seems does not supported by our new PKI environment.&lt;br /&gt;
&lt;br /&gt;
By changed the &quot;userCertificate;binary&quot; to &quot;userCertificate&quot;, the secure web services is back to work.

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also please check my new web site &lt;a href=&quot;http://www.scan2d.com/static/index.html&quot;&gt;Scan2D QR Code Mobile Solution&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Working on some free&amp;nbsp;QR Code solution recently.&lt;br /&gt;
&lt;a href=&quot;https://www.ibm.com/developerworks/community/blogs/70d4c7ae-7b21-490d-b6f2-5fdbaa1dbcd5/entry/5_BENEFITS_OF_QR_CODES_FOR_SMALL_BUSINESS?lang=en&quot;&gt;https://www.ibm.com/developerworks/community/blogs/70d4c7ae-7b21-490d-b6f2-5fdbaa1dbcd5/entry/5_BENEFITS_OF_QR_CODES_FOR_SMALL_BUSINESS?lang=en&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/6804599823670250266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/6804599823670250266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/6804599823670250266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/6804599823670250266'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2011/06/error-no-certificates-found-in-ldap.html' title='Error - No certificates found in the LDAP directory'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-3342546245724700561</id><published>2010-05-10T10:46:00.000-07:00</published><updated>2016-01-11T06:54:38.472-08:00</updated><title type='text'>Weblogic web services security -- java.lang.ClassNotFoundException: weblogic.wsse.security.bst.ServerBSTCredentialProvider</title><content type='html'>An expection occurred today when we&#39;re deploying the web services to our QC environment. &lt;br /&gt;java.lang.ClassNotFoundException: weblogic.wsse.security.bst.ServerBSTCredentialProvider&lt;br /&gt;&lt;br /&gt;weblogic.wsse.security.bst.ServerBSTCredentialProvider&lt;br /&gt;&lt;br /&gt;        at java.lang.Class.forName0(Native Method)&lt;br /&gt;        at java.lang.Class.forName(Class.java:169)&lt;br /&gt;        at weblogic.wsee.security.configuration.WssConfiguration.createInstance(WssConfiguration.java:411)&lt;br /&gt;        at weblogic.wsee.security.configuration.WssConfiguration.createInstancesFromMBean(WssConfiguration.java:404)&lt;br /&gt;        at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfiguration.java:126)&lt;br /&gt;        at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTokens(WssConfiguration.java:182)&lt;br /&gt;        at weblogic.wsee.security.policy.SecurityPolicyCustomizer.init(SecurityPolicyCustomizer.java:56)&lt;br /&gt;        at weblogic.wsee.security.policy.SecurityPolicyCustomizer.process(SecurityPolicyCustomizer.java:75)&lt;br /&gt;        at weblogic.wsee.policy.runtime.PolicyServer.processAssertions(PolicyServer.java:199)&lt;br /&gt;        at weblogic.wsee.policy.runtime.PolicyFinder.readPolicyFromStream(PolicyFinder.java:99)&lt;br /&gt;        at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicies(PolicyFinder.java:179)&lt;br /&gt;        at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicesFromZip(PolicyFinder.java:200)&lt;br /&gt;&lt;br /&gt;I am very sure that file is in the weblogic.jar, so I had enable the classloader information by add &quot;-verbose:class&quot; as jvm argument. And it actually did load the class from the weblogic.jar. &lt;br /&gt;By further investigation, more than ten times re-deploy and re-configure. The weblogic eventually gives a good error message, can not find key alias to establish the SSL connection. So I go back to the Server -&gt; Key Store and SSL tag, guess that our lovely Miss Weblogic Admin has forgetten to specify the SSL key alias[Our web services are protected by message level security plus SSL, please do not ask me why :-(].&lt;br /&gt;&lt;br /&gt;So I am note this exception here, in case you see same error message, go check your configuration first!&lt;br /&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;Also please check my new web site &lt;a href=&quot;http://www.scan2d.com/&quot;&gt;Scan2D QR Code Mobile Solution&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/3342546245724700561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/3342546245724700561' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/3342546245724700561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/3342546245724700561'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/05/weblogic-web-services-security.html' title='Weblogic web services security -- java.lang.ClassNotFoundException: weblogic.wsse.security.bst.ServerBSTCredentialProvider'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-9104804313635814391</id><published>2010-04-26T12:35:00.000-07:00</published><updated>2010-04-30T07:49:49.680-07:00</updated><title type='text'>Disable stack traces in web services SOAP Fault message</title><content type='html'>Do not want show the exception stack traces in web services SOAP fault? Add this into the JVM arguments,&lt;br /&gt;-Dcom.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace=&lt;strong&gt;false&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/9104804313635814391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/9104804313635814391' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/9104804313635814391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/9104804313635814391'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/04/disable-stack-traces-in-soap-fault.html' title='Disable stack traces in web services SOAP Fault message'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-1499311803138576238</id><published>2010-04-26T07:15:00.000-07:00</published><updated>2010-04-30T07:46:57.450-07:00</updated><title type='text'>Enable weblogic web services security verbose</title><content type='html'>To enable webservice security verbose in weblogic server, you need specifying the JVM argument &lt;strong&gt;-Dweblogic.wsee.verbose=* &lt;/strong&gt;. It works on both server and client side.</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/1499311803138576238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/1499311803138576238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/1499311803138576238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/1499311803138576238'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/04/enable-weblogic-webservices-security.html' title='Enable weblogic web services security verbose'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-7316598862681276013</id><published>2010-04-19T06:40:00.000-07:00</published><updated>2016-01-11T06:55:09.315-08:00</updated><title type='text'>Web Services STR-Transform an interoperability problem between WCF and Weblogic 10.3</title><content type='html'>An error message occured when try a .Net client connect to a secure web services on Weblogic 10.3.&lt;br /&gt;System.Security.Cryptography.CryptographicException: Unsupported&lt;br /&gt;transform or canonicalization algorithm.&lt;br /&gt;Here, &lt;a href=&quot;http://forums.java.net/jive/thread.jspa?messageID=321019&quot;&gt;http://forums.java.net/jive/thread.jspa?messageID=321019&lt;/a&gt; explains the reason and the cause.&lt;br /&gt;To fix this, simply remove &quot;&amp;lt;sp:ProtectTokens&amp;gt;&quot; tag from the policy file.&lt;br /&gt;-- Unzip, weblogic.jar&lt;br /&gt;-- looking for a policy file, e.g. Wssp1.2-Wss1.1-X509-Basic256.xml&lt;br /&gt;-- Remove &lt;?xml:namespace prefix = sp /&gt;&lt;sp:protecttokens&gt;&lt;/sp:protecttokens&gt;tag for the &lt;sp:recipienttoken&gt;&lt;br /&gt;-- Save with other name (say, Wssp1.2-Wss1.1-X509-Basic256-Token.xml) in your war file&#39;s /WEB-INF/classes/policies folder&lt;br /&gt;-- then refer it as @Policy(uri = &quot;policy:Wssp1.2-Wss1.1-X509-Basic256-Token.xml&quot;)&lt;br /&gt;-- then enjoy the rest of the day.&lt;br /&gt;&lt;/sp:recipienttoken&gt;&lt;sp:recipienttoken&gt;&lt;/sp:recipienttoken&gt;&lt;br/&gt;
Also please check my new web site &lt;a href=&quot;http://www.scan2d.com/&quot;&gt;Scan2D QR Code Mobile Solution&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/7316598862681276013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/7316598862681276013' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/7316598862681276013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/7316598862681276013'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/04/str-transform-interoperability-problem.html' title='Web Services STR-Transform an interoperability problem between WCF and Weblogic 10.3'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-8661901328210870575</id><published>2010-04-09T11:59:00.000-07:00</published><updated>2010-04-09T12:07:24.081-07:00</updated><title type='text'>Problem when using customer web service security policy in weblogic 10.3</title><content type='html'>When I am using an customer security policy for my webservices in weblogic 10.3 today. I got an error &quot;com.sun.xml.ws.policy.PolicyException: [failed to localize] WSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING&quot;&lt;br /&gt;&lt;br /&gt;The weblogic document is kind of misleading me, when it talks about using the policy as &#39;&lt;br /&gt;@Policy(uri = &quot;Wssp1.2-2007-SignBody-Fault.xml&quot;)&#39;. Finally I have figured it out, without put the policy like &#39;&lt;br /&gt;@Policy(uri = &quot;&lt;strong&gt;policy&lt;/strong&gt;:Wssp1.2-EncryptBody.xml&quot;)&#39;, it actually reference a resource on the file system. &lt;br /&gt;&lt;br /&gt;So if you want using a policy file from a deploy war file, you need put it in the /WEB-INF/policies/ and reference it as &lt;strong&gt;@Policy(uri = &quot;policy:Wssp1.2-2007-SignBody-Fault.xml&quot;)&lt;/strong&gt;&#39;.</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/8661901328210870575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/8661901328210870575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/8661901328210870575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/8661901328210870575'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/04/problem-when-using-customer-web-service.html' title='Problem when using customer web service security policy in weblogic 10.3'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-4376950268779558266</id><published>2010-04-09T11:24:00.000-07:00</published><updated>2010-04-30T07:47:09.030-07:00</updated><title type='text'>.NET web services client accept secure response and non-secure fault with Weblogic web services -- Interoperability with Microsoft WCF/.NET</title><content type='html'>I can not find a way to configure a secure web services on the weblogic server to return a secured soap fault message in a secure webservices. That causes some problem when the webservices client built by .NET. It gives same error message as non-synchronized clock, &quot;an unsecured or incorrectly secured fault...&quot;.&lt;br /&gt;&lt;br /&gt;But I found in the .NET 3.5 sp2, you can set the security level for the request, response and fault seperately</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/4376950268779558266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/4376950268779558266' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/4376950268779558266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/4376950268779558266'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/04/net-webservice-client-accept-secure.html' title='.NET web services client accept secure response and non-secure fault with Weblogic web services -- Interoperability with Microsoft WCF/.NET'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6353144865603095734.post-6150237384925784781</id><published>2010-04-09T11:08:00.000-07:00</published><updated>2010-04-26T07:10:45.974-07:00</updated><title type='text'>Weblogic web service security -- error:5000 Invalid security</title><content type='html'>One of my client created a web service client by .NET want access my service protected by message level security. Once set the response is signed and encrpted the .NET client can not go through, and my weblogic server generates error message (error code: 5000, Invalid Security). Spent couple days to dig, found the problem is because the client using &quot;EncrptBeforeSigning&quot; which is not recommanded by Oracle Weblogic.</content><link rel='replies' type='application/atom+xml' href='http://ddjimmy.blogspot.com/feeds/6150237384925784781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6353144865603095734/6150237384925784781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/6150237384925784781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6353144865603095734/posts/default/6150237384925784781'/><link rel='alternate' type='text/html' href='http://ddjimmy.blogspot.com/2010/04/weblogic-web-service-security-error5000.html' title='Weblogic web service security -- error:5000 Invalid security'/><author><name>ddjimmy&#39;s blog</name><uri>http://www.blogger.com/profile/00786347311632856867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>