java.lang.NullPointerException at "TldLocationsCache.processJars" when running Tomcat 4.x built from sources
Dear Collegues ! I tried to build Tomcat 4.0.3 and then 4.1 (from cvs) and every time failing the same way (!) when running the built project. (running tomcat and pointing the browser to http://localhost:8080). The compilation run rather fine - just some depreciation warnings. I followed instructions in BUILT.txt. Please point me into the right direction. I know something went wrong. But what ? Has anybody similar problems ? There were some inconsistences: The downloaded "jakarta-tomcat-connectors" does not contain SystemLogHandler.class" - I found it on the one downloaded from cvs. Also there were no # - Commons Logging, version 1.0.1 or later - in the location pointed in build.properties.sample file: commons-logging.loc=http://jakarta.apache.org/builds/jakarta-commons/release /commons-logging/v1.0.1/commons-logging-1.0.1.tar.gz I have found them also somewhere among cvs downloaded files. sincerely Olek Poznan, Poland System : w2k JDK: 1.4.0 ANT: 1.4.1 Tomcat 4.0.3 - source download Tomcat 4.1 from cvs javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94 7) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NullPointerException at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j ava:203) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 9) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.St
REALM ?
Sorry for posting in HTML, now I am correct in that matter. : Hello ! I have found that in web.xml the Realm can be specified. But is Servlet 2.2. spec telling us what the realm is. Are there any interfaces defined ? sincerely Olek
cannot get native chars from request !!!
in parsePostData method HttpUtils.java we have : String postedBody = new String(postedBytes, 0, len, "8859_1"); return parseQueryString(postedBody); Does it mean I can never get native character entered in form since the special chars are lost when String with "8859_1" is created !? sincerely Olek
realm specification ?
Hello I have found that in web.xml the Realm can be specified. But is Servlet 2.2. spec telling us what the realm is. Are there any interfaces defined ? sincerely Olek