[jboss-user] [JBoss jBPM] - Re: JobExecutorThread

2009-08-06 Thread lpiccoli
the usertransaction is eventually bound to the jndi tree.

The problems seems to be is that the 'WorkflowService' is commencing *before* 
the hibernate service has bound the usertransaction to the jndi tree. 

i confirmed this by placing trace inside the workflow service code and the 
userTransaction is only bound some time after the workflow service has 
commenced. werid i know.

i have no understanding how the hibernate service starts and it role in the 
user transaction/jndi binding.

i dont know what differences between jbpm3.2.2-jbpm3.26 would cause such 
behaviour. 

-lp

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

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


[jboss-user] [JBoss jBPM] - Task Form GUI implementation

2009-07-31 Thread lpiccoli
hi all,

has anyone implemented their own Task Form GUI, similar to that of the console 
app?

Looking over the jsf4jbpm taglib, it tightly coupled to the undocumented gravel 
taglib. 
Q1. Has anyone used jsf4jbpm for their own application?

the gwt-console i am attempting to look at but the installation seems to be 
defeating me at present.

Q2. Has anyone used gwt-console for their own application?

thanks

-lp

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

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


[jboss-user] [JBoss Portal] - Re: upgrade jbpm to 3.2.6: how to

2009-07-28 Thread lpiccoli
looks the problems seems to be that the  JbpmThreadService get started without 
having a JbpmContext.


  | JbpmThreadService .java
  | public void start()
  |{
  |   JbpmConfiguration jbpmConfiguration = 
workflowService.getJbpmConfiguration();
  |   jbpmConfiguration.getJobExecutor().start();
  |}
  | 
  | 

I am not entirely sure why, but once i programmatically call createJbpmContext 
the JbpmThreadService  seems to function without error from then.


  |   context = workflowService.getJbpmConfiguration().createJbpmContext();
  | 

Q1. is expected behaviour with JbpmContext?
Q2. should client/portlet code be using the workflowservice?

-lp

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

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


[jboss-user] [JBoss jBPM] - JobExecutorThread

2009-07-28 Thread lpiccoli
jbpm 3.2.6SP1
portal 2.7.2
jboss4.2.2

hi all,

when running jbpm3.2.6 on jboss portal 2.7.2 the following error occurs in the 
start up of the JobExecutorThread.


  | 22:25:37,101 ERROR [JobExecutorThread] exception in job executor thread. 
waiting
  |  2 milliseconds
  | org.jbpm.JbpmException: couldn't begin user transaction
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceService.beginUserTransaction
  | (JtaDbPersistenceService.java:78)
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceService.init(JtaDbPersiste
  | nceService.java:46)
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(J
  | taDbPersistenceServiceFactory.java:66)
  | at org.jbpm.svc.Services.getService(Services.java:177)
  | at org.jbpm.svc.Services.getPersistenceService(Services.java:231)
  | at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:705)
  | at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:629)
  | at 
org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread
  | .java:106)
  | at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:54
  | )
  | Caused by: org.jbpm.JbpmException: could not retrieve user transaction with 
name
  |  java:comp/UserTransaction
  | 

the problem is with jbpmContext.getJobSession(), as it can't get a user 
transaction.


  |  protected CollectionJob acquireJobs() {
  | CollectionJob acquiredJobs = Collections.emptyList();
  | synchronized (jobExecutor) {
  |   JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  |   try {
  | log.debug(querying for acquirable job...);
  | String lockOwner = getName();
  | JobSession jobSession = jbpmContext.getJobSession();
  | 
  | 

i am using the JtaDbPersistenceServiceFactory which has the 
isTransactionEnabled =false;


  |   jbpm-context
  |service name=persistence 
factory=org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory /
  | 
  | 

WHat is going on here? 

Why cant the java:comp/UserTransaction be found?

-lp

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

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


[jboss-user] [JBoss jBPM] - JTA transaction error inside jboss portal

2009-07-27 Thread lpiccoli
portal 2.7.2
jbpm 3.2.2


hi all

when accessing the JBPM context inside a portlet of jboss portal the following 
JTA error occurs depending whether the the context is created or get Current is 
called. 

i read the details of jbpm transation here
http://docs.jboss.org/jbpm/v3/userguide/deployment.html

I thought i understood the JBPM JTA settings but i have totally lost now.


my JTA settings are below.

  | jbpm-context
  |service name=persistence 
factory=org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory /
  |service name=scheduler 
factory=org.jbpm.scheduler.db.DbSchedulerServiceFactory /
  |service name=message 
factory=org.jbpm.msg.db.DbMessageServiceFactory /
  |service name=tx factory=org.jbpm.tx.TxServiceFactory/
  | /jbpm-context
  | 

When calling getCurrentJbpmContext() as in below, a 'Session closed' error 
occurs.


  | WorkflowService  workflowService = (WorkflowService) 
ctx.lookup(java:/portal/WorkflowService)
  | writer.println( workflowService: + workflowService );
  |   
  | JbpmContext context = 
workflowService.getJbpmConfiguration().getCurrentJbpmContext();
  | 
  | ListProcessDefinition taskList = 
context.getGraphSession().findAllProcessDefinitions();
  | 

So an existing context is found but the hibernate session is closed.


  | 2009-07-27 16:21:52,222 ERROR [STDERR] org.hibernate.SessionException: 
Session is closed!
  | at 
org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
  | at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1258)
  | at 
org.jbpm.db.GraphSession.findAllProcessDefinitions(GraphSession.java:209)
  | at 
org.jboss.portal.portlet.samples.SimplestHelloWorldPortlet.doView(SimplestHelloWorldPortlet.java:76)
  | 

So when i call createJbpmContext(), the JTA complains that an existing 
transaction is already on the current thread.


  | WorkflowService  workflowService = (WorkflowService) 
ctx.lookup(java:/portal/WorkflowService)
  | writer.println( workflowService: + workflowService );
  |   
  | JbpmContext context =  
workflowService.getJbpmConfiguration().createJbpmContext();
  |   
  | ListProcessDefinition taskList = 
context.getGraphSession().findAllProcessDefinitions();
  | 




  | Cause: org.jboss.portal.portlet.PortletInvokerException: 
java.lang.IllegalStateException: BaseTransaction.checkTransactionState - 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
is already associated with a transaction!
  | Message: java.lang.IllegalStateException: 
BaseTransaction.checkTransactionState - 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
is already associated with a transaction!
  | StackTrace:
  | 
  | org.jboss.portal.portlet.PortletInvokerException: 
java.lang.IllegalStateException: BaseTransaction.checkTransactionState - 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
is already associated with a transaction!
  | at 
org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:101)
  | at 
org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
  | at 
org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
  | at 
org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
  | at 
org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:75)
  | at 
