Problem to acces ALFRESCO with RESIN Application Server

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 06:11 AM
Hi
I've tried to access ALFRESCO repository installed on standard TOMCAT with my own JAVA application via WebServices API without proble
Now I've migrate ALFRESCO Standard Web Client Application on Resin application Server ver.3.0.18 and all works fine with Standard Alfresco Web Client.
But I've problem to access repository with mi JAVA Application because this exception was raised:
I've installed Alfresco on standard 8080 port.
Can someone help me ? :?
I've tried to access ALFRESCO repository installed on standard TOMCAT with my own JAVA application via WebServices API without proble
Now I've migrate ALFRESCO Standard Web Client Application on Resin application Server ver.3.0.18 and all works fine with Standard Alfresco Web Client.
But I've problem to access repository with mi JAVA Application because this exception was raised:
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: WSDoAllReceiver: Request does not contain required Security header faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:WSDoAllReceiver: Request does not contain required Security header at org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:194) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:154) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492) at com.caucho.util.ThreadPool.run(ThreadPool.java:425) at java.lang.Thread.run(Thread.java:613) {http://xml.apache.org/axis/}hostname:iWebAppServerWSDoAllReceiver: Request does not contain required Security header at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.caucho.xml.XmlParser.popNode(XmlParser.java:883) at com.caucho.xml.XmlParser.closeTag(XmlParser.java:784) at com.caucho.xml.XmlParser.parseNode(XmlParser.java:357) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:246) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:615) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query(RepositoryServiceSoapBindingStub.java:774) at _test._alfrescoWebServices__jsp.executeSearch(_alfrescoWebServices__jsp.java:58) at _test._alfrescoWebServices__jsp._jspService(_alfrescoWebServices__jsp.java:131) at com.caucho.jsp.JavaPage.service(JavaPage.java:75) at com.caucho.jsp.Page.subservice(Page.java:506) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:613)
I've installed Alfresco on standard 8080 port.
Can someone help me ? :?
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2006 11:07 AM
I've set the alfresco log to DEBUG and this is the soap message that java application send:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"> <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsu:Created>2006-05-09T14:57:29.774Z </wsu:Created> <wsu:Expires>2006-05-09T15:02:29.774Z </wsu:Expires> </wsu:Timestamp> <wsse:UsernameToken> <wsse:Username>ticket </wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_22f7d50b-df6c-11da-ab4b-7bcc18df7473 </wsse:Password> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <query xmlns="http://www.alfresco.org/ws/service/repository/1.0"> <store> <ns1:scheme xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">workspace </ns1:scheme> <ns2:address xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">SpacesStore </ns2:address> </store> <query> <ns3:language xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">lucene </ns3:language> <ns4:statement xmlns:ns4="http://www.alfresco.org/ws/model/content/1.0">TYPE:"{http://www.alfresco.org/model/content/1.0}content" AND (( +@\{http\://www.alfresco.org/model/content/1.0\}name:GE12*)) </ns4:statement> </query> <includeMetaData>false </includeMetaData> </query> </soapenv:Body></soapenv:Envelope>
so the authentication works fine ( the TICKET has been generated correctly ) but when my JAVA application call the method
repositoryService.query(STORE, query, false);
I get the exception
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: [b]faultString: WSDoAllReceiver: Request does not contain required Security header[/b] faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:WSDoAllReceiver: Request does not contain required Security header at org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:194) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:154) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492) at com.caucho.util.ThreadPool.run(ThreadPool.java:425) at java.lang.Thread.run(Thread.java:613) [b]{http://xml.apache.org/axis/}hostname:iWebAppServer[/b] WSDoAllReceiver: Request does not contain required Security header at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.caucho.xml.XmlParser.popNode(XmlParser.java:883) at com.caucho.xml.XmlParser.closeTag(XmlParser.java:784) at com.caucho.xml.XmlParser.parseNode(XmlParser.java:357) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:246) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:615) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query(RepositoryServiceSoapBindingStub.java:774) at _test._alfrescoWebServices__jsp.executeSearch(_alfrescoWebServices__jsp.java:58) at _test._alfrescoWebServices__jsp._jspService(_alfrescoWebServices__jsp.java:133) at com.caucho.jsp.JavaPage.service(JavaPage.java:75) at com.caucho.jsp.Page.subservice(Page.java:506) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:613)
someone have an idea ?
ops: :?
thanks in advance
