Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDO server bundles deployed in Tomcat via servletbridge
[CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532235] Fri, 07 May 2010 15:34 Go to next message
Michal Tkacz is currently offline Michal TkaczFriend
Messages: 105
Registered: July 2009
Senior Member
Hi,

I'm trying to run CDO server inside a Tomcat via servletbridge. The CDO
bundles are activated properly but I couldn't find a way to start the
org.eclipse.emf.cdo.server.app application during deployment. The result
is that the CDO server doesn't start on the port specified. When I try
to start the application manually from the osgi console I get this
exception:

org.osgi.service.application.ApplicationException
at
org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
at
org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
at
org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
at
org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
at java.lang.Thread.run(Thread.java:636)


Any ideas? Here's the list of bundles deployed:

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
Fragments=1
1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
2 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
7 ACTIVE javax.servlet_2.5.0.v200910301333
8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
23 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100310-1300
24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
35 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100310-1300


Michal
Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532283 is a reply to message #532235] Fri, 07 May 2010 18:49 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Michal,

I'm not experienced with that but maybe it's related to the CDO
application being configured (plugin.xml) to run on the main thread. Can
you try to change that and report if it solves the problem? Then we can
provide an additional configuration for this.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 07.05.2010 17:34, schrieb Michal Tkacz:
> Hi,
>
> I'm trying to run CDO server inside a Tomcat via servletbridge. The
> CDO bundles are activated properly but I couldn't find a way to start
> the org.eclipse.emf.cdo.server.app application during deployment. The
> result is that the CDO server doesn't start on the port specified.
> When I try to start the application manually from the osgi console I
> get this exception:
>
> org.osgi.service.application.ApplicationException
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>
> at
> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>
> at
> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>
> at java.lang.Thread.run(Thread.java:636)
>
>
> Any ideas? Here's the list of bundles deployed:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
> Fragments=1
> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
> 2 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
> 7 ACTIVE javax.servlet_2.5.0.v200910301333
> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
> 23 ACTIVE
> org.eclipse.core.databinding.property_1.3.0.I20100310-1300
> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
> 35 ACTIVE
> org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>
>
> Michal


Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532284 is a reply to message #532283] Fri, 07 May 2010 18:58 Go to previous messageGo to next message
Michal Tkacz is currently offline Michal TkaczFriend
Messages: 105
Registered: July 2009
Senior Member
Hello Eike,

Yes, that was the cause of the exception. I just read the answer from
Thomas Watson on eclipse.technology.equinox group. I wonder if CDO
actually needs to be run on the main thread?

Anyway, I just changed it and I'm now able to start the application
manually from the osgi console. The CDO server does not start on the TCP
port though. I can't see any exceptions either. I'll try to debug it to
see what the problem might be.

Also I don't know yet how to make it start automatically.

Michal

On 05/07/2010 08:49 PM, Eike Stepper wrote:
> Hi Michal,
>
> I'm not experienced with that but maybe it's related to the CDO
> application being configured (plugin.xml) to run on the main thread. Can
> you try to change that and report if it solves the problem? Then we can
> provide an additional configuration for this.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Am 07.05.2010 17:34, schrieb Michal Tkacz:
>> Hi,
>>
>> I'm trying to run CDO server inside a Tomcat via servletbridge. The
>> CDO bundles are activated properly but I couldn't find a way to start
>> the org.eclipse.emf.cdo.server.app application during deployment. The
>> result is that the CDO server doesn't start on the port specified.
>> When I try to start the application manually from the osgi console I
>> get this exception:
>>
>> org.osgi.service.application.ApplicationException
>> at
>> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>>
>> at
>> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>>
>> at
>> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>>
>> at java.lang.Thread.run(Thread.java:636)
>>
>>
>> Any ideas? Here's the list of bundles deployed:
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
>> Fragments=1
>> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>> Master=0
>> 2 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
>> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
>> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
>> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
>> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
>> 7 ACTIVE javax.servlet_2.5.0.v200910301333
>> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
>> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
>> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
>> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
>> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
>> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
>> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
>> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
>> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
>> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
>> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
>> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
>> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
>> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
>> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
>> 23 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100310-1300
>> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
>> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
>> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
>> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
>> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
>> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
>> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
>> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
>> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
>> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
>> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
>> 35 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>>
>>
>> Michal
Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532290 is a reply to message #532284] Fri, 07 May 2010 19:04 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 07.05.2010 20:58, schrieb Michal Tkacz:
> Hello Eike,
>
> Yes, that was the cause of the exception. I just read the answer from
> Thomas Watson on eclipse.technology.equinox group.
I've seen that. Cross-posting is not good in general.

