My Oracle Support Banner

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

Last updated on JUNE 05, 2019

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=/path/to/jar/file -Ddest=/path/to/jar/file -Dpatchdir=/path/to/patch -Dpatchfiles=patch_file -Dversion=5.0.0.0.1

But build was failed.

----------------------------------------------------------------------------------------------------------------------------------------------------------
$ ant patch -Dsrc=/path/to/jar/file -Ddest=/path/to/jar/file -Dpatchdir=/path/to/patch -Dpatchfiles=patch_fil -Dversion=5.0.0.0.1
Buildfile: build.xml

patch:
[cs_patch] --------------------------------------------------------------------------------
[cs_patch] Manifest for /path/to/jar/file
[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] patch1
[cs_patch] patch2
[cs_patch] patch3
[cs_patch] patch4
[cs_patch] patch5

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

Total time: 0 seconds

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.