Hi, we want to use the DFS remote client in a Weblogic server 10.3 runing with JDK 6.0.x to access a content server. We created a simple webapp and tried to access a simple repository listing. This fails with the exception further down.
We are able to consume the required webservice from a standalone java programm. We are also able to put the same webapp into a Tomcat 6.0.20 runing with java 6.0 and it works without problems. It just simply doesn't work with the weblogic 10.3 server. DFS server is up and available. User credentials are OK.
My question:
- did anyone succeed in using DFS remote clients in a weblogic 10.3 server runing JDK 6.0?
Here is the complete exception in the weblogic server:
com.emc.documentum.fs.rt.AuthenticationException: Authorization failed, could not find identities in service context with token "temporary/127.0.0.1-1248165365396-6396711239102252020" at com.emc.documentum.fs.rt.impl.handler.AuthorizationHandler.handleMessage(Author izationHandler.java:44) at com.emc.documentum.fs.rt.impl.handler.AuthorizationHandler.handleMessage(Author izationHandler.java:1) at com.sun.xml.ws.handler.HandlerProcessor.callHandleMessage(HandlerProcessor.java :284) at com.sun.xml.ws.handler.HandlerProcessor.callHandlersRequest(HandlerProcessor.ja va:135) at com.sun.xml.ws.handler.ServerSOAPHandlerTube.callHandlersOnRequest(ServerSOAPHa ndlerTube.java:133) at com.sun.xml.ws.handler.HandlerTube.processRequest(HandlerTube.java:116) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:4 44) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java :135) at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate .java:129) at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegat e.java:160) at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java: 96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociati onValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionV alve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 9) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11P rotocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)
------------------------------------------------------------------------------- --------------------
The test jsp we are using:
<%@ page import="com.emc.documentum.fs.datamodel.core.context.RepositoryIdentity" %>
<%@ page import="com.emc.documentum.fs.datamodel.core.query.Repository" %>
<%@ page import="com.emc.documentum.fs.rt.ServiceInvocationException" %>
<%@ page import="com.emc.documentum.fs.rt.context.ContextFactory" %>
<%@ page import="com.emc.documentum.fs.rt.context.IServiceContext" %>
<%@ page import="com.emc.documentum.fs.rt.context.ServiceFactory" %>
<%@ page import="com.emc.documentum.fs.rt.context.ServiceInstantiationException" %>
<%@ page import="com.emc.documentum.fs.services.search.client.ISearchService" %>
<%@page import="java.util.List" %>
<%@page import="java.io.PrintWriter" %>
<html>
<head/>
<body>
<%<br/>
String hostPort = "xxxxx:8888";
String docbase = "xxxxx";
String user = "xxxx";
String pass = "****";
ContextFactory contextFactory = ContextFactory.getInstance();
IServiceContext context = contextFactory.newContext();
RepositoryIdentity repoId = new RepositoryIdentity();
repoId.setRepositoryName(docbase);
repoId.setUserName(user);
repoId.setPassword(pass);
context.addIdentity(repoId);
ServiceFactory serviceFactory = ServiceFactory.getInstance();
ISearchService mySvc;
%>
<%> try {
mySvc = serviceFactory.getRemoteService(ISearchService.class,context, "core", "http://" + hostPort + "/services");
List<Repository> reps = mySvc.getRepositoryList(null);
for(int i=0;i<reps.size();i++) {>
# out.println("> repository=" + reps.get(i).getName());
}
} catch (Exception e) {
e.printStackTrace(new PrintWriter(out));
}
%>
</body>
</html>