[Dev] Need to fix the following issues in product-apim, to run the API Manager integration tests

2014-09-01 Thread Amalka Subasinghe
Hi APIM team,

Following are the issues I found so far while building and running API
Manager.

Issues when building product-apim

1: Got the following error when building product-apim repo: see the mail
subjected : Build failure on wso2-dev/product-apim git repo

after building carbon-apim, I could solve the issue, but product-apim
should be able to build without building carbon-apim.

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project am-p2-profile: P2 publisher return
code was 13 -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project am-p2-profile: P2 publisher return
code was 13



2: Copied httpmime-4.2.5.jar and encode-1.1.jar to the
product-apim-new/modules/distribution/product/src/main/resources folder
manually to fix the following errors

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist)
on project wso2am: Failed to create assembly: Error filtering file
'/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar':
/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar
(No such file or directory) -> [Help 1]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist)
on project wso2am: Failed to create assembly: Error filtering file
'/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar':
/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar
(No such file or directory) -> [Help 1]


Issues when running apim

3: When running the apim it gives following warnings and hangs.

could solve the issue after merging the fix specified in the mail
subjected: “OSGI bundle conflict when starting up APIM GIT latest”

[2014-08-21 08:58:31,302]  WARN - CarbonServerManager Carbon initialization
is delayed due to the following unsatisfied items:

[2014-08-21 08:58:31,304]  WARN - CarbonServerManager Waiting for required
OSGiAxis2Service: org.wso2.carbon.apimgt.

gateway-4.3.0.SNAPSHOT

[2014-08-21 08:59:31,301]  WARN - CarbonServerManager Carbon initialization
is delayed due to the following unsatisfied items:

[2014-08-21 08:59:31,302]  WARN - CarbonServerManager Waiting for required
OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT

[2014-08-21 09:00:31,301]  WARN - CarbonServerManager Carbon initialization
is delayed due to the following unsatisfied items:

[2014-08-21 09:00:31,302]  WARN - CarbonServerManager Waiting for required
OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT

4: Could fix the following error after applying the workaround specified in
mail subjected:
“org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is
throwing GIT built apim”

[2014-09-01 20:49:57,554] ERROR - DeploymentSynchronizerComponent Error
while initializing a deployment synchronizer for the super tenant Carbon
repository

org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException: No
Repository found for type registry


Issues when loading publisher

5:  copied encoder-1.1.jar to the
product-apim/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/components/lib
location to fix the following issue

[2014-09-01 20:59:37,963] ERROR - ApplicationDispatcher Servlet.service()
for servlet JaggeryServlet threw exception

java.lang.ClassNotFoundException: org.owasp.encoder.Encode


Issues when trying to add new API

6: see the mail subjected: “org.h2.jdbc.JdbcSQLException: File corrupted
while reading record excception is throwing APIM GIT build while adding a
new API”

[2014-09-01 21:15:18,672] ERROR - ApiMgtDAO Error while adding the API:
org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database
org.h2.jdbc.JdbcSQLException: File corrupted while reading record:
"/home/amalka/amalkas/product-apim-new/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db".
Possible solution: use the recovery tool [90030-140]


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


Re: [Dev] Need to fix the following issues in product-apim, to run the API Manager integration tests

2014-09-01 Thread Krishantha Samaraweera
These issue are blockers for API manager test automation in GIT repo.

We decided to replace with old pack (APIM 1.7) and proceed with tests case
writing. When can we expect stable pack ?

Moving to svn not a feasible solution because we might need to migrate test
cases to GIT due to API changes introduced into test framework in GIT.

Thanks,
Krishantha.




On Mon, Sep 1, 2014 at 9:55 PM, Amalka Subasinghe  wrote:

>
> Hi APIM team,
>
> Following are the issues I found so far while building and running API
> Manager.
>
> Issues when building product-apim
>
> 1: Got the following error when building product-apim repo: see the mail
> subjected : Build failure on wso2-dev/product-apim git repo
>
> after building carbon-apim, I could solve the issue, but product-apim
> should be able to build without building carbon-apim.
>
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13 -> [Help 1]
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13
>
>
>
> 2: Copied httpmime-4.2.5.jar and encode-1.1.jar to the
> product-apim-new/modules/distribution/product/src/main/resources folder
> manually to fix the following errors
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist)
> on project wso2am: Failed to create assembly: Error filtering file
> '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar':
> /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar
> (No such file or directory) -> [Help 1]
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist)
> on project wso2am: Failed to create assembly: Error filtering file
> '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar':
> /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar
> (No such file or directory) -> [Help 1]
>
>
> Issues when running apim
>
> 3: When running the apim it gives following warnings and hangs.
>
> could solve the issue after merging the fix specified in the mail
> subjected: “OSGI bundle conflict when starting up APIM GIT latest”
>
> [2014-08-21 08:58:31,302]  WARN - CarbonServerManager Carbon
> initialization is delayed due to the following unsatisfied items:
>
> [2014-08-21 08:58:31,304]  WARN - CarbonServerManager Waiting for required
> OSGiAxis2Service: org.wso2.carbon.apimgt.
>
> gateway-4.3.0.SNAPSHOT
>
> [2014-08-21 08:59:31,301]  WARN - CarbonServerManager Carbon
> initialization is delayed due to the following unsatisfied items:
>
> [2014-08-21 08:59:31,302]  WARN - CarbonServerManager Waiting for required
> OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT
>
> [2014-08-21 09:00:31,301]  WARN - CarbonServerManager Carbon
> initialization is delayed due to the following unsatisfied items:
>
> [2014-08-21 09:00:31,302]  WARN - CarbonServerManager Waiting for required
> OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT
>
> 4: Could fix the following error after applying the workaround specified
> in mail subjected:
> “org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is
> throwing GIT built apim”
>
> [2014-09-01 20:49:57,554] ERROR - DeploymentSynchronizerComponent Error
> while initializing a deployment synchronizer for the super tenant Carbon
> repository
>
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
> No Repository found for type registry
>
>
> Issues when loading publisher
>
> 5:  copied encoder-1.1.jar to the
> product-apim/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/components/lib
> location to fix the following issue
>
> [2014-09-01 20:59:37,963] ERROR - ApplicationDispatcher Servlet.service()
> for servlet JaggeryServlet threw exception
>
> java.lang.ClassNotFoundException: org.owasp.encoder.Encode
>
>
> Issues when trying to add new API
>
> 6: see the mail subjected: “org.h2.jdbc.JdbcSQLException: File corrupted
> while reading record excception is throwing APIM GIT build while adding a
> new API”
>
> [2014-09-01 21:15:18,672] ERROR - ApiMgtDAO Error while adding the API:
> org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database
> org.h2.jdbc.JdbcSQLException: File corrupted while reading record:
> "/home/amalka/amalkas/product-apim-new/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db".
> Possible solution: use the recovery tool [90030-140]
>
>
> Thanks
> Amalka
>



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; ht

