[JBoss Seam] - Re: Seam 2.0: Why does @Datamodel require a setter?
by pete.muirï¼ jboss.org
So that when you do:
@Name("eventLister")
| public class EventListerAction {
|
| @DataModel(value="eventList", scope=ScopeType.PAGE)
| private List<Integer> eventList;
|
| @DataModelSelection("eventList")
| private Integer selectedEvent;
|
| @Factory("eventList")
| public void initRequestList() {
| ...
| }
|
| public void selectEvent() {
| log.info(selectedEvent);
| }
|
| }
That eventList isn't null (it would be unless we did this set). This seems like a reasonable assumption to me (and anyway we can't change this behaviour now!). This is the relevant commit:
http://fisheye.jboss.com/browse/JBoss/jboss-seam/src/main/org/jboss/seam/...
anonymous wrote : I always thought that @DataModel works pretty much like @Factory: Once a datamodel is created it becomes a completly independent, fist-class component. The difference is of course that @Factory is called automatically and @DataModel is only used if the annotated bean is called.
@DataModel is like @Out with additional logic to "convert" the data from one type to another (e.g. List -> DataModel). However it has an additional bit (reinjecting the value when using PAGE scope) - that which we are discussing.
I've committed a fix to CVS, let me know how it works out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078685#4078685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078685
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - Problem with Datasource deploying within cluster
by rodiere
Hi,
we build an application (EAR) and we deployed in standalone mode without any problem (Jboss 4).
If we try to deploy this application in a cluster mode, we've got the following exception :
DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:OracleDS]
INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [xxxxxx]
ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alertServices' defined in ServletContext resource [/WEB-INF/ejbContext.xml]:
javax.naming.NameNotFoundException: OracleDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:91)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
Does anynone can help us ?
Thanks,
Stephane
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078684#4078684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078684
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - Timer Service not started for singleton deployments (4.0.5.G
by lkowalczyk
I installed an ejb3-clustered configuration of JBoss 4.0.5 and deployed an application in all/deploy-hasingleton. Upon deployment of a single session bean contained in the application I get an exception (snippet of server.log below):
anonymous wrote : 2007-08-28 12:24:08,640 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: pl.zprsa.haos.admin.customs.EditCustomsAction ejbName: EditCustomsAction
| 2007-08-28 12:24:08,656 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@142f703
| 2007-08-28 12:24:08,671 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] removeTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@142f703
| 2007-08-28 12:24:08,671 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed jboss.j2ee:ear=Haos.ear,jar=Admin-ejb.jar,name=EditCustomsAction,service=EJB3
| java.lang.NullPointerException
| at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:164)
|
This exception is repeated for every other session bean.
Line 164 of DatabasePersistencePolicy is
anonymous wrote : list.addAll(dbpPlugin.selectTimers(containerId));
Obviously, dbpPlugin is null (list is instantiated beforehand in the same method). I debugged the problem and made sure that DatabasePersistencePolicy.startService() is never called before the call to listTimerHandles().
How do I get around this problem for singleton deployments?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078681#4078681
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078681
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - hot deployment issue with Axis
by jimmymani
Hi
i am getting some exception if I run my axis client from Jboss after hot deplyment.
service = new Service(WsdlUtil.retrieveWsdlInputStream(wsdlUrl),
WsdlUtil.getServiceQName( wsdl ));
2007-08-28 04:15:10,655 INFO [org.apache.catalina.loader.WebappClassLoader] Illegal access: this web application instance has been stopped already. Could not load META-INF/services/org.apache.axis.EngineConfigurationFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
2007-08-28 04:15:10,657 INFO [STDOUT] [WARN ] DiscoverResources - -getNextResources: Ignoring Exception <java.io.IOException: Invalid use of destroyed classloader, UCL destroyed at:>
2007-08-28 04:15:10,658 ERROR [STDERR] java.io.IOException: Invalid use of destroyed classloader, UCL destroyed at:
2007-08-28 04:15:10,661 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findResources(RepositoryClassLoader.java:585)
2007-08-28 04:15:10,661 ERROR [STDERR] at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
2007-08-28 04:15:10,662 ERROR [STDERR] at java.lang.ClassLoader.getResources(ClassLoader.java:1011)
2007-08-28 04:15:10,663 ERROR [STDERR] at java.lang.ClassLoader.getResources(ClassLoader.java:1011)
2
am i missing some configuraion in Jboss.
i am using ejb3 and Jboss-4.0.5GA
please help me in solving this issue
jimmy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078678#4078678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078678
18Â years, 8Â months