Search the web
Sign In
New User? Sign Up
graniteds · Granite Data Services
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 5334 - 5365 of 5688   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#5365 From: "samuele.sanvito" <samuele.sanvito@...>
Date: Mon Nov 16, 2009 10:38 am
Subject: Re: problem with Views
samuele.sanvito
Offline Offline
Send Email Send Email
 
Any suggestion?


--- In graniteds@yahoogroups.com, "samuele.sanvito" <samuele.sanvito@...> wrote:
>
> Hi!
> I have some problems with DataGrid and Views.
> With tables I have no problems. With Views the DataGrid is empty but JBoss
Runtime says nothing, it runs the Hibernate query with no errors but DataGrid is
simply empty!
> I use Seam 2.2.0.
> Any suggestion?
>

#5364 From: "radha krishna" <chikkubhai@...>
Date: Mon Nov 16, 2009 4:27 am
Subject: Re: Unable to deploy graniteds-tide-spring
pvradhakrishna
Offline Offline
Send Email Send Email
 
For some reason, yahoo is not publishing/posting my replies when I use reply.
Anyways, this is a fifth attempt to let you guys know that I am unable to
build/deploy even on Tomcat 6.0 and get spring related exceptions as discussed
in my previous reply!

#5363 From: "kadaru_99" <kadaru_99@...>
Date: Mon Nov 16, 2009 4:02 am
Subject: Q abt entity form form input components in example
kadaru_99
Offline Offline
Send Email Send Email
 
Hi

I am trying to use the entity form and form input components similar to the
example in the graniteds-tide-ejb3. can i know what they do and how to do i use
it for a date field. I put a datefield inside the form input and it does not
seem to show up. Please help is there any doc explaining what these classes are
for and why we did not use the default mx:form

thanks

#5362 From: "radha krishna" <chikkubhai@...>
Date: Sun Nov 15, 2009 5:09 pm
Subject: Re: Unable to deploy graniteds-tide-spring for tomcat 5.5.26
pvradhakrishna
Offline Offline
Send Email Send Email
 
This  is a fifth attempt to respond to the yahoo user groups, I tried to click
reply but never saw my reply being posted on yahoo group.

Even after deployment in Tomcat 6.0 I get the following error, exceptions:

Nov 13, 2009 3:29:38 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 13, 2009 3:29:38 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Nov 13, 2009 3:29:48 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Nov 13, 2009 3:29:51 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.transaction.interceptor.TransactionInterceptor#0': Cannot
resolve reference to bean 'transactionManager' while setting bean property
'transactionManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'transactionManager' defined in ServletContext resource
[/WEB-INF/conf/applicationContext.xml]: Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/conf/applicationContext.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.util.ArrayList] to required type
[java.lang.Class[]] for property 'annotatedClasses'; nested exception is
java.lang.IllegalArgumentException: Cannot find class
[test.granite.spring.entity.AbstractEntity]
	 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef\
erence(BeanDefinitionValueResolver.java:275)
	 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVal\
ueIfNecessary(BeanDefinitionValueResolver.java:104)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.app\
lyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop\
ulateBean(AbstractAutowireCapableBeanFactory.java:1010)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java:472)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
	 at java.security.AccessController.doPrivileged(Native Method)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:380)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
	 at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
	 at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti\
ateSingletons(DefaultListableBeanFactory.java:429)
	 at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactory\
Initialization(AbstractApplicationContext.java:729)
	 at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA\
pplicationContext.java:381)
	 at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex\
tLoader.java:255)
	 at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL\
oader.java:199)
	 at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Context\
LoaderListener.java:45)
	 at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934\
)
	 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
	 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
	 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
	 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
	 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
	 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
	 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
	 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja\
va:119)
	 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	 at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	 at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav\
a:25)
	 at java.lang.reflect.Method.invoke(Method.java:597)
	 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionManager' defined in ServletContext resource
[/WEB-INF/conf/applicationContext.xml]: Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/conf/applicationContext.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.util.ArrayList] to required type
[java.lang.Class[]] for property 'annotatedClasses'; nested exception is
java.lang.IllegalArgumentException: Cannot find class
[test.granite.spring.entity.AbstractEntity]
	 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef\
erence(BeanDefinitionValueResolver.java:275)
	 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVal\
ueIfNecessary(BeanDefinitionValueResolver.java:104)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.app\
lyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop\
ulateBean(AbstractAutowireCapableBeanFactory.java:1010)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java:472)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
	 at java.security.AccessController.doPrivileged(Native Method)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:380)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
	 at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
	 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef\
erence(BeanDefinitionValueResolver.java:269)
	 ... 42 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/conf/applicationContext.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.util.ArrayList] to required type
[java.lang.Class[]] for property 'annotatedClasses'; nested exception is
java.lang.IllegalArgumentException: Cannot find class
[test.granite.spring.entity.AbstractEntity]
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java:480)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
	 at java.security.AccessController.doPrivileged(Native Method)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:380)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
	 at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
	 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
	 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef\
erence(BeanDefinitionValueResolver.java:269)
	 ... 55 more
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.util.ArrayList] to required type
[java.lang.Class[]] for property 'annotatedClasses'; nested exception is
java.lang.IllegalArgumentException: Cannot find class
[test.granite.spring.entity.AbstractEntity]
	 at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.jav\
a:391)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.con\
vertForProperty(AbstractAutowireCapableBeanFactory.java:1288)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.app\
lyPropertyValues(AbstractAutowireCapableBeanFactory.java:1249)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop\
ulateBean(AbstractAutowireCapableBeanFactory.java:1010)
	 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java:472)
	 ... 64 more
Caused by: java.lang.IllegalArgumentException: Cannot find class
[test.granite.spring.entity.AbstractEntity]
	 at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:264)
	 at
org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java\
:63)
	 at
org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverter\
Delegate.java:374)
	 at
org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDele\
gate.java:350)
	 at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverter\
Delegate.java:173)
	 at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverter\
Delegate.java:124)
	 at
org.springframework.beans.TypeConverterDelegate.convertToTypedArray(TypeConverte\
rDelegate.java:385)
	 at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverter\
Delegate.java:186)
	 at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverter\
Delegate.java:138)
	 at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.jav\
a:386)
	 ... 68 more
Caused by: java.lang.ClassNotFoundException:
test.granite.spring.entity.AbstractEntity
	 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13\
87)
	 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12\
33)
	 at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)
	 at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:261)
	 ... 77 more
Nov 13, 2009 3:29:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Nov 13, 2009 3:29:52 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 13, 2009 3:29:52 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 13, 2009 3:33:39 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 13, 2009 3:33:39 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Nov 13, 2009 3:33:54 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 13, 2009 3:33:54 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 13, 2009 3:35:44 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 13, 2009 3:35:44 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

#5361 From: "brz_holy_avenger" <cwcruge@...>
Date: Sun Nov 15, 2009 1:54 am
Subject: granite-flex-config.xml
brz_holy_ave...
Offline Offline
Send Email Send Email
 
What I need to do to get the file granite-flex-config.xml generated?

#5359 From: Kamcheung Sham <kcsham@...>
Date: Sat Nov 14, 2009 2:16 pm
Subject: Re: Re: Scale an Image so that its width matches contentWidth?
kc_sham
Offline Offline
Send Email Send Email
 

It's because the actual content size is not known until the image is loaded. You could add a listener to 'Event.COMPLETE' and handle the scaling in that handler too.

kam

On Nov 13, 2009, at 9:23 PM, wt.ustc wrote:

Solved by using callLater() when calling the updateComplete event handler.

