Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » a problem deploy ua as a war in web container(it is running but has some problem)
a problem deploy ua as a war in web container [message #1028392] Thu, 28 March 2013 07:45 Go to next message
Joe Lin is currently offline Joe LinFriend
Messages: 10
Registered: September 2012
Junior Member
UA base on JUNO.
running in tomcat 7

I have a problem when deploy ua as a war .
I found some need fix in feature project . it can running as a war in tomcat 7 after fix it. But i don't find any docs after drops some doc plugins.

references url
ua guide:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_war.htm&cp=2_0_19_1_4
fix file:
https://github.com/joelin/eclipse.platform.ua/blob/help42/org.eclipse.help.webapp/web-archive/org.eclipse.help.infocenter-feature/feature.xml

is something wrong for this?need your help! i am new guy in OSGi

[Updated on: Thu, 28 March 2013 07:55]

Report message to a moderator

Re: a problem deploy ua as a war in web container [message #1028401 is a reply to message #1028392] Thu, 28 March 2013 07:55 Go to previous messageGo to next message
Joe Lin is currently offline Joe LinFriend
Messages: 10
Registered: September 2012
Junior Member
post addtion to 5 msgs. i will add the url for references
Re: a problem deploy ua as a war in web container [message #1028822 is a reply to message #1028401] Thu, 28 March 2013 19:44 Go to previous messageGo to next message
marcellus ludovicus is currently offline marcellus ludovicusFriend
Messages: 5
Registered: October 2009
Junior Member
I have put the following in the feature.xml file for 4.2 before doing the export. Perhaps this will help:

<plugin
id="com.ibm.icu"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="javax.servlet"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="javax.servlet.jsp"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.apache.commons.logging"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.apache.lucene"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.apache.lucene.analysis"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.apache.lucene.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.contenttype"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.expressions"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.jobs"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.runtime"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.app"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.jetty"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.servlet"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.jsp.jasper"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.jsp.jasper.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.preferences"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="com.jcraft.jsch"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.help"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.help.base"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.help.webapp"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.osgi"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.osgi.services"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.update.configurator"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.runtime.compatibility"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="javax.el"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jetty.http"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jetty.io"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jetty.server"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jetty.servlet"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jetty.util"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.apache.jasper.glassfish"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
Re: a problem deploy ua as a war in web container [message #1028974 is a reply to message #1028822] Fri, 29 March 2013 01:27 Go to previous messageGo to next message
Joe Lin is currently offline Joe LinFriend
Messages: 10
Registered: September 2012
Junior Member
thx for your reply! I changed the feature.xml file.
I think the problem is that
what's configuration can make the OSGI framework auto load the plugins of doc without config it in feature file?

do i miss some dependence plugins?

[Updated on: Fri, 29 March 2013 01:54]

Report message to a moderator

Re: a problem deploy ua as a war in web container [message #1029386 is a reply to message #1028974] Fri, 29 March 2013 16:05 Go to previous messageGo to next message
marcellus ludovicus is currently offline marcellus ludovicusFriend
Messages: 5
Registered: October 2009
Junior Member
I'm not sure I understand your question. I place all of the doc plugins in the plugins directory before building the war file. If you want to dynamically load doc plugins after you have deployed a war file without doc plugins, I don't know of any way to do that.
Re: a problem deploy ua as a war in web container [message #1030653 is a reply to message #1029386] Sun, 31 March 2013 14:30 Go to previous messageGo to next message
Joe Lin is currently offline Joe LinFriend
Messages: 10
Registered: September 2012
Junior Member
I means without add the doc plugins in the file feature.xml.
But i tested add the doc plugins in the file(feature.xml) this weekend, it didn't display yet.
the code like this
 <plugin
         id="org.test.doc"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>


but the user guide said only add some documentation plugins to the webapps/help/WEB-INF/plugins directory. then it will display!

why i can't see the doc display?? does anybody can help me?
Re: a problem deploy ua as a war in web container [message #1034712 is a reply to message #1030653] Fri, 05 April 2013 20:14 Go to previous messageGo to next message
marcellus ludovicus is currently offline marcellus ludovicusFriend
Messages: 5
Registered: October 2009
Junior Member
Try this structure for the contents of the war file:

META-INF

WEB-INF
eclipse
configuration


lib

web.xml
Re: a problem deploy ua as a war in web container [message #1034716 is a reply to message #1034712] Fri, 05 April 2013 20:18 Go to previous message
marcellus ludovicus is currently offline marcellus ludovicusFriend
Messages: 5
Registered: October 2009
Junior Member
Let me try that again, posting seemed to occur without my being done.


Try to structure your war file as follows:
At the top level are the META-INF and WEB-INF directories.

In the WEB-INF, there should be a lib directory,an eclipse directory and a web.xml file.

In the lib directory is the equinox servletbridge jar.

In the eclipse directory, there should be configuration, features, and plugins directories, and a config.ini file.

This is a slightly different structure than the help may list.
Previous Topic:Deploying infocenter in OSGI web container (Virgo)
Next Topic:Help -> What's New
Goto Forum:
  


Current Time: Thu Mar 28 16:27:17 GMT 2024

Powered by FUDForum. Page generated in 0.05082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top