Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Bruno Busco
Hi Adam,
is it possible to see an example/demo of the newly added webslinger
feature in the actual OFBiz trunk ?

-Bruno

2009/3/13 Adam Heath <[hidden email]>:

> [hidden email] wrote:
>> Author: doogie
>> Date: Fri Mar 13 05:41:16 2009
>> New Revision: 753127
>>
>> URL: http://svn.apache.org/viewvc?rev=753127&view=rev
>> Log:
>> Major new feature, showing advanced webslinger integration.  Files
>> with an '.ofbiz-screen' extension can now contain a screen definition
>> snippet.  This is a one-way integration; the screen widget can't
>> call back into webslinger controlled space(yet).
>
> As you all may have noticed, I've done some heavy addition of new code
> recently.  This is the webslinger I have talked about for ages.  It's
> finally here!
>
> And with this last commit, you may start seeing some of the advanced
> integration that is possible(1, 2).  Internal webslinger paths can be
> mapped to very complex structures; in this case, a complex ofbiz
> screen widget.
>
> All those files in the framework/webslinger/websites/webslinger/www
> folder can be modified at runtime, and if changed, will be
> automatically picked up.  There's a 1 second ttl, non-polling, that
> does that.
>
> There are no docs on webslinger yet.  We(Brainfood; Ean Schuessler and
> I) will need to make some.
>
> There is a public repository:
>
> http://hg.webslinger.org/hg/webslinger.org
>
> Also I have an auto-converted svn->hg repository for ofbiz at:
>
> http://hg.webslinger.org/hg/ofbiz.apache.org
>
> This repo is subscribed to the commits mailing list, and will always
> be in sync.
>
> 1: /webslinger/OfBiz/
> 2: /webslinger/OfBiz/DemoScreen.ofbiz-screen
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Adam Heath-2
Bruno Busco wrote:
> Hi Adam,
> is it possible to see an example/demo of the newly added webslinger
> feature in the actual OFBiz trunk ?

Yeah, go to /webslinger in your browser.  The files that drive that
are at framework/webslinger/websites/webslinger/www,
framework/webslinger/modules/ofbiz/www, and
framework/webslinger/modules/defaults.zip.

It's not a full-featured demo yet.  I've been slowly reimplementing
the things that webslinger supports, in a more proper fashion, as time
permits.
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Bruno Busco
Going to http://localhost:8080/webslinger
I got:
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
root cause

java.lang.NoClassDefFoundError: java/util/concurrent/ConcurrentSkipListMap
        org.webslinger.lang.ConcurrentUtil$Java6ConcurrentSkipListMapCreator.createMap(ConcurrentUtil.java:59)
        org.webslinger.lang.ConcurrentUtil.createSortedMap(ConcurrentUtil.java:19)
        org.webslinger.commons.vfs.LayeredFileSystem.<init>(LayeredFileSystem.java:24)
        org.webslinger.commons.vfs.GenerationalFileSystem.<init>(GenerationalFileSystem.java:22)
        org.webslinger.commons.vfs.virtual.VirtualFileSystem.<init>(VirtualFileSystem.java:74)
        org.webslinger.commons.vfs.virtual.VirtualFileProvider.makeFileSystem(VirtualFileProvider.java:61)
        org.webslinger.commons.vfs.virtual.VirtualFileProvider.doCreateFileSystem(VirtualFileProvider.java:83)
        org.apache.commons.vfs.provider.AbstractLayeredFileProvider.createFileSystem(AbstractLayeredFileProvider.java:79)
        org.apache.commons.vfs.impl.DefaultFileSystemManager.createFileSystem(DefaultFileSystemManager.java:847)
        org.webslinger.modules.GenericWorkAreaFactory.<init>(GenericWorkAreaFactory.java:28)
        org.webslinger.modules.StandardModuleState.<init>(StandardModuleState.java:41)
        org.webslinger.AbstractWebslingerServletContextFactory.newWebslingerServletContext(AbstractWebslingerServletContextFactory.java:94)
        org.webslinger.AbstractMappingWebslingerServletContextFactory.newWebslingerServletContext(AbstractMappingWebslingerServletContextFactory.java:135)
        org.webslinger.AbstractMappingWebslingerServletContextFactory$2.createValue(AbstractMappingWebslingerServletContextFactory.java:40)
        org.webslinger.AbstractMappingWebslingerServletContextFactory$2.createValue(AbstractMappingWebslingerServletContextFactory.java:38)
        org.webslinger.lang.AbstractCache$ConcurrentDelegate.get(AbstractCache.java:123)
        org.webslinger.lang.AbstractCache.get(AbstractCache.java:287)
        org.webslinger.lang.AbstractCache.get(AbstractCache.java:283)
        org.webslinger.lang.ConcurrentFreezableCache.get(ConcurrentFreezableCache.java:25)
        org.webslinger.AbstractMappingWebslingerServletContextFactory.getContext(AbstractMappingWebslingerServletContextFactory.java:125)
        org.webslinger.AbstractMappingWebslingerServletContextFactory$ContextTTLObject.load(AbstractMappingWebslingerServletContextFactory.java:200)
        org.webslinger.AbstractMappingWebslingerServletContextFactory$ContextTTLObject.load(AbstractMappingWebslingerServletContextFactory.java:189)
        org.webslinger.util.TTLObject.load(TTLObject.java:339)
        org.webslinger.util.TTLObject$ValueAndState$1.call(TTLObject.java:158)
        java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        java.util.concurrent.FutureTask.run(FutureTask.java:123)
        org.webslinger.util.TTLObject.getObject(TTLObject.java:312)
        org.webslinger.AbstractMappingWebslingerServletContextFactory.getWebslingerServletContext(AbstractMappingWebslingerServletContextFactory.java:105)
        org.webslinger.servlet.WebslingerServlet.service(WebslingerServlet.java:45)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.



