[JBoss-user] [JBoss Seam] - Re: Problem using ADF Faces components with SEAM

2006-04-06 Thread jcruise
I am not sure if this is related, but I lost conversation propogation in an ADF 
faces app after I switched to using a post beta 2 daily. It seems like the 
state manager in seam wasn't being loaded and so the long lived conversations 
were not being persisted at all. 

To fix this problem I have had to add a config entry in faces config to load 
the Seam state manager alongside the adf faces state manager. 

My application entry in faces-config now looks something like:


  | 
  |   
oracle.adfinternal.view.faces.application.ViewHandlerImpl
  | 
oracle.adfinternal.view.faces.application.StateManagerImpl
  | 
org.jboss.seam.jsf.SeamStateManager
  | 
oracle.adfinternal.view.faces.application.NavigationHandlerImpl
  | 
oracle.adfinternal.view.faces.el.AdfFacesVariableResolver
  | oracle.adf.core
  | 
  | 

I know that adf faces and I presume Seam specify some of these components 
inside their private faces-configs, but it takes the above application 
definition to get them working together for me.

 Better suggestions are much appreciated.

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935680#3935680

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935680


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - generic bpm applications

2006-03-22 Thread jcruise
The current business process annotations e.g. StartTask, CreateProcess et. al. 
make it difficult to write generic code for working with process defined at 
runtime because  the parameters for things like process and transition are 
defined at compile time. 

Supporting expressions for those parameters, remedies the problem.

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931803#3931803

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931803


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Troubleshooting exceptions due to bad annotations

2006-03-21 Thread jcruise
I've just migrated my app from ADF-Faces/JSP/Spring/Hibernate/JBPM to 
ADF-Faces/Facelets/Seam/EJB3. I didn't much enjoying taking on EJB - it slows 
down deployment, complicates class loading, debugging is ugly ... however, 
every time I thought about rolling back I held off because of the conciseness 
and elegance of the resultant Seam based source code. I found the 
uber-annotations approach is a bit confusing at first but now fear that I am 
getting addicted ...

I figure that this will be the way to go in the long run - I just hope that in 
time I will be able to redelpoy my app in more than twice without a server 
restart and that the restart will take less than 2.5 mins. :D

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931638#3931638

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931638


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Troubleshooting exceptions due to bad annotations

2006-03-21 Thread jcruise
I just had a similar error from adding a factory method annotation. The problem 
was that the method was private instead of public. 

The only way that I've found to reliably track down this sort of error is to 
have the Seam source available and watch it in the debugger.

 On the upside I am getting a bit more familiar with Seam's mechanics and less 
dependent on the docs. On the downside, the discovery learning mode is quite 
time-consuming :)

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931623#3931623

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931623


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: adf libs in server/default/libs breaks seam pageflows

2006-03-20 Thread jcruise
Hi Ido,

 I don't know if this is helpful, but  I am using those versions of the libs in 
my app (without pageflow but with jbpm) and they seem to work ok.  I have them 
deployed as  jars  in my EAR rather than /server/default/lib tho ...

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931506#3931506

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931506


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: process persistence problem with JBPM/Seam

2006-03-20 Thread jcruise
The problem seems to be that the following mapping file is missing from the 
hibernate.cfg.xml file that is distributed with Seam-1.0-beta2


  | 
  | 

I guess that i'll find out soon enough if it was intentional :)

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931343#3931343

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931343


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - process persistence problem with JBPM/Seam

2006-03-20 Thread jcruise
I am getting a hibernate persistence error when I try and save a 
processInstance of the jbpm demo websale process. This only happens after I 
have created the initial task. I am using Seam 1 beta 2 and the included JBPM 
3.1 jar.



  | Caused by: org.hibernate.HibernateException: instance not of expected 
entity type: org.jbpm.context.exe.VariableInstance
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3301)
  | at 
org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1330)
  | at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
  | at 
org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:460)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
  | at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:531)
  | at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:523)
  | at 
org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:134)
  | at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)
  | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)
  | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
  | at 
