2014年3月10日月曜日

2014年3月4日火曜日

[ADF Mobile]About deployment error

ADF Mobile deployment error below:
Can not run program "... platform-tools\aapt"
CreateProcess error=2, The system cannot find the file specified.

Workaround:
Simply copy those files and the lib sub directory to the platform-tools directory.

This is a known issue, and error cause is JDeveloper can not find these libraries(If you download the complete Android SDK as of 14th May 2013 and later, Google has changed the structure of the SDK such that some critical files) .....

2014年2月25日火曜日

Oracle API Gateway(OAG) Policy Center

A policy is a network of message filters in which each filter is a modular unit that processes a message.
In the Policy Studio, the policy is displayed as a path through a set of filters. Each filter can have only one success path and one failure path. You can use these success and failure paths to create sophisticated rules. 

The following example screen shot shows an example policy with success paths and a single failure path:

1.Starting the Policy Studio
If you did not select to launch the Policy Studio automatically after installation,You can open a command prompt in the following directory:
-------------------------------------------
Windows      INSTALL_DIR\oagpolicystudio
Linux/UNIX   INSTALL_DIR/oagpolicystudio
-------------------------------------------
Start policystudio.

2.Start Policy Studio and connect to Policy Center.


3. You can deploy OAG sample policy. xml file like following:
---------------------------------------------------
<entityStoreData xmlns="http://www.vordel.com/2005/06/24/entityStore">
<metaInfo flags="138">
<exportRoots>
<key type='FilterCircuit'>
<id field='name' value='oauth_accesstoken_validation'/>
</key>
<key type='ESConfiguration'>
<id field='name' value='Entity Store Configuration'/>
</key>
</exportRoots>
<typeVersions>
<type name="AddHTTPHeaderFilter" version="5"/>
<type name="AttributeExtractHTTPHeaderFilter" version="0"/>
<type name="ChangeMessageFilter" version="0"/>
<type name="ConnectToURLFilter" version="2"/>
<type name="ConnectionFilter" version="13"/>
........
<type name="Reflector" version="0"/>
<type name="RootChild" version="0"/>
<type name="SaveToFileFilter" version="2"/>
<type name="SetHTTPStatusCode" version="0"/>
<type name="SetHTTPVerbFilter" version="0"/>
<type name="StringReplaceFilter" version="2"/>
</typeVersions>
<realizedTypes><![CDATA[
<entityStoreData>
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" abstract="true" extends="Entity" name="Filter">
        <constant name="_version" type="integer" value="5"/>
        <field cardinality="?" name="successNode" type="@Filter"/>
        <field cardinality="?" name="failureNode" type="@Filter"/>
        <field isKey="true" name="name" type="string"/>
        <field cardinality="1" default="2" name="logMask" type="integer"/>
        <field cardinality="1" default="Filter aborted due to exception" name="logFatal" type="string"/>
        <field cardinality="1" default="Filter failed" name="logFailure" type="string"/>
        <field cardinality="1" default="Filter passed" name="logSuccess" type="string"/>
        ..........
    </entityType>
............
</entityStoreData>
------------------------------------------------------------
4. import......, Policy studio shows as like this:


Doc:

2014年1月23日木曜日

JDeveloper error ( ERROR Launch:No such file or directory)

While installing jdeveloper(jdev_suite_121200_win64.exe), I had problem & couldn't install it will give me error:
-----------------------------------------------------------------
ERROR Launch:No such file or directory
Jdev install error launch:No such file or directory
-----------------------------------------------------------------









Workaround:
Jdeveloper need to access the registry files, so you need to run the Setup(jdev_suite_121200_win64.exe) as an administrator in order to work.

Prerequisite Check Error on Redhat Linux 6.3 or 6.4(IAM 11.1.2.2)

Problem Description:
OS:Oracle Linux Server release 6.3 or Red Hat Enterprise Linux Server release 6.4 (Santiago)
Software: Oracle Identity and Access Management Installation 11.1.2.2

Error:
1.Checking recommended operating system packages
2.Checking kernel parameters



































Rootcause:
Lack of redhat-lsb package(This is a known issue).                    
Workaround:
1.yum install redhat-lsb*x86_64" and re-install.
2.Use patch 16963926,and didn't need to install any additional package.Using this workaround, the pre-requisite check altogether is skipped.


2014年1月10日金曜日

How to change the port of tomcat

1.The default port is 8080.
2.You can find following Server.xml file, Go to conf folder in tomcat installation directory.
path-->../apache-tomcat-7.0.47/conf
3.Change the port=8080 value to port=9080.
 <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

 <Connector port="9080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="9080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
5.Save file and Verify result.
  Access URL: http://XXXX:9080

2014年1月2日木曜日

Oracle WebLogic Server 10.3.6: weblogic.management.ManagementException

Error:
There are 1 nested errors:
weblogic.management.ManagementException: Unable to obtain lock on /export/home/oracle/mdw4/user_projects/domains/base_domain/servers/AdminServer/tmp/AdminServer.lok. Server may already be running at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:206)
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:67)
at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:74)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:881)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:568)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
at weblogic.Server.main(Server.java:71)
> 
<Jan 2, 2014 4:20:35 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED> 
<Jan 2, 2014 4:20:35 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down> 
<Jan 2, 2014 4:20:35 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN> 

Solution:
1.Delete file:
/export/home/oracle/mdw4/user_projects/domains/base_domain/servers/AdminServer/tmp/AdminServer.lok, and re-start weblogic.
2.Restart test machine(reboot) and re-start weblogic.

http://unixadminschool.com/blog/manpages/solaris-file-etcnologin/

Error:
Caused By: javax.security.auth.login.FailedLoginException: [Security:090303]Authentication Failed: User weblogic weblogic.security.providers.authentication.LDAPAtnDelegateException: [Security:090295]caught unexpected exception

Solution:
1: remove the boot.properties file completely from the managed server directory.
2:remove ManagedServerDir(user_projects/domains/base_domain/servers/...)/data/ldap directory completely.
3: Always keep backup of files before removing it.
4: Now try to start the server from the command prompt and provide the username/password used to login to the Admin Console