Re: [Dev] Newly created API does not appear in the API manager with the pre-packaged Identity Server as a Key Manager

2017-11-08 Thread Thomas LEGRAND
Hello,

Never mind. I "fixed" the problem by reconfiguring from scratch my API
manager and only my API manager with the following documentation [1]

Regards,

Thomas

[1]
https://docs.wso2.com/display/AM210/Configuring+WSO2+Identity+Server+as+a+Key+Manager#ConfiguringWSO2IdentityServerasaKeyManager-Step5-ConfiguretheAPIManager

2017-11-08 10:29 GMT+01:00 Thomas LEGRAND :

> Hello,
>
> I stopped the instance of the API manager to remove the h2 database file (
> /repository/database/WSO2CARBON_DB.h2.db). I
> restarted the instance with -Dsetup to make it create the data model. Then
> I stop and I start again. No sign of the error I had during the startup. So
> that works.
>
> However, I always have the problem concerning the APIs which do not appear
> in the list on the publisher of the API manager. When I check in the
> database, I can see them in the table AM_API.
>
> Both of my AM and IS point to the same schema/tables (see the joined
> master-datasources.xml).
>
> They have the same registry.xml, too (see the joined registry.xml)
>
> Can you help me?
>
> Regards,
>
> Thomas
>
> 2017-11-07 19:15 GMT+01:00 Bhathiya Jayasekara :
>
>> Hi Thomas,
>>
>> Please attach complete log files and registry.xml files of both servers.
>>
>> Thanks,
>> Bhathiya
>>
>> On Tue, Nov 7, 2017 at 9:43 PM, Thomas LEGRAND <
>> thomas.legr...@versusmind.eu> wrote:
>>
>>> Hello,
>>>
>>> I have my API manager which is configured to use the Identity Server as
>>> Key Manager. But, on the API manager publisher, when I create a new API
>>> from a swagger file or using the assistant (for the worldbank tuto), I
>>> don't see any of my API in the list. However, I can see that XML files are
>>> created via the log of the API manager :
>>>
>>> TID: [-1234] [] [2017-11-07 17:04:39,159]  INFO
 {org.apache.synapse.rest.API} -  Initializing API: admin--WorldBank:v1.0.0
 {org.apache.synapse.rest.API}

>>>
>>> But nothing on my screen:
>>>
>>> [image: Images intégrées 1]
>>>
>>> I am connected as admin (the default user) and I can't even bind my API
>>> to an application on the API manager store :/
>>>
>>> I double-checked the configuration but I can see an error at the startup
>>> of the API manager :
>>>
>>> TID: [-1234] [] [2017-11-07 17:04:02,197] ERROR
>>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}
>>> -  Unable to create fixed remote mounts. {org.wso2.carbon.regi
>>> stry.core.internal.RegistryCoreServiceComponent}
>>> org.wso2.carbon.registry.core.exceptions.RegistryException: An
>>> exception occurred while executing handler chain. null
>>> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.d
>>> elete(HandlerManager.java:2649)
>>> at org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandl
>>> erManager.delete(UserDefinedHandlerManager.java:215)
>>> Caused by: java.lang.NullPointerException
>>> at org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHan
>>> dler.delete(MountHandler.java:490)
>>> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.d
>>> elete(HandlerManager.java:2627)
>>> ... 50 more
>>>
>>> - Do you have any idea why this error occurs?
>>> - Is this error linked to the fact I can't see my newly created APIs?
>>> - CAn you help me, please?
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Associate Technical Lead,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <+94%2071%20547%208185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Newly created API does not appear in the API manager with the pre-packaged Identity Server as a Key Manager

2017-11-08 Thread Thomas LEGRAND
Hello,

I stopped the instance of the API manager to remove the h2 database file (
/repository/database/WSO2CARBON_DB.h2.db). I restarted
the instance with -Dsetup to make it create the data model. Then I stop and
I start again. No sign of the error I had during the startup. So that works.

However, I always have the problem concerning the APIs which do not appear
in the list on the publisher of the API manager. When I check in the
database, I can see them in the table AM_API.

Both of my AM and IS point to the same schema/tables (see the joined
master-datasources.xml).

They have the same registry.xml, too (see the joined registry.xml)

Can you help me?

Regards,

Thomas

2017-11-07 19:15 GMT+01:00 Bhathiya Jayasekara :

