Hi, I have tried to copy the keystore in the JBoss classpath...does not work. I will continue using a absoluth path. If anyone has an ideea why this does not work (I am using JBoss 3.2.6) I would be gratefull.
Regards, Dan On 5/13/05, Marinescu Dan <[EMAIL PROTECTED]> wrote: > Hi, > > thank you all! The problem was indeed at the > org.apache.ws.security.crypto.merlin.file property, now it works, but > only with an absolut path. I will have to check and see how I can set > it to work with an relative path under JBoss (it did not work putting > it under WEB-INF/classes in the web app.) > > Once again thank you, > Dan > > On 5/12/05, Brian Nielsen <[EMAIL PROTECTED]> wrote: > > Dan, > > > > Just a wild guess: maybe it can't find your certificate due to the reason > > that for file with relative paths i looks from where the app. Server was > > started not relative to the web app. The solution for me was to put the > > certificate in the classes folder since wss4j also use the classloader. I > > previously got this explanation that helped me: > > http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msg > > No=1880 > > > > Best regards > > Brian > > > > > > -----Original Message----- > > From: Marinescu Dan [mailto:[EMAIL PROTECTED] > > Sent: 12. maj 2005 16:04 > > To: Dittmann Werner > > Cc: [email protected] > > Subject: Re: web client > > > > Hi, > > > > if I change in my crypto.properties file from > > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry > > pto.Merlin > > > > to > > > > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry > > pto.SomethingElse > > > > a class that do not exist, i get > > > > java.lang.RuntimeException: > > org.apache.ws.security.components.crypto.SomethingElse Not Found > > > > and not an "cannot instantiate" error. My guess is that I have the necesary > > libs/jars/classes in the classpath. > > > > Am I wrong or is there something else wrong. Pls help .... > > > > On 5/12/05, Dittmann Werner <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > seems that you don't have all necessary libs/jars/classes in your > > > client's classpath. The Merlin class cannot be found. > > > > > > Regards, > > > Werner > > > > > > > -----Urspr�ngliche Nachricht----- > > > > Von: Marinescu Dan [mailto:[EMAIL PROTECTED] > > > > Gesendet: Donnerstag, 12. Mai 2005 11:00 > > > > An: [email protected] > > > > Betreff: web client > > > > > > > > > > > > Hi > > > > > > > > has anyone an answer for my previous message regarding the > > > > implementation of a client that sends encrypted/signed messages > > > > using WSS4J. I try to implement this client as a web application but > > > > when I try to contact the web service (that is under AXIS, running > > > > under the same JBoss server as the web client) I get the following > > error: > > > > > > > > 2005-05-12 10:52:49,091 ERROR > > > > [org.apache.ws.security.components.crypto.CryptoFactory] Unable to > > > > instantiate (2): org.apache.ws.security.components.crypto.Merlin > > > > java.lang.InstantiationException: > > > > org.apache.ws.security.components.crypto.Merlin > > > > at java.lang.Class.newInstance0(Class.java:335) > > > > at java.lang.Class.newInstance(Class.java:303) > > > > at > > > > org.apache.ws.security.components.crypto.CryptoFactory.loadCla > > > > ss(CryptoFactory.java:125) > > > > at > > > > org.apache.ws.security.components.crypto.CryptoFactory.getInst > > > > ance(CryptoFactory.java:101) > > > > at > > > > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto( > > > > WSDoAllSender.java:639) > > > > at > > > > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender > > > > .java:279) > > > > at > > > > org.apache.axis.strategies.InvocationStrategy.visit(Invocation > > > > Strategy.java:32) > > > > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > > > > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > > > > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:134) > > > > at org.apache.axis.client.Call.invokeEngine(Call.java:2719) > > > > at org.apache.axis.client.Call.invoke(Call.java:2702) > > > > at org.apache.axis.client.Call.invoke(Call.java:2378) > > > > at org.apache.axis.client.Call.invoke(Call.java:2301) > > > > at org.apache.axis.client.Call.invoke(Call.java:1758) > > > > at > > > > client1.FirewalledService1SoapBindingStub.addNumbers(Firewalle > > > dService1SoapBindingStub.java:101) > > > > at client1.Client1Servlet.doPost(Client1Servlet.java:57) > > > > at client1.Client1Servlet.doGet(Client1Servlet.java:40) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > > > er(ApplicationFilterChain.java:237) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > > > cationFilterChain.java:157) > > > > at > > > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyH > > > > eaderFilter.java:75) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > > > er(ApplicationFilterChain.java:186) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > > > cationFilterChain.java:157) > > > > at > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW > > > > rapperValve.java:214) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardContextValve.invokeInternal(S > > > > tandardContextValve.java:198) > > > > at > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardC > > > > ontextValve.java:152) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Cust > > > > omPrincipalValve.java:66) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke( > > > SecurityAssociationValve.java:158) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost > > > > Valve.java:137) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport > > > > Valve.java:118) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn > > > > gineValve.java:109) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > > > > at > > > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter. > > > > java:160) > > > > at > > > > org.apache.coyote.http11.Http11Processor.process(Http11Process > > > > or.java:799) > > > > at > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle > > > > r.processConnection(Http11Protocol.java:705) > > > > at > > > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi > > > > nt.java:577) > > > > at > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > > > ThreadPool.java:683) > > > > at java.lang.Thread.run(Thread.java:595) > > > > 2005-05-12 10:52:49,131 ERROR [org.jboss.web.localhost.Engine] > > > > StandardWrapperValve[WSClient1]: Servlet.service() for servlet > > > > WSClient1 threw exception > > > > AxisFault > > > > faultCode: > > > > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > > > > faultSubcode: > > > > faultString: java.lang.RuntimeException: > > > > org.apache.ws.security.components.crypto.Merlin cannot create > > > > instance > > > > faultActor: > > > > faultNode: > > > > faultDetail: > > > > > > > > {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException: > > > > org.apache.ws.security.components.crypto.Merlin cannot create instance > > > > at > > > > org.apache.ws.security.components.crypto.CryptoFactory.loadCla > > > > ss(CryptoFactory.java:130) > > > > at > > > > org.apache.ws.security.components.crypto.CryptoFactory.getInst > > > > ance(CryptoFactory.java:101) > > > > at > > > > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto( > > > > WSDoAllSender.java:639) > > > > at > > > > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender > > > > .java:279) > > > > at > > > > org.apache.axis.strategies.InvocationStrategy.visit(Invocation > > > > Strategy.java:32) > > > > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > > > > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > > > > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:134) > > > > at org.apache.axis.client.Call.invokeEngine(Call.java:2719) > > > > at org.apache.axis.client.Call.invoke(Call.java:2702) > > > > at org.apache.axis.client.Call.invoke(Call.java:2378) > > > > at org.apache.axis.client.Call.invoke(Call.java:2301) > > > > at org.apache.axis.client.Call.invoke(Call.java:1758) > > > > at > > > > client1.FirewalledService1SoapBindingStub.addNumbers(Firewalle > > > dService1SoapBindingStub.java:101) > > > > at client1.Client1Servlet.doPost(Client1Servlet.java:57) > > > > at client1.Client1Servlet.doGet(Client1Servlet.java:40) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > > > er(ApplicationFilterChain.java:237) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > > > cationFilterChain.java:157) > > > > at > > > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyH > > > > eaderFilter.java:75) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > > > er(ApplicationFilterChain.java:186) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > > > cationFilterChain.java:157) > > > > at > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW > > > > rapperValve.java:214) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardContextValve.invokeInternal(S > > > > tandardContextValve.java:198) > > > > at > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardC > > > > ontextValve.java:152) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Cust > > > > omPrincipalValve.java:66) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke( > > > SecurityAssociationValve.java:158) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost > > > > Valve.java:137) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport > > > > Valve.java:118) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn > > > > gineValve.java:109) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > > > > at > > > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter. > > > > java:160) > > > > at > > > > org.apache.coyote.http11.Http11Processor.process(Http11Process > > > > or.java:799) > > > > at > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle > > > > r.processConnection(Http11Protocol.java:705) > > > > at > > > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi > > > > nt.java:577) > > > > at > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > > > ThreadPool.java:683) > > > > at java.lang.Thread.run(Thread.java:595) > > > > > > > > {http://xml.apache.org/axis/}hostname:laptop > > > > > > > > java.lang.RuntimeException: > > > > org.apache.ws.security.components.crypto.Merlin cannot create instance > > > > at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) > > > > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) > > > > at org.apache.axis.client.Call.invokeEngine(Call.java:2719) > > > > at org.apache.axis.client.Call.invoke(Call.java:2702) > > > > at org.apache.axis.client.Call.invoke(Call.java:2378) > > > > at org.apache.axis.client.Call.invoke(Call.java:2301) > > > > at org.apache.axis.client.Call.invoke(Call.java:1758) > > > > at > > > > client1.FirewalledService1SoapBindingStub.addNumbers(Firewalle > > > dService1SoapBindingStub.java:101) > > > > at client1.Client1Servlet.doPost(Client1Servlet.java:57) > > > > at client1.Client1Servlet.doGet(Client1Servlet.java:40) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > > > er(ApplicationFilterChain.java:237) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > > > cationFilterChain.java:157) > > > > at > > > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyH > > > > eaderFilter.java:75) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > > > > er(ApplicationFilterChain.java:186) > > > > at > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli > > > > cationFilterChain.java:157) > > > > at > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW > > > > rapperValve.java:214) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardContextValve.invokeInternal(S > > > > tandardContextValve.java:198) > > > > at > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardC > > > > ontextValve.java:152) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Cust > > > > omPrincipalValve.java:66) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke( > > > SecurityAssociationValve.java:158) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost > > > > Valve.java:137) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport > > > > Valve.java:118) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:102) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn > > > > gineValve.java:109) > > > > at > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Stand > > > > ardValveContext.java:104) > > > > at > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > > > > ine.java:520) > > > > at > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > > > > at > > > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter. > > > > java:160) > > > > at > > > > org.apache.coyote.http11.Http11Processor.process(Http11Process > > > > or.java:799) > > > > at > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle > > > > r.processConnection(Http11Protocol.java:705) > > > > at > > > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi > > > > nt.java:577) > > > > at > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > > > ThreadPool.java:683) > > > > at java.lang.Thread.run(Thread.java:595) > > > > Caused by: java.lang.RuntimeException: > > > > org.apache.ws.security.components.crypto.Merlin cannot create instance > > > > at > > > > org.apache.ws.security.components.crypto.CryptoFactory.loadCla > > > > ss(CryptoFactory.java:130) > > > > at > > > > org.apache.ws.security.components.crypto.CryptoFactory.getInst > > > > ance(CryptoFactory.java:101) > > > > at > > > > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto( > > > > WSDoAllSender.java:639) > > > > at > > > > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender > > > > .java:279) > > > > at > > > > org.apache.axis.strategies.InvocationStrategy.visit(Invocation > > > > Strategy.java:32) > > > > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > > > > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > > > > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:134) > > > > ... 41 more > > > > > > > > For the client I use the WSDoAllSender handler and for the web > > > > service I use the WSDoAllReceiver handler. When using a command line > > > > implementation of the client everything works perfect. > > > > > > > > Can someone please help?! I am stucked in here and my diploma > > > > project is not going any further.. > > > > > > > > > > > >
