[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 : about 3'45

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4232169#4232169

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4232169
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4207632#4207632

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4207632
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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(Unknown Source)
  | at 
org.jbpm.gd.common.registry.XmlAdapterRegistry.getConfigurationElementByXmlNode(Unknown
 Source)
  | at org.jbpm.gd.common.xml.XmlAdapterFactory.createAdapter(Unknown 
Source)
  | at 
org.eclipse.wst.sse.core.internal.provisional.AbstractAdapterFactory.adaptNew(AbstractAdapterFactory.java:120)
  | at 
org.eclipse.wst.sse.core.internal.provisional.AbstractAdapterFactory.adapt(AbstractAdapterFactory.java:64)
  | at org.jbpm.gd.common.xml.XmlAdapterFactory.adapt(Unknown Source)
  | at org.jbpm.gd.common.xml.XmlAdapter.getAdapter(Unknown Source)
  | at org.jbpm.gd.common.xml.XmlAdapter.initialize(Unknown Source)
  | at org.jbpm.gd.jpdl.xml.ProcessDefinitionDomAdapter.initialize(Unknown 
Source)
  | at org.jbpm.gd.common.editor.Editor.getSemanticElement(Unknown Source)
  | at org.jbpm.gd.common.editor.Editor.initSourcePage(Unknown Source)
  | at org.jbpm.gd.common.editor.Editor.createPages(Unknown Source)
  | at org.jbpm.gd.jpdl.editor.JpdlEditor.createPages(Unknown Source)
  | at 
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:283)
  | at 
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
  | at 
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
  | at 
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
  | at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
  | at 
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
  | at 
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
  | at 
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
  | at 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
  | at 
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
  | at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
  | at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
  | at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
  | at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
  | at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
  | at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
  | at 
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
  | at 
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
  | at 
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
  | at 
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
  | at 
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
  | at 
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
  | at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
  | at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
  | at 
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
  | at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
  | at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
  | at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
  | at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
  | at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565)
  | at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
  | at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
  | at 
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:286)
  | at 
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
  | at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:194)
  | at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:175)
  | at 
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:268)
  | at 
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:244)
  | at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:316)
  | at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:613)
  | at 

[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=bbop=viewtopicp=4185128#4185128

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4185128
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 
persistence.xml (and so with one unique persistence unit). Anyway, I will try 
to manually list classes in persistence.xml. Will it work too if I have many 
persistence.xml files in the classpath ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4183394#4183394

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183394
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.java:74)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:64)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
  | at 
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
  | at 
org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
  | at 
org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:105)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:96)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:58)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: java.sql.SQLException: No suitable driver
  | at java.sql.DriverManager.getConnection(DriverManager.java:545)
  | at java.sql.DriverManager.getConnection(DriverManager.java:140)
  | at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:122)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:61)
  | ... 11 more

Upgraded from 5.0.3 to 5.1.6, same problem. Tried with HSQLDB or Oracle, no 
problem, so this is a problem with MySQL.

My connection is configured this way in hibernate.properties :

hibernate.connection.password=et4
  | hibernate.connection.username=et4
  | hibernate.connection.driver_class=com.mysql.jdbc.Driver
  | hibernate.dialect=org.hibernate.dialect.MySQLMyISAMDialect
  | hibernate.connection.url=jdbc:mysql/srv-r1-be01:3307/et4
  | 

And in my classpath I added the jar with all my entities and the jar containing 
the MySQL driver.

Any idea where it comes from ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4183499#4183499

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183499
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

?xml version=1.0 encoding=UTF-8?
  | persistence 
  | xmlns=http://java.sun.com/xml/ns/persistence;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
  | 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
  | version=1.0
  | persistence-unit name=t4Seam
  | providerorg.hibernate.ejb.HibernatePersistence/provider
  | jta-data-sourcejava:/jdbc/t4Seam/jta-data-source
  | jar-file../test-classes/lib/t4-core-utils-core.jar/jar-file
  | properties
  | property name=hibernate.hbm2ddl.auto value=update/
  | property name=hibernate.show_sql value=false/
  | /properties
  | /persistence-unit
  | /persistence

And t4-core-utils.jar contains the following persistence.xml file :

?xml version=1.0 encoding=UTF-8?
  | persistence 
  | xmlns=http://java.sun.com/xml/ns/persistence;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
  | 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
  | version=1.0
  | persistence-unit name=t4Seam
  | providerorg.hibernate.ejb.HibernatePersistence/provider
  | jta-data-sourcejava:/jdbc/t4Seam/jta-data-source
  | properties
  | property name=hibernate.hbm2ddl.auto value=update/
  | property name=hibernate.show_sql value=false/
  | /properties
  | /persistence-unit
  | /persistence

I have some doubts on Hibernate behaviour when it finds two persistence.xml 
files with the same persistence unit in the classpath. It looks like it takes 
into account only the first one it finds in classpath. If t4-core-commons is 
first in the classpath, it crashes because it can't find entities defined in 
t4-core-utils. If t4-core-utils is first in the classpath, it loads only 
entities defined in t4-core-utils (entities there don't depend on 
t4-core-commons ones) and not the ones defined in t4-core-commons. The only 
solution I found to make it work is to build a jar that bundles entities of 
both t4-core-commons and t4-core-utils, but as I said it's not very convenient. 
Do you have more details about the way Hibernate behaves if it finds a 
persistenc unit twice ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4183160#4183160

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4183170#4183170

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183170
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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-utils project. But I can't find how to do with 
t4-core-commons : it fails because it can't find entities defined in 
t4-core-utils project.

I added t4-core-utils project to the classpath but it can't find them. Also 
tried to add t4-core-utils project as first entry in the classpath list : 
entities from t4-core-utils are found, but not one of t4-core-commons.

I encountered the same kind of problems with unit tests and solved it thanks to 
the jar-file property in persistence.xml. Is there something equivalent with 
Hibernate Console ?

Thanks in advance,

Olivier

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4182952#4182952

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4182952
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 files my both projects 
because of jar-file property) ? Or is there a way to tell Hibernate console to 
use one specific persistence.xml file ?

Anyway I can make it work by adding to the classpath a jar that shades both 
t4-core-commons.jar and t4-core-utils.jar (I had to build this one to make 
hbm2ddl work). But since Hibernate console is to be used when writing HQL, I 
don't find very convenient to have to build jars before entities are not 
completely written.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4182960#4182960

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4182960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 me here ... 
Note I just want to authenticate for the moment, I don't want to use roles 
based authorization because it won't be enough for my needs. 

My app is an EAR with two jars :
- one with EJB3 session beans
- one with Seam components (EJB3, not pojos)
The problem appears when I call secured EJB3 session beans from a Seam 
component.

Here is what I did for the moment :

In my EJB3 session beans jar :

One example of a EJB3 session bean ...

META-INF/jboss.xml :

session
  | ejb-nameServiceBaseEmployeBean/ejb-name
  | security-domaint4Seam/security-domain
  | /session

META-INF/ejb-jar.xml :

