[JBoss Seam] - Seam & Services management
by charliem
Hi,
What are the strategy/patterns proposed by Jboss Seam to link Seam framework with a service layer ?
Most of the frameworks like Struts, Seam, ... propose solutions to facilitate the work of the web designer, web developer but they don't present anything concerning the strategy to adopt in order to integrate the actions with service layer. The action is not at all the right place where to put the business logic. For the Struts world, appfuse has been an interesting example where such a strategy was presented but for Seam ...
Remarks :
- What I mean by service layer are java classes where the business logic is defined. These java classes will contain methods like "calculateFee", "changeOrderStatus".
- Maybe, this is a chapter that should be added in the future in the Seam documentation
- Most of the examples presented in the JBOSS-SEAM-2.0.0.GA took the assumption that the data will be updated from POJO but I'm not sure at all that such approach is tolerated in enterprise world where DAO pattern must be used
Regards,
Charles
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128350#4128350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128350
18 years, 2 months
[JBoss Seam] - UseJBossWebLoader=true problem
by nepveul
I was led to modify the following option:
| <attribute name="UseJBossWebLoader">true</attribute>
|
in my jboss-service.xml file in server\prod\deploy\jboss-web.deployer\META-INF.
When I turn this option to true, I get the following errors, which I don't when it is false.
08:04:01,562 ERROR [GWTService] Error initializing GWT14Service. Please ensure the GWT 1.4 libraries are in the classpa
| th.
| 08:04:01,562 ERROR [[/poker]] Exception sending context initialized event to listener instance of class org.jboss.seam.s
| ervlet.SeamListener
| java.lang.RuntimeException: exception invoking: startup
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:135)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1997)
| at org.jboss.seam.Component.newInstance(Component.java:1968)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
| at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
| at org.jboss.seam.init.Initialization.init(Initialization.java:555)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
|
Any idea how to solve this?
Thanks!
Laurent
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128344#4128344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128344
18 years, 2 months