我正在开发一个旧项目,由于部署新版本的时间很短,我无法使用 CMIS 迁移内容上传,因此我需要使用旧的 WebServiceFactory 代码将二进制文件创建到 Alfresco 中。
但是,随着 Alfresco (5.0.a) 的新版本,我无法使用以下方式获得授权:
WebServiceFactory.setEndpointAddress("http://localhost:8080/alfresco/api");
AuthenticationUtils.startSession(userName, password);
这是我收到的错误:
Caused by: (404)Not Found
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
有什么线索吗?您知道是否有一种非常(非常非常)快速的方法来创建文件夹并从 Java 类更新二进制文件?
谢谢,
安德里亚
最佳答案
从 this code 获取文件加载器示例,将 pom.xml 编辑为所有内容的最新版本,将其指向您的服务器,运行,享受。
关于java - Alfresco 5.0 : AuthenticationUtils. startSession 生成 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25650158/