Re: [Dev] [DEV] [Caramel] Avoid translating a block with handlebars syntax

2014-07-19 Thread Rushmin Fernando
thanks dakshika !!

followed your instructions. backslash worked well with expressions. but
gave errors when there are helpers black like {{ #if }}

In my hbs block there are quite a few {{ }} blocks. so it will be great if
i have a directive to say not to translate a whole block.

HTML escape works only after the translation. so it doesn't fit in.




On Sun, Jul 20, 2014 at 11:22 AM, Dakshika Jayathilaka 
wrote:

> Hi,
>
> You can simply use the double braces with a backslash.
>
> *\{{your content}}*
>
> normally handle bars supports HTML-escapes with *{{{}}} *
>
> Regards,
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
>
> On Sun, Jul 20, 2014 at 5:16 AM, Rushmin Fernando 
> wrote:
>
>> can we $subject ?
>>
>> I need to do use a block of handlebars in front end, so i need caramel
>> engine NOT to translate that certain bock in the jagg controller.
>>
>> whats the smartest way of doing this please ?
>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] using the tag in contextualizing the new option for dec_studio projects

2014-07-19 Thread Melan Nimesh
On Sun, Jul 20, 2014 at 10:46 AM, Awanthika Senarath 
wrote:

> HI
>
> but  extension point "navigatorcontent" does not provide the label we want
> in to the projectrightclick->new-> options does it? we have to use the
> extension point newWizard in order to get it under the new options on
> project right click in project explorer.
>

Yes, you have to define your wizard configurations under newWizard
extension-point, then you can refer it inside navigatorcontent as a
commonWizard, under that you can use enablement tag. for a example if you
right click on a JAX-RS project on DevS, there is a option 'JAX-RS service
class'. Currently DevS list all possible project type under new option of
project's context menu, It was a design decision to simulate nested project
structure.


>
> regards
>
>
> On Sat, Jul 19, 2014 at 9:56 PM, Awanthika Senarath 
> wrote:
>
>> thank you, i was trying the enablement tag with the newWizard and it
>> didnt work either.. will try it with navigatorcontent and let you know!
>>
>> thanks and regards
>>
>> awanthika
>>
>>
>> On Sat, Jul 19, 2014 at 12:16 AM, Melan Nimesh  wrote:
>>
>>> Hi,
>>>
>>>
>>> On Fri, Jul 18, 2014 at 10:57 AM, Awanthika Senarath >> > wrote:
>>>
 Hi,

 Im trying to contextualize the eclipse new project option in

  project (in projectExplorer) -> rightclick -> new -> wso2projects
  (CEP project/ proxy service etc.)

  to make it more meaningful.

 I have been trying with the  tag inside the
   filtering by project nature
 in plugin.xml with no success.

>>>
>>> AFAIK, org.eclipse.ui.newWizards extension-point does not supports
>>> visibleWhen or activeWhen attributes. you can use
>>> org.eclipse.ui.navigator.navigatorContent extension point to achieve your
>>> requirements I guess. we are using it in many places inside DevS. please
>>> refer org.wso2.developerstudio.eclipse.artifact.axis2 component's
>>> plugin.xml [1] for a example.
>>>
>>> e.g.
>>>
>>>  
>>> >>
>>> menuGroupId="1org.wso2.developerstudio.eclipse.artifact.webservice1"
>>>
>>> wizardId="org.wso2.developerstudio.eclipse.artifact.axis2.ui.wizard">
>>> 
>>> 
>>> >> type="org.eclipse.core.resources.IProject">
>>> >> property="org.eclipse.core.resources.projectNature"
>>>
>>> value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
>>> 
>>> >> type="org.eclipse.jdt.core.IPackageFragment">
>>> >> property="org.wso2.developerstudio.projectNature"
>>>
>>> value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> Thanks,
>>> Melan
>>>
>>> [1]
>>> https://github.com/wso2-dev/developer-studio/blob/master/app-server/org.wso2.developerstudio.eclipse.artifact.axis2/plugin.xml
>>>
>>>
>>>

 is there anyone who has previous experience in using this tag? OR any
 other way of getting it done? I also tried with the property-tester in
 eclipse.

 thanks and regards
 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Melan Nimesh*
>>> Software Engineer;
>>> WSO2 Inc.;  http://wso2.org
>>> E-mail: melan AT wso2.com;
>>> Mobile: +94 77 631 6759
>>>
>>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
*Melan Nimesh*
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: melan AT wso2.com;
Mobile: +94 77 631 6759
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] - Monitoring HTTPS Communication between secure client and secure proxy service in ESB

2014-07-19 Thread Dakshika Jayathilaka
Try http://www.tcpcatcher.org/

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911


On Sun, Jul 20, 2014 at 2:28 AM, Rushmin Fernando  wrote:

