Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

403 forbidden error for plugin for javascript file

$
0
0
Hi
I am trying to create a plugin (and custom component) using dojo.
While trying to access a dependency javascript I am getting 403 forbidden error.

e.g.
My custom component which extends BaseCompoent requires the followig:
dojo.require("dojox.charting.Chart");
dojo.require("xwt.widget.charting.plot2d.Grid");

The url in the console which throws the error is:
http://localhost:8080/pentaho/conten...system/xwt/js/dojo/../dojox/charting/Chart.js
It is trying to go to correct location however the ".." breaks it.

The correct url is:
http://localhost:8080/pentaho/conten...system/xwt/js/dojox/charting/Chart.js

I have included the base dojo.js in my component.xml:
<Implementation>
<Code src="XDashXWTPie.js" />
<Raw>
<Fragment name='xwtCharts' version='1.0'>
<=!=[=C=D=A=T=A=[
<script type='text/javascript' src="../../content/pentaho-cdf/GetCDFResource?resource=/system/xwt/js/dojo/dojo.js">
</script>

My plugin xml:
<static-paths>
<static-path url="/xwt/res" localFolder="resources"/>
<static-path url="/xwt/js" localFolder="js"/>
<static-path url="/xwt/js/dojo" localFolder="js/dojo"/>
<static-path url="/xwt/js/dojox" localFolder="js/dojox"/>
<static-path url="/xwt/js/dijit" localFolder="js/dijit"/>
</static-paths>

My dojo library is under "js" folder of plugin

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>