Import an external library to RAP-project using ServletBridge [message #115550] |
Fri, 12 December 2008 11:33  |
Eclipse User |
|
|
|
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 14:49   |
Eclipse User |
|
|
|
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 #115746 is a reply to message #115720] |
Mon, 15 December 2008 07:28  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04193 seconds