[jboss-user] [EJB 3.0] - Re: First step towards performance improvement of EJB3 deplo

2009-05-20 Thread chawax
I applied your patch with same EAR I used for my first performance test. It contains 365 EJBs / Seam components. Deploy times are better, but still far from JBoss 4.2 performance : - JBoss 4.2.3 : about 1' - JBoss 5.0.1 : about 4'30" - JBoss 5.1.0.CR1 : about 5' - JBoss 5.1.0.CR1 + EJB3 patch

[jboss-user] [JBossWS] - Only JBoss AS support ?

2009-02-06 Thread chawax
Hi, A simple question but I can't find a clear answer to it ... Can I use JBossWS on any JEE application servers (Tomcat, Websphere, ... ) ? Or is it supported only on JBoss AS ? Regards, Olivier View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207632#420763

[jboss-user] [JBoss jBPM] - Re: NPE with GPD after upgrading to 3.1.3.SP1

2008-10-28 Thread chawax
After investigation, the problem occurs when I set an expression for an "action" node. There's already a JIRA filed for this : https://jira.jboss.org/jira/browse/JBIDE-2449. I tried with JBoss Tools 3.0.0.Alpha1, same problem. View the original post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [JBoss jBPM] - NPE with GPD after upgrading to 3.1.3.SP1

2008-10-28 Thread chawax
Hi, After upgrading JBoss jBPM JPDL designer from 3.1.0.GA to 3.1.3.SP1 (bundled with JBoss Tools), I can't open some process definition files with the graphical designer. I have the following stack trace : java.lang.NullPointerException | at org.jbpm.gd.jpdl.xml.EsbNodeMapper.accept(Unkn

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-10-21 Thread chawax
Shame on me ... My connection url was wrong. It works with this one : jdbc:mysql://srv-r1-be01:3307/et4 instead of this one : jdbc:mysql/srv-r1-be01:3307/et4 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183507#4183507 Reply to the post : http://www.j

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-10-21 Thread chawax
Hi, I had not used Hibernate console for a long time, but my problem with MySQL is back with MySQL ... I have the following stack trace : org.hibernate.exception.JDBCConnectionException: Getting database metadata | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.jav

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate console with entities in many

2008-10-21 Thread chawax
Well, I made several files for development organization reasons : many development teams will work on the project and they will rely on common entities for standard needs. At the end, all these projects are merged into one jar (t4-core-all) which will contain all entities and one unique persist

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate console with entities in many

2008-10-20 Thread chawax
Thanks for your response Max. I have a workaround for the moment as I said, not very convenient, but at least it exists ! It would be great anyway if Emmanuel has a better workaround. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183170#4183170 Reply to the

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate console with entities in many

2008-10-20 Thread chawax
Yes, I hardly understand why it doesn't work. To be more precise, my t4-core-commons project contains this persistence.xml file : | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/pe

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate console with entities in many

