去开源社区找邮件服务器,发现一个jwebmail。
下载下来就开始用。。
结果报错:WebMail/Java Server v0.7.10 going up...
=====================================
Initalizing...
- Checking Java Virtual Machine ...
* Version: 1.5.0_11 ... ok.
* Operating System: Windows XP/x86 5.1 ... warning. WebMail was only tested
on Solaris, HP-UX and Linux and may cause problems on your platform.
* User name: Administrator ... ok.
* WebMail System Properties: ok!
* Setting DTD-path in webmail.xml ... done!
- Configuration Scheme Handler ... done!
- Default Locale: 英文 (美国)
- Default Theme: bibop
- Initializing WebMail Authenticator Plugins ...
2007-7-30 14:05:59 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: javax/mail/MessagingException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at net.wastl.webmail.server.AuthenticatorHandler.registerAuthenticators(AuthenticatorHandler.java:71)
at net.wastl.webmail.server.AuthenticatorHandler. <init> (AuthenticatorHandler.java:54)
at net.wastl.webmail.server.WebMailServer.doInit(WebMailServer.java:156)
at net.wastl.webmail.server.WebMailServlet.init(WebMailServlet.java:124)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
2007-7-30 14:05:59 org.apache.catalina.core.StandardWrapperValve invoke
运行环境:windows xp, tomcat 5.5 , jdk 1.5 不知道大家遇到过没有。
不知道能不能解决。。
大家给推荐下好用的邮件服务器(开源的)。。
------解决方案--------------------------------------------------------
java.lang.NoClassDefFoundError: javax/mail/MessagingException
需要将javamail的包设置到classpath
------解决方案--------------------------------------------------------
需要JMAIL的支持
找个JMAIL.JAR放到你的LIB下面