Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Eclipse 3.2M4, WTP 1.5M4, JBoss 4 problem
Eclipse 3.2M4, WTP 1.5M4, JBoss 4 problem [message #158749] Wed, 01 February 2006 23:44 Go to next message
Eclipse UserFriend
Originally posted by: jfallows.txesystems.com

Hi there,

I have downloaded and installed a pristine Eclipse 3.2M4, as well as all
the other dependencies listed for WebTools 1.5M4.

http://download.eclipse.org/webtools/downloads/drops/S-1.5M4 -200601131852/

After some research online, I discovered Wolfgang's homemade JBoss 4
server definitions for WebTools 1.0, which seem to work with WebTools
1.5M4 - thanks Wolfgang!

When running JSP page using Debug As|Debug on Server, JBoss 4
automatically starts up as desired, then the JSP page is requested and
displayed in an embedded browser inside Eclipse IDE.

Unfortunately, I get the following stack trace displayed in the browser
window when the JSP runtime tries to compile the JSP page to a class file.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(De faultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorD ispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)

root cause

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
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFacto ry.getCompiler(CompilerAdapterFactory.java:105)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)


However, my JBoss server definition's "JRE" is pointing to JDK 1.5.0_03
so it should be picking up the JDK-based JAVA_HOME that includes tools.jar.

I even tried manually setting the JAVA_HOME environment variable in the
"Environment" tab of the JBoss 4.0.x Debug Configuration.

Does anyone know how I can use WTP on Eclipse 3.2M4 with JBoss 4?

Kind Regards,
John Fallows.
Re: Eclipse 3.2M4, WTP 1.5M4, JBoss 4 problem [message #158777 is a reply to message #158749] Thu, 02 February 2006 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: n.metchev.teamphone.com

by default when creating a JDK runtime eclipse doesn't pick up the tools.jar
that is located in your JDK installation directory under /libs.
You need to edit your JDK Runtime and add the tools.jar to it.


"John R. Fallows" <jfallows@txesystems.com> wrote in message
news:drrh5b$hg8$1@utils.eclipse.org...
> Hi there,
>
> I have downloaded and installed a pristine Eclipse 3.2M4, as well as all
> the other dependencies listed for WebTools 1.5M4.
>
> http://download.eclipse.org/webtools/downloads/drops/S-1.5M4 -200601131852/
>
> After some research online, I discovered Wolfgang's homemade JBoss 4
> server definitions for WebTools 1.0, which seem to work with WebTools
> 1.5M4 - thanks Wolfgang!
>
> When running JSP page using Debug As|Debug on Server, JBoss 4
> automatically starts up as desired, then the JSP page is requested and
> displayed in an embedded browser inside Eclipse IDE.
>
> Unfortunately, I get the following stack trace displayed in the browser
> window when the JSP runtime tries to compile the JSP page to a class file.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(De faultErrorHandler.java:97)
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorD ispatcher.java:346)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:414)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)
>
> root cause
>
> 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
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFacto ry.getCompiler(CompilerAdapterFactory.java:105)
> org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:382)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)
>
>
> However, my JBoss server definition's "JRE" is pointing to JDK 1.5.0_03 so
> it should be picking up the JDK-based JAVA_HOME that includes tools.jar.
>
> I even tried manually setting the JAVA_HOME environment variable in the
> "Environment" tab of the JBoss 4.0.x Debug Configuration.
>
> Does anyone know how I can use WTP on Eclipse 3.2M4 with JBoss 4?
>
> Kind Regards,
> John Fallows.
Re: Eclipse 3.2M4, WTP 1.5M4, JBoss 4 problem [message #158800 is a reply to message #158777] Thu, 02 February 2006 18:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jfallows.txesystems.com

Thanks Nicolay, that worked!

Btw, where should I file this as a bug/enhancement so that others do not
run into the same problem?

Kind Regards,
John Fallows.

Nikolay wrote:
> by default when creating a JDK runtime eclipse doesn't pick up the tools.jar
> that is located in your JDK installation directory under /libs.
> You need to edit your JDK Runtime and add the tools.jar to it.
>
>
> "John R. Fallows" <jfallows@txesystems.com> wrote in message
> news:drrh5b$hg8$1@utils.eclipse.org...
>> Hi there,
>>
>> I have downloaded and installed a pristine Eclipse 3.2M4, as well as all
>> the other dependencies listed for WebTools 1.5M4.
>>
>> http://download.eclipse.org/webtools/downloads/drops/S-1.5M4 -200601131852/
>>
>> After some research online, I discovered Wolfgang's homemade JBoss 4
>> server definitions for WebTools 1.0, which seem to work with WebTools
>> 1.5M4 - thanks Wolfgang!
>>
>> When running JSP page using Debug As|Debug on Server, JBoss 4
>> automatically starts up as desired, then the JSP page is requested and
>> displayed in an embedded browser inside Eclipse IDE.
>>
>> Unfortunately, I get the following stack trace displayed in the browser
>> window when the JSP runtime tries to compile the JSP page to a class file.
>>
>> exception
>>
>> org.apache.jasper.JasperException: Unable to compile class for JSP
>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(De faultErrorHandler.java:97)
>> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorD ispatcher.java:346)
>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:414)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
>> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)
>>
>> root cause
>>
>> 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
>> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFacto ry.getCompiler(CompilerAdapterFactory.java:105)
>> org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
>> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:382)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
>> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)
>>
>>
>> However, my JBoss server definition's "JRE" is pointing to JDK 1.5.0_03 so
>> it should be picking up the JDK-based JAVA_HOME that includes tools.jar.
>>
>> I even tried manually setting the JAVA_HOME environment variable in the
>> "Environment" tab of the JBoss 4.0.x Debug Configuration.
>>
>> Does anyone know how I can use WTP on Eclipse 3.2M4 with JBoss 4?
>>
>> Kind Regards,
>> John Fallows.
>
>
Re: Eclipse 3.2M4, WTP 1.5M4, JBoss 4 problem [message #158807 is a reply to message #158800] Thu, 02 February 2006 19:23 Go to previous message
Eclipse UserFriend
Originally posted by: jfallows.txesystems.com

Filed bug 126239 "Installed JRE definition misses tools.jar when
pointing to JDK".

https://bugs.eclipse.org/bugs/show_bug.cgi?id=126239

Hopefully this will prevent others from spending many frustrating hours
trying to figure out what went wrong. ;)

