Showing posts with label ADF Deployment error. Show all posts
Showing posts with label ADF Deployment error. Show all posts

Thursday, 3 October 2013

ADF - XML-20108

ADF - XML-20108

Today my colleague had an error "XML-20108"

Error(1,1): <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.

If the File that is causing the error is a ".rdf".
To fix this error all you need to do is delete the

If the file is another file, ie "xml" please make sure the first line in the file is
<?xml version="1.0" encoding="UTF-8"?>

#bearMan

Friday, 16 August 2013

Unable to load descriptor

My Stacktrace
Warning: <May 26, 2013 7:47:48 AM CAT> <Error> <J2EE> <BEA-160197> <Unable to load descriptor {path}\ViewController\public_html/WEB-INF/weblogic.xml of module public_html. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:161) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323) at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788) at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768) at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:170) at weblogic.servlet.utils.WarUtils.getWlWebAppBean(WarUtils.java:110) at weblogic.application.compiler.WARModule.processLibraries(WARModule.java:385) at weblogic.application.compiler.WARModule.compile(WARModule.java:237) at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18) at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36) at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26) at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29) at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112) at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36) at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26) at weblogic.application.compiler.Appc.runBody(Appc.java:203) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.application.compiler.Appc.main(Appc.java:262) at weblogic.appc.main(appc.java:14)Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.SecurityRoleAssignmentBeanImpl@563d3221(/SecurityRoleAssignments[valid-users])" at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54) at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:539) at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:381) at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52) at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:140) at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:200) at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:169) at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65) at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:150) ... 27 moreCaused by: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.SecurityRoleAssignmentBeanImpl@563d3221(/SecurityRoleAssignments[valid-users])" at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231) at weblogic.j2ee.descriptor.wl.WeblogicWebAppBeanImpl.setSecurityRoleAssignments(WeblogicWebAppBeanImpl.java:317) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48) ... 35 more.>


In essence, the error was that I had two of the same library references in my weblogic-application.xml 


you can get there by going to your Application Resources in your resource pallet

Monday, 27 May 2013

ADF Deployment issues: MapProxyServlet Not Found


oracle.adf.view.faces.bi.webapp.MapProxyServlet not found…

I cannot give you guys an exact fix for this, but what I did to make the application run, it works


So in my application, I went to my Project Properties

Clicked on Deployment, selected the Deployment plan, and clicked edit.

Click on edit, and then go to the File Groups -> WEB-INF/lib -> Contributors

Then I selected all the ADF Libraries that were not selected in the application by default and clicked ok.

Once that was completed I redeployed the application with no errors.

ADF Deployment issues: Unresolved WebApp library

ADF Deployment issues: Unresolved WebApp library references defined in weblogic.xml

I was trying to deploy from JDEV Version "Oracle IDE - 11.1.2.3.39.62.76.1" onto Oracle Weblogic Server 10.3.1.0, with ADR extensions.

The problem was that there was no correct deployment on the server, we needed jsf(2.0,1.0.0.0_2-0-2) while we had jsf 1.2.

Fix: On your Weblogic server “http://localhost:7101/console” click on deployments and install.
Deployment, install
 Note: if you have any jsf deployment currently, you will have to delete that deployment


After you have done that go to your {Weblogic server path}/common/deployable-libraries. Then click on jsf-2.0.war and go through the processes of installing, ie: click next
Once this process is done, the error should be resolved