org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:290)
  | at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
  | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
  | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
  | at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:130)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:121)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
  | at 
org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
  | at 
org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:978)
  | at 
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:135)
  | at 
org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:60)
  | at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1245)
  | at 
org.jbpm.db.TaskMgmtSession.findTaskInstances(TaskMgmtSession.java:56)
  | ... 135 more
  | 

Any ideas?

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931290#3931290

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931290


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - process persistence problem with JBPM/Seam

2006-03-17 Thread jcruise
I am getting a hibernate persistence error when I try and save a 
processInstance of the websale process. This only happens after I have created 
the initial task. I am using Seam 1 beta 2 and the included JBPM 3.1 jar.



  | Caused by: org.hibernate.HibernateException: instance not of expected 
entity type: org.jbpm.context.exe.VariableInstance
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3301)
  | at 
org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1330)
  | at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
  | at 
org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:460)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
  | at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:531)
  | at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:523)
  | at 
org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:134)
  | at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)
  | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)
  | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
  | at 
org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:290)
  | at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
  | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
  | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
  | at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:130)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:121)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
  | at 
org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
  | at 
org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:978)
  | at 
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:135)
  | at 
org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:60)
  | at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1245)
  | at 
org.jbpm.db.TaskMgmtSession.findTaskInstances(TaskMgmtSession.java:56)
  | ... 135 more
  | 

Any ideas?

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930949#3930949

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930949


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem with Jbpm/Seam integration.

2006-03-16 Thread jcruise
http://jira.jboss.com/jira/browse/JBSEAM-169

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930677#3930677

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930677


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Problem with Jbpm/Seam integration.

2006-03-16 Thread jcruise
It seems that the jbpmConfiguration member variable is initalised lazily inside 
the org.jboss.seam.core.Jbpm class - which is good. 

However the initialisation only occurs inside the installProcessDefinitions 
method, *if* there is a context parameter that specifies a process to deploy. 

This leaves the jbpmConfiguration member unitialized in other circumstances. 

My application (like the JBPM sample app) allows the user to upload process 
definitions at runtime and so I don't preload any particular definition. 

Therefore bad things happen when I try and use the jbpmContext component with 
it's unitialised jbpmConfiguration member variable. 

This problem could be fixed by moving the lazy intialization of the 
jbpmConfiguration to the getJbpmConfiguration method.

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930658#3930658

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930658


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem using ADF-Faces and Seam

2006-03-16 Thread jcruise
As part of my continued commtiment to answering my own posts, I'd like say that 
this problem disappeared when I moved to Facelets from JSPs.

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930649#3930649

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930649


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem using ADF menu model

2006-03-16 Thread jcruise
I have menumodel working ok in a seam/adf-faces/facelet/ejb3 config.

I believe that the example.menu.MenuModelAdapter class is in the ADF Faces 
sample codebase rather than the main jars. Perhaps this is the problem.

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930608#3930608

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930608


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem using ADF-Faces and Seam

2006-03-12 Thread jcruise
I guess I should add that my ADF-Faces pages were working without this error 
before the Seam migration - hence the post to this forum. I wasn't trying to be 
wilfully offtopic :)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929592#3929592

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929592


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Problem using ADF-Faces and Seam

2006-03-12 Thread jcruise
I am using Seam beta2 / EJB3 and ADF faces. I can get my ADF Faces pages to 
render (thanks to the FAQ)  *BUT* I am getting the following messages in the 
server log whenever I call an ADF faces page:

12:17:25,373 ERROR [STDERR] Mar 12, 2006 12:17:25 PM 
oracle.adfinternal.view.faces.renderkit.AdfRenderingContext attach
WARNING: Trying to attach AdfRenderingContext to a thread that already had one.
12:17:32,065 ERROR [STDERR] Mar 12, 2006 12:17:32 PM 
oracle.adfinternal.view.faces.renderkit.core.CoreRenderKit encodeFinally
WARNING: No AdfRenderingContext available

I was wondering if anybody else has seen this problem in this configuration?

Cheers
Jamie



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929590#3929590

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929590


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user