| Eclipse 3.8/rap 1.5 helpSystem problem [message #896564] |
Wed, 18 July 2012 18:18  |
Ana Tatavu Messages: 10 Registered: July 2009 |
Junior Member |
|
|
I switched recently from RAP 1.4(Eclipse 3.7,jvm 1.6) to RAP 1.5 (eclipse 3.8, jvm 1.7)
In the 1.4 version of our RAP product help system is working fine, in 1.5 doesn't work anymore.
The help files are organized..
Plugin...
-src
-help
- html
Toc.xml
The extension point
<extension
point="org.eclipse.help.toc">
<toc
file="help/toc.xml"
primary="true">
</toc>
</extension>
The help is invoked by opening a browser:
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchBrowserSupport browserSupport = workbench.getBrowserSupport();
try
{
IWebBrowser browser = browserSupport.createBrowser("helpBrowser"); //$NON-NLS-1$
browser.openURL(getUrl());
}
catch (PartInitException e)
{
Activator.getDefault().logError(getClass(), e);
}
private static URL getUrl()
{
StringBuffer sb = RWT.getRequest().getRequestURL();
String urlString = sb.toString();
urlString = StringUtils.removeEnd(urlString, ApplicationConstants.APPLICATION_ROOT);
urlString = urlString + "/index.jsp";//$NON-NLS-1$
try
{
return new URL(urlString);
}
catch (MalformedURLException e)
{
throw new IllegalArgumentException("Failed to construct URL.");
}
}
When opening the url we got 404 message in RAP 1.5 only.
What can I do about it,
Thank you.
Ana
|
|
|
| Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896607 is a reply to message #896564] |
Thu, 19 July 2012 03:06   |
Ivan Furnadjiev Messages: 1464 Registered: July 2009 |
Senior Member |
|
|
Hi Ana,
we have a bug opened for this issue:
383867: The eclipse help system (helpSupport) UI does not work properly
in RAP 1.5
https://bugs.eclipse.org/bugs/show_bug.cgi?id=383867
Austin provided a help bundle patch in comment#2.
HTH,
Ivan
On 7/19/2012 1:18 AM, Ana Mising name wrote:
> I switched recently from RAP 1.4(Eclipse 3.7,jvm 1.6) to RAP 1.5
> (eclipse 3.8, jvm 1.7)
> In the 1.4 version of our RAP product help system is working fine, in
> 1.5 doesn't work anymore.
> The help files are organized..
> Plugin...
> -src
> -help
> - html
> Toc.xml
> The extension point <extension
> point="org.eclipse.help.toc">
> <toc
> file="help/toc.xml"
> primary="true">
> </toc>
>
> </extension>
> The help is invoked by opening a browser:
> IWorkbench workbench = PlatformUI.getWorkbench();
> IWorkbenchBrowserSupport browserSupport =
> workbench.getBrowserSupport();
> try
> {
> IWebBrowser browser =
> browserSupport.createBrowser("helpBrowser"); //$NON-NLS-1$
> browser.openURL(getUrl());
> }
> catch (PartInitException e)
> {
> Activator.getDefault().logError(getClass(), e);
> }
> private static URL getUrl()
> {
> StringBuffer sb = RWT.getRequest().getRequestURL();
> String urlString = sb.toString();
> urlString = StringUtils.removeEnd(urlString,
> ApplicationConstants.APPLICATION_ROOT);
> urlString = urlString + "/index.jsp";//$NON-NLS-1$
> try
> {
> return new URL(urlString);
> }
> catch (MalformedURLException e)
> {
> throw new IllegalArgumentException("Failed to construct
> URL."); }
> }
>
> When opening the url we got 404 message in RAP 1.5 only.
>
> What can I do about it,
> Thank you.
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
|
|
| Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896794 is a reply to message #896736] |
Thu, 19 July 2012 16:02   |
Ana Tatavu Messages: 10 Registered: July 2009 |
Junior Member |
|
|
I cannot use just the old help bundles.
To use those, I need the old lucene ones, and those requires an old version of jasper .
See below the diag from Tomcat's console:
108 ACTIVE javax.servlet_3.0.0.v201112011016
109 ACTIVE javax.el_2.2.0.v201108011116
110 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
111 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.300.v20120522-2049
112 ACTIVE javax.servlet.jsp_2.2.0.v201112011158
113 ACTIVE org.apache.jasper.glassfish_2.2.2.v201205150955
114 INSTALLED org.apache.jasper_5.5.17.v201101211617
115 ACTIVE org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20120522-2049
116 ACTIVE org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049
117 ACTIVE org.eclipse.help.base_3.6.100.v201206081400
118 INSTALLED org.eclipse.help.webapp_3.6.1.r37_20110929
119 ACTIVE org.eclipse.equinox.servletbridge_1.2.200.v20120522-2049
120 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.2.100.v20120522-2049
Master=0
osgi> Diag 114
initial@reference:file:plugins/org.apache.jasper-5.5.17.v201101211617.jar [114]
Direct constraints which are unresolved:
Missing imported package javax.servlet.jsp_[2.0.0,2.1.0).
Missing imported package javax.servlet.jsp.el_[2.0.0,2.1.0).
Missing imported package javax.servlet.jsp.resources_[2.0.0,2.1.0).
Missing imported package javax.servlet.jsp.tagext_[2.0.0,2.1.0).
Missing imported package org.apache.commons.el_[1.0.0,2.0.0).
Missing optionally imported package org.apache.tools.ant_0.0.0.
Missing optionally imported package org.apache.tools.ant.taskdefs_0.0.0.
Missing optionally imported package org.apache.tools.ant.types_0.0.0.
Missing optionally imported package org.apache.tools.ant.util_0.0.0.
Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
osgi>
Ana
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01853 seconds