Hi,

I'm trying to host the Tuscany calculator-webapp sample under Tomcat 5.5.

Tomcat seems to be working OK and the Servlet Examples that come with
Tomcat are working fine.

I've built the calculator-webapp sample from the svn source (V567016)
and copied the WAR file across to <Tomcat>/webapps/.

Tomcat unpacks the WAR immediately and the Tomcat manager lists
"sample-calculator-webapp" as one of it's known applications.

When I try to run the sample by pointing at:

http://localhost:8080/sample-calculator-webapp/calc.jsp

I get a NPE error (see end).

Do I need to install/configure some other SCA components on Tomcat to
get the Tuscany examples to run or is everything that's needed already
in the WAR file?

Also what's the best way to go about debugging such problems?

Thanks, Steve.


org.apache.jasper.JasperException: Exception in JSP: /calc.jsp:26

23: <%@ page contentType="text/html;charset=UTF-8" language="java" %>
24: <%
25:    SCADomain scaDomain = (SCADomain)
application.getAttribute("org.apache.tuscany.sca.SCADomain");
26:    CalculatorService calculatorService =
scaDomain.getService(CalculatorService.class,
"CalculatorServiceComponent");
27: %>
28: <html>
29: <head><title>Calculator sample</title></head>


Stacktrace:
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.NullPointerException
        org.apache.jsp.calc_jsp._jspService(calc_jsp.java:52)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to