[jboss-user] [JNDI/Naming/Network] - Map TransactionManager to external context

2008-06-01 Thread gena777
Hello, is it possible to map the TransactionManager so, that it will be externally accessible? I would use it from Hibernate console without changing of my persistence.xml. I tried it with other AS as JBoss an it works. Thanks, Gena View the original post :

[jboss-user] [JBoss Seam] - Possible design weakness of Events.raiseEvent() ??

2008-02-10 Thread gena777
Hello, the current implementation of the event observer pattern seems to be (in my opinion) unstable: the new one observer can throw an uncaught runtime exception and so prevent other observer from the reaction to this event. Are there any fail-safe design pattern known, how we should use

[jboss-user] [JBoss Seam] - Selector.java: rememberMe cookie doesn't disappear

2007-09-30 Thread gena777
Hello, my remember me cookie doesn't disappear after at least one login with the rememberMe set to true. I think the method clearCookieValue() should remove the cookie from the same path, as it was set once. So if i change the line 99 of Selector.java from cookie.setPath(/) to

[jboss-user] [JBoss Seam] - NotLoggedInException and no redirect to login page again

2007-09-03 Thread gena777
Hello, i'm trying to use the built-in security handling. With the pages.xml it works fine. But, if i try to restrict some controller action, no redirect occurs and the application just throws an exception | 17:34:57,328 ERROR [[default]] Servlet.service() for servlet default threw exception

[jboss-user] [JBoss Seam] - Re: NotLoggedInException and no redirect to login page again

2007-09-03 Thread gena777
Ok, with s:button the redirection to login works properly also on method invocations, but not with h:commandButton, any idea why?! I'm using trinidad 1.2.1 on the jsf-ri-1.2 latest with latest cvs build of jboss Seam2 Gena View the original post :

[jboss-user] [JBoss Seam] - EJB3InterceptorsInterceptor instead of EE5SeamInvocationCont

2007-08-13 Thread gena777
Hello, i'm trying to get the testng tests working. Could please someone explain, why the method invocation on a POJO- Seam- component is correctly intercepted by EE5SeamInvocationContext but each call to an ejb3 component is intercepted by EJB3InterceptorsInterceptor if i use the Jboss

[jboss-user] [JBoss Seam] - Jndi problem with jboss embedded and testng

2007-08-12 Thread gena777
Hello i'm trying to run a testng test. At the beginning it looks fine: | 01:55:18,578 INFO [Component] Component: offerLifecycle, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: de.intermobil.appl.OfferLifecycleBean, JNDI: OfferLifecycleBean/local but as soon es the test needs an

[jboss-user] [JBoss Seam] - No session context for @WebMethod-call

2007-07-21 Thread gena777
Hello i'm trying the @WebService example from the reference-documentation but i'm getting following exception on Identity.instance() call: | Caused by: java.lang.IllegalStateException: No active session context | at org.jboss.seam.security.Identity.instance(Identity.java:157) |

[jboss-user] [JBoss Seam] - Re: No session context for @WebMethod-call

2007-07-21 Thread gena777
Sorry, configured, but didn't deploy. Thank you for the hint! Gena View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066448#4066448 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066448

[jboss-user] [JBoss Seam] - Re: Preserving querystring during redirect.captureCurrentVie

2007-07-08 Thread gena777
Try to use the page parameters in pages.xml: | page view=/edit_user.xhtml login-required=true | param name=userId value=#{editUser.userId}/ | /page | if you request /edit_user.seam?userId=someId , after login succeeded, you should be redirected to the page with userId set. Gena View

[jboss-user] [JBoss Seam] - Locale switch doesn't remove bundles from context

2007-07-08 Thread gena777
Hello, i think, to get the last changes on locale/bundles working, the line 68 in LocaleSelector.java should be changed from Contexts.removeFromAllContexts(org.jboss.seam.core.resourcebundle); to Contexts.removeFromAllContexts(org.jboss.seam.core.resourceBundle); Gena View the original post

[jboss-user] [EJB 3.0] - Re: Can SLSB be dirty after new injection?

2007-07-07 Thread gena777
@wolfc thank you for the answer! its a pity, that a small error (misunderstanding of this aspect of ejb-spec) results in a total instability of a whole application. I think, its really confusing, to get a dirty new injected STATELESS bean from a container. Couldn't it be better, to purge the

