Well, ssl://ip?user=xxx;password=xyz is not a valid value.
Replace it with: smtps://ip?user=xxx;password=xyz SSL is not valid here. Regards Lars 2009/1/12 Crimor <[email protected]>: > > Yes we using secured connection > > the value is > > ssl://ip?user=xxx;password=xyz > > I have allready an other mail service runing and this works perfect with > this setting like sender, connection and endpoint I hadn't have to use a > Trustmanager, but for this business case I also hadn't have to use a > marshaler. > > Now I need a marshaler and got this problems. I will look into the > TrustManger now. > > Regards > > Crimor > > > > lhein wrote: >> >> Hi, >> >> could you please tell me what is the real value of: >> connection="${xxx.components.mail.service.smtpServer}" >> >> It seems you are using secure smtp right? Have you tried to specify >> the DummyTrustManager as stated in the component wiki? >> The last log you sent was not complete...there was no connection >> building at all. Could you please send a full log of a single try? >> >> Regards >> Lars >> >> >> >> >> 2009/1/12 Crimor <[email protected]>: >>> >>> Hi Lars, >>> >>> just insert it but still same error and still same behaviour. >>> >>> I got the mail service debug outprints for you maybe you see something: >>> >>> DEBUG: JavaMail version 1.4ea >>> DEBUG: JavaMail version 1.4ea >>> DEBUG: java.io.FileNotFoundException: >>> C:\Programme\Java\jdk1.6.0_07\jre\lib\javamail.providers (Das System kann >>> die angegebene Datei nicht finden) >>> DEBUG: java.io.FileNotFoundException: >>> C:\Programme\Java\jdk1.6.0_07\jre\lib\javamail.providers (Das System kann >>> die angegebene Datei nicht finden) >>> DEBUG: !anyLoaded >>> DEBUG: !anyLoaded >>> DEBUG: not loading resource: /META-INF/javamail.providers >>> DEBUG: not loading resource: /META-INF/javamail.providers >>> DEBUG: successfully loaded resource: /META-INF/javamail.default.providers >>> DEBUG: Tables of loaded providers >>> DEBUG: successfully loaded resource: /META-INF/javamail.default.providers >>> DEBUG: Providers Listed By Class Name: >>> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun >>> Microsystems, Inc], com.sun.mail.smtp.SMTPTranspor >>> t=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun >>> Microsystems, Inc], >>> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun >>> Microsyst >>> ems, Inc], >>> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun >>> Microsystems, Inc], >>> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail >>> .imap.IMAPStore,Sun Microsystems, Inc], >>> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun >>> Microsystems, Inc]} >>> DEBUG: Tables of loaded providers >>> DEBUG: Providers Listed By Protocol: >>> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun >>> Microsystems, Inc], >>> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun M >>> icrosystems, Inc], >>> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun >>> Microsystems, Inc], >>> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun >>> Microsystems >>> , Inc], >>> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun >>> Microsystems, Inc], >>> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun >>> Microsystems, Inc]} >>> DEBUG: Providers Listed By Class Name: >>> {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun >>> Microsystems, Inc], com.sun.mail.smtp.SMTPTranspor >>> t=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun >>> Microsystems, Inc], >>> com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun >>> Microsyst >>> ems, Inc], >>> com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun >>> Microsystems, Inc], >>> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail >>> .imap.IMAPStore,Sun Microsystems, Inc], >>> com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun >>> Microsystems, Inc]} >>> DEBUG: successfully loaded resource: >>> /META-INF/javamail.default.address.map >>> DEBUG: Providers Listed By Protocol: >>> {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun >>> Microsystems, Inc], >>> imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun M >>> icrosystems, Inc], >>> smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun >>> Microsystems, Inc], >>> pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun >>> Microsystems >>> , Inc], >>> pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun >>> Microsystems, Inc], >>> smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun >>> Microsystems, Inc]} >>> DEBUG: !anyLoaded >>> DEBUG: successfully loaded resource: >>> /META-INF/javamail.default.address.map >>> DEBUG: not loading resource: /META-INF/javamail.address.map >>> DEBUG: !anyLoaded >>> DEBUG: java.io.FileNotFoundException: >>> C:\Programme\Java\jdk1.6.0_07\jre\lib\javamail.address.map (Das System >>> kann >>> die angegebene Datei nicht finden) >>> DEBUG: setDebug: JavaMail version 1.4ea >>> DEBUG: not loading resource: /META-INF/javamail.address.map >>> >>> >>> >>> >>> >>> lhein wrote: >>>> >>>> I can't see a problem with the marshaler here. >>>> >>>> Have you got: >>>> >>>> <dependency> >>>> <groupId>org.apache.geronimo.javamail</groupId> >>>> <artifactId>geronimo-javamail_1.4_provider</artifactId> >>>> <version>1.6</version> >>>> </dependency> >>>> >>>> in your pom.xml ? >>>> >>>> Regards >>>> Lars >>>> >>>> >>>> >>>> 2009/1/12 Crimor <[email protected]>: >>>>> >>>>> Hi, >>>>> >>>>> I create a mail service only for sending emails. I need to add my own >>>>> Marshaler to handle the incoming message. But it seems that the service >>>>> isn't use my marshaler. I configurate the xbean as followed: >>>>> >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <beans >>>>> xmlns:mail="http://servicemix.apache.org/mail/1.0" >>>>> xmlns:ic="http://xxx.xxx.net/ic/v1/"> >>>>> >>>>> >>>>> <bean >>>>> >>>>> class="net.xxx.xxx.common.util.spring.StagePropertiesPlaceholderConfigurer"/> >>>>> >>>>> <mail:sender service="ic:mailSenderService" >>>>> endpoint="senderEndpoint" >>>>> sender="[email protected]" >>>>> receiver="[email protected]" >>>>> connection="${xxx.components.mail.service.smtpServer}" >>>>> debugMode="true"> >>>>> >>>>> <property name="marshaler"> >>>>> <bean class="net.xxx.xxx.components.ic.CustomMailMarshaler" > >>>>> <property name="jbiWrapper" ref="jbiWrapper"/> >>>>> <property name="icFactory" ref="icFactory"/> >>>>> </bean> >>>>> </property> >>>>> </mail:sender> >>>>> >>>>> <bean id="jbiWrapper" class="net.xxx.xxx.support.jbi.JbiWrapper"/> >>>>> >>>>> <bean id="icFactory" >>>>> class="net.xxx.xxx.components.ic.domain.ObjectFactory"/> >>>>> >>>>> </beans> >>>>> >>>>> >>>>> I got the following error: >>>>> >>>>> ERROR - MailComponent - Error sending mail... >>>>> javax.mail.NoSuchProviderException: No provider for ssl >>>>> at javax.mail.Session.getProvider(Session.java:455) >>>>> at javax.mail.Session.getTransport(Session.java:650) >>>>> at javax.mail.Session.getTransport(Session.java:631) >>>>> at >>>>> org.apache.servicemix.mail.MailSenderEndpoint.processInOnly(MailSenderEndpoint.java:105) >>>>> at >>>>> org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:102) >>>>> at >>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:596) >>>>> at >>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:550) >>>>> at >>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:506) >>>>> at >>>>> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60) >>>>> at >>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620) >>>>> at >>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172) >>>>> at >>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168) >>>>> at >>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >>>>> at >>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) >>>>> at >>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> ERROR - MailComponent - Error processing exchange >>>>> InOnly[ >>>>> id: ID:172.30.30.167-11eca1935b4-6:16 >>>>> status: Active >>>>> role: provider >>>>> service: {http://xxx.xxx.net/ic/v1/}mailSenderService >>>>> endpoint: senderEndpoint >>>>> in: <?xml version="1.0" >>>>> encoding="UTF-8"?><emailAddress>[email protected]</emailAddress><emailHeader>Test >>>>> message</emailHeader><emailMess >>>>> age>Das geht ja mal</emailMessage> >>>>> >>>>> >>>>> I know that the message isn't the right one because this message should >>>>> be >>>>> handled in the CustomMailMarshaler but as it seems this marshaler isn't >>>>> used. >>>>> >>>>> Any hint? >>>>> >>>>> Greetings >>>>> Crimor >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Mail-Service-Sender-Endpoint-seems-not-to-use-my-CustomMarshaler-tp21412135p21412135.html >>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> http://lhein.blogspot.com >>>> >>>> >>>> ----- >>>> Regards >>>> Lars >>>> >>>> >>>> http://lhein.blogspot.com >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Mail-Service-Sender-Endpoint-seems-not-to-use-my-CustomMarshaler-tp21412135p21413137.html >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> http://lhein.blogspot.com >> >> >> ----- >> Regards >> Lars >> >> >> http://lhein.blogspot.com >> >> > > -- > View this message in context: > http://www.nabble.com/Mail-Service-Sender-Endpoint-seems-not-to-use-my-CustomMarshaler-tp21412135p21414949.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- http://lhein.blogspot.com
