[JBoss Seam] - Is seam-gen really a good idea to learn about seam?
by fperedo
Hi!
I mean, I love having a tool that generates everything...
but it seems to me that has made the documentation a lot poorer:
Its so easy to start building an applications, so why bother with an step by step guide, from only POJOs and Tomcat to J2EE with JBoss to J2EE with any container you like, that really explains the differences between:
-Limitations for in Seam with only POJOs (what can not be done)
-Limitations for Seam with Tomcat without the jboss microcontainer
-Limitations for Seam with Tomcat with the jboss microcontainer in tomcat
-Limitations for Seam with Tomcat with the jboss microcontainer in other
container with the same level functionality as tomcat
-Limitations for Seam with Tomcat with jboss (none I guess?)
-Limitations for Seam with Tomcat with glassfish
-Limitations for Seam with Tomcat with other somewhat EJB3 complaint containers (like oc4j)
And finally:
-Limitations for Seam without generation (why is generation so useful with seam? was it written to make it a lot easier to work with a generator? (because let me tell you I have tried to use it without the generator and failed... I think it is pretty hard)
A nice way to present it would be:
-How to use seam in eclipse without know anything about "ant" or using seam-gen
-How to use seam in netbeans without know anything about "ant" or seam-gen
What do you think? have you had the same problems.
(Just to clarify, a think Seam is a really good framework, and I really would like to use it for lots of my future projects, but right now, I am finding it really really hard, because there is no way to build a really simple introductory example, and build more complex things from there, I feel that seam-gen is good for experts, not not for "becoming an expert")
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042914#4042914
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042914
17 years, 4 months
[JBoss Seam] - Re: Passivation
by toni
I'm asking, because some passivation exceptions show up in my logfile. Unfortuantely they don't tell, which bean is causing them.
| 9:35:48,152 FATAL [RegularObjectPersister] error
| java.lang.reflect.InvocationTargetException
| 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.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
| at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
| at org.jboss.serial.io.MarshalledObject.<init>(MarshalledObject.java:51)
| at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:405)
| at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
| at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:347)
| at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:196)
| at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129)
| Caused by: java.util.ConcurrentModificationException
| at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
| at java.util.HashMap$EntryIterator.next(HashMap.java:883)
| at java.util.HashMap$EntryIterator.next(HashMap.java:881)
| at org.hibernate.engine.StatefulPersistenceContext.serialize(StatefulPersistenceContext.java:1138)
| at org.hibernate.impl.SessionImpl.writeObject(SessionImpl.java:1930)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042912#4042912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042912
17 years, 4 months
[JBoss jBPM] - Re: jBPM and ejb
by kukeltje
ahh.... so it is there, sorry I was wrong. (maybe not to obvious ok...). There is also a reference in the releasenotes: http://jira.jboss.com/jira/browse/JBPM-152
I now could say the source is open and contains a lot of testcases, also for this. Or I could write a full example describing how it should be used....
I think I'll choose the former (keep in mind, I'm not a JBoss employee and do this in my spare time)
But, I'll do a little more.... the test class is called org.jbpm.msg.AsyncProcessingTest.java
You know what... since it is nice weather, I'll even do a little more... code from that class:
| public static Object execute(Command command) {
| Object returnValue;
| try {
| InitialContext initialContext = new InitialContext();
| LocalCommandServiceHome localCommandServiceHome = (LocalCommandServiceHome) initialContext.lookup("CommandServiceBean");
| LocalCommandService localCommandService = localCommandServiceHome.create();
| returnValue = localCommandService.execute(command);
| localCommandService.remove();
| } catch (Exception e) {
| e.printStackTrace();
| throw new RuntimeException("couldn't execute command", e);
| }
| return returnValue;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042910#4042910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042910
17 years, 4 months
[JBoss Seam] - Ajax4jsf UnboundedFifoBuffer
by hstang
I'm running into a weird error having to do with org.apache.commons.collections.UnboundedFifoBuffer. I did "seam new-entity" and tried to save the new entity in the web form.
WinXP
JBoss AS 4.2.0CR2
Latest build from CVS
Here's the exception
| 2007-05-03 12:36:07,359 ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause
| java.lang.ArrayStoreException: org.apache.commons.collections.UnboundedFifoBuffer
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.clearEvents(AjaxViewRoot.java:243)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEvents(AjaxViewRoot.java:223)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEventsQueue(AjaxViewRoot.java:215)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.queueEvent(AjaxViewRoot.java:134)
| at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:971)
| at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:971)
| at javax.faces.component.UICommand.queueEvent(UICommand.java:405)
| at com.sun.faces.renderkit.html_basic.ButtonRenderer.decode(ButtonRenderer.java:104)
| at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:761)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1003)
| at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:998)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:194)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
| at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:126)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:248)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
| at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042905#4042905
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042905
17 years, 4 months