Compilation of JAVA files failed with error "package org.apache.log4j does not exist" in Windchill PDMLink
Description
- What is new / different with log4j 2.0 since Windchill 12?
- Getting compilation ERROR xxxx can not be resolved a type for DailyRollingFileAppender, FileAppender and PatternLayout classes
- Compilation of JAVA files failed with error:
package org.apache.log4j does not exist
- Workflow template/process expression with log4j customization reports error below and no new tasks created
Nested exception is: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
- The previous org.apache.log4j.Logger class does not exist in existing Windchill Jar package anymore in Windchill 12.0.2.0, what's the replacement method in the new Windchill release
- Invoking a customized WRS(Windchill REST Services, OData) endpoint reports the following error:
com.ptc.odata.windchill.entity.service.WcEntityProviderProcessor wcadmin - java.lang.ClassNotFoundException: org.apache.log4j.Logger java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.log4j.Logger at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:524) at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442) at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503) at java.scripting/javax.script.CompiledScript.eval(CompiledScript.java:107) at com.ptc.odata.core.config.JSProvider.getJSEngine(JSProvider.java:371) at com.ptc.odata.core.config.JSProvider.functionExists(JSProvider.java:408) at com.ptc.odata.core.config.JSProvider.functionExists(JSProvider.java:404) at com.ptc.odata.core.entity.filter.BasicEntityFilterProcessor.doAdditionalValidations(BasicEntityFilterProcessor.java:118) ...
-
Failed to compile java file with error below when input log4j class
Logger cannot be resolved to a type