default configuration change for SBT

一曲冷凌霜 提交于 2019-12-25 02:06:07

问题


I integrated SBT in my existing application and able to run the application with sbt enabled. I deployed in my test server and it works fine but when I moved to the production, Since the context path of the application is different it breaks.

Ex: in test server my application url is https://somedomian/SampleSbt

In production htt....somedomain/serve/meth/SampleSbt

I'm getting error in firebug as htt.....domain/sbt/js/sdk/sbt/ErrorTransport.js -> Forbidden

I tried changing the context path /my code path /managed-beans.xml and many ways but still it gives the same error

want to change the path from http.....somedomain/sbt/js/sdk/sbt/Errortransport.js to http.....somedomain/serv/meth/sbt/js/sdk/sbt/Errortransport.js


回答1:


After the discussion yesterday with Projjwal Saha, the issue should be resolved. Can you update if it is, or let us know in case you still see the issue.




回答2:


Can you try to add the servlet init parameter called "toolkitUrl" to the library servlet, defined in your application web.xml with value "%local_server%/somedomain/serv/meth/sbt".

So the modified library servlet declaration should look like -

<servlet> <description>This servlet initializes the specified JavaScript library for use by the Social Business Toolkit.</description> <display-name>Social Business Toolkit Library Servlet</display-name> <servlet-name>LibraryServlet</servlet-name> <servlet-class>com.ibm.sbt.jslibrary.servlet.LibraryServlet</servlet-class> <init-param> <param-name>toolkitUrl</param-name> <param-value>%local_server%/somedomain/serv/meth/sbt</param-value> </init-param>
</servlet>



来源:https://stackoverflow.com/questions/29450393/default-configuration-change-for-sbt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!