Grails g:render template from plugin - not found - templates

I need to render a template from a plugin to a .gsp page. I wrote : <g:render plugin="melanin 2.0.0" template="/m-melanin-fingerprint/m-melanin-fingerprint-sidebar"/>
But then I get this error :
Error 500: Error processing GroovyPageView: Template not found for
name [/m-melanin-fingerprint/m-melanin-fingerprint-sidebar] and path
[/m-melanin-fingerprint/_m-melanin-fingerprint-sidebar.gsp] Servlet:
grails URI: /RBCS/grails/VIBAction/index.dispatch Exception Message:
Template not found for name
[/m-melanin-fingerprint/m-melanin-fingerprint-sidebar] and path
[/m-melanin-fingerprint/_m-melanin-fingerprint-sidebar.gsp] Caused by:
Error processing GroovyPageView: Template not found for name
[/m-melanin-fingerprint/m-melanin-fingerprint-sidebar] and path
[/m-melanin-fingerprint/_m-melanin-fingerprint-sidebar.gsp] Class:
actionPlan.gsp At Line: [40] Code Snippet: 39: 40: 41:
This is my project:
Please help me fix it. Sorry my English is not good. Thank you.

try removing the version from your plugin-ref:
<g:render plugin="melanin" template="/m-melanin-fingerprint/m-melanin-fingerprint-sidebar"/>

Related

Logstash grok pattern to catch the first line with the string Exception

This is the an example log:
2022-01-07 11:05:01,185 [http-nio-8080-exec-526] WARN de.web.Main| = - Error while execute Request
javax.servlet.ServletException: com.cg.blart.web.HttpInvocationException: Invalid tenant session
at com.cg.blume.web.DispatchingServlet.doGet(DispatchingServlet.java:169)
at de.jinx.lee.web.AutoDBUpgradeDispatchingServlet.lambda$doGet$0(AutoDBUpgradeDispatchingServlet.java:200)
at de.jinx.lee.web.AutoDBUpgradeDispatchingServlet.addMDCKey(AutoDBUpgradeDispatchingServlet.java:297)
Caused by: com.cg.blume.web.HttpInvocationException: Invalid tenant session
at com.cg.blume.web.procedure.HttpSessionManager.get(HttpSessionManager.java:190)
at de.jinx.lee.web.session.leeHttpSessionManager.get(leeHttpSessionManager.java:76)
... 41 more
This ist the pattern so far:
^.*?Exception: +%{DATA:exception}$
The output i get is close but no cigar: "com.cg.blart.web.HttpInvocationException: Invalid tenant session". For the live of me i dont get it to match the whole line. Can you show me the way? The desired output is:
javax.servlet.ServletException: com.cg.blart.web.HttpInvocationException: Invalid tenant session
Here is a link for a test tool: https://grokdebug.herokuapp.com/
Solution was this pattern:
(?<DATA:mps_exception>.*?(Exception:).*)
It is explained here: https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html#_custom_patterns

WSO2 IS Unable to compile class for JSP

I'm using WSO2 IS 5.10 with docker and after making a change to the image, which has nothing to do with JSPs, opening the dashboard on the service provider list I see a white screen.
In wso2 log I found errors like this:
Servlet.service() for servlet [bridgeservlet] threw exception org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [17] in the generated java file: [/home/wso2carbon/wso2is-5.10.0/lib/tomcat/work/Catalina/localhost/ROOT/proxytemp/hc_1893914628/org/apache/jsp/application/list_002dservice_002dproviders_jsp.java]
Only a type can be imported. org.wso2.carbon.identity.application.common.model.xsd.ApplicationBasicInfo resolves to a package
An error occurred at line: [118] in the jsp file: [/application/list-service-providers.jsp]
ApplicationBasicInfo cannot be resolved to a type
115: <%
116: String BUNDLE = "org.wso2.carbon.identity.application.mgt.ui.i18n.Resources";
117: ResourceBundle resourceBundle = ResourceBundle.getBundle(BUNDLE, request.getLocale());
118: ApplicationBasicInfo[] applications = null;
119:
120: String filterString = request.getParameter(ApplicationMgtUIConstants.SP_NAME_FILTER);
121: filterString = ApplicationMgtUIUtil.resolveFilterString(filterString);
this disappears when restarting the image.
I’d like to know what it’s due to

Missing Template Splash Page Index Error

I get the following error when loading the root page of the server:
Template is missing
Missing template splash/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :jbuilder]}.
My splash index page is in app/views/splash/index.html.haml
routes.rb:
root 'splash#index'
post '/signup' => 'splash#signup', as: :splash_signup
get '/spash' => 'splash#index'
The root used to direct to app/views/home/index.html.erb but I removed it and any relating code. Could this be causing my error somehow?
The handlers listed in your error message appear to be missing a handler for haml:
:handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :jbuilder]}.
Adding gem "haml" to your Gemfile, running bundle install and restarting your Rails server should fix this.
You can add the haml-rails gem instead if you want to have your generators use haml as the default for templates generated using Rails' built-in generators.
More info on haml can be found here: https://github.com/haml/haml
The haml-rails documentation is here: https://github.com/indirect/haml-rails

Jboss to exclude org.jboss.ws.jaxws-client module

I'm using Jboss EAP 6.2, in deployment phase I have this error:
20:04:24,161 | | SEVERE [org.apache.cxf.BusFactory] (http-localhost/127.0.0.1:8080-1) Failed to determine BusFactory implementation class name.: java.lang.ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory
at java.lang.Class.asSubclass(Unknown Source) [rt.jar:1.7.0_67]
at org.apache.cxf.BusFactory.getBusFactoryClass(BusFactory.java:395) [cxf-bundle-2.7.7.jar:2.7.7]
at org.apache.cxf.BusFactory.newInstance(BusFactory.java:316) [cxf-bundle-2.7.7.jar:2.7.7]
at org.apache.cxf.BusFactory.newInstance(BusFactory.java:303) [cxf-bundle-2.7.7.jar:2.7.7]
at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.getConduitInitiator(SOAPConnectionImpl.java:201)
at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:69)
at it.lispa.sire.finanziamentionline.service.integrazione.gapp.impl.GappClient.sendMessage(GappClient.java:233) [:]
at it.lispa.sire.finanziamentionline.service.integrazione.gapp.impl.GappClient.verificaCartaCittadino(GappClient.java:95) [:]
I tried to exclude org.jboss.ws.jaxws-clientmodule in jboss-deployment-structure.xml file for to use the SoapConnectionImpl of Axis library without success.
I resolved commenting this line in JBOSS_HOME\modules\system\layers\base\org\jboss\ws\saaj-impl\main\module.xml (the comment is not mine):
<module name="org.jboss.ws.jaxws-client" services="import"/> <!-- to pull the jbossws-cxf SOAPConnection impl -->
I would like to solve the problem by configuring the jboss-deployment-structure.xml file, can you help me?
Thanks. Bye

Sismo - PHP Fatal error: Class 'Sismo\GrowlNotifier' not found

Trying to setup Sismo , running php sismo.php results in :
PHP Fatal error: Class 'Sismo\GrowlNotifier' not found
My config is setup in the default ~/.sismo/config.php location
and the line is:
$notifier = new Sismo\GrowlNotifier('pa$$word');
The correct FQCN is Sismo\Notifier\GrowlNotifier.