Modify HTML Page Extension Plugin Errors

351 views
Skip to first unread message

LWard

unread,
Jul 26, 2012, 4:40:50 PM7/26/12
to dot...@googlegroups.com
Hello,

We are trying to use the "Modify HTML Page Extension" plugin and are running into build errors.  

The errors are:
[echo] Building at: org.dotcms.plugins.htmlPageExtension at /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension
    [mkdir] Created dir: /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/build/classes
    [javac] /var/applications/dotCMS/plugins/common.xml:48: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/build/classes
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:263: cannot find symbol
    [javac] symbol  : method saveInode(com.dotmarketing.portlets.links.model.Link)
    [javac] location: class com.dotmarketing.factories.InodeFactory
    [javac]                                             InodeFactory.saveInode(link);
    [javac]                                                         ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:283: cannot find symbol
    [javac] symbol  : method saveInode(com.dotmarketing.portlets.virtuallinks.model.VirtualLink)
    [javac] location: class com.dotmarketing.factories.InodeFactory
    [javac]                                             InodeFactory.saveInode(vlink);
    [javac]                                                         ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:321: cannot find symbol
    [javac] symbol  : method saveInode(com.dotmarketing.portlets.containers.model.Container)
    [javac] location: class com.dotmarketing.factories.InodeFactory
    [javac]                                             InodeFactory.saveInode(container);
    [javac]                                                         ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:330: cannot find symbol
    [javac] symbol  : method getTemplateByCondition(java.lang.String)
    [javac] location: class com.dotmarketing.portlets.templates.factories.TemplateFactory
    [javac]                             List templates = TemplateFactory.getTemplateByCondition("body like '%" + searchString + "%'");
    [javac]                                                             ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:341: cannot find symbol
    [javac] symbol  : method saveInode(com.dotmarketing.portlets.templates.model.Template)
    [javac] location: class com.dotmarketing.factories.InodeFactory
    [javac]                                             InodeFactory.saveInode(template);
    [javac]                                                         ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:350: cannot find symbol
    [javac] symbol  : method getActiveHTMLPages()
    [javac] location: class com.dotmarketing.portlets.htmlpages.factories.HTMLPageFactory
    [javac]                             List pages = HTMLPageFactory.getActiveHTMLPages();
    [javac]                                                         ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:362: cannot find symbol
    [javac] symbol  : method saveInode(com.dotmarketing.portlets.htmlpages.model.HTMLPage)
    [javac] location: class com.dotmarketing.factories.InodeFactory
    [javac]                                                     InodeFactory.saveInode(htmlpage);
    [javac]                                                                 ^
    [javac] /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:382: cannot find symbol
    [javac] symbol  : method saveInode(com.dotmarketing.portlets.structure.model.Field)
    [javac] location: class com.dotmarketing.factories.InodeFactory
    [javac]                                                     InodeFactory.saveInode(field);
    [javac]                                                                 ^
    [javac] Note: /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/org/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 8 errors


Any ideas?

dotCMS Version 2.0.1 - mySQL

Maria Ahues Bouza

unread,
Jul 26, 2012, 5:06:46 PM7/26/12
to dot...@googlegroups.com
Did you download the 2.0 version of the plugin?

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/oksYGCdXwOYJ.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.



--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.

LWard

unread,
Jul 26, 2012, 5:08:28 PM7/26/12
to dot...@googlegroups.com
I only see one version of the plugin.  Is there a different one?  If so, where is it located?

http://dotcms.com/plugins/modify-html-page-extension 
To unsubscribe from this group, send email to dotcms+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

Maria Ahues Bouza

unread,
Jul 26, 2012, 5:10:41 PM7/26/12
to dot...@googlegroups.com
There is a 2.0 version. Let me see why it's not showing up.

To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/0MXU0DfKch0J.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

Maria Ahues Bouza

unread,
Jul 26, 2012, 5:13:18 PM7/26/12
to dot...@googlegroups.com
Try this one. I'm going to reupload it to the site right now.
org.dotcms.plugins.htmlPageExtension.zip

LWard

unread,
Jul 26, 2012, 5:19:12 PM7/26/12
to dot...@googlegroups.com
Thanks!  That worked much better.

Maria Ahues Bouza

unread,
Jul 26, 2012, 5:26:30 PM7/26/12
to dot...@googlegroups.com
Great! :)

On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
Thanks!  That worked much better.

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

LWard

unread,
Jul 27, 2012, 9:42:29 AM7/27/12
to dot...@googlegroups.com
The build was successful and appeared to work.  All of the pages in the web browser had the .html extension.  I tried to open a page and recieved a 404 error.  Flushed cache and reindexed.  Tried to open page again, same response.  Open page properties, tried to re-save and publish page.  Still 404, but now the page (index.html) reads: index.html.dot,html.  There were some errors during the reindex, but nothing after that while trying to open or save the page.  Tried more than one page same response.  Did I miss something in the configuration?

Errors during reindex:
2012-07-27 13:28:09,122 ERROR com.dotcms.content.elasticsearch.business.ESContentFactoryImpl -
com.dotcms.content.business.DotMappingException
        at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.toJson(ESMappingAPIImpl.java:229)
        at com.dotcms.content.elasticsearch.business.ESIndexAPI.indexContentletList(ESIndexAPI.java:354)
        at com.dotcms.content.elasticsearch.business.ESIndexAPI.access$100(ESIndexAPI.java:59)
        at com.dotcms.content.elasticsearch.business.ESIndexAPI$1.run(ESIndexAPI.java:325)
        at com.dotcms.content.elasticsearch.business.ESIndexAPI.addContentToIndex(ESIndexAPI.java:337)
        at com.dotmarketing.common.reindex.ReindexThread.writeDocumentToIndex(ReindexThread.java:317)
        at com.dotmarketing.common.reindex.ReindexThread.run(ReindexThread.java:114)
