You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Oliver Kiessler <ol...@gmail.com> on 2005/07/03 13:21:23 UTC
War deployment problem in geronimo 1.0-208875
hi list,
I just installed geronimo 1.0-208875 and deployed a simple
webapplication with just a few JSP pages. The deployment via the
deployer.jar went fine. But when I accessed the webapplication via the
webbrowser I got the following error:
HTTP ERROR: 500
Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
RequestURI=/karma/
Powered by Jetty://
13:10:19,660 INFO [Container] Started HttpContext[/,/]
13:10:26,860 WARN [/karma] /karma/:
org.apache.jasper.JasperException: Unable to initialize
TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:223)
at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:92)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:272)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169)
at org.mortbay.jetty.servlet.Default.handleGet(Default.java:312)
at org.mortbay.jetty.servlet.Default.service(Default.java:232)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:92)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
13:10:26,862 WARN [ServletHandler] /karma/:
org.apache.jasper.JasperException: Unable to initialize
TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:223)
at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:92)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:272)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169)
at org.mortbay.jetty.servlet.Default.handleGet(Default.java:312)
at org.mortbay.jetty.servlet.Default.service(Default.java:232)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:92)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
My system:
Fedora core 4 Kernel 2.6.11-1.1369_FC4
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Does anyone know what this is about (found no answers on google)?
regards,
oliver
Re: War deployment problem in geronimo 1.0-208875
Posted by David Jencks <da...@yahoo.com>.
We are still using the eclipse compiler for jasper under jetty.
david jencks
On Jul 3, 2005, at 8:07 PM, Dain Sundstrom wrote:
> Actually we shouldn't require a JDK for JSP pages. It looks like the
> stack trace is coming from jasper and IIRC we have jasper configured
> to use eclipse compiler which doesn't need the tools.jar. Maybe the
> someone accidently removed the eclipse configuration, or my memory is
> wrong and we never set up our server to use the eclipse compiler.
>
> -dain
>
> On Jul 3, 2005, at 7:53 PM, Aaron Mulder wrote:
>
>> OK, so is the answer that for now, we require a JDK and not a JRE?
>> If so, that should get the original poster back on track.
>>
>> Aaron
>>
>> On Sun, 3 Jul 2005, Dain Sundstrom wrote:
>>
>>> The tools jar hack will be needed until we delete the OpenORB stub/
>>> tie compiler. I should have this change committed in the next few
>>> days, and then we can remove the hack code.
>>>
>>> -dain
>>>
>>> On Jul 3, 2005, at 6:20 PM, sissonj@insession.com wrote:
>>>
>>>
>>>>
>>>> After a quick look.. Geronimo's Daemon class is still calling
>>>> ToolsJarHack.install().
>>>>
>>>> Jasper2 (the JSP handling component) which is part of Tomcat as of
>>>> version 5.5.0 bundles the eclipse JDT to allow tomcat to run on a
>>>> JRE, according to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/
>>>> jasper-howto.html
>>>>
>>>> The Jetty doco also says Jasper2 is used by Jetty: http://
>>>> jetty.mortbay.org/jetty/readme.txt
>>>>
>>>> So it appears that the ToolsJarHack isn't needed, but has anyone
>>>> tested both Tomcat and Jetty without tools.jar?
>>>>
>>>> John
>>>>
>>>> This e-mail message and any attachments may contain confidential,
>>>> proprietary or non-public information. This information is
>>>> intended solely for the designated recipient(s). If an addressing
>>>> or transmission error has misdirected this e-mail, please notify
>>>> the sender immediately and destroy this e-mail. Any review,
>>>> dissemination, use or reliance upon this information by unintended
>>>> recipients is prohibited. Any opinions expressed in this e-mail
>>>> are those of the author personally.
>>>>
>>>> Dain Sundstrom <da...@iq80.com> wrote on 04/07/2005 06:50:39 AM:
>>>>
>>>>
>>>>> It is supposed to use the eclipse compiler so there should be no
>>>>> searching at all.
>>>>>
>>>>> -dain
>>>>>
>>>>> On Jul 3, 2005, at 12:49 PM, David Blevins wrote:
>>>>>
>>>>>
>>>>>> On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
>>>>>>
>>>>>>
>>>>>>> hi list,
>>>>>>> I just installed geronimo 1.0-208875 and deployed a simple
>>>>>>> webapplication with just a few JSP pages. The deployment via the
>>>>>>> deployer.jar went fine. But when I accessed the webapplication
>>>>>>>
>>>> via
>>>>
>>>>>>> the
>>>>>>> webbrowser I got the following error:
>>>>>>>
>>>>>>> HTTP ERROR: 500
>>>>>>> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/
>>>>>>>
>>>> lib/
>>>>
>>>>>>> ext/tools.jar
>>>>>>> RequestURI=/karma/
>>>>>>> Powered by Jetty://
>>>>>>>
>>>>>>> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
>>>>>>> 13:10:26,860 WARN [/karma] /karma/:
>>>>>>> org.apache.jasper.JasperException: Unable to initialize
>>>>>>> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
>>>>>>> at org.apache.jasper.compiler.TldLocationsCache.init
>>>>>>> (TldLocationsCache.java:252)
>>>>>>> at
>>>>>>>
>>>> org.apache.jasper.compiler.TldLocationsCache.getLocation
>>>>
>>>>>>> (TldLocationsCache.java:223)
>>>>>>> at org.apache.jasper.JspCompilationContext.getTldLocation
>>>>>>> (JspCompilationContext.java:519)
>>>>>>>
>>>>>>>
>>>>>> [...]
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> My system:
>>>>>>> Fedora core 4 Kernel 2.6.11-1.1369_FC4
>>>>>>> java version "1.4.2_04"
>>>>>>> Java(TM) 2 Runtime Environment, Standard Edition (build
>>>>>>>
>>>> 1.4.2_04-b05)
>>>>
>>>>>>> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> Looks like there is an error finding the jar containing the javac
>>>>>> compiler required for JSP support. It certainly won't find it in
>>>>>> the jre directory.
>>>>>>
>>>>>> I know we have (or had) some code to deal with this. Anyone else
>>>>>> have more info?
>>>>>>
>>>>>> -David
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>
>>>
>>
>
Re: War deployment problem in geronimo 1.0-208875
Posted by Dain Sundstrom <da...@iq80.com>.
Actually we shouldn't require a JDK for JSP pages. It looks like the
stack trace is coming from jasper and IIRC we have jasper configured
to use eclipse compiler which doesn't need the tools.jar. Maybe the
someone accidently removed the eclipse configuration, or my memory is
wrong and we never set up our server to use the eclipse compiler.
-dain
On Jul 3, 2005, at 7:53 PM, Aaron Mulder wrote:
> OK, so is the answer that for now, we require a JDK and not a JRE?
> If so, that should get the original poster back on track.
>
> Aaron
>
> On Sun, 3 Jul 2005, Dain Sundstrom wrote:
>
>> The tools jar hack will be needed until we delete the OpenORB stub/
>> tie compiler. I should have this change committed in the next few
>> days, and then we can remove the hack code.
>>
>> -dain
>>
>> On Jul 3, 2005, at 6:20 PM, sissonj@insession.com wrote:
>>
>>
>>>
>>> After a quick look.. Geronimo's Daemon class is still calling
>>> ToolsJarHack.install().
>>>
>>> Jasper2 (the JSP handling component) which is part of Tomcat as of
>>> version 5.5.0 bundles the eclipse JDT to allow tomcat to run on a
>>> JRE, according to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/
>>> jasper-howto.html
>>>
>>> The Jetty doco also says Jasper2 is used by Jetty: http://
>>> jetty.mortbay.org/jetty/readme.txt
>>>
>>> So it appears that the ToolsJarHack isn't needed, but has anyone
>>> tested both Tomcat and Jetty without tools.jar?
>>>
>>> John
>>>
>>> This e-mail message and any attachments may contain confidential,
>>> proprietary or non-public information. This information is
>>> intended solely for the designated recipient(s). If an addressing
>>> or transmission error has misdirected this e-mail, please notify
>>> the sender immediately and destroy this e-mail. Any review,
>>> dissemination, use or reliance upon this information by unintended
>>> recipients is prohibited. Any opinions expressed in this e-mail
>>> are those of the author personally.
>>>
>>> Dain Sundstrom <da...@iq80.com> wrote on 04/07/2005 06:50:39 AM:
>>>
>>>
>>>> It is supposed to use the eclipse compiler so there should be no
>>>> searching at all.
>>>>
>>>> -dain
>>>>
>>>> On Jul 3, 2005, at 12:49 PM, David Blevins wrote:
>>>>
>>>>
>>>>> On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
>>>>>
>>>>>
>>>>>> hi list,
>>>>>> I just installed geronimo 1.0-208875 and deployed a simple
>>>>>> webapplication with just a few JSP pages. The deployment via the
>>>>>> deployer.jar went fine. But when I accessed the webapplication
>>>>>>
>>> via
>>>
>>>>>> the
>>>>>> webbrowser I got the following error:
>>>>>>
>>>>>> HTTP ERROR: 500
>>>>>> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/
>>>>>>
>>> lib/
>>>
>>>>>> ext/tools.jar
>>>>>> RequestURI=/karma/
>>>>>> Powered by Jetty://
>>>>>>
>>>>>> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
>>>>>> 13:10:26,860 WARN [/karma] /karma/:
>>>>>> org.apache.jasper.JasperException: Unable to initialize
>>>>>> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
>>>>>> at org.apache.jasper.compiler.TldLocationsCache.init
>>>>>> (TldLocationsCache.java:252)
>>>>>> at
>>>>>>
>>> org.apache.jasper.compiler.TldLocationsCache.getLocation
>>>
>>>>>> (TldLocationsCache.java:223)
>>>>>> at org.apache.jasper.JspCompilationContext.getTldLocation
>>>>>> (JspCompilationContext.java:519)
>>>>>>
>>>>>>
>>>>> [...]
>>>>>
>>>>>
>>>>>>
>>>>>> My system:
>>>>>> Fedora core 4 Kernel 2.6.11-1.1369_FC4
>>>>>> java version "1.4.2_04"
>>>>>> Java(TM) 2 Runtime Environment, Standard Edition (build
>>>>>>
>>> 1.4.2_04-b05)
>>>
>>>>>> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> Looks like there is an error finding the jar containing the javac
>>>>> compiler required for JSP support. It certainly won't find it in
>>>>> the jre directory.
>>>>>
>>>>> I know we have (or had) some code to deal with this. Anyone else
>>>>> have more info?
>>>>>
>>>>> -David
>>>>>
>>>>>
>>>>
>>>>
>>
>>
>
Re: War deployment problem in geronimo 1.0-208875
Posted by Aaron Mulder <am...@alumni.princeton.edu>.
OK, so is the answer that for now, we require a JDK and not a JRE?
If so, that should get the original poster back on track.
Aaron
On Sun, 3 Jul 2005, Dain Sundstrom wrote:
> The tools jar hack will be needed until we delete the OpenORB stub/
> tie compiler. I should have this change committed in the next few
> days, and then we can remove the hack code.
>
> -dain
>
> On Jul 3, 2005, at 6:20 PM, sissonj@insession.com wrote:
>
> >
> > After a quick look.. Geronimo's Daemon class is still calling
> > ToolsJarHack.install().
> >
> > Jasper2 (the JSP handling component) which is part of Tomcat as of
> > version 5.5.0 bundles the eclipse JDT to allow tomcat to run on a
> > JRE, according to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/
> > jasper-howto.html
> >
> > The Jetty doco also says Jasper2 is used by Jetty: http://
> > jetty.mortbay.org/jetty/readme.txt
> >
> > So it appears that the ToolsJarHack isn't needed, but has anyone
> > tested both Tomcat and Jetty without tools.jar?
> >
> > John
> >
> > This e-mail message and any attachments may contain confidential,
> > proprietary or non-public information. This information is
> > intended solely for the designated recipient(s). If an addressing
> > or transmission error has misdirected this e-mail, please notify
> > the sender immediately and destroy this e-mail. Any review,
> > dissemination, use or reliance upon this information by unintended
> > recipients is prohibited. Any opinions expressed in this e-mail
> > are those of the author personally.
> >
> > Dain Sundstrom <da...@iq80.com> wrote on 04/07/2005 06:50:39 AM:
> >
> > > It is supposed to use the eclipse compiler so there should be no
> > > searching at all.
> > >
> > > -dain
> > >
> > > On Jul 3, 2005, at 12:49 PM, David Blevins wrote:
> > >
> > > > On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
> > > >
> > > >> hi list,
> > > >> I just installed geronimo 1.0-208875 and deployed a simple
> > > >> webapplication with just a few JSP pages. The deployment via the
> > > >> deployer.jar went fine. But when I accessed the webapplication
> > via
> > > >> the
> > > >> webbrowser I got the following error:
> > > >>
> > > >> HTTP ERROR: 500
> > > >> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/
> > lib/
> > > >> ext/tools.jar
> > > >> RequestURI=/karma/
> > > >> Powered by Jetty://
> > > >>
> > > >> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
> > > >> 13:10:26,860 WARN [/karma] /karma/:
> > > >> org.apache.jasper.JasperException: Unable to initialize
> > > >> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> > > >> at org.apache.jasper.compiler.TldLocationsCache.init
> > > >> (TldLocationsCache.java:252)
> > > >> at
> > org.apache.jasper.compiler.TldLocationsCache.getLocation
> > > >> (TldLocationsCache.java:223)
> > > >> at org.apache.jasper.JspCompilationContext.getTldLocation
> > > >> (JspCompilationContext.java:519)
> > > >>
> > > > [...]
> > > >
> > > >>
> > > >> My system:
> > > >> Fedora core 4 Kernel 2.6.11-1.1369_FC4
> > > >> java version "1.4.2_04"
> > > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> > 1.4.2_04-b05)
> > > >> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
> > > >>
> > > >>
> > > >
> > > > Looks like there is an error finding the jar containing the javac
> > > > compiler required for JSP support. It certainly won't find it in
> > > > the jre directory.
> > > >
> > > > I know we have (or had) some code to deal with this. Anyone else
> > > > have more info?
> > > >
> > > > -David
> > > >
> > >
>
>
Re: War deployment problem in geronimo 1.0-208875
Posted by Dain Sundstrom <da...@iq80.com>.
The tools jar hack will be needed until we delete the OpenORB stub/
tie compiler. I should have this change committed in the next few
days, and then we can remove the hack code.
-dain
On Jul 3, 2005, at 6:20 PM, sissonj@insession.com wrote:
>
> After a quick look.. Geronimo's Daemon class is still calling
> ToolsJarHack.install().
>
> Jasper2 (the JSP handling component) which is part of Tomcat as of
> version 5.5.0 bundles the eclipse JDT to allow tomcat to run on a
> JRE, according to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/
> jasper-howto.html
>
> The Jetty doco also says Jasper2 is used by Jetty: http://
> jetty.mortbay.org/jetty/readme.txt
>
> So it appears that the ToolsJarHack isn't needed, but has anyone
> tested both Tomcat and Jetty without tools.jar?
>
> John
>
> This e-mail message and any attachments may contain confidential,
> proprietary or non-public information. This information is
> intended solely for the designated recipient(s). If an addressing
> or transmission error has misdirected this e-mail, please notify
> the sender immediately and destroy this e-mail. Any review,
> dissemination, use or reliance upon this information by unintended
> recipients is prohibited. Any opinions expressed in this e-mail
> are those of the author personally.
>
> Dain Sundstrom <da...@iq80.com> wrote on 04/07/2005 06:50:39 AM:
>
> > It is supposed to use the eclipse compiler so there should be no
> > searching at all.
> >
> > -dain
> >
> > On Jul 3, 2005, at 12:49 PM, David Blevins wrote:
> >
> > > On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
> > >
> > >> hi list,
> > >> I just installed geronimo 1.0-208875 and deployed a simple
> > >> webapplication with just a few JSP pages. The deployment via the
> > >> deployer.jar went fine. But when I accessed the webapplication
> via
> > >> the
> > >> webbrowser I got the following error:
> > >>
> > >> HTTP ERROR: 500
> > >> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/
> lib/
> > >> ext/tools.jar
> > >> RequestURI=/karma/
> > >> Powered by Jetty://
> > >>
> > >> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
> > >> 13:10:26,860 WARN [/karma] /karma/:
> > >> org.apache.jasper.JasperException: Unable to initialize
> > >> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> > >> at org.apache.jasper.compiler.TldLocationsCache.init
> > >> (TldLocationsCache.java:252)
> > >> at
> org.apache.jasper.compiler.TldLocationsCache.getLocation
> > >> (TldLocationsCache.java:223)
> > >> at org.apache.jasper.JspCompilationContext.getTldLocation
> > >> (JspCompilationContext.java:519)
> > >>
> > > [...]
> > >
> > >>
> > >> My system:
> > >> Fedora core 4 Kernel 2.6.11-1.1369_FC4
> > >> java version "1.4.2_04"
> > >> Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.4.2_04-b05)
> > >> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
> > >>
> > >>
> > >
> > > Looks like there is an error finding the jar containing the javac
> > > compiler required for JSP support. It certainly won't find it in
> > > the jre directory.
> > >
> > > I know we have (or had) some code to deal with this. Anyone else
> > > have more info?
> > >
> > > -David
> > >
> >
Re: War deployment problem in geronimo 1.0-208875
Posted by si...@insession.com.
After a quick look.. Geronimo's Daemon class is still calling
ToolsJarHack.install().
Jasper2 (the JSP handling component) which is part of Tomcat as of version
5.5.0 bundles the eclipse JDT to allow tomcat to run on a JRE, according
to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html
The Jetty doco also says Jasper2 is used by Jetty:
http://jetty.mortbay.org/jetty/readme.txt
So it appears that the ToolsJarHack isn't needed, but has anyone tested
both Tomcat and Jetty without tools.jar?
John
This e-mail message and any attachments may contain confidential,
proprietary or non-public information. This information is intended
solely for the designated recipient(s). If an addressing or transmission
error has misdirected this e-mail, please notify the sender immediately
and destroy this e-mail. Any review, dissemination, use or reliance upon
this information by unintended recipients is prohibited. Any opinions
expressed in this e-mail are those of the author personally.
Dain Sundstrom <da...@iq80.com> wrote on 04/07/2005 06:50:39 AM:
> It is supposed to use the eclipse compiler so there should be no
> searching at all.
>
> -dain
>
> On Jul 3, 2005, at 12:49 PM, David Blevins wrote:
>
> > On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
> >
> >> hi list,
> >> I just installed geronimo 1.0-208875 and deployed a simple
> >> webapplication with just a few JSP pages. The deployment via the
> >> deployer.jar went fine. But when I accessed the webapplication via
> >> the
> >> webbrowser I got the following error:
> >>
> >> HTTP ERROR: 500
> >> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/
> >> ext/tools.jar
> >> RequestURI=/karma/
> >> Powered by Jetty://
> >>
> >> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
> >> 13:10:26,860 WARN [/karma] /karma/:
> >> org.apache.jasper.JasperException: Unable to initialize
> >> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> >> at org.apache.jasper.compiler.TldLocationsCache.init
> >> (TldLocationsCache.java:252)
> >> at org.apache.jasper.compiler.TldLocationsCache.getLocation
> >> (TldLocationsCache.java:223)
> >> at org.apache.jasper.JspCompilationContext.getTldLocation
> >> (JspCompilationContext.java:519)
> >>
> > [...]
> >
> >>
> >> My system:
> >> Fedora core 4 Kernel 2.6.11-1.1369_FC4
> >> java version "1.4.2_04"
> >> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
> >> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
> >>
> >>
> >
> > Looks like there is an error finding the jar containing the javac
> > compiler required for JSP support. It certainly won't find it in
> > the jre directory.
> >
> > I know we have (or had) some code to deal with this. Anyone else
> > have more info?
> >
> > -David
> >
>
Re: War deployment problem in geronimo 1.0-208875
Posted by Dain Sundstrom <da...@iq80.com>.
It is supposed to use the eclipse compiler so there should be no
searching at all.
-dain
On Jul 3, 2005, at 12:49 PM, David Blevins wrote:
> On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
>
>> hi list,
>> I just installed geronimo 1.0-208875 and deployed a simple
>> webapplication with just a few JSP pages. The deployment via the
>> deployer.jar went fine. But when I accessed the webapplication via
>> the
>> webbrowser I got the following error:
>>
>> HTTP ERROR: 500
>> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/
>> ext/tools.jar
>> RequestURI=/karma/
>> Powered by Jetty://
>>
>> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
>> 13:10:26,860 WARN [/karma] /karma/:
>> org.apache.jasper.JasperException: Unable to initialize
>> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
>> at org.apache.jasper.compiler.TldLocationsCache.init
>> (TldLocationsCache.java:252)
>> at org.apache.jasper.compiler.TldLocationsCache.getLocation
>> (TldLocationsCache.java:223)
>> at org.apache.jasper.JspCompilationContext.getTldLocation
>> (JspCompilationContext.java:519)
>>
> [...]
>
>>
>> My system:
>> Fedora core 4 Kernel 2.6.11-1.1369_FC4
>> java version "1.4.2_04"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
>> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>>
>>
>
> Looks like there is an error finding the jar containing the javac
> compiler required for JSP support. It certainly won't find it in
> the jre directory.
>
> I know we have (or had) some code to deal with this. Anyone else
> have more info?
>
> -David
>
Re: War deployment problem in geronimo 1.0-208875
Posted by David Blevins <da...@visi.com>.
On Sun, Jul 03, 2005 at 01:21:23PM +0200, Oliver Kiessler wrote:
> hi list,
> I just installed geronimo 1.0-208875 and deployed a simple
> webapplication with just a few JSP pages. The deployment via the
> deployer.jar went fine. But when I accessed the webapplication via the
> webbrowser I got the following error:
>
> HTTP ERROR: 500
> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> RequestURI=/karma/
> Powered by Jetty://
>
> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
> 13:10:26,860 WARN [/karma] /karma/:
> org.apache.jasper.JasperException: Unable to initialize
> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
> at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:223)
> at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
[...]
>
> My system:
> Fedora core 4 Kernel 2.6.11-1.1369_FC4
> java version "1.4.2_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>
Looks like there is an error finding the jar containing the javac compiler required for JSP support. It certainly won't find it in the jre directory.
I know we have (or had) some code to deal with this. Anyone else have more info?
-David
Re: War deployment problem in geronimo 1.0-208875
Posted by Jacek Laskowski <jl...@apache.org>.
Oliver Kiessler wrote:
> <!-- spring setup -->
>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>/WEB-INF/applicationContext.xml</param-value>
> </context-param>
>
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
It's certainly not that simple as you had mentioned earlier ;) Could you
try much simpler war example with only a jsp page and nothing more? If
it works, add another page and go on until you find which part of the
current webapp fails.
> oliver
Jacek
Re: War deployment problem in geronimo 1.0-208875
Posted by Oliver Kiessler <ol...@gmail.com>.
2005/7/3, Jacek Laskowski <jl...@apache.org>:
> Oliver Kiessler wrote:
> > hi list,
> > I just installed geronimo 1.0-208875 and deployed a simple
> > webapplication with just a few JSP pages. The deployment via the
> > deployer.jar went fine. But when I accessed the webapplication via the
> > webbrowser I got the following error:
> >
> > HTTP ERROR: 500
> > Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> > RequestURI=/karma/
> > Powered by Jetty://
> >
> > 13:10:19,660 INFO [Container] Started HttpContext[/,/]
> > 13:10:26,860 WARN [/karma] /karma/:
> > org.apache.jasper.JasperException: Unable to initialize
> > TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> > at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
>
> Hi,
>
> I've never seen the error, either. How does the web.xml file look like?
>
> BTW: You may be better off subscribing to user@ mailing list and send
> the question there.
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>FrameworkContainer</servlet-name>
<servlet-class>com.inceedo.karma.common.servlet.FrameworkContainer</servlet-class>
<init-param>
<param-name>ServletComponentImpl</param-name>
<param-value>com.inceedo.karma.common.components.ServletComponentImpl</param-value>
</init-param>
<init-param>
<param-name>ServletWorkflowComponentImpl</param-name>
<param-value>com.inceedo.karma.common.components.ServletWorkflowImpl</param-value>
</init-param>
<init-param>
<param-name>basepackage</param-name>
<param-value>app</param-value>
</init-param>
<init-param>
<param-name>viewspath</param-name>
<param-value>/views</param-value>
</init-param>
<init-param>
<param-name>actionurlpattern</param-name>
<param-value>/do/</param-value>
</init-param>
<init-param>
<param-name>usecontainer</param-name>
<param-value>com.inceedo.karma.ioc.spring.SpringBeanFactoryImpl</param-value>
</init-param>
<!--<init-param>
<param-name>disableactionurls</param-name>
<param-value>true</param-value>
</init-param>-->
<init-param>
<param-name>locale</param-name>
<param-value>en</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FrameworkContainer</servlet-name>
<url-pattern>/do/*</url-pattern>
</servlet-mapping>
<!-- spring setup -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- spring setup end -->
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>
</web-app>
geronimo-jetty.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://geronimo.apache.org/xml/ns/web/jetty"
configId="com/inceedo/karma/webapp"
parentId="org/apache/geronimo/Server"
>
<context-root>/karma</context-root>
<context-priority-classloader>false</context-priority-classloader>
</web-app>
thanks,
oliver
Re: War deployment problem in geronimo 1.0-208875
Posted by Jacek Laskowski <jl...@apache.org>.
Oliver Kiessler wrote:
> hi list,
> I just installed geronimo 1.0-208875 and deployed a simple
> webapplication with just a few JSP pages. The deployment via the
> deployer.jar went fine. But when I accessed the webapplication via the
> webbrowser I got the following error:
>
> HTTP ERROR: 500
> Unable to initialize TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> RequestURI=/karma/
> Powered by Jetty://
>
> 13:10:19,660 INFO [Container] Started HttpContext[/,/]
> 13:10:26,860 WARN [/karma] /karma/:
> org.apache.jasper.JasperException: Unable to initialize
> TldLocationsCache: /usr/j2sdk1.4.2_04/jre/lib/ext/tools.jar
> at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
Hi,
I've never seen the error, either. How does the web.xml file look like?
BTW: You may be better off subscribing to user@ mailing list and send
the question there.
> oliver
Jacek