Skip to main content

Posts

Showing posts from June, 2011

Service enabled ADF

So I am trying out ADF service enabled EO functionality and also trying to invoke BC remotely. The service enabled EO functionality just works for the simple test case I was trying (instead of creating from a table you just choose the service interface radio item) . I am trying to invoke the BC remotely and the create and custom methods work but I am struggling with the search will update when I have some progress

Maven and Jdeveloper

Ok so we have decided to install Jdeveloper 11.1.2 and use the 11.1.1.5 for our soa projects. With the 11.1.2 has maven support so I am busy mavenizing our ADF projects will let you know anything I have found that may be a problem. Abandoned maven migration ojdeploy although slower builds the apps as they are built in jdev once again proving that it is the tool for the job for now. Maven in jdev is not solid yet need to change poms manually and it looses your excludes if you use the dialogs just not good.

JDeveloper 11.1.2

Its such a shame such a good upgrade but I wont be able to use it. Why o why is there no soa suite stuff for this release bummer... Ok so I have upgraded any way using 11.1.1.5 for soa stuff and 11.1.2. for adf stuff, we shall see how this turns out. Seems much snappier. So far so good, a couple of hassles though. Occasionally when you delete a directory your adf view removes all directories (not from disk)   from your view - VERY annoying but nothing critical. Maven integration is nice but still needs a bit of work. Css editor is very very nice. Overall this is a must upgrade just due to the performance increases in dev.

Adding business rules programmatically

First add a method validator to your EO. Use the method super.registerRowException to add the error.     public boolean validateEntityRules() {       //call to OBR       Collection results = RulesUtil.validateEntity(this, getClass().getName());       if (results == null || results.isEmpty()) {           return true;       } else {           for (Object result : results) {             super.registerRowException(new JboException((String) result));           }           return false;          }

Stupid ant weblogic start script

build properties: wl.command.start=/home/teamcity/script/startWL.sh build.xml <exec executable="${wl.command.start}"/> startWL.sh #!/bin/bash sudo -u weblogic /opt/weblogic/oracle/domains/mydomain/bin/startWebLogicRemote.sh startWebLogicR.sh echo ..................... STARTING WL cd /opt/weblogic/oracle/domains/mydomain/bin nohup ./startWebLogic.sh > /dev/null 2>&1 & cd -

Jdeveloper login module 11.1.1.5

Had a problem with the automatic migration of jps roles when weblogic started up. The result was a 401 Not Authorised not matter what we did. Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException. Solution : Remove any mention of anonymous-role from the jazn-data.xml.

adf weblogic verbose logging

SECURITY -Dweblogic.DebugSecurityAtz=true -Dweblogic.DebugSecurityAtn=true -Dweblogic.DebugSecurityAdjudicator=true -Dweblogic.DebugSecurityRoleMap=true -Djps.auth.debug.verbose=true -Dweblogic.debug.DebugSecurityService=true -Dweblogic.debug.DebugSecurityAtz=true -Dweblogic.debug.DebugSecurityAtn=true -Dweblogic.debug.DebugSecurityAdjudicator=true -Dweblogic.debug.DebugSecurityRoleMap=true  -Dweblogic.debug.DebugEmbeddedLDAPLogLevel=11 -Dweblogic.debug.DebugEmbeddedLDAP=true  -Dweblogic.debug.DebugSecurityRoleMap=true NORMAL -Dweblogic.StdoutDebugEnabled=true -Djbo.debugoutput=console -Djbo.jdbc.trace=true

Random notes from SOA suite examples help (XE, windows 64 bit)

Problem:   rcu fails on prevalidation of soa mds. Solution:   alter system set processes=500 scope=spfile; and then restart Problem: wsdl errors in compilebuildAll Solution: run importCommonServiceArtifactsIntoMds before compilebuildAll Problem: OutofMemoryException Solution:   restart soa suite with 2Gb heap and 768 permgen (change in the setSOADomainEnv.cmd) Problem: There was an error deploying the composite on AdminServer: Deployment Failed: oracle.integration.platform.blocks.folder.FolderNotFoundException: Partition soaFusionOrderDemo does not exist. Make sure the partition was created and exists.: Partition soaFusionOrderDemo does not exist. Make sure the partition was created and exists.. Solution: Before running ant scripts : Create soa partition as in properties file Problem: New oreder Event  instance not showing up in em view. Solution :  1.In Jdev goto StoreServiceAM and select Configurations. 2.Select StoreServiceAMLocalWeb and edit