[4.1.1] Angular Admin Portlets

15 views
Skip to first unread message

Nathan Keiter

unread,
Nov 10, 2017, 9:27:54 AM11/10/17
to dot...@googlegroups.com

Does anyone have experience writing dotCMS admin portlets in Angular?

 

I’m looking to write one for a current project.

 

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

 

Nathan Keiter

unread,
Nov 10, 2017, 11:26:13 AM11/10/17
to dot...@googlegroups.com

Going through the delivered source code for admin portlets all I see is struts with jsps and heavy utilization of Dojo.

 

Can’t find a single Angular reference. Is Angular being implemented via Dojo?

 

Is it not true Angular or Angular 2, but rather emulating Angular like behavior with Dojo?

 

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

 

--
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 dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/5046c2f4717c4ab189788b7e4265d53d%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

Jason Tesser

unread,
Nov 10, 2017, 11:32:14 AM11/10/17
to dot...@googlegroups.com
I would need to play with it BUT we have a REST Portlet  

We use NG 4 in the latest.  dotCMS never implmented AngularJS. 

You should be able to map a Rest Portlet. Look at our portlet.xml 

Nathan Keiter

unread,
Nov 10, 2017, 11:35:21 AM11/10/17
to dot...@googlegroups.com

Ok, thanks. That’s making a little more sense. I’ll look for it.

 

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

 

Nathan Keiter

unread,
Nov 10, 2017, 11:42:01 AM11/10/17
to dot...@googlegroups.com

Jason,

 

My goal is to leverage the same modern UI and be able to link seamlessly to other backend features, such as the content edit screen.

 

Basically have it work just like your stuff works.

 

So if you are doing NG 4 via REST, that’s what I’ll do. J

Nathan Keiter

unread,
Nov 10, 2017, 2:39:11 PM11/10/17
to dot...@googlegroups.com

Jason, it looks like the answer to most of my questions is in this file. J

 

/tomcat8/webapps/ROOT/WEB-INF/jsp/rest_example_portlet/render.jsp

Jason Tesser

unread,
Nov 10, 2017, 5:02:21 PM11/10/17
to dot...@googlegroups.com
that is older but yes should also work.  

Nathan Keiter

unread,
Nov 13, 2017, 11:56:48 AM11/13/17
to dot...@googlegroups.com
How do I get my portlet JSPs from the OSGI plugin into the proper "/WEB-INF/.." path?


Portlet is working, but can't find JSPs. See screenshots.


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: dot...@googlegroups.com <dot...@googlegroups.com> on behalf of Jason Tesser <jason...@gmail.com>
Sent: Friday, November 10, 2017 5:02 PM
To: dot...@googlegroups.com
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

that is older but yes should also work.

On Fri, Nov 10, 2017 at 2:39 PM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
Jason, it looks like the answer to most of my questions is in this file. :)

/tomcat8/webapps/ROOT/WEB-INF/jsp/rest_example_portlet/render.jsp

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter
Sent: Friday, November 10, 2017 11:42 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Jason,

My goal is to leverage the same modern UI and be able to link seamlessly to other backend features, such as the content edit screen.

Basically have it work just like your stuff works.

So if you are doing NG 4 via REST, that’s what I’ll do. :)

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Friday, November 10, 2017 11:35 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Ok, thanks. That’s making a little more sense. I’ll look for it.

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Friday, November 10, 2017 11:32 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

I would need to play with it BUT we have a REST Portlet

We use NG 4 in the latest. dotCMS never implmented AngularJS.

You should be able to map a Rest Portlet. Look at our portlet.xml

On Fri, Nov 10, 2017 at 11:26 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
Going through the delivered source code for admin portlets all I see is struts with jsps and heavy utilization of Dojo.

Can’t find a single Angular reference. Is Angular being implemented via Dojo?

Is it not true Angular or Angular 2, but rather emulating Angular like behavior with Dojo?

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter
Sent: Friday, November 10, 2017 9:28 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: [dotcms] [4.1.1] Angular Admin Portlets

Does anyone have experience writing dotCMS admin portlets in Angular?

I’m looking to write one for a current project.

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

--
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/5046c2f4717c4ab189788b7e4265d53d%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/5046c2f4717c4ab189788b7e4265d53d%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6d28f33905ff49f8abe0cbf852c45742%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/6d28f33905ff49f8abe0cbf852c45742%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GMHNxTmXUxCM_UAYx9xnmTeerCVO8ddPA3satYyXQffoA%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GMHNxTmXUxCM_UAYx9xnmTeerCVO8ddPA3satYyXQffoA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/99cc44571c6d458a80aecb74afc1e846%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/99cc44571c6d458a80aecb74afc1e846%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/044feaa52d4341109d695696388508c8%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/044feaa52d4341109d695696388508c8%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d6353573679b40d78cc191c407deedc7%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/d6353573679b40d78cc191c407deedc7%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNLd%2B9-4k_rsJA82PJjVri_85hjvsur3E9zC1_NeDdMaQ%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNLd%2B9-4k_rsJA82PJjVri_85hjvsur3E9zC1_NeDdMaQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
Screen Shot 2017-11-13 at 10.40.44 AM.png
Screen Shot 2017-11-13 at 11.04.52 AM.png
Screen Shot 2017-11-13 at 11.05.01 AM.png

Xander Steinmann

unread,
Nov 14, 2017, 2:32:55 AM11/14/17
to dotCMS User Group
Hi Nathan,

If I put a velocity file in the OSGi-plugin's /ext folder it is placed in WEB-INF/velocity/osgi/my-plugin-name/ext. I assume the same thing will happen to a JSP file, or maybe WEB-INF/jsp/osgi/my-plugin-name/ext? For a portlet I'm able to access it with "/ext/my-vtl-file.vtl" in the view-template value field of portlet.xml.

Kind regards,