--- In graniteds@yahoogroups.com, "wt.ustc" <wt.ustc@...> wrote:
>
> I have a dynamic layout, where an image is loaded into an HBox:
> 
> <mx:HBox ...>
> <mx:Image height="100%" .../>
> </mx:HBox>
> 
> only the image's height is set on the image, so that it can take all the vertical space available, while its width is left undefined and I expect the width to scale accordingly with its height.
> 
> It turns out that the image's height is equal to its contentHeight, i.e. height scales properly; however, the image's width is still the same as measuredWidth (the image's original width), and is not scaled accordingly. 
> 
> For example, if the image's original size is 800x600 and if the HBox is 300 in height, then image height will scale down to 300, however its width doesn't scale down to 400, instead it stays at 800.
> 
> I tried to add an event listener to explicitly set the image width:
> 
> <mx:Image id="img" height="100%" updateComplete="img.width=img.contentWidth;" .../>
> 
> It works only the first time the image is loaded, after that, if I use Image.load() to dynamically load different images, it stops working - the image width is set to 0.
> 
> Any help/advice will be highly appreciated.
>



#5358 From: "wt.ustc" <wt.ustc@...>
Date: Sat Nov 14, 2009 5:23 am
Subject: Re: Scale an Image so that its width matches contentWidth?
wt.ustc
Offline Offline
Send Email Send Email
 
Solved by using callLater() when calling the updateComplete event handler.

--- In graniteds@yahoogroups.com, "wt.ustc" <wt.ustc@...> wrote:
>
> I have a dynamic layout, where an image is loaded into an HBox:
>
> <mx:HBox ...>
>     <mx:Image height="100%" .../>
> </mx:HBox>
>
> only the image's height is set on the image, so that it can take all the
vertical space available, while its width is left undefined and I expect the
width to scale accordingly with its height.
>
> It turns out that the image's height is equal to its contentHeight, i.e.
height scales properly; however, the image's width is still the same as
measuredWidth (the image's original width), and is not scaled accordingly.
>
> For example, if the image's original size is 800x600 and if the HBox is 300 in
height, then image height will scale down to 300, however its width doesn't
scale down to 400, instead it stays at 800.
>
> I tried to add an event listener to explicitly set the image width:
>
> <mx:Image id="img" height="100%" updateComplete="img.width=img.contentWidth;"
.../>
>
> It works only the first time the image is loaded, after that, if I use
Image.load() to dynamically load different images, it stops working - the image
width is set to 0.
>
> Any help/advice will be highly appreciated.
>

#5357 From: "wt.ustc" <wt.ustc@...>
Date: Sat Nov 14, 2009 5:22 am
Subject: Re: LinkBar - backgroundDisabledColor doesn't work
wt.ustc
Offline Offline
Send Email Send Email
 
Solved by writing a programmatic skin and set it to LinkButton's disabledSkin.

--- In graniteds@yahoogroups.com, "wt.ustc" <wt.ustc@...> wrote:
>
> Ok, here is what I want to achieve: when a link is clicked, that link is
selected and its background color is changed. If I understand correctly, by
setting LinkBar.selectedIndex to a link, that's link is basically marked as
"disabled", so if I want to change its background color, I set the color on
backgroundDisabledColor style. However, that doesn't work. Please help. Thanks.
>

#5356 From: "wt.ustc" <wt.ustc@...>
Date: Fri Nov 13, 2009 11:42 pm
Subject: Scale an Image so that its width matches contentWidth?
wt.ustc
Offline Offline
Send Email Send Email
 
I have a dynamic layout, where an image is loaded into an HBox:

<mx:HBox ...>
     <mx:Image height="100%" .../>
</mx:HBox>

only the image's height is set on the image, so that it can take all the
vertical space available, while its width is left undefined and I expect the
width to scale accordingly with its height.

It turns out that the image's height is equal to its contentHeight, i.e. height
scales properly; however, the image's width is still the same as measuredWidth
(the image's original width), and is not scaled accordingly.

For example, if the image's original size is 800x600 and if the HBox is 300 in
height, then image height will scale down to 300, however its width doesn't
scale down to 400, instead it stays at 800.

I tried to add an event listener to explicitly set the image width:

<mx:Image id="img" height="100%" updateComplete="img.width=img.contentWidth;"
.../>

It works only the first time the image is loaded, after that, if I use
Image.load() to dynamically load different images, it stops working - the image
width is set to 0.

Any help/advice will be highly appreciated.

#5355 From: "wt.ustc" <wt.ustc@...>
Date: Fri Nov 13, 2009 7:14 pm
Subject: LinkBar - backgroundDisabledColor doesn't work
wt.ustc
Offline Offline
Send Email Send Email
 
Ok, here is what I want to achieve: when a link is clicked, that link is
selected and its background color is changed. If I understand correctly, by
setting LinkBar.selectedIndex to a link, that's link is basically marked as
"disabled", so if I want to change its background color, I set the color on
backgroundDisabledColor style. However, that doesn't work. Please help. Thanks.

#5354 From: "learngds" <soniabk@...>
Date: Fri Nov 13, 2009 3:23 pm
Subject: google checkout
learngds
Offline Offline
Send Email Send Email
 
Has anyone tried to integrate the Google checkout with flex-GDS?

#5353 From: "ori.dagan@..." <ori.dagan@...>
Date: Fri Nov 13, 2009 3:08 pm
Subject: Maven
ori.dagan...
Offline Offline
Send Email Send Email
 
Hi,

Just wanted to know when will 2.1.0.RC1 will be available in the maven
repository.

This is a great project, thanks!

#5352 From: "williamdrai" <william.drai@...>
Date: Fri Nov 13, 2009 1:18 pm
Subject: Re: Using Granite/Flex alongside JSF Seam?
williamdrai
Offline Offline
Send Email Send Email
 
Other than ensuring that the servlet mappings for SeamFilter and
AMFFilter/AMFServlet are different, there should not be much to do. Honestly we
have never tried or tested such a setup for just a few components in JSF pages,
maybe some people here have already done this.


--- In graniteds@yahoogroups.com, "Matt" <brownmonk@...> wrote:
>
> Is there any recommended reading for learning to make a normal JSF/Seam site
with some embedded flex elements? I want to use Granite/Flex for some tricky gui
items, but standard JSF/Seam for the rest.
>
> Any suggestions?
>
> Thanks.
>

#5351 From: "williamdrai" <william.drai@...>
Date: Fri Nov 13, 2009 1:13 pm
Subject: Re: Unable to deploy graniteds-tide-spring
williamdrai
Offline Offline
Send Email Send Email
 
The example project has been tested with Tomcat 6.0, not sure it will work with
a Tomcat 5.5.
Try to do a clean build on a new Tomcat install, it seems your Tomcat server is
already bloated with tons of deployed apps.


--- In graniteds@yahoogroups.com, "chikkubhai" <chikkubhai@...> wrote:
>
> I have got the complete trunk as a project on my Eclipse IDE and tried to
build using the build.xml for the graniteds.tide-spring folder by changing the
following lines for tomcat 5.5.26:
>
> <!-- Default configuration for JBoss with Spring+Hibernate using JPA API
>  <property name="war.packaging" value="yes"/>
>  <property name="gds-hibernate.lib" value="yes"/>
>  <property name="jpa.api" value="yes"/>
> -->
>
> ...
>
>  <!-- Alternative configuration for Tomcat with Spring+Hibernate using session
API
>  -->
>  <property name="war.packaging" value="yes"/>
>  <property name="gds-hibernate.lib" value="yes"/>
>  <property name="log4j.lib" value="yes"/>
>  <property name="hibernate.lib" value="yes"/>
>  <property name="hibernate.api" value="yes"/>
>  <property name="resources.dir" value="resources_tomcat"/>
>
>
> I get the following exception after deploying in tomcat 5.5.26
>
>
>
>
> INFO: Deploying web application archive graniteds-tide-spring.war
> Nov 12, 2009 2:07:07 PM org.springframework.web.context.ContextLoader
initWebApplicationContext
> INFO: Root WebApplicationContext: initialization started
> Nov 12, 2009 2:07:07 PM
org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing
org.springframework.web.context.support.XmlWebApplicationContext@1602060:
display name [Root WebApplicationContext]; startu
> p date [Thu Nov 12 14:07:07 EST 2009]; root of context hierarchy
> Nov 12, 2009 2:07:08 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
> INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/conf/applicationContext.xml]
> Nov 12, 2009 2:07:08 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
> INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/conf/applicationContextSecurity.xml]
> Nov 12, 2009 2:07:09 PM
org.springframework.security.config.HttpSecurityBeanDefinitionParser
parseBasicFormLoginAndOpenID
> INFO: No login page configured. The default internal one will be used. Use the
'login-page' attribute to set the URL of the login page.
> Nov 12, 2009 2:07:09 PM
org.springframework.security.userdetails.memory.UserMap addUser
> INFO: Adding user [org.springframework.security.userdetails.User@0: Username:
admin; Password: [PROTECTED]; Enabled: true; AccountNonExpired
> : true; credentialsNonExpired: true; AccountNonLocked: true; Granted
Authorities: ROLE_ADMIN, ROLE_USER]
> Nov 12, 2009 2:07:09 PM
org.springframework.security.userdetails.memory.UserMap addUser
> INFO: Adding user [org.springframework.security.userdetails.User@ed9d7500:
Username: user; Password: [PROTECTED]; Enabled: true; AccountNonE
> xpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted
Authorities: ROLE_USER]
> Nov 12, 2009 2:07:09 PM
org.springframework.context.support.AbstractApplicationContext
obtainFreshBeanFactory
> INFO: Bean factory for application context
[org.springframework.web.context.support.XmlWebApplicationContext@1602060]:
org.springframework.b
> eans.factory.support.DefaultListableBeanFactory@1f26484
> Nov 12, 2009 2:07:09 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
> on
> INFO: Bean
'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource\
#0' is not eligible for getting processed by all
> BeanPostProcessors (for example: not eligible for auto-proxying)
> Nov 12, 2009 2:07:09 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
> on
> INFO: Bean '(inner bean)' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
> Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
> on
> INFO: Bean '(inner bean)#1' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
> Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
> on
> INFO: Bean '_delegatingMethodDefinitionSource' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible fo
> r auto-proxying)
> Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
> on
> INFO: Bean '_methodDefinitionSourceAdvisor' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for a
> uto-proxying)
> Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
> on
> INFO: Bean 'org.springframework.transaction.config.internalTransactionAdvisor'
is not eligible for getting processed by all BeanPostProcesso
> rs (for example: not eligible for auto-proxying)
> Nov 12, 2009 2:07:10 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
> INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1f26484:
defining beans [org.spri
>
ngframework.context.annotation.internalCommonAnnotationProcessor,org.springframe\
work.context.annotation.internalAutowiredAnnotationProcessor
>
,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.\
springframework.aop.config.internalAutoProxyCreator,org.spri
>
ngframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.sp\
ringframework.transaction.interceptor.TransactionInterceptor
>
#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springf\
ramework.web.servlet.mvc.annotation.DefaultAnnotationHandler
>
Mapping#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandler\
Adapter#0,dataSource,entityManagerFactory,transactionManager
>
,org.granite.spring.FlexFilter_graniteConfig,org.granite.spring.FlexFilter_handl\
erMapping,org.granite.spring.FlexFilter,addressBookTopic,ide
>
ntity,_authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFil\
ter,_filterChainProxyPostProcessor,_filterChainList,_securit
>
yContextHolderAwareRequestFilter,_accessManager,_portMapper,_exceptionTranslatio\
nFilter,_filterSecurityInterceptor,_sessionFixationProtectio
>
nFilter,_anonymousAuthenticationProvider,_anonymousProcessingFilter,_rememberMeS\
ervices,_rememberMeAuthenticationProvider,_rememberMeFilter,
>
_rememberMeServicesInjectionBeanPostProcessor,_logoutFilter,_basicAuthentication\
EntryPoint,_basicAuthenticationFilter,_formLoginFilter,_form
>
LoginEntryPoint,_defaultLoginPageFilter,_entryPointInjectionBeanPostProcessor,_u\
serServiceInjectionPostProcessor,org.springframework.securit
>
y.providers.dao.DaoAuthenticationProvider#0,org.springframework.security.userdet\
ails.memory.InMemoryDaoImpl#0,org.springframework.security.c
>
onfig.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheReso\
lver#0,_delegatingMethodDefinitionSource,_methodSecurityInte
>
rceptor,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor];
root of factory hierarchy
> Nov 12, 2009 2:07:10 PM
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
> INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1f26484:
defining beans [org.springframe
>
work.context.annotation.internalCommonAnnotationProcessor,org.springframework.co\
ntext.annotation.internalAutowiredAnnotationProcessor,org.sp
>
ringframework.context.annotation.internalRequiredAnnotationProcessor,org.springf\
ramework.aop.config.internalAutoProxyCreator,org.springframe
>
work.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springfra\
mework.transaction.interceptor.TransactionInterceptor#0,org.
>
springframework.transaction.config.internalTransactionAdvisor,org.springframewor\
k.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping
>
#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter\
#0,dataSource,entityManagerFactory,transactionManager,org.gr
>
anite.spring.FlexFilter_graniteConfig,org.granite.spring.FlexFilter_handlerMappi\
ng,org.granite.spring.FlexFilter,addressBookTopic,identity,_
>
authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFilter,_fi\
lterChainProxyPostProcessor,_filterChainList,_securityContex
>
tHolderAwareRequestFilter,_accessManager,_portMapper,_exceptionTranslationFilter\
,_filterSecurityInterceptor,_sessionFixationProtectionFilter
>
,_anonymousAuthenticationProvider,_anonymousProcessingFilter,_rememberMeServices\
,_rememberMeAuthenticationProvider,_rememberMeFilter,_rememb
>
erMeServicesInjectionBeanPostProcessor,_logoutFilter,_basicAuthenticationEntryPo\
int,_basicAuthenticationFilter,_formLoginFilter,_formLoginEn
>
tryPoint,_defaultLoginPageFilter,_entryPointInjectionBeanPostProcessor,_userServ\
iceInjectionPostProcessor,org.springframework.security.provi
>
ders.dao.DaoAuthenticationProvider#0,org.springframework.security.userdetails.me\
mory.InMemoryDaoImpl#0,org.springframework.security.config.A
>
uthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver#0,\
_delegatingMethodDefinitionSource,_methodSecurityInterceptor
> ,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor]; root
of factory hierarchy
> Nov 12, 2009 2:07:10 PM org.springframework.web.context.ContextLoader
initWebApplicationContext
> SEVERE: Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.transaction.interceptor.Transact
> ionInterceptor#0': Initialization of bean failed; nested exception is
java.lang.NoClassDefFoundError: javax/persistence/PersistenceException
>
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java
> :480)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:3
> 80)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
>         at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
>         at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti\
ateSingletons(DefaultListableBeanFactory.java:429
> )
>         at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactory\
Initialization(AbstractApplicationContext.java:72
> 9)
>         at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA\
pplicationContext.java:381)
>         at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex\
tLoader.java:255)
>         at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL\
oader.java:199)
>         at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Context\
LoaderListener.java:45)
>         at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764\
)
>         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
>         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:825)
>         at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja\
va: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(NativeMethodAccessorImpl.java:39)
>         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav\
a:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: java.lang.NoClassDefFoundError:
javax/persistence/PersistenceException
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>         at java.lang.Class.getDeclaredConstructors(Class.java:1836)
>         at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcesso\
r.determineCandidateConstructors(AutowiredAnnotat
> ionBeanPostProcessor.java:191)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.det\
ermineConstructorsFromBeanPostProcessors(Abstract
> AutowireCapableBeanFactory.java:859)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBeanInstance(AbstractAutowireCapableBeanFactor
> y.java:831)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java
> :440)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:3
> 80)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
>         at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
>         at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef\
erence(BeanDefinitionValueResolver.java:269)
>         at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVal\
ueIfNecessary(BeanDefinitionValueResolver.java:10
> 4)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.app\
lyPropertyValues(AbstractAutowireCapableBeanFacto
> ry.java:1245)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop\
ulateBean(AbstractAutowireCapableBeanFactory.java
> :1010)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java
> :472)
>         ... 38 more
> Caused by: java.lang.ClassNotFoundException:
javax.persistence.PersistenceException
>         at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13\
62)
>         at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12\
08)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>         ... 58 more
> Nov 12, 2009 2:07:10 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Nov 12, 2009 2:07:10 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/graniteds-tide-spring] startup failed due to previous errors
> [Flex] Starting Adobe Flex Data Services 2 Express
> [Flex] Adobe Flex Data Services Build: 143451
> [Flex] Endpoint my-rtmp created with security: None
> at URI: rtmp://{server.name}:2039
> [Flex] Endpoint my-http created with security: None
> at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/http
> [Flex] Endpoint my-polling-amf created with security: None
> at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling
> [Flex] Endpoint my-amf created with security: None
> at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/amf
> [Flex] Endpoint my-secure-http created with security: None
> at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
> [Flex] Endpoint my-secure-amf created with security: None
> at URI: https://{server.name}:9100/{context.root}/messagebroker/amfsecure
>

