Re: Creating a mail session
If you don't define the cluster gbeans in each web app's deployment plan then AFAIK you have to refer to it using the container-config element (it should be put right after the context-root and inverse classloading elements in geronimo-web.xml). name On 12/18/06, Pavel Maximov <[EMAIL PROTECTED]> wrote: Thank you, that works. I created a separate deployment plan for TomCat cluster and deployed it successfully - it shows up as running under system modules. However, when I"m trying to deploy a web app referencing that cluster configuration - it fails. Any ideas why it can't find TomcatCluster would be appreciated. Do I need to declare gbean-ref to TomcatCluster in geronimo-web.xml? Actually I tried and still doesn't find. Here is part of geronimo-web.xml: .. returnpath TomcatCluster ... TomcatCluster Fails to start. Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration returnpath/prequal/1.7.0-myview/war failed to start due to the following reasons: The service J2EEApplication=null,j2eeType=WebModule,name=returnpath/prequal/1.7.0-myview/war did not start because returnpath/prequal/1.7.0-myview/war?J2EEApplication=null,WebModule=returnpath/prequal/1.7.0-myview/war,j2eeType=Cluster,name=TomcatCluster did not start. at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans (ConfigurationUtil.java:403) ... 14 more Cluster deployment plan: < module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1";> returnpath TomcatCluster 1.2.0 car geronimo tomcat car org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=false notifyListenersOnReplication=true TomcatMembership TomcatReceiver TomcatSender ReplicationValve org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=172.16.215.2 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6 org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; JvmRouteBinderValve org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true -- *From:* David Carew [mailto:[EMAIL PROTECTED] *Sent:* Monday, December 18, 2006 3:26 PM *To:* user@geronimo.apache.org *Subject:* Re: Creating a mail session You can deploy it on its own. Just point the deployer to the plan. If using the Admin Console just select "Deploy New" and fill in the plan field (leaving the application/module field empty). On 12/18/06, Pavel Maximov <[EMAIL PROTECTED]> wrote: > > Saw this email. > > I'm trying to create a system-wide cluster config as a deployable module > and then reference it from geronimo-web.xml > > The deployment descriptor below - should it be packaged as an ejb-jar? > And do you deploy it as an application or as a common-lib? > > Thank you, > --Pavel. > > -Original Message- > From: Mike Perham [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 29, 2006 5:16 PM > To: user@geronimo.apache.org > Subject: Re: Creating a mail session > > Thanks, all. The following plan will create a system-wide mail session. > In your J2EE module, you just need to declare a dependency on it. > > http://geronimo.apache.org/xml/ns/deployment-1.1";> > > > geronimo > MailSession > 1.0 > > > > geronimo > javamail > > > geronimo > geronimo-mail > jar > > > geronimo > geronimo-javamail-transport > jar > > > > > > smtp > false > mailserver > > mail.debug=false > mail.smtp.port=25 > > > > > On 11/27/06, David Carew < [EMAIL PROTECTED]> wrote: > > Take a look at the WAS CE samples (you can download them from the same > > > place you downloaded WAS CE). There's an application called > > PlantsByWebsphere that uses a mail session and has all the required > info in the deployment plan . > > I've tried it before and it has worked for me. HTH > > > > > > On 11/27/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > I've spent the last few days trying to figure out how to create an > >
RE: Creating a mail session
Thank you, that works. I created a separate deployment plan for TomCat cluster and deployed it successfully - it shows up as running under system modules. However, when I"m trying to deploy a web app referencing that cluster configuration - it fails. Any ideas why it can't find TomcatCluster would be appreciated. Do I need to declare gbean-ref to TomcatCluster in geronimo-web.xml? Actually I tried and still doesn't find. Here is part of geronimo-web.xml: .. returnpath TomcatCluster ... TomcatCluster Fails to start. Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration returnpath/prequal/1.7.0-myview/war failed to start due to the following reasons: The service J2EEApplication=null,j2eeType=WebModule,name=returnpath/prequal/1.7.0-my view/war did not start because returnpath/prequal/1.7.0-myview/war?J2EEApplication=null,WebModule=retur npath/prequal/1.7.0-myview/war,j2eeType=Cluster,name=TomcatCluster did not start. at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGB eans(ConfigurationUtil.java:403) ... 14 more Cluster deployment plan: http://geronimo.apache.org/xml/ns/deployment-1.1";> returnpath TomcatCluster 1.2.0 car geronimo tomcat car org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=false notifyListenersOnReplication=true TomcatMembership TomcatReceiver TomcatSender ReplicationValve org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=172.16.215.2 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6 org.apache.catalina.cluster.tcp.ReplicationTransmitter< /attribute> replicationMode=pooled ackTimeout=15000 org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg ;.*\.htm;.*\.html;.*\.txt; JvmRouteBinderValve org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true From: David Carew [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 3:26 PM To: user@geronimo.apache.org Subject: Re: Creating a mail session You can deploy it on its own. Just point the deployer to the plan. If using the Admin Console just select "Deploy New" and fill in the plan field (leaving the application/module field empty). On 12/18/06, Pavel Maximov <[EMAIL PROTECTED]> wrote: Saw this email. I'm trying to create a system-wide cluster config as a deployable module and then reference it from geronimo-web.xml The deployment descriptor below - should it be packaged as an ejb-jar? And do you deploy it as an application or as a common-lib? Thank you, --Pavel. -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 5:16 PM To: user@geronimo.apache.org Subject: Re: Creating a mail session Thanks, all. The following plan will create a system-wide mail session. In your J2EE module, you just need to declare a dependency on it. http://geronimo.apache.org/xml/ns/deployment-1.1";> geronimo MailSession 1.0 geronimo javamail geronimo geronimo-mail jar geronimo geronimo-javamail-transport jar smtp false mailserver mail.debug=false mail.smtp.port=25 On 11/27/06, David Carew < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: > Take a look at the WAS CE samples (you can download them from the same > place you downloaded WAS CE). There's an application called > PlantsByWebsphere that uses a mail session and has all the required info in the deployment plan . > I've tried it before and it has worked for me. HTH > > > On 11/27/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > I've spent the last few days trying to figure out how to create an > > system-wide javamail Session for application email usage.
Re: Creating a mail session
You can deploy it on its own. Just point the deployer to the plan. If using the Admin Console just select "Deploy New" and fill in the plan field (leaving the application/module field empty). On 12/18/06, Pavel Maximov <[EMAIL PROTECTED]> wrote: Saw this email. I'm trying to create a system-wide cluster config as a deployable module and then reference it from geronimo-web.xml The deployment descriptor below - should it be packaged as an ejb-jar? And do you deploy it as an application or as a common-lib? Thank you, --Pavel. -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 5:16 PM To: user@geronimo.apache.org Subject: Re: Creating a mail session Thanks, all. The following plan will create a system-wide mail session. In your J2EE module, you just need to declare a dependency on it. http://geronimo.apache.org/xml/ns/deployment-1.1";> geronimo MailSession 1.0 geronimo javamail geronimo geronimo-mail jar geronimo geronimo-javamail-transport jar smtp false mailserver mail.debug=false mail.smtp.port=25 On 11/27/06, David Carew <[EMAIL PROTECTED]> wrote: > Take a look at the WAS CE samples (you can download them from the same > place you downloaded WAS CE). There's an application called > PlantsByWebsphere that uses a mail session and has all the required info in the deployment plan . > I've tried it before and it has worked for me. HTH > > > On 11/27/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > I've spent the last few days trying to figure out how to create an > > system-wide javamail Session for application email usage. > > > > I updated the javamail module in config.xml to point to my SMTP > > server but can't find any documentation on how to create a session > > based on that config. If someone has a working mail session, could > > you reply with your plan? I'm using WAS CE 1.1.0.1. > > > > mike > > > >
RE: Creating a mail session
Saw this email. I'm trying to create a system-wide cluster config as a deployable module and then reference it from geronimo-web.xml The deployment descriptor below - should it be packaged as an ejb-jar? And do you deploy it as an application or as a common-lib? Thank you, --Pavel. -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 5:16 PM To: user@geronimo.apache.org Subject: Re: Creating a mail session Thanks, all. The following plan will create a system-wide mail session. In your J2EE module, you just need to declare a dependency on it. http://geronimo.apache.org/xml/ns/deployment-1.1";> geronimo MailSession 1.0 geronimo javamail geronimo geronimo-mail jar geronimo geronimo-javamail-transport jar smtp false mailserver mail.debug=false mail.smtp.port=25 On 11/27/06, David Carew <[EMAIL PROTECTED]> wrote: > Take a look at the WAS CE samples (you can download them from the same > place you downloaded WAS CE). There's an application called > PlantsByWebsphere that uses a mail session and has all the required info in the deployment plan . > I've tried it before and it has worked for me. HTH > > > On 11/27/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > I've spent the last few days trying to figure out how to create an > > system-wide javamail Session for application email usage. > > > > I updated the javamail module in config.xml to point to my SMTP > > server but can't find any documentation on how to create a session > > based on that config. If someone has a working mail session, could > > you reply with your plan? I'm using WAS CE 1.1.0.1. > > > > mike > > > >
Re: Creating a mail session
Thanks, all. The following plan will create a system-wide mail session. In your J2EE module, you just need to declare a dependency on it. http://geronimo.apache.org/xml/ns/deployment-1.1";> geronimo MailSession 1.0 geronimo javamail geronimo geronimo-mail jar geronimo geronimo-javamail-transport jar smtp false mailserver mail.debug=false mail.smtp.port=25 On 11/27/06, David Carew <[EMAIL PROTECTED]> wrote: Take a look at the WAS CE samples (you can download them from the same place you downloaded WAS CE). There's an application called PlantsByWebsphere that uses a mail session and has all the required info in the deployment plan . I've tried it before and it has worked for me. HTH On 11/27/06, Mike Perham <[EMAIL PROTECTED]> wrote: > I've spent the last few days trying to figure out how to create an > system-wide javamail Session for application email usage. > > I updated the javamail module in config.xml to point to my SMTP server > but can't find any documentation on how to create a session based on > that config. If someone has a working mail session, could you reply > with your plan? I'm using WAS CE 1.1.0.1. > > mike >
Re: Creating a mail session
Take a look at the WAS CE samples (you can download them from the same place you downloaded WAS CE). There's an application called PlantsByWebsphere that uses a mail session and has all the required info in the deployment plan . I've tried it before and it has worked for me. HTH On 11/27/06, Mike Perham <[EMAIL PROTECTED]> wrote: I've spent the last few days trying to figure out how to create an system-wide javamail Session for application email usage. I updated the javamail module in config.xml to point to my SMTP server but can't find any documentation on how to create a session based on that config. If someone has a working mail session, could you reply with your plan? I'm using WAS CE 1.1.0.1. mike
Re: Creating a mail session
On Nov 27, 2006, at 7:36 AM, Mike Perham wrote: I've spent the last few days trying to figure out how to create an system-wide javamail Session for application email usage. I updated the javamail module in config.xml to point to my SMTP server but can't find any documentation on how to create a session based on that config. If someone has a working mail session, could you reply with your plan? I'm using WAS CE 1.1.0.1. I don't have an example, but the steps should be: - add the javamail module as a dependency to your j2ee app - use a resource-ref in your j2ee app of type javax.mail.Session. If you name the resource-ref "mail/MailSession" and look up java:comp/ env/mail/MailSession you should be able to omit any configuration in the geronimo plan for your app. Otherwise you can use the resource- link element to point to mail/MailSession. Hope this helps david jencks mike