plugin-dotcms-timed-content-unlock not working in dotCMS 4

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

plugin-dotcms-timed-content-unlock not working in dotCMS 4

dilekciy
Hi,

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

When the job tries to run the following error is thrown:

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------
[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 
java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties
at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]
at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]
Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]
... 3 more

Any advice?

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Nathan Keiter

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Nathan Keiter

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/a30d733e7d584f46ac87729c8dc0bbab%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dilekciy
The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

Tnx

Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@...
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mailto...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dile...@...
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DHjLyVacDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Nathan Keiter

Does a restart fix the issue?  If it does, then you are chasing a quartz ghost.

 

I mean just make sure there’s no red lines in eclipse, meaning eclipse thinks it should compile.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: <a href="javascript:" target="_blank">dot...@...
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [<a href="javascript:" target="_blank">mailto...@...] On Behalf Of <a href="javascript:" target="_blank">dile...@...
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2f9f42e230fd4b108d020c1efd7a1373%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Nathan Keiter
In reply to this post by dilekciy

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: <a href="javascript:" target="_blank">dot...@...
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [<a href="javascript:" target="_blank">mailto...@...] On Behalf Of <a href="javascript:" target="_blank">dile...@...
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/118dd57e8f6749e2a811a16093b5b143%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dilekciy
The project is compiling and there are no errors or red lines.

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

I also noticed the dotCMS 4 branch is removed https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/


Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-MLvkJOfDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="-MLvkJOfDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-MLvkJOfDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dile...@...
Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;"> https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-MLvkJOfDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-MLvkJOfDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Jason Tesser-2
Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:
The project is compiling and there are no errors or red lines.

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

wezell1
So we updated the master branch and it should now work on 4.x.  


Please try that and let us know your results.

Thanks,

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:
Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:
The project is compiling and there are no errors or red lines.

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]m] On Behalf Of [hidden email]


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]m] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--






3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAPL0VyE8zT8h4gj7wGgcULRVbsJG_ENJ9hRiMOR0PyJ36kxL4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dilekciy
Hi Will,

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

Maybe it isn't pushed yet?

Thanks!

Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:
So we updated the master branch and it should now work on 4.x.  

<a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master

Please try that and let us know your results.

Thanks,

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jason...@...> wrote:
Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dile...@...> wrote:
The project is compiling and there are no errors or red lines.

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

I also noticed the dotCMS 4 branch is removed <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/


Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;"> https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at <a href="http://org.quartz.core.JobRunShell.ru" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;">org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--






3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

<a href="javascript:" target="_blank" gdf-obfuscated-mailto="yPJQ6t3nDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">wi...@... | <a href="http://www.dotcms.com/" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;">dotcms.com

<a href="https://twitter.com/dotcms" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;"> <a href="http://www.linkedin.com/company/dotcms" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;"> <a href="https://plus.google.com/+Dotcms" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;" onclick="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;"> <a href="https://www.facebook.com/dotCMS" style="color:rgb(17,85,204);font-family:verdana,sans-serif;font-size:x-small" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;">

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Jason Tesser-2
should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:
Hi Will,

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

Maybe it isn't pushed yet?

Thanks!

Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:
So we updated the master branch and it should now work on 4.x.  


Please try that and let us know your results.

Thanks,

Will
On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:
Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 
On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:
The project is compiling and there are no errors or red lines.

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



--






3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPwnhGgNJCW%3D4dLz2WSrop%3DQYots27NsKP%3D5GVaqWh7cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dilekciy
Unable to deploy the repo to dotCMS 4.1.1

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...

Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:
should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

On Mon, Aug 28, 2017 at 7:23 AM <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="F4erRq3UDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dile...@...> wrote:
Hi Will,

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster%2Fbuild.gradle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcVIRL6dAVwPpyBtx-oVw8NDrANw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster%2Fbuild.gradle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcVIRL6dAVwPpyBtx-oVw8NDrANw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

Maybe it isn't pushed yet?

Thanks!

Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:
So we updated the master branch and it should now work on 4.x.  

