[JBoss-user] [EJB 3.0] - ejb3 and mysql cluster

2006-06-26 Thread SunFire
Hi, I was looking for documentation on how to configure multiple clustered mysql servers as a datasource for a single transparent failovered persistence unit. Is this possible and if yes where can I find documentation on this? There seems to be nothing about this in the ejb3 specs. Thanks View

[JBoss-user] [JBoss Seam] - test enum values in EL expressions

2006-06-05 Thread SunFire
I know its not exactly Seam related but maybe somebody did it before and can point me in the right direction: I have a public enum with a few values used in an Entity to keep states. | @Name("someEntity") | @Entity | public class SomeEntity { | | public enum SomeState { OPEN, CLO

[JBoss-user] [EJB 3.0] - Re: ClassCastException java.lang.Long in 4.0.4.GA

2006-05-22 Thread SunFire
COUNT was already supposed to return Long in the specs for a while now but there was a bug in the previous EJB3 release to return Integer. It got fixed in the last release so returning Long is the way it is supposed to be. View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[JBoss-user] [JBoss Seam] - Re: Nullpointerexceptions when upgrading software

2006-05-17 Thread SunFire
I had a similiar problem with my @Temporal annotations and after reding the final ejb3 specs it seems they have removed the default value for the TemporalType. In the last revision TemporalType.TIMESTAMP was the default when you did not specify it anything. Try to annotate it like this "@Tempor

[JBoss-user] [JBoss Seam] - Re: random error after update

2006-05-17 Thread SunFire
"[EMAIL PROTECTED]" wrote : Is MyFaces 1.1.3 released now? | | | If so, I will upgrade Seam to that and try it out. yep, myfaces 1.1.3 and tomahawk 1.1.2 have both been released on the 9th. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944321#3944321

[JBoss-user] [JBoss Seam] - Re: random error after update

2006-05-17 Thread SunFire
Yes I also updated to myfaces version 1.1.3 since it is the latest official release and fixes quite some bugs. So it seems it is a little incompatibility between Seam cvs <-> myfaces 1.1.3? Gavin is it possible to change Seam so that it I don't need to downgrade to 1.1.2 again to get rid of it

[JBoss-user] [JBoss Seam] - random error after update

2006-05-16 Thread SunFire
I just updated to JBAS 4.0.4.GA and the latest seam CVS. Since then I am gettign this exception quite random so I can't realy provide a reproduceable scenario yet. :/ I does not break the functionality of the application since everything works normal for the user after the exception. 18:20:21,79

[JBoss-user] [EJB 3.0] - Re: Get entity manager without annotation?

2006-05-16 Thread SunFire
You can add | to the properties of your persistence-units in your persistence.xml in order to make EM and EMF available via JNDI lookup. Cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943147#3943147 Reply to the post : http://www.jboss.com/index.

[JBoss-user] [EJB 3.0] - Re: set of Attributes as member of an entytybean

2006-05-08 Thread SunFire
Since enum is a fixed set of attributes I don't think it would make much sens to save it into a DB. So why persist something that does not change at runtime and is part of your code? Usualy you only want to save the value on an enum attribute inside of an Entity and this would look somthing like

[JBoss-user] [JBoss Seam] - scripthooks for s:link linkStyle=button

2006-05-02 Thread SunFire
I'd like to add a few simple mouseover effects to a s:link button but onmouseover and onmouseout are not supported. So I tried to work with the trick but this only seems to work with F'Fox but not IE. Can you maybe add a few common scripthooks to the link component or is there a simple workaro

[JBoss-user] [JBoss Seam] - Re: Transaction problem after upgrade

2006-04-24 Thread SunFire
I don't think it is much code, all the errors occure in very little code acuallypackage com.broadcore.broadview; | | import java.io.IOException; | import java.io.InputStream; | import java.util.Properties; | | import org.jboss.logging.Logger; | import org.jboss.seam.annotations.Beg

[JBoss-user] [JBoss Seam] - Re: Transaction problem after upgrade

2006-04-24 Thread SunFire
hehe, I am one step further now but I ran into the next problem right away :) The TaskLists do work fine now but when a method annotated with @CreateProcess is executed I am getting this Exception again: Caused by: java.lang.IllegalStateException: JbpmContext may only be used inside a transaction

[JBoss-user] [JBoss Seam] - Re: Transaction problem after upgrade

2006-04-24 Thread SunFire
yay, that did it! Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939016#3939016 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939016 --- Using Tomcat but nee

[JBoss-user] [JBoss Seam] - Re: Transaction problem after upgrade

2006-04-24 Thread SunFire
hm, now I am getting this Exception:java.lang.IllegalStateException: JbpmContext may only be used inside a transaction | at org.jboss.seam.core.ManagedJbpmContext.getJbpmContext(ManagedJbpmContext.java:71) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun

[JBoss-user] [JBoss Seam] - Transaction problem after upgrade

2006-04-23 Thread SunFire
I just upgraded to the latest seam CVS and JBoss AS 4.0.4.CR2 / EJB3 RC6. I changed all the things required to make it work, including new config files, etc. Now the application is working fine again but I am getting an exception when working with PooledTaskInstanceList and TaskInstanceList: jav

[JBoss-user] [JBoss Seam] - Re: jBPM demarcation question

2006-04-13 Thread SunFire
Well this is how it happens: A user starts a long running conversation somewhere in the application... doesn't matter where exactly. Before he was doing anything meaningful in the conversation a colleague jumps into his office and asks him if he could go to his tasklist and acknowledge the sales

[JBoss-user] [JBoss Seam] - Re: jBPM demarcation question

2006-04-12 Thread SunFire
I had a look into the code and it seems that the exception is only throwen when there was a regular-long-running-conversation active while a method annotated with @StartTask or @BeginTask is called. The problem went away when I called a dummy @End annotated method right before the @StartTask or

[JBoss-user] [JBoss Seam] - Re: JAAS and SEAM

2006-04-12 Thread SunFire
"dalvarezpy" wrote : My question is now: how do I "use" my security framework from within SEAM? I mean, I'd like to customize the views according to the roles the user have (e.g. show a given button only to Admins), so I would like to know any moment what roles the user have, for example. Is the

[JBoss-user] [JBoss Seam] - Re: jBPM demarcation question

2006-04-11 Thread SunFire
We had the very same issues you describe with the @Factory method a few days ago but it went away without changeing anything and we haven't been able to reproduce - actually we haven't tried since then because time is short. ;) Yes we do use @CreateProcess to create an instance of the long runni

