Faced the same issue. This can be fixed by updating the stratos-cli
assembly/bin.xml [1] to match the stratos-cli component packaging jar
- org.apache.stratos.cli-4.0.0-SNAPSHOT.jar.

It seems stratos-cli component pom.xml in [2] has been modified with;
+ <appendAssemblyId>false</appendAssemblyId>

which has caused stratos-cli packaging jar to be created without the
suffix "Tool".

[1] 
https://github.com/apache/stratos/blob/master/products/stratos-cli/distribution/src/main/assembly/bin.xml#L32

[2] 
https://github.com/apache/stratos/blob/master/components/org.apache.stratos.cli/pom.xml#L123

Thanks.

On Mon, Jul 28, 2014 at 4:47 PM, Sajith Kariyawasam <saj...@wso2.com> wrote:
> I also encountered this issue, and seems
> org.apache.stratos.cli-4.0.0-SNAPSHOT-Tool.jar is not getting created during
> the build. I will have a look at this
>
>
> On Wed, Jun 11, 2014 at 2:38 PM, Anand Srinivasan (asriniv2)
> <asrin...@cisco.com> wrote:
>>
>> Hi Imesh,
>>
>>
>>
>> Thanks for the reply.
>>
>> I was trying from the Master branch where I was seeing this issue.
>>
>> Checked out the tag 4.0.0-rc4 and did not find this issue.
>>
>>
>>
>> Thanks
>>
>> Anand.S
>>
>>
>>
>> From: Imesh Gunaratne [mailto:im...@apache.org]
>> Sent: Monday, June 09, 2014 5:58 PM
>> To: dev
>> Subject: Re: org.apache.stratos.cli-4.0.0-SNAPSHOT-Tool.jar is misisng
>> from apache-stratos-cli-4.0.0-SNAPSHOT@source
>>
>>
>>
>> Hi Anand,
>>
>>
>>
>> Can you please let us know from which location you downloaded the CLI
>> package?
>>
>> I checked 4.0.0-rc4 CLI package and it has the jar file correctly:
>>
>>
>>
>> ├── INSTALL.txt
>>
>> ├── LICENSE
>>
>> ├── NOTICE
>>
>> ├── org.apache.stratos.cli-4.0.0.jar
>>
>> ├── README.txt
>>
>> ├── stratos.bat
>>
>> └── stratos.sh
>>
>>
>>
>> Thanks
>>
>>
>>
>> On Mon, Jun 9, 2014 at 4:51 PM, Anand Srinivasan (asriniv2)
>> <asrin...@cisco.com> wrote:
>>
>> Hi,
>>
>>
>>
>> Downloaded a fresh build of stratos today and found that
>> org.apache.stratos.cli-4.0.0-SNAPSHOT-Tool.jar is misisng from
>> apache-stratos-cli-4.0.0-SNAPSHOT.zip
>>
>>
>>
>> root@octl-vm:/opt/stratos-packs/apache-stratos-cli-4.0.0-SNAPSHOT#
>> ./stratos.sh
>>
>> Error: Unable to access jarfile
>> /opt/stratos-packs/apache-stratos-cli-4.0.0-SNAPSHOT/org.apache.stratos.cli-4.0.0-SNAPSHOT-Tool.jar
>>
>>
>>
>> Is the file missing or will I have to copy this
>> org.apache.stratos.cli-4.0.0-SNAPSHOT-Tool.jar from anywhere?
>>
>>
>>
>>
>>
>> Found a similar file for cli - org.apache.stratos.cli-4.0.0-SNAPSHOT.jar
>> in the source and tried using it but it gives the below error while
>> launching stratos cli.
>>
>>
>>
>> root@octl-vm:/opt/stratos-packs/apache-stratos-cli-4.0.0-SNAPSHOT#
>> ./stratos.sh
>>
>> Username: admin
>>
>> Password: *****
>>
>> javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
>> connection?
>>
>>         at
>> sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:671)
>>
>>         at sun.security.ssl.InputRecord.read(InputRecord.java:504)
>>
>>         at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
>>
>>         at
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
>>
>>         at
>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
>>
>>         at
>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
>>
>>         at
>> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:533)
>>
>>         at
>> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:401)
>>
>>         at
>> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:470)
>>
>>         at
>> org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:65)
>>
>>         at
>> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
>>
>>         at
>> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
>>
>>         at
>> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
>>
>>         at
>> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
>>
>>         at
>> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
>>
>>         at
>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>>
>>         at
>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
>>
>>         at org.apache.stratos.cli.RestClient.doGet(RestClient.java:131)
>>
>>         at
>> org.apache.stratos.cli.RestCommandLineService.login(RestCommandLineService.java:154)
>>
>>         at
>> org.apache.stratos.cli.StratosApplication.login(StratosApplication.java:413)
>>
>>         at
>> org.apache.stratos.cli.StratosApplication.run(StratosApplication.java:361)
>>
>>         at
>> org.apache.stratos.cli.CommandLineApplication.start(CommandLineApplication.java:100)
>>
>>         at
>> org.apache.stratos.cli.CliTool.handleConsoleInputs(CliTool.java:56)
>>
>>         at org.apache.stratos.cli.CliTool.main(CliTool.java:42)
>>
>> Successfully Authenticated.
>>
>>
>>
>>
>>
>> Thanks
>>
>> Anand.S
>>
>>
>>
>>
>>
>>
>> --
>>
>> Imesh Gunaratne
>>
>>
>>
>> Technical Lead, WSO2
>>
>> Committer & PPMC Member, Apache Stratos
>
>
>
>
> --
> --
> Sajith Kariyawasam
> Mobile: +94772269575



-- 
Akila Ravihansa Perera
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 77 64 154 38
Blog: http://ravihansa3000.blogspot.com

Reply via email to