Showing posts with label Exceptions. Show all posts
Showing posts with label Exceptions. Show all posts

June 10, 2013

ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.VetoableDeployException)



When I was deploying my ADF application to EAR file from JDeveloper, got the below error.

ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.VetoableDeployException)


To solve this issue, I have done below steps.
  • Go to application properties (not project properties)
  • Go to deployment
  • Select the deployment profile and click on Edit
  • Go to “Application Assembly”
  • Select the check boxes which you want to include in the EAR file from the available “Java EE Modules” (in my case, nothing was selected. So I selected my model and view modules.)
  • Click Ok

java.lang.NoClassDefFoundError: oracle/adf/model/RegionBinding



I have deployed ADF application in weblogic but while accessing the app, I got the error.

Error 500--Internal Server Error
java.lang.NoClassDefFoundError: oracle/adf/model/RegionBinding

To solve this, deploy the application as an EAR instead of web application. After done this, I could able to access the app properly without any issues.

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