> Hi Thomas,
>
> Please attach complete log files and registry.xml files of both servers.
>
> Thanks,
> Bhathiya
>
> On Tue, Nov 7, 2017 at 9:43 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello,
>>
>> I have my API manager which is configured to use the Identity Server as
>> Key Manager. But, on the API manager publisher, when I create a new API
>> from a swagger file or using the assistant (for the worldbank tuto), I
>> don't see any of my API in the list. However, I can see that XML files are
>> created via the log of the API manager :
>>
>> TID: [-1234] [] [2017-11-07 17:04:39,159]  INFO
>>> {org.apache.synapse.rest.API} -  Initializing API: admin--WorldBank:v1.0.0
>>> {org.apache.synapse.rest.API}
>>>
>>
>> But nothing on my screen:
>>
>> [image: Images intégrées 1]
>>
>> I am connected as admin (the default user) and I can't even bind my API
>> to an application on the API manager store :/
>>
>> I double-checked the configuration but I can see an error at the startup
>> of the API manager :
>>
>> TID: [-1234] [] [2017-11-07 17:04:02,197] ERROR
>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>> Unable to create fixed remote mounts. {org.wso2.carbon.regi
>> stry.core.internal.RegistryCoreServiceComponent}
>> org.wso2.carbon.registry.core.exceptions.RegistryException: An exception
>> occurred while executing handler chain. null
>> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.d
>> elete(HandlerManager.java:2649)
>> at org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandl
>> erManager.delete(UserDefinedHandlerManager.java:215)
>> Caused by: java.lang.NullPointerException
>> at org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHan
>> dler.delete(MountHandler.java:490)
>> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.d
>> elete(HandlerManager.java:2627)
>> ... 50 more
>>
>> - Do you have any idea why this error occurs?
>> - Is this error linked to the fact I can't see my newly created APIs?
>> - CAn you help me, please?
>>
>> Regards,
>>
>> Thomas
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Associate Technical Lead,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <+94%2071%20547%208185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
http://org.wso2.securevault/configuration";>


org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader




 	
WSO2AM_DB
The datasource used for registry and config/governance

jdbc/WSO2AM_DB



jdbc:oracle:oci:@PICSELTST
LOGIN
PASSWORD
oracle.jdbc.driver.OracleDriver
50
6
true
SELECT 1
3
false




	
WSO2REG_DB
The datasource used for registry and config/governance

jdbc/WSO2REG_DB



jdbc:oracle:oci:@PICSELTST
LOGIN
PASSWORD
oracle.jdbc.driver.OracleDriver
50
6
true
SELECT 1
3
false




	
WSO2UM_DB
The datasource used for registry and user manager

jdbc/WSO2UM_DB



jdbc:oracle:oci:@PICSELTST
LOGIN
PASSWORD
oracle.jdbc.driver.OracleDriver
50
6
true

Re: [Dev] Newly created API does not appear in the API manager with the pre-packaged Identity Server as a Key Manager

2017-11-07 Thread Chamalee De Silva
Hi Thomas,

Can you clear out the H2 database and clear the registry mount path once
and try again ?
This might be an issue due to intermediate incorrect mounting
configurations as described in [1].


[1] https://wso2.org/jira/browse/APIMANAGER-2174

On Tue, Nov 7, 2017 at 9:43 PM, Thomas LEGRAND  wrote:

> Hello,
>
> I have my API manager which is configured to use the Identity Server as
> Key Manager. But, on the API manager publisher, when I create a new API
> from a swagger file or using the assistant (for the worldbank tuto), I
> don't see any of my API in the list. However, I can see that XML files are
> created via the log of the API manager :
>
> TID: [-1234] [] [2017-11-07 17:04:39,159]  INFO
>> {org.apache.synapse.rest.API} -  Initializing API: admin--WorldBank:v1.0.0
>> {org.apache.synapse.rest.API}
>>
>
> But nothing on my screen:
>
> [image: Images intégrées 1]
>
> I am connected as admin (the default user) and I can't even bind my API to
> an application on the API manager store :/
>
> I double-checked the configuration but I can see an error at the startup
> of the API manager :
>
> TID: [-1234] [] [2017-11-07 17:04:02,197] ERROR {org.wso2.carbon.registry.
> core.internal.RegistryCoreServiceComponent} -  Unable to create fixed
> remote mounts. {org.wso2.carbon.regi
> stry.core.internal.RegistryCoreServiceComponent}
> org.wso2.carbon.registry.core.exceptions.RegistryException: An exception
> occurred while executing handler chain. null
> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.
> delete(HandlerManager.java:2649)
> at org.wso2.carbon.registry.core.jdbc.handlers.
> UserDefinedHandlerManager.delete(UserDefinedHandlerManager.java:215)
> Caused by: java.lang.NullPointerException
> at org.wso2.carbon.registry.core.jdbc.handlers.builtin.
> MountHandler.delete(MountHandler.java:490)
> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.
> delete(HandlerManager.java:2627)
> ... 50 more
>
> - Do you have any idea why this error occurs?
> - Is this error linked to the fact I can't see my newly created APIs?
> - CAn you help me, please?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,