session
  | description
  | ![CDATA[
  | 
  | ]]
  | /description
  | ejb-nameServiceBaseEmployeBean/ejb-name
  | remotet4.core.employe.facade.ServiceBaseEmployeRemote/remote
  | localt4.core.employe.facade.ServiceBaseEmployeLocal/local
  | ejb-classt4.core.employe.facade.ServiceBaseEmployeBean/ejb-class
  | session-typeStateless/session-type
  | transaction-typeContainer/transaction-type
  | /session

In the EAR :

META-INF/jboss-app.xml :

?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE jboss-app 
  | PUBLIC -//JBoss//DTD J2EE Application 1.4//EN
  | http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd;
  | jboss-app
  | module
  | serviceMETA-INF/t4Seam-login-service.xml/service
  | /module
  | /jboss-app

META-INF/t4Seam-login-service.xml :

?xml version=1.0 encoding=UTF-8?
  | server
  | mbean code=org.jboss.security.auth.login.DynamicLoginConfig
  |name=t4Seam:service=DynamicLoginConfig
  | attribute 
name=AuthConfigMETA-INF/t4Seam-login-config.xml/attribute
  | depends optional-attribute-name=LoginConfigService
  | jboss.security:service=XMLLoginConfig
  | /depends
  | depends optional-attribute-name=SecurityManagerService
  | jboss.security:service=JaasSecurityManager
  | /depends
  | /mbean
  | /server

META-INF/t4Seam-login-config.xml :

?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE policy PUBLIC
  |   -//JBoss//DTD JBOSS Security Config 3.0//EN
  |   http://www.jboss.org/j2ee/dtd/security_config.dtd;
  | policy
  | application-policy name=t4Seam
  | authentication
  | login-module 
code=org.jboss.seam.security.jaas.SeamLoginModule flag=required
  | /login-module
  | login-module code=org.jboss.security.ClientLoginModule 
flag=required
  | module-option 
name=restore-login-identitytrue/module-option
  | module-option name=multi-threadedfalse/module-option
  | /login-module
  | /authentication
  | /application-policy
  | /policy

In Seam components JAR :

META-INF/components.xml :

security:identity 
  | authenticate-method=#{authenticator.authenticate}
  | jaas-config-name=t4Seam /
  | 

My Seam authenticate method (there is no security on compteUtilisateurDao EJB) :

@javax.ejb.EJB 
  | private CompteUtilisateurDao compteUtilisateurDao;
  | 
  | public boolean authenticate()
  | throws java.lang.Exception
  | {
  | String username = Identity.instance().getUsername();
  | String password = Identity.instance().getPassword();
  | CompteUtilisateur utilisateur = 
compteUtilisateurDao.findByUsernameAndPassword(username, password);
  | return (utilisateur != null);
  | }

And the code calling the EJB3 session bean from a Seam component :

@javax.ejb.EJB protected ServiceBaseEmployeLocal serviceEmploye;
  | 
  | 
@javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW)
  | @org.jboss.seam.annotations.Factory(value = employes)
  | @org.jboss.seam.annotations.Observer(employeUpdated)
  | public void getEmployes() throws java.lang.Exception
  | {
  | this.employes = this.serviceEmploye.loadAllEmployes();
  | }

What I saw in traces is that both SeamLoginModule and ClientLoginModule are 
called and run OK. But it looks like the JAAS subject is not propagated to EJB 
layer, while it is (for what I understood) the goal of ClientLoginModule.

Anyone has an idea what I do wrong ? Maybe I forgot some config files or 
misunderstood something with JBoss Security ?

Thanks in advance,

Olivier

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4149149#4149149

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149149
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4149150#4149150

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149150
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4141574#4141574

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141574
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4141581#4141581

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141581
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 anyway 
for your help ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4141625#4141625

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141625
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 classpath)  :

?xml version=1.0 encoding=UTF-8?
  | persistence 
  | xmlns=http://java.sun.com/xml/ns/persistence;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
  | 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
  | version=1.0
  | persistence-unit name=t4Seam
  | providerorg.hibernate.ejb.HibernatePersistence/provider
  | jta-data-sourcejava:/jdbc/t4Seam/jta-data-source
  | properties
  | property name=hibernate.hbm2ddl.auto value=update/
  | property name=hibernate.show_sql value=false/
  | property name=hibernate.dialect 
value=org.hibernate.dialect.MySQLInnoDBDialect/
  | /properties
  | /persistence-unit
  | /persistence

At runtime, database connection is configured with a datasource, so I added a 
hibernate.properties file to configure database connection for Hibernate 
console.

hibernate.connection.datasource=java:/jdbc/t4Seam
  | hibernate.connection.driver_class=com.mysql.jdbc.Driver
  | hibernate.connection.url=jdbc:mysql://localhost:3306/t4Seam
  | hibernate.connection.username=T4
  | hibernate.connection.password=T4
  | hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

I then created my Hibernate Console configuration with JPA type, selected my 
hibernate.properties file, configured the persistence unit as t4Seam and 
added MySQL drivers in the classpath.

For what I understood, this is all I need to do since it looks for required 
files (EJB3 entities, persistence.xml) in the classpath. But when I jump to the 
Hibernate configuration view and double click on my configuration, I have the 
following stack trace :

Can't find mapping file
  | java.io.FileNotFoundException: Mapping for [EMAIL PROTECTED] not found.
  | 
  | java.io.FileNotFoundException: Mapping for [EMAIL PROTECTED] not found.
  | at 
org.hibernate.eclipse.console.actions.OpenMappingAction.run(OpenMappingAction.java:142)
  | at 
org.hibernate.eclipse.console.actions.OpenMappingAction.run(OpenMappingAction.java:92)
  | at 
org.hibernate.eclipse.console.views.KnownConfigurationsView$3.run(KnownConfigurationsView.java:165)
  | at 
org.hibernate.eclipse.console.views.KnownConfigurationsView$1.doubleClick(KnownConfigurationsView.java:100)
  | at 
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799)
  | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
  | at org.eclipse.core.runtime.Platform.run(Platform.java:857)
  | at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
  | at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
  | at 
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797)
  | at 
org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1387)
  | at 
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173)
  | at 
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237)
  | at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
  | at 
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
  | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
  | at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
  | at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
  | at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
  | at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
  | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  | at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
  | at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
  | at 

[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 install and it was OK. I 
will report it if I reproduce the problem, but I think it was my fault, not a 
problem with JBoss Tools ;)

Anyway I have another problem when opening Session Factory and Database nodes 
in Hibernate Configurations view. I think it deals with the way I configured 
the datasource since it can't find it.

The stack trace is following :

org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:99)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:96)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:58)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: javax.naming.NoInitialContextException: Need to specify class 
name in environment or system property, or as an applet parameter, or in an 
application resource file:  java.naming.factory.initial
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
  | at javax.naming.InitialContext.lookup(InitialContext.java:351)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | ... 11 more

My persistence.xml files refers to a JNDI datasource, so there might be 
something special to do in hibernate.properties to make it work. Is there an 
example for this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4141391#4141391

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141391
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.url=jdbc://mysql/localhost/t4Seam
  | 
  | 
hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
  | hibernate.datasource=
  | hibernate.transaction.manager_lookup_class=

Then the Session Factory node is OK. But the Database one is still not :(
I have a message about not suitable driver. Don't understand why since this is 
the one I use on the same database on production mode.

The stack trace :
org.hibernate.exception.JDBCConnectionException: Getting database metadata
  | 
  | org.hibernate.exception.JDBCConnectionException: Getting database metadata
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:64)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
  | at 
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
  | at 
org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
  | at 
org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:105)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:96)
  | at 
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:58)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: java.sql.SQLException: No suitable driver
  | at java.sql.DriverManager.getConnection(DriverManager.java:545)
  | at java.sql.DriverManager.getConnection(DriverManager.java:140)
  | at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:122)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:61)
  | ... 11 more

Do you have any idea why it says my driver is not suitable ?

P.S. : about my initial problem (can't find mapping file), it occurs when you 
double click on nodes. But when you expand them there is no problem ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4141428#4141428

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141428
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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) :

session
  | description
  | ![CDATA[
  | 
  | ]]
  | /description
  | ejb-nameServiceEmployeBean/ejb-name
  | remotemyCompany.ServiceEmployeRemote/remote
  | ejb-classmyCompany.ServiceEmployeBean/ejb-class
  | session-typeStateless/session-type
  | transaction-typeContainer/transaction-type
  | /session

My JAR contains Seam pojo classes that need to retrieve this EJB. I could do it 
this way :

protected ServiceAbsenceRemote getServiceAbsence() throws Exception
  | {
  | if (this.serviceAbsence == null) {
  | InitialContext initialContext = new InitialContext();
  | this.serviceAbsence = (ServiceAbsenceRemote) 
  | 
initialContext.lookup(t4-ihm-self-ear-1.0-SNAPSHOT/ServiceAbsenceBean/remote);
  | }
  | return this.serviceAbsence;
  | }

As you can see, the problem is that I need to prefix the EJB name with the EAR 
name. If I don't do that I have a ServiceAbsenceBean not bound message. So it 
looks like this JAR can be used only in one EAR and I ask myself how it could 
work in another EAR ?

I am sure I do something wrong, so please tell me ;)

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4135863#4135863

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135863
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 generated from AndroMDA so it's not my own choice ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4135871#4135871

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4135936#4135936

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135936
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4135947#4135947

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135947
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 with JBoss 5 ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130115#4130115

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | *** CONTEXTS MISSING DEPENDENCIES: Name - Dependency{Required State:Actual 
State}
  | jboss.jdbc:datasource=jdbc/t4Seam,service=metadata
  |  - jboss.jdbc:service=metadata{Start:** NOT FOUND **}
  |  - jboss.jdbc:service=metadata{Create:** NOT FOUND **}
  | *** CONTEXTS IN ERROR: Name - Error
  | jboss.jdbc:service=metadata - ** NOT FOUND **
  | 
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
  | at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:149)
  | at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
  | at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
  | at 
org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
  | at 
org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
  | at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
  | at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
  | at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
  | at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
  | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
  | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
  | at 
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
  | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
  | at org.testng.TestRunner.runWorkers(TestRunner.java:689)
  | at org.testng.TestRunner.privateRun(TestRunner.java:566)
  | at org.testng.TestRunner.run(TestRunner.java:466)
  | at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
  | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
  | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
  | at org.testng.SuiteRunner.run(SuiteRunner.java:191)
  | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
  | at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
  | at org.testng.TestNG.run(TestNG.java:701)
  | at 
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
  | at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
  | at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
  | at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)

It looks like it can't find my datasource file. I put yet the following ds.xml 
file in deploy directory.

?xml version=1.0 encoding=UTF-8?
  | !-- JBoss Server DataSource --
  | datasources
  | local-tx-datasource
  | jndi-namejdbc/t4Seam/jndi-name
  | connection-urljdbc:mysql://localhost:3306/test/connection-url
  | driver-classcom.mysql.jdbc.Driver/driver-class
  | user-nameT4/user-name
  | passwordT4/password
  | metadata
  | type-mappingmySQL/type-mapping
  | /metadata
  | /local-tx-datasource
  | /datasources

I have absolutely no idea what happens. Anyone could help me ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127006#4127006

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127006
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4127007#4127007

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127007
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 'java:jdbc/t4Seam'
  | DEBUG [jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Started 
jboss.jca:service=DataSourceBinding,name=jdbc/t4Seam
  | DEBUG [org.jboss.system.ServiceCreator] About to create bean: 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam with code: 
org.jboss.ejb.plugins.cmp.jdbc.metadata.DataSourceMetaData
  | DEBUG [org.jboss.system.ServiceCreator] Created mbean: 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam
  | DEBUG [org.jboss.system.ServiceConfigurator] MetadataLibrary set to 
jboss.jdbc:service=metadata in 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam
  | DEBUG [org.jboss.system.ServiceConfigurator] TypeMapping set to mySQL in 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam
  | DEBUG [org.jboss.system.ServiceController] Creating service 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam
  | DEBUG [org.jboss.system.ServiceController] Waiting in create of 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam on 
jboss.jdbc:service=metadata
  | DEBUG [org.jboss.system.ServiceController] starting service 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam
  | DEBUG [org.jboss.system.ServiceController] Waiting in start of 
jboss.jdbc:service=metadata,datasource=jdbc/t4Seam on 
  | DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] Fully Deployed 
vfsfile:/C:/Documents/t4Seam/core/target/test-classes/deploy/t4Seam-ds.xml

So what could cause this error ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127047#4127047

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127047
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4127076#4127076

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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/index.html?module=bbop=viewtopicp=4122072#4122072

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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() {
  | @Override
  | protected void testComponents() throws Exception {

while this one doesn't work :

@org.testng.annotations.Test (
  | groups=groupe2,
  | dependsOnGroups=groupe1)
  | public void testCreerUnitesOrganisationFromCodeUnique() throws Exception 
  | {
  | new ComponentTest() {
  | @Override
  | protected void testComponents() throws Exception {

The stack trace is the following :

begin(fr.myCompanycore.organisation.test.ServiceOrganisationExterneTest)  Time 
elapsed: 0.062 sec   FAILURE!
  | java.lang.IllegalStateException: Attempted to invoke a Seam component 
outside the an initialized application
  | at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
  | at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:169)
  | at 
org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
  | at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:920)
  | at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
  | at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:322)
  | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:156)
  | at org.testng.internal.Invoker.invokeMethod(Invoker.java:365)
  | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
  | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
  | at org.testng.TestRunner.privateRun(TestRunner.java:693)
  | at org.testng.TestRunner.run(TestRunner.java:574)
  | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
  | at org.testng.SuiteRunner.run(SuiteRunner.java:145)
  | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
  | at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
  | at 
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:69)
  | at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:78)
  | at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
  | at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
  | 

If I remove the dependsOnGroups attribute, the tests are successful.