[JBoss-user] [JBoss Seam] - Re: SelectManyCheckbox

2006-04-09 Thread SunFire
selectItems works for me when I use Map. Haven't tried to put others things then String into it yet since usualy a selectItem only accepts Strings as value. btw: I had coffee now and no need to point my silly nose on my obvious errors of my first post! Please just ignore it. :/ View the origin

[JBoss-user] [JBoss Seam] - Re: SelectManyCheckbox

2006-04-09 Thread SunFire
Interesting, then I got a whole lot about Seam wrong and hope even more that Gavin or some other Seam guru is going to enlighten us. :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936091#3936091 Reply to the post : http://www.jboss.com/index.html?module=

[JBoss-user] [JBoss Seam] - Re: SelectManyCheckbox

2006-04-09 Thread SunFire
I am not sure about this and realy like to hear Gavins opinion on my response: anonymous wrote : These attributes occur on component instance variables or property | accessor methodsThis is taken from the manual for bijection annotations and I take it that bijection annotations only work for S

[JBoss-user] [JBoss Seam] - Re: Report: CVS Version of Seam

2006-04-09 Thread SunFire
btw: if you want to use the facesmessages change your import from org.jboss.seam.core.FacesContext to javax.faces.context.FacesContext. This way it works for me just fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936085#3936085 Reply to the post : ht

[JBoss-user] [JBoss Seam] - Re: Report: CVS Version of Seam

2006-04-09 Thread SunFire
Hi mirko27, can you please be a little more specific about what does not work, maybe provide specifc cases/traces and maybe provide some information about the version you are useing (myfaces, facelets, ejb3, jboss). Since I am also useing a quite recent CVS version and everything works for me,

[JBoss-user] [JBoss Seam] - Re: Cannot use @DataModel and sorting functionality for Toma

2006-04-05 Thread SunFire
Thanks for the nice example Gavin. Little sidenote for scaleablity and for the additional use of the Tomahawk Data Scroller component: in order to reduce the heat and the overhead for very large datasets I'd implement the sort() functionality not in the java code but in the EJBQL (means to "dyna

[JBoss-user] [JBoss Seam] - Re: Upgrade to jboss-4.0.4.GA-ejb3

2006-04-05 Thread SunFire
"lcoetzee" wrote : 2. What does the GA mean ? Is this in line with the Hibernate 3.2.0.CR1 release ? Usualy (I am not sure about JBoss tho) GA means "General Availability" and is used to flag a "final" and production ready release after a bunch of "Release Candidates" (or in the new JBoss terms

[JBoss-user] [JBoss Seam] - DOCTYPE missing in Seam faces-config.xml

2006-04-01 Thread SunFire
I just played around with the most recent myfaces 1.1.3-snapshot and facelets 1.1.2 and it seems to be required to put a DOCTYPE element in the faces-config.xml of seam http://java.sun.com/dtd/web-facesconfig_1_1.dtd";> I still haven't gotten it to work but at least this got me one step further :

[JBoss-user] [JBoss Seam] - Re: redirection problem

2006-03-25 Thread SunFire
hm, what is that thing actually good for? ok well besides redirecting stuff. ;) Whats the impact if I'd turn it off? Is it just appending the conversationId to all kinds of URLs? btw: can't tell you guys how much I appreciate your extremly fast responses all the time! Big big thanks for that! :

[JBoss-user] [JBoss Seam] - redirection problem