> give [1] a try. it supports SSL proxying. I have used it to monitor HTTPS
> between browser and server.
>
>
> [1] - http://www.charlesproxy.com/
>
>
> On Sun, Jul 20, 2014 at 2:06 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> Is there a way to achieve the $subject?
>>
>> I've recorded the communication using wireshark and tried to decrypt it
>> using the private key extracted from the keystore. But when "Follow SSL
>> Stream" is selected in Wireshark the stream content is shown blank.
>>
>> Is this because of the Cipher suit being used?[1]
>>
>> Wireshark SSL Protocol RSA Key list
>>
>> *127.0.1.1, 8243, http, keystorefile.p12, wso2carbon*
>>
>> SSL debug file (attached) shows no content to indicate that the private
>> key was not loaded.
>>
>> [1] -
>> http://stackoverflow.com/questions/15814999/decrypting-https-traffic-in-wireshark-not-working-and-not-sure-why
>>
>>
>> --
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [Caramel] Avoid translating a block with handlebars syntax

2014-07-19 Thread Dakshika Jayathilaka
Hi,

You can simply use the double braces with a backslash.

*\{{your content}}*

normally handle bars supports HTML-escapes with *{{{}}} *

Regards,

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911


On Sun, Jul 20, 2014 at 5:16 AM, Rushmin Fernando  wrote:

> can we $subject ?
>
> I need to do use a block of handlebars in front end, so i need caramel
> engine NOT to translate that certain bock in the jagg controller.
>
> whats the smartest way of doing this please ?
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [Caramel] Avoid translating a block with handlebars syntax

2014-07-19 Thread Rushmin Fernando
can we $subject ?

I need to do use a block of handlebars in front end, so i need caramel
engine NOT to translate that certain bock in the jagg controller.

whats the smartest way of doing this please ?



-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] using the tag in contextualizing the new option for dec_studio projects

2014-07-19 Thread Awanthika Senarath
HI

but  extension point "navigatorcontent" does not provide the label we want
in to the projectrightclick->new-> options does it? we have to use the
extension point newWizard in order to get it under the new options on
project right click in project explorer.

regards


On Sat, Jul 19, 2014 at 9:56 PM, Awanthika Senarath 
wrote:

> thank you, i was trying the enablement tag with the newWizard and it didnt
> work either.. will try it with navigatorcontent and let you know!
>
> thanks and regards
>
> awanthika
>
>
> On Sat, Jul 19, 2014 at 12:16 AM, Melan Nimesh  wrote:
>
>> Hi,
>>
>>
>> On Fri, Jul 18, 2014 at 10:57 AM, Awanthika Senarath 
>> wrote:
>>
>>> Hi,
>>>
>>> Im trying to contextualize the eclipse new project option in
>>>
>>>  project (in projectExplorer) -> rightclick -> new -> wso2projects  (CEP
>>> project/ proxy service etc.)
>>>
>>>  to make it more meaningful.
>>>
>>> I have been trying with the  tag inside the
>>>   filtering by project nature
>>> in plugin.xml with no success.
>>>
>>
>> AFAIK, org.eclipse.ui.newWizards extension-point does not supports
>> visibleWhen or activeWhen attributes. you can use
>> org.eclipse.ui.navigator.navigatorContent extension point to achieve your
>> requirements I guess. we are using it in many places inside DevS. please
>> refer org.wso2.developerstudio.eclipse.artifact.axis2 component's
>> plugin.xml [1] for a example.
>>
>> e.g.
>>
>>  
>> >
>> menuGroupId="1org.wso2.developerstudio.eclipse.artifact.webservice1"
>>
>> wizardId="org.wso2.developerstudio.eclipse.artifact.axis2.ui.wizard">
>> 
>> 
>> 
>> > property="org.eclipse.core.resources.projectNature"
>>
>> value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
>> 
>> > type="org.eclipse.jdt.core.IPackageFragment">
>> > property="org.wso2.developerstudio.projectNature"
>>
>> value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
>> 
>> 
>> 
>> 
>> 
>>
>> Thanks,
>> Melan
>>
>> [1]
>> https://github.com/wso2-dev/developer-studio/blob/master/app-server/org.wso2.developerstudio.eclipse.artifact.axis2/plugin.xml
>>
>>
>>
>>>
>>> is there anyone who has previous experience in using this tag? OR any
>>> other way of getting it done? I also tried with the property-tester in
>>> eclipse.
>>>
>>> thanks and regards
>>> --
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Melan Nimesh*
>> Software Engineer;
>> WSO2 Inc.;  http://wso2.org
>> E-mail: melan AT wso2.com;
>> Mobile: +94 77 631 6759
>>
>>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Nested categories released in chunk-11 are not deployed in nexus

2014-07-19 Thread Chanika Geeganage
Hi,

I'm getting the following error when building the p2-repo of 4.2.11 as it
is failed to find nested categories released in chunk 11.

[ERROR] Error occured when processing the Feature Artifact:
org.wso2.identity:org.wso2.is.authorization.nested.category.feature:5.0.0
org.apache.maven.plugin.MojoExecutionException: Error occured when
processing the Feature Artifact:
org.wso2.identity:org.wso2.is.authorization.nested.category.feature:5.0.0
at
org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
at
org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
at
org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
at
org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43)
at
org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
... 23 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Could not find artifact
org.wso2.identity:org.wso2.is.authorization.nested.category.feature:zip:5.0.0
in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.wso2.identity
-DartifactId=org.wso2.is.authorization.nested.category.feature
-Dversion=5.0.0 -Dpackaging=zip -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.wso2.identity
-DartifactId=org.wso2.is.authorization.nested.category.feature
-Dversion=5.0.0 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]