<a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master

Please try that and let us know your results.

Thanks,

Will
On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:
Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 
On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:
The project is compiling and there are no errors or red lines.

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

I also noticed the dotCMS 4 branch is removed <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/


Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;"> https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at <a href="http://org.quartz.core.JobRunShell.ru" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;">org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--






3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

[hidden email] | <a href="http://www.dotcms.com/" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;">dotcms.com

<a href="https://twitter.com/dotcms" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;"> <a href="http://www.linkedin.com/company/dotcms" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;"> <a href="https://plus.google.com/+Dotcms" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;" onclick="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;"> <a href="https://www.facebook.com/dotCMS" style="color:rgb(17,85,204);font-family:verdana,sans-serif;font-size:x-small" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;">

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="F4erRq3UDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="F4erRq3UDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Nathan Keiter

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <<a href="javascript:" target="_blank">dile...@...> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: 305-900-2001 | Direct: 978.294.9429

 

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4db91adf17504cb0badab47ed4064906%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dilekciy
Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="P-malFzcDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="P-malFzcDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="P-malFzcDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dile...@...
Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster%2Fbuild.gradle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcVIRL6dAVwPpyBtx-oVw8NDrANw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster%2Fbuild.gradle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcVIRL6dAVwPpyBtx-oVw8NDrANw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

<a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 

I also noticed the dotCMS 4 branch is removed <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;"> https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at <a href="http://org.quartz.core.JobRunShell.ru" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;">org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com.


For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: 305-900-2001 | Direct: 978.294.9429


[hidden email] | <a href="http://www.dotcms.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;">dotcms.com

 

<a href="https://twitter.com/dotcms" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;"> <a href="http://www.linkedin.com/company/dotcms" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;"> <a href="https://plus.google.com/+Dotcms" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;" onclick="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;"> <a href="https://www.facebook.com/dotCMS" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;">

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="P-malFzcDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="P-malFzcDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Jason Tesser
would need to help us by telling us exactly what problems you are getting. When you deploy what errors are you getting?  

On Tue, Aug 29, 2017 at 4:43 AM <[hidden email]> wrote:
Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]


Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: <a href="tel:(305)%20900-2001" value="+13059002001" target="_blank">305-900-2001 | Direct: <a href="tel:(978)%20294-9429" value="+19782949429" target="_blank">978.294.9429

 

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dotCMS Users Group mailing list
So, I have heard a lot of hate on QUARTZ lately.  QUARTZ runs in the main classloader, it would make perfect sense that it cannot "see" classes deployed to your OSGI Bundle's Classloader.  You have to expose those classes to the main classloader in order for it work.  The process for exposing classes in OSGI is what is unreliable, not QUARTZ itself.  It goes against the philosophy of Felix OSGI to allow things outside of your bundle to "see" things inside your bundle, so that sort of makes sense when you keep that in mind.  

I do feel, however, that the process of exposing classes inside your bundle to the main classloader is much more stable with the move to ByteBuddy in the latest version.  

Nathan's solution of using cron to hit a servlet is similar to what we do.  We use QUARTZ to hit the servlet instead and that has been working flawlessly since OSGI was introduced back in 2x.  Another option to resolve the issue of classloading for quartz jobs is to deploy your own quartz instance inside of your bundle.  Perhaps a little overkill, but it would resolve the issue I think.

Just wanted to clear the air there ... QUARTZ is not unreliable, it is used in many cases around the world, is hardened in a lot of environments and it highly community supported.  The instability of this is how dotCMS is using Felix OSGI to expose classes as a convenience to us as developers, which is not a thing that Felix OSGI wants you to do.  The whole philosophy there is that everything is contained and protected in your bundle.  

Rant Over :P


On Tue, Aug 29, 2017 at 9:04 AM Jason Tesser <[hidden email]> wrote:
would need to help us by telling us exactly what problems you are getting. When you deploy what errors are you getting?  

