[JBoss-user] [JBoss Seam] - bijection problem
hello everybody! i have a problem with a session bean instance that disappears somehow... i just migrated from jboss 4.0.3SP1 and seam beta1 to jboss 4.0.4.GA and seam cr3. my app was working on the old config. i have two/three seam action session beans. in the first one i use a session bean with some business functions. then i outject it to jsf and when the next action is invoked it is injected into the next seam action component. i do this because the session bean contains a lot of data thats fetched in the beginning and is needed in the other actions too. this worked fine with jboss 4.0.3 and seam beta1. now i get the following exception when a method of the session bean is invoked from the second seam action component: | 17:10:33,890 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception | javax.faces.FacesException: Error calling action method of component with id poconfirmationForm:_tagId39 | at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74) | at javax.faces.component.UICommand.broadcast(UICommand.java:106) | at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94) | at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168) | at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: javax.faces.el.EvaluationException: /poconfirmation.xhtml @136,39 action="#{confirm.confirm}": javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4o1ef-p52s2o-enyjuz3d-1-enyobrxt-3o | at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73) | at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63) | ... 25 more | Caused by: javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4o1ef-p52s2o-enyjuz3d-1-enyobrxt-3o | at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:266) | at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:59) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:199) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
[JBoss-user] [JBoss Seam] - Re: Passivation of context
Again thanks for the quick answer gavin! yes i injected it and didnt mark it transient. now i tried it but it didnt work. and i've seen that in the seam beta 1 booking example it isnt marked transient but it does work. is there maybe something configured in a special way? or could i have forgotten something else important? (i forget things far too often, had also some beans that still didnt implement serializable too, that's fixed now...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933080#3933080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933080 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Configuring SEAM test with junit
I've tried | test | as well, but it doesn't work. Do I need any additional Libraries because it's not running in the container? Or is it possible that the file is simply not found? I've located it in the package tests. The test itself runs in tests.somepackage. (also tried to have it in the same directory) i really don't know what I've missed... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933027#3933027 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933027 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Passivation of context
hello everyone! now i'm back with maybe another silly question: it's a serialisation/passivation problem. when running my application after a while i get an exception in the time thread that wants to passivate my beans. i've made them all implement serializable. the problem remains for the for the faces context. the exception looks as follows: | 09:36:08,046 INFO [STDOUT] Exception in thread "Timer-5" | 09:36:08,046 INFO [STDOUT] javax.ejb.EJBException: Could not passivate; failed to save state; CausedByException is: | org.apache.myfaces.context.servlet.ServletFacesContextImpl | 09:36:08,046 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:333) | 09:36:08,046 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143) | 09:36:08,046 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92) | 09:36:08,046 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512) | 09:36:08,046 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462) | 09:36:08,046 INFO [STDOUT] java.io.NotSerializableException: org.apache.myfaces.context.servlet.ServletFacesContextImpl | 09:36:08,046 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) | 09:36:08,046 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) | 09:36:08,046 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) | 09:36:08,062 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) | 09:36:08,062 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | 09:36:08,062 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) | 09:36:08,062 INFO [STDOUT] at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211) | 09:36:08,062 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304) | 09:36:08,062 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282) | 09:36:08,078 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | 09:36:08,078 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) | 09:36:08,078 INFO [STDOUT] at java.rmi.MarshalledObject.(MarshalledObject.java:92) | 09:36:08,078 INFO [STDOUT] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:153) | 09:36:08,078 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304) | 09:36:08,078 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282) | 09:36:08,078 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | 09:36:08,078 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) | 09:36:08,078 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:324) | 09:36:08,078 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143) | 09:36:08,078 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92) | 09:36:08,078 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512) | 09:36:08,078 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462) | could you tell me what i've forgotten? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932746#3932746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932746 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Mass Data Association Mapping / Finding
Thanks for the quick answer! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932738#3932738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932738 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Configuring SEAM test with junit
Hello! it's the first (old) one with . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932736#3932736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932736 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Mass Data Association Mapping / Finding
Hello again! I hava a problem with two tables in my database: they are connected via primary/foreign key. (its a warehouse with warehouse stock) i mapped it with the @onetomany Annotation in the warehouse. now i load one warehouse into memory (LAZY, far too many items in the stock table). but now i have to search one of these items. i cannot go through the whole collection because of the number of the items. and i cannot search for the item with ejbql because with the association mapping the dont have the warehouse ID mapped in. how could i do this? please help me! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932410#3932410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932410 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Stored Procedure
Hello again! Ich have another problem with data base access (still jboss 4.0.3SP1 without ejb rc4; sybase ASA9): I have to use stored procedures. I mapped two of them with a hbm.xml file. worked fine with result sets with only one row. but now i want to use this for a procedure that returns muliple rows. the list that i get contains as many objects as the procedure returns rows. but they are all the same. just copies of the first one. the configuration looks like this: | | | | | | ... | | | | | | | ... | | { call stp_procedurename(:param1,:param2,) } | | | is this not possible or have i made a mistake? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931866#3931866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931866 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Configuring SEAM test with junit
Hi to everybody and thanks for the big job you have done! i know that i am asking a silly question... i need some help with my first SEAM app. (i already posted this in the seam forum and gavin told me i should post it here because Emmanuel would know the answer) i already have a working app with a sybase ASA9 database. i'm using seam beta 1 and jboss 4.0.3SP1 without ejb rc4. works fine. i want to wait till everything is final until i migrate. now i want to write a test with junit. my problem is that i cant get the configuration into the entitymanagerfactory. the code looks like this: | EntityManagerFactory emf; | ... | emf = Persistence.createEntityManagerFactory("test"); | persistence.xml looks like: | | | test | | |org.hibernate.ejb.HibernatePersistence | | | | | | | | | | | | i have also tried | | | | org.hibernate.ejb.HibernatePersistence | | | | | | | | | | | | | or the programmatic way: | HashMap map = new HashMap(); | | map.put("hibernate.connection.driver_class", "com.sybase.jdbc2.jdbc.SybDriver"); | map.put("hibernate.connection.url", "jdbc:sybase:Tds:localhost:same as in my app"); | map.put("hibernate.connection.username", "..."); | map.put("hibernate.connection.password", "..."); | | emf = Persistence.createEntityManagerFactory("test",map); | it always goes as far as: | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: Hibernate 3.1 | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: hibernate.properties not found | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: using CGLIB reflection optimizer | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: using JDK 1.4 java.sql.Timestamp handling | and then i get a persistenceException: no provider for entity manager named test. please help me, i don't know what i have forgotten... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931860#3931860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931860 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Configuring SEAM test with junit
Thanks for the quick answer! I'll try that... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931859#3931859 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931859 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Configuring SEAM test with junit
Hi to everybody and thanks for the big job you have done! i know that i am asking a silly question... i need some help with my first SEAM app. i already have a working app with a sybase ASA9 database. i'm using seam beta 1 and jboss 4.0.3SP1 without ejb rc4. works fine. i want to wait till everything is final until i migrate. now i want to write a test with junit. my problem is that i cant get the configuration into the entitymanagerfactory. the code looks like this: | EntityManagerFactory emf; | ... | emf = Persistence.createEntityManagerFactory("test"); | persistence.xml looks like: | | | test | | |org.hibernate.ejb.HibernatePersistence | | | | | | | | | | | | i have also tried | | | | org.hibernate.ejb.HibernatePersistence | | | | | | | | | | | | | or the programmatic way: | HashMap map = new HashMap(); | | map.put("hibernate.connection.driver_class", "com.sybase.jdbc2.jdbc.SybDriver"); | map.put("hibernate.connection.url", "jdbc:sybase:Tds:localhost:same as in my app"); | map.put("hibernate.connection.username", "..."); | map.put("hibernate.connection.password", "..."); | | emf = Persistence.createEntityManagerFactory("test",map); | it always goes as far as: | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: Hibernate 3.1 | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: hibernate.properties not found | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: using CGLIB reflection optimizer | 21.03.2006 10:33:09 org.hibernate.cfg.Environment | INFO: using JDK 1.4 java.sql.Timestamp handling | and then i get a persistenceException: no provider for entity manager named test. please help me, i don't know what i have forgotten... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931519#3931519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931519 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user