Kind Regards,
John Fallows.

John R. Fallows wrote:
> Thanks Nicolay, that worked!
>
> Btw, where should I file this as a bug/enhancement so that others do not
> run into the same problem?
>
> Kind Regards,
> John Fallows.
>
> Nikolay wrote:
>> by default when creating a JDK runtime eclipse doesn't pick up the
>> tools.jar that is located in your JDK installation directory under /libs.
>> You need to edit your JDK Runtime and add the tools.jar to it.
>>
>>
>> "John R. Fallows" <jfallows@txesystems.com> wrote in message
>> news:drrh5b$hg8$1@utils.eclipse.org...
>>> Hi there,
>>>
>>> I have downloaded and installed a pristine Eclipse 3.2M4, as well as
>>> all the other dependencies listed for WebTools 1.5M4.
>>>
>>> http://download.eclipse.org/webtools/downloads/drops/S-1.5M4 -200601131852/
>>>
>>>
>>> After some research online, I discovered Wolfgang's homemade JBoss 4
>>> server definitions for WebTools 1.0, which seem to work with WebTools
>>> 1.5M4 - thanks Wolfgang!
>>>
>>> When running JSP page using Debug As|Debug on Server, JBoss 4
>>> automatically starts up as desired, then the JSP page is requested
>>> and displayed in an embedded browser inside Eclipse IDE.
>>>
>>> Unfortunately, I get the following stack trace displayed in the
>>> browser window when the JSP runtime tries to compile the JSP page to
>>> a class file.
>>>
>>> exception
>>>
>>> org.apache.jasper.JasperException: Unable to compile class for JSP
>>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(De faultErrorHandler.java:97)
>>>
>>> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorD ispatcher.java:346)
>>>
>>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:414)
>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
>>> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
>>>
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
>>>
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)
>>>
>>>
>>> root cause
>>>
>>> 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
>>> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFacto ry.getCompiler(CompilerAdapterFactory.java:105)
>>>
>>> org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
>>> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
>>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:382)
>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
>>> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
>>>
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
>>>
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:75)
>>>
>>>
>>>
>>> However, my JBoss server definition's "JRE" is pointing to JDK
>>> 1.5.0_03 so it should be picking up the JDK-based JAVA_HOME that
>>> includes tools.jar.
>>>
>>> I even tried manually setting the JAVA_HOME environment variable in
>>> the "Environment" tab of the JBoss 4.0.x Debug Configuration.
>>>
>>> Does anyone know how I can use WTP on Eclipse 3.2M4 with JBoss 4?
>>>
>>> Kind Regards,
>>> John Fallows.
>>
>>
Previous Topic:developing Web Services with Eclipse
Next Topic:Server - Installed Runtimes
Goto Forum:
  


Current Time: Thu Dec 26 17:24:12 GMT 2024

Powered by FUDForum. Page generated in 0.03328 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top