org.wso2.identity:org.wso2.is.authorization.nested.category.feature:zip:5.0.0

from the specified remote repositories:
  wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
  central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
at
org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
... 24 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
Could not find artifact
org.wso2.identity:org.wso2.is.authorization.nested.category.feature:zip:5.0.0
in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
at
org.apache.ma

Re: [Dev] [DEV] - Monitoring HTTPS Communication between secure client and secure proxy service in ESB

2014-07-19 Thread Rushmin Fernando
give [1] a try. it supports SSL proxying. I have used it to monitor HTTPS
between browser and server.


[1] - http://www.charlesproxy.com/


On Sun, Jul 20, 2014 at 2:06 AM, Chamila De Alwis  wrote:

> Hi,
>
> Is there a way to achieve the $subject?
>
> I've recorded the communication using wireshark and tried to decrypt it
> using the private key extracted from the keystore. But when "Follow SSL
> Stream" is selected in Wireshark the stream content is shown blank.
>
> Is this because of the Cipher suit being used?[1]
>
> Wireshark SSL Protocol RSA Key list
>
> *127.0.1.1, 8243, http, keystorefile.p12, wso2carbon*
>
> SSL debug file (attached) shows no content to indicate that the private
> key was not loaded.
>
> [1] -
> http://stackoverflow.com/questions/15814999/decrypting-https-traffic-in-wireshark-not-working-and-not-sure-why
>
>
> --
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] - Monitoring HTTPS Communication between secure client and secure proxy service in ESB

2014-07-19 Thread Chamila De Alwis
Hi,

Is there a way to achieve the $subject?

I've recorded the communication using wireshark and tried to decrypt it
using the private key extracted from the keystore. But when "Follow SSL
Stream" is selected in Wireshark the stream content is shown blank.

Is this because of the Cipher suit being used?[1]

Wireshark SSL Protocol RSA Key list

*127.0.1.1, 8243, http, keystorefile.p12, wso2carbon*

SSL debug file (attached) shows no content to indicate that the private key
was not loaded.

[1] -
http://stackoverflow.com/questions/15814999/decrypting-https-traffic-in-wireshark-not-working-and-not-sure-why


-- 

Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
Wireshark SSL debug log 

ssl_association_remove removing TCP 8243 - http handle 0x2b99160
1692 bytes read
PKCS#12 imported
Bag 0/0: PKCS#8 Encrypted key
Private key imported: KeyID d9:3a:47:62:51:b7:3a:ed:89:5d:55:91:20:cc:17:c1:...
ssl_load_key: swapping p and q parameters and recomputing u
Bag 1/0: Encrypted
Bag 1/0 decrypted: Certificate
Certificate imported: localhost <>, KeyID 
d93a476251b73aed895d559120cc17c167f8f837
ssl_init IPv4 addr '127.0.1.1' (127.0.1.1) port '8243' filename 
'/home/chamilad/dev/wso2esb-4.8.1/wso2.p12' password(only for p12 file) 
'wso2carbon'
ssl_init private key file /home/chamilad/dev/wso2esb-4.8.1/wso2.p12 
successfully loaded.
association_add TCP port 8243 protocol http handle 0x2b99160

dissect_ssl enter frame #7 (first time)
ssl_session_init: initializing ptr 0x7f6199880e10 size 688
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 168
dissect_ssl3_record: content_type 22 Handshake
decrypt_ssl3_record: app_data len 163, ssl state 0x00
association_find: TCP port 34841 found (nil)
packet_from_server: is from server - FALSE
decrypt_ssl3_record: using client decoder
decrypt_ssl3_record: no decoder available
dissect_ssl3_handshake iteration 1 type 1 offset 5 length 159 bytes, remaining 
168 
packet_from_server: is from server - FALSE
ssl_find_private_key server 127.0.1.1:8243
dissect_ssl3_hnd_hello_common found CLIENT RANDOM -> state 0x01

dissect_ssl enter frame #9 (first time)
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 872
dissect_ssl3_record found version 0x0301(TLS 1.0) -> state 0x11
dissect_ssl3_record: content_type 22 Handshake
decrypt_ssl3_record: app_data len 867, ssl state 0x11
packet_from_server: is from server - TRUE
decrypt_ssl3_record: using server decoder
decrypt_ssl3_record: no decoder available
dissect_ssl3_handshake iteration 1 type 2 offset 5 length 77 bytes, remaining 
872 
dissect_ssl3_hnd_hello_common found SERVER RANDOM -> state 0x13
dissect_ssl3_hnd_srv_hello can't find cipher suite 0xC014
dissect_ssl3_handshake iteration 0 type 11 offset 86 length 575 bytes, 
remaining 872 
dissect_ssl3_handshake iteration 0 type 12 offset 665 length 199 bytes, 
remaining 872 
dissect_ssl3_handshake iteration 0 type 14 offset 868 length 0 bytes, remaining 
872 

