Bug 777817 (SOA-343) - Debug situation where process image is not available in jBPM console
Summary: Debug situation where process image is not available in jBPM console
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-343
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBPM - within SOA
Version: 4.2 CR2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2 CR3
Assignee: Mike Brock
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-18 17:43 UTC by Len DiMaggio
Modified: 2013-06-17 05:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
soa-4.2.0.beta2.zip standalone-soa-4.2.0.beta2.zip
Last Closed: 2008-02-11 16:07:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot.png (94.98 KB, image/png)
2008-01-18 17:48 UTC, Len DiMaggio
no flags Details
server.log.gz (439.20 KB, application/x-gzip)
2008-01-18 17:48 UTC, Len DiMaggio
no flags Details
Screenshot_not_available.jpg (176.52 KB, image/jpeg)
2008-02-04 21:34 UTC, Len DiMaggio
no flags Details
Screenshot_cp.png (215.32 KB, image/png)
2008-02-05 19:41 UTC, Len DiMaggio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 777733 0 high CLOSED bpm_orchestration1 needs to be updated 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 777737 0 high CLOSED Error on Processing Image of an started process on the jBPM console 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 777818 0 high CLOSED bpm_orchestration1 quickstart does not deploy in beta2 build 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 777819 0 high CLOSED org.jbpm.JbpmException: setRollbackOnly was invoked while configuration specifies user managed transactions 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 777862 0 high CLOSED JBPM quickstarts do not deploy processimage.jpg and gpd.xml files 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-343 0 Major Closed Debug situation where process image is not available in jBPM console 2012-07-23 13:53:08 UTC

Internal Links: 777733 777737 777818 777819 777862

Description Len DiMaggio 2008-01-18 17:43:06 UTC
Date of First Response: 2008-01-19 05:33:18
project_key: SOA

This may be related to the SOA-253 and SOA-249 issues that Jehudi logged, but then again maybe not. The issue is: what governs when a jBPM process image can be displayed in the jBPM console?

What I'm seeing is that when a process is started via the quickstart (via the NewProcessInstanceCommand API call), it appears in the jBPM console, but if I try display its process image, this error is returned in the GUI:  [Process Image Not Available] - I don't see an error in the server.log (attached)

But - if I start the process through the jBPM console, the process image can be displayed.

Comment 1 Len DiMaggio 2008-01-18 17:48:13 UTC
Attachment: Added: Screenshot.png
Attachment: Added: server.log.gz


Comment 2 Len DiMaggio 2008-01-18 17:48:39 UTC
Link: Added: This issue is related to SOA-295


Comment 3 Len DiMaggio 2008-01-18 17:48:54 UTC
Link: Removed: This issue is related to SOA-295 


Comment 4 Len DiMaggio 2008-01-18 17:49:07 UTC
Link: Added: This issue is related to SOA-249


Comment 5 Len DiMaggio 2008-01-18 17:49:27 UTC
Link: Added: This issue is related to SOA-253


Comment 6 Len DiMaggio 2008-01-18 18:36:38 UTC
Link: Added: This issue related SOA-344


Comment 7 Len DiMaggio 2008-01-18 20:37:29 UTC
Link: Added: This issue related SOA-345


Comment 8 Mark Little 2008-01-19 10:33:18 UTC
Len, are you looking at this?

Comment 10 Tom Baeyens 2008-01-21 07:47:32 UTC
we don't have anyone in the team that can have a look at this right now.  priority for this issue is not high enough.  the person that build the console left the team.  so we are not better qualified then anyone else to fix this.   the learning curve is not justified.  especially since we are looking at a replacement of this console.

my suggestion: document it as a limitation.

Comment 11 Len DiMaggio 2008-01-21 16:32:26 UTC
For users running the quickstarts - some confusion, but not a deadly problem as these are just examples - and, maybe not a serious user problem - how may users will want to manually interact with the console for apps that they deploy/start via API? Maybe few or none.

But...

What's the root of the problem? Will it cause problems that are not obvious now?



Comment 12 Kevin Conner 2008-01-24 07:00:12 UTC
This is almost certainly a consequence of the fact that we have been using our own process deployment mechanism.

This is being replaced by a standard jBPM deployment mechanism (through the upload servlet) and should fix this issue.

This should be assigned to Kurt Stam and linked into JBESB-1401.


Comment 13 Kevin Conner 2008-01-24 07:02:30 UTC
Link: Added: This issue depends JBESB-1401


Comment 14 Kurt Stam 2008-01-25 19:04:37 UTC
The process definitions for the QuickStarts are now deployed using the DeployProcessToServer ant task, and we now include all the files in the processDefinition directory. Deploying the jpg along with the processdefinition.xml fixes the issue.

Comment 15 Len DiMaggio 2008-02-04 19:50:51 UTC
Link: Added: This issue related SOA-390


Comment 17 Len DiMaggio 2008-02-04 21:34:40 UTC
Steps to recreate the problem:

cd bpm_orchestration1