Is it a known problem ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121306#4121306

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121306
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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() {
  | @Override
  | protected void testComponents() throws Exception {
  | CoreServiceEmployeLocal serviceEmploye = 
  | (CoreServiceEmployeLocal) getInstance(coreServiceEmploye);
  | 
  | Employe employe = new Employe();
  | employe.setMatricule(01);
  | employe.setNom(nom);
  | employe.setPrenom(prenom);
  | employe = serviceEmploye.saveEmploye(employe);
  | 
  | assert employe.getId() != null;
  | }
  | }.run();
  | }

It looks more simple to me, but are there things that will not work testing 
this way ? What is the interest of using invokeMethod() then ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120793#4120793

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4120793
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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
  | {
  | Employe employe = new Employe();
  | employe.setMatricule(01);
  | employe.setNom(nom);
  | employe.setPrenom(prenom);
  | employe = (Employe) 
invokeMethod(#{coreServiceEmploye.saveEmploye(employe)});
  | 
  | assert employe.getId() != null;
  | }
  | }.run();
  | }

But the employe parameter is not passed to coreServiceEmploye.saveEmploye 
method (it has a null value). I found only examples with setValue() to pass 
datas to components, but I could not find anything about how to pass parameters 
in a method on forums or anywhere. How should I do this ?

Thanks in advance

Olivier

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120354#4120354

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4120354
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

MethodExpressionEmploye me = Expressions.instance().createMethodExpression(
  | #{coreServiceEmploye.saveEmploye(employe)}, 
  | Employe.class, 
  | new Class[]{Employe.class});
  | employe = me.invoke(employe);

But still the same problem, employe parameter is null in 
coreServiceEmploye.saveEmploye method. I really can't understand why. Anyone 
has an idea ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120436#4120436

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4120436
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4117038#4117038

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117038
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.com/index.html?module=bbop=viewtopicp=4111250#4111250

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111250
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 serviceProcessus;

My Seam component is itself an EJB (@javax.ejb.Stateful annotated).

And my serviceProcessus EJB is declared in ejb-jar.xml, something like this :

session
  | ejb-nameServiceProcessusBean/ejb-name
  | remotemyPackage.ServiceProcessusRemote/remote
  | ejb-classmyPackageServiceProcessusBean/ejb-class
  | session-typeStateless/session-type
  | transaction-typeContainer/transaction-type
  | /session

Hope it will help you.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111255#4111255

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=430#430

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=430
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 bundle, which is a Seam EL enhancement for what I understood. I had a 
look on the way this has been done for s:hasRole and s:hasPermission built-in 
Seam EL functions, but it looks like this has been hard-coded in 
org.jboss.seam.el.SeamFunctionMapper class. Do you know an easy way to add my 
own EL functions to this Seam function mapper, in a configuration file for 
example ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111236#4111236

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111236
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 10 00:00:00 CET 2007

How could I add a format string in the EL expression so that the EL evaluation 
gives this result :
Du 03/12/2007 au 10/12/2007

Is there a way to use a pattern described by another resource ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110841#4110841

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

h:outputText value=#{messages['el.demandeAbsence.resume']} /

With my resource file like this :

el.demandeAbsence.resume=Du #{da.lignes[0].dateDebut} au #{da.lignes[0].dateFin}

So I don't see how I could use s:convertDateTime there.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110856#4110856

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110856
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

task-node name=validation
  | task swimlane=valideurs/task
  | transition to=acceptation name=ok/transition
  | transition to=refus name=nok/transition
  | /task-node

And the swimlane is defined as following :

swimlane name=valideurs
  | assignment 
expression=#{assignmentHandler.assignByRole('USAGE')}/assignment
  | /swimlane

The assignByRole method of my assignmentHandler component returns String[] (not 
sure it is correct, but I could not find any example).

But when I create a process instance, I have the following error :

11:55:04,241 ERROR [STDERR] Caused by: 
org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't resolve 
assignment expression '#{assignmentHandler.assignByRole('USAGE')}'
  | 11:55:04,241 ERROR [STDERR] at 
org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:97)
  | 11:55:04,241 ERROR [STDERR] at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$2.process(SeamUserCodeInterceptor.java:102)
  | 11:55:04,241 ERROR [STDERR] at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
  | 11:55:04,241 ERROR [STDERR] at 
org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAssignment(SeamUserCodeInterceptor.java:96)
  | 11:55:04,241 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:226)
  | 11:55:04,241 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:201)
  | 11:55:04,241 ERROR [STDERR] ... 171 more
  | 11:55:04,241 ERROR [STDERR] Caused by: 
org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't interpret 
first term in expression '#{assignmentHandler.assignByRole('USAGE')}'
  | 11:55:04,241 ERROR [STDERR] at 
org.jbpm.identity.assignment.ExpressionAssignmentHandler.resolveFirstTerm(ExpressionAssignmentHandler.java:155)
  | 11:55:04,241 ERROR [STDERR] at 
org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:75)
  | 11:55:04,241 ERROR [STDERR] ... 176 more

So it looks like you can not use EL expressions in swimlane assignment ... 
Anyone has an idea how I should do this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110136#4110136

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110136
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 understood well. You 
should have a look on the numberguess example bundled with Seam distribution.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110179#4110179

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110179
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

task-node name=validation
  | task
  | assignment 
pooled-actors=#{assignmentHandler.assignByRole('USAGE')}/assignment
  | /task
  | transition to=acceptation name=ok/transition
  | transition to=refus name=nok/transition
  | /task-node

And it works well, datas in JBPM tables look OK.

Nevertheless when I use the taskInstanceList built-in component in my facelet, 
it returns an empty list. Any idea why ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110199#4110199

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110199
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4110203#4110203

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110203
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 businessProcess component in my class :

@org.jboss.seam.annotations.In(create = true)
  | protected org.jboss.seam.bpm.BusinessProcess businessProcess;

- I used @Out annotation to outject the variables in my business process :

@org.jboss.seam.annotations.Out(required = false, scope = 
org.jboss.seam.ScopeType.BUSINESS_PROCESS)
  | protected java.lang.Long idDemandeAbsence;
  | 
  | @org.jboss.seam.annotations.Out(required = false, scope = 
org.jboss.seam.ScopeType.BUSINESS_PROCESS)
  | protected java.lang.String codeMotifAbsence;

- Then I set these variables and call BusinessProcess.createProcess method :

protected void handleValider() throws java.lang.Exception {
  | this.idDemandeAbsence = this.demandeAbsence.getId();
  | this.codeMotifAbsence = this.ligneDemandeAbsence.getMotif();
  | this.businessProcess.createProcess(validationDemandeAbsence);
  | }

It looks like the business process starts, but the outjection of variables in 
the business process does not seem to work ... What I understand is that the 
outjection is made by Seam after the handleValider() method is called. But the 
business process starts on the createProcess() method call, so it looks obvious 
that variables have not been injected yet ... 

Any idea how I should do this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109748#4109748

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109748
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4109829#4109829

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109829
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.createProcess(validationDemandeAbsence);
  | 

According to you, is it the state-of-the-art way to do it ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109838#4109838

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109838
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4109847#4109847

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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, but it changes 
nothing. Which annotations did you put on your component class and on its 
methods ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109172#4109172

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109172
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