dissect_ssl enter frame #11 (first time)
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 75
dissect_ssl3_record: content_type 22 Handshake
decrypt_ssl3_record: app_data len 70, ssl state 0x13
packet_from_server: is from server - FALSE
decrypt_ssl3_record: using client decoder
decrypt_ssl3_record: no decoder available
dissect_ssl3_handshake iteration 1 type 16 offset 5 length 66 bytes, remaining 
75 
ssl_decrypt_pre_master_secret key exchange 0 different from KEX_RSA (16)
dissect_ssl3_handshake can't decrypt pre master secret

dissect_ssl enter frame #12 (first time)
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 6
dissect_ssl3_record: content_type 20 Change Cipher Spec
dissect_ssl3_change_cipher_spec
packet_from_server: is from server - FALSE
ssl_change_cipher CLIENT

dissect_ssl enter frame #14 (first time)
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 53
dissect_ssl3_record: content_type 22 Handshake
decrypt_ssl3_record: app_data len 48, ssl state 0x13
packet_from_server: is from server - FALSE
decrypt_ssl3_record: using client decoder
decrypt_ssl3_record: no decoder available
dissect_ssl3_handshake iteration 1 type 36 offset 5 length 7394029 bytes, 
remaining 53 

dissect_ssl enter frame #15 (first time)
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 6
dissect_ssl3_record: content_type 20 Change Cipher Spec
dissect_ssl3_change_cipher_spec
packet_from_server: is from server - TRUE
ssl_change_cipher SERVER

dissect_ssl enter frame #16 (first time)
  conversation = 0x7f61998806a0, ssl_session = 0x7f6199880e10
  record: offset = 0, reported_length_remaining = 53
dissect_ssl3_record: content_type 22 Handshake
decrypt_ssl3_record

[Dev] [dev] Altering SecureServiceClient loaded for axis2.xml adding[text/html] content type

2014-07-19 Thread Dushan Abeyruwan
Hi
Running  ProxyServiceSecurityTestCase, How can I inject customized
axis2.xml to SecureServiceClient  is this configurable?

https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/products/esb/4.8.1/modules/integration/tests-service/src/test/java/org/wso2/carbon/esb/proxyservice/test/secureProxy

Cheers,
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] using the tag in contextualizing the new option for dec_studio projects

2014-07-19 Thread Awanthika Senarath
thank you, i was trying the enablement tag with the newWizard and it didnt
work either.. will try it with navigatorcontent and let you know!

thanks and regards

awanthika


On Sat, Jul 19, 2014 at 12:16 AM, Melan Nimesh  wrote:

> Hi,
>
>
> On Fri, Jul 18, 2014 at 10:57 AM, Awanthika Senarath 
> wrote:
>
>> Hi,
>>
>> Im trying to contextualize the eclipse new project option in
>>
>>  project (in projectExplorer) -> rightclick -> new -> wso2projects  (CEP
>> project/ proxy service etc.)
>>
>>  to make it more meaningful.
>>
>> I have been trying with the  tag inside the
>>   filtering by project nature
>> in plugin.xml with no success.
>>
>
> AFAIK, org.eclipse.ui.newWizards extension-point does not supports
> visibleWhen or activeWhen attributes. you can use
> org.eclipse.ui.navigator.navigatorContent extension point to achieve your
> requirements I guess. we are using it in many places inside DevS. please
> refer org.wso2.developerstudio.eclipse.artifact.axis2 component's
> plugin.xml [1] for a example.
>
> e.g.
>
>  
> 
> menuGroupId="1org.wso2.developerstudio.eclipse.artifact.webservice1"
>
> wizardId="org.wso2.developerstudio.eclipse.artifact.axis2.ui.wizard">
> 
> 
> 
>  property="org.eclipse.core.resources.projectNature"
>
> value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
> 
>  type="org.eclipse.jdt.core.IPackageFragment">
>  property="org.wso2.developerstudio.projectNature"
>
> value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
> 
> 
> 
> 
> 
>
> Thanks,
> Melan
>
> [1]
> https://github.com/wso2-dev/developer-studio/blob/master/app-server/org.wso2.developerstudio.eclipse.artifact.axis2/plugin.xml
>
>
>
>>
>> is there anyone who has previous experience in using this tag? OR any
>> other way of getting it done? I also tried with the property-tester in
>> eclipse.
>>
>> thanks and regards
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Melan Nimesh*
> Software Engineer;
> WSO2 Inc.;  http://wso2.org
> E-mail: melan AT wso2.com;
> Mobile: +94 77 631 6759
>
>


-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot Install ES feature when building with greg-changes-master branch in ES

2014-07-19 Thread Sameera Medagammaddegedara
Hi Everyone,

