[JBoss-user] [JBoss Seam] - Re: Migration to seam 1.0.1GA: [org.jboss.seam.contexts.Cont
First, thanks a lot for answering ! Yes, destroy is declared: here is my local interface: | public interface AccesEndroitsLocal { | public void loadData(); | | public Map getEndroits(); | public Converter getConverter(); | public Endroit getNullEndroit(); | | public void destroy(); | | } | My app is derived from the seam dvd-example; the pattern is quite the same as Category/CategoryBean View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954081#3954081 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954081 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Migration to seam 1.0.1GA: [org.jboss.seam.contexts.Contexts
Hi ! I have a program which used to work with seam rc. | @Stateful | @Name("accesendroitsbean") | @Scope(ScopeType.EVENT) | public class AccesEndroitsBean implements AccesEndroitsLocal, Serializable { | | List endroits; | Map endroitsMap; | | @PersistenceContext | EntityManager em; | | @Create | public void loadData() { | | System.out.println("=loaddata d'accesendroitbean"); | endroits = em.createQuery("from Endroit c") | .setHint("org.hibernate.cacheable", true) | .getResultList(); | | Map results = new TreeMap(); | | for (Endroit tf: endroits) { | results.put(tf.getDescription(),tf); | } | endroitsMap = results; | } | | public Converter getConverter() { | return new EndroitConverter(endroits); | } | | public Map getEndroits() { | return endroitsMap; | } | | public Endroit getNullEndroit() { | return new Endroit(); | } | | static public class EndroitConverter | implements Converter, |Serializable | { | List tfs; | | public EndroitConverter(List tf) { | this.tfs = tf; | } | | public String getAsString(FacesContext facesContext, | UIComponent component, | Object obj) | { | if (obj == null) return null; | | String val = String.valueOf(((Endroit)obj).getId()); | return val; | } | | public Object getAsObject(FacesContext facesContext, | UIComponent component, | String str) | throws ConverterException | { | if (str == null || str.length()==0) { | return null; | } | | //String id = str; | for (Endroit tfe : tfs) { | String id = String.valueOf(tfe.getId()); | if (id.equals(str)) { | return tfe; | } | } | | return null; | } | } | | @Remove @Destroy | public void destroy() { } | | } | Now, when calling this bean, I get this message although a @Destroy annotated method exists [org.jboss.seam.contexts.Contexts] could not find destroy method Could someone possibly help me ? Kind regards, Gerd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954027#3954027 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954027 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Outject EJB
Hi, I am working on a risk managing app based on the DVD store demo in order to evaluate seam for further developments. In the searchAction.java, I have the following construct: @EJB @Out(scope=ScopeType.SESSION,required=false) AccesTicketTypeLocal accesTicketType; Here is its code of the bean. @Stateful @Name("accestickettypebean") @Scope(ScopeType.EVENT) public class AccesTicketTypeBean implements AccesTicketTypeLocal, Serializable { /** Creates a new instance of AccesTypeTickeBean */ public AccesTicketTypeBean() { } private List ticketType; Map ticketTypesMap; @PersistenceContext EntityManager em; public void loadData(TypeFormulaire tf) { System.out.println("appel de loadData ticketType avec tf="+tf.getReference()); ticketType = em.createQuery("from TicketType c where c.typeFormulaire=:tf") .setHint("org.hibernate.cacheable", true) .setParameter("tf",tf) .getResultList(); Map results = new TreeMap(); for (TicketType tt: ticketType) { System.out.println(" TicketType="+tt.getId()+","+tt.getDescription()); results.put(tt.getDescription(),tt); } ticketTypesMap = results; } public Converter getConverter() { return new TicketTypeConverter(ticketType); } public Map getTicketTypes() { System.out.println("===appel getTicketTypes"); Collection tt = ticketTypesMap.keySet(); for (String t:tt) { System.out.println(t); } System.out.println("=fin"); return ticketTypesMap; } public TicketType getNullTicketType() { return new TicketType(); } static public class TicketTypeConverter implements Converter, Serializable { List tfs; public TicketTypeConverter(List tf) { this.tfs = tf; } public String getAsString(FacesContext facesContext, UIComponent component, Object obj) { if (obj == null) return null; String val = String.valueOf( ((TicketType)obj).getId()); return val; } public Object getAsObject(FacesContext facesContext, UIComponent component, String str) throws ConverterException { if (str == null || str.length()==0) { return null; } String id = str; for (TicketType tf : tfs) { //System.out.println("on teste "+tf.getReference()); if (tf.getId().equals(id)) { //System.out.println("on trouve "+tf.getDescription()); return tf; } } return null; } } } Then I inject it via seam in a jsf page: This works great when it shows the data in the HTML list; but when I click on the button, the value search.ticketType remains at value null. Some help available ? Kind regards, Gerd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949284#3949284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949284 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Multiple datamodel in one bean
Hi, Here is my bean code @DataModel(value="searchResults") List searchResults; @DataModelSelection(value="qstChoisi") private Questionnaire qstChoisi; @DataModel(value="questionnairesChoisis") private List questionnairesChoisis; Whith one DataModel, when I click on the id link, the action was correctly executed, but I cannot figure out how to make it work with a second datamodel. What is the meaning of the "value" parameter in the DataModelSelection annotaion ? I went to seam documentation, but it was not very helpful Kind regards, Gerd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947714#3947714 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947714 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Seam DVD demo: cannot use hbm2ddl.auto = update
Hi, In order to learn seam, I am trying to build an application around the DVD store demo. First step was not to drop and recreate db at every start. The dvd db has been put into a postgresql db, works fine. But when I replace create-drop with update in the hibernate.cfg.xml file, I have this message when deploying: Some idea what I could do ? Kind regards, Gerd 10:08:49,291 INFO [STDOUT] Hibernate: select nextval ('hibernate_sequence') 10:08:49,331 ERROR [STDERR] java.lang.RuntimeException: could not deploy a process definition 10:08:49,333 ERROR [STDERR] at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:168) 10:08:49,333 ERROR [STDERR] at org.jboss.seam.core.Jbpm.startup(Jbpm.java:61) 10:08:49,333 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 10:08:49,333 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 10:08:49,333 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:08:49,333 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 10:08:49,334 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13) 10:08:49,334 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) 10:08:49,334 ERROR [STDERR] at org.jboss.seam.Component.callComponentMethod(Component.java:1182) 10:08:49,334 ERROR [STDERR] at org.jboss.seam.Component.callCreateMethod(Component.java:1170) 10:08:49,334 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1159) 10:08:49,334 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1107) 10:08:49,335 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1097) 10:08:49,335 ERROR [STDERR] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:115) 10:08:49,335 ERROR [STDERR] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:94) 10:08:49,335 ERROR [STDERR] at org.jboss.seam.init.Initialization.init(Initialization.java:109) 10:08:49,335 ERROR [STDERR] at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32) 10:08:49,335 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 10:08:49,336 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) 10:08:49,336 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) 10:08:49,336 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) 10:08:49,336 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) 10:08:49,336 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source) 10:08:49,336 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:08:49,337 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 10:08:49,337 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) 10:08:49,337 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) 10:08:49,337 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 10:08:49,337 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5107) 10:08:49,337 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source) 10:08:49,338 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:08:49,338 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 10:08:49,338 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) 10:08:49,338 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) 10:08:49,338 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 10:08:49,338 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) 10:08:49,339 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) 10:08:49,339 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) 10:08:49,339 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83) 10:08:49,339 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61) 10:08:49,339 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) 10:08:49,339 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) 10:08:49,340 ERROR [STDERR] at sun.reflect.Ge
[JBoss-user] [EJB 3.0] - EJB3 RC5-> RC6 - Cannot deploy
Hi, conf is: jboss 4.0.3SP1+EJB3 RC6 since I changed from RC5 to RC6, i am not able to deploy an EJB3 SLSB anymore: I always get this message when trying to deploy: java.lang.NoSuchMethodError: org.jboss.xb.binding.UnmarshallerFactory.setFeature(Ljava/lang/String;Ljava/lang/Object;)V 16:53:00,098 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=Toto01-EJBModule.jar java.lang.NoSuchMethodError: org.jboss.xb.binding.UnmarshallerFactory.setFeature(Ljava/lang/String;Ljava/lang/Object;)V at org.jboss.ejb3.Ejb3DescriptorHandler.parseDescriptors(Ejb3DescriptorHandler.java:551) at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.(Ejb3HandlerFactory.java:42) at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:79) at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:505) at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:461) at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:125) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943) at $Proxy0.create(Unknown Source) at org.jboss.system.ServiceController.create(ServiceController.java:341) at org.jboss.system.ServiceController.create(ServiceController.java:284) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy27.create(Unknown Source) at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy28.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at
[JBoss-user] [EJB 3.0] - EJB3: firewall and encryption
Hi everybody ! The scenario: a JBoss 4.0.2 server running behind a firewall, a true Swing client which calls directly EJB3. Till now, i call the jndi via the http-invoker.sar; the EJB3 still use port 3873 I tried to set up a SSH tunnel (in order to encrypt and reuse existing certificates) ssh -L 8080:xyz:8080 ssh -L 3873:xyz:3873 I open only port 22 for SSH on the firewall it works for the JNDI but not for EJB3. What would you suggest ? Kind regards, Gerd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916860#3916860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916860 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user