Re: [Dev] Need to fix the following issues in product-apim, to run the API Manager integration tests

2014-09-02 Thread Roshan Wijesena
Hi Amalka,

Issue #3 should be  fixed after applying pull request [1].

Issue #4 should be fixed after applying pull request [2].

[1] https://github.com/wso2-dev/carbon-apimgt/pull/6

[2] https://github.com/wso2-dev/carbon-commons/pull/17

Regards
Roshan


On Mon, Sep 1, 2014 at 9:55 PM, Amalka Subasinghe  wrote:

>
> Hi APIM team,
>
> Following are the issues I found so far while building and running API
> Manager.
>
> Issues when building product-apim
>
> 1: Got the following error when building product-apim repo: see the mail
> subjected : Build failure on wso2-dev/product-apim git repo
>
> after building carbon-apim, I could solve the issue, but product-apim
> should be able to build without building carbon-apim.
>
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13 -> [Help 1]
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13
>
>
>
> 2: Copied httpmime-4.2.5.jar and encode-1.1.jar to the
> product-apim-new/modules/distribution/product/src/main/resources folder
> manually to fix the following errors
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist)
> on project wso2am: Failed to create assembly: Error filtering file
> '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar':
> /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar
> (No such file or directory) -> [Help 1]
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist)
> on project wso2am: Failed to create assembly: Error filtering file
> '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar':
> /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar
> (No such file or directory) -> [Help 1]
>
>
> Issues when running apim
>
> 3: When running the apim it gives following warnings and hangs.
>
> could solve the issue after merging the fix specified in the mail
> subjected: “OSGI bundle conflict when starting up APIM GIT latest”
>
> [2014-08-21 08:58:31,302]  WARN - CarbonServerManager Carbon
> initialization is delayed due to the following unsatisfied items:
>
> [2014-08-21 08:58:31,304]  WARN - CarbonServerManager Waiting for required
> OSGiAxis2Service: org.wso2.carbon.apimgt.
>
> gateway-4.3.0.SNAPSHOT
>
> [2014-08-21 08:59:31,301]  WARN - CarbonServerManager Carbon
> initialization is delayed due to the following unsatisfied items:
>
> [2014-08-21 08:59:31,302]  WARN - CarbonServerManager Waiting for required
> OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT
>
> [2014-08-21 09:00:31,301]  WARN - CarbonServerManager Carbon
> initialization is delayed due to the following unsatisfied items:
>
> [2014-08-21 09:00:31,302]  WARN - CarbonServerManager Waiting for required
> OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT
>
> 4: Could fix the following error after applying the workaround specified
> in mail subjected:
> “org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is
> throwing GIT built apim”
>
> [2014-09-01 20:49:57,554] ERROR - DeploymentSynchronizerComponent Error
> while initializing a deployment synchronizer for the super tenant Carbon
> repository
>
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
> No Repository found for type registry
>
>
> Issues when loading publisher
>
> 5:  copied encoder-1.1.jar to the
> product-apim/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/components/lib
> location to fix the following issue
>
> [2014-09-01 20:59:37,963] ERROR - ApplicationDispatcher Servlet.service()
> for servlet JaggeryServlet threw exception
>
> java.lang.ClassNotFoundException: org.owasp.encoder.Encode
>
>
> Issues when trying to add new API
>
> 6: see the mail subjected: “org.h2.jdbc.JdbcSQLException: File corrupted
> while reading record excception is throwing APIM GIT build while adding a
> new API”
>
> [2014-09-01 21:15:18,672] ERROR - ApiMgtDAO Error while adding the API:
> org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database
> org.h2.jdbc.JdbcSQLException: File corrupted while reading record:
> "/home/amalka/amalkas/product-apim-new/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db".
> Possible solution: use the recovery tool [90030-140]
>
>
> Thanks
> Amalka
>



-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94752126789*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.