@SameeraM : Further in a fresh ES 1.2.0-SNAPSHOT pack I could add a service
> from the management console. But after that I can't add a service from the
> publisher service UI. When I clicked the Add Service button, the add
> service view is not displayed and following error is shown.
>
> "HTTP Status 500 - org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot read property
> overview_pr "overview_provider" from undefined (asset#15)
> (/publisher/controllers/ref_assets_router.jag#54)"


Issue has been fixed. You can view the add asset form (which has table
seperation changes) , however I have disabled the client side creation
logic till I move everything to the new model. Please get a new pull to
view the changes.

Thank You,
Sameera



On Fri, Jul 18, 2014 at 3:20 PM, Ruchira Wageesha  wrote:

> Done
>
>
> On Fri, Jul 18, 2014 at 3:11 PM, Ayesha Dissanayaka 
> wrote:
>
>> Hi,
>>
>> Merge pull request from [01] to "greg-changes-master". It will resolve
>> the build failure.
>>
>> [01] https://github.com/wso2/enterprise-store/pull/116
>>
>>
>>
>> On Fri, Jul 18, 2014 at 2:23 PM, Pulasthi Supun 
>> wrote:
>>
>>> Hi ,
>>>
>>> We cannot build the Greg pack when we use the "greg-changes-master"
>>> branch of ES. The product can be built without any errors with the 1.2.0
>>> branch. But we cannot use the 1.2.0 branch currently because  the fixes to
>>> stop the ES feature from overriding the RXT files are not merged to this
>>> branch. Can you please fix the "greg-changes-master" branch or update the
>>> 1.2.0 branch with the fixes. This is blocking the progress of the GReg
>>> 5.0.0 since we are still unable to properly install and use the store
>>> features.
>>>
>>> Regards,
>>> Pulasthi
>>>
>>> --
>>> --
>>> Pulasthi Supun
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: pulas...@wso2.com
>>> Mobile: +94 (71) 9258281
>>> Blog : http://pulasthisupun.blogspot.com/
>>> Git hub profile: https://github.com/pulasthi
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> 
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
>
> *Ruchira Wageesha**Associate Technical Lead*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>
> *email: ruch...@wso2.com ,   blog:
> ruchirawageesha.blogspot.com ,
> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>



-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting up SAML2 SSO for App-M

2014-07-19 Thread Senaka Fernando
Ruwan,

Hi again, figured it out, :). It was obviously silly for me to use the ACS
URL, since this was actually an application not a carbon server, :). So I
used the webapp URL instead and it all works like a charm. Great piece of
work.

Thanks,
Senaka.


On Sat, Jul 19, 2014 at 11:53 AM, Senaka Fernando  wrote:

