[JBoss jBPM] - HTTP Status 403 - Access to the requested resource has been
by alok0007_07
I m facing a problem. I have created some users in JBPM application and i have assigned some task to each user and I want that each user can see only his own task not of others.
But when i logged in with the users i created , i got the taks of other users too...
I m facing the following error while logging in after creating new group and user...
HTTP Status 403 - Access to the requested resource has been denied
do the following for new group and user creation :
1) create a group of name 'guest'
insert into JBPM_ID_GROUP (ID_,CLASS_,NAME_,TYPE_)
values(812,'G','guest','security-role');
2) Then create a user of name 'user'
insert into JBPM_ID_USER (ID_,CLASS_,NAME_,EMAIL_,PASSWORD_)
values(123,'U','guest','guest(a)sample.domain','shipper');
3) Then insert into membership table
insert into JBPM_ID_MEMBERSHIP (ID_,CLASS_,USER_,GROUP_)
values(52,'M',812, 123);
But it gives the same error as i mentioned ... Is anything I left to do ...
Please suggest....waiting for reply..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159500#4159500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159500
17 years, 9 months
[JBoss jBPM] - Could not make local copy for file: root/server/server/jbpm/
by sanjayce107
Hello everybody,
I m getting following exception.when i m trying to start the server .I m using JBPM 3.2.2.
13:24:30,296 ERROR [MainDeployer] Could not make local copy for file:/F:/JBPM/jbpm-jpdl-suite-3.2.2_2/jbpm-jpdl-3.2.2/server/server/jbpm/conf/jboss-service.xml
java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1345)
at java.io.File.createTempFile(File.java:1434)
at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1167)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:840)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
13:24:30,328 ERROR [MainDeployer] Could not initialise deployment: file:/F:/JBPM/jbpm-jpdl-suite-3.2.2_2/jbpm-jpdl-3.2.2/server/server/jbpm/conf/jboss-service.x
ml
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
13:24:30,390 INFO [Server] Runtime shutdown hook called, forceHalt: true
13:24:30,406 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
13:24:30,406 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
Press any key to continue . . .
if anybody have idae about it please tell me.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159471#4159471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159471
17 years, 9 months
[JBoss jBPM] - lazy init exception on getting Tasklist through Command EJB
by lblaauw
Hi all,
Another challenge ;-0
When I get the task list for a string[] of actors I correctly get all tasks
for all the actors in the list. However the variables in the taks have not been initialized and consequently hibernate throws a lazy exception..
In de GetTaskListCommand when you get the tasklist for a single actor there is a boolean wich if you set this to true it correctly gets all task for the single actor with all variables retrieved for all tasks in the list.
There however does not seem to be this option on getting the multiple actor tasklist.... I tried various ways of getting around this since I do need the variables but the only way I have found to be working is to iterate over each task in the tasklist and initialize per task...
Now this is incurring a lot of overhead in calling the EJB Command bean for every task...
So the question is, is there a preferred way and maybe even why is there no:
GetTaskListCommand(java.lang.String actor, boolean includeVariables)
for the multiple actor tasklist ?
I tried to no avail:
- retrieveTaskInstanceDetails(java.util.List taskInstanceList) doesnt seem to do anything ?
- setIncludeAllVariables to true on the GetTaskListCommand, also does not seem to do anything...
For both of the above no log information of exceptions are being thrown in my logs and the jboss server is on full debug as is my application.
I am using jPDL 3.2.3 on JBoss 4.2.2 GA by the way.
Greetings,
Leo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159457#4159457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159457
17 years, 9 months