2008-10-17 Thread chawax
Thanks Max. My other projects are mavenized, so I have the needed jar file :) But where should I set ejb-jar ? Do I have to do it in a persistence.xml file ? If so, does Hibernate look for persistence.xml file in classpath (this would be a problem for me since I have different persistence.xml

[jboss-user] [JBoss Tools (users)] - How to configure Hibernate console with entities in many pro

2008-10-17 Thread chawax
Hi, I have JPA entities that depend on entities defined in another project. For example I have a t4-core-commons project that depends on a t4-core-utils project (for example @ManyToOne annotation). I try to configure hibernate console for these projects. No problem to configure it on t4-core-u

[jboss-user] [Security & JAAS/JBoss] - Re: Need help to configure security with Seam and EJB3

2008-05-07 Thread chawax
Forgot to tell I work with JBoss 4.2.0.GA. I also use JBoss SX 2.0.1.GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149150#4149150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149150 __

[jboss-user] [Security & JAAS/JBoss] - Need help to configure security with Seam and EJB3

2008-05-07 Thread chawax
Hi, I desperately try to enable security on EJB3 session beans called from Seam components, but I can't find how to do this. When I try to call EJB3 session bean, I have a "Authentication failure" error. It's hard to find clear documentations about this on the web, so I hope someone will help m

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-04-04 Thread chawax
Changing back my project to MySQL, it works now ... But I can't find what made it work ! I use the same driver, hibernate.properties file is the same, persistence.xml file too ! I will report again if I find what caused the problem in case other people encounter the same problems. Thanks a lot a

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-04-04 Thread chawax
Yes, it is the one I use when running my app on JBoss Application Server. So it looks like there's something that Hibernate Console uses and that it not supported by this MySQL driver. I find it strange ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=414158

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-04-04 Thread chawax
I tried with HSLQDB instead of MySQL and it works perfect. So it is a problem with MySQL driver. I use mysql-connector-java-5.0.3.jar archive. Are there known problems with this one ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141574#4141574 Reply to the

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-04-03 Thread chawax
Thanks, it helped me a lot. I wrote the following hibernate.properties file : hibernate.connection.password=T4 | hibernate.connection.username=T4 | hibernate.connection.driver_class=com.mysql.jdbc.Driver | hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect | hibernate.connection.ur

[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

2008-04-03 Thread chawax
Thanks Max. I finally could make the configuration node work and now I can see all my EJB3 entity classes when expanding the configuration node, so no more problem with mapping file. The problem is that I don't exactly now how I solved this problem ! I Just made a maven clean then a maven insta

[jboss-user] [JBoss Tools (users)] - How to configure Hibernate Console in a Maven project ?

2008-04-03 Thread chawax
Hi, I work on a Maven project with JPA Hibernate implementation for persistence. I would like to make Hibernate console work with this project, but I encounter problems. My project has EJB3 entity classes (with JPA annotations) and this persistence.xml file (all in build path and so in classpa

[jboss-user] [EJB 3.0] - Re: How to retrieve an EJB from a JAR used in many EAR ?

2008-03-12 Thread chawax
OK, thanks a lot, you were very helpful. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135947#4135947 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135947 ___ jboss-user mai

[jboss-user] [EJB 3.0] - Re: How to retrieve an EJB from a JAR used in many EAR ?

2008-03-12 Thread chawax
Well, I hope there will be a standard solution for this in next EJB specifications. Do you have an idea how difficult it is to do the same with Webpshere or other application servers ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135936#4135936 Reply to th

[jboss-user] [EJB 3.0] - Re: How to retrieve an EJB from a JAR used in many EAR ?

2008-03-12 Thread chawax
Thanks for your response. I guess this jboss.xml file works only for JBoss application server ? The problem is that my app has to work on other AS such as IBM Webpshere. Is there a standard solution for this ? P.S. : I saw you can use annotations with EJB3 but this part of my application is gen

[jboss-user] [EJB 3.0] - How to retrieve an EJB from a JAR used in many EAR ?

2008-03-12 Thread chawax
Hi, I work with EJB3 (I am a newbie) and I have problems about state of the art way to retrieve an EJB from a JAR that will be used on many EAR projects. I have the following EJB (generated from AndroMDA) : | | | | ServiceEmployeBean | myCompany.ServiceEmp

[jboss-user] [JBoss Seam] - Re: CONTEXTS MISSING DEPENDENCIES with SeamTest

2008-02-18 Thread chawax
I was talking about the "metadata" tag that should be used to set the type mapping for Java persistance. If you use it in a datasource XML file, it fails as I showed at the beginning of this topic ;) I used to configure my datasource this way with JBoss 4.2, so has something changed about this w

[jboss-user] [JBoss Seam] - Re: CONTEXTS MISSING DEPENDENCIES with SeamTest

2008-02-06 Thread chawax
Well, it looks like the tag is not supported in *-ds.xml files ! I removed it and I have no more the error ! I understood that JBoss embedded is a JBoss 5 server, used to work with JBoss 4.2, but what is the equivalent now ? View the original post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Re: CONTEXTS MISSING DEPENDENCIES with SeamTest

2008-02-06 Thread chawax
Well, it looks like my datasource is well initialized. I set the log level to DEBUG and I can see these lines in the logs : INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/t4Seam' to JNDI name 'j

[jboss-user] [JBoss Seam] - Re: CONTEXTS MISSING DEPENDENCIES with SeamTest

2008-02-06 Thread chawax
Forgot to say that I got JBoss embedded bootstrap files from Seam 2.0.1.GA distribution. I just added my t4Seam-ds-xml.file in deploy directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127007#4127007 Reply to the post : http://www.jboss.com/index.html

[jboss-user] [JBoss Seam] - CONTEXTS MISSING DEPENDENCIES with SeamTest

2008-02-06 Thread chawax
Hi, I try to use JBoss embedded to test Seam components in a Maven project. I use Maven 2.0.4, Seam 2.0.1.GA and JBoss embedded beta3. I use JDK 5.0.11. I have this stack trace on JBoss embedded bootstrap : org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete depl

[jboss-user] [JBoss Seam] - Re: Problem with Seam tests and

2008-01-22 Thread chawax
Thanks Pete. As you suggested, I filed a JIRA issue for this : http://jira.jboss.org/jira/browse/JBSEAM-2519 Note the problem occurs also when using dependsOnMethods, so it looks like the problem deals with dependent testing, not only test groups. View the original post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Problem with Seam tests and "dependsOnGroups"

2008-01-18 Thread chawax
Hi, I have problems on TestNG tests for Seam components when using dependsOnGroups attribute of @Test annotation. For example, this test works : @org.testng.annotations.Test (groups="groupe1") | public void testUsageUnite() throws Exception | { | new ComponentTest() { | @Ov

[jboss-user] [JBoss Seam] - Re: How to pass parameters with ComponentTest.invokeMethod

2008-01-17 Thread chawax
I gave up using reflection to call Seam component and used getInstance() method instead to get the Seam component and then call its methods as usual. So now it looks like this : @org.testng.annotations.Test ( | public void testEmploye() throws Exception { | new ComponentTest() { |

[jboss-user] [JBoss Seam] - Re: How to pass parameters with ComponentTest.invokeMethod

2008-01-16 Thread chawax
Well I read that you can't use parameters with invokeMethod. So I tried with Expressions.createMethodExpression : MethodExpression me = Expressions.instance().createMethodExpression( | "#{coreServiceEmploye.saveEmploye(employe)}", | Employe.class, | new Class[]{Employe.class})

[jboss-user] [JBoss Seam] - How to pass parameters with ComponentTest.invokeMethod

2008-01-16 Thread chawax
Hi, I write integration tests with EJB3 embedded container and I need to test a method needing parameters. I did it this way : @org.testng.annotations.Test | public void testEmploye() throws Exception { | new ComponentTest() { | protected void testComponents() throws Exception

[jboss-user] [EJB 3.0] - Re: How to define unique constraint on foreign keys ?

2008-01-04 Thread chawax
I solved this by using column names instead of properties names to define the unique constraint. It does not look logical to me, but it works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117038#4117038 Reply to the post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: Communication between Business and Presentation Layer

2007-12-07 Thread chawax
I made this. But my code is generated by AndroMDA with Seam and EJB3 cartridge, so I am not sure why it works lol But here are a few pieces of code that may help you : The EJB is injected this way in my Seam component : @javax.ejb.EJB | protected myPackage.ServiceProcessusRemote servicePro

[jboss-user] [JBoss Seam] - Re: Date formatting in EL expression

2007-12-07 Thread chawax
Thanks for your answer, a negative answer is always better than no answer at all ! As you suggest, I opened a JIRA for this : http://jira.jboss.org/jira/browse/JBSEAM-2356 For the moment, I think I can workaround this problem using a Seam component. View the original post : http://www.jboss.co

[jboss-user] [JBoss Seam] - Re: Date formatting in EL expression

2007-12-07 Thread chawax
Well, I could not found any tutorial about this on the net. It would be very kind from you to give me a link if you have one ;) I just found tutorials for custom EL functions used in JSP via taglibs. But my app uses facelets, not JSP. Moreover the EL expression to evaluate is in a resource bund

[jboss-user] [JBoss Seam] - Re: Date formatting in EL expression

2007-12-07 Thread chawax
I heard about EL functions ... Could it be an answer to my problem ? If so, are there EL functions that can format dates ? And how should I use them ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=430#430 Reply to the post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - Re: Date formatting in EL expression

2007-12-06 Thread chawax
Yes, I know it. But I don't think it can be used for my problem. I should have shown an example of the way I need to use it, it would have bean clearer. My EL expression is defined a resource file and then used with the messages built-in component : With my resource file like this : el.dema

[jboss-user] [JBoss Seam] - Date formatting in EL expression

2007-12-06 Thread chawax
Hi, In a properties file I have a resource containing an EL expression with dates. But I can't find how to format this date. For example, the following resource : Du #{da.lignes[0].dateDebut} au #{da.lignes[0].dateFin} The EL is evaluated this way : Du Mon Dec 03 00:00:00 CET 2007 au Mon Dec 1

[jboss-user] [JBoss Seam] - Re: How to use a Seam component in swimlane assignment

2007-12-04 Thread chawax
I found it ... I have to use pooledTaskInstanceList built-in component. I also have to be sure that the groupActorIds of the actor component has been set on authentication. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110203#4110203 Reply to the post : ht

[jboss-user] [JBoss Seam] - Re: How to use a Seam component in swimlane assignment

2007-12-04 Thread chawax
Well, I tried something too complicated ... I have no need to use a swimlane, but just pooled actors on my task. So I defined my task node this way : | | | | | | And it works well, datas in JBPM tables look OK. Nevertheless when I use the taskInstance

[jboss-user] [JBoss Seam] - Re: A conceptional question about Seam conversation

2007-12-04 Thread chawax
I think what you are talking about deals with pageflow, not just conversation. You can define a pageflow using JPDL language, with every navigation possible in your pageflow. Then you start a conversation with this page flow and Seam will check any navigation, which is what you need if I underst

[jboss-user] [JBoss Seam] - How to use a Seam component in swimlane assignment

2007-12-04 Thread chawax
Hi, My application uses a JBPM business process and I need to assign tasks on runtime. To do this I made a Seam component and I call it in the swimlane assignment expression. To be more precise, the task is defined as following : | | | | And the swimlane is defined as

[jboss-user] [JBoss Seam] - Re: Dynamic creation of JBPM processes

2007-12-03 Thread chawax
So that's perfect. Thanks a lot for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109847#4109847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109847 ___ jboss-us

[jboss-user] [JBoss Seam] - Re: Dynamic creation of JBPM processes

2007-12-03 Thread chawax
No need to answer, I just found how to do :) I did it this way : Contexts.getBusinessProcessContext().set("idDemandeAbsence", this.demandeAbsence.getId()); | Contexts.getBusinessProcessContext().set("codeMotifAbsence", this.ligneDemandeAbsence.getMotif()); | this.businessProcess.createProces

[jboss-user] [JBoss Seam] - Re: Dynamic creation of JBPM processes

2007-12-03 Thread chawax
Yes, that's what I try to do. But I don't really know the order Seam does it ... Where could I find this informations ? I hoped to see it in the source code for @CreateProcess annotation, but I couldn't find it ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[jboss-user] [JBoss Seam] - Dynamic creation of JBPM processes

2007-12-03 Thread chawax
Hi, I need to start a JBPM process, but in some cases I can't use the @CreateProcess annotation since the process I need to start depends on an runtime value. I also need to outject variables to the business process. But I can't find how to do this ... What I did : - I injected businessProces

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-30 Thread chawax
I could make it work adding propagation="none" to my link :) Something this way : Thanks a lot for your help ;) Ou plutôt merci beaucoup pour ton aide lol View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109236#4109236 Reply to the post : http://www.jboss.

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-30 Thread chawax
I use Seam 2.0.0.GA too View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109211#4109211 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109211 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-30 Thread chawax
It still doesn't work ... The link is the same, the navigation configuration is the same, the only difference is that I use different components. So it must come from my "navigation" component. I added @BypassInterceptors annotation to my component (this is what is done with "identity" component

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-29 Thread chawax
Sorry Please read "Same problem too when I remove all redirect tags in the pageflow definition. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108984#4108984 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108984 _

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-29 Thread chawax
I tried all what you said, and I still have the problem. In fact I have two links in my template : | | The one binded to action {identity.logout} works well. But not the one binded to the action I wrote, which still throws an "illegal navigation" error while I can't see differences betw

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-29 Thread chawax
Do you mean I should replace the by something like ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108793#4108793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108793 ___

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-28 Thread chawax
Thanks for your response. Well, there is no exception, but nothing happens when I click on the link (same behaviour as a null return from a backing bean) and I have this message in the server log : sourceId=null[severity=(WARN 1), summary=(Illegal navigation), detail=(Illegal navigation)] If

[jboss-user] [JBoss Seam] - Re: [seam 2.0.0 CR3] redirect tag and

2007-11-28 Thread chawax
It looks like we have a similar problem ... http://www.jboss.com/index.html?module=bb&op=viewtopic&t=120241 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108525#4108525 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-11-28 Thread chawax
Hi, I still have not found a solution to this problem and it still exists with newer versions of Seam. When running a pageflow conversation, only links modeled in the pageflow work, others throw an "illegal navigation" error . But when you use templates, there are links you should not have to a

[jboss-user] [JBoss Seam] - Re: DataModel annotation and empty EL operator

2007-11-26 Thread chawax
Same problem. I tried also using a java.util.List instead of an array, but the problem is still the same. It really looks like the problem is coming from @DataModel annotation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107745#4107745 Reply to the post :

[jboss-user] [JBoss Seam] - DataModel annotation and empty EL operator

2007-11-26 Thread chawax
In a Seam component, I have an array attribute with @DataModel annotation and an associated @Factory metod. @org.jboss.seam.annotations.datamodel.DataModel | protected myPackage.VOProcessus[] listeProcessus; @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW) | @

[jboss-user] [EJB 3.0] - Re: Problem retrieving dates from database

2007-11-19 Thread chawax
I found my problem. You just have to know that works by default with UTC time and not with the date variable timezone, which is not the case with java.util.SimpleDateFormat. So you have to explicitely set the timezone attribute for Something like that : | | View the original post

[jboss-user] [EJB 3.0] - Re: Problem retrieving dates from database

2007-11-19 Thread chawax
Thanks, it works. Anyway I thought this was what caused my formatting problems, but I still have them ... For example, I have a java.util.Date variable which contains "Thu Nov 15 00:00:00 CET 2007" value. If I format it with SimpleDateFormat : SimpleDateFormat sdf = new SimpleDateFormat("dd/M

[jboss-user] [EJB 3.0] - Problem retrieving dates from database

2007-11-16 Thread chawax
Hi, I have a EJB3 entity with a java.util.Date attribute defined as following : private java.util.Date dateDebut; | | @javax.persistence.Column(name = "DATE_DEBUT", nullable = false, insertable = true, updatable = true) | @javax.persistence.Temporal(javax.persistence.TemporalType.DATE)

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-15 Thread chawax
"[EMAIL PROTECTED]" wrote : It would be interesting to see if you can generalize this approach a bit to produce a validator that can work with two fields Well, that's what my validator does : it compares the value of the field with the value of an other field. The name of this other field i

[jboss-user] [EJB 3.0] - Re: How to define unique constraint on foreign keys ?

2007-10-15 Thread chawax
Thanks. But what I need is a unique constraint on multiple columns, including columns that are foreign keys. Anyway, I solved my problem by using the attribute "name" of the JoinColumn annotation instead of the property name. @javax.persistence.Table( | name = "UNITE_EMPLOYE",

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
Perfect ! Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094625#4094625 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094625 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
OK. It was working until now with components.xml in /WEB-INF, but I will follow your recommandation. I have a new problem with this validator since it is declared as a Seam component and no more in faces-config.xml. It looks like the ValidatorException is not caught ! 15:56:56,333 ERROR [Excep

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
Sorry ... Please read "I added" and not "I had" ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094576#4094576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094576 ___ jbo

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
I had an empty seam.properties file in WEB-INF/classes and it works. Thanks a lot for your help Pete. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094568#4094568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094568

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
Sorry, I posted while you were talking about seam.properties ;) For what I understood, you can use either seam.properties or components.xml, and I already have a components.xml file in WEB-INF. Do I have to declare the validator component in components.xml ? I thought you had not to do it if you

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
Well ... It looks like the problems comes from the place where I deploy the validator classes. My application is deployed as an EAR. If I put the validator classes in WEB-INF/classes, the validator components don't start when Seam starts. If I put them in a JAR on EAR root, it works. Same thing

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
Hmm ... No ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094535#4094535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094535 ___ jboss-user mailing list jboss-user@lists

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
Thanks Pete. The exception I get : 14:00:08,002 WARN [lifecycle] executePhase(RENDER_RESPONSE 6,[EMAIL PROTECTED]) threw exception | javax.faces.FacesException: Erreur dans lexpression: Object nommé validator.equals ne peut tre trouvé. | at com.sun.faces.application.ApplicationImpl.cre

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
I could have done like this, but I wanted to validate in my facelet, i.e. a taglib. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094500#4094500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094500 __

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-12 Thread chawax
I found my error : my validator class just had to implement javax.faces.component.StateHolder interface, then it works. Anyway, I think there is a bug with @Validator annotation. Or maybe I misunderstood what this annotation is used for. I though this annotation was used to prevent from declari

[jboss-user] [JBoss Seam] - Re: Seam + Trinidad + Richfaces: IllegalStateException

2007-10-11 Thread chawax
The seamdiscs example bundled with Seam sources is said to demonstrate Seam + Richfaces + Ajax4JSF = Trinidad. Did you have a look on it ? Maybe you will see configuration problems ? ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094180#4094180 Reply to t

[jboss-user] [EJB 3.0] - Re: How to define unique constraint on foreign keys ?

2007-10-11 Thread chawax
Anyone has an idea ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094174#4094174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094174 ___ jboss-user mailing list jboss-user

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-11 Thread chawax
One more problem I can't find how to workaround ... I try to use my validator within a facelet taglib. I would like it to be used this way (t4:compareFields tag) : | | | | My validator class has two properties : "compareTo" and "message", with getter

[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

2007-10-11 Thread chawax
I finally wrote my own findComponent method, which looks for recursively a component. The method is like this : public class JSFUtils { | | public static UIComponent findComponent(UIComponent component, String id) { | if (component.getId().equals(id)) { |

[jboss-user] [EJB 3.0] - How to define unique constraint on foreign keys ?

2007-10-10 Thread chawax
Hi, I need to define a unique constraint on foreign keys in a EJB3 entity. I saw the @Table annotation has a uniqueConstraints attribute to do this, but when I add relation columns to the unique constraint, it can't find them. For example, my entity has the following relations : @javax.persiste

[jboss-user] [JBoss Seam] - How to write a validator that compares two fields

2007-10-09 Thread chawax
Hi, I need to write a JSF validator which compares two fields. It could be used for example to compare "new password" and "confirm password" fields. To do this, I wrote the following class : @Name (value="validator.compareFields") | @org.jboss.seam.annotations.faces.Validator | | public

[jboss-user] [JBoss Seam] - Re: How to split JBPM configuration for Seam ?

2007-10-08 Thread chawax
The error stack trace is this one : Caused by: java.lang.IllegalStateException: Two components with the same name and precedence: org.jboss.seam.bpm.jbpm | at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:446) | at org.jboss.seam.init.Initialization.i

[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

2007-10-03 Thread chawax
I don't think this is what causes my problem. I tried with /home.xhtml or /home.seam, and I have the same problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091049#4091049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[jboss-user] [JBoss Seam] - How to split JBPM configuration for Seam ?

2007-10-03 Thread chawax
Hi, In my Seam application, I use JBPM both for processes and pageflows. My app is deployed as an EAR which includes : - A JAR with business classes (entities, services, ...) and business process definitions, let call it core.jar - And of course the WAR which includes page flows definitions. So

[jboss-user] [JBoss Seam] - Problems with links in pageflow pages based on templates

2007-10-03 Thread chawax
Hi, In a Seam application, I use JPDL to define pageflows. All pages of my application use facelet templates. Transitions modeled in my pageflow work well, but I have a problem with links defined with s:link component in my template (for example a link to home page in a header) : Seam throws a

[jboss-user] [JBoss jBPM] - Re: Page flow and facelet templates

2007-10-01 Thread chawax
I found a solution, but it am not fully happy with it. I added propagation="none" attribute to s:link. Something like this : The problem with this is that it keeps conversations opened, while I'd like them to be close. I tried with propagation="end". But I have to click the link twice to go

[jboss-user] [JBoss jBPM] - Page flow and facelet templates

2007-10-01 Thread chawax
Hi, In a Seam application, I use JPDL to define pageflows. All pages of my application use facelet templates. All transitions defined in my pageflow work well, but I have a problem with links defined in my template, for example in a header : they throw a "Illegal navigation" error. What I under

[jboss-user] [JBoss Seam] - Re: Complex EL Expressions in JPDL decisions aren't being ev

2007-09-28 Thread chawax
It looks like the problem is not limited to JPDL conditions ... The following EL expression is used in a task description : It used to work with Seam 2.0.0.BETA1. But with Seam 2.0.0.CR1, it throws this exception : Caused by javax.el.ELException with message: "Not a Valid Method Expression:

[jboss-user] [JBoss Seam] - Re: Complex EL Expressions in JPDL decisions aren't being ev

2007-09-28 Thread chawax
This has not been filed in JIRA, so I did it : http://jira.jboss.com/jira/browse/JBSEAM-1994 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089697#4089697 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089697 __

[jboss-user] [JBoss Seam] - Re: Complex EL Expressions in JPDL decisions aren't being ev

2007-09-28 Thread chawax
Sorry, it was obvious. Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089679#4089679 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089679 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: Business process injection doesn't work in a Seam compon

2007-09-28 Thread chawax
I solved my problem ! In fact my Seam component with action methods was both a "JBPM listener" and "JSF listener". It had methods with @StartTask end @EndTask annotations, that were called from a JSF page. I finally thought that it was not a good architecture choice, so I splitted my Seam compon

[jboss-user] [JBoss Seam] - Re: Business process injection doesn't work in a Seam compon

2007-09-28 Thread chawax
Forgot to tell that I use Seam 2.0.0 BETA 1 and JBPM 3.2.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089602#4089602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089602

[jboss-user] [JBoss Seam] - Business process injection doesn't work in a Seam component

2007-09-28 Thread chawax
Hi, I have a problem using JBpm with Seam. I modeled a process with nodes and binded actions to these nodes. But the injection of business process variables or processInstance in Seam component does not work when running these actions. I don't have the problem if the token did not go through a

[jboss-user] [JBoss Seam] - Re: Complex EL Expressions in JPDL decisions aren't being ev

2007-09-25 Thread chawax
Sorry ... Forgot to ask my question : is there a workaround for this, waiting for that bug (?) to be fixed ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088373#4088373 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [JBoss Seam] - Re: Complex EL Expressions in JPDL decisions aren't being ev

2007-09-25 Thread chawax
I have the same problem with the following expression on a decision node in a JPDL : | | | | It used to work with 2.0.0 BETA1, but it does not work with 2.0.0 CR1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088370#4088

[jboss-user] [JBoss jBPM] - Re: Lock problems after migrating to JBPM 3.2 and Seam 2.0

2007-09-20 Thread chawax
I solved the problem by migrating to 3.2.2 version. It would be a good idea to replace the download link to 3.2.1 version on the JBpm home page of labs.jboss.org ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086622#4086622 Reply to the post : http://www.

[jboss-user] [JBoss jBPM] - Re: Error introduced in 3.2.1

2007-09-20 Thread chawax
I had not seen that a new version was released a week ago. I upgraded to this version and there is no more problem ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086621#4086621 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss jBPM] - Re: Error introduced in 3.2.1

2007-09-20 Thread chawax
Hi, I have the same problem, I reported it here : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=119089 Did you find a solution ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086601#4086601 Reply to the post : http://www.jboss.com/index.html?modu

[jboss-user] [JBoss jBPM] - Re: Lock problems after migrating to JBPM 3.2 and Seam 2.0

2007-09-20 Thread chawax
What you say could have been a reason for my problem, but when I remove process.signal() it doesn't leave the node :( So it looks like signalling is still needed. Anyway, I couldn't understand how it could work : you can leave a node on many transitions, so you have to tell which one the process

[jboss-user] [JBoss jBPM] - Lock problems after migrating to JBPM 3.2 and Seam 2.0

2007-09-19 Thread chawax
Hello, I had an application running on JBoss 4.0.5 with Seam 1.2.1 and JBpm 3.1. It had a business process with nodes configured as following : | | | "demandeAbsenceAction" is a Seam component with processInstance injected. The method is as following : public

[jboss-user] [JBoss Seam] - Re: Trouble migrating to seam 2.0

2007-09-17 Thread chawax
Forgot to tell that I followed instructions from the Seam migration guide and it didn't fix my problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084917#4084917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=408491

  1   2   >