I tried to do a fresh setup and got exactly the same error. In order to
deploy on Tomcat
Please let me knoe how to go about resolving it.
On Thu, Feb 3, 2011 at 11:56 AM, Nihita Goel <nih
...@tifr.res.in> wrote:
> Hello:
> I tried my best to resolve this.
> codemirror directory exists in webapps/orchard directory on my tomcat
> server. Within the orchard directory a codemirror directory exists and
> contains some codemirror related js files.
> The webapps/orchard/codemirror directory has following files
> codemirror.jsp,editor.js,select.js,stringtokenizer.js,tokenize.js,undo.js,u til.jsp
> And the the webapps/orchard directory has
> date.js, jquery-1.2.6-min.js, mock-executor.js, orc.js, orc-parser-min.js
> and orc-ready-min.js
> I tried to debug this through the browser script debugger and noticed that
> the html file created was using the following js files
> /orchard/codemirror-extra-min.js
> /orchard/orc-parser-min.js
> /orchard/jquery-1.2.6-min.js
> /orchard/codemirror-min.js
> /orchard/orc-ready-min.js
> I noticed that while the other 3 files were present in orchard directory
> the codemirror-min and codemirror-extra-min was not. I copied the
> codemirror.js file present in codemirror directory as codemirror-min.js in
> orchard directory directly.
> This changed the error of "CodeMirror" undefined to "Editor" undefined
> which is now coming in orc-parser-min.js
> I would like to know what these "min" files are? If I download codemirror
> js files - they also do not contain these min files.
> I noticed that it is using -min.js files based on the value of this mock
> variable.
> Kindly provide some more information on this to help me in setting this
> up..
> -- Nihita
> On Thu, Feb 3, 2011 at 4:02 AM, David Kitchin <dkitc...@cs.utexas.edu>wrote:
>> CodeMirror is the Javascript code editor program that we use as the
>> basis of the Try Orc editor window. If it can't be found then there
>> may be some missing .js files that Orchard needs to serve to display
>> the editor correctly.
>> On Feb 2, 6:13 am, Nihita Goel <nih...@tifr.res.in> wrote:
>> > Hello:
>> > This problem got resolved by copying all jars in orchard/lib to
>> > tomcat/common/endorsed directory.
>> > Now the orchard is deployed on my tomcat and is accessible
>> ashttp://localhost:8080/orchard
>> > Now when I enter any orc script and execute run I am getting the
>> following
>> > error.( As "Error on Page" on my browser)
>> > Webpage error details
>> > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
>> > Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET
>> CLR
>> > 3.0.30729; Media Center PC 6.0; InfoPath.2)
>> > Timestamp: Wed, 2 Feb 2011 12:08:55 UTC
>> > Message: 'CodeMirror' is undefined
>> > Line: 1
>> > Char: 8163
>> > Code: 0
>> > URI:http://localhost:8080/orchard/orc-ready-min.js
>> > Message: 'g' is null or not an object
>> > Line: 1
>> > Char: 2419
>> > Code: 0
>> > URI:http://localhost:8080/orchard/orc-ready-min.js
>> > Please let me know what could have gone wrong.
>> > Regards
>> > Nihita
>> > On Tue, Feb 1, 2011 at 4:53 PM, Nihita Goel <nih...@tifr.res.in> wrote:
>> > > Hi: Has anyone tried to deploy the orchard.war on Tomcat ?
>> > > I am facing this problem. It gets delployed but when I start it it
>> gives
>> > > message
>> > > FAIL - Application at context path /orchard could not be started
>> > > and the following message in the log
>> > > Feb 1, 2011 4:37:50 PM org.apache.catalina.core.StandardContext
>> > > listenerStart
>> > > SEVERE: Error configuring application listener of class
>> > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener
>> > > java.lang.ClassNotFoundException:
>> > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener
>> > > at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
>> va:1438)
>> > > at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
>> va:1284)
>> > > at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java
>> :3743)
>> > > at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
>> > > at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
>> 760)
>> > > at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>> > > at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>> > > at
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
>> > > at
>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
>> > > at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
>> > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
>> > > at
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
>> > > at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo
>> rt.java:120)
>> > > at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>> > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>> > > at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>> > > at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> > > at
>> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>> > > at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>> > > at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> > > at java.lang.reflect.Method.invoke(Unknown Source)
>> > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>> > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>> > > Feb 1, 2011 4:37:50 PM org.apache.catalina.core.StandardContext
>> > > listenerStart
>> > > SEVERE: Skipped installing application listeners due to previous
>> error(s)
>> > > I am not very sure if the log message is relevant to this problem
>> though.
>> > > If anyone has done this earlier please let me know..
>> > > -- Nihita
>> > --
>> > Nihita Goel
>> > Tata Institute of Fundamental Research
>> > Mumbai-400005
> --
> Nihita Goel
> Tata Institute of Fundamental Research
> Mumbai-400005