02-23-2010 10:48 AM
try {
WebServiceFactory.setEndpointAddress(AlfrescoConstants.REPOSITORY_LOCATION);
AuthenticationUtils.startSession(AlfrescoConstants.ALFRESCO_USERNAME, AlfrescoConstants.ALFRESCO_PASSWORD);
createSpaceIfNoExists();
String mimeType = new MimetypesFileTypeMap().getContentType(file.getFileName());
ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
Reference newContentReference = createNewContent(contentService, file.getFileName(), file.getFileData(), mimeType);
makeVersionable(repositoryService, newContentReference);
} catch (Exception e) {
e.printStackTrace();
throw e;
} finally {
AuthenticationUtils.endSession();
}
2010-02-23 16:24:14,057 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axis.MessageContext.getMessage()Ljavax/xml/soap/SOAPMessage;" the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) of the current class, org/apache/axis/MessageContext, and the class loader (instance of <bootloader>) for interface javax/xml/rpc/handler/soap/SOAPMessageContext have different Class objects for the type javax/xml/soap/SOAPMessage used in the signature
at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:422)
at org.apache.axis.AxisFault.<init>(AxisFault.java:228)
at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.createCall(AuthenticationServiceSoapBindingStub.java:167)
at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:175)
at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)
02-24-2010 07:24 AM
02-24-2011 02:33 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.