geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael C." <mcr...@amica.com>
Subject geronimo mail 1.1.1
Date Wed, 24 Jan 2007 15:57:38 GMT

Our team has just upgraded from geronimo 1.0 to 1.1.1
Previously, to surpress javamail errors, we had to create a gbean and deploy
it, then add a resource-ref entry to our geronimo-web.xml file and this
worked.  

Since our upgrade, we are back to our original javamail errors.  I found
entries on other postings here and successfully deployed the following plan:

<?xml version="1.0" encoding="UTF-8"?> 

<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1"> 
 <dep:environment 
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> 
   <dep:moduleId> 
     <dep:groupId>geronimo</dep:groupId> 
     <dep:artifactId>javamail-server</dep:artifactId> 
   </dep:moduleId> 
  
   <dep:dependencies> 
     <dep:dependency> 
       <dep:groupId>geronimo</dep:groupId> 
       <dep:artifactId>geronimo-mail</dep:artifactId> 
       <dep:version>1.1.1</dep:version> 
       <dep:type>jar</dep:type> 
       <dep:import>classes</dep:import> 
     </dep:dependency> 
     <dep:dependency> 
       <dep:groupId>geronimo</dep:groupId> 
       <dep:artifactId>geronimo-javamail-transport</dep:artifactId> 
       <dep:version>1.1.1</dep:version> 
       <dep:type>jar</dep:type> 
       <dep:import>classes</dep:import> 
     </dep:dependency> 
     <dep:dependency> 
       <dep:groupId>geronimo</dep:groupId> 
       <dep:artifactId>rmi-naming</dep:artifactId> 
       <dep:type>car</dep:type> 
     </dep:dependency> 
   </dep:dependencies> 
   <dep:hidden-classes/> 
   <dep:non-overridable-classes/> 
 </dep:environment> 
  
 <gbean name="SMTPTransport" 
class="org.apache.geronimo.mail.SMTPTransportGBean"> 
   <attribute name="host">our smtp remote host</attribute> 
   <attribute name="port">25</attribute> 
 </gbean> 
 <gbean name="mail/MailSession" class="org.apache.geronimo.mail.MailGBean"> 
   <attribute name="transportProtocol">smtp</attribute> 
   <attribute name="debug">true</attribute> 
   <reference name="Protocols"> 
      <name>SMTPTransport</name> 
   </reference> 
 </gbean> 
</module>

at this point, we need an entry in our geronimo-web.xml and so i have added
this:

<resource-ref> 
           <property>MailSession</property> 
           <res-type>javax.mail.Session</res-type> 
           <res-auth>Container</res-auth> 
           <res-sharing-scope>Shareable</res-sharing-scope> 
           <pattern> 
                <name>mail/MailSession</name> 
           </pattern> 
       </resource-ref>    

This entry throws the following error:

10:16:48,922 ERROR [Hot Deployer] Unable to deploy: xml problem for web app
.

org.apache.geronimo.common.DeploymentException: xml problem for web app .

      at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:234)

      at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:158)

      at
org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:121)

      at
org.apache.geronimo.web.deployment.AbstractWebModuleBuilder$$FastClassByCGLIB$$459e0cc.invoke(<generated>)

      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

      at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

      at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

      at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

      at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

      at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$1f792348.createModule(<generated>)

      at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)

      at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(<generated>)

      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

      at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

      at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

      at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

      at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

      at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$1f792348.createModule(<generated>)

      at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:275)

      at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)

      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

      at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

      at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

      at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

      at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)

      at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$2b662bba.getDeploymentPlan(<generated>)

      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:232)

      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)

      at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)

      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

      at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

      at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

      at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852)

      at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)

      at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106)

      at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)

      at java.lang.Thread.run(Thread.java:534)

Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor:
[error: cvc-complex-type.2.4a: Expected element
'ref-name@http://geronimo.apache.org/xml/ns/naming-1.1' instead of
'property@http://geronimo.apache.org/xml/ns/naming-1.1' here in element
resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1, error:
cvc-complex-type.2.4a: Expected element
'ref-name@http://geronimo.apache.org/xml/ns/naming-1.1' instead of
'res-type@http://geronimo.apache.org/xml/ns/naming-1.1' here in element
resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1, error:
cvc-complex-type.2.4a: Expected element
'ref-name@http://geronimo.apache.org/xml/ns/naming-1.1' instead of
'res-auth@http://geronimo.apache.org/xml/ns/naming-1.1' here in element
resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1, error:
cvc-complex-type.2.4a: Expected element
'ref-name@http://geronimo.apache.org/xml/ns/naming-1.1' instead of
'res-sharing-scope@http://geronimo.apache.org/xml/ns/naming-1.1' here in
element resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1, error:
cvc-complex-type.2.4a: Expected element
'ref-name@http://geronimo.apache.org/xml/ns/naming-1.1' instead of
'pattern@http://geronimo.apache.org/xml/ns/naming-1.1' here in element
resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1, error:
cvc-complex-type.2.4c: Expected element
'ref-name@http://geronimo.apache.org/xml/ns/naming-1.1' before the end of
the content in element
resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1]

Descriptor: <xml-fragment
xsi:schemaLocation="http://geronimo.apache.org/xml/ns/j2ee/web-1.1    
../../../schemas/geronimo-web-1.1.xsd
http://geronimo.apache.org/xml/ns/naming-1.1     geronimo-naming-1.1.xsd
http://geronimo..apache.org/xml/ns/security-1.1    
geronimo-security-1.1.xsd http://geronimo.apache.org/xml/ns/deployment-1.1    
geronimo-module-1.1.xsd "
xmlns:geronimo="http://geronimo.apache.org/xml/ns/security-1.1"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1">

Can anyone provide assistance?  Thanks in advance.
-- 
View this message in context: http://www.nabble.com/geronimo-mail-1.1.1-tf3081989.html#a8563115
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message