Home
TeamSite
Developing JSP
stimpy
In trying to integrate interwoven to plumtree, I am developing jsp pages to access teamsite via URL commands.
I am having problems setting up the development environment. Specifically, I am unable to access the CSSDK library packages.
<%@ page import="com.interwoven.cssdk.common.*" %>
<%@ page import="com.interwoven.cssdk.filesys.*" %>
<%
String v_session_string = CSClient.getCSClient().getContext().getSessionString();
%>
The above statement fails to compile.
I am guessing that I need to have my jsp in a specific directory/setup web.xml to point to SDK libraries.
What do I need to do to access the CSSDK libs?
My jsps currently sits in C:\jakarta-tomcat-5.0.19\webapps\sampledir and I have copied the libs to web-inf/lib
Thanks,
Ray
Find more posts tagged with
Comments
sunil_j
Hi,
We are working on the same technologies but I am not trying to do what u are.
Still You need to keep teamsite cssdk jar files in your classpath and your JSPs will compile successfully.
Regards
Sunil
Technical Consultant
Sydney (Australia)
sunil_j
Hi,
TeamSite webdesk Jars are located at
\iw-home\httpd\webapps\webdesk\WEB-INF\lib
Just keep this path in your system classpath.
Regards
Sunil
Technical Consultant
Sydney (Australia)
sunil_j
Hi,
I am interested in knowing a little more from you. What are you trying to acheive in the above integration?
Can you let me know where are your located and what kind of functionalities are you looking ahead?
Regards
Sunil
Technical Consultant
Sydney (Australia)
Migrateduser
Stimpy,
In addition to including the cssdk client jars (are you using SOAP or JNI?) in your webapp's WEB-INF/lib directory, you will need to use the right calls.
CSClient.getClient() will never work, you need to use the correct CSFactory to get an instance of CSClient.
Please look at the CSSDK sample application for examples on using CSSDK in a web application.
- Navneet
stimpy
CSClient client = (CSClient)request.getAttribute("iw.csclient");
That seems to be all working but now I get a null exception error.
Status 500 - </h1><HR size="1" noshade><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
</pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException
org.apache.jsp.test_jsp._jspService(test_jsp.java:66)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Tomcat logs.</u></p><HR size="1" noshade><h3>Apache Tomcat/5.0.19</h3></body></html>
stimpy
I am using SOAP.
Solito
is it working now..?
i'll be interested to know what you did to make it work
cheers
Migrateduser
Stimpy,
The exception you've posted seems to be from Tomcat, not from CSSDK, and the code you're showing us is your code, and doesnt appear to directly be using CSSDK; Unfortunately, without context, I have no idea what your code is trying to achieve and what the supporting code is, so I can't help there. Can you pinpoint where in CSSDK it's failing so I can look at it?
Thanks,
Navneet
stimpy
This problem is fixed if there is a valid (authenticated) session.
The conclusion is that you need a valid iw.session (i.e. user is authenticated) to get factory objects, client objects.
either instantiate with a authenticated session or get factory objects by logging in.
i.e. factory.getClient(username, role, password ,locale, app context, server).