Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360592

Summary: [Webapp] Deploying information center as a web archive not working in Eclipse 3.7
Product: [Eclipse Project] Platform Reporter: Curtis <clindsey>
Component: User AssistanceAssignee: Chris Goldthorpe <cgold>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cgold
Version: 4.2   
Target Milestone: 3.8 M3   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Curtis CLA 2011-10-11 16:43:24 EDT
Build Identifier:  M20110909-1335

Following the help instructions to create an information center that can be deployed as a web archive is not producing a working war file.  With eclipse 3.7 and 3.7.1 I get this reported by the tomcat server.

<------ log info starts here -------->

!SESSION 2011-10-10 14:56:18.580 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_21-ea
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

!ENTRY org.eclipse.update.configurator 4 0 2011-10-10 14:56:18.580
!MESSAGE Unable to find feature.xml in directory: /var/tc-server/springsource/tpubs-group-ic/work/Catalina/localhost/371test/eclipse/features/org.eclipse.help.infocenter_feature_1.0.0.jar

!ENTRY org.eclipse.help.webapp 4 0 2011-10-10 14:56:30.529
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.help.webapp_3.6.0.v20110518 [5]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.help.base; bundle-version="[3.5.0,4.0.0)"
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 4 0 2011-10-10 14:56:30.568
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.help.webapp_3.6.0.v20110518.jar/ was not resolved.

<----------- End of log ----------->

All files are in their expected locations.  
Also this works in eclipse 3.5.x and 3.6.x

Curtis

Reproducible: Always

Steps to Reproduce:
1. In eclipse 3.7.1 Classic follow the instructions Eclipse Help for "Deploying the information center as a Web Archive"
2.Create a war file from the help folder "jar -cvf 371test.war ."
3.Deploy the war file to the webapps folder of running tomcat server.
Comment 1 Chris Goldthorpe CLA 2011-10-11 16:56:07 EDT
I'll see if I can figure out the problem, most likely it is a missing bundle.
Comment 2 Chris Goldthorpe CLA 2011-10-11 18:29:06 EDT
What version of the Tomcat server are you running?
Comment 3 Curtis CLA 2011-10-11 18:42:31 EDT
I am running the SpringSource tc-server spring edition which is the 
tomcat 6.0.26.A Release

Curtis
Comment 4 Chris Goldthorpe CLA 2011-10-11 20:00:36 EDT
I can reproduce the problem using Tomcat 6 and Eclipse 3.7.
Comment 5 Chris Goldthorpe CLA 2011-10-12 12:52:25 EDT
The problem is that the org.eclipse.help.webapp bundle is not activated due to a missing dependency, org.apache.lucene.core.

Can you add org.apache.lucene.core to the plug-ins section of /org.eclipse.help.infocenter-feature/feature.xml and repeat the steps. Everything should work after that.
Comment 6 Chris Goldthorpe CLA 2011-10-12 13:09:24 EDT
The same problem exists in the Eclipse 3.8 development stream, I have committed a fix to master with commit message:

Bug 360592 - [Webapp] Deploying information center as a web archive not
working in Eclipse 3.7
Comment 7 Curtis CLA 2011-10-12 13:43:58 EDT
I added the plugin id to the feature.xml file and can now build an information center web archive file that works on tomcat 6.

Thanks for finding the solution.

Curtis
Comment 8 Chris Goldthorpe CLA 2011-10-17 16:32:50 EDT
Fixed in 3.8M3