[JBoss jBPM] - Re: HTTP Status 403 - Access to the requested resource has b
by wootenator
Thanks for the suggestions.
I tried these suggestions but still have the same issue. I added these roles to the web.xml since only admin was present initially and redeployed the war file. I checked this several times and it seems to be OK now.
The URL I am hitting is the one they tell you to use in the book:
http://localhost:8080/jbpm-console
When I go there I see the following sample users listed next to the credentials input fields :
user name_____________password_____________ group
manager **************manager ***********user,manager,admin
-----------------------------------------------------------------------
user ****************** user **************user
-------------------------------------------------------------------
shipper ***************shipper ************** user
-----------------------------------------------------------------
admin ***************admin***************user,admin
I tried adding powellb into the manager and admin groups. He was already in the participants group via the SQL script from the book.
The following security constraint is present in the web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Area</web-resource-name>
<url-pattern>/sa/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
I can login ok as manager/manager and admin/admin. These credentials allow me to login and view all the deployed processes, tokens, tasks,etc so I believe the JPBM process deployed. when I changed the role-name above from "user" to "powellb" then couldn't log in as manager anymore, so changed that back. My assumption is that powellb should take me to the form for swimlane"Talent scout", but the url I am redirected towards is http://localhost:8080/jbpm-console/sa/processes.jsf
In the book the URL seems to be
http://localhost:8080/jbpm-console/search/tasks.jsf
but after logging in as manager/manager I put that URL in the browser and get:
HTTP Status 404 - /jbpm-console/search/tasks.jsf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139472#4139472
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139472
18 years
[JBoss Portal] - full images not displaying in portlet
by jackalista
Hi,
I am having a problem getting a whole image to display in a new portlet I'm working on. My apologies if this is simple; I've only a few days experience on jbossportal. I saw a similar post (see link below) and tried the code example but it makes no difference. The image appears to occupy it's actual dimensions for an instant as the portlet loads and then is immediately scaled down or occluded to a very small width, only a couple of pixels and about 5 pixels high. I've tried setting the width and height to 100 by 100 and 100px by 100px and that made no difference. Because of the apparent resizing I'm wondering if some javascript isn't doing this but I've not found anything about it anywhere in docs, wiki or forums. I started with the HelloWorldJSPPortlet example code and modified it to not post to the 2nd page and to simply display this image as a link. Here's the img tag:
| <img src="<%= renderRequest.getContextPath() %>/jsp/images/sun0504i-landfill5.jpg" height="100px" width="100px">
|
I got the stuff referencing the renderRequest(...) from this post I mentioned above:
http://jboss.com/index.html?module=bb&op=viewtopic&t=82666
I'm not having the same problem as that user however as the image shows and the link it's wrapped in works, it's just not showing the whole image. I can post more code if that would help...
Thanks in advance!
jack
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139463#4139463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139463
18 years
[EJB 3.0] - Re: Create timer -
by rruppel
hi all,
i know this thread is old, but I have an doubt about this subject
I have the same problem, and both suggestions worked
1. editing the ejb-deployer to use the same datasource for the timer
2. editing the jbossjta-properties.xml to allow the two resources at same transaction
ok, but I think it would be even better that I could just create two transactions:
first I persist the information I want... I commit and then I start a new transaction to only create the Timer...
i tryed to do this inside a Stateless bean, just adding TransactionAttribute of type REQUIRES_NEW to the method
but this didnt worked.... someone can explain and please give a solution
thanks in advance
|
| public void firstMethod(){
|
| entyManager.persist(something);
| schedule();
| }
|
|
| @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
| public void schedule(){
| timerService.createTimer(0, "myTimer");
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139454#4139454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139454
18 years
[Messaging, JMS & JBossMQ] - Re: haSingleton JMS + cluster (publisher node receiving its
by mdonato
So i have big problem,
I have an application that willl run in 2 servers ... the same application !!
My application has an SessionBean that send messages to JMS, and have 2 MDB's that receive messages, one for queue and other for topic.
But when the message was sent to "topic", for now, it's ok to be delivered to all those servers, including it self, but, when the message was sent to "queue", the server who sent that message should not receive it, only one of the other's servers may receive.
I think that JMS was designed to sent messages to other's servers or applications, but not to it self!
Is there a workaround ??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139446#4139446
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139446
18 years