When you manually setup your OSB Config project or when you get it automatically created from an sbconfig.jar file you will always have your project properly nested to your configuration project, like in the image below:
The thing is when you already have a project into another folder or config project and you need to import it to yours. When you do that, the project will be shown like this:
You will also get an error telling you the project is not associated with a Oracle Service Bus Configuration Project, like you see below.
What you have to do is go to your <OSB Config Project home folder>/.settings and edit the com.bea.alsb.core.prefs file.
All you have to do is add the name of your project to the container.referenced.projects property, separated by pipe “|”, like below
#Fri Feb 08 14:48:55 BRST 2013 ACTIVATION_DESCRIPTION_PROPERTY=Publish from Oracle Service Bus IDE. CUSTOMIZATION_FILE_PROPERTY= DISCARD_SESSION_PROPERTY=true KEYSTORE_PROPERTYfile= KEYSTORE_PROPERTYpassword= PUBLISH_SESSION_NAME_PROPERTY=OSB_Publish SERVER_PROPERTY= #VRS: Add the project here: container.referenced.projects=Local Project|Foreign Project eclipse.preferences.version=1
Now restart the eclipse and you are all done!