May 28, 2012

Error(1,1): file:< Application path>/Model/src/model/mdssys/mdx/XXXXXX.xml.rdf: XML-20108: (Fatal Error) Start of root element expected


Solution:

JDeveloper is expecting some xml content in the file. So put some blank xml tags in that file like below
and save the file.
 
<?xml version="1.0" encoding="UTF-8" ?>
<test>
</test>

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'XXXXXXX'


I have got an exception some thing like,

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'XXXXXXXXXXXXXXXXXXXXXX'
……………………………………………………………………………..
Caused by: java.lang.IllegalAccessException: Class oracle.adfinternal.controller.beans.ManagedBeanFactory can not access a member of class 'XXXXXXXXXXXXXXXXXXXXXX' with modifiers ""


Solution: 


Check the access modifier of the constructor of your class. The access modifier should be “public”, as the class is being instantiated from out of the package.

Weblogic error: ServletContainerAdapter manager not initialized correctly


I got the above error while deploying the application in Weblogic through JDeveloper. Below are the solutions I have tried to this issue.

  • Shutdown and restart the weblogic
  • If the error still exists, restart the Jdeveloper completely
  • If still it exists, then the workspace of the JDeveloper needs to be changed
    • Create a new workspace folder in the drive
    • Create a system environment variable. Variable name should be “JDEV_USER_DIR”
    • Give the path of the new workspace folder path as the value for the system variable
    • Restart the JDeveloper