On Tue, Aug 29, 2017 at 4:43 AM <[hidden email]> wrote:
Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]


Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: <a href="tel:(305)%20900-2001" value="+13059002001" target="_blank">305-900-2001 | Direct: <a href="tel:(978)%20294-9429" value="+19782949429" target="_blank">978.294.9429

 

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Jason Tesser-2
I hear you Chris. It really isn't that OSGi and Quartz is unreliable as much as the classpath is complex and it requires understanding of what is happening which can be confusing in the case of Quartz.  

We made some improvements here and have tested this plugin. So it should work 

On Tue, Aug 29, 2017 at 10:34 AM 'Chris Falzone' via dotCMS User Group <[hidden email]> wrote:
So, I have heard a lot of hate on QUARTZ lately.  QUARTZ runs in the main classloader, it would make perfect sense that it cannot "see" classes deployed to your OSGI Bundle's Classloader.  You have to expose those classes to the main classloader in order for it work.  The process for exposing classes in OSGI is what is unreliable, not QUARTZ itself.  It goes against the philosophy of Felix OSGI to allow things outside of your bundle to "see" things inside your bundle, so that sort of makes sense when you keep that in mind.  

I do feel, however, that the process of exposing classes inside your bundle to the main classloader is much more stable with the move to ByteBuddy in the latest version.  

Nathan's solution of using cron to hit a servlet is similar to what we do.  We use QUARTZ to hit the servlet instead and that has been working flawlessly since OSGI was introduced back in 2x.  Another option to resolve the issue of classloading for quartz jobs is to deploy your own quartz instance inside of your bundle.  Perhaps a little overkill, but it would resolve the issue I think.

Just wanted to clear the air there ... QUARTZ is not unreliable, it is used in many cases around the world, is hardened in a lot of environments and it highly community supported.  The instability of this is how dotCMS is using Felix OSGI to expose classes as a convenience to us as developers, which is not a thing that Felix OSGI wants you to do.  The whole philosophy there is that everything is contained and protected in your bundle.  

Rant Over :P


On Tue, Aug 29, 2017 at 9:04 AM Jason Tesser <[hidden email]> wrote:
would need to help us by telling us exactly what problems you are getting. When you deploy what errors are you getting?  

On Tue, Aug 29, 2017 at 4:43 AM <[hidden email]> wrote:
Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]


Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" value="+17173376993" target="_blank">717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: <a href="tel:(305)%20900-2001" value="+13059002001" target="_blank">305-900-2001 | Direct: <a href="tel:(978)%20294-9429" value="+19782949429" target="_blank">978.294.9429

 

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GMkDpqPdkB-oSAxj7nnsMPAXkQzHxWD698Gido6248CKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Nathan Keiter

Yes Chris. Quartz is fine, I was just speaking to the combination of dotCMS + OSGI + Quartz.  In fact static plugins should work fine with Quartz.  In our experience the OSGI ones mysteriously stop firing after random time intervals. At this point I try to do everything in OSGI, and only have configuration plugins be static.

 

I’d love to see uptime stats on OSGI quartz for 4.x.  Perhaps a job that writes to the DB once per day, then it could be audited to see if it’s still firing.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Tesser
Sent: Tuesday, August 29, 2017 10:43 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

I hear you Chris. It really isn't that OSGi and Quartz is unreliable as much as the classpath is complex and it requires understanding of what is happening which can be confusing in the case of Quartz.  

 

We made some improvements here and have tested this plugin. So it should work 

 

On Tue, Aug 29, 2017 at 10:34 AM 'Chris Falzone' via dotCMS User Group <[hidden email]> wrote:

So, I have heard a lot of hate on QUARTZ lately.  QUARTZ runs in the main classloader, it would make perfect sense that it cannot "see" classes deployed to your OSGI Bundle's Classloader.  You have to expose those classes to the main classloader in order for it work.  The process for exposing classes in OSGI is what is unreliable, not QUARTZ itself.  It goes against the philosophy of Felix OSGI to allow things outside of your bundle to "see" things inside your bundle, so that sort of makes sense when you keep that in mind.  

 

