[Myeclipse] WebBrowser 输入http://localhost:8080/jspServlet 无法显示网页

Roinging 2017-07-05 08:31:32
确认端口是8080
Console 情况:
七月 05, 2017 5:41:28 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\asus\MyEclipse Professional 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\bin;C:\Users\asus\MyEclipse Professional 2014\plugins\com.genuitec.eclipse.easie.tomcat7.myeclipse_11.5.0.me201310302042\tomcat\bin
七月 05, 2017 5:41:30 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
七月 05, 2017 5:41:30 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
七月 05, 2017 5:41:30 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 4779 ms
七月 05, 2017 5:41:31 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
七月 05, 2017 5:41:31 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.30
七月 05, 2017 5:41:31 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
七月 05, 2017 5:41:31 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
七月 05, 2017 5:41:31 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 250 ms

Serves 最后一行: MyEclipse Tomcat 7 Running Debug
...全文
397 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
李德胜1995 2017-07-06
  • 打赏
  • 举报
回复
引用 2 楼 Roinging 的回复:
确定访问路径就是 http://localhost:8080/jspServlet
去tomcat里面看部署的文件名和在myeclipse的工程名是否一致,访问webcontent下面的index.jsp试试 http://localhost::8080/项目名/index.jsp
waxf523 2017-07-06
  • 打赏
  • 举报
回复
带上项目名看看,有可能你tomcat生成的项目名和你建的项目名不一致;也可以将tomcat生成的path名去掉,如<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"><Context docBase="xxx" path="/" reloadable="true" source="org.eclipse.jst.jee.server:xxx"/></Host>
  • 打赏
  • 举报
回复
1.你看看你的tomcat webapps 目录下有没有你项目文件夹 2.项目大小写有没有问题? 3.http://localhost::8080/项目名/index.jsp 加上index.jsp试试 4.http://127.0.0.1:8080/项目名 试试
Roinging 2017-07-05
  • 打赏
  • 举报
回复
后来重新加了一次tomcat,运行显示: 七月 05, 2017 9:13:37 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\asus\MyEclipse Professional 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\bin;C:\Users\asus\MyEclipse Professional 2014\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_11.0.0.me201211151802\tomcat\bin 七月 05, 2017 9:13:37 下午 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 七月 05, 2017 9:13:37 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 542 ms 七月 05, 2017 9:13:37 下午 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 七月 05, 2017 9:13:37 下午 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.13 七月 05, 2017 9:13:38 下午 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 七月 05, 2017 9:13:38 下午 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 七月 05, 2017 9:13:38 下午 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/46 config=null 七月 05, 2017 9:13:38 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 774 ms
NANU-NANA 2017-07-05
  • 打赏
  • 举报
回复
引用 1 楼 pany1209 的回复:
没报错。。。访问路径写错了???
连续5个月第一,真牛啊
Roinging 2017-07-05
  • 打赏
  • 举报
回复
确定访问路径就是 http://localhost:8080/jspServlet
李德胜1995 2017-07-05
  • 打赏
  • 举报
回复
没报错。。。访问路径写错了???

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