[
https://issues.apache.org/jira/browse/CXF-5962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14103679#comment-14103679
]
Akitoshi Yoshida commented on CXF-5962:
---------------------------------------
describing the status below:
the pushed code works fine on karaf (see README.txt for how to try it out)
except at loading the persistent settings file. So you can see the logs etc but
you will see the error message whenever the settings file is accessed. I am
looking into this (if anyone has an idea, please let me know ;-)
so far what i see is that the gwt generarted codein cxf-rt-management-web has
the following js fragment
function w9(a){var
b,c,d;if(a.b==null){b=(c=$doc.location.href,d=c.indexOf(Bjb),d!=-1&&(c=c.substring(0,d)),d=c.indexOf('?'),d!=-1&&(c=c.substring(0,d)),d=c.lastIndexOf(skb),d!=-1&&(c=c.substring(0,d)),c.length>0?c+skb:xgb);y2(b,Ekb)?(a.b=I2(b,0,b.lastIndexOf(Ekb))+'/settings'):(a.b='/log/browser/settings')}return
a.b}
and because of this, it seems the browser tries to fetch the settings file from
http://localhost:8181/log/browser/settings
and not from the correct place
http://localhost:8181/cxf-samples-logbrowser/log/browser/settings
when the generated fragment is manually changed to
function w9(a){var
b,c,d;if(a.b==null){b=(c=$doc.location.href,d=c.indexOf(Bjb),d!=-1&&(c=c.substring(0,d)),d=c.indexOf('?'),d!=-1&&(c=c.substring(0,d)),d=c.lastIndexOf(skb),d!=-1&&(c=c.substring(0,d)),c.length>0?c+skb:xgb);y2(b,Ekb)?(a.b=I2(b,0,b.lastIndexOf(Ekb))+'/settings'):(a.b='settings')}return
a.b}
the loading of the settings works fine for both in standalone and osgi and
there will be no errors.
> Make LogBrowser sample also run in OSGi
> ---------------------------------------
>
> Key: CXF-5962
> URL: https://issues.apache.org/jira/browse/CXF-5962
> Project: CXF
> Issue Type: Improvement
> Components: Management, Samples
> Reporter: Akitoshi Yoshida
> Assignee: Akitoshi Yoshida
>
> Make CXF's LogBrowser sample code also deployable on OSGi.
--
This message was sent by Atlassian JIRA
(v6.2#6252)