Sorry, we have no clue about XFire :( On 1/20/06, Brian Bonner <[EMAIL PROTECTED]> wrote: > I'm deploying XFire with WSS4J on Websphere 5.1 I'm running into the > following exceptions: > > > java.lang.NoSuchFieldException: m_functions > at java.lang.Throwable.<init>(Throwable.java:195) > at java.lang.Exception.<init>(Exception.java:41) > at java.lang.NoSuchFieldException.<init>(NoSuchFieldException.java:31) > at java.lang.Class.getField(Class.java:955) > at org.apache.xml.security.Init.registerHereFunction(Unknown Source) > at org.apache.xml.security.Init.init(Unknown Source) > at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:66) > at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:90) > at org.apache.ws.security.WSSConfig.<clinit>(WSSConfig.java:45) > at java.lang.Class.forName(Class.java:164) > at > org.apache.ws.security.WSSecurityEngine.class$(WSSecurityEngine.java:87) > at > org.apache.ws.security.WSSecurityEngine.<clinit>(WSSecurityEngine.java:91) > at > org.codehaus.xfire.security.wssecurity.WSS4JInSecurityProcessor.<clinit>(WSS4JInSecurityProcessor.java:33) > at > org.codehaus.xfire.security.wssecurity.WSS4JInSecurityHandler.<init>(WSS4JInSecurityHandler.java:17) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76) > > > I found a post that referenced this and indicated it might be a > problem with Xalan -- but it may not be critical. > > > [1/20/06 12:26:46:699 EST] fad897ef CryptoFactory I > org.apache.ws.security.components.crypto.CryptoFactory Using Crypto > Engine [org.apache.ws.security.components.crypto.Merlin] > [1/20/06 12:26:46:877 EST] fad897ef CryptoFactory E > org.apache.ws.security.components.crypto.CryptoFactory Unable to > instantiate (1): org.apache.ws.security.components.crypto.Merlin > [1/20/06 12:26:46:894 EST] fad897ef CryptoFactory E > org.apache.ws.security.components.crypto.CryptoFactory TRAS0014I: The > following exception was logged > java.lang.reflect.InvocationTargetException > at java.lang.Throwable.<init>(Throwable.java:240) > at java.lang.Exception.<init>(Exception.java:77) > at > java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:54) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:72) > at > org.codehaus.xfire.security.wssecurity.WSS4JInSecurityBuilder.build(WSS4JInSecurityBuilder.java:41) > at > org.codehaus.xfire.security.wssecurity.WSS4JInSecurityProcessor.checkInitialized(WSS4JInSecurityProcessor.java:51) > at > org.codehaus.xfire.security.wssecurity.WSS4JInSecurityProcessor.process(WSS4JInSecurityProcessor.java:88) > at > org.codehaus.xfire.security.handlers.InSecurityHandler.invoke(InSecurityHandler.java:31) > at > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:100) > > [snip/] > > Caused by: org.apache.ws.security.components.crypto.CredentialException: > Failed to load credentials. Inner Exception: [Too many certificates in > chain] > at java.lang.Throwable.<init>(Throwable.java:195) > at java.lang.Exception.<init>(Exception.java:41) > at > org.apache.ws.security.components.crypto.CredentialException.<init>(CredentialException.java:81) > at > org.apache.ws.security.components.crypto.CredentialException.<init>(CredentialException.java:56) > at > org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:530) > at > org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:119) > ... 42 more > . > java.lang.reflect.InvocationTargetException > at java.lang.Throwable.<init>(Throwable.java:240) > at java.lang.Exception.<init>(Exception.java:77) > at > java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:54) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:72) > > > [snip/] > > Caused by: org.apache.ws.security.components.crypto.CredentialException: > Failed to load credentials. Inner Exception: [Too many certificates in > chain] > at java.lang.Throwable.<init>(Throwable.java:195) > at java.lang.Exception.<init>(Exception.java:41) > at > org.apache.ws.security.components.crypto.CredentialException.<init>(CredentialException.java:81) > at > org.apache.ws.security.components.crypto.CredentialException.<init>(CredentialException.java:56) > at > org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:530) > at > org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:119) > ... 42 more > . > java.lang.reflect.InvocationTargetException > at java.lang.Throwable.<init>(Throwable.java:240) > at java.lang.Exception.<init>(Exception.java:77) > at > java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:54) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:72) > at > org.codehaus.xfire.security.wssecurity.WSS4JInSecurityBuilder.build(WSS4JInSecurityBuilder.java:41) > > > It's not outright saying it, but I suspect the problem is related to > the fact that Websphere doesn't have the Sun JCE provider. > > This is from the Websphere java.security file: > > security.provider.1=com.ibm.crypto.provider.IBMJCE > security.provider.2=com.ibm.jsse.IBMJSSEProvider > security.provider.3=com.ibm.security.jgss.IBMJGSSProvider > security.provider.4=com.ibm.security.cert.IBMCertPath > security.provider.5=com.ibm.crypto.pkcs11.provider.IBMPKCS11 > > > > So, I was going to try to load up BouncyCastle as the provider. > setting security.provider.6 as follows: > > security.provider.6==org.bouncycastle.jce.provider.BouncyCastleProvider > > > Has anyone run into this and does this seem reasonable? > > Thanks. > > Brian > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- Davanum Srinivas : http://wso2.com/blogs/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