> I wonder if CDO actually needs to be run on the main thread?
I can only judge that if I know the differences in behaviour. But please
file a bugzilla with a patch so that we can strat to provide two markups.

>
> Anyway, I just changed it and I'm now able to start the application
> manually from the osgi console. The CDO server does not start on the
> TCP port though. I can't see any exceptions either. I'll try to debug
> it to see what the problem might be.
Have you deployed and activated org.eclipse.emf.cdo.server.net4j ?

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Also I don't know yet how to make it start automatically.
>
> Michal
>
> On 05/07/2010 08:49 PM, Eike Stepper wrote:
>> Hi Michal,
>>
>> I'm not experienced with that but maybe it's related to the CDO
>> application being configured (plugin.xml) to run on the main thread. Can
>> you try to change that and report if it solves the problem? Then we can
>> provide an additional configuration for this.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>
>> Am 07.05.2010 17:34, schrieb Michal Tkacz:
>>> Hi,
>>>
>>> I'm trying to run CDO server inside a Tomcat via servletbridge. The
>>> CDO bundles are activated properly but I couldn't find a way to start
>>> the org.eclipse.emf.cdo.server.app application during deployment. The
>>> result is that the CDO server doesn't start on the port specified.
>>> When I try to start the application manually from the osgi console I
>>> get this exception:
>>>
>>> org.osgi.service.application.ApplicationException
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>>>
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>>>
>>>
>>> at
>>> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>>>
>>>
>>> at
>>> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>>>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>>>
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>>>
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>>>
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>>>
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>>>
>>>
>>> at java.lang.Thread.run(Thread.java:636)
>>>
>>>
>>> Any ideas? Here's the list of bundles deployed:
>>>
>>> osgi> ss
>>>
>>> Framework is launched.
>>>
>>> id State Bundle
>>> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
>>> Fragments=1
>>> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>>> Master=0
>>> 2 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
>>> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
>>> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
>>> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
>>> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
>>> 7 ACTIVE javax.servlet_2.5.0.v200910301333
>>> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
>>> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
>>> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
>>> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
>>> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
>>> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
>>> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
>>> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
>>> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
>>> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
>>> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
>>> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
>>> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
>>> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
>>> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
>>> 23 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100310-1300
>>> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
>>> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
>>> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
>>> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
>>> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
>>> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
>>> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
>>> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
>>> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
>>> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
>>> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
>>> 35 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>>>
>>>
>>> Michal
>


Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532300 is a reply to message #532290] Fri, 07 May 2010 19:59 Go to previous messageGo to next message
Michal Tkacz is currently offline Michal TkaczFriend
Messages: 105
Registered: July 2009
Senior Member
On 05/07/2010 09:04 PM, Eike Stepper wrote:
> Am 07.05.2010 20:58, schrieb Michal Tkacz:
>> Hello Eike,
>>
>> Yes, that was the cause of the exception. I just read the answer from
>> Thomas Watson on eclipse.technology.equinox group.
> I've seen that. Cross-posting is not good in general.

Sorry, I know, I tried to put stress on the Equinox/servletbridge part
there and on the CDO part here.

