• Post Reply Bookmark Topic Watch Topic
  • New Topic

connecting jsp page to datastore on remote server

 
Sowmya Dhilip
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am developing a jsp application in weblogic, in which i have to connect it to a datastore on a remote server.this is using filenet P8 technology.
there is a jsp file which uses a java class to connect.
the jsp is as follows Orders1.jsp ,
<%@ page language="java" contentType="text/html;charset=UTF-8" import="javaSource.Connect"%>
<%@ page errorPage="error.jsp" %>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
<html>
<%
try
{
System.out.println("before connect");
Connect con = new Connect();
System.out.println("after connect");
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
%>
<body class="body">

</body>
</html>
and the java file is as follows:
package javaSource;
import com.filenet.wcm.api.*;
import java.util.*;
public class Connect
{
Session sess;
public Connect()
{
try
{
System.out.println("inside connect");
sess = ObjectFactory.getSession("DM.DubaiM",null,"peadmin",null,null);
//sess.verify();
System.out.println(sess.toString());
EntireNetwork netW = ObjectFactory.getEntireNetwork(sess);
System.out.println("inside network");
System.out.println(netW.toString());
Domains doms = netW.getDomains();
Iterator iter = doms.iterator();
while (iter.hasNext())
{
Domain dom = (Domain)iter.next();
System.out.println(dom.getName());
}
/*ObjectStores objStores = netW.getObjectStores();
System.out.println("inside object store");
ObjectStore objStore = null;
Iterator iter = objStores.iterator();
while(iter.hasNext())
{
objStore = (ObjectStore) iter.next();
System.out.println(objStore.getName());
}*/
}
catch(Exception e)
{
e.printStackTrace();
}
}
}

When i run the jsp, i get the following error message:
before connect
inside connect
java.util.MissingResourceException: Can't find bundle for base name WcmApiConfig
, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at com.filenet.wcm.api.impl.Configuration.<init>(Configuration.java:52)
at com.filenet.wcm.api.impl.SessionImpl.getConfigItemValue(SessionImpl.j
ava:369)
at com.filenet.wcm.api.impl.SessionImpl.getRemoteServerUrl(SessionImpl.j
ava:302)
at com.filenet.wcm.api.impl.SessionImpl.hashCode(SessionImpl.java:90)
at java.lang.Object.toString(Object.java:203)
at javaSource.Connect.<init>(Connect.java:14)
at jsp_servlet.__orders1._jspService(Orders1.jsp:37)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:431)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:185)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
after connect
I am connected to the remote server as a client machine and can access it.
What do ido,please help.
Regards,
Sowmya
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!