Caused by: com.dotmarketing.exception.DotDataException: User com.liferay.portal.model.User@cb1c722f does not have permission to read null
        at com.dotmarketing.portlets.folders.model.Folder.getParentPermissionable(Folder.java:242)
        at com.dotmarketing.business.PermissionBitFactoryImpl.loadPermissions(PermissionBitFactoryImpl.java:2429)
        at com.dotmarketing.business.PermissionBitFactoryImpl.getInheritablePermissions(PermissionBitFactoryImpl.java:1160)
        at com.dotmarketing.business.PermissionBitFactoryImpl.getInheritablePermissions(PermissionBitFactoryImpl.java:1142)
        at com.dotmarketing.business.PermissionBitFactoryImpl.loadPermissions(PermissionBitFactoryImpl.java:2434)
        at com.dotmarketing.business.PermissionBitFactoryImpl.getPermissions(PermissionBitFactoryImpl.java:1238)
        at com.dotmarketing.business.PermissionBitAPIImpl.getPermissions(PermissionBitAPIImpl.java:505)
        at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.loadPermissions(ESMappingAPIImpl.java:337)
        at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.toJson(ESMappingAPIImpl.java:196)
        ... 6 more
Caused by: com.dotmarketing.exception.DotSecurityException: User com.liferay.portal.model.User@cb1c722f does not have permission to read null
        at com.dotmarketing.portlets.folders.business.FolderAPIImpl.findParentFolder(FolderAPIImpl.java:141)
        at com.dotmarketing.portlets.folders.model.Folder.getParentPermissionable(Folder.java:239)
        ... 14 more


On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
Great! :)

On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
Thanks!  That worked much better.


--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.



--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.

On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
Great! :)

On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
Thanks!  That worked much better.


--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

Jason Tesser

unread,
Jul 27, 2012, 9:45:01 AM7/27/12
to dot...@googlegroups.com
i bet something is wrong with your generated dotmarketing-config.properties file

Send the one under WEB-INF/classes after the plugin is deployed

Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422
>>> dotcms+un...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>>
>>
>> --
>> Community Manager
>>
>> dotCMS
>> Main: 305.900.2001
>> Fax: 305.397.2579
>> www.dotcms.com
>> http://www.twitter.com/dotCMS
>> http://www.facebook.com/dotCMS
>> http://www.twitter.com/mabouza
>>
>> Please consider the planet before printing this email.
>
>
> On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
>>
>> Great! :)
>>
>> On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
>>>
>>> Thanks! That worked much better.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "dotCMS User Group" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.
>>>
>>> To post to this group, send email to dot...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> dotcms+un...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>>
>>
>> --
>> Community Manager
>>
>> dotCMS
>> Main: 305.900.2001
>> Fax: 305.397.2579
>> www.dotcms.com
>> http://www.twitter.com/dotCMS
>> http://www.facebook.com/dotCMS
>> http://www.twitter.com/mabouza
>>
>> Please consider the planet before printing this email.
>
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dotcms/-/qpKxI9_lQVsJ.
>
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to
> dotcms+un...@googlegroups.com.

LWard

unread,
Jul 27, 2012, 9:59:05 AM7/27/12
to dot...@googlegroups.com
dotCMS/WEB-INF/classes/dotmarketing-config.properties file attached
>>> dotcms+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>>
>>
>> --
>> Community Manager
>>
>> dotCMS
>> Main: 305.900.2001
>> Fax: 305.397.2579
>> www.dotcms.com
>> http://www.twitter.com/dotCMS
>> http://www.facebook.com/dotCMS
>> http://www.twitter.com/mabouza
>>
>> Please consider the planet before printing this email.
>
>
> On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
>>
>> Great! :)
>>
>> On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
>>>
>>> Thanks!  That worked much better.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "dotCMS User Group" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.
>>>
>>> To post to this group, send email to dot...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> dotcms+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>>
>>
>> --
>> Community Manager
>>
>> dotCMS
>> Main: 305.900.2001
>> Fax: 305.397.2579
>> www.dotcms.com
>> http://www.twitter.com/dotCMS
>> http://www.facebook.com/dotCMS
>> http://www.twitter.com/mabouza
>>
>> Please consider the planet before printing this email.
>
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dotcms/-/qpKxI9_lQVsJ.
>
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to
> dotcms+unsubscribe@googlegroups.com.
dotmarketing-config.properties

LWard

unread,
Jul 27, 2012, 10:01:12 AM7/27/12
to dot...@googlegroups.com
Do I need to change the VELOCITY_PAGE_EXTENSION=html in the plugin file to have spaces so that it matches the origintal VELOCITY_PAGE_EXTENSION = dot?

Jason Tesser

unread,
Jul 27, 2012, 10:02:25 AM7/27/12
to dot...@googlegroups.com
Right so search that file for VELOCITY_PAGE_EXTENSION

The problem is in the plugin.

Change your plugin

from
VELOCITY_PAGE_EXTENSION=html
to
VELOCITY_PAGE_EXTENSION = html

Thanks,
Jason S. Tesser
Director, Support Services
dotCMS, Inc.
T: 305.858.1422 x7003
http://twitter.com/dotCMS
www.dotcms.com
>> >>> dotcms+un...@googlegroups.com.
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/dotcms?hl=en.
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Community Manager
>> >>
>> >> dotCMS
>> >> Main: 305.900.2001
>> >> Fax: 305.397.2579
>> >> www.dotcms.com
>> >> http://www.twitter.com/dotCMS
>> >> http://www.facebook.com/dotCMS
>> >> http://www.twitter.com/mabouza
>> >>
>> >> Please consider the planet before printing this email.
>> >
>> >
>> > On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
>> >>
>> >> Great! :)
>> >>
>> >> On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
>> >>>
>> >>> Thanks! That worked much better.
>> >>>
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> "dotCMS User Group" group.
>> >>> To view this discussion on the web visit
>> >>> https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.
>> >>>
>> >>> To post to this group, send email to dot...@googlegroups.com.
>> >>> To unsubscribe from this group, send email to
>> >>> dotcms+un...@googlegroups.com.
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/dotcms?hl=en.
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Community Manager
>> >>
>> >> dotCMS
>> >> Main: 305.900.2001
>> >> Fax: 305.397.2579
>> >> www.dotcms.com
>> >> http://www.twitter.com/dotCMS
>> >> http://www.facebook.com/dotCMS
>> >> http://www.twitter.com/mabouza
>> >>
>> >> Please consider the planet before printing this email.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "dotCMS User Group" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/dotcms/-/qpKxI9_lQVsJ.
>> >
>> > To post to this group, send email to dot...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > dotcms+un...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/dotcms?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dotcms/-/EebgN5beVbAJ.
>
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to
> dotcms+un...@googlegroups.com.