org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
  | at 
org.jboss.portal.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:116)
  | 
  | 


how is jbpm configured to use the existing JTA inside portal?

any help is most appreciated.

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: JTA transaction error inside jboss portal

2009-07-27 Thread lpiccoli
thanks for the rapid response.

i have tried replacing the 3.2.2 jpbm jar with 3.2.6 but i cant get portal to 
work. i have posted the issue on the portal forum but no response yet.

see http://www.jboss.org/index.html?module=bbop=viewtopict=158977

have u upgraded the portal jbpm installation?


-lp

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

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


[jboss-user] [JBoss jBPM] - Re: JTA transaction error inside jboss portal

2009-07-27 Thread lpiccoli
i have tried he following with true then false and there is no difference. 


  | 
  |  service name=persistence
  |  factory
  | bean 
class=org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory
  |   field name=isTransactionEnabledfalse //field
  | /bean
  |   /factory
  |  /service
  | 
  | 

Both are producing the same transaction error.


  | Cause: org.jboss.portal.portlet.PortletInvokerException: 
java.lang.IllegalStateException: BaseTransaction.checkTransactionState - 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
is already associated with a transaction!
  | Message: java.lang.IllegalStateException: 
BaseTransaction.checkTransactionState - 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
is already associated with a transaction!
  | StackTrace: 
  | 

any ideas with what i have stuffed up would be most appreciated.

-lp

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

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


[jboss-user] [JBoss Portal] - Re: upgrade jbpm to 3.2.6: how to

2009-07-26 Thread lpiccoli
jbpm 3.2.2 is sept 2007 vintage.

has any one upgrade the jbpm?


-lp

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

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


[jboss-user] [JBoss Portal] - Re: JBoss 5 Integration

2009-07-25 Thread lpiccoli
just tried the wiki instructions

JBoss_Portal_Branch_2_7_AS5 portal doesnt compile for me.

[execmodules] 
C:\src\jbossportal\portal\wsrp\src\main\org\jboss\portal\wsrp\deployment\WSRPConsumerDeploymentImpl.java:67:
 cannot find symbol [execmodules] symbol  : class WSRPProducerMetaData
[execmodules] location: class 
org.jboss.portal.wsrp.deployment.WSRPConsumerDeploymentImpl
[execmodules]   for (WSRPProducerMetaData producer : 
deployments.getDeployments())

i assume it is just a temp glitch cause i got no idea.

i will try another co later.

-lp

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

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


[jboss-user] [JBoss Portal] - deploy jbpm workflow: how to

2009-07-24 Thread lpiccoli
portal 2.7.2
jboss 4.x

hi all,

i dont know how to deploy a jbpm process definition archive (PAR) to jboss 
portal.

normally it is deployed through a servlet which persists the archive. However i 
cant find such a servlet in jboss portal. if took the sample servlet from the 
jbpm distro where does it get deployed in jboss portal?

i am most confused and with jboss forum search broken i am lost.

any help is most appreciated.

-lp

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

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


[jboss-user] [JBoss Portal] - upgrade jbpm to 3.2.6: how to

2009-07-24 Thread lpiccoli
jbossportal 2.7.2

hi all,

i am upgrading from jbpm3.2.2 to  jbpm3.2.6 in jboss portal 2.7.2.

i made the following changes

1. changed the jbpm-identity.jar, jbpm-jpdl.jar
2. changed the conf/hibernate/workflow/hibernate.cfg.xml
3. modifed the jboss-portal.sar\portal-workflow.sar/jboss-service.xml

But the workflow doesnt deploy due to errors below.


  | 21:10:42,843 ERROR [JobExecutorThread] exception in job executor thread. 
