How to Resolve the Error "Version must be different from previous version" When Applying OCSG Patch (Doc ID 1580866.1)

Last updated on SEPTEMBER 22, 2016

Applies to:

Oracle Communications Services Gatekeeper - Version 5.0.0 and later
Information in this document applies to any platform.

Goal

Sometimes patch application on OCSG fails with the error "Version must be different from previous version". How do we resolve this problem?

For example:

Execute the following command to apply a patch in OCSG servers.

ant patch -Dsrc=/app/oracle/ocsg_5.0/server/lib/wlng/wlng.jar -Ddest=/app/oracle/ocsg_5.0/server/lib/wlng/wlng.jar -Dpatchdir=/app/oracle/patches/p16918119_500_Generic -Dpatchfiles=bug16918119_5_0_0_0_wlng.jar -Dversion=5.0.0.0.1

But build was failed.

----------------------------------------------------------------------------------------------------------------------------------------------------------
$ ant patch -Dsrc=../lib/wlng/wlng.jar -Ddest=../lib/wlng/wlng.jar -Dpatchdir=./patches/bug16918119/ -Dpatchfiles=bug16918119_5_0_0_0_wlng.jar -Dversion=5.0.0.0.1
Buildfile: build.xml

patch:
[cs_patch] --------------------------------------------------------------------------------
[cs_patch] Manifest for /app/oracle/ocsg_5.0/server/lib/wlng/wlng.jar
[cs_patch] Manifest-Version: 1.0
[cs_patch] Bundle-Vendor: Oracle
[cs_patch] Ant-Version: Apache Ant 1.6.5
[cs_patch] Weblogic-Application-Version: 5.0.0.0.1
[cs_patch] Class-Path: ../../../modules/features/com.bea.wlcp.wlng.modules_5.0.0.
[cs_patch] 0.jar
[cs_patch] Bundle-Version: 5.0.0.0.1
[cs_patch] Bundle-Name: wlng_core
[cs_patch] Created-By: R27.6.3-40_o-112056-1.6.0_11-20090318-2103-linux-ia32 (BEA
[cs_patch] Systems, Inc.)
[cs_patch]
[cs_patch] Name: com/bea/wlcp/wlng/util/ParameterTranslator.class
[cs_patch] Patch: bug13347999
[cs_patch]
[cs_patch] Name: com/bea/wlcp/wlng/util/ParameterTranslator$PrefixedProperty.clas
[cs_patch] s
[cs_patch] Patch: bug13347999
[cs_patch]
[cs_patch] Name: com/bea/wlcp/wlng/util/ParameterTranslator$1.class
[cs_patch] Patch: bug13347999
[cs_patch]
[cs_patch] Name: com/bea/wlcp/wlng/util/NumberComparator.class
[cs_patch] Patch: bug13347999
[cs_patch]
[cs_patch] --------------------------------------------------------------------------------
[cs_patch] Patches for wlng.jar
[cs_patch] com/bea/wlcp/wlng/util/ParameterTranslator.class - bug13347999
[cs_patch] com/bea/wlcp/wlng/util/ParameterTranslator$PrefixedProperty.class - bug13347999
[cs_patch] com/bea/wlcp/wlng/util/ParameterTranslator$1.class - bug13347999
[cs_patch] com/bea/wlcp/wlng/util/NumberComparator.class - bug13347999
[cs_patch] Expanding: /app/oracle/ocsg_5.0/server/lib/wlng/wlng.jar into /tmp/wlng3262203626665213423.patch

BUILD FAILED
/app/oracle/ocsg_5.0/server/bin/build.xml:73: Version must be different from previous version

Total time: 0 seconds

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms