Spring / Tomcat超时 - 邮件jndi问题?

时间:2014-12-06 20:44:38

标签: spring tomcat timeout jndi

我尝试使用Spring / Tomcat运行应用程序。有许多JNDI查找,包括一个到JDBC数据库,另一个到邮件服务。这些是在server.xml中配置的。这似乎在Ubuntu中运行良好,但在Windows 7上,我需要设置" resource-link" META-INF / context.xml中的标记指向server.xml中的资源和环境变量。

当我尝试运行时,我正在获取此错误列表;

DEBUG: JavaMail version 1.3.1
DEBUG: java.io.FileNotFoundException: C:\Program Files (x86)\Java\jre6\lib\javamail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\Program Files (x86)\Java\jre6\lib\javamail.address.map (The system cannot find the file specified)

我不完全确定这是否是导致服务器超时的原因,因为有一次我确实让它运行,即使有这些消息。关于该怎么做的任何想法?

0 个答案:

没有答案