[ 
https://issues.apache.org/jira/browse/OFBIZ-11328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210088#comment-17210088
 ] 

Jacques Le Roux commented on OFBIZ-11328:
-----------------------------------------

Hi Girish,

With trunk HEAD locally using the default theme I tried to get to rest webapp 
(Ofbiz-rest-jersey) and got this error:
bq. 2020-10-08 10:53:23,728 |jsse-nio-8443-exec-8 |GlobalExceptionMapper        
 |E| HTTP 404 Not Found
normal?

Also I got this error with Flat-Grey theme

{noformat}
2020-10-08 10:29:26,617 |jsse-nio-8443-exec-1 |ConfigXMLReader               
|I| controller loaded: 0.274s, 10 requests, 7 views in 
file:/C:/projectsASF/Git/ofbiz-framework/plugins/myportal/webapp/myportal/WEB-INF/controller.xml
2020-10-08 10:29:26,754 |jsse-nio-8443-exec-1 |FreeMarkerWorker              
|E| null
freemarker.core._TemplateModelException: Java method "static 
org.apache.ofbiz.webapp.WebAppUtil.getControlServletPath(org.apache.ofbiz.base.component.ComponentConfig$WebappInfo)"
 threw an exception; see cause exception in the Java stack
trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign servletPath = Static["org.apa...  [in template 
"component://flatgrey/template/AppBar.ftl" at line 38, column 9]
----
[...]
at 
org.apache.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:245)
 [main/:?]
[...]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.IllegalArgumentException: 
org.apache.ofbiz.webapp.control.ControlServlet mapping not found in 
C:\projectsASF\Git\ofbiz-framework\plugins\ofbiz-rest-impl\webapp\ofbiz-rest-jersey\WEB-INF\web.xml
        at 
org.apache.ofbiz.webapp.WebAppUtil.getControlServletPath(WebAppUtil.java:100) 
~[main/:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_202]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_202]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_202]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
        at 
freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1552) 
~[freemarker-2.3.30.jar:2.3.30]
        at 
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:73) 
~[freemarker-2.3.30.jar:2.3.30]
        ... 91 more
{noformat}

I tried to add the "control stuff" with  [^Rest webapp issue.patch]  (content 
roughly copied from ecommerce) to no avail

HTH



> Add JAX-RS capabilities (Jersey) 
> ---------------------------------
>
>                 Key: OFBIZ-11328
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11328
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL PLUGINS
>    Affects Versions: Trunk
>            Reporter: Girish Vasmatkar
>            Assignee: Girish Vasmatkar
>            Priority: Minor
>         Attachments: Rest webapp issue.patch, 
> image-2020-01-29-19-24-52-312.png
>
>
> Add a new Jersey component leveraging JAX-RS. Also add capability to generate 
> swagger documentation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to