Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Application Crashes inTomcat
Application Crashes inTomcat [message #103529] Fri, 29 August 2008 15:42 Go to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hello,

I have been struggling with this for about 4 days now. I am trying to
deploy any RAP application in Tomcat 6.0 and am having a very odd
problem...

When I build and deploy the RAP demo (or any app) in Tomcat using my own
build feature the app comes up for about 10 seconds and then crashes.
Everything works perfect when I build and run for Jetty deployment and run
from Eclipse.

Specs: Eclipse 3.4 Target Platform
RAP 1.1
Tomcat 6.0
My own build feature.

Here is the config.ini (formatted here for humans):
-----------------------------------------------------
#Eclipse Runtime Configuration File
osgi.bundles=com.ibm.icu_3.8.1.v20080530.jar@start,
org.eclipse.core.commands_3.4.0.I20080509-2000.jar@start,
org.eclipse.core.contenttype_3.3.0.v20080604-1400.jar@start,
org.eclipse.core.databinding_1.1.0.I20080527-2000.jar@start,
org.eclipse.core.expressions_3.4.0.v20080603-2000.jar@start,
org.eclipse.core.jobs_3.4.0.v20080512.jar@start,
org.eclipse.core.runtime_3.4.0.v20080512.jar@start,
org.eclipse.equinox.app_1.1.0.v20080421-2006.jar@start,
org.eclipse.equinox.common_3.4.0.v20080421-2006.jar@2:start,
org.eclipse.equinox.http.registry_1.0.100.v20080427-0830.jar @start,
org.eclipse.equinox.http.servletbridge_1.0.0.v20080427-0830. jar @start,
org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830.jar@start,
org.eclipse.equinox.preferences_3.2.200.v20080421-2006.jar@start,
org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar@start,
org.eclipse.osgi.services_3.1.200.v20071203.jar@start,
org.eclipse.rap.demo_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.jface.databinding_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.jface_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.rwt.q07_1.1.0.20080613-1055.jar,
org.eclipse.rap.rwt_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.ui.forms_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.ui.views_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.ui.workbench_1.1.0.20080613-1055.jar@start,
org.eclipse.rap.ui_1.1.0.20080613-1055.jar@start,
org.eclipse.update.configurator_3.2.200.v20080417.jar@start,
org.eclipse.equinox.servletbridge.extensionbundle
osgi.bundles.defaultStartLevel=4

Here is the OSGi status:
----------------------------------------------
Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900
Fragments=26
1 ACTIVE com.ibm.icu_3.8.1.v20080530
2 ACTIVE org.eclipse.core.commands_3.4.0.I20080509-2000
3 ACTIVE org.eclipse.core.contenttype_3.3.0.v20080604-1400
4 ACTIVE org.eclipse.core.databinding_1.1.0.I20080527-2000
5 ACTIVE org.eclipse.core.expressions_3.4.0.v20080603-2000
6 ACTIVE org.eclipse.core.jobs_3.4.0.v20080512
7 ACTIVE org.eclipse.core.runtime_3.4.0.v20080512
8 ACTIVE org.eclipse.equinox.app_1.1.0.v20080421-2006
9 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006
10 ACTIVE org.eclipse.equinox.http.registry_1.0.100.v20080427-0830
11 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.v20080427-0830
12 ACTIVE org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
13 ACTIVE org.eclipse.equinox.preferences_3.2.200.v20080421-2006
14 ACTIVE org.eclipse.equinox.registry_3.4.0.v20080516-0950
15 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203
16 ACTIVE org.eclipse.rap.demo_1.1.0.20080613-1055
17 ACTIVE org.eclipse.rap.jface.databinding_1.1.0.20080613-1055
18 ACTIVE org.eclipse.rap.jface_1.1.0.20080613-1055
19 RESOLVED org.eclipse.rap.rwt.q07_1.1.0.20080613-1055
Master=20
20 ACTIVE org.eclipse.rap.rwt_1.1.0.20080613-1055
Fragments=19
21 ACTIVE org.eclipse.rap.ui.forms_1.1.0.20080613-1055
22 ACTIVE org.eclipse.rap.ui.views_1.1.0.20080613-1055
23 ACTIVE org.eclipse.rap.ui.workbench_1.1.0.20080613-1055
24 ACTIVE org.eclipse.rap.ui_1.1.0.20080613-1055
25 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
26 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0

In firefox 3.0 I receive after app is visible and responsive for about 10
seconds:
----------------------------------------------------
Could not evaluate javascript response:

SyntaxError: illegal character

����&#6553 3;����yWW&# 65533;8����& ;#65533;��.Bh�JfH&#65 533;bl��I��& #65533;*I�-�d�� �w{:SUI`'}�}o�&#65533 ;��:��g&#65 533;{��k��&# 65533;N����& #65533;����& #65533;�7���& ;#65533;����& ;#65533;}��(W��& amp;#65533;?��yM�&#655 33;����&#180 7;���z > ����&#6553 3;:��~��&#6 5533;(����{& #65533;x��择�& ;#1983;
^n�{.3�w=�O7�/& amp;#65533;�D�y0�o&#65 533;�A�^n�&# 887;��op��& #65533;`��xr��&a mp;#65533;q;��w�?&#655 33;����&#655 33;�W�h1�r�
��A�u�&#6 5533;��̟n
�x:���W&#655 33;�2G5���&# 65533;G�K�3��+ osS�#E��0�&# 65533;g5�x��d� ��ǃY8�{&#655 33;*��
�;���&a mp;#65533;�9�Tq�&#6553 3;�[�^J^x9�� F��?��&#6553 3;q�9�F�l�A& ;#65533;�c > և����z �
\v���V6�n& #65533;�J��V�&a mp;#65533;�?4E.+��&#655 33;U��K[��& ;#65533;��o��y`} wھ���ַ& amp;#65533; v.���&#6553 3;-Z�_� " Zke�6��#'Б&#6 5533;�r�ܗ�&#6 5533;`$��WQ4
&#65533; &#65533;&#65533;&#65533;?7&#65533;m&#6 5533;n&#65533;&#65533;k&#65533;&#65533;& ;#65533;`&#65533;&#65533;&#65533;3&#65533;\ &#65533;1&#65533;&&#65533;&#65533;y}g&a mp;#65533;&#65533;&#65533;&#65533;$&#65533;& amp;#65533;8Z&#65533;L &#1757;&#65533;&#65533;&#65533;&#655 33;&#65533;1&#429;&#65533;&#65533;h < s&#65533;&#1423;&#65533;&#65533;h&#655 33;&#65533;Ak&#65533;2ª&#65533;h
&#65533;^&#65533;&#977;jt&#65533;o> &#65533;&#65533;8&#65533;&#65533;&#655 33;&#65533;&#65533;&#65533;&#65533;v1&# 65533;&#65533;(&#65533;`~
etc...
----------------------------------------------

In Internet Explorer 7 I receive:
----------------------------------------------

The server session timed out.

Please click here to restart the session.


------------

In both cases there is nothing in the Tomcat logs or in the eclipse .log
file.

I have tried to deploy against 3.3 target platform and get the same
behavior but different error messages.

I get "Invalid character" messages and exceptions that are effects of the
problem.

Any help is greatly appreciated!
Re: Application Crashes inTomcat [message #103545 is a reply to message #103529] Fri, 29 August 2008 15:52 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Another tidbit is that my Tomcat is running with the same java version
that the app was built with.

Here is the list of plugins in my feature.xml:

<plugin
id="org.eclipse.core.commands"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.contenttype"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.jobs"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.runtime"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.preferences"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.osgi"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.osgi.services"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.jface"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.rwt"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui.workbench"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.expressions"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.app"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.servlet"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.servletbridge"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.update.configurator"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.databinding"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="com.ibm.icu"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.jface.databinding"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.rwt.q07"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui.forms"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui.views"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.demo"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
Re: Application Crashes inTomcat [message #103559 is a reply to message #103529] Fri, 29 August 2008 16:08 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
To test my Tomcat, I got an old rapdemo.war file and deployed it
successfully. No problems.

So it must be something in my deploy feature or the target platform. I
created my build feature from the wonderful tutorial by Elias Volanakis.
The only other loose-end I can think of is the
org.eclipse.equinox.servletbridge project that I have checked out from
HEAD for building during the webappBuilder.xml run. Do I need specific
version of that plugin?
Re: Application Crashes inTomcat [message #103611 is a reply to message #103559] Fri, 29 August 2008 20:21 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Can anyone post a feature.xml and config.ini for the rap demo that builds
correctly under 3.4?

Any help is greatly appreciated!
Re: Application Crashes inTomcat [message #103624 is a reply to message #103611] Fri, 29 August 2008 21:14 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
Hi,

here is feature.xml for the calc.ui.rap project from RAP Insights blog:
for RAP standard demo you have change calc.ui.rap to org.eclipse.rap.demo
and run "add required bundles" action.

<feature
id="calc.ui.war.feature"
label="RAP Demo Deployment Feature"
version="1.1.0.qualifier"
provider-name="eclipse.org">

<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>

<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>

<license url="http://www.example.com/license">
[Enter License Description here.]
</license>

<plugin
id="org.eclipse.core.commands"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.contenttype"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.jobs"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.runtime"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.servlet"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.http.servletbridge"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.preferences"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.osgi"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.osgi.services"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.jface"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.rwt"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui.workbench"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.expressions"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.app"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.rwt.q07"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>

<plugin
id="org.eclipse.rap.jface.databinding"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.databinding"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="com.ibm.icu"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.rap.ui.views"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="calc.ui.rap"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.update.configurator"
download-size="0"
install-size="0"
version="0.0.0"/>

</feature>

here is config.ini:

#Eclipse Runtime Configuration File
osgi.bundles=org.eclipse.equinox.common@2:start,
org.eclipse.update.configurator@start,
org.eclipse.equinox.http.servletbridge@start,
org.eclipse.equinox.http.registry@start
osgi.bundles.defaultStartLevel=4

with this config.ini the calc and RAP demo runs without CongigIniCreator.

best regards,

Nikolai
Re: Application Crashes inTomcat [message #103659 is a reply to message #103624] Fri, 29 August 2008 22:07 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Thanks so much Nikolai.

Your feature.xml matches with mine. Could you also provide a list of the
jar file names from your plugins directory exported using the 3.4 target
platform so that I can compare them to mine?

Thanks.
Re: Application Crashes inTomcat [message #103673 is a reply to message #103659] Fri, 29 August 2008 22:15 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hello,

I have tried to deploy now on two different machines with Tomcat 6.0, and
have the same problem.

Does anyone have a .war of a RAP app that was built with 3.4 that I might
try in my deployment? That could answer a few questions.

Thanks for any help.
Re: Application Crashes inTomcat [message #103898 is a reply to message #103673] Tue, 02 September 2008 09:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

here is a link to a nightly build version of the demo application:

http://www.eclipse.org/downloads/download.php?file=/technolo gy/rap/rapde
mo.war


Note that it may take a while till the new version has been distributed
to the mirrors - the new version is about 10 MB in size the old one only
5 MB...

Note also that this link is not updated automatically, it was just
uploaded for this post as attaching it to the post failed due to size
limitations...

From reading the whole thread I'm reminded of a problem we encountered
recently with our build and integration server. Some tests failed with
similar encoding problems. The solution was that we had to map the
encodings in the operation system correctly (linux). Just a wild
guess...

Hope this helps!


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Austin Riddle [mailto:austin.riddle@tamu.edu]
Bereitgestellt: Samstag, 30. August 2008 00:15
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Application Crashes inTomcat
Betreff: Re: Application Crashes inTomcat

Hello,

I have tried to deploy now on two different machines with Tomcat 6.0,
and
have the same problem.

Does anyone have a .war of a RAP app that was built with 3.4 that I
might
try in my deployment? That could answer a few questions.

Thanks for any help.
Re: Application Crashes inTomcat [message #104051 is a reply to message #103898] Wed, 03 September 2008 13:40 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Thank you Frank,

I tried the .war in my Tomcat 6.0 installation and I had the same problem.
This tells me that my server configuration is at fault.

Could you elaborate more on what encodings you had to map in the OS? Were
they mime types? Or were they encoding types in Tomcat (conf/web.xml)? It
makes sense that there is an encoding or decoding problem because of the
binary output that I am receiving.

Thanks for your help!
Re: Application Crashes inTomcat [message #104066 is a reply to message #104051] Wed, 03 September 2008 13:53 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
After more analysis, it seems that when the demo app comes up, the icons
are missing and then the error occurs. This could explain why the error
page is full of binary. Could there be some problem decoding the images?
Re: Application Crashes inTomcat [message #104115 is a reply to message #104066] Wed, 03 September 2008 22:50 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Success!!! Frank, your post about the encodings was what I needed. I was
integrating another custom widget into my app when I realized that the API
resource classes declare the charset they use via IResource.getCharset()!
My widgets were returning HTML.CHARSET_NAME_ISO_8859_1 for the charset.

So for anyone else with this problem, add the appropriate URIEncoding
attribute to the Connectors in your server.xml file.

In my case it was:

URIEncoding="ISO-8859-1"

Problem solved.
Re: Application Crashes inTomcat [message #104162 is a reply to message #104066] Thu, 04 September 2008 17:44 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
OK, so it comes down to this. When images registered as resources in the
application are referenced, I get the following response and request
headers in firebug:

-----------------------

Response Headers
Server Apache-Coyote/1.1
Cache-Control max-age=0, no-cache, must-revalidate
Last-Modified Thu, 04 Sep 2008 17:11:25 GMT
Content-Encoding gzip
Content-Type text/html
Transfer-Encoding chunked
Date Thu, 04 Sep 2008 17:11:47 GMT


Request Headers
Host localhost:8080
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
Accept image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://localhost:8080/test/app
Cookie settingStore=1220020534139_0;
JSESSIONID=91C0BC753F717229A474FF5C1F9674B5


--------------------------

So for some reason any request of mime type image/* is being responded to
with mime type text/html.

Digging deeper I find that the browser detection mechanisms are not
working correctly for me. I added some logging info that resulted in the
following calls:

-------------------------------------

LifeCycleServiceHandler.internalService():180 - Sending browser survey
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :58 - Setting
dummy browser
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :66 - Removing
dummy browser
LifeCycleServiceHandler.internalService():180 - Sending browser survey
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :58 - Setting
dummy browser
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :66 - Removing
dummy browser
LifeCycleServiceHandler.detectBrowser():202 - Browser detected is:
Mozilla1_7
LifeCycleServiceHandler.internalService():175 - Browser was detected as:
Mozilla1_7.
LifeCycleServiceHandler.internalService():180 - Sending browser survey
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :58 - Setting
dummy browser
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :66 - Removing
dummy browser
LifeCycleServiceHandler.internalService():180 - Sending browser survey
...

-------------------------------------------

I am at a loss at this point. Can anyone on the RAP team tell me more
about how this is supposed to work?
Re: Application Crashes inTomcat [message #104365 is a reply to message #104115] Mon, 08 September 2008 14:42 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Unfortunately the post about success was premature. It did work... once.
Then it went back to the same behavior. The current state of the problem
at this point is here:
http://www.eclipse.org/newsportal/article.php?id=4251&gr oup=eclipse.technology.rap#4251
Re: Application Crashes inTomcat [message #107716 is a reply to message #104162] Thu, 02 October 2008 13:57 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

sorry for being late on answering, but I'm really busy these days.
Unfortunately I don't have a clue yet what's going on with your
deployment. Maybe you can give us some more information that help us to
understand better what you are doing. I understand, that you register
own resources. Is that correct? So why (e.g. loading images for buttons)
and how (extension-point, programmatically) are you doing this? I also
don't understand what you're pointing at with the browserdetection log
(Sorry, maybe I'm a little slow today...).



Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Austin Riddle [mailto:austin.riddle@tamu.edu]
Bereitgestellt: Donnerstag, 4. September 2008 19:44
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Application Crashes inTomcat
Betreff: Re: Application Crashes inTomcat

OK, so it comes down to this. When images registered as resources in
the
application are referenced, I get the following response and request
headers in firebug:

-----------------------

Response Headers
Server Apache-Coyote/1.1
Cache-Control max-age=0, no-cache, must-revalidate
Last-Modified Thu, 04 Sep 2008 17:11:25 GMT
Content-Encoding gzip
Content-Type text/html
Transfer-Encoding chunked
Date Thu, 04 Sep 2008 17:11:47 GMT


Request Headers
Host localhost:8080
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
Accept image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://localhost:8080/test/app
Cookie settingStore=1220020534139_0;
JSESSIONID=91C0BC753F717229A474FF5C1F9674B5


--------------------------

So for some reason any request of mime type image/* is being responded
to
with mime type text/html.

Digging deeper I find that the browser detection mechanisms are not
working correctly for me. I added some logging info that resulted in
the
following calls:

-------------------------------------

LifeCycleServiceHandler.internalService():180 - Sending browser survey
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :58 -
Setting
dummy browser
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :66 -
Removing
dummy browser
LifeCycleServiceHandler.internalService():180 - Sending browser survey
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :58 -
Setting
dummy browser
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :66 -
Removing
dummy browser
LifeCycleServiceHandler.detectBrowser():202 - Browser detected is:
Mozilla1_7
LifeCycleServiceHandler.internalService():175 - Browser was detected as:

Mozilla1_7.
LifeCycleServiceHandler.internalService():180 - Sending browser survey
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :58 -
Setting
dummy browser
LifeCycleServiceHandlerConfigurer.getTemplateOfStartupPage() :66 -
Removing
dummy browser
LifeCycleServiceHandler.internalService():180 - Sending browser survey
...

-------------------------------------------

I am at a loss at this point. Can anyone on the RAP team tell me more
about how this is supposed to work?
Previous Topic:How to getRealPath?
Next Topic:Rap 1.1.1, 1.2, qx 0.8
Goto Forum:
  


Current Time: Sun Sep 22 18:30:42 GMT 2024

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

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

Back to the top