Decrypting Files with Bouncy Castle
Hello, Does anyone have any experience with running a decryption service in ServiceMix using Bouncy Castle? We were able to setup a service that would decrypt a file and run it through unit testing in Eclipse, however, when we run it in ServiceMix we get the following: org.bouncycastle.openpgp.PGPException: Exception constructing key java.security.spec.InvalidKeySpecException: Unknown KeySpec type: org.bouncycastle.jce.spec.ElGamalPrivateKeySpec at org.bouncycastle.jce.provider.JDKKeyFactory$ElGamal.engineGeneratePrivate(Unknown Source) at java.security.KeyFactory.generatePrivate(KeyFactory.java:316) at org.bouncycastle.openpgp.PGPSecretKey.extractPrivateKey(Unknown Source) at com.myco.services.PGPEncryptionHelper.findSecretKey(PGPEncryptionHelper.java:110) at com.myco.services.PGPEncryptionHelper.decryptFile(PGPEncryptionHelper.java:151) at com.myco.services.FileDecryptor.decryptFile(FileDecryptor.java:103) at com.myco.services.FileDecryptor.onMessageExchange(FileDecryptor.java:66) at org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:224) at org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:200) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) I checked the JAVA_HOME environment variable that ServiceMix is using on startup and it is the correct one (configured with Bouncy Castle v137). Thoughts, suggestions, any help is appreciated. Thanks, Gordon Dickens
Re: XBean Namespaces
Thanks Andreas! Andreas Schaefer (2) wrote: You can find it in: ServiceMix Source Home/deployables/serviceeingines/servicemix-eip/target/xbean/servicemix-eip.xsd Otherwise you'll find it in the root of the archive servicemix-eip-version.jar There you'll find the URL in the target namespace. Have fun Andreas Schaefer CEO of Madplanet.com Inc. [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] On Oct 17, 2007, at 1:37 PM, Gordon Dickens wrote: To better understand XBeans, I wanted to understand where or how the namespace is defined for each service type (binding component/service engine). For example: For the servicemix-eip wiretap, I see in the org.apache.servicemix.eip.patterns.WireTap.java class that the xbean is defined as wire-tap but I don't see an obvious reference to which namespace I should use when defining the xbean.xml for my service unit. I used the following ?xml version=1.0? beans xmlns:f=http://myproject.com/myservice/1.0; xmlns:j=http://myproject.com/myotherservice//1.0; xmlns:eip=http://servicemix.apache.org/eip/1.0; eip:wire-tap service=f:my-process endpoint=doit ... Is the url http://servicemix.apache.org/eip/1.0; resolved? If so, where can I find it? Thanks in advance, Gordon Dickens Andreas Schaefer CEO of Madplanet.com Inc. [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: ServiceMix 4.0 api
Hello Guillaume, I am getting a page not found with the javadoc site. Regards, Gordon Nodet Guillaume wrote: I've refactored a few things in the api and introduced back the listeners and flows. For those who prefer to read javadoc, take a look at: http://people.apache.org/~gnodet/servicemix-4.0/site/apidocs/ The javadoc is quite low on comments right now, so if any area appears to be unclear, ask for comments and I will improve the doc asap. Although any ideas, feedback, patches are always welcome. To test the API, I have started a really dumb implementation of it in the branch, but don't expect much at this point ;-) http://svn.apache.org/repos/asf/incubator/servicemix/branches/ servicemix-4.0/ Cheers, Guillaume Nodet .
Re: IRC sessions on ServiceMix 4.0 design (was Re: ServiceMix 4.0)
I too would like to listen in. Regards, Gordon Daryl Richter wrote: On Aug 24, 2007, at 5:04 AM, Nodet Guillaume wrote: Any other people interested ? I wouldn't mind listening in. We are in the very early stages of a ServiceMix implementation, though, so I don't have a lot of opinions... yet. :) Cheers, Guillaume Nodet -- Daryl http://itsallsemantics.com We want great men who, when fortune frowns, will not be discouraged. -- Colonel Henry Knox, 1776