Error adding publishing environment / server

35 views
Skip to first unread message

Michael Bishop

unread,
Nov 30, 2015, 1:17:59 PM11/30/15
to dotCMS User Group
Every attempt I make to set up a push publishing environment in the Configuration -> Publishing environments menu, an alert pops up saying that: 

"RequestError: Unable to load /DotAjaxDirector/com.dotcms.publisher.endpoint.ajax.PublishingEndpointAjaxAction/cmd/addEndpoint status: 500"

Here is the stacktrace found in the logs of the server in question.


java.lang.ClassNotFoundException: com.htmlcms.publisher.endpoint.ajax.PublishingEndpointAjaxAction
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at com.dotmarketing.servlets.ajax.AjaxDirectorServlet.service(AjaxDirectorServlet.java:34)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:134)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.filters.AutoLoginFilter.doFilter(AutoLoginFilter.java:61)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.cms.urlmap.filters.URLMapFilter.doFilter(URLMapFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.filters.TimeMachineFilter.doFilter(TimeMachineFilter.java:162)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.filters.CookiesFilter.doFilter(CookiesFilter.java:33)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:146)

The license level that we're running is "ENTERPRISE EDITION (Time Limited)" and it's installed correctly because we're using other Enterprise features.  This issue is only present on the dev servers, our production servers are able to be configured normally without issue.

Jason Tesser

unread,
Nov 30, 2015, 1:20:10 PM11/30/15
to dotCMS User Group
In the dev server what version of dotCMS and what Java version are u running 

--
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.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.

Michael Bishop

unread,
Nov 30, 2015, 3:14:57 PM11/30/15
to dotCMS User Group
The dev server is running dotCMS version 2.5.7 and Java version 1.7.0_51

Michael Bishop

unread,
Dec 2, 2015, 11:57:33 AM12/2/15
to dotCMS User Group
Any update on this?  It's very frustrating that we're unable to use an enterprise feature and not getting any support.

Jason Tesser

unread,
Dec 2, 2015, 11:59:51 AM12/2/15
to dotCMS User Group

It looks to me like something is wrong with the environment then cause that is a weird error.  Not sure from here what now to say.  Make sure u have a good clean install

Brent Griffin

unread,
Dec 2, 2015, 12:22:38 PM12/2/15
to dotCMS User Group
I would suggest verifying that both servers are running the exact same versions of dotCMS and Java.

If these match, it is worth verifying the location of the com.htmlcms.publisher.endpoint.ajax.PublishingEndpointAjaxAction class.  You could use a bash script similar to the following to search the dotCMS installation for the class:

#!/bin/sh
ARGS=2

if [ "$#" -ne "$ARGS" ]
then
echo "Usage:  `basename $0` <DIRECTORY> <CLASSNAME>"
else
unset JAVA_TOOL_OPTIONS
find "$1" -name "*.jar" -exec sh -c 'jar -tf {}|grep -H --label {} '$2'' \;
fi

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

Michael Bishop

unread,
Dec 3, 2015, 10:19:42 AM12/3/15
to dotCMS User Group
Brent,

Thank you for your reply.  I have verified that the class does exist within the correct package in the dotcms jar file.  Also the environments are exactly the same because the dev servers are a clone of production, but I did double check to make sure that the java and dotCMS versions are the same.

Jason, is there anything else besides the dotCMS and java version that could cause this issue?

ethod...@gmail.com

unread,
Dec 7, 2015, 8:33:20 AM12/7/15
to dotCMS User Group
Well, I take that back.  The class in not in the correct package, the class is actually in "com.dotcms.publisher.endpoint.ajax" and not "com.htmlcms.publisher.endpoint.ajax" which is what is missing.  The weird thing is, the production installation of dotCMS does not have this class either and works fine.

Brent Griffin

unread,
Dec 7, 2015, 9:46:39 AM12/7/15
to dotCMS User Group, ethod...@gmail.com
Strange - but if you look at this line of code, com.dotmarketing.servlets.ajax.AjaxDirectorServlet.service(AjaxDirectorServlet.java:34), you can see that it is dynamically trying to load this class from the request URL.  In the web.xml we see this servlet has this <url-pattern>/DotAjaxDirector/*</url-pattern>.  This tells me that the issue is with a request coming from a http client probably from a HTML or JSP page that is requesting something like what was in your error message:  /DotAjaxDirector/com.dotcms.publisher.endpoint.ajax.PublishingEndpointAjaxAction/cmd/addEndpoint

A quick grep of 2.5.7 source code results in 0 hits.

Do you have any custom code (html or jsp pages) that may be involved here?  If not, do you have any plugins deployed?

If these suggestions do not provide you with the answers you are seeking, I would suggest contacting support and having one of our support engineers debug through this with you.

Hope this helps,
Brent Griffin
Sr. Java Architect
dotCMS
Reply all
Reply to author
Forward
0 new messages