Jason Tesser

unread,
Jul 27, 2012, 10:02:41 AM7/27/12
to dot...@googlegroups.com
yes what I just sent.
:-)

Thanks,
Jason S. Tesser
Director, Support Services
dotCMS, Inc.
T: 305.858.1422 x7003
http://twitter.com/dotCMS
www.dotcms.com


>>> >>> dotcms+un...@googlegroups.com.
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/dotcms?hl=en.
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Community Manager
>>> >>
>>> >> dotCMS
>>> >> Main: 305.900.2001
>>> >> Fax: 305.397.2579
>>> >> www.dotcms.com
>>> >> http://www.twitter.com/dotCMS
>>> >> http://www.facebook.com/dotCMS
>>> >> http://www.twitter.com/mabouza
>>> >>
>>> >> Please consider the planet before printing this email.
>>> >
>>> >
>>> > On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
>>> >>
>>> >> Great! :)
>>> >>
>>> >> On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
>>> >>>
>>> >>> Thanks! That worked much better.
>>> >>>
>>> >>>
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups
>>> >>> "dotCMS User Group" group.
>>> >>> To view this discussion on the web visit
>>> >>> https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.
>>> >>>
>>> >>> To post to this group, send email to dot...@googlegroups.com.
>>> >>> To unsubscribe from this group, send email to
>>> >>> dotcms+un...@googlegroups.com.
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/dotcms?hl=en.
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Community Manager
>>> >>
>>> >> dotCMS
>>> >> Main: 305.900.2001
>>> >> Fax: 305.397.2579
>>> >> www.dotcms.com
>>> >> http://www.twitter.com/dotCMS
>>> >> http://www.facebook.com/dotCMS
>>> >> http://www.twitter.com/mabouza
>>> >>
>>> >> Please consider the planet before printing this email.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "dotCMS User Group" group.
>>> > To view this discussion on the web visit
>>> > https://groups.google.com/d/msg/dotcms/-/qpKxI9_lQVsJ.
>>> >
>>> > To post to this group, send email to dot...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > dotcms+un...@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/dotcms?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dotcms/-/uIA6_tZ-u6EJ.

LWard

unread,
Jul 27, 2012, 10:15:57 AM7/27/12
to dot...@googlegroups.com, jason....@dotcms.com
Thanks! Works great now.
>>> >>> dotcms+unsubscribe@googlegroups.com.
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/dotcms?hl=en.
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Community Manager
>>> >>
>>> >> dotCMS
>>> >> Main: 305.900.2001
>>> >> Fax: 305.397.2579
>>> >> www.dotcms.com
>>> >> http://www.twitter.com/dotCMS
>>> >> http://www.facebook.com/dotCMS
>>> >> http://www.twitter.com/mabouza
>>> >>
>>> >> Please consider the planet before printing this email.
>>> >
>>> >
>>> > On Thursday, July 26, 2012 4:26:30 PM UTC-5, Maria Ahues Bouza wrote:
>>> >>
>>> >> Great! :)
>>> >>
>>> >> On Thu, Jul 26, 2012 at 2:19 PM, LWard <lw...@bimedia.net> wrote:
>>> >>>
>>> >>> Thanks!  That worked much better.
>>> >>>
>>> >>>
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups
>>> >>> "dotCMS User Group" group.
>>> >>> To view this discussion on the web visit
>>> >>> https://groups.google.com/d/msg/dotcms/-/nBiH8Nk2scEJ.
>>> >>>
>>> >>> To post to this group, send email to dot...@googlegroups.com.
>>> >>> To unsubscribe from this group, send email to
>>> >>> dotcms+unsubscribe@googlegroups.com.
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/dotcms?hl=en.
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Community Manager
>>> >>
>>> >> dotCMS
>>> >> Main: 305.900.2001
>>> >> Fax: 305.397.2579
>>> >> www.dotcms.com
>>> >> http://www.twitter.com/dotCMS
>>> >> http://www.facebook.com/dotCMS
>>> >> http://www.twitter.com/mabouza
>>> >>
>>> >> Please consider the planet before printing this email.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "dotCMS User Group" group.
>>> > To view this discussion on the web visit
>>> > https://groups.google.com/d/msg/dotcms/-/qpKxI9_lQVsJ.
>>> >
>>> > To post to this group, send email to dot...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > dotcms+unsubscribe@googlegroups.com.

LWard

unread,
Jul 27, 2012, 1:08:31 PM7/27/12
to dot...@googlegroups.com, jason....@dotcms.com
Now Unless I right click, and open the page properties and save & publish I get a 404 error.  Tried reindexing still same thing,

Right clicking and using the Republish gives this alert error message:
com.dotmarketing.portlets.htmlpages.model.HTMLPage
cannot be cast to com.dotmarketing.portlets.files.model.File

Any ideas? 

Alex

unread,
Jul 29, 2012, 9:48:31 AM7/29/12
to dot...@googlegroups.com
Jason:

I am on 2.1. Used the plugin that Maria sent to the mailing list for
2.0. I made the modifications to the plugin you suggested:

_________
Change your plugin

from
VELOCITY_PAGE_EXTENSION=html
to
VELOCITY_PAGE_EXTENSION = html
___________

Here are how the velocity page extensions look inside my /dotCMS/
after I deployed the plugin.

## BEGIN PLUGIN:org.dotcms.plugins.htmlPageExtension
## OVERRIDE:com.dotcms.page.extension.config
#VELOCITY_PAGE_EXTENSION = html

## END PLUGIN:org.dotcms.plugins.htmlPageExtension
## BEGIN PLUGIN:com.dotcms.page.extension.config
VELOCITY_PAGE_EXTENSION = dot