2006-03-25 Thread SunFire
hi there, I have a little issue with dynamic redirection from within my component. In my component I construct the following URL https://some.site.somewhere/index.php?param1=value1¶m2=value2 and try to redirect the client like this ... | HttpServletResponse response = (HttpServletResponse)face

[JBoss-user] [EJB 3.0] - multiple databases/entitys in one EAR

2006-03-20 Thread SunFire
Hi, this may be a trivial question but I was unable to find enough documentation on it to make it work. I have 2 DBs sitting on different hosts. I need some entities to be persisted in database A and some others to be persited in database B. I have one SLSB which needs to run querys on entitys

[JBoss-user] [JBoss Seam] - Re: validation problems

2006-03-03 Thread SunFire
I'd be very interested to take a look at it. Is there a download link? Thanks, Thorsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927743#3927743 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927743

[JBoss-user] [JBoss Seam] - Re: validation problems

2006-03-01 Thread SunFire
Not a solution to your problem but a feature request: wouldn't it be nice to add more granularity to the @Valid and @IfInvalid annotations so that you would be able to exactly specify what @Valid annotation should be validated with a call to a specific @IfInvalid annotation. Example: | @Stat

[JBoss-user] [EJB 3.0] - Re: hibernate3 jars don't match

2006-02-26 Thread SunFire
Hm, the JBoss-IDE 1.5 also uses the Hibernate stuff from ejb3.deployer/ for EJB3 projects, not the ones in lib/ Does that make sens or should the classpath also include the jars from lib/ rather then ejb3.deployer/? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[JBoss-user] [JBoss Seam] - Re: HttpSession, Seam SessionContext and bijection

2006-02-20 Thread SunFire
Thanks alot for the quick response! I appreciate it very much! :) http://jira.jboss.com/jira/browse/JBSEAM-138 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925075#3925075 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[JBoss-user] [JBoss Seam] - HttpSession, Seam SessionContext and bijection

2006-02-20 Thread SunFire
Hi there, I have a little issue with the understanding of how the HttpSession of a webcontainer and the seam SessionContext interact. My Problem is that I set a HttpSession variable in a Filter with | session.setAttribute("loggedInUser", user); | this works finde since I can access the obje

[JBoss-user] [EJB 3.0] - Re: What happened to javax.ejb.InvocationContext.getEJBConte

2006-02-13 Thread SunFire
Thanks Christophe, your post was the solution. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923341#3923341 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923341 ---

[JBoss-user] [EJB 3.0] - What happened to javax.ejb.InvocationContext.getEJBContext()

2006-02-11 Thread SunFire
Hi there, in JBAS 4.0.3sp1 I was able to do something like this to get the current caller principals name from within an interceptor: | @AroundInvoke | public Object checkLoggedIn(InvocationContext invocation) throws Exception { | [...] | String l

[JBoss-user] [JBoss Seam] - Re: Entity Manager not bound exception

2006-01-12 Thread SunFire
I seems this is not a seam bug but a EJB3 problem and - I think - it was reported in JIRA and flaged as "done" in the current HEAD. Its an issue with the SFSB passivation/activation code. If you want a quick workaround for the moment annotate you SFSB like this to avoid passivation: | import

[JBoss-user] [JBoss Seam] - Re: Tomohawk sortTable strange error

2006-01-06 Thread SunFire
Is there a solution to this problem yet? I have the current CVS of seam and my setup looks pretty much like Zealots. The table is rendered fine and the sort links appear in the header but as soon as you click them it throws this nasty exception: | 19:55:12,281 ERROR [[Faces Servlet]] Servlet.

[JBoss-user] [JBoss Seam] - Re: JAAS and SEAM

2005-12-22 Thread SunFire
a few more things to make the sample more complete: 1. put a login-config.xml into the META-INF dir of you .ear and make it look like this: | | | | | | | | 2. put a login-service.xml into the root of your .ear that look

[JBoss-user] [JBoss Seam] - Re: JAAS and SEAM

2005-12-22 Thread SunFire
Well I was also looking at a way to use the container based JAAS cababilities of Tomcat to do webauthentication. I have it working as I wanted it to work but the implementation is not how I want it to look like: 1. I have written a custom LoginModule that extends UsernamePasswordLoginModule and

[JBoss-user] [Beginners Corner] - Re: corba tcp connection remains after destoying the orb

2005-04-14 Thread SunFire
"anguyen" wrote : Perhaps the connections are remaining open until _ncRef and _server are garbage collected. | I tried it now but it does not work. :( The connections are still there even after a call to the _release() methods and to System.gc(). View the original post : http://www.jboss.or

[JBoss-user] [Beginners Corner] - corba tcp connection remains after destoying the orb and und

2005-04-13 Thread SunFire
Hi all, I have written a ejb3 service that connects to a remote corba server and other EJBs use it to communnicate via XML with the remote server(this part is working nicely). I don't know if this is the way a ORB/CORBA setup is supposed to be done. So if you have any suggestions please let me k