Hi Zoe, I downloaded the sources on another machine (again Windows with Java1.6)and the example is working without any issue. This morning I downloaded latest version of the sources but most probably I had an old sources on my machine. Thanks! Now we know that the example is working also on Windows.
Best regards, Nikolai. -----Original Message----- From: zoe slattery [mailto:[email protected]] Sent: Monday, 4. January 2010 18:38 To: [email protected] Subject: Re: Aries blog sample Hi Nikolai > I tried to run the samples and found some issues : > Bundle org.apache.aries.blueprint was not resolved because of Missing > Constraint: > Import-Package: org.osgi.service.cm; version="[1.3.0,2.0.0)". > Bundle org.eclipse.osgi.services_3.1.200.v20070605 exports this package but > with version=1.2, I changed the Import-Package statement in > org.apache.aries.blueprint and all bundles were successfully started. > I put in a fix for this issue on the 22nd Dec - so you should not still be seeing it. Did you update and build blueprint before running the sample? > Unfortunately this was not enough to run the example, the problem that I have > now is: > Caused by: javax.naming.NameNotFoundException: We couldn't find an object in > the registry matching the query > aries:services/org.apache.aries.samples.blog.api.BloggingService > at > org.apache.aries.jndi.url.ServiceRegistryContext.lookup(ServiceRegistryContext.java:275) > > Do you have an idea what is wrong? Probably I am doing something wrong. > I just wiped my work space, checked out and rebuilt everything. Then I built the blog sample and ran it with no problems. (BTW - there are some issues with the helloworld samples which I will fix, they aren't related I just fell over them when I was checking the blog-sample). I'm using a Mac with the Java 1.6 that comes with Mac (Sun's). It would be good to confirm that you have the fix for your first issue after updating. In fact - if you don't them my fix is bad, so I'd like to know. Other than updating and rebuilding blueprint, jndi etc, the only other thing I can think of is a Windows specific issue. However - I believe that Tim ran the sample on Windows. Zoe > Best regards, > Nikolai. > > -----Original Message----- > From: zoe slattery [mailto:[email protected]] > Sent: Wednesday, 30. December 2009 18:37 > To: [email protected] > Subject: Aries blog sample > > Hi > > Thanks to Tim for committing the 'blog sample'. This sample code makes > use of the blueprint and jndi modules at the moment. The persistence > layer is currently using JDBC - but it should be easy to move it to JPA > if/when that becomes available. The Web component uses the PAX Web > implementation. > > I have a couple of questions about the sample: > > 1) To make it easy to test I have a blog-assembly project which gets all > the dependencies and puts them in a target directory. In the long term > having this as part of the default build might become a bit time > consuming. However - I have left it this way for now because I was > wondering if we could do some automated testing of the sample. Does this > seem reasonable? > > 2) The assembly currently the Equinox implementation of teh core OSGi > runtime. I could just have easily have used the Felix implementation > (actually more easily) but I think it's reasonable to expect samples to > work on both. I'm not sure how best to ensure this, a second assembly > project called called 'assembly-felix'? > > 3) As you may have noticed - this is a blog sample :-) I know this is a > long way off but ... would it be reasonable to have a target of using > this to host the Aries blog eventually? It would be nice to be using our > own code. > > > I will write tutorials and/or documentation which will appear on web > site over the next few weeks. In the interim - here are some very brief > instructions for running the code: > > - Install and configure embedded Derby, see here for instructions: > http://db.apache.org/derby/papers/DerbyTut/install_software.html#derby > > - Checkout and build the aries samples module > > - cd samples/blog-sample/blog-assembly/target > > - java org.apache.derby.tools.ij blogDB.sql > > - java -jar osgi-3.5.0.v20090520.jar -console > > - Point your web browser at > http://localhost:8080/org.apache.aries.samples.blog-servlet > > (Don't get too excited - all you can do right now is create an author) > > Zoe > > >
