Deployment errors: 'Cannot create the server base URI' when context is non-ROOT
-------------------------------------------------------------------------------

                 Key: MASHUP-821
                 URL: https://wso2.org/jira/browse/MASHUP-821
             Project: WSO2 Mashup Server
          Issue Type: Bug
            Reporter: Channa Gunawardena
            Assignee: Channa Gunawardena
            Priority: Critical
             Fix For: 1.1


When the Mashup server is in a non-root context, two of the sample services 
(digit2image and upgradechecker) fail to deploy, giving the error message 
'Cannot create the server base URI':

The exception is:
ERROR [2008-05-30 06:30:57,270]  The servicedigit2image.js is not valid.
org.mozilla.javascript.WrappedException: Wrapped org.wso2.mashup.MashupFault: 
Cannot create the server base URI. (digit2image#20)
        at 
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
        at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
        at org.mozilla.javascript.gen.c12._c0(digit2image:20)
        at org.mozilla.javascript.gen.c12.call(digit2image)
        at 
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at 
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c12.call(digit2image)
        at org.mozilla.javascript.gen.c12.exec(digit2image)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:1227)
        at 
org.wso2.javascript.rhino.JavaScriptEngine.evaluate(JavaScriptEngine.java:77)
        at 
org.wso2.mashup.deployer.JSDeployer.processService(JSDeployer.java:418)
        at org.wso2.mashup.deployer.JSDeployer.deploy(JSDeployer.java:182)
        at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
        at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
        at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
        at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
        at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
        at 
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
        at 
org.wso2.utils.ServerConfigurator.loadServices(ServerConfigurator.java:214)
        at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
        at 
org.wso2.utils.WSO2ConfigurationContextFactory.createNewConfigurationContext(WSO2ConfigurationContextFactory.java:60)
        at org.wso2.wsas.ServerManager.start(ServerManager.java:107)
        at org.wso2.wsas.MainServlet.start(MainServlet.java:249)
        at org.wso2.mashup.transport.MainServlet.start(MainServlet.java:37)
        at org.wso2.wsas.MainServlet.init(MainServlet.java:185)
        at org.wso2.mashup.transport.MainServlet.init(MainServlet.java:52)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.wso2.wsas.TomcatRepositoryListener.run(TomcatRepositoryListener.java:111)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.wso2.mashup.MashupFault: Cannot create the server base URI.
        at 
org.wso2.mashup.hostobjects.system.SystemHostObject.jsFunction_include(SystemHostObject.java:236)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
        ... 35 more
Caused by: java.net.URISyntaxException: Relative path in absolute URI: 
http://192.168.1.100:10001mashup///services/
        at java.net.URI.checkPath(URI.java:1787)
        at java.net.URI.<init>(URI.java:662)
        at 
org.wso2.mashup.hostobjects.system.SystemHostObject.jsFunction_include(SystemHostObject.java:230)
        ... 40 more
 INFO [2008-05-30 06:30:57,434]  
org.apache.axis2.deployment.DeploymentException: Wrapped 
org.wso2.mashup.MashupFault: Cannot create the server base URI. (digit2image#20)
 INFO [2008-05-30 06:30:57,434]  
org.apache.axis2.deployment.DeploymentException: Wrapped 
org.wso2.mashup.MashupFault: Cannot create the server base URI. (digit2image#20)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to