On 06/04/2020 01:07, Tommy Pham wrote:
> On Sun, Apr 5, 2020 at 3:47 PM Tommy Pham <tommy...@gmail.com> wrote:
> 
>> Hi Mark,
>>
>> I've finally started my embedded Tomcat project.  I'm running into NPE for
>> the JSP servlet.  From the log:
>>
>> https://pastebin.com/thiADVYE
>>
>> I think I have everything setup correctly because accessing
>> http://localhost/css/sample.css works.  I've even added the 5 listeners
>> in the server.xml configuration while troubleshooting.  My JSP is really
>> basic:
>>
>> https://pastebin.com/X7R8weKv
>>
>> When I inspecting the code where the NPE is thrown:
>>
>>             // Get the cached EL expression factory for this context
>>             expressionFactory =
>>
>> JspFactory.getDefaultFactory().getJspApplicationContext(
>>                     compiler.getCompilationContext().getServletContext()).
>>                     getExpressionFactory();
>>
>> I couldn't figure out which part is the NPE.  I have the following jars:
>>
>> *) all 4 tomcat-embed-*
>> *) tomcat-annotations-api
>> *) ecj-3.21
>> *) jstl 1.2 ( to troubleshoot this NPE )
>>
>>
> I forgot to mention that the directory path org/apache/jsp was created
> within workDir  /mnt/d/java/projects/ewa/build/ewa/temp/ROOT

Check if JasperInitializer has been called. Depending on how you
configure things, you'll need to do that explicitly.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to