Home » Eclipse Projects » Remote Application Platform (RAP) » Just another deploy problem in Tomcat
|
Re: Just another deploy problem in Tomcat [message #25627 is a reply to message #25586] |
Thu, 17 May 2007 23:09 |
Roberto Sanchez Messages: 82 Registered: July 2009 |
Member |
|
|
OK, first problem solved :-) I had to delete "work" directory in tomcat.
New problem, all bundles are OK, but when I try to access to app an
exception is throwed:
osgi> java.lang.IllegalArgumentException: An entry point named 'default'
does not exist.
at
org.eclipse.swt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:70)
at
org.eclipse.swt.internal.lifecycle.PrepareUIRoot.execute(Pre pareUIRoot.java:32)
at
org.eclipse.swt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:60)
at com.w4t.engine.W4TModel$ServiceAdapter.execute(W4TModel.java :47)
at
com.w4t.engine.service.FormRequestServiceHandler.service(For mRequestServiceHandler.java:65)
Of course, It exists an Entrypoint called "default" in my app
"com.autonomind.amvitae_1.0.0", It works fine when a launch it from
eclipse directly.
I have this entry in plugin.xml:
<extension
id="com.autonomind.amvitae.entrypoint"
point="org.eclipse.rap.ui.workbench.entrypoint">
<entrypoint
class="com.autonomind.amvitae.EntryPoint"
parameter="default"/>
</extension>
And now all bundles seem to be OK:
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
Fragments=29
1 ACTIVE com.autonomind.amvitae_1.0.0
2 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
3 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
5 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
7 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200705180025
8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200705180025
9 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.0.200705180025
10 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
11 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
12 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
13 ACTIVE org.eclipse.rap.jface_1.0.0.200705180025
14 ACTIVE org.eclipse.rap.rwt_1.0.0.200705180025
15 ACTIVE org.eclipse.rap.ui.workbench_1.0.0.200705180025
16 ACTIVE org.eclipse.rap.w4t_1.0.0.200705180025
17 ACTIVE org.eclipse.update.configurator_3.2.2.R32x_v20070111
29 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
I have the feeling that I'm forgotting something, but I'm not be able to
see it, I suppose that It's too late ;-) , I hope to see it tomorrow,
but If someone has any idea...
Regards.
Roberto.
Roberto Sánchez escribió:
> Hi all, I have a rare problem with tomcat.
>
> First of all, I've followed deployment tutorial with rapdemo and It
> works fine, but when I tryed to do the same with my app I found the next
> problem:
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> 1 INSTALLED com.autonomind.amvitae_1.0.0
> 2 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
> 3 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
> 4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
> 5 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
> 6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
> 8 INSTALLED org.eclipse.equinox.http.registry_1.0.0.200705172204
> 9 INSTALLED org.eclipse.equinox.http.servlet_1.0.0.200705172204
> 10 INSTALLED org.eclipse.equinox.http.servletbridge_1.0.0.200705172204
> 11 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
> 12 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
> 13 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
> 14 INSTALLED org.eclipse.rap.jface_1.0.0.200705172204
> 15 INSTALLED org.eclipse.rap.rwt_1.0.0.200705172204
> 16 INSTALLED org.eclipse.rap.ui.workbench_1.0.0.200705172204
> 17 INSTALLED org.eclipse.rap.w4t_1.0.0.200705172204
> 18 INSTALLED org.eclipse.equinox.http.jetty_1.0.0.200705172204
>
>
> Then I try to start manually and find this Exception:
>
>
> osgi> start 17
> 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.BundleHost.startWor ker(BundleHost.java:294)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
>
> at java.lang.Thread.run(Thread.java:613)
>
> osgi>
>
>
> I've read deployment tutorial and at first I haven't this line in my
> MANIFEST.MF:
>
> Import-Package: javax.servlet;version="[2.3.0,2.5.0)",
> javax.servlet.http;version="[2.3.0,2.5.0)"
>
> But now this line is included in MANIFEST.MF but the OSGi framework
> doesn't work neither.
>
>
> Any idea ?
>
> Regards.
> Roberto.
>
|
|
|
Re: Just another deploy problem in Tomcat [message #25664 is a reply to message #25627] |
Thu, 17 May 2007 23:20 |
Eclipse User |
|
|
|
Originally posted by: jkrause.innoopract.com
Please check the build.properties of your plugin project - are you
including plugin.xml in your build?
Roberto Sánchez wrote:
> OK, first problem solved :-) I had to delete "work" directory in tomcat.
>
> New problem, all bundles are OK, but when I try to access to app an
> exception is throwed:
>
> osgi> java.lang.IllegalArgumentException: An entry point named 'default'
> does not exist.
> at
> org.eclipse.swt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:70)
>
> at
> org.eclipse.swt.internal.lifecycle.PrepareUIRoot.execute(Pre pareUIRoot.java:32)
>
> at
> org.eclipse.swt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:60)
>
> at com.w4t.engine.W4TModel$ServiceAdapter.execute(W4TModel.java :47)
> at
> com.w4t.engine.service.FormRequestServiceHandler.service(For mRequestServiceHandler.java:65)
>
>
>
> Of course, It exists an Entrypoint called "default" in my app
> "com.autonomind.amvitae_1.0.0", It works fine when a launch it from
> eclipse directly.
>
> I have this entry in plugin.xml:
>
> <extension
> id="com.autonomind.amvitae.entrypoint"
> point="org.eclipse.rap.ui.workbench.entrypoint">
> <entrypoint
> class="com.autonomind.amvitae.EntryPoint"
> parameter="default"/>
> </extension>
>
>
> And now all bundles seem to be OK:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> Fragments=29
> 1 ACTIVE com.autonomind.amvitae_1.0.0
> 2 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
> 3 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
> 4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
> 5 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
> 6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
> 7 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200705180025
> 8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200705180025
> 9 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200705180025
> 10 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
> 11 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
> 12 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
> 13 ACTIVE org.eclipse.rap.jface_1.0.0.200705180025
> 14 ACTIVE org.eclipse.rap.rwt_1.0.0.200705180025
> 15 ACTIVE org.eclipse.rap.ui.workbench_1.0.0.200705180025
> 16 ACTIVE org.eclipse.rap.w4t_1.0.0.200705180025
> 17 ACTIVE org.eclipse.update.configurator_3.2.2.R32x_v20070111
> 29 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
>
>
> I have the feeling that I'm forgotting something, but I'm not be able to
> see it, I suppose that It's too late ;-) , I hope to see it tomorrow,
> but If someone has any idea...
>
> Regards.
> Roberto.
>
>
> Roberto Sánchez escribió:
>> Hi all, I have a rare problem with tomcat.
>>
>> First of all, I've followed deployment tutorial with rapdemo and It
>> works fine, but when I tryed to do the same with my app I found the
>> next problem:
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>> 1 INSTALLED com.autonomind.amvitae_1.0.0
>> 2 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
>> 3 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
>> 4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
>> 5 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
>> 6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
>> 8 INSTALLED org.eclipse.equinox.http.registry_1.0.0.200705172204
>> 9 INSTALLED org.eclipse.equinox.http.servlet_1.0.0.200705172204
>> 10 INSTALLED
>> org.eclipse.equinox.http.servletbridge_1.0.0.200705172204
>> 11 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
>> 12 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
>> 13 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>> 14 INSTALLED org.eclipse.rap.jface_1.0.0.200705172204
>> 15 INSTALLED org.eclipse.rap.rwt_1.0.0.200705172204
>> 16 INSTALLED org.eclipse.rap.ui.workbench_1.0.0.200705172204
>> 17 INSTALLED org.eclipse.rap.w4t_1.0.0.200705172204
>> 18 INSTALLED org.eclipse.equinox.http.jetty_1.0.0.200705172204
>>
>>
>> Then I try to start manually and find this Exception:
>>
>>
>> osgi> start 17
>> 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.BundleHost.startWor ker(BundleHost.java:294)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
>>
>> at java.lang.Thread.run(Thread.java:613)
>>
>> osgi>
>>
>>
>> I've read deployment tutorial and at first I haven't this line in my
>> MANIFEST.MF:
>>
>> Import-Package: javax.servlet;version="[2.3.0,2.5.0)",
>> javax.servlet.http;version="[2.3.0,2.5.0)"
>>
>> But now this line is included in MANIFEST.MF but the OSGi framework
>> doesn't work neither.
>>
>>
>> Any idea ?
>>
>> Regards.
>> Roberto.
>>
|
|
|
Re: Just another deploy problem in Tomcat [message #25828 is a reply to message #25664] |
Fri, 18 May 2007 08:57 |
Roberto Sanchez Messages: 82 Registered: July 2009 |
Member |
|
|
Thank you Jochen, That was exactly the problem.
In a few days my app will be ready for real world (I hope :-) )
Regards.
Roberto.
Jochen Krause escribió:
> Please check the build.properties of your plugin project - are you
> including plugin.xml in your build?
>
> Roberto Sánchez wrote:
>> OK, first problem solved :-) I had to delete "work" directory in tomcat.
>>
>> New problem, all bundles are OK, but when I try to access to app an
>> exception is throwed:
>>
>> osgi> java.lang.IllegalArgumentException: An entry point named
>> 'default' does not exist.
>> at
>> org.eclipse.swt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:70)
>>
>> at
>> org.eclipse.swt.internal.lifecycle.PrepareUIRoot.execute(Pre pareUIRoot.java:32)
>>
>> at
>> org.eclipse.swt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:60)
>>
>> at
>> com.w4t.engine.W4TModel$ServiceAdapter.execute(W4TModel.java :47)
>> at
>> com.w4t.engine.service.FormRequestServiceHandler.service(For mRequestServiceHandler.java:65)
>>
>>
>>
>> Of course, It exists an Entrypoint called "default" in my app
>> "com.autonomind.amvitae_1.0.0", It works fine when a launch it from
>> eclipse directly.
>>
>> I have this entry in plugin.xml:
>>
>> <extension
>> id="com.autonomind.amvitae.entrypoint"
>> point="org.eclipse.rap.ui.workbench.entrypoint">
>> <entrypoint
>> class="com.autonomind.amvitae.EntryPoint"
>> parameter="default"/>
>> </extension>
>>
>>
>> And now all bundles seem to be OK:
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>> Fragments=29
>> 1 ACTIVE com.autonomind.amvitae_1.0.0
>> 2 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
>> 3 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
>> 4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
>> 5 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
>> 6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
>> 7 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200705180025
>> 8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200705180025
>> 9 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200705180025
>> 10 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
>> 11 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
>> 12 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>> 13 ACTIVE org.eclipse.rap.jface_1.0.0.200705180025
>> 14 ACTIVE org.eclipse.rap.rwt_1.0.0.200705180025
>> 15 ACTIVE org.eclipse.rap.ui.workbench_1.0.0.200705180025
>> 16 ACTIVE org.eclipse.rap.w4t_1.0.0.200705180025
>> 17 ACTIVE org.eclipse.update.configurator_3.2.2.R32x_v20070111
>> 29 RESOLVED
>> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>> Master=0
>>
>>
>> I have the feeling that I'm forgotting something, but I'm not be able
>> to see it, I suppose that It's too late ;-) , I hope to see it
>> tomorrow, but If someone has any idea...
>>
>> Regards.
>> Roberto.
>>
>>
>> Roberto Sánchez escribió:
>>> Hi all, I have a rare problem with tomcat.
>>>
>>> First of all, I've followed deployment tutorial with rapdemo and It
>>> works fine, but when I tryed to do the same with my app I found the
>>> next problem:
>>>
>>> Framework is launched.
>>>
>>> id State Bundle
>>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>>> 1 INSTALLED com.autonomind.amvitae_1.0.0
>>> 2 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
>>> 3 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
>>> 4 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
>>> 5 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
>>> 6 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
>>> 8 INSTALLED org.eclipse.equinox.http.registry_1.0.0.200705172204
>>> 9 INSTALLED org.eclipse.equinox.http.servlet_1.0.0.200705172204
>>> 10 INSTALLED
>>> org.eclipse.equinox.http.servletbridge_1.0.0.200705172204
>>> 11 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
>>> 12 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
>>> 13 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>>> 14 INSTALLED org.eclipse.rap.jface_1.0.0.200705172204
>>> 15 INSTALLED org.eclipse.rap.rwt_1.0.0.200705172204
>>> 16 INSTALLED org.eclipse.rap.ui.workbench_1.0.0.200705172204
>>> 17 INSTALLED org.eclipse.rap.w4t_1.0.0.200705172204
>>> 18 INSTALLED org.eclipse.equinox.http.jetty_1.0.0.200705172204
>>>
>>>
>>> Then I try to start manually and find this Exception:
>>>
>>>
>>> osgi> start 17
>>> 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.BundleHost.startWor ker(BundleHost.java:294)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
>>>
>>> at java.lang.Thread.run(Thread.java:613)
>>>
>>> osgi>
>>>
>>>
>>> I've read deployment tutorial and at first I haven't this line in my
>>> MANIFEST.MF:
>>>
>>> Import-Package: javax.servlet;version="[2.3.0,2.5.0)",
>>> javax.servlet.http;version="[2.3.0,2.5.0)"
>>>
>>> But now this line is included in MANIFEST.MF but the OSGi framework
>>> doesn't work neither.
>>>
>>>
>>> Any idea ?
>>>
>>> Regards.
>>> Roberto.
>>>
|
|
|
Goto Forum:
Current Time: Sat Nov 09 02:40:02 GMT 2024
Powered by FUDForum. Page generated in 0.06981 seconds
|