Xander

Nathan Keiter

unread,
Nov 14, 2017, 8:39:35 AM11/14/17
to dot...@googlegroups.com

Yeah, I figured that out yesterday. I had named the folder something else. It is required to be named “ext” or it won’t work.

 

On other topics, I’m beginning to think the new REST portlets are not compatible with OSGI, just static plugins.

 

I was able to access it as a JSP portlet via OSGI.

 

The new REST portlets are very cool, but I can’t be tied down to a static plugin requiring a restart.

 

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: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Xander Steinmann
Sent: Tuesday, November 14, 2017 2:33 AM
To: dotCMS User Group
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

 

Hi Nathan,

--

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 dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com.

Nathan Keiter

unread,
Nov 14, 2017, 8:49:56 AM11/14/17
to dot...@googlegroups.com

Looking at the source code for the endpoint “/api/portlet”, for REST portlets, it is hardcoded to look in WEB-INF/jsp/.

 

It would be a very simple change to have it look in the OSGI directories as well.

 

I might try that as an override plugin to allow REST portlets via OSGI. This seems to be the only obstacle in the way.

 

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: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter


Sent: Tuesday, November 14, 2017 8:40 AM
To: dot...@googlegroups.com

Jason Tesser

unread,
Nov 14, 2017, 9:08:04 AM11/14/17
to dot...@googlegroups.com
You can in your activator copy your files and on undeploy delete them.  

Nathan Keiter

unread,
Nov 14, 2017, 9:12:53 AM11/14/17
to dot...@googlegroups.com

What would be the context root for the file operation? That sounds like an option. I just need to know what the path would be in that context to WEB-INF/jsp/{portlet-name}/{jsp-name}

 

I was thinking of overriding this class. Adding a catch for FileNotFound, and having it look where the OSGI JSPs are stored alternatively in the catch.

 

https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotcms/rest/BaseRestPortlet.java#L100

 

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

 

Jason Tesser

unread,
Nov 14, 2017, 9:21:28 AM11/14/17
to dot...@googlegroups.com
The copy your be a Java file copy. You have access to the file system and such. Just place the files in the same place a static plugin would place your files from the ROOT directory 

Nathan Keiter

unread,
Nov 14, 2017, 9:23:19 AM11/14/17
to dot...@googlegroups.com

Ok, I’ll figure it out then… the generic activator’s copy resource method might give me a clue as to the context each way from the Activator’s perspective.

Jason Tesser

unread,
Nov 14, 2017, 9:29:14 AM11/14/17
to dot...@googlegroups.com
I see what you are asking.  The source file is in the JAR.  You need get the file from the JAR then copy those files to the location you want. 
Consider the below pseudo example
URL inputUrl = getClass().getResource("/absolute/path/of/source/in/jar/file");
File dest = new File("/path/to/destination/file");
FileUtils.copyURLToFile(inputUrl, dest);

Nathan Keiter

unread,
Nov 14, 2017, 9:30:49 AM11/14/17
to dot...@googlegroups.com

Yes, thanks. I’m assuming the destination context is the parent of WEB-INF ? (The site doc root?)

Nathan Keiter

unread,
Nov 14, 2017, 10:50:13 AM11/14/17
to dot...@googlegroups.com

Hmm. It can’t seem to find my plugin files. I’m thinking I’m looking in the wrong path? This is what I mean by context…

 

If I say URL = “jsp/rest_portlet_transportation_scheduling/” I get:

 

INFO   | jvm 1    | 2017/11/14 10:20:22 | DEBUG: Bundle Transportation Portlets [54] edu/gettysburg/nkeiter/transportation/portlet/osgi/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]

If I say URL = “/resources/jsp/rest_portlet_transportation_scheduling/” I get:

 

INFO   | jvm 1    | 2017/11/14 10:26:05 | DEBUG: Bundle Transportation Portlets [54] resources/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]

Activator source:

 

https://gist.github.com/nkeiter/64fbaf94166a02ae8b4dc014922cab51#file-rest-portlet-activator-L30-L49

Nathan Keiter

unread,
Nov 14, 2017, 11:02:05 AM11/14/17
to dot...@googlegroups.com
Plugin source directory structure:


[cid:4db7e559-128c-479b-82de-980e8cab6227]


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: dot...@googlegroups.com <dot...@googlegroups.com> on behalf of Nathan Keiter <nke...@gettysburg.edu>
Sent: Tuesday, November 14, 2017 10:50 AM
To: dot...@googlegroups.com
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Hmm. It can’t seem to find my plugin files. I’m thinking I’m looking in the wrong path? This is what I mean by context…

If I say URL = “jsp/rest_portlet_transportation_scheduling/” I get:

INFO | jvm 1 | 2017/11/14 10:20:22 | DEBUG: Bundle Transportation Portlets [54] edu/gettysburg/nkeiter/transportation/portlet/osgi/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]
If I say URL = “/resources/jsp/rest_portlet_transportation_scheduling/” I get:

INFO | jvm 1 | 2017/11/14 10:26:05 | DEBUG: Bundle Transportation Portlets [54] resources/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]
Activator source:

https://gist.github.com/nkeiter/64fbaf94166a02ae8b4dc014922cab51#file-rest-portlet-activator-L30-L49

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<https://www.gettysburg.edu/>

From: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Tuesday, November 14, 2017 9:31 AM
To: dot...@googlegroups.com
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Yes, thanks. I’m assuming the destination context is the parent of WEB-INF ? (The site doc root?)

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<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Tuesday, November 14, 2017 9:29 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

I see what you are asking. The source file is in the JAR. You need get the file from the JAR then copy those files to the location you want.
Consider the below pseudo example
URL inputUrl = getClass().getResource("/absolute/path/of/source/in/jar/file");
File dest = new File("/path/to/destination/file");
FileUtils.copyURLToFile(inputUrl, dest);