waiting
  |  2 milliseconds
  | org.jbpm.JbpmException: transaction begin failed
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceService.beginTransaction(Jta
  | DbPersistenceService.java:74)
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceService.init(JtaDbPersiste
  | nceService.java:48)
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(J
  | taDbPersistenceServiceFactory.java:66)
  | at org.jbpm.svc.Services.getService(Services.java:156)
  | at org.jbpm.svc.Services.getPersistenceService(Services.java:196)
  | at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:699)
  | at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:626)
  | at 
org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread
  | .java:114)
  | at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58
  | )
  | Caused by: org.jbpm.JbpmException: could not retrieve user transaction with 
name
  |  java:comp/UserTransaction
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.getUserTransa
  | ction(JtaDbPersistenceServiceFactory.java:90)
  | 

any ideas are most appreciated.

-lp

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

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


[jboss-user] [JBoss jBPM] - classes/java/lang/bsh.class' error

2009-07-20 Thread lpiccoli
JBPM3.2.6SP1
JBoss5.00GA

hi all

i am getting the following error when using a  in an event.


  | 
  | 20:04:02,418 ERROR [GraphElement] action threw exception: couldn't get 
value for file 'classes/java/lang/bsh.class'
  | org.jbpm.JbpmException: couldn't get value for file 
'classes/java/lang/bsh.class'
  | at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:196)
  | at 
org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:116)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
  | 


  | process-state name='Sub Process'
  |   event type='node-enter'
  |   script name='node-enter'
  |   System.out.println(---node-enter);
  |   /script
  |  /event
  | 
  | 

i read the docs and the bsh.jar file is in the classpath including the jboss 
common/lib.

any help is most appreciated

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler

2009-07-15 Thread lpiccoli
i think i may have found the issue with why my sub process has now variable 
instances.

it seems that  the variables need to be 'explicit' copied into the new process 
definition. The following snippet now correctly sets the variable in the new 
sub process.
 

  | 
  | process-state name='Sub Process'
  |   variable name='itp.id' access='read' mapped-name='itp.id' /
  |   sub-process name='sub'/
  | 
  | 

From the docs 
http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#graphorientedprogramming

it describes this exact process.
anonymous wrote : 
  | 10.8. Process composition
  | In general, When a subprocess is started, all variables with read access 
are read from the super process and fed into the newly created sub process 
before the signal is given to leave the start state. When the sub process 
instances is finished, all the variables with write access will be copied from 
the sub process to the super process. The mapped-name attribute of the variable 
 element allows you to specify the variable name that should be used in the sub 
process.
  | 

However i dont want to 'explicitly' copy all my variables over to the new 
process. I am hoping there is an 'implicit' copy that i have not found yet.

I have not seen this functionality in any of the unit tests i have been 
viewing, so any help is appreciated.

-lp

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

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


[jboss-user] [JBoss jBPM] - Variable missing in assignment handler

2009-07-14 Thread lpiccoli
hi all,

my swimlane assignment handler is unable to retrieve variables that have been 
previous set in both root token and local token.

the test involves a forkhandler, sub process and swimlane assignment handler.

