[ 
https://issues.apache.org/jira/browse/KARAF-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360345#comment-16360345
 ] 

Francois Papon commented on KARAF-5555:
---------------------------------------

I tried to reproduce and there is an error on the first registration of the 
rest servlet.

However it work's after stopping and restarting the rest bundle :

 
{code:java}
karaf@root()> list
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version │ Name
────┼────────┼─────┼─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 29 │ Active │  80 │ 4.1.4   │ Apache Karaf :: OSGi Services :: Event
 55 │ Active │  80 │ 1.10.0  │ Apache Commons Codec
 69 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: API
 70 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: Command
 71 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: HTTP
 72 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: Management
 73 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: Maven Proxy
 74 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: Rest
 75 │ Active │  80 │ 4.1.0   │ Apache Karaf :: Cave :: Server :: Storage
108 │ Active │  80 │ 1.7.3   │ jsoup
karaf@root()> stop 74
karaf@root()> start 74
{code}
 

The list of the repositories are now available :

[http://localhost:8181/cave/rest/repositories]

 

 

> 404 Errors while trying to use rest service
> -------------------------------------------
>
>                 Key: KARAF-5555
>                 URL: https://issues.apache.org/jira/browse/KARAF-5555
>             Project: Karaf
>          Issue Type: Bug
>          Components: cave-rest
>         Environment: * Mac OS
> * apache-karaf-4.1.4.tar.gz
> * Oracle Java JDK 1.8.0_131
>            Reporter: Chris Caspanello
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: cave-4.1.1
>
>
> On a fresh install of Karaf 4.1.4 I run the following commands:
> karaf@root()> repo-add cave 4.1.0
> Adding feature url 
> mvn:org.apache.karaf.cave/apache-karaf-cave/4.1.0/xml/features
> karaf@root()> feature:install cave-server
> karaf@root()> cave:repository-create my-repository
> karaf@root()> cave:repository-upload my-repository 
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_5
> When I go to the following URL I get a response:
> http://localhost:8181/cave/http/my-repository-repository.xml
> However, nothing else seems to work.
> When I go to the following URLs I get a 404 error:
> http://localhost:8181/cave/rest
> http://localhost:8181/cave/rest?_wadl
> http://localhost:8181/cave/maven
> When I go to the following URL I get a 500 error:
> http://localhost:8181/cave/http/gateway
> 500 shows a stacktrace of:  java.io.FileNotFoundException: 
> ~/apache-karaf-4.1.4/data/cave-features-gateway.xml (No such file or 
> directory)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to