2014-12-09 6 views
0

실습 안내서 : IBM Connections Cloud 시작하기. 최종 업데이트 : Jan Smolenski의 2014 년 11 월 19 일 내가 설정에게 프로젝트를 서버 (109 단계)를 실행하고 나는 메시지를 얻을 mysocial.webapp의 URL을 연 후오류 500 : javax.servlet.ServletException : 필터 [SBTFilter]

:

오류 500 : javax.servlet.ServletException은 : [SBTFilter] 필터 : 수 없습니다 필요한 필터 클래스 찾기 - com.ibm.sbt.util.SBTFilter.class

콘솔에서 읽었습니다. [ERROR] SRVE0321E : [SBTFilter] 필터가 시작하는 동안로드되지 않았습니다.

시동 중에 어떻게 sbtfilter를 포함 할 수 있습니까? SDK에서 추가 라이브러리를 가져 오거나 구성을 변경해야합니까? 실험실 설명서에 선언

나는

답변

0

social.helloworld.webapp라는 샘플 프로젝트가 ... 정확히 샘플을 실행합니다. 당신은 다음 줄

<servlet> 
<description>The service servlet handles requests from the toolkit to access external resources.</description> 
<display-name>Social Business Toolkit Service Servlet</display-name> 
<servlet-name>ServiceServlet</servlet-name> 
<servlet-class>com.ibm.sbt.service.core.servlet.ServiceServlet</servlet-class> 
</servlet> 
<servlet-mapping> 
<servlet-name>ServiceServlet</servlet-name> 
<url-pattern>/service/*</url-pattern> 
</servlet-mapping> 
<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> 
</servlet> 
<servlet-mapping> 
<servlet-name>LibraryServlet</servlet-name> 
<url-pattern>/library/*</url-pattern> 
</servlet-mapping> 
<filter> 
<description>This filter is responsible for creating the toolkit application and context objects for every servlet within this web application.</description> 
<display-name>Social Business Toolkit Filter</display-name> 
<filter-name>SBTFilter</filter-name> 
<filter-class>com.ibm.sbt.util.SBTFilter</filter-class> 
</filter> 
<filter-mapping> 
<filter-name>SBTFilter</filter-name> 
<url-pattern>/*</url-pattern> 
</filter-mapping> 
<resource-ref> 
<description>Reference to a URL resource which points to the managed bean configuration for the Social Business Toolkit.</description> 
<res-ref-name>url/ibmsbt-managedbeansxml</res-ref-name> 
<res-type>java.net.URL</res-type> 
<res-auth>Container</res-auth> 
<res-sharing-scope>Shareable</res-sharing-scope> 
</resource-ref> 
<resource-ref> 
<description>Reference to a URL resource which points to the configuration properties for the Social Business Toolkit.</description> 
<res-ref-name>url/ibmsbt-sbtproperties</res-ref-name> 
<res-type>java.net.URL</res-type> 
<res-auth>Container</res-auth> 
<res-sharing-scope>Shareable</res-sharing-scope> 
</resource-ref> 

다음의 web.xml https://github.com/OpenNTF/SocialSDK/blob/master/samples/j2ee/templates/social.helloworld.webapp/src/main/webapp/WEB-INF/web.xml

복사 보면 다음 당신은 또한 jar 파일이 존재하는지 확인 할 수 있습니다 웹 애플리케이션 를 다시 시작할 수 있습니다.

또 다른 좋은 참고 자료는 ... https://github.com/OpenNTF/SocialSDK/wiki/Building-your-first-social-enabled-jsp