[jboss-user] [EJB 3.0] - Correct recovery with optlock and extended PC

2007-07-07 Thread gena777
Hello all, some entity was changed otherwise during it was editing in web. This entity is associated with an extended persistent context. After trying to persist the changes, it naturally (as expected) throws an exception. My idea is | Entity merged = em.merge(dirtyEntity) ; |

[jboss-user] [EJB 3.0] - Can SLSB be dirty after new injection?

2007-07-06 Thread gena777
Hello just one stupid question. I invoke 3 method on one injected stateless bean instance. During the invocation chain this SLSB holds the internal state. After the the work is done, i forget this SLSB. And now the question, if i repeat the operation described above in the next

[jboss-user] [JBoss Seam] - Re: h:selectManyCheckbox replaces PersistentBag with Arrays.

2007-07-03 Thread gena777
This is well within the contract for JSF - It simply says that the value attribute of the UISelectMany should be an array or List - it doesn't say that it is a PersistentBag. PersistentBag is an implementation of java.util.List and i don't see any need in a replacement of an existing and not

[jboss-user] [JBoss Seam] - Re: core:pages https-port ignored

2007-07-02 Thread gena777
thank you! it was the navigation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059555#4059555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059555 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-07-02 Thread gena777
i think, it could, but we use now two different ds one for JBoss and one for our application. In the future, we plan to switch the jboss ds to our production one. Do you think, the XA were the performance killer or a source of system instability? View the original post :

[jboss-user] [JBoss Seam] - s:graphicImage decreases the image quality

2007-07-01 Thread gena777
Hello, i think, it should be possible to use the byte[] as is (+custom content type) with s:graphicImage. I prepare the images with JAI and if use the s:graphicImage the quality decreases. If i comment the preparation of BufferedImage out and put the input array to output thru, i get an

[jboss-user] [JBoss Seam] - Re: s:graphicImage decreases the image quality

2007-07-01 Thread gena777
Ok, JIRA issue is now open http://jira.jboss.org/jira/browse/JBSEAM-1592 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059487#4059487 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059487

[jboss-user] [JBoss Seam] - h:selectManyCheckbox replaces PersistentBag with Arrays.Arra

2007-07-01 Thread gena777
Hi During em.merge( ) operation i'm getting an exception, because the Arrays.ArrayList doesn't provide the AbstractList.remove functionality. As the collection was retrieved from DB, it was an instance of PersistentBag. After form submission it becomes Arrays.ArrayList. So someone