#5350 From: "Matt" <brownmonk@...>
Date: Thu Nov 12, 2009 8:54 pm
Subject: Using Granite/Flex alongside JSF Seam?
quaidbrown3
Offline Offline
Send Email Send Email
 
Is there any recommended reading for learning to make a normal JSF/Seam site
with some embedded flex elements? I want to use Granite/Flex for some tricky gui
items, but standard JSF/Seam for the rest.

Any suggestions?

Thanks.

#5349 From: "chikkubhai" <chikkubhai@...>
Date: Thu Nov 12, 2009 7:38 pm
Subject: Re: Unable to deploy graniteds-tide-spring for tomcat 5.5.26
chikkubhai
Offline Offline
Send Email Send Email
 
Now I get another error, am I missing something?


Nov 12, 2009 2:35:29 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive granitedsTideSpring.war
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Nov 12, 2009 2:35:33 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 12, 2009 2:35:33 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/granitedsTideSpring] startup failed due to previous errors
Nov 12, 2009 2:35:34 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 12, 2009 2:35:34 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 12, 2009 2:35:34 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Nov 12, 2009 2:35:34 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 12, 2009 2:35:34 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10250 ms

#5348 From: "chikkubhai" <chikkubhai@...>
Date: Thu Nov 12, 2009 7:17 pm
Subject: Unable to deploy graniteds-tide-spring
chikkubhai
Offline Offline
Send Email Send Email
 
I have got the complete trunk as a project on my Eclipse IDE and tried to build
using the build.xml for the graniteds.tide-spring folder by changing the
following lines for tomcat 5.5.26:

<!-- Default configuration for JBoss with Spring+Hibernate using JPA API
	 <property name="war.packaging" value="yes"/>
	 <property name="gds-hibernate.lib" value="yes"/>
	 <property name="jpa.api" value="yes"/>
-->

...

	 <!-- Alternative configuration for Tomcat with Spring+Hibernate using session
API
	 -->
	 <property name="war.packaging" value="yes"/>
	 <property name="gds-hibernate.lib" value="yes"/>
	 <property name="log4j.lib" value="yes"/>
	 <property name="hibernate.lib" value="yes"/>
	 <property name="hibernate.api" value="yes"/>
	 <property name="resources.dir" value="resources_tomcat"/>


I get the following exception after deploying in tomcat 5.5.26