When inside the SwimlaneAssignmentHandler getVariable() returns null which is 
not what i was expecting


  | public void assign(Assignable assignable, ExecutionContext 
executionContext) {
  | 
  | assertNotNull(shouldnt be null, executionContext.getVariable(IDENTIFIER));
  | String expression = (String)executionContext.getVariable(EXPRESSION);
  | assertNotNull( shouldnt be null, expression );
  | 

as it was set in the previous ActivityForkActionHandler.execute()



  | public void execute(final ExecutionContext executionContext) throws 
Exception {
  | .stuff
  | Token(rootToken, ITP + item.getId()); //TODO -lp  
  | newToken.setTerminationImplicit(true);
  | 
executionContext.getJbpmContext().getSession().save(newToken);
  | final ExecutionContext newExecutionContext = new ExecutionContext(newToken);
  | newExecutionContext.getContextInstance().createVariable( 
  | EXPRESSION, 
  | 
item.getResponsibleExpression(),
  | newToken);
  | 
  | 


I am not sure if the problem is with my process definition of the swimlan 
assignment


  | swimlane name='responsible' 
  | assignment 
class='com.asteriski.itpflow.action.ActivityForkActionHandlerTest$SwimlaneAssignmentHandler'/
  | /swimlane
  | 

or with how i am setting the local variables against token in the forkHandler 
above

i have a attached the entire test case below. It is a bit tedious but i needed 
to include all the handler code.

any help is most appreciated.


  | public class ActivityForkActionHandlerTest extends AbstractJbpmTestCase  {
  | 
  | static JbpmConfiguration jbpmConfiguration = 
JbpmConfiguration.getInstance(jbpm.test.cfg.xml);
  | 
  | public void testForkHandlerAndSubProcess() throws Exception {
  | 
  |  JbpmContext jbpmContext = 
jbpmConfiguration.createJbpmContext();
  |  
  |  ProcessDefinition subProcessDefinition = 
ProcessDefinition.parseXmlString(
  |   process-definition name='sub' +
  | start-state +
  |   transition to='wait' / +
  | /start-state +
  |  swimlane name='responsible'  +
  |assignment 
class='com.asteriski.itpflow.action.ActivityForkActionHandlerTest$SwimlaneAssignmentHandler'
 / +
  |   /swimlane +
  |  task-node name='wait'  
+  
  |description'just 
waiting'/description +
  |task name='task-waiting' 
signal='block' swimlane='responsible'+
  |   /task +
  |  transition 
to='end_sub'/transition +
  | /task-node +
  | end-state name='end_sub' / +
  |   /process-definition
  | );
  | 
jbpmContext.deployProcessDefinition(subProcessDefinition);
  | 
  | ProcessDefinition superProcessDefinition = 
ProcessDefinition.parseXmlString(
  | process-definition +
  |  name='super' +
  | start-state name='start'  +
  | transition name='to_state' 
to='forkActivities' +
  | /transition +
  | /start-state +
  |   node name='forkActivities' +
  | action 
class='com.asteriski.itpflow.action.ActivityForkActionHandlerTest$ActivityForkActionHandler'
 config-type='bean' name='ActivityForkActionHandler'/action +
  |  description +
  |   find all activities that have no 
blocking state and generate a testign request+
  |  /description +
  |transition to='Sub 
Process'/transition +
  |/node +
  | process-state name='Sub Process' +
  | sub-process name='sub'/ +
  | transition to='task-node1'/transition +
  

[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler

2009-07-14 Thread lpiccoli
Further testing reveals that there are NO variables at all available in the 
Assignment handler.

I am using Jbpm3.2.6


  | 
  | public void assign(Assignable assignable, ExecutionContext 
executionContext) {
  |   
  | MapToken, TokenVariableMap tokenVariableMaps = 
executionContext.getContextInstance().getTokenVariableMaps();
  | assertNotNull(tokenmap shouldnt be null, tokenVariableMaps);
  | 
  | 


Q. Since the ExecutionContext has only one method to retrieve variable 
ExecutionContext.getVariable() which seem to be based on the root token. How 
can a local variable bound to a token be retrieved from the ExecutionContext?

any help most appreciated.



many thanks

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: injection of ActionHandler instance for unit test

2009-07-13 Thread lpiccoli
perhaps my question was rather restrictive.

i will rephrase  my question.

Q. essentially how does one test a ActionHandler?

I looked at the src and the only tests i found seem to tests for the Action 
events.

I was looking for something like

  | ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
  |   process-definition +
  | node name='n' +
  |   event type='node-enter' +
  | action name='a' class='MyHandler'/ +
  |   /event +
  | /node +
  |   /process-definition);
  | 
  | MyHandler MyHandlerInstance = new MyHandler();
  | 
  | ...mock up
  | 
  | processDefinition.setAction(a, MyHandlerInstance), 
  | 
  | ...do test
  | 
  | 
How do u guys test your ActionHandler without doing a full integration test?

any help is most appreciated.

-lp 

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

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


[jboss-user] [JBoss jBPM] - injection of ActionHandler instance for unit test

2009-07-10 Thread lpiccoli
hi all

i would like to unit test a ActionHandler, but need to mock some methods. 
However i am unable to find a mechanism to inject the mocked instance into my 
processContext.

any help appreciated.

-lp

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

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


[jboss-user] [EJB 3.0] - onetomany relationship question

2009-07-07 Thread lpiccoli
i read the 'EJB3 relationships' wiki article
http://www.jboss.org/community/wiki/EJB3relationships and have a question.

  | @Entity()
  | public class ParentBean implements Serializable
  | {
  |   private SetChildBean listChilds = new HashSetChildBean();
  |   
  |   @OneToMany(mappedBy=parent)
  |   public SetChildBean getChilds()
  |   {
  | return this.listChilds;
  |   }
  | }
  | 
  | @Entity()
  | public class ChildBean implements Serializable
  | {
  |   @ManyToOne ()
  |   public ParentBean getParent()
  |   {
  | return this.parent;
  |   }
  | }
  | 
  | 

Q1. essentially why doesnt the following work


  |  ParentBean parent = ...;
  |  ChildBean child1 = ...;
  |  child1.setParent(parent);
  |  
  |  ChildBean child2 = ...;
  |  child2.setParent(parent);
  | 
  | .
  |  
  |ParentBean parentBean = this.entityManager.find(ParentBean.class, 
int_ParentId);
  | 
  | 
  |   assertEquals( 2, parentBean.getChilds().size() ); --- why do i get 0
  | 
  | 

Q2. Does the parent.setChilds( list) must be called before calling
parent.getChilds() or can is ok set the relationship with a)child1.setParent(p),
child2.setParent(p)  or b) having the data loaded from scripts?

currently my parent.getChilds() returns null although there is
parent/child relationship on the many-to-one table.

Q3. I was expceting that the parent.getChilds() executes a query like ('from 
child c where c.parent=:parent' )

is my understanding of one-to-many relationship wrong?



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

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


[jboss-user] [EJB 3.0] - Re: onetomany relationship question

2009-07-07 Thread lpiccoli
thanks for the rapid response wolfgang.

i added the SQL tracing but there is *no* SQL when calling parent.getChilds().

So if i have understood the 'onetoMany' relationship, it doesnt populated the 
'many' unless it has been explicitly set using the parent.setChilds().

This seems an almost pointless relationship.

In order to get the list of childs from existing data (ie.reference data), one 
must use a join query like


  | em.query( 'from Child child where child.parent_id=:id')
  | 

I was hoping the above would be executed during the retrieval of the 'many'.

Q1. what exactly is the point of the 'onetoMany' if it is only useful if used 
when explicitly setting the collection on the 'one' side?

any help to clarify the above is most appreciated.

-lp

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

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


[jboss-user] [EJB 3.0] - Re: onetomany relationship question

2009-07-07 Thread lpiccoli
ok it seems that my test cases were erroneous.

i finally got the onetomany to fetch the 'many' by refreshing the entity. This 
then invoked the  following query


  | hibernate: select childbean0_.ID as ID3_, childbean0_.parent_ID as 
parent2_3_ from ChildBean childbean0_ where childbean0_.parent_ID=?
  | 


my test code also shows that the relationship only needs to be set on the many 
side.


  | 
  | @Test
  | public void one2manyTestWithSettingManySide() {
  | 
  | ParentBean parent = new ParentBean();
  | entityManager.persist(parent);
  | long id = parent.getId();
  | 
  | ChildBean child1 = new ChildBean();
  | child1.setParent(parent);
  | entityManager.persist(child1);
  | 
  | ChildBean child2 = new ChildBean();
  | child2.setParent(parent);
  | entityManager.persist(child2);
  | 
  | Query query = entityManager.createQuery(from ChildBean child 
where parent.id=:id);
  | query.setParameter(id, id);
  | List resultList = query.getResultList();
  | assertEquals( 2, resultList.size() );
  | 
  | //check refresh
  | entityManager.refresh(parent);
  | assertEquals( 2, parent.getChilds().size() );
  | 
  | ParentBean parentBean = entityManager.find(ParentBean.class, 
parent.getId());
  | 
  | assertEquals( 2, parentBean.getChilds().size() );
  | 
  | }
  | 
  | 

thanks for your help wolfgang.

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: ProcessClassloader question

2009-06-30 Thread lpiccoli
hi all,

was this issue resolved? 

if so please identify the solution as i also am having some issue.


thanks

-lp

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

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


[jboss-user] [JBoss jBPM] - sub process deploy by console

2009-06-24 Thread lpiccoli
hi all,

i have a sub process/inner process definition that are currently being deployed 
by the console app and using the 'binding=late' attribute. Everything is 
working ok.

However trying to deploy using the console app, (inner process  first, then sub 
process definition) without the 'binding=late' attribute, the inner 
definition is not found.

Is the problem due to console application using different context objects for 
the deployment? 

Or is there a simply solution to deploying a sub process using the console?

thanks

-lp

 

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

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


[jboss-user] [JBoss jBPM] - Re: sub process deploy by console

2009-06-24 Thread lpiccoli
ok my choice of description was crap. 

so to clarify;

 i deploy the sub-process definition followed by the parent process using the 
console application and it the sub process cant be found by the parent process.

is that to be expected due to the standard console app using different contexts 
for deployment?

any help is appreciated

-lp

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

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


[jboss-user] [JBoss jBPM] - jbpm-service.sar how does it work?

2009-06-14 Thread lpiccoli
hi all,

i am intrigued how the jbpm-service.sar works? I had it deployed as part of the 
3.2.6SP1 deployment. 

But looking at the jboss-services.xml there is no service or mbean exposed, so 
not sure how or what it does. 
However when i deployed my own ear with its own web console BUT without any 
jbpm jars, the JBPMContext was somehow picked up and everything worked. 
I am very confused how the JbpmContext is being found other than through the 
original 3.2.6SP1 deployment jbpm-service.sar.

Moving forward should i have the jbpm jars included in my ear or should they be 
exposed a jboss services? 

I quite like the service model, but no clear how it works.

any help is appreciated

-lp

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

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


[jboss-user] [JBoss jBPM] - jbpm4jsf source not found

2009-05-26 Thread lpiccoli
hi all,

i have been following the instructions to get source code
http://www.jboss.org/community/wiki/jBPM3BuildingFromSource

however there is no jbpm4jsf or console in modules or anywhere in the 3.2.6 GA 
or trunk.

all i get when i run maven is the following.


  | C:\src\jbpm3.2.6\jbpm3c:\apache-maven-2.1.0\BIN\mvn
  | [INFO] Scanning for projects...
  | Downloading: 
http://repository.jboss.org/maven2/org/jbpm/jbpm-parent/1.0.1.GA/jb
  | pm-parent-1.0.1.GA.pom
  | 6K downloaded  (jbpm-parent-1.0.1.GA.pom)
  | [INFO] Reactor build order:
  | [INFO]   JBoss jBPM3
  | [INFO]   JBoss jBPM3 - Core
  | [INFO]   JBoss jBPM3 - Identity
  | [INFO]   JBoss jBPM3 - Enterprise
  | [INFO]   JBoss jBPM3 - Examples
  | [INFO]   JBoss jBPM3 - Simulation



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

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


[jboss-user] [JBoss jBPM] - Re: jbpm4jsf source not found

2009-05-26 Thread lpiccoli
the source for jbpm4jsf can be seen on he SVN browse


  | http://fisheye.jboss.com/browse/JbpmSvn/jbpm3/modules/jbpm4jsf
  | 

but i cant find it on the SVN repos.

any help is appreciated.

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: jbpm4jsf source not found

2009-05-26 Thread lpiccoli
to clarify where i am looking for the source 


  | C:\src\jbpm3.2.6svn ls 
https://anonsvn.jboss.org/repos/jbpm/jbpm3/trunk/modules
  | 
  | core/
  | db/
  | distribution/
  | enterprise/
  | examples/
  | identity/
  | simulation/
  | userguide/
  | 

nothing there for console or jbpm4jsf.

so where are u guys checking into/from?

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: jbpm4jsf source not found

2009-05-26 Thread lpiccoli
found it at last, in a different location that in docs.

 hopefully this will help others..


  | C:\src\jbpm3.2.6svn ls 
https://anonsvn.jboss.org/repos/jbpm/projects/jsf-consol
  | e/tags
  | jsf-console-3.2.2.GA/
  | jsf-console-3.2.6.GA/
  | jsf-console-3.2.6.SP1/
  | jsf-console-3.2.6.SP2/
  | jsf-console-3.3.0.GA/
  | jsf-console-3.3.1.GA/
  | 

i got no idea where the jpbm4.0 console is though.


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

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


[jboss-user] [JBoss jBPM] - Re: generated form fields cant be changed

2009-04-19 Thread lpiccoli
thanks for work around... i guess i should be familiar with eclipse 
functionality!

using the editor to edit an existing form, doesnt show the existing form 
fields. 

is that correct?

thanks

-lp

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

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


[jboss-user] [JBoss jBPM] - generated form fields cant be changed

2009-04-14 Thread lpiccoli
hi all,

i am using jbpm326 SP1 but having trouble with the generated forms.

it seems that the generated form dialogue allows fields to be added but the 
field name/label cant be changed. it remains as 'fieldN' no matter what i do.

only by editing the form source directly can i change the field names.


am i using the tool incorrectly?

any help appreciated.

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: Deploy Processdefinition via Ant

2009-04-14 Thread lpiccoli
thanks for snippet.

it now successfully deploys according to the script.

[deploypar] deploying process from archive myprocess.par
  | [deploypar] created process definition my business trip request
  | [deploypar] deployed process my business trip request successfully
  | BUILD SUCCESSFUL
  | Total time: 7 seconds
  | 

But the processdef does not show in the jbpm console... any ideas?

I am using 3.2.6 SP1. what version are u using?

many thanks

-lp

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

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


[jboss-user] [JBoss jBPM] - Re: Deploy Processdefinition via Ant

2009-04-11 Thread lpiccoli
mike

please post your ant script as i am suffering pain with my ant deploy script.

i am using jbpm3.2.1Sp1 
my problems are as follows

1. despite the docs there is *NO* cfg attribute on 
org.jbpm.ant.DeployProcessTask 

2. processdefintion.xml *MUST* be included in the par *NOT* in classpath or 
else the deployer produces error

please share ur ant deploy script.

thanks

-lp

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

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


[jboss-user] [JBoss jBPM] - managing forms with jbpm3.2.6

2009-04-10 Thread lpiccoli
Jbpm 3.2.6.SP1
jboss 5.0.1GA

hi all

i have read the jbpm user guides 
c:/jbpm-3.2.6.SP1/docs/userguide/html/index.html and the 
http://docs.jboss.com/jbpm/v3.2/userguide/html_single/ but unable to find any 
info regarding how the forms are managed.

In the examples supplied there are forms that some how get displayed in the 
jbpm-console. i cant find any info on how to create/manage these forms.

any help appreciated.

-lp

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - minimal webserver configuration jboss5.0Cr1

2008-08-01 Thread lpiccoli
hi there

i am tired of waiting for jboss to start up. it i making testing a pain. So i 
want a create a simple server config that only has a webserver servic 
configured.

i tried copying the jbossweb.sar over to the /minimal directory but i 
complained about heaps of stuff. So i began adding various jar files but still 
not working.

i have trawled the web and found some docs on doing this with 4.2.2 but it 
seems 5.0 is different.

any help is most appreciated

-lp 

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

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


[jboss-user] [JBoss Portal] - Porlet Container 2.0 on JBoss 5-0.0

2008-07-24 Thread lpiccoli
hi all

i have downloaded the PC2.0 and looks great. 

i have read the docs that provide a distro for PC2.0 + Jboss4.2.x.

I am running Jboss5.0 + PC2.0 but having having trouble deploying.


  | 18:06:40,092 INFO  [TomcatDeployment] deploy, ctxPath=/simple-portal, 
vfsUrl=simple-portal.war
  | 18:06:40,181 INFO  [WebBootstrap] Web kernel boostrap failed
  | java.lang.RuntimeException: Unable to create a KernelInitializer based on 
the specified KernelConfig
  | at 
org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.
  | java:156)
  | at 
org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:9
  | 9)
  | at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
  | 
  | 

is PC2.0 really locked to a Jboss reversion or have i missed something?

any help appreciated.


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

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


[jboss-user] [JBoss Portal] - Re: Porlet Container 2.0 on JBoss 5-0.0

2008-07-24 Thread lpiccoli
are there know issues with jboss-5.0 CR1 compability or is just a case of wait 
and see?

-lp

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

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


[jboss-user] [JBoss Messaging] - Re: persisting messages for audit

2007-08-01 Thread lpiccoli
ok so i can use the following conf to add an audit aspect.


  | bind pointcut=execution(* 
org.jboss.jms.server.endpoint.advised.SessionAdvised-send(..))
  |   advice name=auditMessage 
aspect=org.jboss.jms.server.container.AuditAspect/
  |/bind
  | 

now i guess this is system wide and not configurable to an individual queue 
basis.

I would like some reassurance that this is indeed the most useful mechanism to 
audit the messageQ.

thanks

-lp


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

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


[jboss-user] [JBoss Messaging] - persisting messages for audit

2007-07-30 Thread lpiccoli
hi all,

i am attempting to persist messages for audit purposes. By audit i mean provide 
ability to resolve disputes over what has been sent and by whom.

So far i have not seen a elegant mechanism to acheive this. 
I was hoping for a interceptor that could be added to persist the message in 
the audit format. I havnt found any docs to explain the interceptor framework 
in jboss messaging.

Firstly is an interceptor is the correct mechanism for this task?
If so a pointer to interceptor docs would be appreciated.
If no then any advise would be welcome.


thanks

-lp

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

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


[jboss-user] [JBoss Messaging] - Re: persisting messages for audit

2007-07-30 Thread lpiccoli
after further digging i have found the use of AOP within messaging. 

Particularly the following pointcut on the producer send. It looks like what i 
need.


  
   

does seem to be the correct place to define custom audit functionality?


-lp

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: JBoss 4.2GA binds to IP but not webapp

2007-06-15 Thread lpiccoli
anonymous wrote : is there some config that binds the web application to an IP?
  | 

ooops looks like this is user error. The web-app was deployed correctly to 
public IP just like the manual states!

i was just testing incorrectly.

ouch:-(

-lp

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

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


[jboss-user] [Installation, Configuration Deployment] - JBoss 4.2GA binds to IP but not webapp

2007-06-14 Thread lpiccoli
fedora fc5
jboss4.2.GA

hi all,

i am using the run.sh -b option to bind jboss against a machine IP.

netstat reports it running on 8080.

I can access the default jboss page on the IP:8080

but when i try to hit my web app it returns a 404.

so i tried the jboss console. it is reporting that my web apps are deployed and 
bound to localhost. not sure exactly what it is reporting but it seems that the 
web apps are only accessible from localhost.

errhh what is going on?

-lp

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: JBoss 4.2GA binds to IP but not webapp

2007-06-14 Thread lpiccoli
PeterJ wrote : First place I would look is in /etc/hosts to make sure my host 
name was declare properly.

thanks peter.

the /etc/hosts look fine. 
since jboss binds ok to the ip and listens on the public IP i guess it is ok.

is there some config that binds the web application to an IP?

thanks

-lp

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

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


[jboss-user] [Management, JMX/JBoss] - Re: fine grain authorisation with JSR 160

2007-02-15 Thread lpiccoli
i really need a JMX web based console not a remote client console.

how can one achieve fine grain authorisation using JBossMX and a 3rd party web 
console?

by fine grain authoristion i mean, user 'A' can only modify attribute 'a' on 
MBean 'AA' but read all other attributes on MBean 'A'. 

I was hoping to utilise the existing security and roles for other web 
application running on JBoss. However it seems that web-console will need to 
implement the authorisation itself. Is that reasonable?

OR

can the JBossMX be replaced by a 3rd party JMX server that does offer JSR160 
security?


how have other solved authorisation issues on JBossMX?


many thanks

-lp

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

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


[jboss-user] [Management, JMX/JBoss] - fine grain authorisation with JSR 160

2007-02-14 Thread lpiccoli
hi all,

I have been reading the following doc about JSR 160. The major point being the 
fine grain authorisation based at the MBeans level.

anonymous wrote : This JSR depends on features introduced in the 1.2 version of 
the JMX API. Proxies simplify client-side programming. Per-MBean permissions 
provide fine-grained security control on the server side.
  | 

http://mx4j.sourceforge.net/docs/ch03s10.html
http://jcp.org/en/jsr/detail?id=160

I cant seem to find any examples doing this with JBossMX. 

So firstly does JBossMX support JSR 160?
If not i want to plug in another web console like ajax4jmx and somehow utilise 
security realm on the web console.

any help or ideas are most appreciated.


-lp




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

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


[jboss-user] [JBossCache] - upgrade JBoss4.0.4 GA to use JbossCache2

2007-01-15 Thread lpiccoli
hi all,

i am currently using Cache 1.24 with Jboss4.04GA. But the new JbossCache2 has 
some great adavatages in the new API that i would like to use. However the 
compatability matrix seems to indeicate that JbossCache2 is only compatiable 
with JBoss 5.X. 

Is there a reason for the incapatabilty between jboss4.04GA and JbossCache2?

Has any got JbossCache2 running in JbossAS?

many thanks


-lp 

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 PersistanceManager confusion

2006-10-31 Thread lpiccoli
hi al,

can u explain the strategy us described reviously
anonymous wrote : 
  | 2) Don't specify the PK; dont set the ID
  | 

Given the ID in the debtor class is an int. 


  |   public void setId(int id) {
  | this.id = id;
  | }
  | 
  | 

I have a question 

1) The default value with be '0'. How does the entitymanager.merge 
differenciate between '0' default and a debtor.setId(0)?

I can see how it can identified as 'null' by using a Integer object instead of 
an int.

many thanks

-lp

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

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


[jboss-user] [EJB 3.0] - merge one-to-one strategy

2006-10-31 Thread lpiccoli
hi all,

I am having troubles understanding the EJB3 updating strategy. I am familar 
with the traditional mechanism of dealing with just FK when updating a 
one-to-one relationship. However with EJB3 the FK is now a object.
From the EJB3trail there is a example that does the following for a persist. 
It loads both foreign key objects before setting, then persisting.


  | public double calculate (int fundId, int investorId, double saving) {
  | 26 
  | 27 Investor investor =
  | 28 em.find(Investor.class,
  | 29 Integer.valueOf(investorId));
  | 30 Fund fund =
  | 31 em.find(Fund.class,
  | 32 Integer.valueOf(fundId));
  | 33 
  | 34 int start = investor.getStartAge();
  | 35 int end = investor.getEndAge();
  | 36 double growthrate = fund.getGrowthrate();
  | 37 
  | 38 double tmp = Math.pow(1. + growthrate / 12., 12. * (end - start) + 
1);
  | 39 double result = saving * 12. * (tmp - 1) / growthrate;
  | 40 Timestamp ts = new Timestamp (System.currentTimeMillis());
  | 41 
  | 42 TimedRecord rec =
  | 43 new TimedRecord (fund, investor, saving, result, ts);
  | 44 em.persist (rec);
  | 45 
  | 46 return result;
  | 47   }
  | 

Is the same mechanism required when updating? 
Unfortunetly the EJB3trail does not have a one-to-one merge example. 
Is something like the following performant or are there better mechanisms? 
The major issue is executing the load of the FK relationship object. Which 
seems expensive when i already have the FK id.



  | 
  | strategy 1
  | 
  | public double update (int recId, int fundId, int investorId, double saving) 
{
  |  
  |  Investor investor =
  | em.find(Investor.class,
  |  Integer.valueOf(investorId));
  |  Fund fund =
  |  em.find(Fund.class,
  |  Integer.valueOf(fundId));
  | TimeRecord rec =
  |  em.find(Fund.class,
  |  Integer.valueOf(fundId));
  |  
  | rec.setSaving( saving);
  | rec.setFund( fund );
  | rec.setInvestor( investor ); 
  |  em.merge (rec);
  |  
  |  return result;
  |}
  | 


I have tried the following with little success as it complains about transient 
Objects




  | 
  | strategy 2 not working.
  | 
  | public double update2 (int recId, int fundId, int investorId, double 
saving) {
  |  
  |  Investor investor =new Investor( investorId);
  |  Fund fund = new Fund( fundId);
  | TimeRecord rec =
  |  em.find(Fund.class,
  |  Integer.valueOf(fundId));
  |  
  | rec.setSaving( saving);
  | rec.setFund( fund );
  | rec.setInvestor( investor ); 
  |  em.merge (rec);
  |  
  |  return result;
  |}
  | 
  | 

So my question is does the merge on one-to-one relationship require fullly 
populated detached objects or can it be done with just the id for the FK?

many thanks

-lp


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

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


[jboss-user] [EJB 3.0] - @Stateless JNDI bindings

2006-09-07 Thread lpiccoli
hi all,

since migrating to 4.0.4 GA my stateless session beans are nolonger bound to 
the same JNDI name as before.

Previously i could do the following. I assume the default JNDI name was the 
interface class name.


  | //jb = (Job) ctx.lookup(Job.class.getName());
  | 

However this is no longer finding the sessionbean.


  | @Stateless
  | public class JobBean implements Job {
  | 


what exaclty has changed and what is required to bing the JNDI name?

many thanks



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

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


[jboss-user] [EJB 3.0] - NOTYETINSTALLED + JBoss-4.0.4.GA + dependency

2006-09-06 Thread lpiccoli
hi all,

just migrated to Jboss 4.0.4GA. And my app is failing to deploy with the 
following error.

  | ObjectName: 
jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=ReportBean,service=E
  | JB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | persistence.units:unitName=as
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:unitName=as
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=AssetBean,service=EJB3
  | 
jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=DepreciationBean,service=EJB
  | 3
  | jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=JobBean,service=EJB3
  | jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=ReportBean,service=EJB3
  | 


OK so i gather from the forum that JBoss4.0.4 is stricter on the dependancy 
checking. I have seen a work around for EJB injection using the 
@ignoreDependency but nothing for EntityManagers.

My code is 


  | 
  | @Stateless
  | public class JobBean implements Job {
  | 
  |   @PersistenceContext (unitName=as)
  |   protected EntityManager em;
  | 

I have seen many request on the same topics but no solutions. If there is a 
solution please point it out so it wont be asked again.

thanks

-lp

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

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