从eclipse中启动tomcat和直接启动tomcat
我做struts的程序,从eclipse中启动tomcat,网站可以正常运行(当时环境变量中没有设置tomcat相关的东西)。
如果关掉eclipse,直接启动Monitor tomcat,页面报错。
还有,我在两天前直接启动Monitor tomcat运行一个下载的网站,可以成功运行。
昨天就启动不起来了,页面报错。下载的那个东西肯定没有改过。环境(jdk tomcat)也没动过,这个问题比较奇怪,是系统问题还是环境有所改变。
在环境变量中配置了一下
CLASSPATH=.\;%JAVA_HOME%\lib;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib;D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\test\WEB-INF\classes
path==%JAVA_HOME%\bin;%PATH%;C:\Program Files\ThinkPad\Utilities;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\IBM ThinkVantage\Client Security Solution;C:\Program Files\ThinkPad\ConnectUtilities
希望高手解答,谢谢了。
http://localhost:8080/test/a.html这都能运行,http://localhost:8080 Tomcat欢迎画面,管理都能运行。我感觉是程序的问题?但在MyEclipse中启动tomcat就没有任何问题?
直接启动tomcat报错:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Index: 0, Size: 0
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.util.ArrayList.RangeCheck(Unknown Source)
java.util.ArrayList.get(Unknown Source)
org.apache.jsp.vivian8117_jsp._jspService(vivian8117_jsp.java:91)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
[解决办法]
ECLIPSE的JDK
和TOMCAT用的是一样的么
[解决办法]
是不是.xml配置有问题.tomcat下的文件夹conf里有一个server.xml里面的配置可能出现问题,因为,eclipse自动生成了一个虚拟路径后,可能会导致tomcat不能自己启动,解决的方法是删除掉 </Host>
前的一些东西,当然具体问题还要具体分析.
[解决办法]
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
//你一开始的是5.0.30版本啊 你怎么又装了5.0.28 你的eclipse里面启动的tomcat是不是和你手动启动的tomcat不是同一个啊
[解决办法]
看一下我的blog可能会带来帮助
http://blog.csdn.net/qwert520/archive/2005/11/03/521653.aspx
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html