The following is weirding me out, I am starting to suspect some deeper bugs within the software stack.
I would like to use the Charting functions of Dojo, which means including Dojox files. Now I understand that Dojo comes within SPRING-JS and SPRING-JS_RESOURCES. Dojox is not included in the version of SPRING-JS that comes with ME4S 10, so I added the Spring WEBFLOW 2.3 classes to the top of my Classpath, including the SPRING-JS and SPRING-JS_RESOURCES.
But even then
<script type="text/javascript">dojo.require("dojox.charting.widget.Chart2D");</script>
<script type="text/javascript">dojo.require("dojox.charting.themes.Claro");</script>
gives the dojox files not being found - I will paste the google developer result below.
If it is finding an old version of SPRING-JS-RESOURCES that would explain why it cant find dojox files as they were not included until recently.
Eventually I went through and removed all the SPRING-JS-RESOURCES and SPRING-JS jar from my class path (then physically deleting them), expecting the following to then also fail
<script type="text/javascript">dojo.require("dijit.layout.ContentPane");</script>
<script type="text/javascript">dojo.require("dijit.layout.TabContainer");</script>
but it does not. I will paste the class path below as well.
So somehow ME4S is finding dojo and dijit files without SPRING-JS in the class path?
Maybe it is a typo somewhere, but I have been working on this for 2 days and I cant see it. Even a suggestion on debug approach would be helpful as I have totally run out of ideas.
Thanks
GOOGLE DEVELOPER RESULTS
http://localhost:8080/zzz_prop/css/c029/index.jsp.css 400 (No Host matches server name localhost)
failed loading /C029/resources/dojo/../dojox/charting/widget/Chart2D.js with error: TypeError: Object function (){this._construct(arguments);} has no method 'split'
dojo._loadUriAndCheck dojo.js:16
dojo._loadPath dojo.js:16
dojo._loadModule.dojo.require dojo.js:16
dojo.js:16Uncaught Error: Could not load 'dojox.charting.widget.Chart2D'; last tried '../dojox/charting/widget/Chart2D.js'
dojo._loadModule.dojo.require dojo.js:16
GET
http://localhost:8080/C029/resources/dojox/charting/themes/Claro.js 404 (/C029/page-not-found.jsp)
d._getText dojo.js:16
dojo._loadUri dojo.js:16
dojo._loadUriAndCheck dojo.js:16
dojo._loadPath dojo.js:16
dojo._loadModule.dojo.require dojo.js:16
(anonymous function)price_optimiser:177 dojo.js:16
Uncaught Error: Could not load 'dojox.charting.themes.Claro'; last tried '../dojox/charting/themes/Claro.js'
dojo._loadModule.dojo.require dojo.js:16
Uncaught TypeError: Object #<Object> has no method 'ready'
CLASS PATH
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="lib" path="/home/greg/Apps/java_classes/spring-webflow-2.3.0.RELEASE/dist/org.springframework.js.resources-2.3.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/home/greg/Apps/java_classes/spring-webflow-2.3.0.RELEASE/dist/org.springframework.js-2.3.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/home/greg/Apps/java_classes/spring-webflow-2.3.0.RELEASE/dist/org.springframework.binding-2.3.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/home/greg/Apps/java_classes/spring-webflow-2.3.0.RELEASE/dist/org.springframework.faces-2.3.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/home/greg/Apps/java_classes/spring-webflow-2.3.0.RELEASE/dist/org.springframework.webflow-2.3.0.RELEASE.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="src" path="resources"/>
<classpathentry kind="src" path="generated"/>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.aopalliance.AOPALLIANCE_1_0">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.apache.commons.APACHE_COMMONS_1_8">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.apache.commons.APACHE_COMMONS_CODEC_1_5">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.apache.commons.Apache_DBCP_1_3">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.apache.commons.APACHE_COMMONS_IO_1_4">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.apache.commons.APACHE_COMMONS_LANG_2_5">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.atomikos.ATOMIKOS_3_6_4">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.cxf.CXF_2_1_9">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.cxf.CXF_SUPPORT_2_1_9">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.web.DWR_2_0_5">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.derby.Derby_10_1_1_0">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.google.guice.GOOGLE_GUICE_3_0">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.hibernate.Hibernate_Core_35">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.json.jackson.JSON_JACKSON_16">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.spring.JSTL_1_2">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.logging.Logging_1_5_10">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.postgres.PostgresJDBC_8_3">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.web.SiteMesh_2_4">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.skyway.SkywaySpringUtils_7_1_3">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.spring.Spring_Core_3">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.spring.Spring_MVC_3">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.skyway.myeclipseforspring.lib.spring.Spring_Security_3_0_0">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/home/greg/Apps/java_classes/ognl-2.6.9.jar"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>