*Chamalee De Silva*
Software Engineer
*WS**O2* Inc. :http://wso2.com/

Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Newly created API does not appear in the API manager with the pre-packaged Identity Server as a Key Manager

2017-11-07 Thread Bhathiya Jayasekara
Hi Thomas,

Please attach complete log files and registry.xml files of both servers.

Thanks,
Bhathiya

On Tue, Nov 7, 2017 at 9:43 PM, Thomas LEGRAND  wrote:

> Hello,
>
> I have my API manager which is configured to use the Identity Server as
> Key Manager. But, on the API manager publisher, when I create a new API
> from a swagger file or using the assistant (for the worldbank tuto), I
> don't see any of my API in the list. However, I can see that XML files are
> created via the log of the API manager :
>
> TID: [-1234] [] [2017-11-07 17:04:39,159]  INFO
>> {org.apache.synapse.rest.API} -  Initializing API: admin--WorldBank:v1.0.0
>> {org.apache.synapse.rest.API}
>>
>
> But nothing on my screen:
>
> [image: Images intégrées 1]
>
> I am connected as admin (the default user) and I can't even bind my API to
> an application on the API manager store :/
>
> I double-checked the configuration but I can see an error at the startup
> of the API manager :
>
> TID: [-1234] [] [2017-11-07 17:04:02,197] ERROR {org.wso2.carbon.registry.
> core.internal.RegistryCoreServiceComponent} -  Unable to create fixed
> remote mounts. {org.wso2.carbon.regi
> stry.core.internal.RegistryCoreServiceComponent}
> org.wso2.carbon.registry.core.exceptions.RegistryException: An exception
> occurred while executing handler chain. null
> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.
> delete(HandlerManager.java:2649)
> at org.wso2.carbon.registry.core.jdbc.handlers.
> UserDefinedHandlerManager.delete(UserDefinedHandlerManager.java:215)
> Caused by: java.lang.NullPointerException
> at org.wso2.carbon.registry.core.jdbc.handlers.builtin.
> MountHandler.delete(MountHandler.java:490)
> at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.
> delete(HandlerManager.java:2627)
> ... 50 more
>
> - Do you have any idea why this error occurs?
> - Is this error linked to the fact I can't see my newly created APIs?
> - CAn you help me, please?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhathiya Jayasekara*
*Associate Technical Lead,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Newly created API does not appear in the API manager with the pre-packaged Identity Server as a Key Manager

2017-11-07 Thread Thomas LEGRAND
Hello,

I have my API manager which is configured to use the Identity Server as Key
Manager. But, on the API manager publisher, when I create a new API from a
swagger file or using the assistant (for the worldbank tuto), I don't see
any of my API in the list. However, I can see that XML files are created
via the log of the API manager :

TID: [-1234] [] [2017-11-07 17:04:39,159]  INFO
> {org.apache.synapse.rest.API} -  Initializing API: admin--WorldBank:v1.0.0
> {org.apache.synapse.rest.API}
>

But nothing on my screen:

[image: Images intégrées 1]

I am connected as admin (the default user) and I can't even bind my API to
an application on the API manager store :/

I double-checked the configuration but I can see an error at the startup of
the API manager :

TID: [-1234] [] [2017-11-07 17:04:02,197] ERROR
{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
Unable to create fixed remote mounts. {org.wso2.carbon.regi
stry.core.internal.RegistryCoreServiceComponent}
org.wso2.carbon.registry.core.exceptions.RegistryException: An exception
occurred while executing handler chain. null
at
org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.delete(HandlerManager.java:2649)
at
org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandlerManager.delete(UserDefinedHandlerManager.java:215)
Caused by: java.lang.NullPointerException
at
org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHandler.delete(MountHandler.java:490)
at
org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.delete(HandlerManager.java:2627)
... 50 more

- Do you have any idea why this error occurs?
- Is this error linked to the fact I can't see my newly created APIs?
- CAn you help me, please?

Regards,

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