Error::
[October 18, 2012 12:31:34 PM MVT] java.lang.InstantiationError: ServiceContext resource configuration file "META-INF/context.provider" found, but the class defined "class oracle.webcenter.framework.internal.service.DefaultServiceContext" is not an instance of oracle.webcenter.framework.service.ServiceContext.
[October 18, 2012 12:31:34 PM MVT] ServiceContext resource configuration file "META-INF/context.provider" found, but the class defined "class oracle.webcenter.framework.internal.service.DefaultServiceContext" is not an instance of oracle.webcenter.framework.service.ServiceContext.
[October 18, 2012 12:31:34 PM MVT] Deploy operation failed.
Solution::
1) Ensure that there is no space in the domain path or working directory (if deploying through JDev itself).
2) If there is no space and still getting the issue, then clear the tmp folder for the manged server where application is being deployed. Stop the managed server and delete content of following folder
MIDDLEWARE_HOME/user_projects/domains/DOMAIN_NAME/servers/WC_Spaces1/tmp
Now deploy the application again. This time it should work.