ClassNotFoundException errors at runtime. While testing in Studio, there may be no issues but when deploying the application to appnode, but there will be classnotfound errors at runtime.
The following exception is seen in the bwappnode.log file.
ERROR [bwEngThread:In-Memory Process Worker-2] TIBCO-BW-PALETTE-JAVA-500001: While executing method [invoke] encountered exception [java.lang.reflect.InvocationTargetException] [null].-{ActivityName=JavaInvoke, ProcessName=MyProcess , ModuleName=xxx.xxx.module}
at com.tibco.bw.palette.java.runtime.JavaInvokeActivity.execute(JavaInvokeActivity.java:198)
at com.tibco.bw.core.runtime.bx.BWBxActivityBridgeImpl.eval(BWBxActivityBridgeImpl.java:773)
.
.
.
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.tibco.bw.palette.java.runtime.JavaInvokeActivity.execute(JavaInvokeActivity.java:164)
... 13 more
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at charter.bw.enterprise.webapi.statement.StatementsExcel.convertStringToDocument(StatementsExcel.java:37)
at charter.bw.enterprise.webapi.statement.StatementsExcel.invoke(StatementsExcel.java:54)
... 18 more
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be found by com.tibco.bx.core_1.12.203.002
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.tibco.bx.core.service.BxExtServiceAgentImpl$ExtendedClassLoader.loadClass(BxExtServiceAgentImpl.java:673)
at javax.xml.parsers.FactoryFinder.getProviderClass(Unknown Source)
at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
... 21 more