## END PLUGIN:com.dotcms.page.extension.config


When I start the server I get this error:

http://pastebin.com/wBFhqvfT

Thanks for any help!

Alex

Jason Tesser

unread,
Jul 29, 2012, 2:42:38 PM7/29/12
to dot...@googlegroups.com
I think something is wrong with your web.xml like syntax or parse error. Not sure what try to undeploy the plugins the start again 
com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.toJson(ESMappingAPIImpl.java:229)
       at

com.dotcms.content.elasticsearch.business.ESIndexAPI.indexContentletList(ESIndexAPI.java:354)
       at

com.dotcms.content.elasticsearch.business.ESIndexAPI.access$100(ESIndexAPI.java:59)
       at

com.dotcms.content.elasticsearch.business.ESIndexAPI$1.run(ESIndexAPI.java:325)
       at

com.dotcms.content.elasticsearch.business.ESIndexAPI.addContentToIndex(ESIndexAPI.java:337)
       at

com.dotmarketing.common.reindex.ReindexThread.writeDocumentToIndex(ReindexThread.java:317)
       at

com.dotmarketing.common.reindex.ReindexThread.run(ReindexThread.java:114)

Caused by: com.dotmarketing.exception.DotDataException: User
com.liferay.portal.model.User@cb1c722f does not have permission to
read null
       at

com.dotmarketing.portlets.folders.model.Folder.getParentPermissionable(Folder.java:242)
       at

com.dotmarketing.business.PermissionBitFactoryImpl.loadPermissions(PermissionBitFactoryImpl.java:2429)
       at

com.dotmarketing.business.PermissionBitFactoryImpl.getInheritablePermissions(PermissionBitFactoryImpl.java:1160)
       at

com.dotmarketing.business.PermissionBitFactoryImpl.getInheritablePermissions(PermissionBitFactoryImpl.java:1142)
       at

com.dotmarketing.business.PermissionBitFactoryImpl.loadPermissions(PermissionBitFactoryImpl.java:2434)
       at

com.dotmarketing.business.PermissionBitFactoryImpl.getPermissions(PermissionBitFactoryImpl.java:1238)
       at

com.dotmarketing.business.PermissionBitAPIImpl.getPermissions(PermissionBitAPIImpl.java:505)
       at

com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.loadPermissions(


--

Alex

unread,
Jul 29, 2012, 3:37:04 PM7/29/12
to dot...@googlegroups.com
I can start the server if I undeploy and then deploy my current plugins without the HTML Page Extension.  The problem occurs when I use the HTML Page Extension only.

I looked inside the web-ext.html of the plugin.  It looks normal to me.


<servlet-mapping>
<servlet-name>VelocityServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>

<filter-mapping> 
<filter-name>JBossRulesFilter</filter-name> 
        <url-pattern>*.html</url-pattern> 
</filter-mapping>
--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.

Alex

unread,
Jul 29, 2012, 3:50:47 PM7/29/12
to dot...@googlegroups.com
Also the line that produces the error is: </filter-mapping> of the web-ext.html of the plugin.

[29/07/12 15:51:15:196 EDT] ERROR startup.ContextConfig: Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml
java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name JBossRulesFilter

I checked the web-ext.xml and there were some spaces after the closing of the filtermapping, but it still gives the same error.

Alex

Jason Tesser

unread,
Jul 29, 2012, 11:31:56 PM7/29/12
to dot...@googlegroups.com
just remove this

<filter-mapping>
<filter-name>JBossRulesFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>

You don't need it anyway

Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422


Alex

unread,
Jul 31, 2012, 12:42:18 AM7/31/12
to dot...@googlegroups.com
Jason:

I removed the filter mapping you suggested from the web-ext.html file
of the plugin. Then, I undeployed and deployed plugins, restarted the
server, and saw the site live. However, the extensions did not change
neither in the database nor on the front end. I got no errors on the
log files.

Any suggestions on how to approach this? Maybe the plugin is not 2.1
friendly?

LWard: Did the plugin that Maria sent to the mailing list work for you?

Thanks,

Alex
>>> 114)
>>> Caused by: com.dotmarketing.exception.DotDataException: User
>>> com.liferay.portal.model.User@cb1c722f does not have permission to
>>> read null
>>> at
>>>
>>>
>>> com
>>> .dotmarketing
>>> .portlets.folders.model.Folder.getParentPermissionable(Folder.java:

LWard

unread,
Jul 31, 2012, 9:15:03 AM7/31/12
to dot...@googlegroups.com, alex.t...@ambix.net
Yes The 2.0 version of the plugin worked for us but we are still using the 2.0.1 version of dotCMS.  However we are having an issue with the old pages that were .dot and are now .html opening.  If we open the page properties and re-"save and publish" it works fine, but if you try to open it before that dotCMS gives us a 404 error.
>> dotcms+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google  
>> Groups
>> "dotCMS User Group" group.
>> To post to this group, send email to dot...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> dotcms+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>> --
>> You received this message because you are subscribed to the Google  
>> Groups
>> "dotCMS User Group" group.
>> To post to this group, send email to dot...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> dotcms+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/dotcms?hl=en.
>
> --
> You received this message because you are subscribed to the Google  
> Groups "dotCMS User Group" group.
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to dotcms+unsubscribe@googlegroups.com

Maria Ahues Bouza

unread,
Aug 1, 2012, 12:31:42 AM8/1/12
to dot...@googlegroups.com, alex.t...@ambix.net
Alex the plugin should work in 2.0, we tried it with clients that were upgraded to 2.0 from 1.9.

LWard, did you try flushing the caches? Maybe that will take care of the 404 error you're having without having to republish the pages.

To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/0DfgSn7rbJUJ.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.



--

Alex

unread,
Aug 1, 2012, 7:07:30 AM8/1/12
to dot...@googlegroups.com
Thanks Maria for the confirmation!  I will test again later in the week and report back.  I am on 2.1.

LWard

unread,
Aug 1, 2012, 10:50:02 AM8/1/12
to dot...@googlegroups.com, alex.t...@ambix.net
We have flushed cache, reindexed, flushed cache again, still 404 errors

Maria Ahues Bouza

unread,
Aug 1, 2012, 12:57:39 PM8/1/12
to dot...@googlegroups.com, alex.t...@ambix.net
Do they work if you right click on the folder and click Publish all?


To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/8G0dKax4gGMJ.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

LWard

unread,
Aug 1, 2012, 2:32:45 PM8/1/12
to dot...@googlegroups.com, alex.t...@ambix.net
Nope. Error:
An unexpected system error occurred.

Alex

unread,
Aug 3, 2012, 8:43:54 AM8/3/12
to dot...@googlegroups.com
Maria:

The documentation states that the plugin runs on deploy.  Therefore, if I deploy the plugin and the plugin deploys successfully, it means all my page extensions have been updated.  Can I confirm that if I look up the pages on my database and see the new extension there? Or, does something else happen at the start up of the server.

If the plugin does not update the extensions,  is there an error log I can look at?

Another silly question:  Once the plugin has been deployed and I check on the database that the page extensions have been updated, then I can:
1. Undeploy the plugin
2. Delete the page extension plugin from the plugins directory
3. deploy all my plugins again.
4. Start dotCMS

Is that correct?  I am going to test over the weekend and I want to make sure I understand the steps.

Thanks,

Alex

Maria Ahues Bouza

unread,
Aug 3, 2012, 12:42:15 PM8/3/12
to dot...@googlegroups.com
Alex,

Yes once the plugin runs on startup the pages will be updated in the database. You'll be able to see the new extension in the database.

Also you can remove the plugin after the changes have been done only if you're running dotCMS 2.1 which will have .html as default page extension. 

Thanks
Maria

Alex

unread,
Aug 4, 2012, 12:00:06 AM8/4/12
to dot...@googlegroups.com
Dear Maria and Jason:

I am not quite sure if the plugin deployed properly or not.  I deployed it and started dotCMS.  I can create html pages with the extension html, but on my database for example on the htmlpage and links  I see all them still have the .dot extension.  Is there any specific task I can see at start up that can assure me that the plugin has updated the database?

When I try to access the pages from the back end or the front end or any page on the site I get this 404 error.  I cleared cache and reindexed, but it still shows the error.

ERROR portal._404_jsp: cms404Page cant display com.dotmarketing.portlets.htmlpages.model.HTMLPage cannot be cast to com.dotmarketing.portlets.files.model.File
java.lang.ClassCastException: com.dotmarketing.portlets.htmlpages.model.HTMLPage cannot be cast to com.dotmarketing.portlets.files.model.File
at com.dotmarketing.portlets.files.business.FileAPIImpl.getRelativeAssetPath(FileAPIImpl.java:657)
at com.dotmarketing.cache.LiveCache.addToLiveAssetToCache(LiveCache.java:106)
at com.dotmarketing.cache.LiveCache.getPathFromCache(LiveCache.java:223)
at com.dotmarketing.cache.LiveCache.getPathFromCache(LiveCache.java:142)
at org.apache.jsp.portal._404_jsp._jspService(_404_jsp.java:89)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:415)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