>
>> I wonder if CDO actually needs to be run on the main thread?
> I can only judge that if I know the differences in behaviour. But please
> file a bugzilla with a patch so that we can strat to provide two markups.

Ok, I filed bug 312120.

>
>>
>> Anyway, I just changed it and I'm now able to start the application
>> manually from the osgi console. The CDO server does not start on the
>> TCP port though. I can't see any exceptions either. I'll try to debug
>> it to see what the problem might be.
> Have you deployed and activated org.eclipse.emf.cdo.server.net4j ?

No, does it come with CDO 2.x? I develop against 2.0 maintenance branch
(at least until bug 290726 is resolved) and was able to run the server
inside eclipse without that plugin. The list of plugins I deployed is at
the end of this mail.

Michal

>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> Also I don't know yet how to make it start automatically.
>>
>> Michal
>>
>> On 05/07/2010 08:49 PM, Eike Stepper wrote:
>>> Hi Michal,
>>>
>>> I'm not experienced with that but maybe it's related to the CDO
>>> application being configured (plugin.xml) to run on the main thread. Can
>>> you try to change that and report if it solves the problem? Then we can
>>> provide an additional configuration for this.
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>>
>>> Am 07.05.2010 17:34, schrieb Michal Tkacz:
>>>> Hi,
>>>>
>>>> I'm trying to run CDO server inside a Tomcat via servletbridge. The
>>>> CDO bundles are activated properly but I couldn't find a way to start
>>>> the org.eclipse.emf.cdo.server.app application during deployment. The
>>>> result is that the CDO server doesn't start on the port specified.
>>>> When I try to start the application manually from the osgi console I
>>>> get this exception:
>>>>
>>>> org.osgi.service.application.ApplicationException
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>>>>
>>>>
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>>>>
>>>>
>>>> at
>>>> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>>>>
>>>>
>>>> at
>>>> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>>>>
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>>>>
>>>>
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>>
>>>>
>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>>>>
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>>>>
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>>>>
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>>>>
>>>>
>>>> at java.lang.Thread.run(Thread.java:636)
>>>>
>>>>
>>>> Any ideas? Here's the list of bundles deployed:
>>>>
>>>> osgi> ss
>>>>
>>>> Framework is launched.
>>>>
>>>> id State Bundle
>>>> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
>>>> Fragments=1
>>>> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>>>> Master=0
>>>> 2 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
>>>> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
>>>> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
>>>> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
>>>> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
>>>> 7 ACTIVE javax.servlet_2.5.0.v200910301333
>>>> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
>>>> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
>>>> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
>>>> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
>>>> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
>>>> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
>>>> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
>>>> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
>>>> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
>>>> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
>>>> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
>>>> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
>>>> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
>>>> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
>>>> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
>>>> 23 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100310-1300
>>>> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
>>>> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
>>>> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
>>>> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
>>>> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
>>>> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
>>>> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
>>>> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
>>>> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
>>>> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
>>>> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
>>>> 35 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>>>>
>>>>
>>>> Michal
>>
Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532301 is a reply to message #532300] Fri, 07 May 2010 20:12 Go to previous messageGo to next message
Michal Tkacz is currently offline Michal TkaczFriend
Messages: 105
Registered: July 2009
Senior Member
Ok, the server starts, the only problem is that it cannot find the
cdo-server.xml file. I thought that without net4j.config property set it
would look for config directory where the application is deployed (that
would be /var/lib/tomcat6/webapps/cdo/WEB-INF/eclipse in my case) but
apparently it looks for it in a temporary directory (/tmp/tomcat6-temp
in my case). So I just have to find a way to set the net4.config
property, preferably just for this application and not the whole tomcat.
But that's more of a servletbridge/tomcat story :)

Thanks again Eike,

Michal

