I deployed my Application as war file in JBoss. While Deploying my war file the following Exception Occurs.
ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/usr/local/jboss-3.2. 3/server/default/deploy/mgr.war/ org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resour ce-ref: mail/Session has no valid JNDI binding. Check the jboss-web/resource-ref.) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:440) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 I didnt use EJB.Its just jsp and servlets. I didnt use no mail concepts While running the same war in Tomcat 4.1 it works fine. In my web.xml the resource-ref tag has like <resource-ref> <res-ref-name>mail/Session</res-ref-name> <res-type>javax.mail.Session</res-type> <res-auth>Container</res-auth> <jndi-name>java:/Mail</jndi-name> </resource-ref> If i remove this from web.xml At that time it shows Exeption what can i do for this. will u pls help me regading this Regards Sendil View the original post : http://staging.jboss.com/index.html?module=bb&op=viewtopic&p=3890775#3890775 Reply to the post : http://staging.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3890775 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