s:link action=#{navigationT4.retourAccueil} value=Accueil 
propagation=none /

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=bbop=viewtopicp=4109236#4109236

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109236

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4109211#4109211

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109211
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 s:link view=/home.xhtml / by something 
like s:link action=#{myComponent.action} / ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108793#4108793

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108793
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

s:link action=#{navigation.retourAccueil} value=Accueil propagation=end 
/
  | 
  | s:link action=#{identity.logout} value=Deconnexion 
rendered=#{identity.loggedIn} propagation=end /

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 between them ! The problem is the same if I use 
view=/home.xhtml attribute instead of action one. Same problem too when I 
remove all  tags in the pageflow definition.

My navigation Seam component is like this :

@Name(navigation)
  | @Scope(ScopeType.SESSION)
  | public class NavigationAction {
  | 
  | public void retourAccueil() {
  | }
  | }

My pages.xml file in /WEB-INF :

page view-id=*
  | navigation from-action=#{navigation.retourAccueil}
  | end-conversation /
  | redirect view-id=/home.xhtml /
  | /navigation
  | navigation from-action=#{identity.logout}
  | end-conversation /
  | redirect view-id=/home.xhtml/redirect
  | /navigation
  | /page

Do you see something different compared with what you did ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108983#4108983

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108983
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4108984#4108984

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108984
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopict=120241

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108525#4108525

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108525
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 add to your 
pageflow ! 

So is there a way to disable navigation check on some links when running a 
pageflow conversation ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108521#4108521

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108521
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 you say it should work, it means there is something I do wrong.

My pageflow is as following :

?xml version=1.0 encoding=UTF-8?
  | 
  | pageflow-definition name=processusCrud
  | start-state name=start
  | transition name=default to=infosGeneralesProcessus /
  | /start-state
  | page name=infosGeneralesProcessus 
view-id=/processus/processusCrud/infosGeneralesProcessus.xhtml
  | redirect/
  | transition to=processus paramétrable ? 
name=suivant/transition
  | transition to=fin name=annuler
  | action expression=#{processusCrud.annuler} /
  | /transition
  | /page
  | decision name=processus paramétrable ? 
expression=#{processusCrud.modeleProcessusSelectionne.parametres != null}
  | transition to=parametrageProcessus name=true
  | action 
expression=#{processusCrud.refreshParametrage} /
  | /transition
  | transition name=false 
to=recapitulatifProcessus/transition
  | /decision
  | page name=parametrageProcessus 
view-id=/processus/processusCrud/parametrageProcessus.xhtml
  | redirect/
  | transition to=recapitulatifProcessus 
name=suivant/transition
  | transition name=precedent 
to=infosGeneralesProcessus/transition
  | transition to=fin name=annuler
  | action expression=#{processusCrud.annuler} /
  | /transition
  | /page
  | page name=recapitulatifProcessus 
view-id=/processus/processusCrud/recapitulatifProcessus.xhtml
  | redirect/
  | transition to=fin name=valider
  | action expression=#{processusCrud.valider} /
  | /transition
  | transition name=precedent 
to=parametrageProcessus/transition
  | transition to=fin name=annuler
  | action expression=#{processusCrud.annuler} /
  | /transition
  | /page
  | page name=fin view-id=/processus/listeProcessus.xhtml
  | redirect/
  | /page
  | /pageflow-definition

The pageflow is started with a @Begin annotaion:

@org.jboss.seam.annotations.Begin(pageflow = processusCrud, join = true)
  | public java.lang.String select(mypackage.processus.VOProcessus processus)
  | {}

And my select method is called this way ...

s:button value=#{messages['label.nouveau']} 
action=#{processusCrud.select(null)} /

... or this way :

h:commandButton id=cmdDetail value=#{messages['label.detail']} 
action=#{processusCrud.select(processus)} /
  | 

The link in my template is :

s:link view=/home.xhtml value=Accueil /

Is there anything more to do ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108560#4108560

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108560

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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)
  | @org.jboss.seam.annotations.Factory(value = listeProcessus)
  | @org.jboss.seam.annotations.Observer(listeProcessusUpdated)
  | public void getListeProcessus() {
  | ...
  | }

I want to test if this array is empty in a rendered attribute, so I wrote the 
following EL expression :

rendered=#{empty listeProcessus}

But it looks like empty operator always returns false. I don't have this 
problem when I remove the @DataModel annotation. 

Is this something expected or is there something I did wrong ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107728#4107728

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107728
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4107745#4107745

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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/MM/);
  | System.out.println(sdf.format(membreUniteOrganisation.getDateDebut()));

It prints 15/11/2007 which is right.

But if I format it with f:convertDateTime with datePattern as dd/MM/ :

h:outputText value=#{membre.dateDebut}
  | f:convertDateTime pattern=#{messages['datePattern']} /
  | /h:outputText

It prints 14 nov. 2007 which is wrong of course !

Any idea why ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105927#4105927

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105927
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 f:convertDateTime 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 f:convertDateTime

Something like that :

h:outputText value=#{membre.dateDebut}
  | f:convertDateTime pattern=#{messages['datePattern']} 
timeZone=GMT+1 /
  | /h:outputText

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105948#4105948

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105948
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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)
  | public java.util.Date getDateDebut()
  | {
  | return dateDebut;
  | }
  | 
  | public void setDateDebut(java.util.Date value)
  | {
  | this.dateDebut = value;
  | }

But when I run SQL queries, the dateDebut attribute contains java.sql.Date data 
instead of java.util.Date ! So then I encounter problems when formatting this 
date ... What should I do so that SQL dates are converted to java.util.Date in 
my EJB3 entities ?

Thanks in advance,

P.S. : I run on JBoss 4.2.0.GA with MySQL database (same problem with HSQLDB 
anyway).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105392#4105392

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105392
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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,
  | uniqueConstraints = {
  | @javax.persistence.UniqueConstraint(columnNames 
= {EMPLOYE_FK, NOEUD_ORGANISATION_FK})})
  | 

What is strange is that in the Hibernate documentation, it is said :

anonymous wrote : The @Table element also contains a schema and a catalog 
attributes, if they need to be defined. You can also define unique constraints 
to the table using the @UniqueConstraint annotation in conjunction with @Table 
(for a unique constraint bound to a single column, refer to @Column).
  | 
  | @Table(name=tbl_sky,
  | uniqueConstraints = [EMAIL PROTECTED](columnNames={month, day})}
  | )
  | 
  | A unique constraint is applied to the tuple month, day. Note that the 
columnNames array refers to the logical column names.

Am I wrong when I think that logical column name is the property name of the 
entity bean ? Or maybe there's a difference between Hibernate and EJB3 entities 
about this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095104#4095104

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095104
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 is given by the 
attribute compareTo. Maybe the name of this attribute is not well choosed ?

I made similar validators for greaterThan, lessThan, greaterThanOrEquals, 
lessThanOrEquals, but I have not completely finished them. 

I also think about supporting EL expressions in compareTo attribute, so that 
you can compare the value of the field with an attribute of a Seam component. 
But I don't really know how to do this ... Is there an example for this 
somewhere ?