INFO: Deploying web application archive graniteds-tide-spring.war
Nov 12, 2009 2:07:07 PM org.springframework.web.context.ContextLoader
initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Nov 12, 2009 2:07:07 PM
org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing
org.springframework.web.context.support.XmlWebApplicationContext@1602060:
display name [Root WebApplicationContext]; startu
p date [Thu Nov 12 14:07:07 EST 2009]; root of context hierarchy
Nov 12, 2009 2:07:08 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/conf/applicationContext.xml]
Nov 12, 2009 2:07:08 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/conf/applicationContextSecurity.xml]
Nov 12, 2009 2:07:09 PM
org.springframework.security.config.HttpSecurityBeanDefinitionParser
parseBasicFormLoginAndOpenID
INFO: No login page configured. The default internal one will be used. Use the
'login-page' attribute to set the URL of the login page.
Nov 12, 2009 2:07:09 PM org.springframework.security.userdetails.memory.UserMap
addUser
INFO: Adding user [org.springframework.security.userdetails.User@0: Username:
admin; Password: [PROTECTED]; Enabled: true; AccountNonExpired
: true; credentialsNonExpired: true; AccountNonLocked: true; Granted
Authorities: ROLE_ADMIN, ROLE_USER]
Nov 12, 2009 2:07:09 PM org.springframework.security.userdetails.memory.UserMap
addUser
INFO: Adding user [org.springframework.security.userdetails.User@ed9d7500:
Username: user; Password: [PROTECTED]; Enabled: true; AccountNonE
xpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted
Authorities: ROLE_USER]
Nov 12, 2009 2:07:09 PM
org.springframework.context.support.AbstractApplicationContext
obtainFreshBeanFactory
INFO: Bean factory for application context
[org.springframework.web.context.support.XmlWebApplicationContext@1602060]:
org.springframework.b
eans.factory.support.DefaultListableBeanFactory@1f26484
Nov 12, 2009 2:07:09 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
on
INFO: Bean
'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource\
#0' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
Nov 12, 2009 2:07:09 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
on
INFO: Bean '(inner bean)' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
on
INFO: Bean '(inner bean)#1' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
on
INFO: Bean '_delegatingMethodDefinitionSource' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible fo
r auto-proxying)
Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
on
INFO: Bean '_methodDefinitionSourceAdvisor' is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for a
uto-proxying)
Nov 12, 2009 2:07:10 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessor\
Checker postProcessAfterInitializati
on
INFO: Bean 'org.springframework.transaction.config.internalTransactionAdvisor'
is not eligible for getting processed by all BeanPostProcesso
rs (for example: not eligible for auto-proxying)
Nov 12, 2009 2:07:10 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1f26484:
defining beans [org.spri
ngframework.context.annotation.internalCommonAnnotationProcessor,org.springframe\
work.context.annotation.internalAutowiredAnnotationProcessor
,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.\
springframework.aop.config.internalAutoProxyCreator,org.spri
ngframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.sp\
ringframework.transaction.interceptor.TransactionInterceptor
#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springf\
ramework.web.servlet.mvc.annotation.DefaultAnnotationHandler
Mapping#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandler\
Adapter#0,dataSource,entityManagerFactory,transactionManager
,org.granite.spring.FlexFilter_graniteConfig,org.granite.spring.FlexFilter_handl\
erMapping,org.granite.spring.FlexFilter,addressBookTopic,ide
ntity,_authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFil\
ter,_filterChainProxyPostProcessor,_filterChainList,_securit
yContextHolderAwareRequestFilter,_accessManager,_portMapper,_exceptionTranslatio\
nFilter,_filterSecurityInterceptor,_sessionFixationProtectio
nFilter,_anonymousAuthenticationProvider,_anonymousProcessingFilter,_rememberMeS\
ervices,_rememberMeAuthenticationProvider,_rememberMeFilter,
_rememberMeServicesInjectionBeanPostProcessor,_logoutFilter,_basicAuthentication\
EntryPoint,_basicAuthenticationFilter,_formLoginFilter,_form
LoginEntryPoint,_defaultLoginPageFilter,_entryPointInjectionBeanPostProcessor,_u\
serServiceInjectionPostProcessor,org.springframework.securit
y.providers.dao.DaoAuthenticationProvider#0,org.springframework.security.userdet\
ails.memory.InMemoryDaoImpl#0,org.springframework.security.c
onfig.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheReso\
lver#0,_delegatingMethodDefinitionSource,_methodSecurityInte
rceptor,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor];
root of factory hierarchy
Nov 12, 2009 2:07:10 PM
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1f26484:
defining beans [org.springframe
work.context.annotation.internalCommonAnnotationProcessor,org.springframework.co\
ntext.annotation.internalAutowiredAnnotationProcessor,org.sp
ringframework.context.annotation.internalRequiredAnnotationProcessor,org.springf\
ramework.aop.config.internalAutoProxyCreator,org.springframe
work.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springfra\
mework.transaction.interceptor.TransactionInterceptor#0,org.
springframework.transaction.config.internalTransactionAdvisor,org.springframewor\
k.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping
#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter\
#0,dataSource,entityManagerFactory,transactionManager,org.gr
anite.spring.FlexFilter_graniteConfig,org.granite.spring.FlexFilter_handlerMappi\
ng,org.granite.spring.FlexFilter,addressBookTopic,identity,_
authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFilter,_fi\
lterChainProxyPostProcessor,_filterChainList,_securityContex
tHolderAwareRequestFilter,_accessManager,_portMapper,_exceptionTranslationFilter\
,_filterSecurityInterceptor,_sessionFixationProtectionFilter
,_anonymousAuthenticationProvider,_anonymousProcessingFilter,_rememberMeServices\
,_rememberMeAuthenticationProvider,_rememberMeFilter,_rememb
erMeServicesInjectionBeanPostProcessor,_logoutFilter,_basicAuthenticationEntryPo\
int,_basicAuthenticationFilter,_formLoginFilter,_formLoginEn
tryPoint,_defaultLoginPageFilter,_entryPointInjectionBeanPostProcessor,_userServ\
iceInjectionPostProcessor,org.springframework.security.provi
ders.dao.DaoAuthenticationProvider#0,org.springframework.security.userdetails.me\
mory.InMemoryDaoImpl#0,org.springframework.security.config.A
uthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver#0,\
_delegatingMethodDefinitionSource,_methodSecurityInterceptor
,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor]; root
of factory hierarchy
Nov 12, 2009 2:07:10 PM org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.transaction.interceptor.Transact
ionInterceptor#0': Initialization of bean failed; nested exception is
java.lang.NoClassDefFoundError: javax/persistence/PersistenceException

         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java
:480)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:3
80)
         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
         at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
         at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
         at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti\
ateSingletons(DefaultListableBeanFactory.java:429
)
         at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactory\
Initialization(AbstractApplicationContext.java:72
9)
         at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA\
pplicationContext.java:381)
         at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex\
tLoader.java:255)
         at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL\
oader.java:199)
         at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Context\
LoaderListener.java:45)
         at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764\
)
         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
         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:825)
         at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja\
va: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(NativeMethodAccessorImpl.java:39)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav\
a:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NoClassDefFoundError:
javax/persistence/PersistenceException
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
         at java.lang.Class.getDeclaredConstructors(Class.java:1836)
         at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcesso\
r.determineCandidateConstructors(AutowiredAnnotat
ionBeanPostProcessor.java:191)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.det\
ermineConstructorsFromBeanPostProcessors(Abstract
AutowireCapableBeanFactory.java:859)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBeanInstance(AbstractAutowireCapableBeanFactor
y.java:831)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java
:440)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r\
un(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre\
ateBean(AbstractAutowireCapableBeanFactory.java:3
80)
         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra\
ctBeanFactory.java:264)
         at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle\
ton(DefaultSingletonBeanRegistry.java:221)
         at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract\
BeanFactory.java:261)
         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:185)
         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe\
anFactory.java:164)
         at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef\
erence(BeanDefinitionValueResolver.java:269)
         at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVal\
ueIfNecessary(BeanDefinitionValueResolver.java:10
4)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.app\
lyPropertyValues(AbstractAutowireCapableBeanFacto
ry.java:1245)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop\
ulateBean(AbstractAutowireCapableBeanFactory.java
:1010)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC\
reateBean(AbstractAutowireCapableBeanFactory.java
:472)
         ... 38 more
Caused by: java.lang.ClassNotFoundException:
javax.persistence.PersistenceException
         at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13\
62)
         at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12\
08)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 58 more
Nov 12, 2009 2:07:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 12, 2009 2:07:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/graniteds-tide-spring] startup failed due to previous errors
[Flex] Starting Adobe Flex Data Services 2 Express
[Flex] Adobe Flex Data Services Build: 143451
[Flex] Endpoint my-rtmp created with security: None
at URI: rtmp://{server.name}:2039
[Flex] Endpoint my-http created with security: None
at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/http
[Flex] Endpoint my-polling-amf created with security: None
at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling
[Flex] Endpoint my-amf created with security: None
at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/amf
[Flex] Endpoint my-secure-http created with security: None
at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
[Flex] Endpoint my-secure-amf created with security: None
at URI: https://{server.name}:9100/{context.root}/messagebroker/amfsecure

#5347 From: "sharl.gabra" <sharl.gabra@...>
Date: Thu Nov 12, 2009 5:59 pm
Subject: WebCompiler 2.1 RC1 Help
sharl.gabra
Offline Offline
Send Email Send Email
 
hi,
thanks a lot for this great tool. It is really a piece of art.

I am trying to use the WebCompiler to hot compile mxml files whenever requested
from the server by the client.

The problem is that there scarce documentation about the tool. I could not find
any examples of how to integrate such tool inside the application. All i can
find is the actual WAR project.

I already have an EAR project that is using both tide and seam. I want to
integrate the tool inside my war folder in my project.

Sorry, i am new to java and i am a bit unexperienced.

Can any one please help?

Thanks in advance

#5346 From: "williamdrai" <william.drai@...>
Date: Thu Nov 12, 2009 11:09 am
Subject: Re: 2.1.0 Problems in components.xml
williamdrai
Offline Offline
Send Email Send Email
 
I guess we'll have to check once again :-(


--- In graniteds@yahoogroups.com, Saudade <saudade@...> wrote:
>
> William
>
> The problem remains after downloading the new build.
>
> Specifically, the problem effects all these examples: graniteds-
> spring, graniteds-tide-seam, graniteds-tide-spring, seam-flexbooking.
>
> The problem is in components.xml.
>
> John
>
> On Nov 9, 2009, at 12:52 PM, williamdrai wrote:
>
> > I stupidly forgot one line in the build file and the config.xml
> > files were not included in the 2.1 jars.
> > There are now in the latest bamboo builds (here
http://www.graniteds.org/bamboo/browse/GDS-CORE-337/artifact
> > ), thanks to Edward Yacob (http://www.graniteds.org/jira/browse/GDS-558
> > ).
> >
> > --- In graniteds@yahoogroups.com, "johnschwitz" <saudade@> wrote:
> > >
> > > In eclipse the components.xml has errors for grantites_tide_seam &
> > seam-flexbooking.
> > >
> > > At <graniteds:flex-filter
> > >
> > > Multiple annotations found at this line:
> > > - schema_reference.4: Failed to read schema document 'http://
> > > graniteds.org/config/granite-config-2.1.xsd', because 1) could not
> > find the
> > > document; 2) the document could not be read; 3) the root element
> > of the
> > > document is not <xsd:schema>.
> > > - cvc-complex-type.2.4.c: The matching wildcard is strict, but no
> > declaration
> > > can be found for element 'graniteds:flex-filter'.
> > >
> > >
> > > At <graniteds:messaging-destination
> > >
> > > cvc-complex-type.2.4.c: The matching wildcard is strict, but no
> > declaration can
> > > be found for element 'graniteds:messaging-destination'.
> > >
> >
> >
>