Maria Ahues Bouza

unread,
Aug 4, 2012, 12:18:14 AM8/4/12
to dot...@googlegroups.com
Alex,

Did you run the plugin on 2.0 or 2.0.1?

If you see them in the database with .dot then the plugin didn't update properly. :(

-Maria

Alex

unread,
Aug 4, 2012, 12:27:09 AM8/4/12
to dot...@googlegroups.com
I am already in 2.1.  :(

I am a bit sad to let the .dot extension go!  Are you guys going to take the DOT out of the name (dotCMS) too?

Alex

Maria Ahues Bouza

unread,
Aug 4, 2012, 11:59:58 AM8/4/12
to dot...@googlegroups.com
No we're not taking the dot out of name :)

Ok, so the plugin needs to run in 2.0 or 2.0.1, I don't think it will update anything in 2.1 since dotCMS 2.1 already uses .html.

Alex

unread,
Aug 4, 2012, 2:39:58 PM8/4/12
to dot...@googlegroups.com
ok.  Is there a way to roll back to 2.0.1 from 2.1?

Will I have to do a manual update on the database then?

Alex

Maria Ahues Bouza

unread,
Aug 4, 2012, 9:17:11 PM8/4/12
to dot...@googlegroups.com
Alex,

I'm going to ask JT on Monday, I don't think there is an easy way to rollback :(

I don't know if it's easier to run the updates in the database manually. 

Let me talk to him on Monday and we can come up with the best option for you and anyone else running 2.1 already that wants to do this.

-Maria

LWard

unread,
Aug 8, 2012, 1:13:31 PM8/8/12
to dot...@googlegroups.com
This doesn't fix the problem, we recieve the error:

An unexpected system error occurred.
com.dotmarketing.portlets.htmlpages.model.HTMLPage cannot be cast to com.dotmarketing.portlets.files.model.File  

Any ideas as to what needs to get updated, flushing the cache and reindexing do not seem to help.  The only thing that gets the pages back is to visit the page properties and Save & Publish.  So I'm not sure what that kicks off to publish the page.  The database urls are all .html. 
>> dotcms+un...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google  
>> Groups
>> "dotCMS User Group" group.
>> To post to this group, send email to dot...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> dotcms+un...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/dotcms?hl=en.
>>
>>
>> --
>> You received this message because you are subscribed to the Google  
>> Groups
>> "dotCMS User Group" group.
>> To post to this group, send email to dot...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> dotcms+un...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/dotcms?hl=en.
>
> --
> You received this message because you are subscribed to the Google  
> Groups "dotCMS User Group" group.
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to dotcms+un...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/dotcms?hl=en
> .
>

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/0DfgSn7rbJUJ.

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

Maria Ahues Bouza

unread,
Aug 8, 2012, 2:06:28 PM8/8/12
to dot...@googlegroups.com
The 404 only happens when you open a page that was previously a dot page right?

Do you get any errors on the logs?



To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/ulGME4m1z8oJ.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

LWard

unread,
Aug 8, 2012, 2:39:17 PM8/8/12
to dot...@googlegroups.com
Not that I can find.

Alex

unread,
Aug 9, 2012, 12:56:33 AM8/9/12
to dot...@googlegroups.com
Maria:

I can confirm that this plugin does not work with 2.1. :(

Let me know if I should do manual changes on the database.

Thanks,

Alex
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/2Dc7FnNOrE4J.

Maria Ahues Bouza

unread,
Aug 9, 2012, 5:40:03 PM8/9/12
to dot...@googlegroups.com
Alex,

You can do the changes manually in the database but it might be tricky to make them.

Maybe you're better off checking what the plugin does and seeing why it's interfering with dotCMS 2.1?

I think the problem is that dotCMS 2.1 has extension .html and you're trying to "change" it to .html so it doesn't think it needs to do anything.

It's possible that it might work if you configure dotCMS 2.1 to run using .dot first using the config plugin and then you deploy this plugin.

-Maria

Alex

unread,
Aug 11, 2012, 1:39:05 AM8/11/12
to dot...@googlegroups.com
Maria:

I installed the plugin required to run .dot pages into 2.1.  Deployed the plugin along with the HTMLpage extension plugin and nothing happened.  I opened the page extension plugin.  I want to make sure, I have to update all .dot pages.  Could you tell me the tables of the database where I need to replace all .dot extensions?  I looked into the plugin and I can tell which tables, however, I am not quite sure if they are true.  If the plugin does not run well in 2.1, it is because there must be a powerful reason because the database tables did not change. 

Alex

Maria Ahues Bouza

unread,
Aug 11, 2012, 11:17:24 PM8/11/12
to dot...@googlegroups.com
I think it doesnt run only because it doesn't think you're changing the extension.

You're telling the plugin to change the extension to .html, but 2.1 by default has extension .html.

So the plugin doesn't think there is anything to change.

You're saying you deployed the plugin to use .dot. 

Try doing the .dot change first, test and make sure dotCMS is taking it right, and then restart with the HTMLPage extension plugin.

If this doesn't work then do check the plugin and see what tables it changes.

I don't know them all by heart and I don't want to mess up your database giving you the wrong information.

Of course please make sure you have a full database backup before doing this manually.

Alex

unread,
Aug 13, 2012, 8:31:42 PM8/13/12
to dot...@googlegroups.com
Maria:

Today setting up the XMLSiteMap plugin I learned about updating the MANIFEST.FM file.  I looked at the code of the HTML Page extension plugin and 

"Runs deploy process when the manifest version is updated"

 So I changed the Manifest version of the HTML Page Extension plugin and it finally ran and I can see errors.  I swear I never touched the database tables - they were inherited from a 1.9 beta version, but these are the errors I am getting now.  I put the errors in red so it is easier to find them.  Probably, 2.1 changed the database tables?


2012-08-13 20:13:08,960 INFO  org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer - Searching for Contentlets

2012-08-13 20:13:08,961 ERROR com.dotcms.content.elasticsearch.business.ESContentFactoryImpl - [working_20120728213100] missing
org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing
at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:476)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.<init>(TransportSearchTypeAction.java:110)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:70)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:61)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:58)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:48)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:108)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:43)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:83)
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:206)
at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:743)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:53)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:47)
at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.indexSearch(ESContentFactoryImpl.java:1275)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.searchIndex(ESContentletAPIImpl.java:557)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:457)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:449)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.search(ContentletAPIInterceptor.java:1511)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.searchAndReplace(HtmlPageExtensionPluginDeployer.java:218)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.deploy(HtmlPageExtensionPluginDeployer.java:84)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.redeploy(HtmlPageExtensionPluginDeployer.java:177)
at com.dotmarketing.plugin.PluginLoader.loadPlugins(PluginLoader.java:123)
at com.dotmarketing.servlets.InitServlet.init(InitServlet.java:123)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-08-13 20:13:08,961 ERROR org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer - A error occured running the replace, the transaction was rollbacked!! Exception message: org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing
2012-08-13 20:13:08,964 ERROR org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer - org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing
java.lang.RuntimeException: org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing
at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.indexSearch(ESContentFactoryImpl.java:1285)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.searchIndex(ESContentletAPIImpl.java:557)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:457)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:449)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.search(ContentletAPIInterceptor.java:1511)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.searchAndReplace(HtmlPageExtensionPluginDeployer.java:218)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.deploy(HtmlPageExtensionPluginDeployer.java:84)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.redeploy(HtmlPageExtensionPluginDeployer.java:177)
at com.dotmarketing.plugin.PluginLoader.loadPlugins(PluginLoader.java:123)
at com.dotmarketing.servlets.InitServlet.init(InitServlet.java:123)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing
at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:476)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.<init>(TransportSearchTypeAction.java:110)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:70)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:61)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:58)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:48)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:108)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:43)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:83)
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:206)
at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:743)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:53)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:47)
at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.indexSearch(ESContentFactoryImpl.java:1275)
... 35 more
2012-08-13 20:13:09,083 ERROR org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer - ERROR: Template Id should be the identifier of a template
com.dotmarketing.exception.DotDataException: ERROR: Template Id should be the identifier of a template
at com.dotmarketing.common.db.DotConnect.loadResult(DotConnect.java:232)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.deploy(HtmlPageExtensionPluginDeployer.java:93)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.redeploy(HtmlPageExtensionPluginDeployer.java:177)
at com.dotmarketing.plugin.PluginLoader.loadPlugins(PluginLoader.java:123)
at com.dotmarketing.servlets.InitServlet.init(InitServlet.java:123)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.postgresql.util.PSQLException: ERROR: Template Id should be the identifier of a template
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:381)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169)
at com.dotmarketing.common.db.DotConnect.executeQuery(DotConnect.java:545)
at com.dotmarketing.common.db.DotConnect.executeQuery(DotConnect.java:467)
at com.dotmarketing.common.db.DotConnect.loadResult(DotConnect.java:230)
... 30 more
2012-08-13 20:13:09,574 ERROR org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer - ERROR: Cannot insert/update for this path does not exist for the given host TRUNK!!
com.dotmarketing.exception.DotDataException: ERROR: Cannot insert/update for this path does not exist for the given host TRUNK!!
at com.dotmarketing.common.db.DotConnect.loadResult(DotConnect.java:232)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.deploy(HtmlPageExtensionPluginDeployer.java:102)
at org.dotcms.plugins.htmlPageExtension.HtmlPageExtensionPluginDeployer.redeploy(HtmlPageExtensionPluginDeployer.java:177)
at com.dotmarketing.plugin.PluginLoader.loadPlugins(PluginLoader.java:123)
at com.dotmarketing.servlets.InitServlet.init(InitServlet.java:123)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.postgresql.util.PSQLException: ERROR: Cannot insert/update for this path does not exist for the given host TRUNK!!
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:381)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169)
at com.dotmarketing.common.db.DotConnect.executeQuery(DotConnect.java:545)
at com.dotmarketing.common.db.DotConnect.executeQuery(DotConnect.java:467)
at com.dotmarketing.common.db.DotConnect.loadResult(DotConnect.java:230)
... 30 more
2012-08-13 20:13:09,597 ERROR com.dotcms.content.elasticsearch.business.ESContentFactoryImpl - [working_20120728213100] missing
org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing
at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:476)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.<init>(TransportSearchTypeAction.java:110)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:70)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:61)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:58)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:48)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:108)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:43)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:83)
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:206)
at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:743)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:53)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:47)
at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.indexSearch(ESContentFactoryImpl.java:1275)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.searchIndex(ESContentletAPIImpl.java:557)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:457)
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:449)
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.search(ContentletAPIInterceptor.java:1511)
at com.dotmarketing.portlets.contentlet.business.HostAPIImpl.findDefaultHost(HostAPIImpl.java:94)
at com.dotmarketing.plugin.business.PluginAPIImpl.loadBackEndFiles(PluginAPIImpl.java:191)
at com.dotmarketing.plugin.PluginLoader.loadPlugins(PluginLoader.java:139)
at com.dotmarketing.servlets.InitServlet.init(InitServlet.java:123)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-08-13 20:13:09,597 WARN  com.dotmarketing.portlets.contentlet.business.HostAPIImpl - Content Index is fouled up, need to try db: org.elasticsearch.indices.IndexMissingException: [working_20120728213100] missing

