Tuesday 3 October 2017

ANT : java.lang.NoSuchMethodError: org/apache/xerces/impl/xpath/regex/RegularExpression.(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)V


This is what you should do if you are trying to deploy SOA code using ANT and facing the below issue:


[wldeploy] java.lang.NoSuchMethodError: org/apache/xerces/impl/xpath/regex/RegularExpression.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)V
[wldeploy]     at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.applyFacets(Unknown Source)
[wldeploy]     at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.applyFacets1(Unknown Source)
[wldeploy]     at org.apache.xerces.impl.dv.xs.BaseSchemaDVFactory.createBuiltInTypes(Unknown Source)
[wldeploy]     at org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.createBuiltInTypes(Unknown Source)
[wldeploy]     at org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.<clinit>(Unknown Source)


Solution-
Check your ANT jars are imported correctly and the ANT_HOME is set and retry.

Helpful? Please comment.

Happy Learning!!

1 comment:

OSB 12c : Dynamic Routing to Business/Proxy Service

Dynamic routing is a kind of  Content-based Routing pattern, which is used when the BusinessService/ProxyService path is required to be de...