"dojox" is not defined when deploying Jazz comp on
![]()
works fine using a launch file on jetty
ERROR x.internal.javascript.JavaScriptDependencyAnalyzer - Error loading uri: : ReferenceError: "dojox" is not defined. These are the steps I did: Create the feature and update site. Create a new folder EPMComp in the folder C:\Jazz\M6\jazz\server Copy the file site.xml, folders features and plugins from the update site project to the new folder Create the folder provision_profiles in the folder C:\Jazz\M6\jazz\server Copy the file profile.ini into this folder Open the files server.startup and server.startup.bat and replace the text "profile.ini" with "provision_profiles" Create a new file epm_profile.ini in EPMComp folder Add the following lines into this file url=file:./EPMComp featureid=com.ibm.epm.poc.server.feature Dependencies for the feature: com.ibm.team.repository.common"/> com.ibm.team.repository.service"/> com.ibm.team.process.common"/> com.ibm.team.workitem.common"/> com.ibm.team.workitem.service"/> org.eclipse.core.runtime"/> com.ibm.team.repository.servlet"/> com.ibm.team.dashboard.common"/> com.ibm.team.dashboard.viewlets.service"/> com.ibm.team.repository.web"/> com.ibm.team.process.web"/> org.dojotoolkit"/> com.ibm.team.repository.common.json"/> org.apache.commons.logging"/> org.eclipse.osgi"/> org.eclipse.osgi.services"/> com.ibm.team.repository.provision"/> Tomcat server output when I start the server: Jun 13, 2008 9:50:00 AM org.apache.catalina.core.AprLifecycleListener lifecycleE vent INFO: The Apache Tomcat Native library which allows optimal performance in produ ction environments was not found on the java.library.path: C:\Jazz\M6\jazz\serve r\win32\ibm-java2-i386-50\jre\bin;.;C:\Program Files\ThinkPad\Utilities;C:\WINDO WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint S elect;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\IBMT OOLS\Python22;C:\WINDOWS\Downloaded Program Files;C:\Program Files\IBM\Java50\bi n;C:\Hrishikesh\Projects\mtasc-1.13;C:\Program Files\QuickTime\QTSystem\ Jun 13, 2008 9:50:00 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-9080 Jun 13, 2008 9:50:05 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-9443 Jun 13, 2008 9:50:05 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 7631 ms Jun 13, 2008 9:50:06 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 13, 2008 9:50:06 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 Jun 13, 2008 9:50:06 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jun 13, 2008 9:51:05 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-9080 Jun 13, 2008 9:51:05 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-9443 Jun 13, 2008 9:51:06 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jun 13, 2008 9:51:06 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=null Jun 13, 2008 9:51:06 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jun 13, 2008 9:51:06 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 60600 ms 09:52:04,108 ERROR x.internal.javascript.JavaScriptDependencyAnalyzer - Error loading uri: : ReferenceError: "dojox" is not defined. 09:52:17,305 WARN x.internal.javascript.JavaScriptDependencyAnalyzer - A Circular Dependency has been found 09:52:34,118 ERROR et.jazz.ajax.internal.registry.WebUIRegistryReader - Failed to start application for alias net.jazz.ajax.javascript.JavaScriptServiceException: Failed to find a JavaScript Module for at net.jazz.ajax.internal.javascript.JavaScriptDependencyAnalyzer.regist erPageDojoJavaScript(JavaScriptDependencyAnalyzer.java:485) at net.jazz.ajax.internal.javascript.JavaScriptServiceImpl.registerAppli cation(JavaScriptServiceImpl.java:104) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registerApplicati on(WebUIRegistryReader.java:651) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registryChanged(W ebUIRegistryReader.java:500) at org.eclipse.core.internal.registry.ExtensionRegistry$2.run(ExtensionR egistry.java:803) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEve nt(ExtensionRegistry.java:801) at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(Regi stryStrategy.java:246) at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.r un(ExtensionEventDispatcherJob.java:50) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 09:52:34,118 ERROR et.jazz.ajax.internal.registry.WebUIRegistryReader - Failed to start application for alias net.jazz.ajax.javascript.JavaScriptServiceException: Failed to find a JavaScript Module for at net.jazz.ajax.internal.javascript.JavaScriptDependencyAnalyzer.regist erPageDojoJavaScript(JavaScriptDependencyAnalyzer.java:485) at net.jazz.ajax.internal.javascript.JavaScriptServiceImpl.registerAppli cation(JavaScriptServiceImpl.java:104) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registerApplicati on(WebUIRegistryReader.java:651) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registryChanged(W ebUIRegistryReader.java:500) at org.eclipse.core.internal.registry.ExtensionRegistry$2.run(ExtensionR egistry.java:803) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEve nt(ExtensionRegistry.java:801) at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(Regi stryStrategy.java:246) at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.r un(ExtensionEventDispatcherJob.java:50) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 09:52:41,005 ERROR x.internal.javascript.JavaScriptDependencyAnalyzer - Error loading uri: : ReferenceError: "dojox" is not defined. |
One answer
![]()
The errors listed indicate that your webBundles has registered JAF
application extensions in their plugin.xml files but when processed the referenced javascript modules for the defined applications are not found com.ibm.epm.web.core.app.internal.EPMApplication com.ibm.epm.web.core.app.internal.ProjectAreaListApplication I would take a guess that you have not setup the build.properties for your webBundles to include the javascript resources so when you export them they will not contain everything you think they should. BTW you should really ask these sort of questions in the "jazz.extend" newsgroup instead of "jazz.user". Richard Jazz Web UI and Server Development hrishikesh.kumar wrote: works fine using a launch file on jetty: ReferenceError: "dojox" is not defined. These are the steps I did: Create the feature and update site. Create a new folder EPMComp in the folder C:\Jazz\M6\jazz\server Copy the file site.xml, folders features and plugins from the update site project to the new folder Create the folder provision_profiles in the folder C:\Jazz\M6\jazz\server Copy the file profile.ini into this folder Open the files server.startup and server.startup.bat and replace the text "profile.ini" with "provision_profiles" Create a new file epm_profile.ini in EPMComp folder Add the following lines into this file url=file:./EPMComp featureid=com.ibm.epm.poc.server.feature Dependencies for the feature: com.ibm.team.repository.common"/ com.ibm.team.repository.service"/ com.ibm.team.process.common"/ com.ibm.team.workitem.common"/ com.ibm.team.workitem.service"/ org.eclipse.core.runtime"/ com.ibm.team.repository.servlet"/ com.ibm.team.dashboard.common"/ com.ibm.team.dashboard.viewlets.service"/ com.ibm.team.repository.web"/ com.ibm.team.process.web"/ org.dojotoolkit"/ com.ibm.team.repository.common.json"/ org.apache.commons.logging"/ org.eclipse.osgi"/ org.eclipse.osgi.services"/ com.ibm.team.repository.provision"/ Tomcat server output when I start the server: Jun 13, 2008 9:50:00 AM org.apache.catalina.core.AprLifecycleListener lifecycleE vent INFO: The Apache Tomcat Native library which allows optimal performance in produ ction environments was not found on the java.library.path: C:\Jazz\M6\jazz\serve r\win32\ibm-java2-i386-50\jre\bin;.;C:\Program Files\ThinkPad\Utilities;C:\WINDO WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint S elect;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\IBMT OOLS\Python22;C:\WINDOWS\Downloaded Program Files;C:\Program Files\IBM\Java50\bi n;C:\Hrishikesh\Projects\mtasc-1.13;C:\Program Files\QuickTime\QTSystem\ Jun 13, 2008 9:50:00 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-9080 Jun 13, 2008 9:50:05 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-9443 Jun 13, 2008 9:50:05 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 7631 ms Jun 13, 2008 9:50:06 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 13, 2008 9:50:06 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 Jun 13, 2008 9:50:06 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jun 13, 2008 9:51:05 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-9080 Jun 13, 2008 9:51:05 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-9443 Jun 13, 2008 9:51:06 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jun 13, 2008 9:51:06 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=null Jun 13, 2008 9:51:06 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jun 13, 2008 9:51:06 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 60600 ms 09:52:04,108 ERROR x.internal.javascript.JavaScriptDependencyAnalyzer - Error loading uri: : ReferenceError: "dojox" is not defined. 09:52:17,305 WARN x.internal.javascript.JavaScriptDependencyAnalyzer - A Circular Dependency has been found 09:52:34,118 ERROR et.jazz.ajax.internal.registry.WebUIRegistryReader - Failed to start application for alias net.jazz.ajax.javascript.JavaScriptServiceException: Failed to find a JavaScript Module for at net.jazz.ajax.internal.javascript.JavaScriptDependencyAnalyzer.regist erPageDojoJavaScript(JavaScriptDependencyAnalyzer.java:485) at net.jazz.ajax.internal.javascript.JavaScriptServiceImpl.registerAppli cation(JavaScriptServiceImpl.java:104) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registerApplicati on(WebUIRegistryReader.java:651) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registryChanged(W ebUIRegistryReader.java:500) at org.eclipse.core.internal.registry.ExtensionRegistry$2.run(ExtensionR egistry.java:803) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEve nt(ExtensionRegistry.java:801) at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(Regi stryStrategy.java:246) at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.r un(ExtensionEventDispatcherJob.java:50) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 09:52:34,118 ERROR et.jazz.ajax.internal.registry.WebUIRegistryReader - Failed to start application for alias net.jazz.ajax.javascript.JavaScriptServiceException: Failed to find a JavaScript Module for at net.jazz.ajax.internal.javascript.JavaScriptDependencyAnalyzer.regist erPageDojoJavaScript(JavaScriptDependencyAnalyzer.java:485) at net.jazz.ajax.internal.javascript.JavaScriptServiceImpl.registerAppli cation(JavaScriptServiceImpl.java:104) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registerApplicati on(WebUIRegistryReader.java:651) at net.jazz.ajax.internal.registry.WebUIRegistryReader.registryChanged(W ebUIRegistryReader.java:500) at org.eclipse.core.internal.registry.ExtensionRegistry$2.run(ExtensionR egistry.java:803) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEve nt(ExtensionRegistry.java:801) at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(Regi stryStrategy.java:246) at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.r un(ExtensionEventDispatcherJob.java:50) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 09:52:41,005 ERROR x.internal.javascript.JavaScriptDependencyAnalyzer - Error loading uri: : ReferenceError: "dojox" is not defined. |