请教各位大侠一个JBoss配置的问题

04-06-13 renxin
我的Jboss版本是JBoss-4.0

JSDK的版本:JSDK1.5

我在环境变量里边加入了:

JBOSS_HOME:D:\pro_tool\jboss

JAVA_HOME:D:\pro_tool\j2sdk1.5.0

我自己还装了Tomcat5.0<以前一直用Tomcat>所以配置了

TOMCAT_HOME:D:\pro_tool\Tomcat 5.0

我的JBOSS的版本里边带了Tomcat,我更改了它的断口8080改为9000

ClassPath配置如下:

.;%java_home%\lib\tools.jar;

%jboss_home%\server\default\lib\javax.servlet.jar;

%jboss_home%\server\default\lib\jboss-j2ee.jar;

%jboss_home%\client\jbossall-client.jar;

%jboss_home%\client\jnet.jar;

%jboss_home%\client\log4j.jar;

%jboss_home%\server\default\lib\mssqlserver.jar;

问题: 我启动JBoss后,访问Http:\\LocalHost:9000

出现了界面没问题,然后我选择Web Control转到控制页面,报出如下的错误:

org.apache.jasper.JasperException: Unable to compile class for JSP

No Java compiler was found to compile the generated source for the JSP.

This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK

to the common/lib directory of the Tomcat server, followed by a Tomcat restart.

If using an alternate Java compiler, please check its installation and access path.

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

我将JSDK的tools.jar拷贝到D:\pro_tool\jboss\server\default\deploy\jbossweb-tomcat50.sar目录下也不管用,我想请问各位大侠,我那里配置没有正确,导致出现这个问题,

多谢了.

banq
2004-06-19 14:29
你还真敢用,都是新版本,bug一大堆,搞不清楚是它的,还是自己的。建议使用stable版本

猜你喜欢