- 招聘 : Linux運維
- 論壇徽章:
- 0
|
我用apache+tomcat+jk2配置好了jsp環(huán)境
然后在設(shè)置
<VirtualHost *:80>
ServerAdmin admim@test.cn
DocumentRoot "/home/test/www"
ServerName www.test.cn
DirectoryIndex index.htm
ErrorLog logs/test.cn-error_log
CustomLog logs/test.cn-access_log common
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
UserDir public_html
</VirtualHost>
現(xiàn)在問題是,當(dāng)我把jsp文件放在/home/test/www目錄下可以執(zhí)行.
但是只要import 一些類的jsp文件,全部告訴找不到類
報錯
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/usr/local/tomcat/work/Catalina/ict.computercol.net/_/org/apache/jsp/ict/index_jsp.java:6: package cn.edu.bitc.ict.news does not exist
import cn.edu.bitc.ict.news.*;
^
Generated servlet error:
/usr/local/tomcat/work/Catalina/ict.computercol.net/_/org/apache/jsp/ict/index_jsp.java:8: package com does not exist
import com.GetDateTime;
是不是還有什么地方需要在/etc/httpd/conf/workers2.properties或者web.xml或者server.xml里面配置呢? |
|