IIS 503错误原因

展开阅读全文

tomcat 503错误

07-13

tomcat运行日志:rn2012-7-13 3:31:44 org.apache.catalina.core.StandardContext resourcesStartrn严重: Error starting static Resourcesrnjava.lang.IllegalArgumentException: Document base F:\gwms_java\WebRoot does not exist or is not a readable directoryrn at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)rn at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4319)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn我挺疑惑的一个问题是我在tomcat/conf/cataline/localhost/gwms_java.xml的Document base配置是 E:\gwms_java\WebRoot,不明白每次运行的时候总是跑到F盘去了。rn求各位大虾指点! 论坛

java发送邮件503错误!!!

01-29

代码如下:[code=Java]package test;rnrnimport java.io.IOException;rnimport java.util.Properties;rnrnimport javax.activation.DataHandler;rnimport javax.mail.Message;rnimport javax.mail.MessagingException;rnimport javax.mail.Session;rnimport javax.mail.Transport;rnimport javax.mail.internet.AddressException;rnimport javax.mail.internet.InternetAddress;rnimport javax.mail.internet.MimeMessage;rnimport javax.mail.util.ByteArrayDataSource;rnrnpublic class SeUglyBO rn private String host = "smtp.qq.com"; // 定义发送用户帐号密码rnrn private String from = "593456521@qq.com";rnrn private String user = "593456521@qq.com";rn rn private String password = "13206511521";/**rn * 大部分rn * @param namern * @param torn * @param titlern * @param contentrn * @param liern * @returnrn * @throws IOExceptionrn */rn public boolean send(String to, String title, String content) throws IOException rn //System.out.println(to);rn boolean ioke = true;rn try rn System.out.println(to+"======"+title+"======"+content);rn // 架设smtprn Properties pro = new Properties();rn pro.put("smtp.qq.com", host);rn pro.put("smtp.qq.com", "true");// ******8rnrn Session session = Session.getDefaultInstance(pro);rn session.setDebug(true); // 是否在控制台打出语句rnrn MimeMessage message = new MimeMessage(session); // 定义重哪个邮箱到哪个邮箱的地址和内容rn message.setFrom(new InternetAddress(from));rn message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));rnrn message.setSubject(title);rn collect(content, message);rn message.saveChanges();rnrn Transport tran = session.getTransport("smtp"); // 通过SMTP效验用户,密码等进行连接rn tran.connect(host, user, password);rn tran.sendMessage(message, message.getAllRecipients());rn tran.close();rnrn catch (AddressException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn ioke = false;rn catch (MessagingException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn ioke = false;rn rnrn return ioke;rn rn [/code]rn测试调用代码如下:rn[code=Java]package test;rnrnimport java.io.IOException;rnrnimport action.SendEmailAction;rnrnpublic class test rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn SeUglyBO se=new SeUglyBO();rn try rn rn se.send("123456@qq.com","撒的发生的发生","撒旦法。");rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rnrn[/code]rn错误如下:rnDEBUG: setDebug: JavaMail version 1.3.1rnDEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]rnDEBUG SMTP: useEhlo true, useAuth falsernDEBUG SMTP: trying to connect to host "smtp.qq.com", port 25rnrn220 smtp.qq.com Esmtp QQ Mail ServerrnDEBUG SMTP: connected to host "smtp.qq.com", port: 25rnrnEHLO cnjsb-f06601272rn250-smtp.qq.comrn250-PIPELININGrn250-SIZE 52428800rn250-AUTH LOGIN PLAINrn250-AUTH=LOGINrn250-MAILCOMPRESSrn250 8BITMIMErnDEBUG SMTP: Found extension "PIPELINING", arg ""rnDEBUG SMTP: Found extension "SIZE", arg "52428800"rnDEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"rnDEBUG SMTP: Found extension "AUTH=LOGIN", arg ""rnDEBUG SMTP: Found extension "MAILCOMPRESS", arg ""rnDEBUG SMTP: Found extension "8BITMIME", arg ""rnDEBUG SMTP: use8bit falsernMAIL FROM:<593456521@qq.com>rn503 Error: need EHLO and AUTH first !rnjavax.mail.MessagingException: 503 Error: need EHLO and AUTH first !rnrn at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1020)rn at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:716)rn at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:388)rn at test.SeUglyBO.send(SeUglyBO.java:56)rn at test.test.main(test.java:17)rn 论坛

【求助】关于Apahce的503错误

09-10

Service Temporarily UnavailablernThe server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.rnrnrn--------------------------------------------------------------------------------rnrnApache/2.0.59 (Win32) mod_jk/1.2.20 Server at local-iims2.nhncorp.com Port 80rnrn---------------------------------------------------------rnrnapache log如下.rn[code=HTML][Fri Sep 10 17:22:52 2010] [6096:6620] [info] jk_connect.c (451): connect to 127.0.0.1:8009 failed with errno=61rn[Fri Sep 10 17:22:52 2010] [6096:6620] [info] jk_ajp_common.c (873): Failed opening socket to (127.0.0.1:8009) with (errno=61)rn[Fri Sep 10 17:22:52 2010] [6096:6620] [info] jk_ajp_common.c (1259): (nhn) error connecting to the backend server (errno=61)rn[Fri Sep 10 17:22:52 2010] [6096:6620] [info] jk_ajp_common.c (1916): (nhn) sending request to tomcat failed, recoverable operation attempt=1rn[Fri Sep 10 17:22:53 2010] [6096:6620] [info] jk_connect.c (451): connect to 127.0.0.1:8009 failed with errno=61rn[Fri Sep 10 17:22:53 2010] [6096:6620] [info] jk_ajp_common.c (873): Failed opening socket to (127.0.0.1:8009) with (errno=61)rn[Fri Sep 10 17:22:53 2010] [6096:6620] [info] jk_ajp_common.c (1259): (nhn) error connecting to the backend server (errno=61)rn[Fri Sep 10 17:22:53 2010] [6096:6620] [info] jk_ajp_common.c (1916): (nhn) sending request to tomcat failed, recoverable operation attempt=2rn[Fri Sep 10 17:22:53 2010] [6096:6620] [error] jk_ajp_common.c (1928): (nhn) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port[/code]rnrn我的tomcat server.xml已经开了ajp端口了.rnrnserver.xmlrn[code=XML][/code]rn 论坛

没有更多推荐了,返回首页