Issue Details (XML | Word | Printable)

Key: FOR-735
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Ross Gardler
Reporter: Gunther Sablon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forrest

Plugins are not correctly deployed in webapp mode

Created: 21/Nov/05 06:16 PM   Updated: 27/Mar/07 09:24 PM
Return to search
Component/s: Core operations, Launch servlet WAR, Plugins (general issues)
Affects Version/s: 0.7
Fix Version/s: 0.8

Time Tracking:
Not Specified

Environment:
Issue Links:
Reference
 

Other Info: Patch available


 Description  « Hide
(At this point I didn't try this scenario step by step any more; basically it is what we did to setup the site, except that we copied our project data from forrest 0.6 before trying the pdf links)

- run forrest webapp to create an empty webapp
- configure Tomcat to run the webapp (we did it by creating a context descriptor and put it onder Tomcat's config directory)
- the pdf links give an error "Resource Not Found"

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ross Gardler added a comment - 21/Nov/05 07:56 PM
I have not investigated this but it sounds like plugins are not being correctly packaged in the WAR.


Ross Gardler added a comment - 07/Dec/05 06:18 AM
Changed subject to reflect the wider implications of this issue.

David Crossley added a comment - 07/Dec/05 12:22 PM
There is various discussion in the thread:
 http://marc.theaimsgroup.com/?t=113388482500001
 "Using plugins with forrest as webapp"

Ross Gardler added a comment - 07/Dec/05 03:14 PM
The "webapp" target does not include the plugin files, but the "war" target does:

WORKAROUND:

Build the war file with "forrest war" and deploy that instead. Your servlet engine should unpack it when it is first used, but you could always unpack manually if necessary.

Gunther Sablon added a comment - 08/Dec/05 03:11 AM
I ran forrest war, and then manually moved the build/plugins directory into the root directory of each of our forrest webapps..
Restarted Tomcat and... it works!

Thanks!

David Crossley added a comment - 14/Dec/05 08:50 AM
The thread mentioned on 07 Dec above was restarted here:
"Using plugins with forrest as webapp"
http://marc.theaimsgroup.com/?t=113448261400001

Thorsten Scherler added a comment - 29/Jan/06 09:17 PM
Can it be because the plugins got downloaded even we have them on the hard drive?

Ross Gardler added a comment - 30/Jan/06 06:49 PM
The problem is simply that the plugins are not located in the war file in a place Forrest expects to find them. They are not downloaded when running a war, ony when building a war. And even then they are only downloaded if they are not already present on the local machine (either in build or in the plugins src directory.

Johannes Schaefer added a comment - 15/Feb/06 11:37 PM
To get it running (forrest-0.7-377981, tomcat 5.5.15)

1. Adapt web.xml, see http://tinyurl.com/cn5ep (Mail archive)
   Now Forrest runs and produces some output but *not a single*
   plugin works.

2. Copy Forrest-0.7/build/plugins into the webapp dir and change
   the plugins entry in
      webapps\my-project\WEB-INF\xconf\forrest-core.xconf
   to
     <plugins>@context.home@/plugins</plugins>
   as described in http://issues.apache.org/jira/browse/FOR-403

Note: you must run Forrest first to get the plugins you need into the forrest/build directory.


Johannes Schaefer added a comment - 16/Feb/06 02:44 AM
seems to work in 0.8, too.

it's better to create a war-file using 'forrest war',
this will include the plugins (see Ross' comment above)

step 2 needs to be then
  <plugins>@context.home@/build/plugins</plugins>

David Crossley added a comment - 13/Nov/06 01:15 AM
There is a patch provided in the thread listed above, i.e.
 http://marc.theaimsgroup.com/?t=113388482500001
 "Using plugins with forrest as webapp"
but the thread broke and started again here:
 http://marc.theaimsgroup.com/?t=113448261400001
 "SV: Using plugins with forrest as webapp"