HTTP Error 500.19 - Internal Server Error 由于权限不足而无法读取配置文件

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u012329294/article/details/77202104

HTTP Error 500.19 - Internal Server Error 由于权限不足而无法读取配置文件 


一般由于访问者无权限,解决方案,在文件夹的安全选项下添加everyone,并给予“修改”权限,则一切OK。


展开阅读全文

The server encountered an internal error ()

07-13

我现在用mysql做了个登录页面,就是改了下数据库,其他的还是我原来在oracle上的内容,但输入用户和密码后提示:rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnjavax.servlet.ServletExceptionrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn struts.action.LoginAction.execute(LoginAction.java:41)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.rnrnrn在MyEclipse下没有提示信息rn问题在哪啊? 论坛

javamail Internal Server Error

06-20

使用javamail写的发送邮件程序,使用本机的邮件服务器,发送没有总是,但是换成163的邮箱后,发生错误.程序有两部分1\jsp页面.2\servlet程序.rn1\jsp程序rnrn rn说我内容太多,以下省....rn 2\servlet程序rnpackage testmail;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport java.io.*;rnimport javax.mail.*;rnimport javax.mail.internet.*;rnimport java.util.*;rnimport javax.activation.*;rnclass Auth extends Authenticatorrnrn String username="";rn String password="";rn public Auth(String username,String password)rn this.username=username;rn this.password=password;rn rn public PasswordAuthentication getPasswordAuthentication()rn rn return new PasswordAuthentication(username,password);rn rnrnrnpublic class SendMail extends HttpServlet rn private static final String CONTENT_TYPE = "text/html; charset=GB18030";rnrn //Initialize global variablesrn public void init() throws ServletException rn rnrn //Process the HTTP Get requestrn public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn response.setContentType(CONTENT_TYPE);rn PrintWriter out = response.getWriter();rn tryrn Properties props=new Properties();rn Session sendMailSession;rn Store store;rn Transport transport;rn props.put("mail.smtp.host","smtp.163.com");rn props.put("mail.smtp.auth","true");rn Auth auth=new Auth("test","test");rn sendMailSession=Session.getDefaultInstance(props,(Authenticator)auth);rn Message newMessage=new MimeMessage(sendMailSession);rn newMessage.setFrom(new InternetAddress(request.getParameter("from")));rn newMessage.setRecipient(Message.RecipientType.TO,new InternetAddress(request.getParameter("to")));rn newMessage.setSubject(new String(request.getParameter("subject").getBytes("iso-8859-1")));rn newMessage.setSentDate(new Date());rn newMessage.setText(new String(request.getParameter("text").getBytes("iso-8859-1")));rnrn Transport.send(newMessage);rn out.println("the Email send sucess!");rn rn catch(MessagingException m)rn rn out.print(m.toString());rn rn rnrn public void destroy() rnrn protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOExceptionrn doPost(request,response) ;rn rnrn用户名和密码没问题的,大家不用担心rn错误信息:rntype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception javax.servlet.ServletException: Error instantiating servlet class testmail.SendMailrn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:895)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)rn at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)rn at java.lang.Thread.run(Thread.java:534)rnroot cause java.lang.NoClassDefFoundError: testmail/Authrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)rn at java.lang.Class.getConstructor0(Class.java:1922)rn at java.lang.Class.newInstance0(Class.java:278)rn at java.lang.Class.newInstance(Class.java:261)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:886)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)rn at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)rn at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)rn at java.lang.Thread.run(Thread.java:534)rnrn看了网上有类似的问题,但他们说是mail.jar包找不到或者是activation.jar,我用的是JBuildX,在Tomcat的目录下能看到那个两包.请大家帮忙看看. 论坛

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