When all will be finished, no problem for me to give the source code to the 
community ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095106#4095106

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095106
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 declaring the validator in faces-config.xml. And it works 
well indeed when you use f:validator in a facelet. But if you refer to the 
validator in a *.taglib.xml file, it can't find the validator. What do you 
think about this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094419#4094419

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094419
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 with 
converters. Is there a reason for this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094545#4094545

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094545
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4094535#4094535

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094535
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4094568#4094568

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094568
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 
have a @Name annotation in the class, but maybe I am wrong ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094552#4094552

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094552
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.createValidator(ApplicationImpl.java:900)
  | at 
org.jboss.seam.jsf.SeamApplication.createValidator(SeamApplication.java:140)
  | at 
com.sun.facelets.tag.jsf.ValidateHandler.createValidator(ValidateHandler.java:116)
  | at 
com.sun.facelets.tag.jsf.ValidateHandler.apply(ValidateHandler.java:90)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.ui.DecorateHandler.apply(DecorateHandler.java:122)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:312)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:282)
  | at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
  | at 
com.sun.facelets.tag.ui.DecorateHandler.apply(DecorateHandler.java:105)
  | at 
org.jboss.seam.ui.handler.DecorateHandler.applyNextHandler(DecorateHandler.java:32)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
  | at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
  | at 
com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:312)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:282)
  | at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
  | at 

[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=bbop=viewtopicp=4094500#4094500

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094500
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4094625#4094625

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094625
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 [ExceptionFilter] handling uncaught exception
  | javax.servlet.ServletException
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.reflect.InvocationTargetException
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
javassist.util.proxy.RuntimeSupport$DefaultMethodHandler.invoke(RuntimeSupport.java:37)
  | at 
fr.horoquartz.t4.gui.validators.EqualsValidator_$$_javassist_5.validate(EqualsValidator_$$_javassist_5.java)
  | at javax.faces.component.UIInput.validateValue(UIInput.java:1013)
  | at javax.faces.component.UIInput.validate(UIInput.java:867)
  | at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
  | at javax.faces.component.UIInput.processValidators(UIInput.java:666)
  | 

[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=bbop=viewtopicp=4094576#4094576

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094576
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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)) {
  | return component;
  | }
  | else {
  | ListUIComponent children = component.getChildren();
  | for (UIComponent myComponent : children) {
  | UIComponent componentFound = 
findComponent(myComponent, id);
  | if (componentFound != null) return 
componentFound;
  | }
  | return null;
  | }
  | }
  | 
  | }

Then my validator class is like this :
public void validate(FacesContext context, UIComponent cmp, Object value)
  | throws ValidatorException {
  | String compareTo = (String) cmp.getAttributes().get(compareTo);
  | String messageKey = (String) cmp.getAttributes().get(message);
  | UIInput input = (UIInput) JSFUtils.findComponent(context.getViewRoot(), 
compareTo);
  | String otherValue = (String) input.getValue();
  | boolean error = false;
  | if (value != null) {
  | if (! value.equals(otherValue)) {
  | error = true;
  | }
  | }
  | else {
  | if (otherValue != null) {
  | error = true;
  | }
  | }
  | if (error) {
  | String msg = Messages.instance().get(messageKey);
  | throw new ValidatorException(new FacesMessage(msg));
  | }
  | }

Hope it will help people who need this.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094007#4094007

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094007
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/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) :

s:decorate template=/decorateField.xhtml for=confirmerMotDePasse
  | h:inputSecret id=confirmerMotDePasse 
value=#{employeCrud.confirmerMotDePasse} required=#{employe.id == null}
  | t4:compareFields compareTo=nouveauMotDePasse 
message=error.motDePasse.differents /
  | /h:inputSecret
  | /s:decorate

My validator class has two properties : compareTo and message, with getters 
and setters. But these properties are always null when the validate() method is 
called.

I added a t4.taglib.xml file in /WEB-INF :
?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE facelet-taglib PUBLIC
  |   -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN
  |   http://java.sun.com/dtd/facelet-taglib_1_0.dtd;
  | facelet-taglib xmlns=http://java.sun.com/JSF/Facelet;
  | namespacehttp://myCompany.fr/t4/taglib/namespace
  | tag
  | tag-namecompareFields/tag-name
  | validator
  | validator-idvalidator.compareFields/validator-id
  | /validator
  | /tag
  | /facelet-taglib

Note I had to remove @Name and @Validator annotations in my validator class, 
because it could not find the validator-id (is it a bug ?). So I added these 
lines in faces-config.xml file :

validator
  | validator-idvalidator.compareFields/validator-id
  | 
validator-classfr.myCompany.t4.gui.validators.CompareFieldsValidator/validator-class
  | /validator

Is there something special to do in the validator class so that facelets can 
use my validator's setters ?

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094173#4094173

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4094180#4094180

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4094174#4094174

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.persistence.ManyToOne(optional = false)
  | @javax.persistence.JoinColumn(name = NOEUD_ORGANISATION_FK)
  | public xxx.core.utilisateur.NoeudOrganisation getNoeudOrganisation()
  | {
  | return this.noeudOrganisation;
  | }
  | 
  | @javax.persistence.ManyToOne(optional = false)
  | @javax.persistence.JoinColumn(name = EMPLOYE_FK)
  | public xxx.core.utilisateur.Employe getEmploye()
  | {
  | return this.employe;
  | }

To define a unique constraint on these columns, I added the following 
annotation to the class :

@javax.persistence.Entity
  | @javax.persistence.Table(
  | name = UNITE_EMPLOYE,
  | uniqueConstraints = [EMAIL PROTECTED](columnNames = {employe, 
noeudOrganisation})})
  | public class UniteEmploye {
  | }
  | 

But I have the following error :
ERROR 10-10 11:48:23,656 (KernelErrors.java:validate:78)  -Failed deployment: 
persistence.units:jar=classes.jar,unitName=t4Seam
  | org.hibernate.MappingException: Unable to find column with logical name: 
UNITE_EMPLOYE.employe
  | at org.hibernate.cfg.Mappings.getPhysicalColumnName(Mappings.java:493)
  | at 
org.hibernate.cfg.AnnotationConfiguration.buildUniqueKeyFromColumnNames(AnnotationConfiguration.java:488)
  | at 
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:310)
  | at 
org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1015)
  | at 
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:751)
  | at 
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
  | at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
  | 

How should I do this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093401#4093401

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093401
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 class CompareFieldsValidator implements Validator {
  | 
  | private @In FacesMessages facesMessages;
  | 
  | public void validate(FacesContext context, UIComponent cmp, Object 
value) 
  | throws ValidatorException 
  | {
  | String compareTo = (String) 
cmp.getAttributes().get(compareTo);
  | UIInput input = (UIInput) cmp.findComponent(compareTo); 
  | String otherValue = (String) input.getSubmittedValue();
  | boolean error = false;
  | if (value != null) {
  | if (! value.equals(otherValue)) error = true;
  | }
  | else {
  | if (otherValue != null) error = true;
  | }
  | if (error) {
  | 
facesMessages.addToControlFromResourceBundle(cmp.getId(), 
error.fieldsNotEqual, null);
  | throw new ValidatorException(new FacesMessage());
  | }
  | }
  | }