On Tue, Nov 14, 2017 at 9:23 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
Ok, I’ll figure it out then… the generic activator’s copy resource method might give me a clue as to the context each way from the Activator’s perspective.

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Jason Tesser
Sent: Tuesday, November 14, 2017 9:21 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

The copy your be a Java file copy. You have access to the file system and such. Just place the files in the same place a static plugin would place your files from the ROOT directory

On Tue, Nov 14, 2017 at 9:12 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
What would be the context root for the file operation? That sounds like an option. I just need to know what the path would be in that context to WEB-INF/jsp/{portlet-name}/{jsp-name}

I was thinking of overriding this class. Adding a catch for FileNotFound, and having it look where the OSGI JSPs are stored alternatively in the catch.

https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotcms/rest/BaseRestPortlet.java#L100

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Jason Tesser
Sent: Tuesday, November 14, 2017 9:08 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

You can in your activator copy your files and on undeploy delete them.

On Tue, Nov 14, 2017 at 8:49 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
Looking at the source code for the endpoint “/api/portlet”, for REST portlets, it is hardcoded to look in WEB-INF/jsp/.

It would be a very simple change to have it look in the OSGI directories as well.

I might try that as an override plugin to allow REST portlets via OSGI. This seems to be the only obstacle in the way.

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter
Sent: Tuesday, November 14, 2017 8:40 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Yeah, I figured that out yesterday. I had named the folder something else. It is required to be named “ext” or it won’t work.

On other topics, I’m beginning to think the new REST portlets are not compatible with OSGI, just static plugins.

I was able to access it as a JSP portlet via OSGI.

The new REST portlets are very cool, but I can’t be tied down to a static plugin requiring a restart.

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Xander Steinmann
Sent: Tuesday, November 14, 2017 2:33 AM
To: dotCMS User Group
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

Hi Nathan,

If I put a velocity file in the OSGi-plugin's /ext folder it is placed in WEB-INF/velocity/osgi/my-plugin-name/ext. I assume the same thing will happen to a JSP file, or maybe WEB-INF/jsp/osgi/my-plugin-name/ext? For a portlet I'm able to access it with "/ext/my-vtl-file.vtl" in the view-template value field of portlet.xml.

Kind regards,

Xander
--
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com<https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/14efab7ddf3f47d09be5eab20997a0f0%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/14efab7ddf3f47d09be5eab20997a0f0%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.

Nathan Keiter

unread,
Nov 14, 2017, 11:52:07 AM11/14/17
to dot...@googlegroups.com

Jason, no matter what I try I cannot get this simple file copy operation to work. This is very frustrating.

 

Could someone please tell me how to access these files? I just need the right pathing context for both the source and the destination. Guessing isn’t getting me anywhere.

 

Latest attempt seeks to get contexts.

 

https://gist.github.com/nkeiter/88041f1b72783802f8aa6dfe8eb111f5#file-rest-portlet-activator-another-attempt-L33-L56

 

Still fails:

 

[14/11/17 11:45:18:699 EST]  INFO osgi.Activator: Got to start( BundleContext ) Transportation Portlets

[14/11/17 11:45:18:734 EST] ERROR osgi.Activator: Can't copy directory [rest_portlet_transportation_scheduling]

java.io.FileNotFoundException: Source 'bundle:\54.17:1\jsp\rest_portlet_transportation_scheduling' does not exist

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at edu.gettysburg.nkeiter.transportation.portlet.osgi.Activator.copyJSPs(Activator.java:48) [edu.gettysburg.nkeiter.transportation.portlet-1.0.jar:?]

            at edu.gettysburg.nkeiter.transportation.portlet.osgi.Activator.start(Activator.java:94) [edu.gettysburg.nkeiter.transportation.portlet-1.0.jar:?]

            at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.Felix.activateBundle(Felix.java:2238) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1253) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1225) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1213) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:507) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

[14/11/17 11:45:18:738 EST] ERROR osgi.Activator: Can't copy directory [rest_portlet_transportation_calendar]

java.io.FileNotFoundException: Source 'bundle:\54.17:1\jsp\rest_portlet_transportation_calendar' does not exist

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at edu.gettysburg.nkeiter.transportation.portlet.osgi.Activator.copyJSPs(Activator.java:48) [edu.gettysburg.nkeiter.transportation.portlet-1.0.jar:?]

            at edu.gettysburg.nkeiter.transportation.portlet.osgi.Activator.start(Activator.java:94) [edu.gettysburg.nkeiter.transportation.portlet-1.0.jar:?]

            at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.Felix.activateBundle(Felix.java:2238) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1253) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1225) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1213) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:507) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

[14/11/17 11:45:18:751 EST] ERROR osgi.Activator: Can't copy directory [rest_portlet_transportation]

java.io.FileNotFoundException: Source 'bundle:\54.17:1\jsp\rest_portlet_transportation' does not exist

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at com.dotcms.repackage.org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896) ~[dot.commons-io-2.0.1_2.jar:2.0.1]

            at edu.gettysburg.nkeiter.transportation.portlet.osgi.Activator.copyJSPs(Activator.java:48) [edu.gettysburg.nkeiter.transportation.portlet-1.0.jar:?]

            at edu.gettysburg.nkeiter.transportation.portlet.osgi.Activator.start(Activator.java:94) [edu.gettysburg.nkeiter.transportation.portlet-1.0.jar:?]

            at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.Felix.activateBundle(Felix.java:2238) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) [org.apache.felix.framework-5.6.2.jar:?]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1253) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1225) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1213) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:507) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

            at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312) [org.apache.felix.fileinstall-3.5.8.jar:3.5.8]

 

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

 

To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.

To post to this group, send email to dot...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1510675318735.40093%40gettysburg.edu.

Jason Tesser

