Unable to get rhino-for-webapps running

30 views
Skip to first unread message

agrohe21

unread,
Nov 22, 2010, 11:42:13 AM11/22/10
to rhino-for-webapps
I was very excited to see this framework as I would like to interact
with an existing Java server application.

I tried the following:

1. the basic download with Jetty. It runs but the samples don't show
up.
2. Deploy the code in an existing tomcat webapp. i.e. added parts to
existing web.xml Same result. no examples. Well, to be more specific,
the header and footer show up but not the content?
3. Deploy the code in an existing tomcat, as a new web app. same
results as above.

Seems to think it is an interpreter Loop?

here are a few of the error lines displayed in the browser

org.mozilla.javascript.EcmaError: TypeError: Cannot find function
_404. (file:/C:/pentaho/server/biserver-ee/tomcat/webapps/ssjs/
templates/base.js#20) at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3350) at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3340) at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:
3356) at
org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:
3368) at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:
3428) at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:
2052) at
org.mozilla.javascript.ScriptRuntime.getElemFunctionAndThis(ScriptRuntime.java:
1979) at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
3092) at script(file:/C:/pentaho/server/biserver-ee/tomcat/webapps/
ssjs/templates/base.js:20) at script(file:/C:/pentaho/server/biserver-
ee/tomcat/webapps/ssjs/scripts/site.js:47) at script(file:/C:/pentaho/
server/biserver-ee/tomcat/webapps/ssjs/scripts/dispatch.js:14) at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394) at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
162) at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:
393) at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
2834) at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
160) at org.mozilla.javascript.Context.call(Context.java:548) at
org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:
1833)

any help would be appreciated.

andy

chris thatcher

unread,
Nov 23, 2010, 10:14:35 AM11/23/10
to rhino-fo...@googlegroups.com
Hi Andy, It looks like a simple path issue.  I usually work in a unix environment, but I'm loading it up on my PC at work.  I'll commit a patch soon.

Thatcher


--
You received this message because you are subscribed to the Google Groups "rhino-for-webapps" group.
To post to this group, send email to rhino-fo...@googlegroups.com.
To unsubscribe from this group, send email to rhino-for-weba...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhino-for-webapps?hl=en.




--
Christopher Thatcher

chris thatcher

unread,
Nov 23, 2010, 11:48:09 AM11/23/10
to rhino-fo...@googlegroups.com
Hi Andy, I got the latest zip from github and after unzipping it ran the following:

C:\cygwin\opt\packages\rfw\rhino-for-webapps>cd jetty

C:\cygwin\opt\packages\rfw\rhino-for-webapps\jetty>java -jar start.jar

Everything ran correctly.  What do you mean when you say 'the samples don't show up'?  One thing that may be happening is the 'share widget' blocks the page load if you dont have an external internet connection.  I added a defer attribute to the script tag so it wont block, but I'm not sure this is your issue.

Happy to help more if this wasnt the issue.

Thatcher
--
Christopher Thatcher

agrohe21

unread,
Nov 24, 2010, 11:10:53 AM11/24/10
to rhino-for-webapps
Looks like it was the "share this" widget. when I run this on a
machine with internet access, it works fine.

I often run on VM's without internet access, so it would be good to
remove this type of dependency from the code.

On Nov 23, 10:48 am, chris thatcher <thatcher.christop...@gmail.com>
wrote:
> Hi Andy, I got the latest zip from github and after unzipping it ran the
> following:
>
> C:\cygwin\opt\packages\rfw\rhino-for-webapps>cd jetty
>
> C:\cygwin\opt\packages\rfw\rhino-for-webapps\jetty>java -jar start.jar
>
> Everything ran correctly.  What do you mean when you say 'the samples don't
> show up'?  One thing that may be happening is the 'share widget' blocks the
> page load if you dont have an external internet connection.  I added a defer
> attribute to the script tag so it wont block, but I'm not sure this is your
> issue.
>
> Happy to help more if this wasnt the issue.
>
> Thatcher
>
> On Tue, Nov 23, 2010 at 10:14 AM, chris thatcher <
>
>
>
> thatcher.christop...@gmail.com> wrote:
> > Hi Andy, It looks like a simple path issue.  I usually work in a unix
> > environment, but I'm loading it up on my PC at work.  I'll commit a patch
> > soon.
>
> > Thatcher
>
> >> rhino-for-weba...@googlegroups.com<rhino-for-webapps%2Bunsu...@googlegroups.com>
> >> .
Reply all
Reply to author
Forward
0 new messages