Then in my JSF, I use it this way :

h:outputLabel value=New password : for=newPassword /
  | h:inputSecret id=newPassword value=#{userCrud.newPassword}
  | f:validator validatorId=validator.compareFields /
  | f:attribute name=compareTo value=confirmPassword /
  | /h:inputSecret
  | 
  | h:outputLabel value=Confirm password : for=confirmPassword /
  | h:inputSecret id=confirmPassword value=#{userCrud.confirmPassword}  /

It works well except when my inputSecret fields are surrounded by s:decorate.

s:decorate template=/decorateField.xhtml
  | h:inputSecret id=newPassword value=#{userCrud.newPassword}
  | f:validator validatorId=validator.compareFields /
  | f:attribute name=compareTo value=confirmPassword /
  | /h:inputSecret
  | /s:decorate

In this case, the UIComponent.findComponent() can't find the field 
corresponding to compareTo attribute. For what I understood, it works only if 
the two fields to compare have the same parent in JSF components tree (while I 
thought findComponent was searching recursively the component). Anyone knows 
how I could make it work ?

Note also that I'm not sure the way I used facesMessages object, especially the 
way I throw ValidatorException. I couldn't find an example with message in a 
resource bundle. So please tell me if there's a better way to write it.

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093072#4093072

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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.installComponentFromXmlElement(Initialization.java:356)
  | at 
org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:256)
  | at 
org.jboss.seam.init.Initialization.initComponentsFromXmlDocuments(Initialization.java:114)
  | ... 139 more

In fact what I need is that Seam works this way :
- If the bpm component has not been instantiated yet, instantiate it
- If the bpm component has already been instantiated, just add process 
definitions or page flow definitions to it.
Don't know if it's something possible with Seam ...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092417#4092417

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092417
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 understood from this 
message is that you can't go to a transition that is not modeled in JPDL. So I 
guess I should model it in my JPDL. But when you model your page flow with 
JPDL, you can't guess which links will exist in the template ! And just imagine 
you add a new link in the template, does it mean you have to change all your 
pageflows ? So is there a way to prevent Seam (or JBPM engine ; I don't know 
exactly if it's a Seam or JBPM problem) from checking navigation for some links 
? 

A piece of my JPDL pageflow definition :

page name=confirmationDemandeur view-id=/confirmationDemandeur.xhtml
  | redirect/
  | transition name=suivant to=choixMotif/transition
  | transition name=changerDemandeur 
to=choixDemandeur/transition
  | /page

The corresponding JSF page :

html xmlns:s=http://jboss.com/products/seam/taglib;
  |   xmlns:ui=http://java.sun.com/jsf/facelets;
  |   xmlns:f=http://java.sun.com/jsf/core;
  |   xmlns:h=http://java.sun.com/jsf/html;
  |   xmlns:rich=http://richfaces.org/rich;
  |   xmlns:a4j=http://richfaces.org/a4j;
  | 
  | ui:composition template=templates/template.xhtml
  | ui:define  name=body
  | h:messages globalOnly=true styleClass=message/
  | rich:panel 
  | f:facet name=headerDemande d'absence - Demandeur/f:facet
  | pChoisissez le demandeur/p
  | h:form
  | div
  | h:outputText value=#{demandeAbsence.matriculeDemandeur} /
  |  - 
  | h:outputText value=#{demandeAbsence.infosDemandeur} /
  | /div
  | div
  | h:commandButton id=cmdAutreDemandeur value=Autre demandeur 
action=changerDemandeur /
  | h:commandButton id=cmdContinuer value=Continuer 
action=suivant /
  | /div
  | /h:form
  | /rich:panel
  | /ui:define 
  | /ui:composition
  | /html

The template.xhtml template :

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | html xmlns=http://www.w3.org/1999/xhtml;
  |   xmlns:ui=http://java.sun.com/jsf/facelets;
  |   xmlns:h=http://java.sun.com/jsf/html;
  |   xmlns:f=http://java.sun.com/jsf/core;
  |   xmlns:s=http://jboss.com/products/seam/taglib;
  | head
  | meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
  | link href=css/theme.css rel=stylesheet type=text/css /
  | /head
  | body
  | ui:include src=menu.xhtml /
  | div class=body
  | ui:insert name=body/
  | /div
  | /body
  | /html

The menu.xhtml :

rich:toolBar 
  |  xmlns=http://www.w3.org/1999/xhtml;
  |  xmlns:ui=http://java.sun.com/jsf/facelets;
  |  xmlns:h=http://java.sun.com/jsf/html;
  |  xmlns:f=http://java.sun.com/jsf/core;
  |  xmlns:s=http://jboss.com/products/seam/taglib;
  |  xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  |  rich:toolBarGroup
  |  s:link view=/home value=Accueil /
  |  /rich:toolBarGroup  
  | /rich:toolBar

The problem deals with the /home link.

I work with Seam 2.0.0.CR1 and JBPM 3.2.2
Any help appreciated ;)
Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090214#4090214

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090214
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :
s:link view=/home value=Accueil propagation=none /

The problem with this is that it keeps conversations opened, while I'd like 
them to be close.

I tried with propagation=end.

s:link view=/home value=Accueil propagation=end /

But I have to click the link twice to go to home page :
- The first click ends the conversation
- The second click redirects to the home page.

Anybody knows why it works this way ?

BTW, since it's not a JBPM issue but a Seam issue, could anyone move this post 
to Seam forum ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090236#4090236

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090236
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/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 component in a JSF 
listener component (with @StartTask and @EndTask annotated methods) and a JBPM 
listener component. And the injection of business process instance and 
variables into this JBPM listener worked ! 

So what I see is that you can't have @StartTask and @EndTask methods in a JBPM 
listener. Is it something expected or is it a bug ? And if this is not a bug, 
could anyone explain to me the reason of all this ? 

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089674#4089674

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089674
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4089697#4089697

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089697
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

task name=Validation d'un des responsables finals description=[Validation 
RP] #{infosDemandeur} (#{datesDemandeAbsence})

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: 
[Validation RP] ${infosDemandeur} (${datesDemandeAbsence})

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089712#4089712

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089712
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 task-node before (ie a business process with no human 
action). I guess it deals with a context problem, but I can't understand what 
the problem exactly is.

For example, I modeled my node this way :

node name=Acceptation
  | transition to=End /
  | action expression=#{demandeAbsenceAction.demandeAcceptee} /
  | /node

I have a first Seam component (conversation scope) which creates the process 
instance this way :

@org.jboss.seam.annotations.bpm.CreateProcess(definition = 
validationDemandeAbsence)
  | @org.jboss.seam.annotations.End
  | public void valider()
  | {}

It also outjects idDemandeAbsence variable in the business process :

@org.jboss.seam.annotations.Out(required = false, scope = 
org.jboss.seam.ScopeType.BUSINESS_PROCESS)
  | protected java.lang.Long idDemandeAbsence;

I had a look in the JBPM tables and this outjection works well.