I do feel, however, that the process of exposing classes inside your bundle to the main classloader is much more stable with the move to ByteBuddy in the latest version.  

 

Nathan's solution of using cron to hit a servlet is similar to what we do.  We use QUARTZ to hit the servlet instead and that has been working flawlessly since OSGI was introduced back in 2x.  Another option to resolve the issue of classloading for quartz jobs is to deploy your own quartz instance inside of your bundle.  Perhaps a little overkill, but it would resolve the issue I think.

 

Just wanted to clear the air there ... QUARTZ is not unreliable, it is used in many cases around the world, is hardened in a lot of environments and it highly community supported.  The instability of this is how dotCMS is using Felix OSGI to expose classes as a convenience to us as developers, which is not a thing that Felix OSGI wants you to do.  The whole philosophy there is that everything is contained and protected in your bundle.  

 

Rant Over :P

 

 

On Tue, Aug 29, 2017 at 9:04 AM Jason Tesser <[hidden email]> wrote:

would need to help us by telling us exactly what problems you are getting. When you deploy what errors are you getting?  

 

On Tue, Aug 29, 2017 at 4:43 AM <[hidden email]> wrote:

Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" target="_blank"> 717.337.6993

https://www.gettysburg.edu

 


Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" target="_blank"> 717.337.6993

https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" target="_blank"> 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: <a href="tel:(717)%20337-6993" target="_blank"> 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: <a href="tel:(305)%20900-2001" target="_blank">305-900-2001 | Direct: <a href="tel:(978)%20294-9429" target="_blank">978.294.9429

 

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GMkDpqPdkB-oSAxj7nnsMPAXkQzHxWD698Gido6248CKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/061be21ca0f244fb9623d0a6ef5d612e%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

Maarten Daalder
In reply to this post by Jason Tesser-2
Perhaps the situation could be improved by creating a go-between/bridge service between the Quartz and OSGi classloaders?
The OSGi plugin could retrieve the service and then register a class (that the plugin loaded itself) with Quartz to run. The binding could probably also listen for plugin deactivation to remove the job.

It's been a while since I implemented embedded Quartz in a dotCMS plugin. :)

With kind regards,
Maarten Daalder
ISAAC

On Tuesday, 29 August 2017 16:43:37 UTC+2, LORDs_diakonos wrote:
I hear you Chris. It really isn't that OSGi and Quartz is unreliable as much as the classpath is complex and it requires understanding of what is happening which can be confusing in the case of Quartz.  

We made some improvements here and have tested this plugin. So it should work 

On Tue, Aug 29, 2017 at 10:34 AM 'Chris Falzone' via dotCMS User Group <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@...> wrote:
So, I have heard a lot of hate on QUARTZ lately.  QUARTZ runs in the main classloader, it would make perfect sense that it cannot "see" classes deployed to your OSGI Bundle's Classloader.  You have to expose those classes to the main classloader in order for it work.  The process for exposing classes in OSGI is what is unreliable, not QUARTZ itself.  It goes against the philosophy of Felix OSGI to allow things outside of your bundle to "see" things inside your bundle, so that sort of makes sense when you keep that in mind.  

I do feel, however, that the process of exposing classes inside your bundle to the main classloader is much more stable with the move to ByteBuddy in the latest version.  

Nathan's solution of using cron to hit a servlet is similar to what we do.  We use QUARTZ to hit the servlet instead and that has been working flawlessly since OSGI was introduced back in 2x.  Another option to resolve the issue of classloading for quartz jobs is to deploy your own quartz instance inside of your bundle.  Perhaps a little overkill, but it would resolve the issue I think.

Just wanted to clear the air there ... QUARTZ is not unreliable, it is used in many cases around the world, is hardened in a lot of environments and it highly community supported.  The instability of this is how dotCMS is using Felix OSGI to expose classes as a convenience to us as developers, which is not a thing that Felix OSGI wants you to do.  The whole philosophy there is that everything is contained and protected in your bundle.  