ant deploy

ant deployProcess

Go to the jBPM process - view the process diagram - see the atatched screenshot


Comment 18 Len DiMaggio 2008-02-04 21:34:40 UTC
Attachment: Added: Screenshot_not_available.jpg


Comment 19 Len DiMaggio 2008-02-05 14:37:08 UTC
This is still a problem - Burr seeing in CR2 too.

Comment 20 Len DiMaggio 2008-02-05 16:36:09 UTC
I'm seeing this issue on both the standalone and embedded servers in CR2.

Comment 22 Burr Sutter 2008-02-05 16:41:15 UTC
The problem of the missing image "[Process Image Not Available]" shows up when I use the IDE to generate the .par and the jbpm admin console to upload the .par.  Plus it also happens when I deploy directly from the IDE.  
I have verified that the .par file contains the .jpg so the bug is somewhere in the jbpm admin console configuration/code for CR2.



Comment 23 Len DiMaggio 2008-02-05 19:41:06 UTC
YES - this is working from:   /labs/jbossesb/branches/JBESB_4_2_1_GA_CP

See attachment.

Comment 24 Len DiMaggio 2008-02-05 19:41:06 UTC
Attachment: Added: Screenshot_cp.png


Comment 25 Len DiMaggio 2008-02-05 19:42:52 UTC
Changed this JIRA to a bug - and marked it as fond in CR2 build.

Comment 26 Len DiMaggio 2008-02-05 20:25:11 UTC
Just to retate - with the CP bits - the process diagram is displayed with these steps:

cd bpm_orchestration1

ant deploy

ant deployProcess

Go to the jBPM process - view the process diagram 

Comment 28 Kevin Conner 2008-02-05 21:25:34 UTC
The image is being deployed correctly but the fault lies with some changes that appear to have been made as part of the platform build process.

The jBPM console is normally deployed with the jsf files (and servlets) located under /sa/ but, for some reason, this has been changed in the platform to be /app/.

What is happening is that the page is being loading as .../jbpm-console/app/procdef.jsf?id=1&view=img and it contains an image tag with an alt message of "[Process Image Not Available]" and a src of "pi/1.jpg".

This image tag expects to find the image at .../jbpm-console/app/pi/1.jpg but this does not exist (hence the alt message being displayed).  The reason the image does not exist is that the link is supposed to refer to a servlet defined in the web.xml but this servlet is still defined with a pattern of /sa/pi.

The fix is to modify the console web.xml so that the faces servlet maps to the URL of /app/pi or revert the decision to move the application from /sa/ to /app/.

Comment 29 Mark Little 2008-02-07 08:35:20 UTC
Let's go with Kev's suggested fix for now and revisit why the build process changes the URL after the release.

Comment 30 trev 2008-02-07 17:51:34 UTC
from jcoleman

In the build-tools directory, these files contain the string "/sa/pi":

  builders/soa/p-consoles/jbpm/src/main/webapp/web-inf/jbpm4jsf-config.xml:        
<pattern>^/sa/pi/(\d+).jpg$</pattern>
  builders/soa/p-consoles/jbpm/src/main/webapp/web-inf/web.xml:        
<url-pattern>/sa/pi/*</url-pattern>
  builders/jbpm/resources/web-production.xml:        
<url-pattern>/sa/pi/*</url-pattern>
  builders/jbpm/resources/web-development.xml:        
<url-pattern>/sa/pi/*</url-pattern>

From our conversation, the first 2 are for the consoles, no idea about the
others.  Should all 4 be changed to "/app/pi" ?

The string doesn't appear in the built versions, presumably because it's
been packed into a war file.


Comment 31 Mike Brock 2008-02-07 23:13:58 UTC
fixed in trunk

Comment 32 Julian Coleman 2008-02-08 15:30:26 UTC
Unpacking the built jbpm-console.war files in both the standalone and embedded versions shows that the jbpm4jsf-config.xml and web.xml files still contain the string "sa/pi/*" :

  $ grep "[app|sa]/pi" deploy/WEB-INF/*xml server/server/jbpm/deploy/WEB-INF/*xml
  deploy/WEB-INF/jbpm4jsf-config.xml:        <pattern>^/sa/pi/(\d+).jpg$</pattern>
  deploy/WEB-INF/web.xml:        <url-pattern>/sa/pi/*</url-pattern>
  server/server/jbpm/deploy/WEB-INF/jbpm4jsf-config.xml:        <pattern>^/sa/pi/(\d+).jpg$</pattern>
  server/server/jbpm/deploy/WEB-INF/web.xml:        <url-pattern>/sa/pi/*</url-pattern>

so the change to "/app/si/*" is not being propagated correctly.


Comment 33 Mike Brock 2008-02-10 06:24:10 UTC
fixed in trunk.

Comment 34 Len DiMaggio 2008-02-11 16:07:59 UTC
Verified in both standalone and embedded servers in CR3.


Note You need to log in before you can comment on or make changes to this bug.