#5345 From: "williamdrai" <william.drai@...>
Date: Thu Nov 12, 2009 10:48 am
Subject: Re: PagedQuery with AdvancedDataGrid
williamdrai
Offline Offline
Send Email Send Email
 
I'm pretty sure this will work with 2.1 RC1, this is the version we use
internally for one of our projects built with Flex 4 beta 2.
Note that we have not tried PagedQuery with the new spark List (that is supposed
to handle ItemPendingErrors), only with normal List/DataGrid.

Anyway it's often a good idea to subscribe to our commercial support if you
expect to put your application in production, or if you have special needs like
this :-)


--- In graniteds@yahoogroups.com, "samuele.sanvito" <samuele.sanvito@...> wrote:
>
> Hi William, we cannot wait the Flex 4 version. So, I'll try with GDS 2.1.0.RC1
and, in the case of fault, I'll ask for Commercial Support. Do you agree?
>
>
> --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@> wrote:
> >
> > Hi,
> >
> > This should be partly fixed in the trunk, at least concerning DataGrid on
Flex 4 beta 2 (I don't have Flex Builder Pro with AdvancedDataGrid so I could
not check).
> > The main point is that there should be no more error at initialization.
Still the fix is not perfect but we'll try to fix it completely when the final
Flex 4 SDK will be released, there are too many changes in the SDK between each
beta.
> > [Managed] as3 classes generated by gas3 do not even compile with SDK 4 beta
2 due to a bug in the Flex compiler.
> >
> >
> >
> > --- In graniteds@yahoogroups.com, "heyoulin@" <heyoulin@> wrote:
> > >
> > > Hi William.
> > >
> > > When i change to flex 4.0 beta2 all work fine but DataGrid always throw
Error: Items pending from 0 to 0 for index 0. It seem like act as 
AdvancedDataGrid in flex4 beta2
> > >
> > > --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@> wrote:
> > > >
> > > > You must not catch the ItemPendingError, it's absolutely necessary to
handle paging.
> > > > The important thing is that the page size you define (here
maxResults:10) is too small (and different from the maxResults of the Seam Query
component). It must always be greater that the max number of elements that are
displayed.
> > > > Also don't define maxResults in both server and client components,
choose one side. When both are defined, the client definition has higher
precedence.
> > > >
> > > >
> > > > --- In graniteds@yahoogroups.com, "samuele.sanvito" <samuele.sanvito@>
wrote:
> > > > >
> > > > > I want to "catch" the ItemPendingError but I don't know what to "try"
because the error is thrown by an event, perhaps the
CollectionEvent.COLLECTION_CHANGE.
> > > > >
> > > > > Any idea?
> > > > >
> > > > >
> > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito" <samuele.sanvito@>
wrote:
> > > > > >
> > > > > > Hi William!
> > > > > > Ok, I tried your solution:
> > > > > > public class UtenteList extends PagedQuery ... ... ...
> > > > > > and the "Error: Unknown Property: 'utente'" has gone away.
> > > > > >
> > > > > > But now It says:
> > > > > > Error: Items pending from 10 to 30 for index 20
> > > > > >      at
> > > > > >
org.granite.tide.collections::PagedCollection/getItemAt()[C:\workspace\g\
> > > > > >
raniteds\as3\framework\org\granite\tide\collections\PagedCollection.as:5\
> > > > > > 07]
> > > > > >      at
> > > > > >
ListCollectionViewCursor/moveNext()[C:\autobuild\3.2.0\frameworks\projec\
> > > > > > ts\framework\src\mx\collections\ListCollectionView.as:1884]
> > > > > >      at
> > > > > >
mx.controls.advancedDataGridClasses::AdvancedDataGridBase/moveIterator()\
> > > > > >
[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\\
> > > > > > advancedDataGridClasses\AdvancedDataGridBase.as:1722]
> > > > > > I use
> > > > > >
Seam.getInstance().addComponentWithFactory("utenteList",UtenteListPagedQ\
> > > > > > uery,{maxResults:10});
> > > > > > and on the server, maxResults is 25.
> > > > > > The same code with DataGrid still works fine, even with "UtenteList
> > > > > > extends PagedQuery".
> > > > > >
> > > > > > What can I do now?
> > > > > > Thank you!
> > > > > >
> > > > > >
> > > > > > --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@>
> > > > > > wrote:
> > > > > > >
> > > > > > > Example objects that are properties of the EntityQuery are not
> > > > > > supported by the standard PagedQuery.
> > > > > > >
> > > > > > > Either use an external object (with restrictions like
> > > > > > "lower(utente.username) like
> > > > > > lower(concat(#{exampleUtente.username},'%'))", ...)
> > > > > > >
> > > > > > > Or you can try to extend the Flex PagedQuery on client side with
> > > > > > something like but it's really not sure that it will work :
> > > > > > >
> > > > > > > public class UtenteList extends PagedQuery {
> > > > > > >
> > > > > > >     [Bindable]
> > > > > > >     public var utente:Utente;
> > > > > > > }
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito"
samuele.sanvito@
> > > > > > wrote:
> > > > > > > >
> > > > > > > > Hi William,
> > > > > > > > this is the server object:
> > > > > > > > package it.noustat.sptweb.session;
> > > > > > > >
> > > > > > > > import it.noustat.sptweb.entity.*;
> > > > > > > > import org.jboss.seam.annotations.Name;
> > > > > > > > import org.jboss.seam.framework.EntityQuery;
> > > > > > > > import java.util.Arrays;
> > > > > > > >
> > > > > > > > @Name("utenteList")
> > > > > > > > public class UtenteList extends EntityQuery<Utente> {
> > > > > > > >
> > > > > > > >      /**
> > > > > > > >       *
> > > > > > > >       */
> > > > > > > >      private static final long serialVersionUID =
> > > > > > 767151481291379354L;
> > > > > > > >
> > > > > > > >      private static final String EJBQL = "select utente from
Utente
> > > > > > > > utente";
> > > > > > > >
> > > > > > > >      private static final String[] RESTRICTIONS = {
> > > > > > > >              "lower(utente.username) like
> > > > > > > > lower(concat(#{utenteList.utente.username},'%'))",
> > > > > > > >              "lower(utente.password) like
> > > > > > > > lower(concat(#{utenteList.utente.password},'%'))",
> > > > > > > >              "lower(utente.email) like
> > > > > > > > lower(concat(#{utenteList.utente.email},'%'))",
> > > > > > > >              "lower(utente.utenteds) like
> > > > > > > > lower(concat(#{utenteList.utente.utenteds},'%'))", };
> > > > > > > >
> > > > > > > >      private Utente utente = new Utente();
> > > > > > > >
> > > > > > > >      public UtenteList() {
> > > > > > > >          setEjbql(EJBQL);
> > > > > > > >
> > > > > > setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
> > > > > > > >          setMaxResults(25);
> > > > > > > >      }
> > > > > > > >
> > > > > > > >      public Utente getUtente() {
> > > > > > > >          return utente;
> > > > > > > >      }
> > > > > > > > }
> > > > > > > > and this the client one
> > > > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > > > <mx:Panel title="Utente" layout="vertical"
> > > > > > > > xmlns:mx="http://www.adobe.com/2006/mxml" width="100%">
> > > > > > > >
> > > > > > > >      <mx:Metadata>[Name]</mx:Metadata>
> > > > > > > >
> > > > > > > >      <mx:Script>
> > > > > > > >          <![CDATA[
> > > > > > > >
> > > > > > > >              import org.granite.tide.seam.Seam;
> > > > > > > >              import org.granite.tide.seam.framework.PagedQuery;
> > > > > > > >
> > > > > > > >
> > > > > > Seam.getInstance().addComponent('utenteList',PagedQuery);
> > > > > > > >
> > > > > > > >              [Bindable][In]
> > > > > > > >              public var utenteList:PagedQuery;
> > > > > > > >
> > > > > > > >          ]]>
> > > > > > > >      </mx:Script>
> > > > > > > >
> > > > > > > >      <mx:AdvancedDataGrid id="dgUtenti"
dataProvider="{utenteList}"
> > > > > > > > width="100%"/>
> > > > > > > >
> > > > > > > > </mx:Panel>
> > > > > > > > Thank you for your help!
> > > > > > > >
> > > > > > > >
> > > > > > > > --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Can you post your server Query object and the client side
DataGrid
> > > > > > > > part.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito"
> > > > > > samuele.sanvito@
> > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > I need some help here, It's too much important for me!
> > > > > > > > > > Please. Thank you!
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito"
> > > > > > > > <samuele.sanvito@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi all,
> > > > > > > > > > > the seam/tide tutorial
> > > > > > > >
> > > > > >
(http://www.graniteds.org/confluence/pages/viewpage.action?pageId=937167\
> > > > > > \
> > > > > > > > 4) works only with DataGrid object, not with AdvancedDataGrid.
> > > > > > > > > > > The Flash Player says:
> > > > > > > > > > >
> > > > > > > > > > >
==============================================================
> > > > > > > > > > > Error: Unknown Property: 'utente'.
> > > > > > > > > > >  at
> > > > > > > >
> > > > > >
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscrip\
> > > > > > \
> > > > > > > >
> > > > > >
t/flash/proxy::getProperty()[C:\autobuild\3.2.0\frameworks\projects\fram\
> > > > > > \
> > > > > > > > ework\src\mx\collections\ListCollectionView.as:694]
> > > > > > > > > > >  at
> > > > > > > >
> > > > > >
org.granite.tide.seam.framework::PagedQuery/find()[C:\workspace\granited\
> > > > > > \
> > > > > > > >
s\as3\framework\org\granite\tide\seam\framework\PagedQuery.as:128]
> > > > > > > > > > >  at
> > > > > > > >
> > > > > >
org.granite.tide.collections::PagedCollection/getItemAt()[C:\workspace\g\
> > > > > > \
> > > > > > > >
> > > > > >
raniteds\as3\framework\org\granite\tide\collections\PagedCollection.as:5\
> > > > > > \
> > > > > > > > 02]
> > > > > > > > > > >  at
> > > > > > > >
> > > > > >
ListCollectionViewCursor/moveNext()[C:\autobuild\3.2.0\frameworks\projec\
> > > > > > \
> > > > > > > > ts\framework\src\mx\collections\ListCollectionView.as:1884]
> > > > > > > > > > >  at
> > > > > > > >
> > > > > >
mx.controls.advancedDataGridClasses::AdvancedDataGridBase/moveIterator()\
> > > > > > \
> > > > > > > >
> > > > > >
[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\\
> > > > > > \
> > > > > > > > advancedDataGridClasses\AdvancedDataGridBase.as:1722]
> > > > > > > > > > > ...
> > > > > > > > > > >
==============================================================
> > > > > > > > > > >
> > > > > > > > > > > Can you help me?
> > > > > > > > > > > Thanks!
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

#5344 From: "williamdrai" <william.drai@...>
Date: Thu Nov 12, 2009 10:43 am
Subject: Re: Resetting tide managed entity
williamdrai
Offline Offline
Send Email Send Email
 
The behaviour of resetEntity is that it restores the entity state to its last
known 'stable' state, that is the last state retrieved from a remote service.
It will work correctly only if all objects in the data graph are [Managed]
entities and if they all have a proper optimistic locking field @Version.
Post your client code if it still does not work.

Another possibility is to use client conversations : at the end of the
modifications, either ditch completely the conversation content with
context.meta_end(false) or confirm the modified data with
context.meta_end(true). This is more complex but a lot more powerful, for
example you can edit multiple instances of the same entity at the same time.
There is an example here :
http://graniteds.blogspot.com/2009/03/building-flex-multi-tab-crud.html (using a
Grails backend but the client side would be exactly the same with Spring).



--- In graniteds@yahoogroups.com, "hvanhovell" <hermanvanhovell@...> wrote:
>
> Hello Everyone,
>
> I am using using a Tide + Graniteds + Spring configuration. I use a controller
for editing existing entities, in some cases it might be nessecary to 'cancel'
the changes made - in this case I want to revert the entity to its old state.
>
> In the graniteds examples similar functionality is provided by the
AdressBookCtl cancelPerson() method. This has been implemented by using the
person's entitymanager and by calling the meta_resetEntity(...) method. When I
try to do a similar thing it does reset the simple fields (String, int, number
etc...) but it clears (nulls) the references to other objects.
>
> This leads to the following questions:
> 1. Is this behavior expected?
> 2. If not what am I doing wrong?
> 3. If it is, what is a good way to implement such behavior (perhaps using
Tide's - often uncharted, yet comprehensive ;)- functionality) - for example: is
cloning the entity and merging the edited clone into context (after a
successfull edit) a promising approach?
>
> Any help would be greatly appreciated?
>
> Cheers,
>
> Herman van Hovell
>
> BTW: I probably have posted this twice: once as a message and once as topic
(it should be a message) - sorry for the inconvenience...
>

#5343 From: Saudade <saudade@...>
Date: Wed Nov 11, 2009 8:07 pm
Subject: Re: Re: 2.1.0 Problems in components.xml
johnschwitz
Offline Offline
Send Email Send Email
 
William

The problem remains after downloading the new build.

Specifically, the problem effects all these examples: graniteds-spring, graniteds-tide-seam, graniteds-tide-spring, seam-flexbooking.

The problem is in components.xml.

John

On Nov 9, 2009, at 12:52 PM, williamdrai wrote:

 

I stupidly forgot one line in the build file and the config.xml files were not included in the 2.1 jars.
There are now in the latest bamboo builds (here http://www.graniteds.org/bamboo/browse/GDS-CORE-337/artifact), thanks to Edward Yacob (http://www.graniteds.org/jira/browse/GDS-558).

--- In graniteds@yahoogroups.com, "johnschwitz" <saudade@...> wrote:
>
> In eclipse the components.xml has errors for grantites_tide_seam & seam-flexbooking.
>
> At <graniteds:flex-filter
>
> Multiple annotations found at this line:
> - schema_reference.4: Failed to read schema document 'http://
> graniteds.org/config/granite-config-2.1.xsd', because 1) could not find the
> document; 2) the document could not be read; 3) the root element of the
> document is not <xsd:schema>.
> - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
> can be found for element 'graniteds:flex-filter'.
>
>
> At <graniteds:messaging-destination
>
> cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can
> be found for element 'graniteds:messaging-destination'.
>



#5342 From: "samuele.sanvito" <samuele.sanvito@...>
Date: Wed Nov 11, 2009 3:58 pm
Subject: Re: PagedQuery with AdvancedDataGrid
samuele.sanvito
Offline Offline
Send Email Send Email
 
Hi William, we cannot wait the Flex 4 version. So, I'll try with GDS 2.1.0.RC1
and, in the case of fault, I'll ask for Commercial Support. Do you agree?


--- In graniteds@yahoogroups.com, "williamdrai" <william.drai@...> wrote:
>
> Hi,
>
> This should be partly fixed in the trunk, at least concerning DataGrid on Flex
4 beta 2 (I don't have Flex Builder Pro with AdvancedDataGrid so I could not
check).
> The main point is that there should be no more error at initialization. Still
the fix is not perfect but we'll try to fix it completely when the final Flex 4
SDK will be released, there are too many changes in the SDK between each beta.
> [Managed] as3 classes generated by gas3 do not even compile with SDK 4 beta 2
due to a bug in the Flex compiler.
>
>
>
> --- In graniteds@yahoogroups.com, "heyoulin@" <heyoulin@> wrote:
> >
> > Hi William.
> >
> > When i change to flex 4.0 beta2 all work fine but DataGrid always throw
Error: Items pending from 0 to 0 for index 0. It seem like act as 
AdvancedDataGrid in flex4 beta2
> >
> > --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@> wrote:
> > >
> > > You must not catch the ItemPendingError, it's absolutely necessary to
handle paging.
> > > The important thing is that the page size you define (here maxResults:10)
is too small (and different from the maxResults of the Seam Query component). It
must always be greater that the max number of elements that are displayed.
> > > Also don't define maxResults in both server and client components, choose
one side. When both are defined, the client definition has higher precedence.
> > >
> > >
> > > --- In graniteds@yahoogroups.com, "samuele.sanvito" <samuele.sanvito@>
wrote:
> > > >
> > > > I want to "catch" the ItemPendingError but I don't know what to "try"
because the error is thrown by an event, perhaps the
CollectionEvent.COLLECTION_CHANGE.
> > > >
> > > > Any idea?
> > > >
> > > >
> > > > --- In graniteds@yahoogroups.com, "samuele.sanvito" <samuele.sanvito@>
wrote:
> > > > >
> > > > > Hi William!
> > > > > Ok, I tried your solution:
> > > > > public class UtenteList extends PagedQuery ... ... ...
> > > > > and the "Error: Unknown Property: 'utente'" has gone away.
> > > > >
> > > > > But now It says:
> > > > > Error: Items pending from 10 to 30 for index 20
> > > > >      at
> > > > >
org.granite.tide.collections::PagedCollection/getItemAt()[C:\workspace\g\
> > > > >
raniteds\as3\framework\org\granite\tide\collections\PagedCollection.as:5\
> > > > > 07]
> > > > >      at
> > > > >
ListCollectionViewCursor/moveNext()[C:\autobuild\3.2.0\frameworks\projec\
> > > > > ts\framework\src\mx\collections\ListCollectionView.as:1884]
> > > > >      at
> > > > >
mx.controls.advancedDataGridClasses::AdvancedDataGridBase/moveIterator()\
> > > > >
[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\\
> > > > > advancedDataGridClasses\AdvancedDataGridBase.as:1722]
> > > > > I use
> > > > >
Seam.getInstance().addComponentWithFactory("utenteList",UtenteListPagedQ\
> > > > > uery,{maxResults:10});
> > > > > and on the server, maxResults is 25.
> > > > > The same code with DataGrid still works fine, even with "UtenteList
> > > > > extends PagedQuery".
> > > > >
> > > > > What can I do now?
> > > > > Thank you!
> > > > >
> > > > >
> > > > > --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@>
> > > > > wrote:
> > > > > >
> > > > > > Example objects that are properties of the EntityQuery are not
> > > > > supported by the standard PagedQuery.
> > > > > >
> > > > > > Either use an external object (with restrictions like
> > > > > "lower(utente.username) like
> > > > > lower(concat(#{exampleUtente.username},'%'))", ...)
> > > > > >
> > > > > > Or you can try to extend the Flex PagedQuery on client side with
> > > > > something like but it's really not sure that it will work :
> > > > > >
> > > > > > public class UtenteList extends PagedQuery {
> > > > > >
> > > > > >     [Bindable]
> > > > > >     public var utente:Utente;
> > > > > > }
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito" samuele.sanvito@
> > > > > wrote:
> > > > > > >
> > > > > > > Hi William,
> > > > > > > this is the server object:
> > > > > > > package it.noustat.sptweb.session;
> > > > > > >
> > > > > > > import it.noustat.sptweb.entity.*;
> > > > > > > import org.jboss.seam.annotations.Name;
> > > > > > > import org.jboss.seam.framework.EntityQuery;
> > > > > > > import java.util.Arrays;
> > > > > > >
> > > > > > > @Name("utenteList")
> > > > > > > public class UtenteList extends EntityQuery<Utente> {
> > > > > > >
> > > > > > >      /**
> > > > > > >       *
> > > > > > >       */
> > > > > > >      private static final long serialVersionUID =
> > > > > 767151481291379354L;
> > > > > > >
> > > > > > >      private static final String EJBQL = "select utente from
Utente
> > > > > > > utente";
> > > > > > >
> > > > > > >      private static final String[] RESTRICTIONS = {
> > > > > > >              "lower(utente.username) like
> > > > > > > lower(concat(#{utenteList.utente.username},'%'))",
> > > > > > >              "lower(utente.password) like
> > > > > > > lower(concat(#{utenteList.utente.password},'%'))",
> > > > > > >              "lower(utente.email) like
> > > > > > > lower(concat(#{utenteList.utente.email},'%'))",
> > > > > > >              "lower(utente.utenteds) like
> > > > > > > lower(concat(#{utenteList.utente.utenteds},'%'))", };
> > > > > > >
> > > > > > >      private Utente utente = new Utente();
> > > > > > >
> > > > > > >      public UtenteList() {
> > > > > > >          setEjbql(EJBQL);
> > > > > > >
> > > > > setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
> > > > > > >          setMaxResults(25);
> > > > > > >      }
> > > > > > >
> > > > > > >      public Utente getUtente() {
> > > > > > >          return utente;
> > > > > > >      }
> > > > > > > }
> > > > > > > and this the client one
> > > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > > <mx:Panel title="Utente" layout="vertical"
> > > > > > > xmlns:mx="http://www.adobe.com/2006/mxml" width="100%">
> > > > > > >
> > > > > > >      <mx:Metadata>[Name]</mx:Metadata>
> > > > > > >
> > > > > > >      <mx:Script>
> > > > > > >          <![CDATA[
> > > > > > >
> > > > > > >              import org.granite.tide.seam.Seam;
> > > > > > >              import org.granite.tide.seam.framework.PagedQuery;
> > > > > > >
> > > > > > >
> > > > > Seam.getInstance().addComponent('utenteList',PagedQuery);
> > > > > > >
> > > > > > >              [Bindable][In]
> > > > > > >              public var utenteList:PagedQuery;
> > > > > > >
> > > > > > >          ]]>
> > > > > > >      </mx:Script>
> > > > > > >
> > > > > > >      <mx:AdvancedDataGrid id="dgUtenti"
dataProvider="{utenteList}"
> > > > > > > width="100%"/>
> > > > > > >
> > > > > > > </mx:Panel>
> > > > > > > Thank you for your help!
> > > > > > >
> > > > > > >
> > > > > > > --- In graniteds@yahoogroups.com, "williamdrai" <william.drai@>
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > Can you post your server Query object and the client side
DataGrid
> > > > > > > part.
> > > > > > > >
> > > > > > > >
> > > > > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito"
> > > > > samuele.sanvito@
> > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > I need some help here, It's too much important for me!
> > > > > > > > > Please. Thank you!
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --- In graniteds@yahoogroups.com, "samuele.sanvito"
> > > > > > > <samuele.sanvito@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi all,
> > > > > > > > > > the seam/tide tutorial
> > > > > > >
> > > > >
(http://www.graniteds.org/confluence/pages/viewpage.action?pageId=937167\
> > > > > \
> > > > > > > 4) works only with DataGrid object, not with AdvancedDataGrid.
> > > > > > > > > > The Flash Player says:
> > > > > > > > > >
> > > > > > > > > >
==============================================================
> > > > > > > > > > Error: Unknown Property: 'utente'.
> > > > > > > > > >  at
> > > > > > >
> > > > >
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscrip\
> > > > > \
> > > > > > >
> > > > >
t/flash/proxy::getProperty()[C:\autobuild\3.2.0\frameworks\projects\fram\
> > > > > \
> > > > > > > ework\src\mx\collections\ListCollectionView.as:694]
> > > > > > > > > >  at
> > > > > > >
> > > > >
org.granite.tide.seam.framework::PagedQuery/find()[C:\workspace\granited\
> > > > > \
> > > > > > > s\as3\framework\org\granite\tide\seam\framework\PagedQuery.as:128]
> > > > > > > > > >  at
> > > > > > >
> > > > >
org.granite.tide.collections::PagedCollection/getItemAt()[C:\workspace\g\
> > > > > \
> > > > > > >
> > > > >
raniteds\as3\framework\org\granite\tide\collections\PagedCollection.as:5\
> > > > > \
> > > > > > > 02]
> > > > > > > > > >  at
> > > > > > >
> > > > >
ListCollectionViewCursor/moveNext()[C:\autobuild\3.2.0\frameworks\projec\
> > > > > \
> > > > > > > ts\framework\src\mx\collections\ListCollectionView.as:1884]
> > > > > > > > > >  at
> > > > > > >
> > > > >
mx.controls.advancedDataGridClasses::AdvancedDataGridBase/moveIterator()\
> > > > > \
> > > > > > >
> > > > >
[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\\
> > > > > \
> > > > > > > advancedDataGridClasses\AdvancedDataGridBase.as:1722]
> > > > > > > > > > ...
> > > > > > > > > >
==============================================================
> > > > > > > > > >
> > > > > > > > > > Can you help me?
> > > > > > > > > > Thanks!
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

#5341 From: "hvanhovell" <hermanvanhovell@...>
Date: Wed Nov 11, 2009 11:11 am
Subject: Resetting tide managed entity
hvanhovell
Offline Offline
Send Email Send Email
 
Hello Everyone,

I am using using a Tide + Graniteds + Spring configuration. I use a controller
for editing existing entities, in some cases it might be nessecary to 'cancel'
the changes made - in this case I want to revert the entity to its old state.

In the graniteds examples similar functionality is provided by the AdressBookCtl
cancelPerson() method. This has been implemented by using the person's
entitymanager and by calling the meta_resetEntity(...) method. When I try to do
a similar thing it does reset the simple fields (String, int, number etc...) but
it clears (nulls) the references to other objects.

This leads to the following questions:
1. Is this behavior expected?
2. If not what am I doing wrong?
3. If it is, what is a good way to implement such behavior (perhaps using Tide's
- often uncharted, yet comprehensive ;)- functionality) - for example: is
cloning the entity and merging the edited clone into context (after a
successfull edit) a promising approach?

Any help would be greatly appreciated?

Cheers,

Herman van Hovell

BTW: I probably have posted this twice: once as a message and once as topic (it
should be a message) - sorry for the inconvenience...

#5339 From: Alexander Radzishevsky <radzish@...>
Date: Tue Nov 10, 2009 7:44 pm
Subject: Re: CAPTCHA?
radzish
Offline Offline
Send Email Send Email
 
http://www.flexer.info/2007/10/30/captcha-in-flex-main-class/

On Fri, Nov 6, 2009 at 8:02 AM, wt.ustc <wt.ustc@...> wrote:
 

I like to use Seam's support for CAPTCHA, which is briefly mentioned on Seam reference doc - it seems pretty easy to integrate with a JSF form; however, I can't see how this could be done in Flex world. Any experience/advice/guess will be welcome and appreciated.



#5338 From: "williamdrai" <william.drai@...>
Date: Tue Nov 10, 2009 1:14 pm
Subject: Re: Map serialization with Java Generics and Arrays
williamdrai
Offline Offline
Send Email Send Email
 
Looks like a bug. Please post a JIRA.


--- In graniteds@yahoogroups.com, "Drew" <DrewFoglia@...> wrote:
>
> How are arrays and collections supposed to get serialized using IMap/BasicMap?
>
> Here's what I'm trying to do.
>
> The Java is something like this:
>
> private Map<String, List<String>> testMap = new BasicMap<String, String[]>(new
HashMap<String, String[]>(2));
>
>    :
>    :
> testMap.put("key1", new String[] {"val11", "val12", "val13"});
> testMap.put("key2", new String[] {"val21", "val22", "val23"});
>    :
>    :
>
> public Map<String, String[]> getMap() {
>     return testMap;
> }
>
> public void setMap(Map<String, String[]> map) {
>     testMap = new BasicMap<String, String[]>(map);
> }
>
>
> And the AS is something like this:
>
> private function getHashHandler(event:ResultEvent):void {
>     var map:IMap = ResultEvent(event).result as IMap;
> }
>
>     :
>     :
> var map:IMap = new BasicMap();
> map.put("fromFlex", String["d1", "d2", "d3"]);
> sessionService.setMap(map);
>     :
>     :
>
> Getting the map in Flex (remote call to getMap) seems to work fine.  However,
setting the map from Flex (remote call to setMap) doesn't.  Specifically,
debugging the Java shows the map with a String key (good), but an Object[] for
the value.  The latter is not good.  Any attempts to consume the value result in
coercion errors.
>
> Am I not using this as designed?
>
> Thanks,
>
> Drew
>

#5337 From: "Drew" <DrewFoglia@...>
Date: Tue Nov 10, 2009 12:31 pm
Subject: Map serialization with Java Generics and Arrays
drewfoglia
Offline Offline
Send Email Send Email
 
How are arrays and collections supposed to get serialized using IMap/BasicMap?

Here's what I'm trying to do.

The Java is something like this:

private Map<String, List<String>> testMap = new BasicMap<String, String[]>(new
HashMap<String, String[]>(2));

    :
    :
testMap.put("key1", new String[] {"val11", "val12", "val13"});
testMap.put("key2", new String[] {"val21", "val22", "val23"});
    :
    :

public Map<String, String[]> getMap() {
     return testMap;
}

public void setMap(Map<String, String[]> map) {
     testMap = new BasicMap<String, String[]>(map);
}


And the AS is something like this:

private function getHashHandler(event:ResultEvent):void {
     var map:IMap = ResultEvent(event).result as IMap;
}

     :
     :
var map:IMap = new BasicMap();
map.put("fromFlex", String["d1", "d2", "d3"]);
sessionService.setMap(map);
     :
     :

Getting the map in Flex (remote call to getMap) seems to work fine.  However,
setting the map from Flex (remote call to setMap) doesn't.  Specifically,
debugging the Java shows the map with a String key (good), but an Object[] for
the value.  The latter is not good.  Any attempts to consume the value result in
coercion errors.

Am I not using this as designed?

Thanks,

Drew

#5336 From: "fwolff999" <franck.wolff@...>
Date: Tue Nov 10, 2009 11:34 am
Subject: Re: Gas3 sources...
fwolff999
Offline Offline
Send Email Send Email
 
Hi,

Gas3 sources are in
https://granite.svn.sourceforge.net/svnroot/granite/graniteds_builder/trunk/.
They are also packaged in the in the distrib jar (unpack it).

Regards,
Franck.

--- In graniteds@yahoogroups.com, Marvin Froeder <velo.br@...> wrote:
>
> Hi,
>
> Where are gas3 sources?
>
> I did downloaded
> https://granite.svn.sourceforge.net/svnroot/granite/graniteds/trunk  but it
> is not obvious to me where is gas3 =/
>
> Sorry for the stupid question.
>
>
>
> VELO
>

#5335 From: Marvin Froeder <velo.br@...>
Date: Tue Nov 10, 2009 10:48 am
Subject: Gas3 sources...
velobr
Offline Offline
Send Email Send Email
 
Hi,

Where are gas3 sources?

I did downloaded https://granite.svn.sourceforge.net/svnroot/granite/graniteds/trunk  but it is not obvious to me where is gas3 =/

Sorry for the stupid question.



VELO

#5334 From: "williamdrai" <william.drai@...>
Date: Mon Nov 9, 2009 6:18 pm
Subject: Re: Graniteds RC1
williamdrai
Offline Offline
Send Email Send Email
 
Didn't know you were using EntityForm. Did you update it from the classes in the
latest examples, there have been a few changes to make it work with GDS 2.1.


--- In graniteds@yahoogroups.com, Devis Balsemin <devis.balsemin@...> wrote:
>
> sorry william is component EntityForm .... included into
> granite-tide-seam project
> Devis
>
> williamdrai ha scritto:
> >
> > Can you post your form with TideInputValidator.
> >
> > --- In graniteds@yahoogroups.com <mailto:graniteds%40yahoogroups.com>,
> > Devis Balsemin <devis.balsemin@> wrote:
> > >
> > > Hi william,
> > > yes it's TideInputValidator where "Tide Conflicts detect a conflicts".
> > > I have remove "required" to my FormItem flex and all work fine, also
> > > when a conflict has been detected!
> > > Have you some idea?
> > > Thank you in advance
> > > Devis
> > >
> > > williamdrai ha scritto:
> > > >
> > > > Sorry I don't understand what you mean.
> > > >
> > > > Does it work with 2.1RC1, with @Version, never ?
> > > >
> > > > The error you indicated before seem to have something to do with
> > > > TideInputValidator. Can you comment them and check if your app works
> > > > without them ?
> > > >
> > > > --- In graniteds@yahoogroups.com
> > <mailto:graniteds%40yahoogroups.com>
> > <mailto:graniteds%40yahoogroups.com>,
> > > > Devis Balsemin <devis.balsemin@> wrote:
> > > > >
> > > > > Hi,
> > > > > it's very strange now with rc1 is change something with
> > Optimistic Lock?
> > > > > I have remove my @Version and all work fine, i'm not use EntityHome.
> > > > > I have try to deploy grantieds-tide.seam example and work fine,
> > but the
> > > > > example uses EntityHome.
> > > > > Can you help me pls?
> > > > > Devis
> > > > >
> > > > > Devis Balsemin ha scritto:
> > > > > >
> > > > > > Hi,
> > > > > > i have try to compile with new Graniteds RC1 but receive alwasy
> > > > this error
> > > > > > have you some suggestion pls
> > > > > > If i create a new object all they work fine but when i try to
> > > > update my
> > > > > > object throw the error
> > > > > > Devis
> > > > > >
> > > > > > invokeComponent null > useraction.registerUser
> > > > > > TypeError: Error #1009: Impossibile accedere a una proprietà o
> > a un
> > > > > > metodo di un riferimento oggetto null.
> > > > > > at
> > > > > >
> > > >
> >
org.granite.tide.validators::ValidatorResponder/fault()[C:\workspace4\graniteds\\
as3\framework\org\granite\tide\validators\ValidatorResponder.as:72]
> > > > > > at
> > > > > >
> > > >
> > mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault
> > <http://www.adobe.com/2006/flex/mx/internal::applyFault>
> > > > <http://www.adobe.com/2006/flex/mx/internal::applyFault
> > <http://www.adobe.com/2006/flex/mx/internal::applyFault>>
> > > > > > <http://www.adobe.com/2006/flex/mx/internal::applyFault
> > <http://www.adobe.com/2006/flex/mx/internal::applyFault>
> > > > <http://www.adobe.com/2006/flex/mx/internal::applyFault
> >
<http://www.adobe.com/2006/flex/mx/internal::applyFault>>>()[C:\autobuild\3.x\fr\
ameworks\projects\rpc\src\mx\rpc\AsyncToken.as:179]
> > > > > > at
> > > > > >
> > > >
> >
mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenR\
esponders
> > <http://www.adobe.com/2006/flex/mx/internal::callTokenResponders>
> > > > <http://www.adobe.com/2006/flex/mx/internal::callTokenResponders
> > <http://www.adobe.com/2006/flex/mx/internal::callTokenResponders>>
> > > > > >
> > <http://www.adobe.com/2006/flex/mx/internal::callTokenResponders
> > <http://www.adobe.com/2006/flex/mx/internal::callTokenResponders>
> > > > <http://www.adobe.com/2006/flex/mx/internal::callTokenResponders
> >
<http://www.adobe.com/2006/flex/mx/internal::callTokenResponders>>>()[C:\autobui\
ld\3.x\frameworks\projects\rpc\src\mx\rpc\events\FaultEvent.as:169]
> > > > > > at
> > > > > >
> > > >
> >
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRp\
cEvent
> > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>
> > > > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
> > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>>
> > > > > > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
> > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>
> > > > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
> >
<http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>>>()[C:\autobuild\\
3.x\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:199]
> > > > > > at
> > > > > >
> > > >
> >
org.granite.tide::TideOperation/http://www.adobe.com/2006/flex/mx/internal::disp\
atchRpcEvent
> > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>
> > > > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
> > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>>
> > > > > > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
> > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>
> > > > <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
> >
<http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>>>()[C:\workspace4\
\graniteds\as3\framework\org\granite\tide\TideOperation.as:70]
> > > > > > at
> > > > > >
> > > >
> >
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler
> > <http://www.adobe.com/2006/flex/mx/internal::faultHandler>
> > > > <http://www.adobe.com/2006/flex/mx/internal::faultHandler
> > <http://www.adobe.com/2006/flex/mx/internal::faultHandler>>
> > > > > > <http://www.adobe.com/2006/flex/mx/internal::faultHandler
> > <http://www.adobe.com/2006/flex/mx/internal::faultHandler>
> > > > <http://www.adobe.com/2006/flex/mx/internal::faultHandler
> >
<http://www.adobe.com/2006/flex/mx/internal::faultHandler>>>()[C:\autobuild\3.x\\
frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:295]
> > > > > > at
> > > > > >
> > > >
> >
mx.rpc::Responder/fault()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\Re\
sponder.as:53]
> > > > > > at
> > > > > >
> > > >
> >
mx.rpc::AsyncRequest/fault()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\
\AsyncRequest.as:103]
> > > > > > at
> > > > > >
> > > >
> >
NetConnectionMessageResponder/channelFaultHandler()[C:\autobuild\3.x\frameworks\\
projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:678]
> > > > > > at flash.events::EventDispatcher/dispatchEventFunction()
> > > > > > at flash.events::EventDispatcher/dispatchEvent()
> > > > > > at
> > > > > >
> > > >
> >
mx.messaging.channels::AMFChannel/statusHandler()[C:\autobuild\3.x\frameworks\pr\
ojects\rpc\src\mx\messaging\channels\AMFChannel.as:377]
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>

Messages 5334 - 5365 of 5688   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help