Rant Over :P


On Tue, Aug 29, 2017 at 9:04 AM Jason Tesser <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jason....@...> wrote:
would need to help us by telling us exactly what problems you are getting. When you deploy what errors are you getting?  

On Tue, Aug 29, 2017 at 4:43 AM <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dile...@...> wrote:
Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 


Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster%2Fbuild.gradle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcVIRL6dAVwPpyBtx-oVw8NDrANw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster%2Fbuild.gradle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcVIRL6dAVwPpyBtx-oVw8NDrANw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

<a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Ftree%2Fmaster\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLLXle5i9bUs5RuiZo51HjmMzuEw&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/tree/master

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 

I also noticed the dotCMS 4 branch is removed <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock%2Fblob%2Fmaster-4.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0uLnzemWhz1WZ362dflbXswXVTQ&#39;;return true;">https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master-4.0/



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Ftree%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ-bT_RP0L6YLXIqeShJKaKwcxLg&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) <a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms3.5.1%2Fosgi%2Forg.example.nkeiter.ip.restricted.servlet%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fip%2Frestricted%2Fservlet%2Fservlet%2FIpRestrictedServlet.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEfALYMp6M9-g5-35XSWJlmgSodlA&#39;;return true;"> https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see <a href="https://github.com/dotCMS/plugin-dotcms-timed-content-unlock" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-dotcms-timed-content-unlock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGNggZqmeRinfuojQbDwna0K1fvw&#39;;return true;"> https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at <a href="http://org.quartz.core.JobRunShell.ru" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.quartz.core.JobRunShell.ru\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGhBp_lQ5DZEVsxwpdC-U26h4TdWQ&#39;;return true;">org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/cf570df2-c946-48f3-956f-7821de71eb99%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/05bda630-c6ed-41b0-b230-44b27db725d8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GOL-ii7ZpVR-%2B8CCu6dbJ8fhUUbXcEpOX%2BePukGhKPE1Q%40mail.gmail.com.


For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: 305-900-2001 | Direct: 978.294.9429


[hidden email] | <a href="http://www.dotcms.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.dotcms.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNWs9V2WKwZWrVfr8NIkv4s5e0Dw&#39;;return true;">dotcms.com

 

<a href="https://twitter.com/dotcms" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFI7UKimTeQqANitfHPRcF_RMkrTw&#39;;return true;"> <a href="http://www.linkedin.com/company/dotcms" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdotcms\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_qDpNIBt3bgBzCOdMhHi9AfMwNA&#39;;return true;"> <a href="https://plus.google.com/+Dotcms" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;" onclick="this.href=&#39;https://plus.google.com/+Dotcms&#39;;return true;"> <a href="https://www.facebook.com/dotCMS" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.facebook.com%2FdotCMS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-Ge1oKMS8PGManhW1ZhuhY8-L9g&#39;;return true;">

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/865943af-cf8e-48cf-a473-11d252e7bc12%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/6acd0dc4-578c-4d09-982e-a83527b7cb81%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="vX_hF8koDwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/5f0bb389-1d55-408e-a595-a7b5d462a537%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: plugin-dotcms-timed-content-unlock not working in dotCMS 4

dotCMS Users Group mailing list
I’d love to see uptime stats on OSGI quartz for 4.x.  Perhaps a job that writes to the DB once per day, then it could be audited to see if it’s still firing.

My Quartz Jobs enter something in the logs every time they runs\.  I write a message when the job starts and when it ends.  I just queried the logs for our 2 Quartz Jobs that run every 30 mins each.   They have not missed a single run in 120 days on either production node. 96 runs each every day (2 times per hour / 2 servers).  Granted we are currently running 3.7 not 4.x and all they do is make an http request over localhost to the servlet that does all the work.  In fact, I cannot recall an instance where our importer or integrity checker jobs failed to run because of quartz failing to run the job.