龙 火

unread,
Aug 13, 2012, 9:10:13 PM8/13/12
to dotCMS User Group, abc291...@gmail.com


On Jul 27, 4:40 am, LWard <lw...@bimedia.net> wrote:
> Hello,
>
> We are trying to use the "Modify HTML Page Extension" plugin and are
> running into build errors.
>
> The errors are:
>
>
>
>
>
> > [echo] Building at: org.dotcms.plugins.htmlPageExtension at
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension
> >     [mkdir] Created dir:
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/build­/classes
> >     [javac] /var/applications/dotCMS/plugins/common.xml:48: warning:
> > 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> > to false for repeatable builds
> >     [javac] Compiling 1 source file to
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/build­/classes
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:26­3:
> > cannot find symbol
> >     [javac] symbol  : method
> > saveInode(com.dotmarketing.portlets.links.model.Link)
> >     [javac] location: class com.dotmarketing.factories.InodeFactory
> >     [javac]
> > InodeFactory.saveInode(link);
> >     [javac]                                                         ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:28­3:
> > cannot find symbol
> >     [javac] symbol  : method
> > saveInode(com.dotmarketing.portlets.virtuallinks.model.VirtualLink)
> >     [javac] location: class com.dotmarketing.factories.InodeFactory
> >     [javac]
> > InodeFactory.saveInode(vlink);
> >     [javac]                                                         ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:32­1:
> > cannot find symbol
> >     [javac] symbol  : method
> > saveInode(com.dotmarketing.portlets.containers.model.Container)
> >     [javac] location: class com.dotmarketing.factories.InodeFactory
> >     [javac]
> > InodeFactory.saveInode(container);
> >     [javac]                                                         ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:33­0:
> > cannot find symbol
> >     [javac] symbol  : method getTemplateByCondition(java.lang.String)
> >     [javac] location: class
> > com.dotmarketing.portlets.templates.factories.TemplateFactory
> >     [javac]                             List templates =
> > TemplateFactory.getTemplateByCondition("body like '%" + searchString +
> > "%'");
> >     [javac]                                                             ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:34­1:
> > cannot find symbol
> >     [javac] symbol  : method
> > saveInode(com.dotmarketing.portlets.templates.model.Template)
> >     [javac] location: class com.dotmarketing.factories.InodeFactory
> >     [javac]
> > InodeFactory.saveInode(template);
> >     [javac]                                                         ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:35­0:
> > cannot find symbol
> >     [javac] symbol  : method getActiveHTMLPages()
> >     [javac] location: class
> > com.dotmarketing.portlets.htmlpages.factories.HTMLPageFactory
> >     [javac]                             List pages =
> > HTMLPageFactory.getActiveHTMLPages();
> >     [javac]                                                         ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:36­2:
> > cannot find symbol
> >     [javac] symbol  : method
> > saveInode(com.dotmarketing.portlets.htmlpages.model.HTMLPage)
> >     [javac] location: class com.dotmarketing.factories.InodeFactory
> >     [javac]
> > InodeFactory.saveInode(htmlpage);
> >     [javac]
> >   ^
> >     [javac]
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java:38­2:
> > cannot find symbol
> >     [javac] symbol  : method
> > saveInode(com.dotmarketing.portlets.structure.model.Field)
> >     [javac] location: class com.dotmarketing.factories.InodeFactory
> >     [javac]
> > InodeFactory.saveInode(field);
> >     [javac]
> >   ^
> >     [javac] Note:
> > /var/applications/dotCMS/plugins/org.dotcms.plugins.htmlPageExtension/src/o­rg/dotcms/plugins/htmlPageExtension/HtmlPageExtensionPluginDeployer.java
> > uses or overrides a deprecated API.
> >     [javac] Note: Recompile with -Xlint:deprecation for details.
> >     [javac] 8 errors
>
> Any ideas?
>
> dotCMS Version 2.0.1 - mySQL- Hide quoted text -
>
> - Show quoted text -

