Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Eclipse and Tomcat in one VM
Eclipse and Tomcat in one VM [message #43646] Mon, 13 September 2004 13:47 Go to next message
Eclipse UserFriend
Originally posted by: consult1.mail.ru

Hi

Application, which we develop is based on Eclipse platform,
and now we need to provide access throug web-services.

Is it possible to start Tomcat in the same VM, as Eclipse?
So, web services will be able to access classes from
our application?

Or maybe there is some better ideas?

I found example of starting tomcat from java application,
but from one side, I'v got problems with Axis, from another
side, it seems, this this example doesn't work in Eclipse environment.

I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
it works, and id I can use it at all.

Thank you beforehand.

--
Best Regards
Vladimir Kvassov
Re: Eclipse and Tomcat in one VM [message #43797 is a reply to message #43646] Mon, 13 September 2004 18:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pvdhoef.springsite.com

Hello Vladimir,

Here's an article that describes how you can embed Tomcat in another
application:
http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
I expect that you can apply this in one of your own Eclipse plugins.
(I haven't tried this myself but hope it will work)

Regards,
Peter van de Hoef

"Vladimir Kvassov" <consult1@mail.ru> wrote in message
news:ci487b$1su$1@eclipse.org...
> Hi
>
> Application, which we develop is based on Eclipse platform,
> and now we need to provide access throug web-services.
>
> Is it possible to start Tomcat in the same VM, as Eclipse?
> So, web services will be able to access classes from
> our application?
>
> Or maybe there is some better ideas?
>
> I found example of starting tomcat from java application,
> but from one side, I'v got problems with Axis, from another
> side, it seems, this this example doesn't work in Eclipse environment.
>
> I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> it works, and id I can use it at all.
>
> Thank you beforehand.
>
> --
> Best Regards
> Vladimir Kvassov
>
>
Re: Eclipse and Tomcat in one VM [message #43827 is a reply to message #43646] Mon, 13 September 2004 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dorian.birsan.net

The trick with embedding tomcat in eclipse and allow webapps access to the
plugin environment is to pass the appropriate custom class loader to be used
by webapps. In eclipse, we have done it by creating a class loader which
delegates to either the regular tomcat loader or to the plugin class loader
that contains the webapp.
At some point we also had axis successfully running inside eclipse.

-Dorian

"Vladimir Kvassov" <consult1@mail.ru> wrote in message
news:ci487b$1su$1@eclipse.org...
> Hi
>
> Application, which we develop is based on Eclipse platform,
> and now we need to provide access throug web-services.
>
> Is it possible to start Tomcat in the same VM, as Eclipse?
> So, web services will be able to access classes from
> our application?
>
> Or maybe there is some better ideas?
>
> I found example of starting tomcat from java application,
> but from one side, I'v got problems with Axis, from another
> side, it seems, this this example doesn't work in Eclipse environment.
>
> I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> it works, and id I can use it at all.
>
> Thank you beforehand.
>
> --
> Best Regards
> Vladimir Kvassov
>
>
Re: Eclipse and Tomcat in one VM [message #43888 is a reply to message #43797] Tue, 14 September 2004 04:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: consult1.mail.ru

Thank you,

but this is example, which I'v mentioned in my first message.
(it doesn't work under eclipse)

"Peter van de Hoef" <pvdhoef@springsite.com> wrote in message
news:ci4o25$3t9$1@eclipse.org...
> Hello Vladimir,
>
> Here's an article that describes how you can embed Tomcat in another
> application:
> http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
> I expect that you can apply this in one of your own Eclipse plugins.
> (I haven't tried this myself but hope it will work)
>
> Regards,
> Peter van de Hoef
>
> "Vladimir Kvassov" <consult1@mail.ru> wrote in message
> news:ci487b$1su$1@eclipse.org...
> > Hi
> >
> > Application, which we develop is based on Eclipse platform,
> > and now we need to provide access throug web-services.
> >
> > Is it possible to start Tomcat in the same VM, as Eclipse?
> > So, web services will be able to access classes from
> > our application?
> >
> > Or maybe there is some better ideas?
> >
> > I found example of starting tomcat from java application,
> > but from one side, I'v got problems with Axis, from another
> > side, it seems, this this example doesn't work in Eclipse environment.
> >
> > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> > it works, and id I can use it at all.
> >
> > Thank you beforehand.
> >
> > --
> > Best Regards
> > Vladimir Kvassov
> >
> >
>
>
Re: Eclipse and Tomcat in one VM [message #43919 is a reply to message #43827] Tue, 14 September 2004 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: consult1.mail.ru

Thank you.
Your letter gives me hope, that this task is possible.

"dorian birsan" <dorian@birsan.net> wrote in message
news:ci4s5f$c4f$1@eclipse.org...
> The trick with embedding tomcat in eclipse and allow webapps access to the
> plugin environment is to pass the appropriate custom class loader to be
used
> by webapps. In eclipse, we have done it by creating a class loader which
> delegates to either the regular tomcat loader or to the plugin class
loader
> that contains the webapp.
> At some point we also had axis successfully running inside eclipse.
>
> -Dorian
>
> "Vladimir Kvassov" <consult1@mail.ru> wrote in message
> news:ci487b$1su$1@eclipse.org...
> > Hi
> >
> > Application, which we develop is based on Eclipse platform,
> > and now we need to provide access throug web-services.
> >
> > Is it possible to start Tomcat in the same VM, as Eclipse?
> > So, web services will be able to access classes from
> > our application?
> >
> > Or maybe there is some better ideas?
> >
> > I found example of starting tomcat from java application,
> > but from one side, I'v got problems with Axis, from another
> > side, it seems, this this example doesn't work in Eclipse environment.
> >
> > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> > it works, and id I can use it at all.
> >
> > Thank you beforehand.
> >
> > --
> > Best Regards
> > Vladimir Kvassov
> >
> >
>
>
Re: Eclipse and Tomcat in one VM [message #51088 is a reply to message #43919] Thu, 28 October 2004 17:28 Go to previous messageGo to next message
Chris Brealey is currently offline Chris BrealeyFriend
Messages: 104
Registered: July 2009
Senior Member
Vladimir,
you might want to take a peek at the Web Services Explorer component of the IBM
contribution to the WTP. The Web Services Explorer is a fairly large Web
application deployed to the Tomcat servlet engine included in Eclipse and which
runs on a thread in the Eclipse JVM. This is the same engine used to host
Eclipse online help.

Have a look at the getCatalinaRunnable() method in
com.ibm.etools.webservice.explorer/src/com/ibm/etools/webser vice/explorer/CatalinaRunnable.java.

Cheers - CB.

Vladimir Kvassov wrote:

> Thank you.
> Your letter gives me hope, that this task is possible.
>
> "dorian birsan" <dorian@birsan.net> wrote in message
> news:ci4s5f$c4f$1@eclipse.org...
> > The trick with embedding tomcat in eclipse and allow webapps access to the
> > plugin environment is to pass the appropriate custom class loader to be
> used
> > by webapps. In eclipse, we have done it by creating a class loader which
> > delegates to either the regular tomcat loader or to the plugin class
> loader
> > that contains the webapp.
> > At some point we also had axis successfully running inside eclipse.
> >
> > -Dorian
> >
> > "Vladimir Kvassov" <consult1@mail.ru> wrote in message
> > news:ci487b$1su$1@eclipse.org...
> > > Hi
> > >
> > > Application, which we develop is based on Eclipse platform,
> > > and now we need to provide access throug web-services.
> > >
> > > Is it possible to start Tomcat in the same VM, as Eclipse?
> > > So, web services will be able to access classes from
> > > our application?
> > >
> > > Or maybe there is some better ideas?
> > >
> > > I found example of starting tomcat from java application,
> > > but from one side, I'v got problems with Axis, from another
> > > side, it seems, this this example doesn't work in Eclipse environment.
> > >
> > > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> > > it works, and id I can use it at all.
> > >
> > > Thank you beforehand.
> > >
> > > --
> > > Best Regards
> > > Vladimir Kvassov
> > >
> > >
> >
> >
Re: Eclipse and Tomcat in one VM [message #51725 is a reply to message #43888] Wed, 03 November 2004 14:40 Go to previous message
Eclipse UserFriend
Originally posted by: vladimir.bogus.com

Hey Vladimir,

Import org.eclipse.tomcat as a project into your workspace and see how it's
done in org.eclipse.tomcat.internal.TomcatAppServer - same idea as in onJava
example and obviously working.

Vladimir
"Vladimir Kvassov" <consult1@mail.ru> wrote in message
news:ci5r6d$k3o$1@eclipse.org...
> Thank you,
>
> but this is example, which I'v mentioned in my first message.
> (it doesn't work under eclipse)
>
> "Peter van de Hoef" <pvdhoef@springsite.com> wrote in message
> news:ci4o25$3t9$1@eclipse.org...
> > Hello Vladimir,
> >
> > Here's an article that describes how you can embed Tomcat in another
> > application:
> > http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
> > I expect that you can apply this in one of your own Eclipse plugins.
> > (I haven't tried this myself but hope it will work)
> >
> > Regards,
> > Peter van de Hoef
> >
> > "Vladimir Kvassov" <consult1@mail.ru> wrote in message
> > news:ci487b$1su$1@eclipse.org...
> > > Hi
> > >
> > > Application, which we develop is based on Eclipse platform,
> > > and now we need to provide access throug web-services.
> > >
> > > Is it possible to start Tomcat in the same VM, as Eclipse?
> > > So, web services will be able to access classes from
> > > our application?
> > >
> > > Or maybe there is some better ideas?
> > >
> > > I found example of starting tomcat from java application,
> > > but from one side, I'v got problems with Axis, from another
> > > side, it seems, this this example doesn't work in Eclipse environment.
> > >
> > > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> > > it works, and id I can use it at all.
> > >
> > > Thank you beforehand.
> > >
> > > --
> > > Best Regards
> > > Vladimir Kvassov
> > >
> > >
> >
> >
>
>
Previous Topic:SVG ability
Next Topic:What is the relation of WTP and ibm.zip
Goto Forum:
  


Current Time: Sat Oct 19 17:47:11 GMT 2024

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

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

Back to the top