On Tue, Aug 29, 2017 at 11:02 AM Maarten Daalder <[hidden email]> wrote:
Perhaps the situation could be improved by creating a go-between/bridge service between the Quartz and OSGi classloaders?
The OSGi plugin could retrieve the service and then register a class (that the plugin loaded itself) with Quartz to run. The binding could probably also listen for plugin deactivation to remove the job.

It's been a while since I implemented embedded Quartz in a dotCMS plugin. :)

With kind regards,
Maarten Daalder
ISAAC


On Tuesday, 29 August 2017 16:43:37 UTC+2, LORDs_diakonos wrote:
I hear you Chris. It really isn't that OSGi and Quartz is unreliable as much as the classpath is complex and it requires understanding of what is happening which can be confusing in the case of Quartz.  

We made some improvements here and have tested this plugin. So it should work 

On Tue, Aug 29, 2017 at 10:34 AM 'Chris Falzone' via dotCMS User Group <[hidden email]> wrote:
So, I have heard a lot of hate on QUARTZ lately.  QUARTZ runs in the main classloader, it would make perfect sense that it cannot "see" classes deployed to your OSGI Bundle's Classloader.  You have to expose those classes to the main classloader in order for it work.  The process for exposing classes in OSGI is what is unreliable, not QUARTZ itself.  It goes against the philosophy of Felix OSGI to allow things outside of your bundle to "see" things inside your bundle, so that sort of makes sense when you keep that in mind.  

I do feel, however, that the process of exposing classes inside your bundle to the main classloader is much more stable with the move to ByteBuddy in the latest version.  

Nathan's solution of using cron to hit a servlet is similar to what we do.  We use QUARTZ to hit the servlet instead and that has been working flawlessly since OSGI was introduced back in 2x.  Another option to resolve the issue of classloading for quartz jobs is to deploy your own quartz instance inside of your bundle.  Perhaps a little overkill, but it would resolve the issue I think.

Just wanted to clear the air there ... QUARTZ is not unreliable, it is used in many cases around the world, is hardened in a lot of environments and it highly community supported.  The instability of this is how dotCMS is using Felix OSGI to expose classes as a convenience to us as developers, which is not a thing that Felix OSGI wants you to do.  The whole philosophy there is that everything is contained and protected in your bundle.  

Rant Over :P


On Tue, Aug 29, 2017 at 9:04 AM Jason Tesser <[hidden email]> wrote:
would need to help us by telling us exactly what problems you are getting. When you deploy what errors are you getting?  

On Tue, Aug 29, 2017 at 4:43 AM <[hidden email]> wrote:
Yes

Op maandag 28 augustus 2017 17:23:08 UTC+2 schreef Nathan Keiter:

Did you re-compile first?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]


Sent: Monday, August 28, 2017 11:21 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Unable to deploy the repo to dotCMS 4.1.1

 

When I change the dotCMS version in the gradle build file to 4.1.1 and update the OSGi framework imports I'm able to deploy it, but that still doesn't work...


Op maandag 28 augustus 2017 15:02:19 UTC+2 schreef LORDs_diakonos:

should be 4.1 BUT this is just compile time for what it is worth and won't effect much 

 

On Mon, Aug 28, 2017 at 7:23 AM <[hidden email]> wrote:

Hi Will,

 

I've just checked the GitHub page and I noticed that build.gradle file points to an older dotCMS (3.2) version, see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock/blob/master/build.gradle

 

Maybe it isn't pushed yet?


Thanks!


Op vrijdag 25 augustus 2017 14:42:44 UTC+2 schreef Will Ezell:

So we updated the master branch and it should now work on 4.x.  

 

 

Please try that and let us know your results.

 

Thanks,

 

Will

On Fri, Aug 25, 2017 at 8:36 AM, Jason Tesser <[hidden email]> wrote:

Yea our plugins aren't always updated on release of the CMS. It happens over time. It was removed because we are making some 4.x fixes to it.  It should be back with a working 4.x version pretty soon 

On Fri, Aug 25, 2017 at 3:14 AM <[hidden email]> wrote:

The project is compiling and there are no errors or red lines.

 

I've tried restarting dotCMS and the OSGI framework, unfortunately with no result.

 



Op donderdag 24 augustus 2017 16:37:59 UTC+2 schreef Nathan Keiter:

If it’s inconvenient to restart the dotCMS, you could try restarting the OSGI framework as a pre-test.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 


Sent: Thursday, August 24, 2017 10:34 AM
To: dotCMS User Group
Subject: Re: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

The plugin can't find his own class, while the class is there. Which dependencies should I check in this case?

 

Tnx


Op donderdag 24 augustus 2017 15:38:40 UTC+2 schreef Nathan Keiter:

Oh, my mistake.  Looking at the link you provided it seems you are using the 4.0 version.

 

Did you try uploading it in eclipse to check dependencies?

 

Also, I’d stay away from OSGI quartz jobs.  They are unreliable.

 

Restarting the server might give you a temporary fix, but it could go silly again.  Something having to do with the quartz engine running in core, but the classes for OSGI sometimes get “lost” or inaccessible to quartz over time.  You have to really stay on top of it, or you could go a whole month without realizing your job isn’t firing anymore.

 

cron fired servlets are much more reliable. I don’t have a 4.x example uploaded yet., but here’s a 3.x example: https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Basically from the context of the server, you hit the URL.  The server’s own IP should be the only one that works. (You have to configure that.) https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet/src/main/java/org/example/nkeiter/ip/restricted/servlet/servlet/IpRestrictedServlet.java

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Thursday, August 24, 2017 9:21 AM
To: [hidden email]
Subject: RE: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

3.x plugins are not compatible with 4.x.

 

You will need to update the build.gradle to point at the correct maven source repo.

 

Also, you will likely need to update imports due to “repackage” class location changes. (Yet again. Hopefully they’ve made up their mind and these won’t move again.)

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, August 24, 2017 6:17 AM
To: dotCMS User Group
Subject: [dotcms] plugin-dotcms-timed-content-unlock not working in dotCMS 4

 

Hi,

 

We've been always using the timed content unlock plugin in dotCMS 3.X (see https://github.com/dotCMS/plugin-dotcms-timed-content-unlock)

 

Since dotCMS 4 this plugin isn't working anymore, even though we are deploying the version that should be compatible with dotCMS 4 (see branch master-4.0)

 

When the job tries to run the following error is thrown:

 

[24/08/17 11:13:00:080 BST]  INFO job.UnlockContentTimer: Timed Unlock: ------------------------------------------

[24/08/17 11:13:00:093 BST] ERROR core.JobRunShell: Job OSGi Jobs.Unlock locked content based on a timer threw an unhandled Exception: 

java.lang.NoClassDefFoundError: com/dotcms/job/OSGiPluginProperties

            at com.dotcms.job.UnlockContentTimer.execute(UnlockContentTimer.java:29) ~[?:?]

            at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [dot.quartz-all-1.8.6_2.jar:?]

            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [dot.quartz-all-1.8.6_2.jar:?]

Caused by: java.lang.ClassNotFoundException: com.dotcms.job.OSGiPluginProperties

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) ~[catalina.jar:8.5.15]

            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.15]

            ... 3 more

 

Any advice?

 

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ff9422e9-4820-4b15-b1e1-07917335559a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/494ed5ea0e68461383a3c7d3920afac7%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



 

--

 

 

 

 

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: 305-900-2001 | Direct: 978.294.9429

 

   

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/105f8460-aaff-4f9c-8395-0d3b212a347f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWeqRiKMrE2OMdT2vLJWujgnNuKrSKTkV8NHNiVF0Wy6mQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgUBGkoT-7NDNKe1eCSNKTb691b9HsWhaoH1NY%2BFhVb-LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/5f0bb389-1d55-408e-a595-a7b5d462a537%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgVQgjYtL__whyok3gkTOegPTJqzQUpnA6ujfAuosjjuuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
12