My steps:
1)Deployed Alfresco.war v3.3 on JBoss v4.2.3.GA as described at http://wiki.alfresco.com/wiki/Deploying_Alfresco_on_JBoss
2) In addition corrected 'repository.properties' file inside the alfresco.war to locate all 3rd party apps.
(see attached 'JBoss console output.txt' - it is clear from errors)
3) Trying to make simple CMIS call (getRepositories) I have an error on the client side:
...
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
...
The cause of the error is response with *empty body* from Alfresco.
4) Further investigation showed that this is Class Loader issue.
Class org.jboss.ws.core.soap.MessageFactoryImpl (jboss-4.2.3.GA/server/default/tmp/deploy/tmp25575jbossws-core.jar), which is JBoss’ default implementation of the javax.xml.soap.MessageFactory (jboss-4.2.3.GA/server/default/deploy/alfresco.war/WEB-INF/lib/saaj-api-1.3.jar) cannot be classcasted to javax.xml.soap.MessageFactory.
e.g.
MessageFactory factory = (MessageFactory) instanceOfMessageFactoryImpl; <-- result of ClassCastException
This happens because the classes are loaded by classloaders, which are members of different branches of JBoss’ Classloaders hierarchy.
Any ideas why it is happens? Is it either bug of JBoss or Alfresco or configuration issue?
Any info is critical and highly appreciated.