Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Want to build a bundle/servlet that has its own webroot  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to build a osgi-bundle with servlet features that holds its own webroot containing index.html some pictures and so on.

I found this code on the net that is what I would like to achive knopflerfish http-root-impl the thing about this code (linked at the end of the page) is that I can't get it to work properly.

Im using Eclipse and I'm compiling at java 1.4 complience. The servlet feature works but not accessing the webroot content. I created a folder named www under my src folder within the eclipse osgi-project.
When looking in the out folder of Eclipse I first saw that that contained the www folder but the folder in itself was empty so I assumed that, that was the problem, that the www content wasen't passed along from the src to the out folder. But i included **/*.html under the Java build path so that the index.html got passed from src to the out folder but I still can't access the webcontent through my servlet.

Anyone who could sheed some lights on my problem. Or could try to compile the code and if it works explain to me what has to be done inorder to get it to work.

My main problem is that I don't have much knowledge about Eclipse.

Thank you in advance and sorry about my poor english.

/ N

Posts: 14691
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"naopleon jr",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (obviously fake names are not allowed). Thank you.
Posts: 67241
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
What's that smell? Hey, sniff this tiny ad:
Become a Java guru with IntelliJ IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!