Hi,

Actually, I was just looking at the original 
syncope-core-provisioning-java-2.1.5.jar and that has a class with the same 
name in the same directory inside the JAR. I'm assuming that was because you 
all include that when we built Syncope.

So when I did what I did, I basically just replaced the 
LDAPPasswordPullActions.class that was in the original JAR file.

So I am unclear why the class I built wouldn't appear now.

I understand about what you said, but I think that in general, we definitely 
are not going to be able to do as you suggest, because we are going to only 
build Syncope for deployment once, and won't be able to rebuild Syncope 
everytime we try to add a new pull action.

So can you let me know what the requirements are to get the pull action class 
to work?

Thanks,
Jim
     On Monday, May 4, 2020, 02:55:30 AM EDT, Andrea Patricelli 
<andreapatrice...@apache.org> wrote:  
 
  
I never followed this way and is quite unusual to apply such customizations. 
Please follow the approach that I suggested: add the class to the archetype 
codebase , build Syncope and redeploy the whole war of the core.
 Alternatively, if you're runing a 2.1.X version, you could add at runtime 
LDAPPasswordPullActions as a groovy implementation [1] and so you do not need 
to rebuild and restart at all.
 
HTH,
 Andrea
 
[1] https://syncope.apache.org/docs/2.1/reference-guide.html#implementations
 Il 04/05/20 08:49, oh...@yahoo.com ha scritto:
  
 
 Hi,
 
 No.
 
 I was able to build the LDAPPasswordPullActions.java separately, in Eclipse, 
using JARs from the Syncope installation. That got me the 
LDAPPasswordPullActions.class file 
in./org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.class.
 
 
 Then, I ran:
 
 jar 
uf<TOMCAT>/webapps/syncope/WEB-INF/lib/syncope-core-provisioning-java-2.1.5.jar./org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.class
 
 to add the LDAPPasswordPullActions.class to the 
yncope-core-provisioning-java-2.1.5.jar.
 
 Now, "tar tvf" shows:
 
 jar tvf syncope-core-provisioning-java-2.1.5.jar | grep LDAPPasswordPullAction
 7975 Sun May 03 15:56:42 UTC 
2020org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.class
 
 Then, I bounced the Tomcat, and went to the Syncope admin web app to 
Configuration ==> Implementations and tried to add the PULL_ACTIONS, but the 
LDAPPasswordPullActions does NOT appear there.
 
 What else do I need to do to make the pull action available? Is there a 
MANIFEST.MF that needs to be modified also?
 
 Thanks,
 Jim
 
     On Monday, May 4, 2020, 02:08:00 AM EDT, Andrea Patricelli 
<andreapatrice...@apache.org> wrote:  
  
   Hi Jim,
 
 Il 03/05/20 18:14, oh...@yahoo.com ha scritto:
 > Hi,
 >
 > I wanted to test pull actions, so I am trying to build and deploy the 
 > LDAPPasswordPullActions example:
 >
 > https://github.com/apache/syncope/blob/syncope-2.1.5/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.java
 >
 > I was able compile that class cleanly and I added that class to 
 > the<TOMAT>/webapps/syncope/WEB-INF/lib/syncope-core-provisioning-java-2.1.5.jar
 >  and then I bounced the Tomcat server.
 Do you mean that you added the class to the codebase of your archetype, 
 rebuilt the whole core module and deployed it into the Tomcat, right? 
 >
 > However, when I go into the Syncope admin web app and check under 
 > Implementations ==> PULL_ACTIONS, I don't see any pull actions appearing.
 >
 > Did I add the new class file to the correct JAR file?
 >
 > If so, what else would cause the new PULL ACTION to not appear?
 >
 > Thanks,
 > Jim 
 
 Best regards,
 Andrea
 
 -- 
 Dott. Andrea Patricelli
 Tel. +39 3204524292
 
 Engineer @ Tirasa S.r.l.
 Viale Vittoria Colonna 97 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 0859111173
 http://www.tirasa.net
 
 Apache Syncope PMC Member 
 
      -- Dott. Andrea PatricelliTel. +39 3204524292Engineer @ Tirasa 
S.r.l.Viale Vittoria Colonna 97 - 65127 PescaraTel +39 0859116307 / FAX +39 
0859111173http://www.tirasa.netApache Syncope PMC Member   

Reply via email to