unread,
Nov 14, 2017, 12:36:03 PM11/14/17
to dot...@googlegroups.com
i think you might need to copy each file not the whole directory from the JAR.  It is the source it is not reading FWIW
or maybe move to the static plugin

Nathan Keiter

unread,
Nov 14, 2017, 1:08:15 PM11/14/17
to dot...@googlegroups.com

Static plugin not an option. I’ll try file by file…

 

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

 

Nathan Keiter

unread,
Nov 14, 2017, 3:44:49 PM11/14/17
to dot...@googlegroups.com

Still no luck. Trying to copy file by file. No errors, no log output whatsoever, does nothing all.

 

https://gist.github.com/nkeiter/837fc63acb56f678661995eba1bb9b10#file-rest-portlet-activator-yet-another-attempt-L37-L115

 

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

 

Jason Tesser

unread,
Nov 14, 2017, 3:52:27 PM11/14/17
to dot...@googlegroups.com
so 2 things 

1. Make sure what you think is in the OSGi is really in the jar after you build
2. I would get the JAR from the class. so get the activator class or something in the JAR then getClass().getResource  OR just path or the JAR. You know where it is. It is in the load directory of felix

Nathan Keiter

unread,
Nov 14, 2017, 3:58:51 PM11/14/17
to dot...@googlegroups.com

Added some debug code. It looks like it’s finding my files just fine. But the destination “WEB-INF” is coming out null now. I’ll see if I can locate WEB-INF in a different manner.

 

[14/11/17 15:55:50:263 EST]  INFO osgi.Activator: Got to start( BundleContext ) Transportation Portlets

[14/11/17 15:55:50:313 EST]  INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_scheduling/

[14/11/17 15:55:50:313 EST]  INFO osgi.Activator: destinationPath = null

[14/11/17 15:55:50:315 EST]  INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 15:55:50:315 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/init.jsp

[14/11/17 15:55:50:315 EST]  INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation_scheduling/init.jsp

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/render.jsp

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation_scheduling/render.jsp

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_calendar/

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: destinationPath = null

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_calendar/render.jsp

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation_calendar/render.jsp

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation/

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: destinationPath = null

[14/11/17 15:55:50:316 EST]  INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 15:55:50:317 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/render.jsp

[14/11/17 15:55:50:317 EST]  INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation/render.jsp

