[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sebastien goasguen resolved CLOUDSTACK-5835.
--------------------------------------------

    Resolution: Won't Fix

> awsapi s3 Implementation not functioning
> ----------------------------------------
>
>                 Key: CLOUDSTACK-5835
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5835
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: AWSAPI
>    Affects Versions: 4.2.0
>         Environment: CentOS 6.3 
>            Reporter: Alok
>            Assignee: sebastien goasguen
>
> Steps completed to enable awsapi S3 implementation 
> ==============================================
> 1) Below settings have been enabled Using Cloudstack_management UI 
> enable.s3.api enable Amazon S3 API on CloudStack      true     
> s3.rrs.enabled        enable s3 reduced redundancy storage    true
> 2 Modified cloud-bridge.properties to storage.root to a valid directory. 
> 3) restarted Cloudstack_management service. 
> 4)  Executed below command and received User registration is successful 
> Message, 
> cloudstack-aws-api-register 
> --apikey=1cn1BBE9aaA1FSHij3ee6YS4orlsid-EfXaWBXMtX-BsqjtQwEj8UDANzzdQobBrGjTmKnny2sQF_GYRMNBDSA
>  
> --secretkey=-guBDlSM2OC18wAK_Kj5WGnlq3P1NluChq52jBDcSudOKQ637fh17imMHETkQC5ZIjtaEKuxajos3yADGLIVwA
>  --cert=cert.pem --
> Problem Statement
> =================
> Tried to access : http://localhost:7080/awsapi/rest/AmazonS3 from browser 
> its resulting in below exception and got 500 response "The endpoint reference 
> (EPR) for the Operation not found is /awsapi/services/AmazonEC2/ and the WSA 
> Action = null"
> SEVERE: Allocate exception for servlet CloudBridgeS3Servlet
> javax.servlet.ServletException: Error initializing awsapi: null
>         at com.cloud.bridge.service.S3RestServlet.init(S3RestServlet.java:128)
>         at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
>         at 
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>         at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:701)
> Jan 8, 2014 6:39:00 PM org.apache.axis2.engine.AxisEngine receive
> SEVERE: The endpoint reference (EPR) for the Operation not found is 
> /awsapi/services/AmazonEC2/ and the WSA Action = null
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation 
> not found is /awsapi/services/AmazonEC2/ and the WSA Action = null
>         at 
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
>         at 
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135)
>         at 
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>         at 
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:825)
>         at 
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:271)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> Observation:
> ================
> I have seen below exception in catalina.out file during cloudstack-management 
> server start-up 
> 2014 6:11:00 PM org.apache.axis2.deployment.ModuleDeployer deploy
> SEVERE: The addressing-1.5.4.mar module, which is not valid, caused The 
> module.xml file cannot be found for the module: 
> /usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/modules/addressing-1.5.4.mar
> org.apache.axis2.deployment.DeploymentException: The module.xml file cannot 
> be found for the module: 
> /usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/modules/addressing-1.5.4.mar
> /module
>         at 
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
>         at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>         at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>         at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>         at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at 
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:622)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Caused by: org.apache.axis2.deployment.DeploymentException: The module.xml 
> file cannot be found for the module: 
> /usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/modules/addressing-1.5.4.mar
>         at 
> org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:523)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to