Application Crashes inTomcat [message #103529] |
Fri, 29 August 2008 15:42 |
Austin Riddle 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
����ᦙ 3;����yWW&# 65533;8����& ;#65533;��.Bh�JfHA 533;bl��I��& #65533;*I�-�d�� �w{:SUI`'}�}o�� ;��:��gA 533;{��k��&# 65533;N����& #65533;����& #65533;�7���& ;#65533;����& ;#65533;}��(W��& amp;#65533;?��yM�ʏ 33;����´ 7;���z > ����ᦙ 3;:��~�� 5533;(����{& #65533;x��择�& ;#1983;
^n�{.3�w=�O7�/& amp;#65533;�D�y0�oA 533;�AΓ�^n�&# 887;��op��& #65533;`��xr��&a mp;#65533;q;��w�?ʏ 33;����ʏ 33;�W�h1�r�
��A�u� 5533;��̟n
�x:���Wʏ 33;�2G5���&# 65533;G�K�3��+ osS�#E��0�&# 65533;g5�x��d� ��ǃY8�{ʏ 33;*��
�;���&a mp;#65533;�9�Tq�ᦙ 3;�[�^J^x9�� F��?��ᦙ 3;q�9�F�l�A& ;#65533;�c > և����z �
\v���V6�n& #65533;�J��V�&a mp;#65533;�?4E.+��ʏ 33;U��K[��& ;#65533;��o��y`} wھ���ַ& amp;#65533;v.���ᦙ 3;-Z�_� " Zke�6��#'Б 5533;�r�ܗ� 5533;`$��WQ4
� ���?7�m 5533;n��k��& ;#65533;`���3�\ �1�&��y}g&a mp;#65533;���$�& amp;#65533;8Z�L ۝���ʏ 33;�1ƭ��h < s�֏��hʏ 33;�Ak�2ª�h
�^�ϑjt�o> ��8��ʏ 33;����v1&# 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 #103898 is a reply to message #103673] |
Tue, 02 September 2008 09:09 |
Eclipse User |
|
|
|
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 #104162 is a reply to message #104066] |
Thu, 04 September 2008 17:44 |
Austin Riddle 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 #107716 is a reply to message #104162] |
Thu, 02 October 2008 13:57 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.05031 seconds