Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Janaka Ranabahu
Hi Supun,

API Manager has multiple components and there are different profiles to
start each component separately. When it comes to a distributed deployment,
only the gateway nodes will be configured in a worker-manager cluster and
we have profiles for those. For other nodes, there is no concept of a
worker profile.

Hence, the doc that IsuruH has shared has all the profiles that are needed
to do a fully distributed(HA) setup.

Thanks,
Janaka

On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:

> Hi,
>
> $subject.
> $ ./bin/wso2server.sh
> JAVA_HOME environment variable is set to /opt/java
> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-
> support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
> Using Java memory options: -Xms256m -Xmx1024m
> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
> runtime worker profile not found
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
> Caused by: java.lang.RuntimeException: worker profile not found
> at org.wso2.carbon.server.Main.main(Main.java:84)
> ... 6 more
>
> thanks,
> --
> Supun Malinga
>



-- 
*Janaka Ranabahu*
Associate Technical Lead, WSO2 Inc.
http://wso2.com


*E-mail: jan...@wso2.com **M: **+94 718370861*

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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Isuru Haththotuwa
On Mon, Aug 22, 2016 at 5:02 PM, Supun Malinga  wrote:

> Just to be clear I'm starting the server with -DworkerNode=true
>
AFAIU it should work then.

@APIM team: any comments on this?

>
> On Mon, Aug 22, 2016 at 5:00 PM, Supun Malinga  wrote:
>
>> So we cannot start as a worker node in default profile.. ?
>>
>> On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> HI Supun,
>>>
>>> These are the supported profiles for APIM 2.0.0 [1].
>>>
>>> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>>>
>>> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:
>>>
 Hi,

 $subject.
 $ ./bin/wso2server.sh
 JAVA_HOME environment variable is set to /opt/java
 CARBON_HOME environment variable is set to
 /home/supun/Builds/git-wso2-support/deployment-patterns/wso2
 am/temp/pattern6/wso2am-2.0.0
 Using Java memory options: -Xms256m -Xmx1024m
 [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
 runtime worker profile not found
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
 at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
 Caused by: java.lang.RuntimeException: worker profile not found
 at org.wso2.carbon.server.Main.main(Main.java:84)
 ... 6 more

 thanks,
 --
 Supun Malinga

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


>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Supun Malinga
>>
>
>
>
> --
> Supun Malinga
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
Just to be clear I'm starting the server with -DworkerNode=true

On Mon, Aug 22, 2016 at 5:00 PM, Supun Malinga  wrote:

> So we cannot start as a worker node in default profile.. ?
>
> On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa 
> wrote:
>
>> HI Supun,
>>
>> These are the supported profiles for APIM 2.0.0 [1].
>>
>> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>>
>> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:
>>
>>> Hi,
>>>
>>> $subject.
>>> $ ./bin/wso2server.sh
>>> JAVA_HOME environment variable is set to /opt/java
>>> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-su
>>> pport/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
>>> Using Java memory options: -Xms256m -Xmx1024m
>>> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
>>> runtime worker profile not found
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>>> Caused by: java.lang.RuntimeException: worker profile not found
>>> at org.wso2.carbon.server.Main.main(Main.java:84)
>>> ... 6 more
>>>
>>> thanks,
>>> --
>>> Supun Malinga
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> Supun Malinga
>



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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
So we cannot start as a worker node in default profile.. ?

On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa  wrote:

> HI Supun,
>
> These are the supported profiles for APIM 2.0.0 [1].
>
> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>
> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:
>
>> Hi,
>>
>> $subject.
>> $ ./bin/wso2server.sh
>> JAVA_HOME environment variable is set to /opt/java
>> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-su
>> pport/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
>> Using Java memory options: -Xms256m -Xmx1024m
>> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
>> runtime worker profile not found
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>> Caused by: java.lang.RuntimeException: worker profile not found
>> at org.wso2.carbon.server.Main.main(Main.java:84)
>> ... 6 more
>>
>> thanks,
>> --
>> Supun Malinga
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Isuru Haththotuwa
HI Supun,

These are the supported profiles for APIM 2.0.0 [1].

[1]. https://docs.wso2.com/display/AM200/Product+Profiles

On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga  wrote:

> Hi,
>
> $subject.
> $ ./bin/wso2server.sh
> JAVA_HOME environment variable is set to /opt/java
> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-
> support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
> Using Java memory options: -Xms256m -Xmx1024m
> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
> runtime worker profile not found
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
> Caused by: java.lang.RuntimeException: worker profile not found
> at org.wso2.carbon.server.Main.main(Main.java:84)
> ... 6 more
>
> thanks,
> --
> Supun Malinga
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
Hi,

$subject.
$ ./bin/wso2server.sh
JAVA_HOME environment variable is set to /opt/java
CARBON_HOME environment variable is set to
/home/supun/Builds/git-wso2-support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
Using Java memory options: -Xms256m -Xmx1024m
[2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
runtime worker profile not found
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
Caused by: java.lang.RuntimeException: worker profile not found
at org.wso2.carbon.server.Main.main(Main.java:84)
... 6 more

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