javaee / glassfish-samples

GlassFish samples has been migrated to Eclipse Foundation https://github.com/eclipse-ee4j/glassfish-samples
https://javaee.github.io/glassfish-samples/
Other
90 stars 72 forks source link

MailConnector Resource Adapter error #25

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 15 years ago

Perhaps it is not evident from the doc., after doing 'ant all', creating outbound message unable to access inbound message. I get the following error.

Mailbox: joe-Inbox@localhost ERROR when attempting to open this mailbox: joe-Inbox@localhost Error in allocating a connection. Cause: Connection refused Review the values you entered and try again.

I tried giving all forms of values for host name, still it fails.

Environment

Operating System: All Platform: All

Affected Versions

[javaee6]

glassfishrobot commented 15 years ago

Reported by msreddy

glassfishrobot commented 15 years ago

@h2002044 said: hi Sreeni, It works fine for me out of the box.

Assuming that mock-javamail.jar is available in lib directory of GF (restart needed after copying the .jar)

javaee6/connectors/apps/mailconnector/mailconnector-ear/> ant all will build, deploy .rar and the application that uses the .rar, create necessary javamail resources.

1) access : http://localhost:8080/mailconnector-war/index.html

2) Click : "Send an email message" 3) Provide the following input : From : tom@localhost To : joe@localhost Subject : What's up Message : Hi Joe !

Press send

4) click : Return to main Page

5) Refer the server.log after 5-10 seconds.

[#|2009-11-09T23:42:24.240+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ra.inbound|_ThreadID=19;_ThreadName=Thread-1;|[PT] scheduling a delivery FROM: joe::INBOX@localhost|#]

[#|2009-11-09T23:42:24.286+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ra.inbound|_ThreadID=25;_ThreadName=Thread-1;|[SC] Password validation callback succeded for user : tom|#]

[#|2009-11-09T23:42:24.287+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;| ---- Got a message |#]

[#|2009-11-09T23:42:24.288+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;| SUBJECT: What's up|#]

[#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;| SENDER : tom@localhost|#]

[#|2009-11-09T23:42:24.290+0530|INFO|glassfishv3.0|samples.connectors.mailconnector.ejb.mdb|_ThreadID=25;_ThreadName=Thread-1;| getCallerPrincipal() : tom|#]

Please follow the steps under the sections : "Mail Server" "Configuration" "Building, Deploying, and Running the Application" "Exercising the Outbound Resource Adapter" "Exercising the Inbound Resource Adapter (SecurityContext)"

glassfishrobot commented 15 years ago

@h2002044 said: documentation for the above steps at : javaee6/connectors/apps/mailconnector/docs/index.html

glassfishrobot commented 15 years ago

Was assigned to h2002044

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA GLASSFISH_SAMPLES-25

glassfishrobot commented 15 years ago

Marked as cannot reproduce on Monday, November 9th 2009, 2:20:37 am