Hi, 

 I am using Sun's JAVA 1.6 running on Windows. 

Best regards, 
  Nikolai.  

-----Original Message-----
From: zoe slattery [mailto:[email protected]] 
Sent: Monday, 4. January 2010 16:35
To: [email protected]
Subject: Re: Aries blog sample

Tankov, Nikolai wrote:
> Hi, 
>  
>   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. 
>
> 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. 
>   
No, but I'll certainly have a look and I shouldn't think you are doing 
anything wrong :-) What are OS and java level are you using?

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
>
>
>   

Reply via email to