2009/3/14 Adam Heath <[hidden email]>:

> Bruno Busco wrote:
>> Hi Adam,
>> is it possible to see an example/demo of the newly added webslinger
>> feature in the actual OFBiz trunk ?
>
> Yeah, go to /webslinger in your browser.  The files that drive that
> are at framework/webslinger/websites/webslinger/www,
> framework/webslinger/modules/ofbiz/www, and
> framework/webslinger/modules/defaults.zip.
>
> It's not a full-featured demo yet.  I've been slowly reimplementing
> the things that webslinger supports, in a more proper fashion, as time
> permits.
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Adam Heath-2
Bruno Busco wrote:

> Going to http://localhost:8080/webslinger
> I got:
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
> root cause
>
> java.lang.NoClassDefFoundError: java/util/concurrent/ConcurrentSkipListMap
> org.webslinger.lang.ConcurrentUtil$Java6ConcurrentSkipListMapCreator.createMap(ConcurrentUtil.java:59)
> org.webslinger.lang.ConcurrentUtil.createSortedMap(ConcurrentUtil.java:19)

Hmm, cute.  I run with java 1.6, so hadn't noticed this.  I need to
add the concurrent.util backport, then this will automagically work(I
have a proxy factory creator.

Fixed in revision 753474.
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Bruno Busco
Adrian,
unfortunately I got the same error as before.

-Bruno

2009/3/14 Adam Heath <[hidden email]>:

> Bruno Busco wrote:
>> Going to http://localhost:8080/webslinger
>> I got:
>> HTTP Status 500 -
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented
>> it from fulfilling this request.
>>
>> exception
>>
>> javax.servlet.ServletException: Servlet execution threw an exception
>> root cause
>>
>> java.lang.NoClassDefFoundError: java/util/concurrent/ConcurrentSkipListMap
>>       org.webslinger.lang.ConcurrentUtil$Java6ConcurrentSkipListMapCreator.createMap(ConcurrentUtil.java:59)
>>       org.webslinger.lang.ConcurrentUtil.createSortedMap(ConcurrentUtil.java:19)
>
> Hmm, cute.  I run with java 1.6, so hadn't noticed this.  I need to
> add the concurrent.util backport, then this will automagically work(I
> have a proxy factory creator.
>
> Fixed in revision 753474.
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Adam Heath-2
Bruno Busco wrote:
> Adrian,
> unfortunately I got the same error as before.

What version of java are you running?
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Bruno Busco
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)


2009/3/14 Adam Heath <[hidden email]>:
> Bruno Busco wrote:
>> Adrian,
>> unfortunately I got the same error as before.
>
> What version of java are you running?
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Adam Heath-2
Bruno Busco wrote:
> java version "1.5.0_14"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)

Grumble.  webslinger test cases work with 1.5.0_16.  But it fails when
run inside ofbiz.  I've duplicated it here, stay tuned.
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Bruno Busco
Thank you

2009/3/14 Adam Heath <[hidden email]>:
> Bruno Busco wrote:
>> java version "1.5.0_14"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
>> Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)
>
> Grumble.  webslinger test cases work with 1.5.0_16.  But it fails when
> run inside ofbiz.  I've duplicated it here, stay tuned.
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r753127 - in /ofbiz/trunk/framework/webslinger: modules/ofbiz/Classes/org/webslinger/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/ modules/ofbiz/www/WEB-INF/DefaultMimeAttributes/application/x-ofbiz-screen@/ modules/of

Adam Heath-2
In reply to this post by Adam Heath-2
Adam Heath wrote:
> Bruno Busco wrote:
>> java version "1.5.0_14"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
>> Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)
>
> Grumble.  webslinger test cases work with 1.5.0_16.  But it fails when
> run inside ofbiz.  I've duplicated it here, stay tuned.

Gah, this is an issue.  The concurrent backport doesn't actually
implement *any* java.util.concurrent interfaces that exist in 1.5 or
1.6, so you can't swap them around.  In otherwords, I never tested
this particular part of webslinger. :(

For now, running on java 1.6 will allow it to work, until I get this
fixed in a more permanent situation.  I won't require 1.6 yet, so this
is a show-stopper bug.