龙 火

unread,
Aug 13, 2012, 9:10:37 PM8/13/12
to dotCMS User Group

龙 火

unread,
Aug 13, 2012, 9:10:49 PM8/13/12
to dotCMS User Group

Maria Ahues Bouza

unread,
Aug 15, 2012, 5:44:18 PM8/15/12
to dot...@googlegroups.com
Alex,

I'm sorry I missed this email. There were a couple of empty emails after and I didn't read yours.

Were you able to get this going?

Are you having this issue on your production site?

-Maria

Alex

unread,
Aug 15, 2012, 6:01:02 PM8/15/12
to dot...@googlegroups.com
Maria:

Actually, I am working on it right now!  :)   I think I am going to do it manually via SQL commands.  So far I have come up with these tables to modify:

containers
htmlpages
identifiers
links
structure
template
virtuallinks


I will let you know how it goes.


Alex

Alex

unread,
Aug 15, 2012, 7:28:05 PM8/15/12
to dot...@googlegroups.com
Maria:

When I try to run the sql commands manually I am getting the same error that the plugin:

Failed to execute SQL : SQL UPDATE HTMLPAGE SET PAGE_URL = REPLACE(PAGE_URL, '.dot', '.html') WHERE PAGE_URL LIKE '%.dot'; failed : ERROR: Template Id should be the identifier of a template

