Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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

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

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



 
Sheriff
Posts: 14691
16
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.
 
Marshal
Posts: 67164
169
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!