[ http://jira.jboss.com/jira/browse/JBIDE-107?page=comments#action_12315373 ] Piotr Gaertig commented on JBIDE-107: -------------------------------------
Looks like problems with a classpath. JDKs1.5.0 JVM (java.exe) by default doesn't add tools.jar to the jboss classpath, but Tomcat needs it! JBoss only looked if our JAVA_HOME has tools.jar, but hasn't checked/added that in/to classpath futher. So we must add it by hand In Eclipse with JBoss-IDE: Debug... > our JBoss AS run config > Classpath > Add External JARs... and add tools.jar another way: add tools.jar to default JRE definition in [Preferences > Java > Installed JREs] or even set "JRE home path" field to your JDK home path. All tasks run from eclipse uses that, so this solves also problems with ant javac task (without fork attributes), witch also throws "com.sun.tools.javac.Main is not on the classpath" exception. Now everything works ok! > Jasper tag file compiler does not get class path and fails > ---------------------------------------------------------- > > Key: JBIDE-107 > URL: http://jira.jboss.com/jira/browse/JBIDE-107 > Project: JBoss IDE > Type: Bug > Environment: JBossIDE 1.4.0, JBoss AOP Extension 1.0.1, WinXP SP2, Eclipse > 3.0.1, Sun jdk1.5.0_01 > Reporter: cgs > Assignee: Marshall Culpepper > > > org.apache.jasper.JasperException: Unable to compile class for JSP > Generated servlet error: > Jan 14, 2005 9:31:46 PM org.apache.jasper.compiler.Compiler generateClass > SEVERE: Javac exception > Unable to find a javac compiler; > com.sun.tools.javac.Main is not on the classpath. > Perhaps JAVA_HOME does not point to the JDK > at > org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105) > at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) > at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) > at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:389) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:479) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:446) > at > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) > at > org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:201) > at > org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:515) > at > org.apache.jasper.compiler.TagFileProcessor.access$0(TagFileProcessor.java:462) > at > org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:566) > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214) > at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220) > at org.apache.jasper.compiler.Node$Root.accept(Node.java:457) > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > at > org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:584) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.jasper.JSPProject.parseJSP(JSPProject.java:669) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.jasper.JSPProject.internalCompileJSP(JSPProject.java:562) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.jasper.JSPProject.compileJSP(JSPProject.java:115) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.processFile(JSPBuilder.java:186) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.visit(JSPBuilder.java:57) > at > org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108) > at > org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123) > at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65) > at > org.eclipse.core.internal.resources.Resource.accept(Resource.java:106) > at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.fullBuild(JSPBuilder.java:159) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.build(JSPBuilder.java:120) > at > org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570) > at > org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) > at org.eclipse.core.runtime.Platform.run(Platform.java:747) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204) > at > org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231) > at > org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) > at org.eclipse.core.runtime.Platform.run(Platform.java:747) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234) > at > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270) > at > org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299) > at > org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155) > at > org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) > Generated servlet error: > Jan 14, 2005 9:31:46 PM org.apache.jasper.compiler.Compiler generateClass > Generated servlet error: > SEVERE: Env: Compile: javaFileName=/C:/Documents and Settings/cgs/My > Documents/workspace/xxx/.docroot//org/apache/jsp/tag/web/xxx\pages_tag.java > Generated servlet error: > classpath=/C:/Program%20Files/eclipse-SDK-3.0.1/startup.jar;C:\Documents > and Settings\cgs\My Documents\workspace\xxx\.docroot;null > cp=C:\Program Files\eclipse-SDK-3.0.1\startup.jar > cp=C:\Program%20Files\eclipse-SDK-3.0.1\startup.jar > cp=C:\Documents and Settings\cgs\My Documents\workspace\xxx\.docroot > cp=null > work dir=C:\Documents and Settings\cgs\My Documents\workspace\xxx\.docroot > extension dir=C:\Program Files\Java\jdk1.5.0_01\jre\lib\ext > srcDir=C:\Documents and Settings\cgs\My Documents\workspace\xxx\.docroot > include=org/apache/jsp/tag/web/xxx/pages_tag.java > at > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:86) > at > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:335) > at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:419) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:479) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:446) > at > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) > at > org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:201) > at > org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:515) > at > org.apache.jasper.compiler.TagFileProcessor.access$0(TagFileProcessor.java:462) > at > org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:566) > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214) > at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220) > at org.apache.jasper.compiler.Node$Root.accept(Node.java:457) > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > at > org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:584) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.jasper.JSPProject.parseJSP(JSPProject.java:669) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.jasper.JSPProject.internalCompileJSP(JSPProject.java:562) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.jasper.JSPProject.compileJSP(JSPProject.java:115) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.processFile(JSPBuilder.java:186) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.visit(JSPBuilder.java:57) > at > org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108) > at > org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) > at > org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123) > at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65) > at > org.eclipse.core.internal.resources.Resource.accept(Resource.java:106) > at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.fullBuild(JSPBuilder.java:159) > at > org.jboss.ide.eclipse.jdt.j2ee.jsp.core.compiler.JSPBuilder.build(JSPBuilder.java:120) > at > org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570) > at > org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) > at org.eclipse.core.runtime.Platform.run(Platform.java:747) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204) > at > org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231) > at > org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) > at org.eclipse.core.runtime.Platform.run(Platform.java:747) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234) > at > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270) > at > org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299) > at > org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155) > at > org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development