简体   繁体   中英

default configuration change for SBT

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

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>

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM