JSP环境设置

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#16

帖子 firehare »

GOVO 写了:wget http://apache.freelamp.com/jakarta/tomc ... 5.9.tar.gz
已经失效。
具体文件移到了http://apache.freelamp.com/tomcat/bin/apache-tomcat-5.5.12.tar.gz
多谢!!已更正!!
我心无畏,源自于我心无知。
图片
kennycx
帖子: 13
注册时间: 2005-12-02 16:50

#17

帖子 kennycx »

firehare 写了:
kennycx 写了:root@ubuntu:~# /opt/tomcat/bin/startup.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/lib/j2sdk1.5-sun
root@ubuntu:~# /opt/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/lib/j2sdk1.5-sun
/opt/tomcat/bin/catalina.sh: line 271: /usr/lib/j2sdk1.5-sun /bin/java: 没有那个文件或目录



启动没提示任何错误,但是无法访问,关闭tomcat的时候又出现没有文件或目录
仔细看了你的提示,发现多了一个空格!


呵呵,已解决,谢谢~~
上次由 kennycx 在 2005-12-08 21:07,总共编辑 1 次。
头像
yangcheng
帖子: 498
注册时间: 2005-09-27 18:24
来自: 杭州

#18

帖子 yangcheng »

zouzhile 写了:我运行startup.sh后,在终端里出现了
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/lib/j2sdk1.5-sun
可是当我在浏览器里输入http://localhost:8080却弹出了一个对话框,说试图于localhost:8080连接时,连接被拒绝
郁闷了,怎么半阿!救命阿!
可能是8180
具体看看web.xml中的配置
mesocool
帖子: 113
注册时间: 2005-03-27 17:11
系统: Linux Mint 14 Nadia
来自: Seattle, USA
联系:

#19

帖子 mesocool »

为什么我改了environment还是有错误呢。。

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#20

帖子 firehare »

mesocool 写了:为什么我改了environment还是有错误呢。。

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
你安装的是否是 J2RE ?我这个文档是针对 J2SDK 来做的!
我心无畏,源自于我心无知。
图片
redhairboy
帖子: 38
注册时间: 2006-03-07 0:37

#21

帖子 redhairboy »

annerose 写了:提问,在apache官方上,发现tomcat的下载没有区分各种系统是通用的吗?
不用区分系统的,
都是java的程序可以跨平台,
只是shell文件不同
startup.bat 和startup.sh
redhairboy
帖子: 38
注册时间: 2006-03-07 0:37

#22

帖子 redhairboy »

firehare 写了:
mesocool 写了:为什么我改了environment还是有错误呢。。

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
你安装的是否是 J2RE ?我这个文档是针对 J2SDK 来做的!
跑tomcat 最好还是用jdk的好.
头像
Hamtaro
帖子: 308
注册时间: 2005-04-15 5:59

#23

帖子 Hamtaro »

感谢楼主提供的方法

按照楼主提供的方法,我的配置出现了这个错误
hamtaro@abao:/opt/tomcat/bin$ sh startup.sh
Cannot find /home/tomcat/bin/setclasspath.sh
This file is needed to run this program

运行 setclasspath.sh 后出现:

hamtaro@abao:/opt/tomcat/bin$ ./setclasspath.sh
The BASEDIR environment variable is not defined
This environment variable is needed to run this program
使用export命令才解决
hamtaro@abao:/opt/tomcat/bin$ export CATALINA_HOME=/opt/tomcat/
希望对和我碰到一样错误的朋友有点帮助
AMD Althon64X2 Dual Core Processor 5000+
Jetway Hammar A770
Segate SATA 160G + Segate ATA 80G
Geil DDR2-800 2048 MB
AOC2016SW 1650x1050 with Geforce 9600GT

Windows XP sp3 & ubuntu 10.10
shiming
帖子: 32
注册时间: 2006-05-15 17:33

Re: JSP环境设置

#24

帖子 shiming »

firehare 写了: 1、首先要确保安装相关的软件
$sudo apt-get install gcc autoconf sun-j2sdk1.5
怎么我输入:

sudo apt-get install gcc autoconf sun-j2sdk1.5

却出现如下提示啊:

shiming@huang:~$ sudo apt-get install gcc autoconf sun-j2sdk1.5
E: 无法获得锁 /var/lib/dpkg/lock - open (11 资源暂时不可用)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

请教一下,还有其它一下载地址吗?




--
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

Re: JSP环境设置

#25

帖子 firehare »

shiming 写了:
firehare 写了: 1、首先要确保安装相关的软件
$sudo apt-get install gcc autoconf sun-j2sdk1.5
怎么我输入:

sudo apt-get install gcc autoconf sun-j2sdk1.5

却出现如下提示啊:

shiming@huang:~$ sudo apt-get install gcc autoconf sun-j2sdk1.5
E: 无法获得锁 /var/lib/dpkg/lock - open (11 资源暂时不可用)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

请教一下,还有其它一下载地址吗?




--
你打开了新立得或其他包管理程序。
我心无畏,源自于我心无知。
图片
回复