当前位置: 技术问答>java相关
linux下tomcat 运行的问题(内祥)
来源: 互联网 发布时间:2017-03-13
本文导语: 各位大侠:小弟请教一个问题 我在linux下安装了jdk1.4和tomcat,在/etc/profile里的设置如下(在文件的最下面) PATH="$PATH:/usr/local/jakarta-tomcat-4.0.4/bin:/usr/local/jdk1.4/bin:/usr/local/jre/bin :/usr/local/jakarta-...
各位大侠:小弟请教一个问题
我在linux下安装了jdk1.4和tomcat,在/etc/profile里的设置如下(在文件的最下面)
PATH="$PATH:/usr/local/jakarta-tomcat-4.0.4/bin:/usr/local/jdk1.4/bin:/usr/local/jre/bin
:/usr/local/jakarta-tomcat-4.0.4/webapps/netyz/web-inf
:/usr/local/jakarta-tomcat-4.0.4/common/lib"
JAVA_HOME=/usr/local/jdk1.4
export JAVA_HOME
JRE_HOME=/usr/local/jdk1.4
export JRE_HOME
TOMCAT_HOME=/usr/local/jakarta-tomcat-4.0.4
export TOMCAT_HOME
CLASSPATH=/usr/local/jdk1.4/lib:/usr/local/jre/lib
export CLASSPATH
启动tomcat后 出现以下提示信息:
Using CATALINA_BASE: /usr/local/jakarta-tomcat4.0.4
Using CATALINA_HOME: /usr/local/jakarta-tomcat4.0.4
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.0.4/temp
Using JAVA_HOME: /usr/local/jdk1.4
但是本机上不能运行 lynx http://localhost:8080/
在其他机子上敲我的地址却能进去!能看到tomcat成功启动的界面,并且能运行tomcat自带的例子。
然而不能运行我放在webapps下面的自己的例子。到底是怎么一回事?请教
出现以下异常信息:
Exception:
org.apache.jasper.JasperException: Unable to compile class for JspNOt:sun.tools.javac.Main has been deprecated /usr/local/jadarta-tomcat-4.0.4/work/standalone/localhost/net/main/index$jsp.java:5: package com.yuanzh.auth not found in import
import com.yuanzh.auth.*
^
另:我以把/conf/下server.xml设置好了!
怎样才能解决啊?在线等待!等问题解决后,另外开贴结账,给主要解答的大侠们恭送水币若干。:)
我在linux下安装了jdk1.4和tomcat,在/etc/profile里的设置如下(在文件的最下面)
PATH="$PATH:/usr/local/jakarta-tomcat-4.0.4/bin:/usr/local/jdk1.4/bin:/usr/local/jre/bin
:/usr/local/jakarta-tomcat-4.0.4/webapps/netyz/web-inf
:/usr/local/jakarta-tomcat-4.0.4/common/lib"
JAVA_HOME=/usr/local/jdk1.4
export JAVA_HOME
JRE_HOME=/usr/local/jdk1.4
export JRE_HOME
TOMCAT_HOME=/usr/local/jakarta-tomcat-4.0.4
export TOMCAT_HOME
CLASSPATH=/usr/local/jdk1.4/lib:/usr/local/jre/lib
export CLASSPATH
启动tomcat后 出现以下提示信息:
Using CATALINA_BASE: /usr/local/jakarta-tomcat4.0.4
Using CATALINA_HOME: /usr/local/jakarta-tomcat4.0.4
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.0.4/temp
Using JAVA_HOME: /usr/local/jdk1.4
但是本机上不能运行 lynx http://localhost:8080/
在其他机子上敲我的地址却能进去!能看到tomcat成功启动的界面,并且能运行tomcat自带的例子。
然而不能运行我放在webapps下面的自己的例子。到底是怎么一回事?请教
出现以下异常信息:
Exception:
org.apache.jasper.JasperException: Unable to compile class for JspNOt:sun.tools.javac.Main has been deprecated /usr/local/jadarta-tomcat-4.0.4/work/standalone/localhost/net/main/index$jsp.java:5: package com.yuanzh.auth not found in import
import com.yuanzh.auth.*
^
另:我以把/conf/下server.xml设置好了!
怎样才能解决啊?在线等待!等问题解决后,另外开贴结账,给主要解答的大侠们恭送水币若干。:)
|
首先用本机名试试或127.0.0.1
路径不对:com.yuanzh.auth.*
路径不对:com.yuanzh.auth.*