[14/11/17 15:55:50:317 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/testing.jsp

[14/11/17 15:55:50:317 EST]  INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation/testing.jsp

Nathan Keiter

unread,
Nov 14, 2017, 4:00:36 PM11/14/17
to dot...@googlegroups.com

What’s the path to WEB-INF from the Activators perspective?

Nathan Keiter

unread,
Nov 14, 2017, 4:09:59 PM11/14/17
to dot...@googlegroups.com

All I was missing was a blasted leading slash… arg.

 

The file copy is working now.

 

[14/11/17 16:05:38:139 EST]  INFO osgi.Activator: Got to start( BundleContext ) Transportation Portlets

[14/11/17 16:05:38:184 EST]  INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_scheduling/

[14/11/17 16:05:38:184 EST]  INFO osgi.Activator: destinationPath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF

[14/11/17 16:05:38:186 EST]  INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 16:05:38:186 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/init.jsp

[14/11/17 16:05:38:186 EST]  INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation_scheduling/init.jsp

[14/11/17 16:05:38:194 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/render.jsp

[14/11/17 16:05:38:194 EST]  INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation_scheduling/render.jsp

[14/11/17 16:05:38:197 EST]  INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_calendar/

[14/11/17 16:05:38:197 EST]  INFO osgi.Activator: destinationPath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF

[14/11/17 16:05:38:197 EST]  INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 16:05:38:197 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_calendar/render.jsp

[14/11/17 16:05:38:197 EST]  INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation_calendar/render.jsp

[14/11/17 16:05:38:201 EST]  INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation/

[14/11/17 16:05:38:201 EST]  INFO osgi.Activator: destinationPath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF

[14/11/17 16:05:38:201 EST]  INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 16:05:38:201 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/render.jsp

[14/11/17 16:05:38:201 EST]  INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation/render.jsp

[14/11/17 16:05:38:205 EST]  INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/testing.jsp

[14/11/17 16:05:38:205 EST]  INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation/testing.jsp

Nathan Keiter

unread,
Nov 17, 2017, 8:52:59 AM11/17/17
to dot...@googlegroups.com

Jason, the rest portlet is now being served by the rest portlet endpoint, however now I need to figure out how to add the portlet to the admin menu? Is there a special init param setting I need in portlet.xml? One option might be to add a dummy JSP as a “JSP Portlet” which simply redirects to the main rest portlet JSP.

 

What are my options to get this on the admin menu?

Jason Tesser

unread,
Nov 17, 2017, 9:00:12 AM11/17/17
to dot...@googlegroups.com
If it is in the portlet.xml which I assume it must be then you should be good 

Nathan Keiter

unread,
Nov 17, 2017, 9:25:17 AM11/17/17
to dot...@googlegroups.com
Jason, Maybe I have the pathing wrong? I'm trying to go one directory up from where it normally looks, since it won't be in the "/html/portlet/ext" folder.


<portlet>
<portlet-name>REST_PORTLET_TRANSPORTATION_SCHEDULING</portlet-name>
<display-name>Transportation Scheduling</display-name>
<portlet-class>com.dotcms.rest.BaseRestPortlet</portlet-class>
<init-param>
<name>view-jsp</name>
<value>../WEB-INF/jsp/rest_portlet_transportation_scheduling/render.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<security-role-ref>
<role-name>CMS Administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>Transportation Publisher</role-name>
</security-role-ref>
</portlet>


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: Friday, November 17, 2017 8:59 AM
To: dot...@googlegroups.com
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

If it is in the portlet.xml which I assume it must be then you should be good

On Fri, Nov 17, 2017 at 8:52 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
Jason, the rest portlet is now being served by the rest portlet endpoint, however now I need to figure out how to add the portlet to the admin menu? Is there a special init param setting I need in portlet.xml? One option might be to add a dummy JSP as a “JSP Portlet” which simply redirects to the main rest portlet JSP.

What are my options to get this on the admin menu?

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter
Sent: Tuesday, November 14, 2017 4:10 PM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

All I was missing was a blasted leading slash… arg.

The file copy is working now.

[14/11/17 16:05:38:139 EST] INFO osgi.Activator: Got to start( BundleContext ) Transportation Portlets
[14/11/17 16:05:38:184 EST] INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_scheduling/
[14/11/17 16:05:38:184 EST] INFO osgi.Activator: destinationPath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF
[14/11/17 16:05:38:186 EST] INFO osgi.Activator: entries.hasMoreElements() = true
[14/11/17 16:05:38:186 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/init.jsp
[14/11/17 16:05:38:186 EST] INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation_scheduling/init.jsp
[14/11/17 16:05:38:194 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/render.jsp
[14/11/17 16:05:38:194 EST] INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation_scheduling/render.jsp
[14/11/17 16:05:38:197 EST] INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_calendar/
[14/11/17 16:05:38:197 EST] INFO osgi.Activator: destinationPath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF
[14/11/17 16:05:38:197 EST] INFO osgi.Activator: entries.hasMoreElements() = true
[14/11/17 16:05:38:197 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_calendar/render.jsp
[14/11/17 16:05:38:197 EST] INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation_calendar/render.jsp
[14/11/17 16:05:38:201 EST] INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation/
[14/11/17 16:05:38:201 EST] INFO osgi.Activator: destinationPath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF
[14/11/17 16:05:38:201 EST] INFO osgi.Activator: entries.hasMoreElements() = true
[14/11/17 16:05:38:201 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/render.jsp
[14/11/17 16:05:38:201 EST] INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation/render.jsp
[14/11/17 16:05:38:205 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/testing.jsp
[14/11/17 16:05:38:205 EST] INFO osgi.Activator: resourceFilePath = D:\websiteRoot\dotCMSRoot\dotserver\tomcat-8.0.18\webapps\ROOT\WEB-INF/jsp/rest_portlet_transportation/testing.jsp


Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Tuesday, November 14, 2017 4:01 PM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

What’s the path to WEB-INF from the Activators perspective?

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Tuesday, November 14, 2017 3:52 PM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

so 2 things

1. Make sure what you think is in the OSGi is really in the jar after you build
2. I would get the JAR from the class. so get the activator class or something in the JAR then getClass().getResource OR just path or the JAR. You know where it is. It is in the load directory of felix

On Tue, Nov 14, 2017 at 3:44 PM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>> wrote:
Still no luck. Trying to copy file by file. No errors, no log output whatsoever, does nothing all.

https://gist.github.com/nkeiter/837fc63acb56f678661995eba1bb9b10#file-rest-portlet-activator-yet-another-attempt-L37-L115

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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>
Phone: 717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter
Sent: Tuesday, November 14, 2017 1:08 PM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Static plugin not an option. I’ll try file by file…

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Tuesday, November 14, 2017 12:36 PM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets

i think you might need to copy each file not the whole directory from the JAR. It is the source it is not reading FWIW
or maybe move to the static plugin

-----Original Message-----
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter

Sent: Tuesday, November 14, 2017 11:02 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



Plugin source directory structure:





[cid:4db7e559-128c-479b-82de-980e8cab6227]





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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu

________________________________

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> <dot...@googlegroups.com<mailto:dot...@googlegroups.com>> on behalf of Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>>

Sent: Tuesday, November 14, 2017 10:50 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>

Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets



Hmm. It can’t seem to find my plugin files. I’m thinking I’m looking in the wrong path? This is what I mean by context…



If I say URL = “jsp/rest_portlet_transportation_scheduling/” I get:



INFO | jvm 1 | 2017/11/14 10:20:22 | DEBUG: Bundle Transportation Portlets [54] edu/gettysburg/nkeiter/transportation/portlet/osgi/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]

If I say URL = “/resources/jsp/rest_portlet_transportation_scheduling/” I get:



INFO | jvm 1 | 2017/11/14 10:26:05 | DEBUG: Bundle Transportation Portlets [54] resources/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]

Activator source:



https://gist.github.com/nkeiter/64fbaf94166a02ae8b4dc014922cab51#file-rest-portlet-activator-L30-L49



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Nathan Keiter

Sent: Tuesday, November 14, 2017 9:31 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>

Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets



Yes, thanks. I’m assuming the destination context is the parent of WEB-INF ? (The site doc root?)



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g>
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Jason Tesser

Sent: Tuesday, November 14, 2017 9:29 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



I see what you are asking. The source file is in the JAR. You need get the file from the JAR then copy those files to the location you want.

Consider the below pseudo example

URL inputUrl = getClass().getResource("/absolute/path/of/source/in/jar/file");

File dest = new File("/path/to/destination/file");

FileUtils.copyURLToFile(inputUrl, dest);



On Tue, Nov 14, 2017 at 9:23 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu><mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>>> wrote:

Ok, I’ll figure it out then… the generic activator’s copy resource method might give me a clue as to the context each way from the Activator’s perspective.



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>] On Behalf Of Jason Tesser

Sent: Tuesday, November 14, 2017 9:21 AM



To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



The copy your be a Java file copy. You have access to the file system and such. Just place the files in the same place a static plugin would place your files from the ROOT directory



On Tue, Nov 14, 2017 at 9:12 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu><mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>>> wrote:

What would be the context root for the file operation? That sounds like an option. I just need to know what the path would be in that context to WEB-INF/jsp/{portlet-name}/{jsp-name}



I was thinking of overriding this class. Adding a catch for FileNotFound, and having it look where the OSGI JSPs are stored alternatively in the catch.



https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotcms/rest/BaseRestPortlet.java#L100



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>] On Behalf Of Jason Tesser

Sent: Tuesday, November 14, 2017 9:08 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>



Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



You can in your activator copy your files and on undeploy delete them.



On Tue, Nov 14, 2017 at 8:49 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu><mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu>>> wrote:

Looking at the source code for the endpoint “/api/portlet”, for REST portlets, it is hardcoded to look in WEB-INF/jsp/.



It would be a very simple change to have it look in the OSGI directories as well.



I might try that as an override plugin to allow REST portlets via OSGI. This seems to be the only obstacle in the way.



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>] On Behalf Of Nathan Keiter

Sent: Tuesday, November 14, 2017 8:40 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>

Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets



Yeah, I figured that out yesterday. I had named the folder something else. It is required to be named “ext” or it won’t work.



On other topics, I’m beginning to think the new REST portlets are not compatible with OSGI, just static plugins.



I was able to access it as a JSP portlet via OSGI.



The new REST portlets are very cool, but I can’t be tied down to a static plugin requiring a restart.



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>] On Behalf Of Xander Steinmann

Sent: Tuesday, November 14, 2017 2:33 AM

To: dotCMS User Group

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



Hi Nathan,



If I put a velocity file in the OSGi-plugin's /ext folder it is placed in WEB-INF/velocity/osgi/my-plugin-name/ext. I assume the same thing will happen to a JSP file, or maybe WEB-INF/jsp/osgi/my-plugin-name/ext? For a portlet I'm able to access it with "/ext/my-vtl-file.vtl" in the view-template value field of portlet.xml.



Kind regards,



Xander

--

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com<https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com?utm_medium=email&utm_source=footer>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com?utm_medium=email&utm_source=footer>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.

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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com>>.

--
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GOF0HG47rw9Ch9Qy_oh2f0TLNK4tcemOKEpHua7SZqV%2BA%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GOF0HG47rw9Ch9Qy_oh2f0TLNK4tcemOKEpHua7SZqV%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Nathan Keiter

unread,
Nov 17, 2017, 10:01:39 AM11/17/17
to dot...@googlegroups.com

This is the error I'm seeing. (Attached.)

 

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

To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.

To post to this group, send email to dot...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1510928713165.23522%40gettysburg.edu.

dotcms-log.txt

Nathan Keiter

unread,
Nov 17, 2017, 10:38:54 AM11/17/17
to dot...@googlegroups.com

So far I’ve tried all these pathings in portlet.xml, none work.

 

../WEB-INF/jsp/rest_portlet_transportation/render.jsp

/WEB-INF/jsp/rest_portlet_transportation/render.jsp

WEB-INF/jsp/rest_portlet_transportation/render.jsp

/../WEB-INF/jsp/rest_portlet_transportation/render.jsp

 

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

 

Nathan Keiter

unread,
Nov 17, 2017, 2:01:26 PM11/17/17
to dot...@googlegroups.com

Drilling deep into the liferay source code, it looks like it’s trying to instantiate an abstract class.

 

BaseRestPortlet is an abstract class, so obviously that won’t work..

 

But how to fix?

Nathan Keiter

unread,
Nov 17, 2017, 2:16:32 PM11/17/17
to dot...@googlegroups.com
Ok, got it working. The portlet-class must be "com.dotcms.rest.RestExamplePortlet" for it to work, since that is not abstract, yet extends BaseRestPortlet.


<portlet>
<portlet-name>rest-portlet-transportation-scheduling</portlet-name>
<display-name>Transportation Scheduling</display-name>
<portlet-class>com.dotcms.rest.RestExamplePortlet</portlet-class>
<portlet-info>
<title>Transportation Scheduling</title>
</portlet-info>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<security-role-ref>
<role-name>CMS Administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>Transportation Publisher</role-name>
</security-role-ref>
</portlet>


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: dot...@googlegroups.com <dot...@googlegroups.com> on behalf of Nathan Keiter <nke...@gettysburg.edu>
Sent: Friday, November 17, 2017 2:01 PM
To: dot...@googlegroups.com
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

Drilling deep into the liferay source code, it looks like it’s trying to instantiate an abstract class.

BaseRestPortlet is an abstract class, so obviously that won’t work..

But how to fix?

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<https://www.gettysburg.edu/>

From: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Friday, November 17, 2017 10:39 AM
To: dot...@googlegroups.com
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets

So far I’ve tried all these pathings in portlet.xml, none work.

../WEB-INF/jsp/rest_portlet_transportation/render.jsp
/WEB-INF/jsp/rest_portlet_transportation/render.jsp
WEB-INF/jsp/rest_portlet_transportation/render.jsp
/../WEB-INF/jsp/rest_portlet_transportation/render.jsp


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<https://www.gettysburg.edu/>

From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Friday, November 17, 2017 10:02 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets


This is the error I'm seeing. (Attached.)


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<https://www.gettysburg.edu/>

-----Original Message-----
From: dot...@googlegroups.com<mailto:dot...@googlegroups.com> [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Friday, November 17, 2017 9:25 AM
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>
Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



Jason, Maybe I have the pathing wrong? I'm trying to go one directory up from where it normally looks, since it won't be in the "/html/portlet/ext" folder.





<portlet>

<portlet-name>REST_PORTLET_TRANSPORTATION_SCHEDULING</portlet-name>

<display-name>Transportation Scheduling</display-name>

<portlet-class>com.dotcms.rest.BaseRestPortlet</portlet-class>

<init-param>

<name>view-jsp</name>

<value>../WEB-INF/jsp/rest_portlet_transportation_scheduling/render.jsp</value>

</init-param>

<expiration-cache>0</expiration-cache>

<supports>

<mime-type>text/html</mime-type>

</supports>

<security-role-ref>

<role-name>CMS Administrator</role-name>

</security-role-ref>

<security-role-ref>

<role-name>Transportation Publisher</role-name>

</security-role-ref>

</portlet>





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: dot...@googlegroups.com<mailto:dot...@googlegroups.com> <dot...@googlegroups.com<mailto:dot...@googlegroups.com>> on behalf of Jason Tesser <jason...@gmail.com<mailto:jason...@gmail.com>>

Sent: Friday, November 17, 2017 8:59 AM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



If it is in the portlet.xml which I assume it must be then you should be good



On Fri, Nov 17, 2017 at 8:52 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>>> wrote:

Jason, the rest portlet is now being served by the rest portlet endpoint, however now I need to figure out how to add the portlet to the admin menu? Is there a special init param setting I need in portlet.xml? One option might be to add a dummy JSP as a “JSP Portlet” which simply redirects to the main rest portlet JSP.



What are my options to get this on the admin menu?



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>
https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter

Sent: Tuesday, November 14, 2017 4:01 PM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>

Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets



What’s the path to WEB-INF from the Activators perspective?



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com] On Behalf Of Nathan Keiter

Sent: Tuesday, November 14, 2017 3:59 PM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>

Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets



Added some debug code. It looks like it’s finding my files just fine. But the destination “WEB-INF” is coming out null now. I’ll see if I can locate WEB-INF in a different manner.



[14/11/17 15:55:50:263 EST] INFO osgi.Activator: Got to start( BundleContext ) Transportation Portlets

[14/11/17 15:55:50:313 EST] INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_scheduling/

[14/11/17 15:55:50:313 EST] INFO osgi.Activator: destinationPath = null

[14/11/17 15:55:50:315 EST] INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 15:55:50:315 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/init.jsp

[14/11/17 15:55:50:315 EST] INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation_scheduling/init.jsp

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_scheduling/render.jsp

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation_scheduling/render.jsp

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation_calendar/

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: destinationPath = null

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation_calendar/render.jsp

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation_calendar/render.jsp

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: containerFolder = /jsp/rest_portlet_transportation/

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: destinationPath = null

[14/11/17 15:55:50:316 EST] INFO osgi.Activator: entries.hasMoreElements() = true

[14/11/17 15:55:50:317 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/render.jsp

[14/11/17 15:55:50:317 EST] INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation/render.jsp

[14/11/17 15:55:50:317 EST] INFO osgi.Activator: entryPath = /jsp/rest_portlet_transportation/testing.jsp

[14/11/17 15:55:50:317 EST] INFO osgi.Activator: resourceFilePath = null/jsp/rest_portlet_transportation/testing.jsp





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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser

Sent: Tuesday, November 14, 2017 3:52 PM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



so 2 things



1. Make sure what you think is in the OSGi is really in the jar after you build 2. I would get the JAR from the class. so get the activator class or something in the JAR then getClass().getResource OR just path or the JAR. You know where it is. It is in the load directory of felix



On Tue, Nov 14, 2017 at 3:44 PM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>>> wrote:

Still no luck. Trying to copy file by file. No errors, no log output whatsoever, does nothing all.



https://gist.github.com/nkeiter/837fc63acb56f678661995eba1bb9b10#file-rest-portlet-activator-yet-another-attempt-L37-L115



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>

Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets



Static plugin not an option. I’ll try file by file…



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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>

Phone: 717.337.6993<tel:(717)%20337-6993>

https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>



From: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>> [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser

Sent: Tuesday, November 14, 2017 12:36 PM

To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets



i think you might need to copy each file not the whole directory from the JAR. It is the source it is not reading FWIW or maybe move to the static plugin



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>







-----Original Message-----
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>

Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets







Plugin source directory structure:











[cid:4db7e559-128c-479b-82de-980e8cab6227]











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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993>



https://www.gettysburg.edu



________________________________



To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>



Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets







Hmm. It can’t seem to find my plugin files. I’m thinking I’m looking in the wrong path? This is what I mean by context…







If I say URL = “jsp/rest_portlet_transportation_scheduling/” I get:







INFO | jvm 1 | 2017/11/14 10:20:22 | DEBUG: Bundle Transportation Portlets [54] edu/gettysburg/nkeiter/transportation/portlet/osgi/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]



If I say URL = “/resources/jsp/rest_portlet_transportation_scheduling/” I get:







INFO | jvm 1 | 2017/11/14 10:26:05 | DEBUG: Bundle Transportation Portlets [54] resources/jsp/rest_portlet_transportation_scheduling/ not found by Transportation Portlets [54]



Activator source:







https://gist.github.com/nkeiter/64fbaf94166a02ae8b4dc014922cab51#file-rest-portlet-activator-L30-L49







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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993>



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>



Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets







Yes, thanks. I’m assuming the destination context is the parent of WEB-INF ? (The site doc root?)







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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993>



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>



Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets







I see what you are asking. The source file is in the JAR. You need get the file from the JAR then copy those files to the location you want.



Consider the below pseudo example



URL inputUrl = getClass().getResource("/absolute/path/of/source/in/jar/file");



File dest = new File("/path/to/destination/file");



FileUtils.copyURLToFile(inputUrl, dest);







On Tue, Nov 14, 2017 at 9:23 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>><mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>>>> wrote:



Ok, I’ll figure it out then… the generic activator’s copy resource method might give me a clue as to the context each way from the Activator’s perspective.







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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>



Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets







The copy your be a Java file copy. You have access to the file system and such. Just place the files in the same place a static plugin would place your files from the ROOT directory







On Tue, Nov 14, 2017 at 9:12 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>><mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>>>> wrote:



What would be the context root for the file operation? That sounds like an option. I just need to know what the path would be in that context to WEB-INF/jsp/{portlet-name}/{jsp-name}







I was thinking of overriding this class. Adding a catch for FileNotFound, and having it look where the OSGI JSPs are stored alternatively in the catch.







https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotcms/rest/BaseRestPortlet.java#L100







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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>







Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets







You can in your activator copy your files and on undeploy delete them.







On Tue, Nov 14, 2017 at 8:49 AM Nathan Keiter <nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>><mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu<mailto:nke...@gettysburg.edu%3cmailto:nke...@gettysburg.edu>>>> wrote:



Looking at the source code for the endpoint “/api/portlet”, for REST portlets, it is hardcoded to look in WEB-INF/jsp/.







It would be a very simple change to have it look in the OSGI directories as well.







I might try that as an override plugin to allow REST portlets via OSGI. This seems to be the only obstacle in the way.







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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>
To: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>



Subject: RE: [dotcms] RE: [4.1.1] Angular Admin Portlets







Yeah, I figured that out yesterday. I had named the folder something else. It is required to be named “ext” or it won’t work.







On other topics, I’m beginning to think the new REST portlets are not compatible with OSGI, just static plugins.







I was able to access it as a JSP portlet via OSGI.







The new REST portlets are very cool, but I can’t be tied down to a static plugin requiring a restart.







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<https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,%0D+PA+17325&entry=gmail&source=g><https://maps.google.com/?q=2453+%7C+300+North+Washington+Street+%7C+Gettysburg,+PA+17325&entry=gmail&source=g>



Phone: 717.337.6993<tel:(717)%20337-6993><tel:(717)%20337-6993>



https://www.gettysburg.edu<https://www.gettysburg.edu/<https://www.gettysburg.edu%3chttps:/www.gettysburg.edu/>>







From: dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>> [mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e>] On Behalf Of Xander Steinmann



Sent: Tuesday, November 14, 2017 2:33 AM



To: dotCMS User Group



Subject: Re: [dotcms] RE: [4.1.1] Angular Admin Portlets







Hi Nathan,







If I put a velocity file in the OSGi-plugin's /ext folder it is placed in WEB-INF/velocity/osgi/my-plugin-name/ext. I assume the same thing will happen to a JSP file, or maybe WEB-INF/jsp/osgi/my-plugin-name/ext? For a portlet I'm able to access it with "/ext/my-vtl-file.vtl" in the view-template value field of portlet.xml.







Kind regards,







Xander



--



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com<https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com%3chttps:/groups.google.com/d/msgid/dotcms/32563245-266c-4604-80d3-69d47abc5250%40googlegroups.com?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu%3chttps:/groups.google.com/d/msgid/dotcms/cfaf8383d1e947a586263542478dd8be%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu%3chttps:/groups.google.com/d/msgid/dotcms/2ea6f08d896945f1be34ca136a15479f%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com%3chttps:/groups.google.com/d/msgid/dotcms/CALDe1GNLxeZDUN5drs0En3_ORgTh1Fh%3DG-V7jaoD%2BnPGR33vrg%40mail.gmail.com?utm_medium=email&utm_source=footer>>.







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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu%3chttps:/groups.google.com/d/msgid/dotcms/d6d3d5e7c6b749f99e211db5cd7588a6%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com%3chttps:/groups.google.com/d/msgid/dotcms/CALDe1GO98t9uRT4g1vsTq6gSddPRqg7GE1wuxd8GENcoue3Xtg%40mail.gmail.com?utm_medium=email&utm_source=footer>>.







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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu%3chttps:/groups.google.com/d/msgid/dotcms/81f231d46ec947eaa7882aa417286ecb%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com%3chttps:/groups.google.com/d/msgid/dotcms/CALDe1GNb7itDcKbP-0T%3D2oMyk4_8gt2pgRe68iOxep-bHv95rA%40mail.gmail.com?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu%3chttps:/groups.google.com/d/msgid/dotcms/8fa9519a09204226bcb4940fa7beb6b4%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>>.



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 dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com><mailto:dotcms+un...@googlegroups.com<mailto:dotcms%2Bunsu...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com%3e%3cmailto:dotcms+un...@googlegroups.com%3cmailto:dotcms%2Bunsu...@googlegroups.com>>>.



To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com><mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com%3e%3cmailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>>.



--

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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com%3cmailto:dotcms+un...@googlegroups.com>>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com<mailto:dot...@googlegroups.com%3cmailto:dot...@googlegroups.com>>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GOF0HG47rw9Ch9Qy_oh2f0TLNK4tcemOKEpHua7SZqV%2BA%40mail.gmail.com<https://groups.google.com/d/msgid/dotcms/CALDe1GOF0HG47rw9Ch9Qy_oh2f0TLNK4tcemOKEpHua7SZqV%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/dotcms/CALDe1GOF0HG47rw9Ch9Qy_oh2f0TLNK4tcemOKEpHua7SZqV%2BA%40mail.gmail.com%3chttps:/groups.google.com/d/msgid/dotcms/CALDe1GOF0HG47rw9Ch9Qy_oh2f0TLNK4tcemOKEpHua7SZqV%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>>.

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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.

To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.

To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1510928713165.23522%40gettysburg.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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c7ba5783ca0d49eb8e6a37503e752a63%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/c7ba5783ca0d49eb8e6a37503e752a63%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/fe63c13b0ffb4e53bdf70cd6c2276562%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/fe63c13b0ffb4e53bdf70cd6c2276562%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
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 dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/fb56e7b4a3b546e396cfd19a75e83087%40exch13c.ms.gettysburg.edu<https://groups.google.com/d/msgid/dotcms/fb56e7b4a3b546e396cfd19a75e83087%40exch13c.ms.gettysburg.edu?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages