linux下tomcat为什么不能启动

guan6487809 2011-01-14 12:14:05
/disk2/usr/tomcat/apache-tomcat-6.0.24/bin # ./startup.sh
Using CATALINA_BASE: /disk2/usr/tomcat/apache-tomcat-6.0.24
Using CATALINA_HOME: /disk2/usr/tomcat/apache-tomcat-6.0.24
Using CATALINA_TMPDIR: /disk2/usr/tomcat/apache-tomcat-6.0.24/temp
Using JRE_HOME: /disk2/usr/jdk
Using CLASSPATH: /disk2/usr/tomcat/apache-tomcat-6.0.24/bin/bootstrap.jar
/disk2/usr/tomcat/apache-tomcat-6.0.24/bin # netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
/disk2/usr/tomcat/apache-tomcat-6.0.24/bin #

端口都没开,访问8080更是不行
...全文
859 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
steptodream 2011-01-14
  • 打赏
  • 举报
回复
参照
http://blog.csdn.net/steptodream/archive/2010/11/25/6035829.aspx
guan6487809 2011-01-14
  • 打赏
  • 举报
回复
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package org.apache.catalina.startup;
18
19 import java.io.File;
20 import java.io.IOException;
21 import java.security.Principal;
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Map;
26 import java.util.logging.Level;
27 import java.util.logging.Logger;
28
29 import javax.servlet.Servlet;
30 import javax.servlet.ServletException;
31
32 import org.apache.catalina.Container;
.......
这个是tomcat start的源码,黑体部分应该就是出问题的地方,那么是不是我的JDK配置的有问题?
guan6487809 2011-01-14
  • 打赏
  • 举报
回复
配置文件我没改过,我看了connector里是8080
LS的朋友你遇到过这样情况么?我是在ARM上,JDK是交叉编译的phoneme
freetstar 2011-01-14
  • 打赏
  • 举报
回复
配置过程发上来看看
guan6487809 2011-01-14
  • 打赏
  • 举报
回复
我看了下日志文件:
java.lang.NoClassDefFoundError: java.util.logging.Logger
at org.apache.juli.logging.DirectJDKLog.<init>(Unknown Source)
at org.apache.juli.logging.DirectJDKLog.getInstance(Unknown Source)
at org.apache.juli.logging.LogFactory.getInstance(Unknown Source)
at org.apache.juli.logging.LogFactory.getInstance(Unknown Source)
at org.apache.juli.logging.LogFactory.getLog(Unknown Source)
at org.apache.catalina.startup.Bootstrap.<clinit>(Unknown Source)
at java.lang.Class.runStaticInitializers(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)
这个是什么问题啊?JRE有问题?要怎么fix?

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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