|
From: <hak...@la...> - 2005-11-06 12:10:19
|
Hi again and thanks for the answer. First i would like to say that it's a nice framework, easy to understand and very configurable. The smtp settings seems to work fine, it's through a regular=20 property file. E.g mail server and port is from property file and=20 their properties come out in the stacktrace so it's probably not that. I've changed the user on the service to administrator as with console = but it doesn't help. I wonder if it's some security policy in windows but i=20 have no clue. /H=E5kan -----Original Message----- From: wra...@li... [mailto:wra...@li...] On Behalf Of Leif Mortenson Sent: den 6 november 2005 12:38 To: wra...@li... Subject: Re: [Wrapper-user] Problem with SMTP on Windows Hakan, How are the SMTP settings being configured in your application? There=20 shouldn't be anything about the Wrapper that would prevent you from connecting to=20 your mail server if it is being configured correctly. Try adding the wrapper.debug=3Dtrue = property and verify that the command line being used to launch the JVM contains all=20 of the expected values. A common problem is problems with environment variables. Make sure that = any variables your application needs are defined system wide and not just=20 for your user. Cheers, Leif H=E5kan Fransson wrote: >Hi! >I=92m just started to use the wrapper to make a Windows service of my = java >application. It works perfectly when >i run it as a consle but when i=92m try to send an email with wrapper = as a >windows service i get: > >javax.mail.MessagingException: Could not connect to SMTP host: >mail.steencon.se, port: 25; > nested exception is: > java.net.ConnectException: Connection refused: connect > at >com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227) > at >com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322) > at javax.mail.Service.connect(Service.java:236) > at javax.mail.Service.connect(Service.java:137) > at javax.mail.Service.connect(Service.java:86) > at javax.mail.Transport.send0(Transport.java:150) > at javax.mail.Transport.send(Transport.java:80) > at >se.cesp.delivery.common.util.EmailCommunicator.send(EmailCommunicator.ja= va: 1 >88) > at >se.cesp.delivery.impl.OfferWebbEmail.execute(OfferWebbEmail.java:95) > at >se.cesp.delivery.common.util.DeliveryInvoker.run(DeliveryInvoker.java:81= ) > at java.lang.Thread.run(Thread.java:534) > >It doesn=92t matter i run the service with system account or = administrator(as >with console), it=92s the same >result. >The java application also uses FTP and it works fine in both ways. >Any ideas? > >Thanks in advance H=E5kan > >---------------------------------------------------------------- >H=E5kan Fransson Phone: +46(0)90 - 786 74 93 >Ladokenheten Fax: +46(0)90 - 786 69 91 >Ume=E5 University www: www.umu.se/ladokenheten >SE - 90187 Ume=E5 >------------------------------------------------------------- > =20 > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. = Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |