Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Eclipse 3.8/rap 1.5 helpSystem problem(Help System doesn't work after moving from RAP 1.4 to RAP 1.5)
Eclipse 3.8/rap 1.5 helpSystem problem [message #896564] Wed, 18 July 2012 18:18 Go to next message
Ana Tatavu is currently offline 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 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
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 #896709 is a reply to message #896564] Thu, 19 July 2012 09:10 Go to previous messageGo to next message
Ana Tatavu is currently offline Ana Tatavu
Messages: 10
Registered: July 2009
Junior Member
Do you know when the fix will be incorporated into RAP?
I am not sure if my company policy allows shipping with a patch applied outside of RAP itself development.
Thank you,
Ana


Ana
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896729 is a reply to message #896709] Thu, 19 July 2012 10:05 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
Hi Ana,
I didn't investigate what is the problem, but from reading the code of
the proposed attached patch, it modifies *only* the original Eclipse
help bundles (not part of the RAP framework) in order to work correctly
with RAP. Without further investigation, I couldn't say if it's possible
to make the help system works again without these modifications. Are you
using the same Eclipse Help bundles that worked before, but not with 1.5?
Best,
Ivan

On 7/19/2012 4:11 PM, Ana Mising name wrote:
> Do you know when the fix will be incorporated into RAP?
> I am not sure if my company policy allows shipping with a patch
> applied outside of RAP itself development.
> Thank you,
> Ana
>

--
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 #896734 is a reply to message #896729] Thu, 19 July 2012 10:14 Go to previous messageGo to next message
Ana Tatavu is currently offline Ana Tatavu
Messages: 10
Registered: July 2009
Junior Member
Before I used the help bundles from 3.7, now are the ones from 3.8.

Ana
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896736 is a reply to message #896734] Thu, 19 July 2012 10:18 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
You could try to use your old help bundles with RAP 1.5.

On 7/19/2012 5:14 PM, Ana Tatavu wrote:
> Before I used the help bundles from 3.7, now are the ones from 3.8.

--
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 Go to previous messageGo to next message
Ana Tatavu is currently offline 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
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #897006 is a reply to message #896794] Fri, 20 July 2012 14:34 Go to previous messageGo to next message
Ana Tatavu is currently offline Ana Tatavu
Messages: 10
Registered: July 2009
Junior Member
The bug(https://bugs.eclipse.org/bugs/show_bug.cgi?id=383867) was opened against
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

My issue is with Eclipse 3.8 and RAP 1.5.


Ana
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #897012 is a reply to message #897006] Fri, 20 July 2012 14:46 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
Hi Ana,
if you think that this is a problem in RAP framework (not in the new
help and related bundles), please open a bugzilla with a simple project
to reproduce the issue.
Best,
Ivan

On 7/20/2012 9:34 PM, Ana Tatavu wrote:
> The bug(https://bugs.eclipse.org/bugs/show_bug.cgi?id=383867) was
> opened against Build Identifier: Version: Indigo Service Release 1
> Build id: 20110916-0149
>
> My issue is with Eclipse 3.8 and RAP 1.5.

--
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 #897016 is a reply to message #897012] Fri, 20 July 2012 14:55 Go to previous message
Ana Tatavu is currently offline Ana Tatavu
Messages: 10
Registered: July 2009
Junior Member
The original defect is patching the old help bundles, not the new ones.

Ana
Previous Topic:Logout
Next Topic:Perspective Icon
Goto Forum:
  


Current Time: Fri Aug 22 06:07:06 EDT 2014

Powered by FUDForum. Page generated in 0.01969 seconds