Home » Language IDEs » ServerTools (WTP) » Eclipse and Tomcat in one VM
Eclipse and Tomcat in one VM [message #43646] |
Mon, 13 September 2004 09:47  |
Eclipse User |
|
|
|
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 14:19   |
Eclipse User |
|
|
|
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 15:28   |
Eclipse User |
|
|
|
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 00:17   |
Eclipse User |
|
|
|
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 00:39   |
Eclipse User |
|
|
|
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 13:28   |
Eclipse User |
|
|
|
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 09:40  |
Eclipse User |
|
|
|
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
> > >
> > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Tue May 13 09:53:53 EDT 2025
Powered by FUDForum. Page generated in 0.03722 seconds
|