On 05/07/2010 09:59 PM, Michal Tkacz wrote:
> On 05/07/2010 09:04 PM, Eike Stepper wrote:
>> Am 07.05.2010 20:58, schrieb Michal Tkacz:
>>> Hello Eike,
>>>
>>> Yes, that was the cause of the exception. I just read the answer from
>>> Thomas Watson on eclipse.technology.equinox group.
>> I've seen that. Cross-posting is not good in general.
>
> Sorry, I know, I tried to put stress on the Equinox/servletbridge part
> there and on the CDO part here.
>
>>
>>> I wonder if CDO actually needs to be run on the main thread?
>> I can only judge that if I know the differences in behaviour. But please
>> file a bugzilla with a patch so that we can strat to provide two markups.
>
> Ok, I filed bug 312120.
>
>>
>>>
>>> Anyway, I just changed it and I'm now able to start the application
>>> manually from the osgi console. The CDO server does not start on the
>>> TCP port though. I can't see any exceptions either. I'll try to debug
>>> it to see what the problem might be.
>> Have you deployed and activated org.eclipse.emf.cdo.server.net4j ?
>
> No, does it come with CDO 2.x? I develop against 2.0 maintenance branch
> (at least until bug 290726 is resolved) and was able to run the server
> inside eclipse without that plugin. The list of plugins I deployed is at
> the end of this mail.
>
> Michal
>
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>>
>>> Also I don't know yet how to make it start automatically.
>>>
>>> Michal
>>>
>>> On 05/07/2010 08:49 PM, Eike Stepper wrote:
>>>> Hi Michal,
>>>>
>>>> I'm not experienced with that but maybe it's related to the CDO
>>>> application being configured (plugin.xml) to run on the main thread.
>>>> Can
>>>> you try to change that and report if it solves the problem? Then we can
>>>> provide an additional configuration for this.
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>> http://twitter.com/eikestepper
>>>>
>>>>
>>>>
>>>> Am 07.05.2010 17:34, schrieb Michal Tkacz:
>>>>> Hi,
>>>>>
>>>>> I'm trying to run CDO server inside a Tomcat via servletbridge. The
>>>>> CDO bundles are activated properly but I couldn't find a way to start
>>>>> the org.eclipse.emf.cdo.server.app application during deployment. The
>>>>> result is that the CDO server doesn't start on the port specified.
>>>>> When I try to start the application manually from the osgi console I
>>>>> get this exception:
>>>>>
>>>>> org.osgi.service.application.ApplicationException
>>>>> at
>>>>> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>>>>>
>>>>>
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>>>
>>>>>
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>>>>>
>>>>>
>>>>>
>>>>> at java.lang.Thread.run(Thread.java:636)
>>>>>
>>>>>
>>>>> Any ideas? Here's the list of bundles deployed:
>>>>>
>>>>> osgi> ss
>>>>>
>>>>> Framework is launched.
>>>>>
>>>>> id State Bundle
>>>>> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
>>>>> Fragments=1
>>>>> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>>>>> Master=0
>>>>> 2 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
>>>>> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
>>>>> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
>>>>> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
>>>>> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
>>>>> 7 ACTIVE javax.servlet_2.5.0.v200910301333
>>>>> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
>>>>> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
>>>>> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
>>>>> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
>>>>> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
>>>>> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
>>>>> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
>>>>> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
>>>>> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
>>>>> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
>>>>> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
>>>>> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
>>>>> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
>>>>> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
>>>>> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
>>>>> 23 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100310-1300
>>>>> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
>>>>> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
>>>>> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
>>>>> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
>>>>> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
>>>>> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
>>>>> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
>>>>> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
>>>>> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
>>>>> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
>>>>> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
>>>>> 35 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>>>>>
>>>>>
>>>>> Michal
>>>
>
Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #532841 is a reply to message #532301] Tue, 11 May 2010 11:04 Go to previous messageGo to next message
Michal Tkacz is currently offline Michal TkaczFriend
Messages: 105
Registered: July 2009
Senior Member
After reading some code I believe that configuring CDO server deployed
inside servlet container is not possible without setting net4j.config
property globally for the whole servlet container. I believe it's not an
optimal solution, especially in enterprise environment where one might
have limited access to the container's configuration.

I don't know if you find this kind of setup interesting enough to feel
the need to support it :) but if you do, please take a look at bug
312393 which would solve part of the problem. Fixing it would allow
specifying the property inside config.ini, locally to the web application.

The remaining part of the problem is the fact that net4j.config needs to
specify an absolute path. This is because relative paths are resolved
against working directory, which in case of servlet container is hard to
predict and might even be outside web application folder (in my case
it's /tmp/tomcat6-temp). The ability to specify relative path would be
so much better :) I have no idea how this could be solved without
breaking existing installations, maybe the path could be resolved
against osgi.install.area?

Any thoughts?

Michal

P.S. For anyone interested in setting CDO server inside servlet
container, I found one more problem with it. See "Running an
IApplication when deploying to Tomcat with servletbridge" thread in
eclipse.technology.equinox group for details.

On 05/07/2010 10:12 PM, Michal Tkacz wrote:
> Ok, the server starts, the only problem is that it cannot find the
> cdo-server.xml file. I thought that without net4j.config property set it
> would look for config directory where the application is deployed (that
> would be /var/lib/tomcat6/webapps/cdo/WEB-INF/eclipse in my case) but
> apparently it looks for it in a temporary directory (/tmp/tomcat6-temp
> in my case). So I just have to find a way to set the net4.config
> property, preferably just for this application and not the whole tomcat.
> But that's more of a servletbridge/tomcat story :)
>
> Thanks again Eike,
>
> Michal
>
> On 05/07/2010 09:59 PM, Michal Tkacz wrote:
>> On 05/07/2010 09:04 PM, Eike Stepper wrote:
>>> Am 07.05.2010 20:58, schrieb Michal Tkacz:
>>>> Hello Eike,
>>>>
>>>> Yes, that was the cause of the exception. I just read the answer from
>>>> Thomas Watson on eclipse.technology.equinox group.
>>> I've seen that. Cross-posting is not good in general.
>>
>> Sorry, I know, I tried to put stress on the Equinox/servletbridge part
>> there and on the CDO part here.
>>
>>>
>>>> I wonder if CDO actually needs to be run on the main thread?
>>> I can only judge that if I know the differences in behaviour. But please
>>> file a bugzilla with a patch so that we can strat to provide two
>>> markups.
>>
>> Ok, I filed bug 312120.
>>
>>>
>>>>
>>>> Anyway, I just changed it and I'm now able to start the application
>>>> manually from the osgi console. The CDO server does not start on the
>>>> TCP port though. I can't see any exceptions either. I'll try to debug
>>>> it to see what the problem might be.
>>> Have you deployed and activated org.eclipse.emf.cdo.server.net4j ?
>>
>> No, does it come with CDO 2.x? I develop against 2.0 maintenance branch
>> (at least until bug 290726 is resolved) and was able to run the server
>> inside eclipse without that plugin. The list of plugins I deployed is at
>> the end of this mail.
>>
>> Michal
>>
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>>>
>>>> Also I don't know yet how to make it start automatically.
>>>>
>>>> Michal
>>>>
>>>> On 05/07/2010 08:49 PM, Eike Stepper wrote:
>>>>> Hi Michal,
>>>>>
>>>>> I'm not experienced with that but maybe it's related to the CDO
>>>>> application being configured (plugin.xml) to run on the main thread.
>>>>> Can
>>>>> you try to change that and report if it solves the problem? Then we
>>>>> can
>>>>> provide an additional configuration for this.
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://thegordian.blogspot.com
>>>>> http://twitter.com/eikestepper
>>>>>
>>>>>
>>>>>
>>>>> Am 07.05.2010 17:34, schrieb Michal Tkacz:
>>>>>> Hi,
>>>>>>
>>>>>> I'm trying to run CDO server inside a Tomcat via servletbridge. The
>>>>>> CDO bundles are activated properly but I couldn't find a way to start
>>>>>> the org.eclipse.emf.cdo.server.app application during deployment. The
>>>>>> result is that the CDO server doesn't start on the port specified.
>>>>>> When I try to start the application manually from the osgi console I
>>>>>> get this exception:
>>>>>>
>>>>>> org.osgi.service.application.ApplicationException
>>>>>> at
>>>>>> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> at java.lang.Thread.run(Thread.java:636)
>>>>>>
>>>>>>
>>>>>> Any ideas? Here's the list of bundles deployed:
>>>>>>
>>>>>> osgi> ss
>>>>>>
>>>>>> Framework is launched.
>>>>>>
>>>>>> id State Bundle
>>>>>> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
>>>>>> Fragments=1
>>>>>> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>>>>>> Master=0
>>>>>> 2 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
>>>>>> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
>>>>>> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
>>>>>> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
>>>>>> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
>>>>>> 7 ACTIVE javax.servlet_2.5.0.v200910301333
>>>>>> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
>>>>>> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
>>>>>> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
>>>>>> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
>>>>>> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
>>>>>> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
>>>>>> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
>>>>>> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
>>>>>> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
>>>>>> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
>>>>>> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
>>>>>> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
>>>>>> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
>>>>>> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
>>>>>> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
>>>>>> 23 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100310-1300
>>>>>> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
>>>>>> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
>>>>>> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
>>>>>> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
>>>>>> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
>>>>>> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
>>>>>> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
>>>>>> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
>>>>>> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
>>>>>> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
>>>>>> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
>>>>>> 35 ACTIVE
>>>>>> org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>>>>>>
>>>>>>
>>>>>> Michal
>>>>
>>
>
Re: [CDO] CDO server bundles deployed in Tomcat via servletbridge [message #533048 is a reply to message #532841] Wed, 12 May 2010 06:14 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Michal,

If this is interesting for you and you provided a patch and this patch
is good, well, then it's certainly interesting for us ;-) I hope that I
can manage today to look at your patch. Thank you.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 11.05.2010 13:04, schrieb Michal Tkacz:
> After reading some code I believe that configuring CDO server deployed
> inside servlet container is not possible without setting net4j.config
> property globally for the whole servlet container. I believe it's not
> an optimal solution, especially in enterprise environment where one
> might have limited access to the container's configuration.
>
> I don't know if you find this kind of setup interesting enough to feel
> the need to support it :) but if you do, please take a look at bug
> 312393 which would solve part of the problem. Fixing it would allow
> specifying the property inside config.ini, locally to the web
> application.
>
> The remaining part of the problem is the fact that net4j.config needs
> to specify an absolute path. This is because relative paths are
> resolved against working directory, which in case of servlet container
> is hard to predict and might even be outside web application folder
> (in my case it's /tmp/tomcat6-temp). The ability to specify relative
> path would be so much better :) I have no idea how this could be
> solved without breaking existing installations, maybe the path could
> be resolved against osgi.install.area?
>
> Any thoughts?
>
> Michal
>
> P.S. For anyone interested in setting CDO server inside servlet
> container, I found one more problem with it. See "Running an
> IApplication when deploying to Tomcat with servletbridge" thread in
> eclipse.technology.equinox group for details.
>
> On 05/07/2010 10:12 PM, Michal Tkacz wrote:
>> Ok, the server starts, the only problem is that it cannot find the
>> cdo-server.xml file. I thought that without net4j.config property set it
>> would look for config directory where the application is deployed (that
>> would be /var/lib/tomcat6/webapps/cdo/WEB-INF/eclipse in my case) but
>> apparently it looks for it in a temporary directory (/tmp/tomcat6-temp
>> in my case). So I just have to find a way to set the net4.config
>> property, preferably just for this application and not the whole tomcat.
>> But that's more of a servletbridge/tomcat story :)
>>
>> Thanks again Eike,
>>
>> Michal
>>
>> On 05/07/2010 09:59 PM, Michal Tkacz wrote:
>>> On 05/07/2010 09:04 PM, Eike Stepper wrote:
>>>> Am 07.05.2010 20:58, schrieb Michal Tkacz:
>>>>> Hello Eike,
>>>>>
>>>>> Yes, that was the cause of the exception. I just read the answer from
>>>>> Thomas Watson on eclipse.technology.equinox group.
>>>> I've seen that. Cross-posting is not good in general.
>>>
>>> Sorry, I know, I tried to put stress on the Equinox/servletbridge part
>>> there and on the CDO part here.
>>>
>>>>
>>>>> I wonder if CDO actually needs to be run on the main thread?
>>>> I can only judge that if I know the differences in behaviour. But
>>>> please
>>>> file a bugzilla with a patch so that we can strat to provide two
>>>> markups.
>>>
>>> Ok, I filed bug 312120.
>>>
>>>>
>>>>>
>>>>> Anyway, I just changed it and I'm now able to start the application
>>>>> manually from the osgi console. The CDO server does not start on the
>>>>> TCP port though. I can't see any exceptions either. I'll try to debug
>>>>> it to see what the problem might be.
>>>> Have you deployed and activated org.eclipse.emf.cdo.server.net4j ?
>>>
>>> No, does it come with CDO 2.x? I develop against 2.0 maintenance branch
>>> (at least until bug 290726 is resolved) and was able to run the server
>>> inside eclipse without that plugin. The list of plugins I deployed
>>> is at
>>> the end of this mail.
>>>
>>> Michal
>>>
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>> http://twitter.com/eikestepper
>>>>
>>>>
>>>>>
>>>>> Also I don't know yet how to make it start automatically.
>>>>>
>>>>> Michal
>>>>>
>>>>> On 05/07/2010 08:49 PM, Eike Stepper wrote:
>>>>>> Hi Michal,
>>>>>>
>>>>>> I'm not experienced with that but maybe it's related to the CDO
>>>>>> application being configured (plugin.xml) to run on the main thread.
>>>>>> Can
>>>>>> you try to change that and report if it solves the problem? Then we
>>>>>> can
>>>>>> provide an additional configuration for this.
>>>>>>
>>>>>> Cheers
>>>>>> /Eike
>>>>>>
>>>>>> ----
>>>>>> http://thegordian.blogspot.com
>>>>>> http://twitter.com/eikestepper
>>>>>>
>>>>>>
>>>>>>
>>>>>> Am 07.05.2010 17:34, schrieb Michal Tkacz:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm trying to run CDO server inside a Tomcat via servletbridge. The
>>>>>>> CDO bundles are activated properly but I couldn't find a way to
>>>>>>> start
>>>>>>> the org.eclipse.emf.cdo.server.app application during
>>>>>>> deployment. The
>>>>>>> result is that the CDO server doesn't start on the port specified.
>>>>>>> When I try to start the application manually from the osgi
>>>>>>> console I
>>>>>>> get this exception:
>>>>>>>
>>>>>>> org.osgi.service.application.ApplicationException
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.app.EclipseAppContainer.launch( EclipseAppContainer.java:328)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.app.EclipseAppDescriptor.launch Specific(EclipseAppDescriptor.java:93)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.osgi.service.application.ApplicationDescriptor.launch(Ap plicationDescriptor.java:315)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.app.AppCommands._startApp(AppCo mmands.java:183)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:155)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:157)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru nConsole(FrameworkConsole.java:142)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:106)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at java.lang.Thread.run(Thread.java:636)
>>>>>>>
>>>>>>>
>>>>>>> Any ideas? Here's the list of bundles deployed:
>>>>>>>
>>>>>>> osgi> ss
>>>>>>>
>>>>>>> Framework is launched.
>>>>>>>
>>>>>>> id State Bundle
>>>>>>> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100301
>>>>>>> Fragments=1
>>>>>>> 1 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>>>>>>> Master=0
>>>>>>> 2 ACTIVE
>>>>>>> org.eclipse.equinox.http.servletbridge_1.0.200.200910251825
>>>>>>> 3 ACTIVE org.eclipse.net4j.db.mysql_2.0.1.v20100507-1256
>>>>>>> 4 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100307
>>>>>>> 5 ACTIVE org.eclipse.emf.cdo.server.db_2.0.1.v20100112-1251
>>>>>>> 6 ACTIVE org.eclipse.emf.cdo.server_2.0.1.v20100114-1817
>>>>>>> 7 ACTIVE javax.servlet_2.5.0.v200910301333
>>>>>>> 8 ACTIVE org.eclipse.equinox.common_3.6.0.v20100222
>>>>>>> 9 ACTIVE org.eclipse.emf.cdo.common_2.0.1.v20100504-0233
>>>>>>> 10 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100201
>>>>>>> 11 ACTIVE com.mysql.jdbc_5.1.7.200912171708
>>>>>>> 12 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100301
>>>>>>> 13 ACTIVE org.eclipse.equinox.app_1.3.0.v20100304
>>>>>>> 14 ACTIVE org.eclipse.core.commands_3.6.0.I20100122-0800
>>>>>>> 15 ACTIVE org.eclipse.osgi.services_3.2.100.v20100108
>>>>>>> 16 ACTIVE org.eclipse.net4j_2.0.1.v20100116-1932
>>>>>>> 17 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100307
>>>>>>> 18 ACTIVE org.eclipse.emf.ecore_2.5.0.v200906151043
>>>>>>> 19 ACTIVE org.eclipse.emf.databinding_1.1.0.v200906151043
>>>>>>> 20 ACTIVE org.eclipse.emf.common_2.5.0.v200906151043
>>>>>>> 21 ACTIVE org.eclipse.net4j.tcp_2.0.1.v20090627-1154
>>>>>>> 22 ACTIVE org.eclipse.net4j.util_2.0.1.v20100116-1932
>>>>>>> 23 ACTIVE
>>>>>>> org.eclipse.core.databinding.property_1.3.0.I20100310-1300
>>>>>>> 24 ACTIVE com.ibm.icu.base_4.2.1.v20100212
>>>>>>> 25 ACTIVE org.eclipse.core.databinding_1.3.100.I20100310-1300
>>>>>>> 26 ACTIVE org.eclipse.core.runtime_3.6.0.v20091204
>>>>>>> 27 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v200906151043
>>>>>>> 28 ACTIVE org.eclipse.core.jobs_3.5.0.v20100304
>>>>>>> 29 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v200906151043
>>>>>>> 30 ACTIVE org.eclipse.emf.cdo_2.0.1.v20100420-0817
>>>>>>> 31 ACTIVE org.eclipse.core.expressions_3.4.200.v20100222
>>>>>>> 32 ACTIVE org.eclipse.emf.edit_2.5.0.v200906151043
>>>>>>> 33 ACTIVE org.eclipse.net4j.db_2.0.1.v20090627-1154
>>>>>>> 34 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100301
>>>>>>> 35 ACTIVE
>>>>>>> org.eclipse.core.databinding.observable_1.3.0.I20100310-1300
>>>>>>>
>>>>>>>
>>>>>>> Michal
>>>>>
>>>
>>
>


Previous Topic:[CDO] exceptions occur whereas they are handled in a try/catch clause
Next Topic:Custom PopupMenu in an Generated Model Editor
Goto Forum:
  


Current Time: Fri Apr 26 22:24:30 GMT 2024

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

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

Back to the top