Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » deploying rap in tomcat: bundle not found and missing constraint
deploying rap in tomcat: bundle not found and missing constraint [message #493401] Sun, 25 October 2009 21:59 Go to next message
mschaf  is currently offline mschaf Friend
Messages: 6
Registered: October 2009
Junior Member
Hello rap users!
I try to deploy the rap demo exactly as describe here:
http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/deployment.html

The first minor problem happens in the step:
* Right-Click on the webAppBuilder.xml script in the IDE and "Run Ant".
An error box pops up, saying "'PDE Export' has encountered a problem. Unable to find plug-in: org.eclipse.help_0.0.0. Please check the error log for more details."
I seem to be able to fix this problem by removing the following section from org.eclipse.rap.demo.feature/feature.xml:
<plugin
id="org.eclipse.help"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

I continue step by step with the deploy-Howto and finally deploy the zipped rapdemo.war using the tomcat-5.5 installation that comes with Ubuntu linux.
Already before I open the deployed application, I have the following error log in
/usr/share/tomcat5.5/work/Catalina/localhost/rapdemo/eclipse /configuration/1256506535633.log:

!SESSION 2009-10-25 22:35:37.576 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.576
!MESSAGE Bundle org.eclipse.help@start not found.

!ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
!MESSAGE Bundle org.eclipse.rap.tutorial.rap@start not found.

!ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
!MESSAGE Bundle org.eclipse.rap.tutorial@start not found.

!ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.578
!MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not found.

!ENTRY org.eclipse.equinox.http.registry 4 0 2009-10-25 22:35:38.044
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Mi
ssing Constraint: Import-Package: javax.servlet; version="2.3.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolverError(AbstractBundle.java:1313)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolutionFailureException(AbstractBundle.java:1297)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:309)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:330)
[...]

Finally I open the deployed application and get
"HTTP Status 404 - BridgeServlet: /rapdemo
type Status report
message BridgeServlet: /rapdemo".

Which steps are required to get rid of these errors:
"!MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not found."
and
"Missing Constraint: Import-Package: javax.servlet; version="2.3.0""?

I have installed Eclipse 3.5.1 for RCP/Plug-in Developers Build id: 20090920-1017 and RAP 1.2.1.20090813-1513.

I have read the threads http://www.eclipse.org/forums/index.php?t=msg&th=156181 and http://www.eclipse.org/forums/index.php?t=msg&th=155953. But I can't seem to use the given hints, because I don't find org.eclipse.equinox.servletbridge.extensionbundle anywhere in my installation, and I have no idea how to find the osgi console, because tomcat is running as a daemon?

Looking forward to some help,
Michael

[Updated on: Sun, 25 October 2009 22:00]

Report message to a moderator

Re: deploying rap in tomcat: bundle not found and missing constraint [message #493407 is a reply to message #493401] Mon, 26 October 2009 01:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi Michael,

Comments below.


> Already before I open the deployed application, I have the following
> error log in
> /usr/share/tomcat5.5/work/Catalina/localhost/rapdemo/eclipse
> /configuration/1256506535633.log:
>
> !SESSION 2009-10-25 22:35:37.576
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_16
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.576
> !MESSAGE Bundle mailto:org.eclipse.help@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial.rap@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.578
> !MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not
> found.
>
> !ENTRY org.eclipse.equinox.http.registry 4 0 2009-10-25 22:35:38.044
> !MESSAGE !STACK 0
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: Mi
> ssing Constraint: Import-Package: javax.servlet; version="2.3.0"
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
> esolverError(AbstractBundle.java:1313)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
> esolutionFailureException(AbstractBundle.java:1297)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWor
> ker(BundleHost.java:309)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resu
> me(AbstractBundle.java:370)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBun
> dle(Framework.java:1068)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.r
> esumeBundles(StartLevelManager.java:557)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.i
> ncFWSL(StartLevelManager.java:464)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.d
> oSetStartLevel(StartLevelManager.java:248)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.d
> ispatchEvent(StartLevelManager.java:445)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
> nt(EventManager.java:220)
> at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread
> .run(EventManager.java:330)
> [...]
>
> Finally I open the deployed application and get
> "HTTP Status 404 - BridgeServlet: /rapdemo
> type Status report
> message BridgeServlet: /rapdemo".
>
> Which steps are required to get rid of these errors:
> "!MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not
> found."
> and
> "Missing Constraint: Import-Package: javax.servlet; version="2.3.0""?
>
> I have installed Eclipse 3.5.1 for RCP/Plug-in Developers Build id:
> 20090920-1017 and RAP 1.2.1.20090813-1513.
>
> I have read the threads
> http://www.eclipse.org/forums/index.php?t=msg&th=156181 and

I think your problem is the same in the thread description.

> http://www.eclipse.org/forums/index.php?t=msg&th=155953. But I can't
> seem to use the given hints, because I don't find
> org.eclipse.equinox.servletbridge.extensionbundle anywhere in my
> installation, and I have no idea how to find the osgi console, because
> tomcat is running as a daemon?
>
The org.eclipse.equinox.servletbridge.extension bundle is created at
runtime.

First, you need to turn on the osgi console in web.xml. Then, use the ps
command to find the java-tomcat command when your tomcat is running.

~>ps axjf|grep tomcat
out put as:
> /usr/lib64/jvm/java-1.6.0-sun-1.6.0.u7/jre/bin/java -Djava.util.logging.config.file=/data/ssis/apache-tomcat-6.0 .20/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager -Djava.endorsed.dirs=/data/ssis/apache-tomcat-6.0.20/endorse d -classpath :/data/ssis/apache-tomcat-6.0.20/bin/bootstrap.jar -Dcatalina.base=/data/ssis/apache-tomcat-6.0.20 -Dcatalina.home=/data/ssis/apache-tomcat-6.0.20 -Djava.io.tmpdir=/data/ssis/apache-tomcat-6.0.20/temp org.apache.catalina.startup.Bootstrap start

Stop you tomcat service, Then use the java-tomcat command to start your
tomcat again in terminal. Now you will see the osgi console. Paste the
the output from the ss command in the OSGI-console here, and somebody
can use the info to help you.

Best Regards,
Cheney

> Looking forward to some help,
> Michael
>
Re: deploying rap in tomcat: bundle not found and missing constraint [message #493421 is a reply to message #493401] Mon, 26 October 2009 07:59 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Michael,

the org.eclipse.help is need for Eclipse Help system support introduced
in 1.3M2. Please check that this plugin exists in your target (it is
included in 1.3M2 runtime). You have to add this bundle in feature.xml
too. About your second problem - see bug 293020 comment #2 about a solution:

293020: War-deployment fails with equinox bridgeservlet from HEAD
https://bugs.eclipse.org/bugs/show_bug.cgi?id=293020

HTH,
Ivan

mschaf wrote:
> Hello rap users!
> I try to deploy the rap demo exactly as describe here:
> http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/deployment.html
>
>
> The first minor problem happens in the step:
> * Right-Click on the webAppBuilder.xml script in the IDE and "Run Ant".
> An error box pops up, saying "'PDE Export' has encountered a problem.
> Unable to find plug-in: org.eclipse.help_0.0.0. Please check the error
> log for more details."
> I seem to be able to fix this problem by removing the following
> section from org.eclipse.rap.demo.feature/feature.xml:
> <plugin
> id="org.eclipse.help"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> I continue step by step with the deploy-Howto and finally deploy the
> zipped rapdemo.war using the tomcat-5.5 installation that comes with
> Ubuntu linux.
> Already before I open the deployed application, I have the following
> error log in
> /usr/share/tomcat5.5/work/Catalina/localhost/rapdemo/eclipse
> /configuration/1256506535633.log:
>
> !SESSION 2009-10-25 22:35:37.576
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_16
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.576
> !MESSAGE Bundle mailto:org.eclipse.help@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial.rap@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.578
> !MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not
> found.
>
> !ENTRY org.eclipse.equinox.http.registry 4 0 2009-10-25 22:35:38.044
> !MESSAGE !STACK 0
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: Mi
> ssing Constraint: Import-Package: javax.servlet; version="2.3.0"
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
> esolverError(AbstractBundle.java:1313)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
> esolutionFailureException(AbstractBundle.java:1297)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor
> ker(BundleHost.java:309)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resu
> me(AbstractBundle.java:370)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBun
> dle(Framework.java:1068)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.r
> esumeBundles(StartLevelManager.java:557)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.i
> ncFWSL(StartLevelManager.java:464)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.d
> oSetStartLevel(StartLevelManager.java:248)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.d
> ispatchEvent(StartLevelManager.java:445)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
> nt(EventManager.java:220)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread
> .run(EventManager.java:330)
> [...]
>
> Finally I open the deployed application and get
> "HTTP Status 404 - BridgeServlet: /rapdemo
> type Status report
> message BridgeServlet: /rapdemo".
>
> Which steps are required to get rid of these errors:
> "!MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not
> found."
> and
> "Missing Constraint: Import-Package: javax.servlet; version="2.3.0""?
>
> I have installed Eclipse 3.5.1 for RCP/Plug-in Developers Build id:
> 20090920-1017 and RAP 1.2.1.20090813-1513.
>
> I have read the threads
> http://www.eclipse.org/forums/index.php?t=msg&th=156181 and
> http://www.eclipse.org/forums/index.php?t=msg&th=155953. But I can't
> seem to use the given hints, because I don't find
> org.eclipse.equinox.servletbridge.extensionbundle anywhere in my
> installation, and I have no idea how to find the osgi console, because
> tomcat is running as a daemon?
>
> Looking forward to some help,
> Michael
>
Re: deploying rap in tomcat: bundle not found and missing constraint [message #493458 is a reply to message #493421] Mon, 26 October 2009 11:33 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Michel,

please also make sure that the line
org.eclipse.help@start,\
is included in the config.ini.

Ralf

Ivan Furnadjiev wrote:
> Hi Michael,
>
> the org.eclipse.help is need for Eclipse Help system support introduced
> in 1.3M2. Please check that this plugin exists in your target (it is
> included in 1.3M2 runtime). You have to add this bundle in feature.xml
> too. About your second problem - see bug 293020 comment #2 about a
> solution:
>
> 293020: War-deployment fails with equinox bridgeservlet from HEAD
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=293020
>
> HTH,
> Ivan
>
> mschaf wrote:
>> Hello rap users!
>> I try to deploy the rap demo exactly as describe here:
>> http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/deployment.html
>>
>>
>> The first minor problem happens in the step:
>> * Right-Click on the webAppBuilder.xml script in the IDE and "Run Ant".
>> An error box pops up, saying "'PDE Export' has encountered a problem.
>> Unable to find plug-in: org.eclipse.help_0.0.0. Please check the error
>> log for more details."
>> I seem to be able to fix this problem by removing the following
>> section from org.eclipse.rap.demo.feature/feature.xml:
>> <plugin
>> id="org.eclipse.help"
>> download-size="0"
>> install-size="0"
>> version="0.0.0"
>> unpack="false"/>
>>
>> I continue step by step with the deploy-Howto and finally deploy the
>> zipped rapdemo.war using the tomcat-5.5 installation that comes with
>> Ubuntu linux.
>> Already before I open the deployed application, I have the following
>> error log in
>> /usr/share/tomcat5.5/work/Catalina/localhost/rapdemo/eclipse
>> /configuration/1256506535633.log:
>>
>> !SESSION 2009-10-25 22:35:37.576
>> -----------------------------------------------
>> eclipse.buildId=unknown
>> java.version=1.6.0_16
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.576
>> !MESSAGE Bundle mailto:org.eclipse.help@start not found.
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
>> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial.rap@start not found.
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.577
>> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial@start not found.
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-10-25 22:35:37.578
>> !MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not
>> found.
>>
>> !ENTRY org.eclipse.equinox.http.registry 4 0 2009-10-25 22:35:38.044
>> !MESSAGE !STACK 0
>> org.osgi.framework.BundleException: The bundle could not be resolved.
>> Reason: Mi
>> ssing Constraint: Import-Package: javax.servlet; version="2.3.0"
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
>> esolverError(AbstractBundle.java:1313)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
>> esolutionFailureException(AbstractBundle.java:1297)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor
>> ker(BundleHost.java:309)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resu
>> me(AbstractBundle.java:370)
>> at
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBun
>> dle(Framework.java:1068)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.r
>> esumeBundles(StartLevelManager.java:557)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.i
>> ncFWSL(StartLevelManager.java:464)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.d
>> oSetStartLevel(StartLevelManager.java:248)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.d
>> ispatchEvent(StartLevelManager.java:445)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>> nt(EventManager.java:220)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread
>> .run(EventManager.java:330)
>> [...]
>>
>> Finally I open the deployed application and get
>> "HTTP Status 404 - BridgeServlet: /rapdemo
>> type Status report
>> message BridgeServlet: /rapdemo".
>>
>> Which steps are required to get rid of these errors:
>> "!MESSAGE Bundle org.eclipse.equinox.servletbridge.extensionbundle not
>> found."
>> and
>> "Missing Constraint: Import-Package: javax.servlet; version="2.3.0""?
>>
>> I have installed Eclipse 3.5.1 for RCP/Plug-in Developers Build id:
>> 20090920-1017 and RAP 1.2.1.20090813-1513.
>>
>> I have read the threads
>> http://www.eclipse.org/forums/index.php?t=msg&th=156181 and
>> http://www.eclipse.org/forums/index.php?t=msg&th=155953. But I can't
>> seem to use the given hints, because I don't find
>> org.eclipse.equinox.servletbridge.extensionbundle anywhere in my
>> installation, and I have no idea how to find the osgi console, because
>> tomcat is running as a daemon?
>>
>> Looking forward to some help,
>> Michael
>>
Re: deploying rap in tomcat: bundle not found and missing constraint [message #493558 is a reply to message #493407] Mon, 26 October 2009 21:54 Go to previous messageGo to next message
mschaf  is currently offline mschaf Friend
Messages: 6
Registered: October 2009
Junior Member
Thank you Cheney, Ivan and Ralf!

I highly appreciate the quality of support in this newsgroup. Unfortunately I have too little experience with Tomcat and Osgi to understand which steps are required for the suggested solutions. Would you answer a few more questions?

>First, you need to turn on the osgi console in web.xml.
Did that now.

>Then, use the ps command to find the java-tomcat command when your tomcat is
>running.
>~>ps axjf|grep tomcat

It shows:
/usr/bin/jsvc -user tomcat55 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/ bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat5.5.pid -Djava.awt.headless=true -Xmx128M -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed -Dcatalina.base=/var/lib/tomcat5.5 -Dcatalina.home=/usr/share/tomcat5.5 -Djava.io.tmpdir=/var/lib/tomcat5.5/temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager -Djava.util.logging.config.file=/var/lib/tomcat5.5/conf/logg ing.properties org.apache.catalina.startup.Bootstrap

What is the correct command in this case to start tomcat with console as you suggest? I tried this (replace jsvc with java and remove the options -user, -outfile and -errfile):
# java -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/ bootstrap.jar -Djava.awt.headless=true -Xmx128M -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed -Dcatalina.base=/var/lib/tomcat5.5 -Dcatalina.home=/usr/share/tomcat5.5 -Djava.io.tmpdir=/var/lib/tomcat5.5/temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager -Djava.util.logging.config.file=/var/lib/tomcat5.5/conf/logg ing.properties org.apache.catalina.startup.Bootstrap start
Oct 26, 2009 10:39:15 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/li b/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-s un-1.6.0.16/jre/../lib/i386:/usr/local/lib/vtk-5.4::/usr/jav a/packages/lib/i386:/lib:/usr/lib
Oct 26, 2009 10:39:15 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Oct 26, 2009 10:39:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 422 ms
Oct 26, 2009 10:39:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 26, 2009 10:39:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
Oct 26, 2009 10:39:15 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 26, 2009 10:39:16 PM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor servlets-examples-copy.xml
java.io.FileNotFoundException: /etc/tomcat5.5/Catalina/localhost/servlets-examples-copy.xml (Is a directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
[...]

>Stop you tomcat service, Then use the java-tomcat command to start your
>tomcat again in terminal.

What do you mean by "java-tomcat command"? Such a binary or shell script doesn't exist in Ubuntu. Am I supposed to install tomcat from sources, or can I continue with my default installation?

@Ivan:
>the org.eclipse.help is need for Eclipse Help system support introduced
>in 1.3M2. Please check that this plugin exists in your target (it is
>included in 1.3M2 runtime).

There is no org.eclipse.help in my /data/local/eclipse3.5/configuration/org.eclipse.rap.target- 1.2, which I have installed a few days ago from the http://download.eclipse.org/rt/rap/1.2/update site. Is this not the recommended way of installing RAP?

Thanks
Michael
Re: deploying rap in tomcat: bundle not found and missing constraint [message #493743 is a reply to message #493558] Tue, 27 October 2009 18:42 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Michael,

if you have e dependency to org.eclipse.help, you are using plugins from
either 1.3M2 or CVS HEAD. Why your target is 1.2? You can get the 1.3M2
tooling/runtime from [1].

[1] http://www.eclipse.org/rap/downloads/

Best,
Ivan

mschaf wrote:
> Thank you Cheney, Ivan and Ralf!
>
> I highly appreciate the quality of support in this newsgroup.
> Unfortunately I have too little experience with Tomcat and Osgi to
> understand which steps are required for the suggested solutions. Would
> you answer a few more questions?
>
>> First, you need to turn on the osgi console in web.xml.
> Did that now.
>
>> Then, use the ps command to find the java-tomcat command when your
>> tomcat is running.
>> ~>ps axjf|grep tomcat
>
> It shows:
> /usr/bin/jsvc -user tomcat55 -cp
> /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/
> bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile
> /var/run/tomcat5.5.pid -Djava.awt.headless=true -Xmx128M
> -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed
> -Dcatalina.base=/var/lib/tomcat5.5
> -Dcatalina.home=/usr/share/tomcat5.5
> -Djava.io.tmpdir=/var/lib/tomcat5.5/temp
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager
> -Djava.util.logging.config.file=/var/lib/tomcat5.5/conf/logg
> ing.properties org.apache.catalina.startup.Bootstrap
>
> What is the correct command in this case to start tomcat with console
> as you suggest? I tried this (replace jsvc with java and remove the
> options -user, -outfile and -errfile):
> # java -cp
> /usr/share/java/commons-daemon.jar:/usr/share/tomcat5.5/bin/
> bootstrap.jar -Djava.awt.headless=true -Xmx128M
> -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed
> -Dcatalina.base=/var/lib/tomcat5.5
> -Dcatalina.home=/usr/share/tomcat5.5
> -Djava.io.tmpdir=/var/lib/tomcat5.5/temp
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager
> -Djava.util.logging.config.file=/var/lib/tomcat5.5/conf/logg
> ing.properties org.apache.catalina.startup.Bootstrap start
> Oct 26, 2009 10:39:15 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/li
> b/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-s
> un-1.6.0.16/jre/../lib/i386:/usr/local/lib/vtk-5.4::/usr/jav
> a/packages/lib/i386:/lib:/usr/lib
> Oct 26, 2009 10:39:15 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8180
> Oct 26, 2009 10:39:15 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 422 ms
> Oct 26, 2009 10:39:15 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Oct 26, 2009 10:39:15 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5
> Oct 26, 2009 10:39:15 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Oct 26, 2009 10:39:16 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> SEVERE: Error deploying configuration descriptor
> servlets-examples-copy.xml
> java.io.FileNotFoundException:
> /etc/tomcat5.5/Catalina/localhost/servlets-examples-copy.xml (Is a
> directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> [...]
>
>> Stop you tomcat service, Then use the java-tomcat command to start your
>> tomcat again in terminal.
>
> What do you mean by "java-tomcat command"? Such a binary or shell
> script doesn't exist in Ubuntu. Am I supposed to install tomcat from
> sources, or can I continue with my default installation?
>
> @Ivan:
>> the org.eclipse.help is need for Eclipse Help system support introduced
>> in 1.3M2. Please check that this plugin exists in your target (it is
>> included in 1.3M2 runtime).
>
> There is no org.eclipse.help in my
> /data/local/eclipse3.5/configuration/org.eclipse.rap.target- 1.2,
> which I have installed a few days ago from the
> http://download.eclipse.org/rt/rap/1.2/update site. Is this not the
> recommended way of installing RAP?
>
> Thanks
> Michael
>
Re: deploying rap in tomcat: bundle not found and missing constraint [message #493755 is a reply to message #493743] Tue, 27 October 2009 20:49 Go to previous messageGo to next message
mschaf  is currently offline mschaf Friend
Messages: 6
Registered: October 2009
Junior Member
Dear Ivan,

>if you have e dependency to org.eclipse.help, you are using plugins from
>either 1.3M2 or CVS HEAD. Why your target is 1.2? You can get the 1.3M2
>tooling/runtime from [1].

>[1] http://www.eclipse.org/rap/downloads/

Thanks. I have no idea, why I mixed RAP 1.3 and 1.2. Now I did a complete reinstallation of Eclipe 3.5 (for RCP/Plugin developers) and installed RAP 1.3M2 from your link [1].

The org.eclipse.help problem has disappeared.

But when I deploy the new rapdemo.war, I get this /usr/share/tomcat5.5/work/Catalina/localhost/rapdemo/eclipse /workspace/.metadata/.log:

!SESSION 2009-10-27 21:42:57.499 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2009-10-27 21:42:57.499
!MESSAGE Bundle org.eclipse.rap.tutorial.rap@start not found.

!ENTRY org.eclipse.osgi 4 0 2009-10-27 21:42:57.499
!MESSAGE Bundle org.eclipse.rap.tutorial@start not found.

Where should this org.eclipse.rap.tutorial come from?

(Unfortunately I still don't know how to start tomcat with the osgi console. But I don't have any file *org.eclipse.rap.tutorial* anywhere below my eclipse installation, so that the problem should be not too difficult to narrow down?)

Thanks
Michal
Re: deploying rap in tomcat: bundle not found and missing constraint [message #493959 is a reply to message #493755] Wed, 28 October 2009 15:33 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Michal,

the bundle *org.eclipse.rap.tutorial* is not needed at all. Remove it
from feature.xml and config.ini if present. About osgi console... just
add (uncomment) the following code from your WEB-INF\web.xml:
<init-param>
<param-name>commandline</param-name>
<param-value>-console</param-value>
</init-param>

HTH,
Ivan

mschaf wrote:
> Dear Ivan,
>
>> if you have e dependency to org.eclipse.help, you are using plugins from
>> either 1.3M2 or CVS HEAD. Why your target is 1.2? You can get the 1.3M2
>> tooling/runtime from [1].
>
>> [1] http://www.eclipse.org/rap/downloads/
>
> Thanks. I have no idea, why I mixed RAP 1.3 and 1.2. Now I did a
> complete reinstallation of Eclipe 3.5 (for RCP/Plugin developers) and
> installed RAP 1.3M2 from your link [1].
>
> The org.eclipse.help problem has disappeared.
>
> But when I deploy the new rapdemo.war, I get this
> /usr/share/tomcat5.5/work/Catalina/localhost/rapdemo/eclipse
> /workspace/.metadata/.log:
>
> !SESSION 2009-10-27 21:42:57.499
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_16
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-27 21:42:57.499
> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial.rap@start not found.
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-27 21:42:57.499
> !MESSAGE Bundle mailto:org.eclipse.rap.tutorial@start not found.
>
> Where should this org.eclipse.rap.tutorial come from?
>
> (Unfortunately I still don't know how to start tomcat with the osgi
> console. But I don't have any file *org.eclipse.rap.tutorial* anywhere
> below my eclipse installation, so that the problem should be not too
> difficult to narrow down?)
>
> Thanks
> Michal
Re: deploying rap in tomcat: bundle not found and missing constraint [message #494027 is a reply to message #493959] Wed, 28 October 2009 20:23 Go to previous messageGo to next message
mschaf  is currently offline mschaf Friend
Messages: 6
Registered: October 2009
Junior Member
Dear Ivan,

>the bundle *org.eclipse.rap.tutorial* is not needed at all. Remove it
>from feature.xml and config.ini if present.

I made a mistake, which left me with org.eclipse.rap.tutorial in the config.ini: After running the ConfigIniCreator.java, I thought that the output was automatically written to my project. Now I copied the ConfigIniCreator.java output to the config.ini file, and this problem is solved.

>About osgi console... just
>add (uncomment) the following code from your WEB-INF\web.xml:
>[...]
This was not the problem. I didn't know, how to start tomcat from the command line in Ubuntu linux (see earlier message above). Now I have shutdown the default tomcat and installed the binary tomcat distribution from http://tomcat.apache.org/download-55.cgi. This helped me to get the osgi console.

The status right now is:
$ /usr/bin/java -Djava.util.logging.config.file=/data/local/apache-tomcat-5. 5.28/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager -Djava.endorsed.dirs=/data/local/apache-tomcat-5.5.28/common /endorsed -classpath /data/local/apache-tomcat-5.5.28/bin/bootstrap.jar -Dcatalina.base=/data/local/apache-tomcat-5.5.28 -Dcatalina.home=/data/local/apache-tomcat-5.5.28 -Djava.io.tmpdir=/data/local/apache-tomcat-5.5.28/temp org.apache.catalina.startup.Bootstrap start
Oct 28, 2009 8:44:07 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/li b/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-s un-1.6.0.16/jre/../lib/i386:/usr/local/lib/vtk-5.4::/usr/jav a/packages/lib/i386:/lib:/usr/lib
Oct 28, 2009 8:44:07 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 28, 2009 8:44:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 456 ms
Oct 28, 2009 8:44:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 28, 2009 8:44:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Oct 28, 2009 8:44:07 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 28, 2009 8:44:07 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive rapdemo2.war

osgi> Oct 28, 2009 8:44:08 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 28, 2009 8:44:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 28, 2009 8:44:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21 config=null
Oct 28, 2009 8:44:08 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Oct 28, 2009 8:44:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1540 ms

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.6.0.v20090914
1 INSTALLED org.eclipse.equinox.http.servletbridge_1.0.200.200910282033
2 INSTALLED org.eclipse.rap.jface_1.3.0.20090929-1121
3 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
4 INSTALLED org.eclipse.rap.ui.views_1.3.0.20090929-1121
5 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20090901-0800
6 ACTIVE org.eclipse.equinox.common_3.5.100.v20090817
7 INSTALLED org.eclipse.rap.ui_1.3.0.20090929-1121
8 INSTALLED org.eclipse.rap.jface.databinding_1.3.0.20090929-1121
9 ACTIVE com.ibm.icu.base_4.0.1.v20090415
10 ACTIVE org.eclipse.help_3.5.0.v20090729
11 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20090831
13 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090520-1800
14 INSTALLED org.eclipse.rap.ui.workbench_1.3.0.20090929-1121
15 INSTALLED org.eclipse.rap.demo_1.3.0.20090929-1121
16 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
17 INSTALLED org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
18 ACTIVE org.eclipse.core.runtime_3.5.100.v20090911
19 INSTALLED org.eclipse.rap.rwt.q07_1.3.0.20090929-1121
20 INSTALLED org.eclipse.rap.rwt_1.3.0.20090929-1121
21 ACTIVE org.eclipse.core.databinding_1.3.0.I20090825-0800
22 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
23 ACTIVE org.eclipse.core.databinding.property_1.2.100.I20090825-0800
24 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
25 ACTIVE org.eclipse.equinox.registry_3.5.0.v20090911
26 INSTALLED org.eclipse.equinox.http.registry_1.0.200.v20090520-1800

If I try to start some of the INSTALLED bundles, I get:
osgi> start 1
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: javax.servlet; version="2.3.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolverError(AbstractBundle.java:1313)
[...]

It seems to be the same problem as this one:
http://www.eclipse.org/forums/index.php?t=msg&th=156181

But I don't understand, how to work around the bugs mentioned there, whether HEAD is ok right now or not, and in general, how to install a certain revision of RAP. How do I install RAP if not from an update site? Can I find step by step instructions somewhere?

Thanks for your continuing help.

Thanks
Michael
Re: deploying rap in tomcat: bundle not found and missing constraint [message #494061 is a reply to message #494027] Thu, 29 October 2009 02:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi mschaf,

Comments below...

mschaf wrote:
> Dear Ivan,
>
>> the bundle *org.eclipse.rap.tutorial* is not needed at all. Remove it
>> from feature.xml and config.ini if present.
>
> I made a mistake, which left me with org.eclipse.rap.tutorial in the
> config.ini: After running the ConfigIniCreator.java, I thought that the
> output was automatically written to my project. Now I copied the
> ConfigIniCreator.java output to the config.ini file, and this problem is
> solved.
>
>> About osgi console... just
>> add (uncomment) the following code from your WEB-INF\web.xml:
>> [...]
> This was not the problem. I didn't know, how to start tomcat from the
> command line in Ubuntu linux (see earlier message above). Now I have
> shutdown the default tomcat and installed the binary tomcat distribution
> from http://tomcat.apache.org/download-55.cgi. This helped me to get the
> osgi console.
>
> The status right now is:
> $ /usr/bin/java
> -Djava.util.logging.config.file=/data/local/apache-tomcat-5.
> 5.28/conf/logging.properties
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager
> -Djava.endorsed.dirs=/data/local/apache-tomcat-5.5.28/common /endorsed
> -classpath /data/local/apache-tomcat-5.5.28/bin/bootstrap.jar
> -Dcatalina.base=/data/local/apache-tomcat-5.5.28
> -Dcatalina.home=/data/local/apache-tomcat-5.5.28
> -Djava.io.tmpdir=/data/local/apache-tomcat-5.5.28/temp
> org.apache.catalina.startup.Bootstrap start
> Oct 28, 2009 8:44:07 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance
> in production environments was not found on the java.library.path:
> /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/li
> b/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-s
> un-1.6.0.16/jre/../lib/i386:/usr/local/lib/vtk-5.4::/usr/jav
> a/packages/lib/i386:/lib:/usr/lib
> Oct 28, 2009 8:44:07 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Oct 28, 2009 8:44:07 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 456 ms
> Oct 28, 2009 8:44:07 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Oct 28, 2009 8:44:07 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
> Oct 28, 2009 8:44:07 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Oct 28, 2009 8:44:07 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive rapdemo2.war
>
> osgi> Oct 28, 2009 8:44:08 PM
> org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Oct 28, 2009 8:44:08 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Oct 28, 2009 8:44:08 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/21 config=null
> Oct 28, 2009 8:44:08 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Oct 28, 2009 8:44:08 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1540 ms
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.6.0.v20090914
> 1 INSTALLED
> org.eclipse.equinox.http.servletbridge_1.0.200.200910282033
> 2 INSTALLED org.eclipse.rap.jface_1.3.0.20090929-1121
> 3 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
> 4 INSTALLED org.eclipse.rap.ui.views_1.3.0.20090929-1121
> 5 ACTIVE
> org.eclipse.core.databinding.observable_1.3.0.I20090901-0800
> 6 ACTIVE org.eclipse.equinox.common_3.5.100.v20090817
> 7 INSTALLED org.eclipse.rap.ui_1.3.0.20090929-1121
> 8 INSTALLED org.eclipse.rap.jface.databinding_1.3.0.20090929-1121
> 9 ACTIVE com.ibm.icu.base_4.0.1.v20090415
> 10 ACTIVE org.eclipse.help_3.5.0.v20090729
> 11 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20090831
> 13 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090520-1800
> 14 INSTALLED org.eclipse.rap.ui.workbench_1.3.0.20090929-1121
> 15 INSTALLED org.eclipse.rap.demo_1.3.0.20090929-1121
> 16 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
> 17 INSTALLED org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
> 18 ACTIVE org.eclipse.core.runtime_3.5.100.v20090911
> 19 INSTALLED org.eclipse.rap.rwt.q07_1.3.0.20090929-1121
> 20 INSTALLED org.eclipse.rap.rwt_1.3.0.20090929-1121
> 21 ACTIVE org.eclipse.core.databinding_1.3.0.I20090825-0800
> 22 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
> 23 ACTIVE
> org.eclipse.core.databinding.property_1.2.100.I20090825-0800
> 24 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
> 25 ACTIVE org.eclipse.equinox.registry_3.5.0.v20090911
> 26 INSTALLED org.eclipse.equinox.http.registry_1.0.200.v20090520-1800
>
> If I try to start some of the INSTALLED bundles, I get:
> osgi> start 1
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: Missing Constraint: Import-Package: javax.servlet; version="2.3.0"
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR
> esolverError(AbstractBundle.java:1313)
> [...]
>
> It seems to be the same problem as this one:
> http://www.eclipse.org/forums/index.php?t=msg&th=156181
>

I think your problem is the same. As your tomcat start command above,
when your tomcat running, you would find
" org.eclipse.equinox.servletbridge.extensionbundle_org.eclips e.equinox.servletbridge.extensionbundle.jar "
in
/data/local/apache-tomcat-5.5.28/work/Catalina/localhost/rap demo2/eclipse/plugins
directory, But the expected one is
"org.eclipse.equinox.servletbridge_1.2.0.jar".

But the equinox bridgeservlet bug is fixed, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291396

And the instructions in bug 293020
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=293020) can't fix your
problem?

Then you may just don't check the equinox bridgeservlet from HEAD but
special version (e.g:R3_5). I use the R3_5 version equinox
bridgeservlet in my RAP bases 1.2R application build, everything works find.

For How to check the special version from CVS, please check the Team CVS
tutorial from eclipse help system. The [1] may can help you directory.

[1] http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.user/tasks/tasks-103.htm
(Replace With > Another Branch or Version)

Best Regards,
Cheney

> But I don't understand, how to work around the bugs mentioned there,
> whether HEAD is ok right now or not, and in general, how to install a
> certain revision of RAP. How do I install RAP if not from an update
> site? Can I find step by step instructions somewhere?
>
> Thanks for your continuing help.
>
> Thanks
> Michael
Re: deploying rap in tomcat: bundle not found and missing constraint [message #494263 is a reply to message #494061] Thu, 29 October 2009 20:03 Go to previous messageGo to next message
mschaf  is currently offline mschaf Friend
Messages: 6
Registered: October 2009
Junior Member
Dear Cheney,

>But the equinox bridgeservlet bug is fixed, see:
>https://bugs.eclipse.org/bugs/show_bug.cgi?id=291396

>And the instructions in bug 293020
>(https://bugs.eclipse.org/bugs/show_bug.cgi?id=293020) can't fix your
>problem?

thanks, but as I have repeated a few times, for an almost-newbie like me, these bugfixes that say do-this-do-that-fixed make RAP unusable. I need instructions that don't make several assumptions, but tell the exact prerequisites or simply guide me step by step from the installation of RAP to the installation of the bugfix.

As I read, the bug will be fixed in Rap 1.3 M3, which is announced for 13 November, so I can just wait for two weeks.

Thanks
Michael
Re: deploying rap in tomcat: bundle not found and missing constraint [message #494288 is a reply to message #494263] Fri, 30 October 2009 01:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi mschaf,

Comments below.

mschaf wrote:
> Dear Cheney,
>
> thanks, but as I have repeated a few times, for an almost-newbie like
> me, these bugfixes that say do-this-do-that-fixed make RAP unusable. I
> need instructions that don't make several assumptions, but tell the
> exact prerequisites or simply guide me step by step from the
> installation of RAP to the installation of the bugfix.
>
To deploy the rap demo as describe here:
http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/deployment.html

is exactly correct. The article said:"As prerequisites we assume that
you are familiar with the bundles- and build information section of the
Equinox in a Servlet Container document. We also assume that you have a
checkout of the servlet bridge and demo feature bundles in your
workspace." So if you step by step from the instruction of the article,
you would check out the "org.eclipse.equinox.http.servletbridge" and
"org.eclipse.equinox.servletbridge" plug-ins from the CVS HEAD. As
already discussed in several threads, there are some modified in
org.eclipse.equinox.servletbridge cause the deploy problem. So the
simple way to fix the deploy problem is: just check out the
org.eclipse.equinox.servletbridge and
org.eclipse.equinox.http.servletbridge as release version (e.g:R3_5),
instead of checking from HEAD. Do you try this?


> As I read, the bug will be fixed in Rap 1.3 M3, which is announced for
> 13 November, so I can just wait for two weeks.
>

That would be the another choice.

Regards,
Cheney
> Thanks
> Michael
Re: deploying rap in tomcat: bundle not found and missing constraint [message #494485 is a reply to message #494288] Fri, 30 October 2009 20:09 Go to previous messageGo to next message
mschaf  is currently offline mschaf Friend
Messages: 6
Registered: October 2009
Junior Member
>just check out the org.eclipse.equinox.servletbridge and
>org.eclipse.equinox.http.servletbridge as release version (e.g:R3_5), instead of
>checking from HEAD. Do you try this?

Yes, I try this and nothing changes.

You said earlier:
>I think your problem is the same. As your tomcat start command above,
>when your tomcat running, you would find
>" org.eclipse.equinox.servletbridge.extensionbundle_org.eclips e.equinox.
>servletbridge.extensionbundle.jar " in /data/local/apache-tomcat-5.5.28/work/
>Catalina/localhost/rap demo2/eclipse/plugins directory, But the expected one is
>"org.eclipse.equinox.servletbridge_1.2.0.jar".

I have work/Catalina/localhost/rapdemo4/eclipse/plugins/org.eclipse .equinox.servletbridge.extensionbundle_1.0.0.jar and still no idea what do do against it.

Thanks
Michael
Re: deploying rap in tomcat: bundle not found and missing constraint [message #494498 is a reply to message #494263] Fri, 30 October 2009 21:21 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Michael,

I'm sorry for the problems that had been caused by a regression in the
servletbridge lately. This problem is already fixed and everything works
as before. I just tried myself and found the war export working with the
instructions from the RAP help. You can check out the servletbridge from
HEAD again, and you don't have to wait for the next milestone. If you
still experience problems, they are not related to this issue.

What always helps with war problems is to enable the OSGi console in the
web.xml and to check the bundles' states using the "ss" command. Feel
free to post the results here.

Best regards, Ralf

mschaf wrote:
> Dear Cheney,
>
>> But the equinox bridgeservlet bug is fixed, see:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=291396
>
>> And the instructions in bug 293020
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=293020) can't fix your
>> problem?
>
> thanks, but as I have repeated a few times, for an almost-newbie like
> me, these bugfixes that say do-this-do-that-fixed make RAP unusable. I
> need instructions that don't make several assumptions, but tell the
> exact prerequisites or simply guide me step by step from the
> installation of RAP to the installation of the bugfix.
>
> As I read, the bug will be fixed in Rap 1.3 M3, which is announced for
> 13 November, so I can just wait for two weeks.
>
> Thanks
> Michael
Previous Topic:setting default value in Combo doesn't trigger an event
Next Topic:Popup behaviour for composite
Goto Forum:
  


Current Time: Fri Mar 29 06:12:40 GMT 2024

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

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

Back to the top