I have another Seam component (conversation scope too) which contains methods 
binded to JPDL nodes. It injects processInstance and idDemandeAbsence variables 
this way :

@org.jboss.seam.annotations.In(create = true)
  | protected org.jbpm.graph.exe.ProcessInstance processInstance;
  | 
  | @org.jboss.seam.annotations.In(value = idDemandeAbsence,  scope = 
org.jboss.seam.ScopeType.BUSINESS_PROCESS)
  | protected java.lang.Long idDemandeAbsence;

And of course it declares the action method binded to JPDL node (no annotation 
on this method, should there be some ?) :

public void demandeAcceptee()
  | {}

But idDemandeAbsence and processInstance variables are alway null. Do I use 
JBpm and Seam the right way ? I work on this problem for several days, so any 
help will be greatly appreciated ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089601#4089601

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089601
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4089602#4089602

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089602
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4089679#4089679

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089679
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

decision name=motif délégation ? expression=#{ligneDemandeAbsence.motif eq 
'DEL'}
  | transition name=false to=saisieDatesAbsence/transition
  | transition name=true to=saisieDateDelegation/transition
  | /decision
  | 

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=bbop=viewtopicp=4088370#4088370

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088370

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4088373#4088373

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088373
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 should take 
and you can do it using process.signal(). But what you say is true for an 
action binded to a transition. Thanks anyway, you gave me hope a few minutes lol

By the way, do you see something something in my jbpm.cfg.xml file ?

jbpm-configuration
  |   jbpm-context
  | service name=persistence
  |factory
  |   bean class=org.jbpm.persistence.db.DbPersistenceServiceFactory
  |  field name=isTransactionEnabledfalse//field
  |   /bean
  |/factory
  | /service
  | service name=message 
factory=org.jbpm.msg.db.DbMessageServiceFactory /
  | service name=scheduler 
factory=org.jbpm.scheduler.db.DbSchedulerServiceFactory /
  | service name=logging 
factory=org.jbpm.logging.db.DbLoggingServiceFactory /
  | service name=authentication 
factory=org.jbpm.security.authentication.DefaultAuthenticationServiceFactory 
/
  | service name=tx factory=org.jbpm.tx.TxServiceFactory /
  |   /jbpm-context
  | /jbpm-configuration

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4086473#4086473

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086473
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopict=119089

Did you find a solution ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4086601#4086601

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086601
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4086621#4086621

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086621
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4086622#4086622

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086622
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 :

node name=Envoi e-mail au déclarant
  | transition to=Afficher RTT OK /
  | action 
expression=#{demandeAbsenceAction.envoyerEmailDeclarant} /
  | /node

demandeAbsenceAction is a Seam component with processInstance injected. The 
method is as following :

public void envoyerEmailDeclarant() throws Exception {
  | log(Envoi d'un e-mail au déclarant !);
  | processInstance.signal();
  | }

But a few days ago I migrated to Seam 2.0 and JBpm 3.2, running on JBoss 4.2. 
And I have now an error I don't understand, which is thrown on the signal 
call, with this stack trace :

2007-09-19 12:23:57,465 ERROR [org.jbpm.graph.def.GraphElement] action threw 
exception: couldn't evaluate expression 
'#{demandeAbsenceAction.envoyerEmailDeclarant}'
  | org.jbpm.JbpmException: couldn't evaluate expression 
'#{demandeAbsenceAction.envoyerEmailDeclarant}'
  | at 
org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:39)
  | at 
org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:26)
  | at org.jbpm.graph.def.Action.execute(Action.java:118)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Action_$$_javassist_80.execute(Action_$$_javassist_80.java)
  | at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
  | at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
  | at 
org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
  | at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:253)
  | at org.jbpm.graph.def.Node.execute(Node.java:338)
  | at org.jbpm.graph.def.Node.enter(Node.java:318)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Node_$$_javassist_66.enter(Node_$$_javassist_66.java)
  | at org.jbpm.graph.def.Transition.take(Transition.java:151)
  | at org.jbpm.graph.def.Node.leave(Node.java:393)
  | at 
org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
  | at org.jbpm.graph.node.Decision.execute(Decision.java:152)
  | at org.jbpm.graph.def.Node.enter(Node.java:318)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Node_$$_javassist_66.enter(Node_$$_javassist_66.java)
  | at org.jbpm.graph.def.Transition.take(Transition.java:151)
  | at org.jbpm.graph.def.Node.leave(Node.java:393)
  | at org.jbpm.graph.node.StartState.leave(StartState.java:70)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Node_$$_javassist_66.leave(Node_$$_javassist_66.java)
  | at org.jbpm.graph.exe.Token.signal(Token.java:194)
  | at org.jbpm.graph.exe.Token.signal(Token.java:139)
  | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270)
  | at 
org.jboss.seam.bpm.BusinessProcess.afterCreateProcess(BusinessProcess.java:147)
  | at 
org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:122)
  | at 
org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:106)
  | at 

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

2007-09-17 Thread chawax
Hi,

I have exactly the same problem migrating to Seam 2.0 on JBoss 4.2. Did you fix 
your problem ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4084916#4084916

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084916
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bbop=viewtopicp=4084917#4084917

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084917
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with JBPM nodes and transitions

2007-09-04 Thread chawax
Anyone could help me ? I really can't understand what happens :(
I work with Seam 1.1.6, JBPM 3.1.4 and JBoss 4.0.5 GA

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080768#4080768

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080768
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with JBPM nodes and transitions

2007-09-03 Thread chawax
Hi,

I use JBPM to model a business process and I want to integrate it with Seam. 
Part of the process is composed of nodes and transitions, with no interaction 
with users (actually no task nodes). But for a reason I can't find, one 
transition can't work ...

My JBPM process is a very simple one : 3 nodes linked by single transitions and 
an end state. My JPDL is as following : 

node name=Node1
  | transition name=goToNode2 to=Node2
  | action expression=#{afficherMessageConsole.transition1} /
  | /transition
  | action expression=#{afficherMessageConsole.goToNode2} /
  | /node
  | node name=Node2
  | transition name=goToNode3 to=Node3
  | action expression=#{afficherMessageConsole.transition2} /
  | /transition
  | action expression=#{afficherMessageConsole.goToNode3} /
  | /node
  | node name=Node3
  | transition name=goToEnd to=End/transition
  | action expression=#{afficherMessageConsole.goToEnd} /
  | /node
  | end-state name=End/end-state

My actions just write on System.out. I added 
@org.jboss.seam.annotations.Transition annotation to goToxxx methods, and no 
annotation for other methods (in fact I added @Transition annotation only to 
methods binded to nodes, not to transitions).

When I run this process, the transition between Node1 and Node2 is ok, but 
transition between Node2 and Node3 doesn't work. The transition2 method is 
never called ! Note there is nothing in the logs.

Did I did something wrong ?

Thanks in advance for your help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080430#4080430

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080430
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with JBPM nodes and transitions

2007-09-03 Thread chawax
Well it's strange because transition from Node1 to Node2 works well with 
@Transition ... Anyway, how can I do to fire a transition from an action 
(method of a Seam component) ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080462#4080462

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080462
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >