VMware Cloud Community
SLTB
Enthusiast
Enthusiast

Freezer HQU plugin doesn't work

Hi,

I have followed the instructions of Saffolding to create HQU plugin:
http://support.hyperic.com/confluence/display/hypcomm/HQU+Scaffolding

When I try to access the plugin at:
http://localhost:7080/hqu/cool/freezer/index.hqu

I'm getting this error:
2008-02-24 18:47:53,436 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[hqu]] Servlet.service() for servlet hqu threw exception
org.hyperic.hq.common.SystemException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 37: unexpected char: '\' @ line 37, column 29.
1 error

at org.hyperic.hq.hqu.rendit.PluginWrapper.handleRequest(PluginWrapper.java:145)
at org.hyperic.hq.hqu.rendit.RenditServer.handleRequest(RenditServer.java:188)
at org.hyperic.hq.ui.servlet.RenditServlet.handleRequest(RenditServlet.java:151)
at org.hyperic.hq.ui.servlet.RenditServlet.doGet(RenditServlet.java:60)


And then this:

javax.servlet.jsp.JspException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 37: unexpected char: '\' @ line 37, column 29. 1 error at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:324) at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:179) at org.apache.jsp.portal.AttachBody_jsp._jspx_meth_c_import_0(Unknown Source) at


ETC.....

Any idea what it could be?

Thanks,

Message was edited by: SLTB
Reply
0 Kudos
3 Replies
Matt5D
Enthusiast
Enthusiast

The plugin example inserts your native path name into the gsp page it creates. On Windows, this naturally includes the treacherous backslash, who slays your compiler with swift ease.

Go to index.gsp, find the line below, and get rid of the backslashes.

<li><b>C:\foo\bar\hq\ui_plugins\cool\etc/cool_i18n.properties</b> contains
the description (which is currently <i><%= plugin.description %></i>)</li>

GSP is quite different from JSP in that, the entire contents of your file are going to be read as a string literal by groovy, so you have to worry about escapes in what would otherwise be html.

Message was edited by: Matt5D
admin
Immortal
Immortal

Other than this, have you found the documentation and scaffolding
fairly easy to work with?

-- Jon


On Feb 26, 2008, at 10:27 AM, Matt5D wrote:

> The plugin example inserts your native path name into the gsp page
> it creates. On Windows, this naturally includes the treacherous
> backslash, who slays your compiler with swift ease.
>
> Go to index.gsp, find the line below, and get rid of the backslashes.
>
> <li><b>C:\foo\bar\hq\ui_plugins\cool\etc/
> cool_i18n.properties</b> contains
> the description (which is currently <i><%=
> plugin.description %></i>)</li>


Reply
0 Kudos
SLTB
Enthusiast
Enthusiast

Thanks a lot,
You solved it for me!
Now I can go on to understand the hqu concept.
Question is - how can I find the root cause my self next time from the log error?
Or, how can I debug the hqu plugin.
Reply
0 Kudos