Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Remote repository configuration(Configuration of Virgo remote repositories)
Remote repository configuration [message #655847] Tue, 22 February 2011 20:00 Go to next message
nfowler is currently offline nfowlerFriend
Messages: 5
Registered: February 2011
Junior Member
I am having trouble getting Virgo remote repositories to work. There must be something basic that I am missing here.

I am running two instances of the Virgo web server on my development machine. The first is configured to host the repository on port 8080. I did this by editing config\org.eclipse.virgo.apps.repository.properties:

hostedrepo.type=watched
hostedrepo.watchDirectory=repository/hosted

The second (on port 8090) tries to use the remote repository, configured in config\org.eclipse.virgo.repository.properties:

ext.type=external
ext.searchPattern=repository/ext/{artifact}

usr.type=watched
usr.watchDirectory=repository/usr

remoterepo.type=remote
remoterepo.uri= http://localhost:8080/org.eclipse.virgo.server.repository/ho stedrepo
remoterepo.indexRefreshInterval=10

chain=ext,usr,remoterepo

In the logs for the second server I can see the failure to access the remote repository:

[2011-02-22 10:40:56.637] remoterepo o.e.v.r.i.r.ArtifactDescriptorStoreWatcher$StoreUpdaterThrea d Unexpected HTTP response code: 400 from remote repository 'remoterepo'.

I can also see a servlet being started on the second server for this remote repository:

[2011-02-22 10:13:39.721] start-signalling-2 System.err INFO: Initializing Spring FrameworkServlet 'hostedrepo'
[2011-02-22 10:13:39.721] start-signalling-2 org.springframework.web.servlet.DispatcherServlet FrameworkServlet 'hostedrepo': initialization started
[2011-02-22 10:13:39.723] start-signalling-2 org.springframework.web.context.support.XmlWebApplicationCon text Refreshing WebApplicationContext for namespace 'hostedrepo-servlet': startup date [Tue Feb 22 10:13:39 PST 2011]; parent: ServerOsgiBundleXmlWebApplicationContext(bundle=org.eclipse. virgo.apps.repository-2.1.0.RELEASE-org.eclipse.virgo.apps.r epository.web, config=/WEB-INF/applicationContext.xml)

I don't see anything in the logs on the first instance about the remote repository.

My specific questions are:
1) What is wrong with my configuration?
2) What is the servlet on the second instance (the client of the remote repository)? Does its existence imply that one cannot access a Virgo remote repository running only the Virgo kernel? (I would not have been surprised to see a servlet running on the first instance to serve up artifacts from the hosted repository, but I see no evidence of this.)

Thanks!
Re: Remote repository configuration [message #656207 is a reply to message #655847] Thu, 24 February 2011 14:56 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
The configuration looks right, but it's as if the two instances are using the wrong configurations. I'm afraid I'll have to ask you to double-check which configurations are in which server instances.

Did you create two server instances by copying the installation directory or by attempting to share the binaries and use separate configuration directories?
Re: Remote repository configuration [message #656278 is a reply to message #656207] Thu, 24 February 2011 20:24 Go to previous message
nfowler is currently offline nfowlerFriend
Messages: 5
Registered: February 2011
Junior Member
Thanks for the response, Glyn. I've got things up and running now. It turns out there were two problems:

1) org.eclipse.virgo.apps.repository-2.1.0.RELEASE.par had been deleted from my pickup directory.

2) The context in the remote repository URL was wrong. Once I changed it from

http://localhost:8080/org.eclipse.virgo.server.repository/hostedrepo

to

http://localhost:8080/org.eclipse.virgo.apps.repository/hostedrepo

things started working. Table 11.5 in the Virgo Users Guide should be updated to reflect this, as it has the wrong context. It might also be worth mentioning in section 11.5 that there is a PAR in the pickup directory required for this functionality to work.

Thanks again!

Neal
Previous Topic:bundle root classpath
Next Topic:Problems using Virgo Test Framework
Goto Forum:
  


Current Time: Sun Dec 08 10:32:11 GMT 2024

Powered by FUDForum. Page generated in 0.03070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top