[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2290) Tooling to create GWT Interface jar from @Name/@WebRemote annotations
by darren hartford (JIRA)
Tooling to create GWT Interface jar from @Name/@WebRemote annotations
---------------------------------------------------------------------
Key: JBSEAM-2290
URL: http://jira.jboss.com/jira/browse/JBSEAM-2290
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 2.0.0.GA
Environment: seam-remoting, GWT
Reporter: darren hartford
Create tooling support to automatically generate a separate GWT Interface jar.
By default/convention, an interface class needs to be created for consumption by a GWT Web Application that conforms with the (ejb3, other?) implementation (for mapping purposes). Tooling support to automatically create this would reduce errors and improve maintenance and ease-of-integration of both server-side and GWT web app side.
Recommend tooling support for:
seam-gen
ant
maven2
For example:
server impl:
============
package com.domain.app;
@Stateless
//seam/gwt remoting support - should be name of GWT Service class
@Name("com.domain.app.gwt.client.QueryGwtService")
public class QueryGwt implements QueryGwtLocal {
public String gwtTest(){
return "test ok";
}
}
//--------------------
package com.domain.app;
@Local
public interface QueryGwtLocal {
//Seam-gwt remoting through the interface, not the session bean
@WebRemote
public String gwtTest();
}
==============
The above server implementation with SEAM annotations will always need the following interfaces for GWT:
===================
package com.domain.app.gwt.client;
public interface QueryGwtService extends RemoteService{
public String gwtTest();
}
//----------------
package com.domain.app.gwt.client;
public interface QueryGwtServiceAsync{
public void gwtTest(AsyncCallback callback);
}
==================
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2306) Can't create Quartz Cron job at startup
by NSA (JIRA)
Can't create Quartz Cron job at startup
---------------------------------------
Key: JBSEAM-2306
URL: http://jira.jboss.com/jira/browse/JBSEAM-2306
Project: JBoss Seam
Issue Type: Bug
Components: Async
Affects Versions: 2.0.0.GA
Environment: Windows, JBoss 4.2.1 GA
Reporter: NSA
I've set up an ObserveInitilization class as suggested by Pete Muir here: http://in.relation.to/Bloggers/DoingSomethingAtStartupWithSeam
It looks like this:
@Name("observeInitialization")
public class ObserveInitialization {
@In(create=true)
Updater updater;
@Observer("org.jboss.seam.postInitialization")
public void start() {
initialize(30 * 1000l);
}
@Asynchronous
public void initialize(@Duration long durationInMilliseconds) {
updater.update(new Date(), "0 0/3 * * * ?");
}
}
The Updater class looks like this:
@Name("updater")
public class Updater {
@In
private EntityManager entityManager;
@Logger
private Log log;
@Asynchronous
public void update(@Expiration Date start, @IntervalCron String cron) {
//...
}
}
The issue is this code calls ThreadPoolDispatcher.scheduleWithExecutorService, which casts the return value of createSchedule to a TimerSchedule.
Because I'm using an @IntervalCron the return value of createSchedule is a CronSchedule which extends Schedule, but not TimerSchedule, so I get a ClassCastException:
09:14:59,387 ERROR [[/admin]] Exception sending context initialized event to listener instance of cl
ass org.jboss.seam.servlet.SeamListener
java.lang.ClassCastException: org.jboss.seam.async.CronSchedule
at org.jboss.seam.async.ThreadPoolDispatcher.scheduleInvocation(ThreadPoolDispatcher.java:47)
at org.jboss.seam.async.ThreadPoolDispatcher.scheduleInvocation(ThreadPoolDispatcher.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
at org.jboss.seam.async.ThreadPoolDispatcher_$$_javassist_6.scheduleInvocation(ThreadPoolDispatcher
_$$_javassist_6.java)
at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:38)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
at com.company.Updater_$$_javassist_5.update(Updater_$$_javassist_5.java)
at com.company.ObserveInitialization.initialize(ObserveInitialization.java:29)
I compared this to the Quartz example packaged with Seam.
That example also calls createSchedule but as a parameter to QuartzDispatcher.scheduleWithQuartzService which accepts a Schedule, thus no ClassCastException.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2111) coerceToType / javaassist error when converting types for multi selection
by Damian Harvey (JIRA)
coerceToType / javaassist error when converting types for multi selection
-------------------------------------------------------------------------
Key: JBSEAM-2111
URL: http://jira.jboss.com/jira/browse/JBSEAM-2111
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.CR2
Environment: Mac OSX. Jboss 4.2.1, Java 1.5
Reporter: Damian Harvey
When trying to display values in an h:selectManyCheckbox I get an error:
java.lang.IllegalArgumentException: Cannot convert com.locuslive.odyssey.entity.Groups@3960f3 of typ
e class com.locuslive.odyssey.entity.Groups to class com.locuslive.odyssey.entity.Groups_$$_javassis
t_219
I have created a very basic project with PERSON, GROUP and PERSONGROUP entities. I've attached it after emptying the lib directory.
Essentially on the PersonEdit page I want to be able to select which Groups the Person may belong to. This is done with the selectManyCheckbox. The checkbox is populated with a list of GROUPs from a GroupList. It is bound to a variable in the PersonHome called 'groups'. This is a list of Groups that is extracted from the PersonGroup table for that user.
The stacktrace is in the forum post. I have also generated the attached project under Seam 1.2.1.GA and the problem is not there.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months