[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error

2007-06-23 Thread gena777
Hi, is it possible, you are getting some where an uncaught exception (i would say null pointer) and seam interceptor rolls back the transaction? In the next step your page will rerender and touch a really null (or corrupt) objects. Gena View the original post :

[jboss-user] [JBoss Seam] - Re: s:conversationPropagation has no effect with h:commandBu

2007-05-28 Thread gena777
Thank you for the answer! The problem is, for example i need to submit form and persist an object in an old long running conversation. Then i must initiate a redirect to a new page, take some parameters from an old conversation and begin a new long running conversation. Optionally, it would be

[jboss-user] [JBoss Seam] - s:conversationPropagation has no effect with h:commandButton

2007-05-26 Thread gena777
Hello it seems, that the s:conversationPropagation doesn't affect the h:commandButton behaivour. This code works, but doesn't cause a submition of form values s:button propagation=begin action=offer/createOffer value=#{uib.Next} styleClass=submit |

[jboss-user] [JBoss Seam] - a:support request causes

2007-05-20 Thread gena777
Hi i'm using an ajax4jsf enabled page, which works proper until i send even a smallest ajax event. Then i get a PersistentObjectException (detached entity...). The conversation seems to be long running, the session has manual flash mode. The entity, which is the cause of an exception is

[jboss-user] [JBoss Seam] - a:support request causes

2007-05-20 Thread gena777
Hi i'm using an ajax4jsf enabled page, which works proper until i send even a smallest ajax event. Then i get a PersistentObjectException (detached entity...). The conversation seems to be long running, the session has manual flash mode. The entity, which is the cause of an exception is

[jboss-user] [JBoss Seam] - Re: ELSupport exception on javasisst-proxies (coerceToType)

2007-05-16 Thread gena777
Hi the small example is attached to Jira. I hope, it will be helpful. Gena View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046347#4046347 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046347

[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-05-03 Thread gena777
Ok, i've found it! Since the new jboss ts implementation supports only one local-tx-resource per distributed transaction, the timer can not be commited until a bean uses more then one local-tx resource. Timers are hosted by default within the non xa hsqldb. So if we use in our transaction also

[jboss-user] [JBoss Seam] - Does s:fileUpload work with trinidad?

2007-05-02 Thread gena777
Hello all i'm using s:fileUpload as a replacement of trinidad upload tag as described by the seam docs and example. Since two weeks i've got a recent implementation of trinidad and tried to use it. It works so far but the s:fileUpload doesn't work correct anymore. I'm not sure, if the problem

[jboss-user] [JBoss Seam] - Re: Timmer problem

2007-05-02 Thread gena777
Are any workarounds/patches or corrections available now? Thx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042669#4042669 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042669

[jboss-user] [JBoss Seam] - Re: Timmer problem

2007-05-02 Thread gena777
I've got it! Since the new jboss ts implementation supports only one local-tx-resource per distributed transaction, the timer can not be commited until your bean is using more then one local-tx resource. Timers are hosted by default within the non xa hsqldb. So if we use in our transaction also

[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-05-02 Thread gena777
Ok, i've found it! Since the new jboss ts implementation supports only one local-tx-resource per distributed transaction, the timer can not be commited until a bean uses more then one local-tx resource. Timers are hosted by default within the non xa hsqldb. So if we use in our transaction also

[jboss-user] [JBoss Seam] - Re: ELSupport exception on javasisst-proxies (coerceToType)

2007-04-25 Thread gena777
Hello, i'm using the freshest CVS Seam on JBoss4.2.0CR2 with trinidad, ajax4jsf and jsf 1.2ri (all jars from AS or Seam-dist). Stack trace: | SCHWERWIEGEND: Error Rendering View[/offer/step1.xhtml] | java.lang.IllegalArgumentException: Cannot convert (id=1868 token=REPAIRED

[jboss-user] [JBoss Seam] - ELSupport exception on javasisst-proxies (coerceToType)

2007-04-24 Thread gena777
Hello, i 've got an Exception, that OneType is not of type OneType_javassist... in method coerceToType. My workaround (works for me but possible isn't a finest solution) if (type == null || Object.class.equals(type) || obj.getClass().isAssignableFrom(type)) Please check this and describe

[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-04-23 Thread gena777
Hello, i'm using the seam-wrapper for EJB3 timers via @Asynchronous. In a simple case it works fine: Timer iface: @Local | public interface TimerTester { | @Asynchronous | public abstract Timer say(String what, @Expiration | Date expireTime, @IntervalDuration | Long

[jboss-user] [JBoss Seam] - Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam from

2007-04-22 Thread gena777
Hi, while i'm trying to persist one start and one end timer, i get following exception. Some details on the unit of work: I persist my object (object graph) at the end of long running conversation with extended persistent context. Then i do em.flash() and (if all succeeded) i wish to schedule

[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
I hope yes: My ejb-jar.xml: ... | assembly-descriptor | interceptor-binding | ejb-name*/ejb-name | interceptor-classorg.jboss.seam.ejb.SeamInterceptor/interceptor-class | /interceptor-binding |/assembly-descriptor | ... View the original

[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
... | 11:43:48,804 INFO [Component] Component: utilWeb, scope: EVENT, type: JAVA_BEAN, class: de.intermobil.util.UtilWeb | 11:43:48,804 DEBUG [Component] interceptor stack: [Interceptor(org.jboss.seam.interceptors.MethodContextInterceptor),

[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
Not only my components but also no one Seam component can be injected (facesMessages, applicationContext, log etc. are nulls!!) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4008231#4008231 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
Ok, i don't know why, but it works now. I've tried the Seam-generated example as described on Wiki. And it did work! The only difference was the eclipse project kind: my project is a simple application, but seam-tutorial is an Enterprise Application. So i was missing the EAR-libraries. In my

[jboss-user] [JBoss Seam] - Seam injection doesn't work while testing with testng!

2007-01-29 Thread gena777
Hi, i've got probably a stupid injection issue but i need a hint: 1. While testing with testng no one Seam component can be injected. However, @EJB components can be! 2. All components seem to be correctly installed/registered during start up 3. Component.getInstance(..) and so on work