• Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
Author and ninkuma
Marshal
Posts: 66730
167
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.
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!