> Hi Ruwan,
>
> I bumped into a small problem when trying this out. May be I have made an
> obvious mistake somewhere. So, this is what I did.
>
> 1. I created the webapp using App-M, and enabled SAML2 SSO.
> 2. Then published it to Store and Subscribed to it.
> 3. I then started IS 5.0.0 with Offset 1 (I figured that the in-built
> SAML2 SSO in App-M is not working as yet and it was meant to setup external
> IS for the moment).
> 4. In IS, I created an SP using the application name as the relying party
> and set the ACS URL to be that of App-M.
> 5. Now, when I tryout the application it in fact authenticates fine with
> IS. But, it does not redirect back to the App-M ACS.
>
> Can you tell me whether I'm missing something? I have pasted the SAML
> request here FYR.
>
>
> SAMLRequest=PHNhbWxwOkF1dGhuUmVxdWVzdCB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiAgIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZVVSTD0iaHR0cDovLzE5Mi4xNjguMTE5LjE6ODI4MC9leGFtcGxlLzEuMC4wLyIgICBEZXN0aW5hdGlvbj0iaHR0cHM6Ly9sb2NhbGhvc3Q6OTQ0NC9zYW1sc3NvIiAgIEZvcmNlQXV0aG49ImZhbHNlIiAgIElEPSIwIiAgIElzUGFzc2l2ZT0iZmFsc2UiICAgSXNzdWVJbnN0YW50PSIyMDE0LTAyLTEwVDEzOjU5OjI1Ljc3MVoiICAgUHJvdG9jb2xCaW5kaW5nPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YmluZGluZ3M6SFRUUC1QT1NUIiAgIFZlcnNpb249IjIuMCI%2BPHNhbWxwOklzc3VlciB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFzc2VydGlvbiI%2BRXhhbXBsZTwvc2FtbHA6SXNzdWVyPjxzYW1sMnA6TmFtZUlEUG9saWN5IHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiAgIEFsbG93Q3JlYXRlPSJ0cnVlIiAgIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6cGVyc2lzdGVudCIgICBTUE5hbWVRdWFsaWZpZXI9Iklzc3VlciIvPjxzYW1sMnA6UmVxdWVzdGVkQXV0aG5Db250ZXh0IHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiAgIENvbXBhcmlzb249ImV4YWN0Ij48c2FtbDpBdXRobkNvbnRleHRDbGFzc1JlZiB4bWxuczpzYW1sPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIj4gICB1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydDwvc2FtbDpBdXRobkNvbnRleHRDbGFzc1JlZj48L3NhbWwycDpSZXF1ZXN0ZWRBdXRobkNvbnRleHQ%2BPC9zYW1scDpBdXRoblJlcXVlc3Q%2B&relyingParty=Example&sessionDataKey=2bceb0b2-5e59-4f61-8e14-e155389d5772&type=samlsso&commonAuthCallerPath=%2Fsamlsso&forceAuth=false&passiveAuth=false&authenticators=BasicAuthenticator:LOCAL
>
> Thanks,
> Senaka.
>
> --
>
>
> *[image: http://wso2.com]  Senaka Fernando*
> Software Architect; WSO2 Inc.; http://wso2.com
>
>
>
> * Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P: +1
> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +44 782 741 1966 <%2B44%20782%20741%201966> Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise . Middleware
>



-- 


*[image: http://wso2.com]  Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



* Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388; ext: 51736*;


*M: +44 782 741 1966 Linked-In: http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Setting up SAML2 SSO for App-M

2014-07-19 Thread Senaka Fernando
Hi Ruwan,

I bumped into a small problem when trying this out. May be I have made an
obvious mistake somewhere. So, this is what I did.

1. I created the webapp using App-M, and enabled SAML2 SSO.
2. Then published it to Store and Subscribed to it.
3. I then started IS 5.0.0 with Offset 1 (I figured that the in-built SAML2
SSO in App-M is not working as yet and it was meant to setup external IS
for the moment).
4. In IS, I created an SP using the application name as the relying party
and set the ACS URL to be that of App-M.
5. Now, when I tryout the application it in fact authenticates fine with
IS. But, it does not redirect back to the App-M ACS.

Can you tell me whether I'm missing something? I have pasted the SAML
request here FYR.

SAMLRequest=PHNhbWxwOkF1dGhuUmVxdWVzdCB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiAgIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZVVSTD0iaHR0cDovLzE5Mi4xNjguMTE5LjE6ODI4MC9leGFtcGxlLzEuMC4wLyIgICBEZXN0aW5hdGlvbj0iaHR0cHM6Ly9sb2NhbGhvc3Q6OTQ0NC9zYW1sc3NvIiAgIEZvcmNlQXV0aG49ImZhbHNlIiAgIElEPSIwIiAgIElzUGFzc2l2ZT0iZmFsc2UiICAgSXNzdWVJbnN0YW50PSIyMDE0LTAyLTEwVDEzOjU5OjI1Ljc3MVoiICAgUHJvdG9jb2xCaW5kaW5nPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YmluZGluZ3M6SFRUUC1QT1NUIiAgIFZlcnNpb249IjIuMCI%2BPHNhbWxwOklzc3VlciB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFzc2VydGlvbiI%2BRXhhbXBsZTwvc2FtbHA6SXNzdWVyPjxzYW1sMnA6TmFtZUlEUG9saWN5IHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiAgIEFsbG93Q3JlYXRlPSJ0cnVlIiAgIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6cGVyc2lzdGVudCIgICBTUE5hbWVRdWFsaWZpZXI9Iklzc3VlciIvPjxzYW1sMnA6UmVxdWVzdGVkQXV0aG5Db250ZXh0IHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiAgIENvbXBhcmlzb249ImV4YWN0Ij48c2FtbDpBdXRobkNvbnRleHRDbGFzc1JlZiB4bWxuczpzYW1sPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIj4gICB1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydDwvc2FtbDpBdXRobkNvbnRleHRDbGFzc1JlZj48L3NhbWwycDpSZXF1ZXN0ZWRBdXRobkNvbnRleHQ%2BPC9zYW1scDpBdXRoblJlcXVlc3Q%2B&relyingParty=Example&sessionDataKey=2bceb0b2-5e59-4f61-8e14-e155389d5772&type=samlsso&commonAuthCallerPath=%2Fsamlsso&forceAuth=false&passiveAuth=false&authenticators=BasicAuthenticator:LOCAL

Thanks,
Senaka.

-- 


*[image: http://wso2.com]  Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



* Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388; ext: 51736*;


*M: +44 782 741 1966 Linked-In: http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2server.sh script does not stop the server when ssh terminates

2014-07-19 Thread chris snow
Hi Nipuni, I've updated the JIRA ticket with some more information...

On Sat, Jul 19, 2014 at 10:28 AM, Nipuni Perera  wrote:
> Hi,
>
> I have tried -c option and followed the jira first and got following
> results. According to[1] -c option defines the cipher type.
>
> When running wso2server without -E option I got the following error,
>
> Error: JAVA_HOME is not defined correctly.
> CARBON cannot execute java
>
> When executing the ssh -c "./wso2server.sh start" command, I got the
> following error.
>
> Unknown cipher type './wso2server.sh start'
>
> @shameera
> I have updated the jira.
>
> @Isuru,
> According to my understanding, the jira is about executing wso2server over
> ssh as a background process. I am not sure about the commands in the jira. I
> tried to reproduce the issue and I have updated the jira with my findings.
> Following the steps I have mentioned in the first email I could execute
> wso2server.sh over ssh as a nohup process.
> [1] http://unixhelp.ed.ac.uk/CGI/man-cgi?ssh+1
>
> Thanks,
> Nipuni
>
>
> On Sat, Jul 19, 2014 at 2:32 PM, Isuru Perera  wrote:
>>
>> stratos.sh is just a renamed version of wso2server.sh and it is used in
>> Apache Stratos.
>>
>> Nipuni, it seems you have not followed what is mentioned in the JIRA.
>> Please double check.
>>
>> Thanks!
>>
>>
>> On Fri, Jul 18, 2014 at 11:28 PM, Shameera Rathnayaka 
>> wrote:
>>>
>>> According to the JIRA, you should use -c not -E , did you test with that
>>> option as well? , BTW wso2servers.sh is working fine with nohup not sure
>>> about stratos.sh . you can update JIRA with your finding.
>>>
>>> @Isura , For that you need to start the server as background process , if
>>> not server process terminate with user logging out.
>>>
>>> Thanks,
>>> Shameera.
>>>
>>>
>>> On Sat, Jul 19, 2014 at 11:33 AM, Isura Karunaratne 
>>> wrote:

 Hi Nipuni,

 AFAIK sever process will not terminate once you terminate the ssh
 process . You have to kill the server process manually. User "ps -ef|grep
 carbon" to identity the process id and kill it using "kill -9 id" command.

 Thanks
 Isura


 On Sat, Jul 19, 2014 at 10:10 AM, Nipuni Perera  wrote:
>
> Hi,
>
> I am working on jira issue[1]. I have tested this with a remote BAM
> server and couldn't reproduce the issue. If wso2server.sh has been 
> executed
> over ssh as a nohup process, server does not stop after ssh process
> terminates.
>
> I have followed the steps below:
>
> start ssh and connect to remote serrver : ssh -i 
>  -p 
> start wso2server as a background process :  sudo -E ./wso2server.sh
> start (this gives an error "ps: write error: Bad file descriptor" but 
> server
> starts successfully
> exit from the remote server and stop ssh
> I can access server after ssh is stopped.
>
> I have tested it starting wso2server as a nohup process : nohup sudo -E
> ./wso2server.sh (This also works after ssh terminates)
>
> [1] https://wso2.org/jira/browse/CARBON-14813
>
> Thanks,
> Nipuni
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Mobile: +94 (71) 5626680
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev

>>>
>>>
>>>
>>> --
>>> Software Engineer - WSO2 Inc.
>>> email: shameera AT wso2.com , shameera AT apache.org
>>> phone:  +9471 922 1454
>>>
>>> Linked in : http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>>> Twitter : https://twitter.com/Shameera_R
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Mobile: +94 (71) 5626680
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Start-up Delay with App-M Snapshot

2014-07-19 Thread Senaka Fernando
Hi Ruwan,

Yes, I downloaded and checked. This is fixed in the latest nightly build.

Thanks,
Senaka.

On Sat, Jul 19, 2014 at 3:25 AM, Ruwan Yatawara  wrote:

> Hi Senaka,
>
> We noticed this problem with earlier nightly builds. However I did not
> notice such delays in the pack I shared yesterday (@ [1]).
>
> I believe this might be partly due to all the kernel patches given so far
> not being added to the pack (we have only till about patch0004 I think).
> Will investigate further on this.
>
> Thanks,
> Ruwan
>
> - sent from my mobile
>
> [1]  -
> http://builder1.us1.wso2.org/~appm/18-07-2014/wso2appmanager-1.0.0.zip
> On 19 Jul 2014 04:27, "Senaka Fernando"  wrote:
>
>> Hi Ruwan,
>>
>> Is this a temporary thing? I noticed that the server waits for sometime
>> before starting.
>>
>> Thanks,
>> Senaka.
>>
>> --
>>
>>
>> *[image: http://wso2.com] Senaka Fernando*
>> Software Architect; WSO2 Inc.; http://wso2.com
>>
>>
>>
>> * Member; Apache Software Foundation; http://apache.org
>> E-mail: senaka AT wso2.com **P: +1
>> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>
>>
>> *M: +44 782 741 1966 <%2B44%20782%20741%201966> Linked-In:
>> http://linkedin.com/in/senakafernando
>> *Lean . Enterprise . Middleware
>>
>


-- 


*[image: http://wso2.com]  Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



* Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388 <%2B1%20408%20754%207388>; ext: 51736*;


*M: +44 782 741 1966 <%2B44%20782%20741%201966> Linked-In:
http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2server.sh script does not stop the server when ssh terminates

2014-07-19 Thread Nipuni Perera
Hi,

I have tried -c option and followed the jira first and got following
results. According to[1] -c option defines the cipher type.

   - When running wso2server without -E option I got the following error,

Error: JAVA_HOME is not defined correctly.
CARBON cannot execute java

   - When executing the ssh -c "./wso2server.sh start" command, I got the
   following error.

Unknown cipher type './wso2server.sh start'
@shameera
I have updated the jira.

@Isuru,
According to my understanding, the jira is about executing wso2server over
ssh as a background process. I am not sure about the commands in the jira.
I tried to reproduce the issue and I have updated the jira with my
findings. Following the steps I have mentioned in the first email I could
execute wso2server.sh over ssh as a nohup process.
[1] http://unixhelp.ed.ac.uk/CGI/man-cgi?ssh+1

Thanks,
Nipuni


On Sat, Jul 19, 2014 at 2:32 PM, Isuru Perera  wrote:

> stratos.sh is just a renamed version of wso2server.sh and it is used in
> Apache Stratos.
>
> Nipuni, it seems you have not followed what is mentioned in the JIRA.
> Please double check.
>
> Thanks!
>
>
> On Fri, Jul 18, 2014 at 11:28 PM, Shameera Rathnayaka 
> wrote:
>
>> According to the JIRA, you should use -c not -E , did you test with that
>> option as well? , BTW wso2servers.sh is working fine with nohup not sure
>> about stratos.sh . you can update JIRA with your finding.
>>
>> @Isura , For that you need to start the server as background process , if
>> not server process terminate with user logging out.
>>
>> Thanks,
>> Shameera.
>>
>>
>> On Sat, Jul 19, 2014 at 11:33 AM, Isura Karunaratne 
>> wrote:
>>
>>> Hi Nipuni,
>>>
>>> AFAIK sever process will not terminate once you terminate the ssh
>>> process . You have to kill the server process manually. User "ps -ef|grep
>>> carbon" to identity the process id and kill it using "kill -9 id" command.
>>>
>>> Thanks
>>> Isura
>>>
>>>
>>> On Sat, Jul 19, 2014 at 10:10 AM, Nipuni Perera  wrote:
>>>
 Hi,

 I am working on jira issue[1]. I have tested this with a remote BAM
 server and couldn't reproduce the issue. If wso2server.sh has been executed
 over ssh as a nohup process, server does not stop after ssh process
 terminates.

 I have followed the steps below:

1. start ssh and connect to remote serrver : ssh -i 
 -p 
2. start wso2server as a background process :  sudo -E
./wso2server.sh start (this gives an error "ps: write error: Bad
file descriptor" but server starts successfully
3. exit from the remote server and stop ssh
4. I can access server after ssh is stopped.

 I have tested it starting wso2server as a nohup process : nohup sudo
 -E ./wso2server.sh (This also works after ssh terminates)

 [1] https://wso2.org/jira/browse/CARBON-14813
 Thanks,
 Nipuni
 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
  


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Isura Dilhara Karunaratne
>>> Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Software Engineer - WSO2 Inc.*
>> *email: shameera AT wso2.com  , shameera AT apache.org
>> *
>> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>>
>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>> *Twitter : *https://twitter.com/Shameera_R
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2server.sh script does not stop the server when ssh terminates

2014-07-19 Thread Isuru Perera
stratos.sh is just a renamed version of wso2server.sh and it is used in
Apache Stratos.

Nipuni, it seems you have not followed what is mentioned in the JIRA.
Please double check.

Thanks!


On Fri, Jul 18, 2014 at 11:28 PM, Shameera Rathnayaka 
wrote:

> According to the JIRA, you should use -c not -E , did you test with that
> option as well? , BTW wso2servers.sh is working fine with nohup not sure
> about stratos.sh . you can update JIRA with your finding.
>
> @Isura , For that you need to start the server as background process , if
> not server process terminate with user logging out.
>
> Thanks,
> Shameera.
>
>
> On Sat, Jul 19, 2014 at 11:33 AM, Isura Karunaratne 
> wrote:
>
>> Hi Nipuni,
>>
>> AFAIK sever process will not terminate once you terminate the ssh
>> process . You have to kill the server process manually. User "ps -ef|grep
>> carbon" to identity the process id and kill it using "kill -9 id" command.
>>
>> Thanks
>> Isura
>>
>>
>> On Sat, Jul 19, 2014 at 10:10 AM, Nipuni Perera  wrote:
>>
>>> Hi,
>>>
>>> I am working on jira issue[1]. I have tested this with a remote BAM
>>> server and couldn't reproduce the issue. If wso2server.sh has been executed
>>> over ssh as a nohup process, server does not stop after ssh process
>>> terminates.
>>>
>>> I have followed the steps below:
>>>
>>>1. start ssh and connect to remote serrver : ssh -i 
>>> -p 
>>>2. start wso2server as a background process :  sudo -E
>>>./wso2server.sh start (this gives an error "ps: write error: Bad
>>>file descriptor" but server starts successfully
>>>3. exit from the remote server and stop ssh
>>>4. I can access server after ssh is stopped.
>>>
>>> I have tested it starting wso2server as a nohup process : nohup sudo -E
>>> ./wso2server.sh (This also works after ssh terminates)
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-14813
>>> Thanks,
>>> Nipuni
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: nip...@wso2.com
>>> Git hub profile: https://github.com/nipuni
>>> Mobile: +94 (71) 5626680
>>>  
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Software Engineer - WSO2 Inc.*
> *email: shameera AT wso2.com  , shameera AT apache.org
> *
> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>
> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
> *Twitter : *https://twitter.com/Shameera_R
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev