Community
Participate
Working Groups
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.
I'll see if I can figure out the problem, most likely it is a missing bundle.
What version of the Tomcat server are you running?
I am running the SpringSource tc-server spring edition which is the tomcat 6.0.26.A Release Curtis
I can reproduce the problem using Tomcat 6 and Eclipse 3.7.
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.
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
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
Fixed in 3.8M3