NPE when hosting "calculator-webapp" sample under Tomcat when the Tomcat 
install path contains spaces.
------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1567
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1567
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Web App Integration
         Environment: MS windows Vista. Tomcat 6.0.13/jvm 1.5.0_11-b03

java/sca source revision 568049



            Reporter: Steve Jones


Running Tuscany calculator-webapp sample under Tomcat.

If Tomcat is installed in its default install folder:

C:\Program Files\Apache Software Foundation\Tomcat 6.0

A NPE occurs when the samples calc.jsp page is served.

Reinstalling Tomcat in:

D:\tomcat\tomcat60\

Fixes the problem

Cheers.

****************************************************
Tomcat log file:

SEVERE: exception initializing SCADomain
org.osoa.sca.ServiceRuntimeException: 
org.osoa.sca.ServiceRuntimeException: java.lang.IllegalArgumentException
        at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
        at 
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82)
        at 
org.apache.tuscany.sca.webapp.SCADomainHelper.initSCADomain(SCADomainHelper.java:63)
        at 
org.apache.tuscany.sca.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:37)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.osoa.sca.ServiceRuntimeException: 
java.lang.IllegalArgumentException
        at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:109)
        at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230)
        ... 27 more
Caused by: java.lang.IllegalArgumentException
        at java.net.URI.create(Unknown Source)
        at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getContributionLocation(DefaultSCADomain.java:246)
        at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:103)
        ... 28 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 
16: file:/C:/Program Files/Apache Software Foundation/Tomcat 
6.0/webapps/sample-calculator-webapp/
        at java.net.URI$Parser.fail(Unknown Source)
        at java.net.URI$Parser.checkChars(Unknown Source)
        at java.net.URI$Parser.parseHierarchical(Unknown Source)
        at java.net.URI$Parser.parse(Unknown Source)
        at java.net.URI.<init>(Unknown Source)
        ... 31 more
21-Aug-2007 12:12:58 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
21-Aug-2007 12:12:58 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
21-Aug-2007 12:13:09 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at org.apache.jsp.calc_jsp._jspService(calc_jsp.java:63)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Unknown Source)
21-Aug-2007 12:13:58 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
21-Aug-2007 12:13:58 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to