Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Import an external library to RAP-project using ServletBridge
Import an external library to RAP-project using ServletBridge [message #115550] Fri, 12 December 2008 16:33 Go to next message
Alex is currently offline AlexFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I'm looking for a solution to this problem for several days. I want to
deploy my RAP app on an external server (Tomcat 5.5). As far as I don't
need some external libraries this works fine using the equinox servlet
bridge.

I need to communicate with an instance of the quartz scheduler, but in my
RAP-Application the import failed. Maybe some dependencies missing, so I
implemented a minimal class, that has no more dependencies, and packed it
into a jar (test.jar). This I've included in my RAP-Application
(WEB-INF/lib, classpath is valid) and deployed my project on the server as
usual. Invoking the project in the browser causes the exception beneath.

The test.jar you can find in the plug-in-jar of my project, RAP_1.0.0.jar
(jakarta-tomcat-5.5.9\webapps\myproj\WEB-INF\eclipse\plugins ). Any other
possible locations I have already tried, just like the configuration
properties, that seemed logic to me. Is there anything I did not see or
doesn't it even work that way? Thanks for your support and please excuse
my newbie question.

java.lang.RuntimeException: java.lang.Error: Unresolved compilation
problem:
The import org.test cannot be resolved
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.handleUIThre adException(RWTLifeCycle.java:291)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.executeUIThr ead(RWTLifeCycle.java:271)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:154)
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$1.r un(LifeCycleServiceHandler.java:60)
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:176)
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:45 )
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:33)
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.eclipse.equinox.servletbridge.BridgeServlet.service(Brid geServlet.java:115)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Re: Import an external library to RAP-project using ServletBridge [message #115588 is a reply to message #115550] Fri, 12 December 2008 19:49 Go to previous messageGo to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Hello Alex,

Have you tried wrapping the library you want to use as a plug-in (using
PDE's "Plug-in from existing JAR archives" wizard) and including it with
the RAP application?

Regards,
Neil



Alex wrote:

> Hi,

> I'm looking for a solution to this problem for several days. I want to
> deploy my RAP app on an external server (Tomcat 5.5). As far as I don't
> need some external libraries this works fine using the equinox servlet
> bridge.

> I need to communicate with an instance of the quartz scheduler, but in my
> RAP-Application the import failed. Maybe some dependencies missing, so I
> implemented a minimal class, that has no more dependencies, and packed it
> into a jar (test.jar). This I've included in my RAP-Application
> (WEB-INF/lib, classpath is valid) and deployed my project on the server as
> usual. Invoking the project in the browser causes the exception beneath.

> The test.jar you can find in the plug-in-jar of my project, RAP_1.0.0.jar
> (jakarta-tomcat-5.5.9webappsmyprojWEB-INFeclipseplugins). Any other
> possible locations I have already tried, just like the configuration
> properties, that seemed logic to me. Is there anything I did not see or
> doesn't it even work that way? Thanks for your support and please excuse
> my newbie question.

> java.lang.RuntimeException: java.lang.Error: Unresolved compilation
> problem:
> The import org.test cannot be resolved
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.handleUIThre adException(RWTLifeCycle.java:291)
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.executeUIThr ead(RWTLifeCycle.java:271)
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:154)
>
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$1.r un(LifeCycleServiceHandler.java:60)
>
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:176)
>
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:45 )
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:33)
>
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
>
org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
org.eclipse.equinox.servletbridge.BridgeServlet.service(Brid geServlet.java:115)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Re: Import an external library to RAP-project using ServletBridge [message #115697 is a reply to message #115588] Mon, 15 December 2008 08:47 Go to previous messageGo to next message
Alex is currently offline AlexFriend
Messages: 6
Registered: July 2009
Junior Member
Hello Neil,

yes, I've tried to wrap the test.jar in a plug-in. Then I included it in
the feature.xml. After deployment I can see the TestPlugin.jar in the
WEB-INF/eclipse/plugins directory. But the exception that appears is still
the same.

Is there anything else I can do?

Thanks a lot,
Alex
Re: Import an external library to RAP-project using ServletBridge [message #115708 is a reply to message #115588] Mon, 15 December 2008 09:50 Go to previous messageGo to next message
Alex is currently offline AlexFriend
Messages: 6
Registered: July 2009
Junior Member
Hmm, next step: I added the created TestPlugin as a "Required Plug-in" in
the Dependencies-menu of the build-properties. After doing that I got this
exception, although I haven't changed anything in the
entrypoint-configuration:

java.lang.IllegalArgumentException: An entry point named 'default' does
not exist.
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:77)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
java.lang.Thread.run(Thread.java:619)
Re: Import an external library to RAP-project using ServletBridge [message #115720 is a reply to message #115708] Mon, 15 December 2008 10:05 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Alex wrote:
> Hmm, next step: I added the created TestPlugin as a "Required Plug-in"
> in the Dependencies-menu of the build-properties. After doing that I got
> this exception, although I haven't changed anything in the
> entrypoint-configuration:
>
> java.lang.IllegalArgumentException: An entry point named 'default' does
> not exist.
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:77)
>
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
>
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
>
> java.lang.Thread.run(Thread.java:619)

This is usually a follow-up error. The entry point does not exist
because the bundle is not resolved, because ...
Sure you added the required new bundle in your launch config?

Regards, Ralf
Re: Import an external library to RAP-project using ServletBridge [message #115746 is a reply to message #115720] Mon, 15 December 2008 12:28 Go to previous message
Alex is currently offline AlexFriend
Messages: 6
Registered: July 2009
Junior Member
Ralf Sternberg wrote:

> This is usually a follow-up error. The entry point does not exist
> because the bundle is not resolved, because ...
> Sure you added the required new bundle in your launch config?

> Regards, Ralf

You're right. The plug-in with the jars wasn't included in the
feature.xml. Now it seems to work. Thank you.
Previous Topic:I18N with single-sourcing
Next Topic:Combo border theming
Goto Forum:
  


Current Time: Wed Feb 01 13:49:26 GMT 2023

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

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

Back to the top