[Progress Communities] [Progress OpenEdge ABL] Forum Post: Error when using restGen via PCT

Status
Not open for further replies.
T

thierryk

Guest
Hi everyone, I'm integrating PCT on the project (PASOE in Progress v11.7.3). Compiling and generating the librairies works really well. However generating the REST package via RestGen raises an error Here is the ant code : Here is the log : Buildfile: C:\MAGI\wrk\builder\restgen.xml [RestGen] Creating PAAR file with [magiApplication, magiBail] at target c:\temp\REST.zip [RestGen] java.lang.reflect.InvocationTargetException [RestGen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [RestGen] Error invoking method. Please check the options provided [RestGen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [RestGen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [RestGen] at java.lang.reflect.Method.invoke(Method.java:498) [RestGen] at com.progress.rest.tools.WARGenerator.generatePAARFilesInZipWrapper(WARGenerator.java:32) [RestGen] at com.progress.rest.tools.WARGenerator.main(WARGenerator.java:374) [RestGen] Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Priority [RestGen] at com.progress.openedge.pdt.rest.util.PAARGenerator.generatePAARFiles(PAARGenerator.java:91) [RestGen] at com.progress.openedge.pdt.rest.util.PAARGenerator.generatePAARFilesInZip(PAARGenerator.java:133) [RestGen] at com.progress.openedge.pdt.rest.util.PAARGenerator.generatePAARFilesInZip(PAARGenerator.java:114) [RestGen] ... 6 more [RestGen] Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority [RestGen] at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [RestGen] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [RestGen] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) [RestGen] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [RestGen] ... 9 more [RestGen] Java Result: 1 BUILD SUCCESSFUL Total time: 5 seconds Launching the generation directly via the command in proenv works fine. restgen -proj C:/MAGI/wrk/magiController -restSvcNames magiApplication:magiBail -target C:/temp/REST.zip -genPaar I've checked PCT code in order to understand where log4j is supposed to be and I found the directory and I found the file. So i'm a bit confused. Did i miss a parameter or a configuration step ? Thanks for your help.

Continue reading...
 
Status
Not open for further replies.
Top