Saturday, June 2, 2012

Failed to rename /tmp/... when deploying SAR in EM Console

Problem:

Deploying a SAR/JAR composite file through Oracle Enterprise Manager Fusion Middleware Control results in the following error:
Failed to rename /tmp/dis29545/sca_AhmedHelloWorldOneWay_rev1.0.jar to /tmp/dir562607900928814877tmp/sca_AhmedHelloWorldOneWay_rev1.0.jar. Make sure that disk is not full or write-protected and the file is not currently in use.


The AdminServer-diagnostic.log shows the following error:
[2012-05-08T16:21:46.794-04:00] [AdminServer] [ERROR] [] [javax.enterprise.resource.webcontainer.jsf.application] [tid: [ACTIVE].ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: bd904a05912cca0e:472e78fe:13727fb3dd9:-8000-00000000000012ac,0] [APP: em] java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException[[
javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:93)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

Solution:

The commons-cli-1.1.jar file is missing.

1. Go to another installation and locate the following JAR file:
/u01/app/oracle/middleware/oracle_common/soa/modules/commons-clis-1.1.jar
2. Copy this JAR file to the same location in your current environment.

3. Restart the AdminServer and SOA managed server(s).


Application Versions:
  • Oracle SOA Suite 11g (11.1.1.5)

Ahmed Aboulnaga

1 comment:

Gabrienar said...

I had the similar problem and tried Long Path Tool, available at
http://www.pathtoodeep.com/. It helped me to solve this problem easily.
Try it, and you will definitely love this tool. Its free.