Do you know what I could be doing wrong?  I am using the HTMLPage table...

Alex

Maria Ahues Bouza

unread,
Aug 16, 2012, 12:26:29 PM8/16/12
to dot...@googlegroups.com
Alex,

Are you running this SQL directly in the database?

I'm confused with the error. 

-Maria

Alex

unread,
Aug 16, 2012, 3:00:50 PM8/16/12
to dot...@googlegroups.com
Maria:

I logged in using PSQL to use the database, then I enter the command.

These are the SQL commands that are in the plugin.

Alex

Maria Ahues Bouza

unread,
Aug 16, 2012, 4:59:33 PM8/16/12
to dot...@googlegroups.com
And you get this error?? In postgres?

failed : ERROR: Template Id should be the identifier of a template


Alex

unread,
Aug 16, 2012, 5:24:28 PM8/16/12
to dot...@googlegroups.com
yes.  I get it at the prompt.

Alex

unread,
Aug 17, 2012, 2:24:37 PM8/17/12
to dot...@googlegroups.com
This is what I got from two PostgreSQL experts:


1. That is not any built-in Postgres error message.  Perhaps it is coming
from a trigger function or some such?  In any case, we can't help you.
You need to identify what layer of software it's coming from, and
complain to the appropriate people.

2. This seems to be an application error and not something PostgreSQL is
issuing on its own.  The htmlpage table seems to have an update trigger on
it that checks for the validity of a template id.  Since it is a trigger and
not a constraint it is possible/likely the trigger was added without
validating existing data.  Your update must hit one or more records that do
not meet the conditions that the triggers sets forth so the trigger performs
a "RAISE ERROR 'Template Id should be the identifier of a template'".  You
will need to speak with someone responsible for maintaining the database.

I will do maintenance on the database and see what happens.

Alex

Maria Ahues Bouza

unread,
Aug 17, 2012, 2:35:38 PM8/17/12
to dot...@googlegroups.com
Alex,

That's why I'm confused about the error you're getting because it doesn't look like a database error, it's an application error.

I have to download 2.0, update it to 2.1 and then use the plugin to be able to reproduce what you have and then run the queries on my postgres install.

I'm sorry I haven't been able to help you out more but If I don't follow the steps you did I won't be able to get the same errors, and I might still not get them if this is an issue related to an ealier upgrade.

-Maria

Alex

unread,
Aug 17, 2012, 3:10:12 PM8/17/12
to dot...@googlegroups.com
Maria:

Thank you for your help!  Don't worry this is not a major issue so I can wait.

I think it is related to an inherited issue from a 1.9beta ... thinking about all this ... Can I just dump the database and do a SED search replace the .dot with .html and then restore the dump to the database... The dump is a text file ... so I will not get those errors.  Do you think this will work?

Or, maybe just dump those tables? If this is a good approach, please let me know and I will try so you don't have to invest your time downloading 2.0 and go through what I have been.

Alex

Maria Ahues Bouza

unread,
Aug 17, 2012, 4:07:21 PM8/17/12
to dot...@googlegroups.com
Alex,

That's a good idea and I think it will work as long as you're careful with the replace.

Make sure it's replacing with the ".".

Also, after replacing make sure you do a full reindex and flush the cache

-Maria

Alex

unread,
Aug 17, 2012, 4:14:14 PM8/17/12
to dot...@googlegroups.com
Maria:

Great! I don't know why I did not think of this before.

I will do it over the weekend and let you know how it goes.

Alex

Maria Ahues Bouza

unread,
Aug 17, 2012, 4:59:01 PM8/17/12
to dot...@googlegroups.com
Me neither! :) Good luck this weekend.

Alex

unread,
Aug 23, 2012, 10:07:27 PM8/23/12
to dot...@googlegroups.com
Maria:

In dotCMS 2.0.1, do I need to clearly state? I removed all htmlpage extension plugin.

VELOCITY_PAGE_EXTENSION = html

Since I am doing a manual change I don't know if I did something wrong.  If I don't have that variable set, then the site just gives me a 404.

Alex

Maria Ahues Bouza

unread,
Aug 23, 2012, 11:51:20 PM8/23/12
to dot...@googlegroups.com
The new extension is html in 2.1 not 2.0.1. So you still need the VELOCITY_PAGE_EXTENSION=html in 2.0.1.

Alex

unread,
Aug 24, 2012, 12:06:09 AM8/24/12
to dot...@googlegroups.com
Sorry, I made a mistake.  I am on 2.1 and it seems that I need that setting.  

Alex

unread,
Sep 4, 2012, 5:58:32 PM9/4/12
to dot...@googlegroups.com
Thank you for all your help, Maria!  I officially dropped all the .dot from all my html pages.
Reply all
Reply to author
Forward
0 new messages