Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[SOLVED] Problems packaging and deploying an ADF application in an external WLS

user8959800Feb 19 2014 — edited Feb 20 2014

Hi.

I'm using JDeveloper 11.1.1.7.0, which has an embedded 10.3.5 WebLogic Server.

When I test my application by right-click on my page and Run... in embedded WLS, everything works perfectly.

It works with any page and any flow.

Now, I have to deploy the same application in an external 10.3.6 WLS

First, I have package the application in an EAR using JDeveloper Wizard. I have done right-click in application --> Deploy --> MyApplication... --> Select Deploy to EAR...


Then, when .ear file is built, I run startWebLogic (I have previously created a domain with ADF Runtime options) and deploy the .ear as an application.

I have lots of warnings, but final message is deployment is ok.

So, my surprise is I get a NullPointerException in the first page I test, in the first access to an ADF Iterator/View  in the Java class:

DCIteratorBinding iter = ADFUtils.findIterator("BusinessDataView1Iterator");

ViewObject vo = iter.getViewObject(); -- iter is null

This had worked lot of times in embedded 10.3.5 WLS.

10.3.6 WLS console output is this:

19-feb-2014 15:04:26 oracle.adfinternal.controller.metadata.MetadataServiceImpl$Bootstrap logActivityWarnings

WARNING: ADFc: /WEB-INF/adfc-config-reportes.xml:

...

...

...

...

ADVERTENCIA: ADFc: /WEB-INF/adfc-config.xml:

19-feb-2014 15:04:26 oracle.adfinternal.controller.metadata.MetadataServiceImpl$Bootstrap logBeanWarnings

ADVERTENCIA: ADFc: Se ha detectado una definicion de bean gestionado duplicada para 'backing_views_administracion_inicio'.

...

...

...

...

19-feb-2014 15:04:30 oracle.adfinternal.controller.util.WebAppConfigFactory createConfig

INFO: ADFc: Se estß utilizando la vista '<null-value>' como la pßgina inicial de la aplicaci¾n.

19-feb-2014 15:04:32 oracle.adf.share.jndi.ReferenceStoreHelper getReferencesMapEx

ADVERTENCIA: Incomplete connection reference object for connection:MY_DB_JDBC

19-feb-2014 15:04:47 oracle.adfinternal.controller.application.AdfcExceptionHandler handleException

GRAVE: ADFc: al manejar una excepci¾n, el manejador de excepciones de la aplicaci¾n ha devuelto una nueva excepci¾n.

java.lang.NullPointerException

        at com.mypackage.Gestion.<init>(Gestion.java:37)

Between dots sections, there are some similar warnings.

I have checked .ear file (contains a .war), decompressing it (the .war too) in a different folder and searching for duplications by text in any file, and adfc-config.xml exists only once in the .ear

How can I solve this? Have anyone had any similar problems when deploying in an external WLS?

Any help is very very appreciated, because this is so stuck for me, and it's urgent too.

Thank in advance. Regards

This post has been answered by user8959800 on Feb 20 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2014
Added on Feb 19 2014
4 comments
587 views