You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by DaveNoth <da...@prudential.com> on 2012/04/02 13:37:32 UTC

Re: Running Tomcat as a Standalone desktop Application

Yes,  On a company owned windows server we would control the server setup.
(What software is installed and how it is configured)   We are planning to
distribute to individually owned machines in which we can not control what
is installed. They may have software installed that interferes with a
TomCat/Web App setup.  We are hoping for someone who has had experiences
doing this that can provide "best practices" or Do's and Don'ts based upon
their experience.   I also see that embedded TomCat may also be an option. 
Would that be a better approach?   Any help would be greatly appreciated.

--
View this message in context: http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4678609.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by Daniel Mikusa <dm...@vmware.com>.
----- Original Message -----
> Thank you Chuck.  Using Tomcat in the embedded form looks like a nice
> way to
> go.   I see there was on older article on the web which described the
> type
> of solution we are looking for in the disconnected deployment of our
> Web
> App.
> 
> http://www.javalobby.org/articles/tomcat2go/
> 
> Can you list any of the commercial apps that are using Tomcat in this
> way?


I know of an open source offering called WaveMaker which is using this method of deployment.  It's a fairly large project.

  http://www.wavemaker.com/

Project source code is on GitHub.

  https://github.com/SpringSource/wavemaker/tree/master/wavemaker-desktop/wavemaker-launcher

Dan


> 
> Thanks everyone for all the help.
> dave
> 
> --
> View this message in context:
> http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4679513.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Running Tomcat as a Standalone desktop Application

Posted by DaveNoth <da...@prudential.com>.
Thank you Chuck.  Using Tomcat in the embedded form looks like a nice way to
go.   I see there was on older article on the web which described the type
of solution we are looking for in the disconnected deployment of our Web
App.

http://www.javalobby.org/articles/tomcat2go/

Can you list any of the commercial apps that are using Tomcat in this way?

Thanks everyone for all the help.
dave

--
View this message in context: http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4679513.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Running Tomcat as a Standalone desktop Application

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: DaveNoth [mailto:david.nothnagel@prudential.com] 
> Subject: Re: Running Tomcat as a Standalone desktop Application

> If no one out there is doing this, I am going to infer it's not a 
> very good idea and look into a rewrite of the code to work under
> windows as a desktop app.

Actually, there are a fair number of commercial apps that have Tomcat buried inside them, so it's definitely not a bad idea.  You might want to look at using Tomcat in its embedded form, and provide a small main class that discovers an available port, starts up Tomcat, and launches a browser using the port.  Your only requirement on the environment would be having a viable JRE installed.  (Or you could bundle a JRE with your app, as some do.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by David kerber <dc...@verizon.net>.
On 4/2/2012 10:30 AM, DaveNoth wrote:
>
> Thanks André!  This is very helpful.
>
> We have a new user base that requires our application to run as a
> stand-alone, disconnected App. Today our App is an Online Web Application
> running under Websphere. I was also looking to see if anyone is currently
> deploying a Web Application (Servlet/JSP) running on Tomcat as a
> *stand-alone,* *disconnect* application.   Our goal is to use our same Java
> Web application code base for Online connected users as well as disconnected
> stand-alone users.   If no one out there is doing this, I am going to infer
> it's not a very good idea and look into a rewrite of the code to work under
> windows as a desktop app.

I wouldn't say it's not a good idea, it just seems to be a lot of work, 
since you need to configure a TC server on every user's machine.  Why 
not just set it up on an in-house server that cannot be accessed from 
the outside world, but can be accessed from the in-house LAN?

If you choose to make it a java desktop app, you'll probably find that a 
lot of your code can be used unchanged, especially if the UI code is 
fairly well separated from the back-end processes code.


>
> --
> View this message in context: http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4679081.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by DaveNoth <da...@prudential.com>.
Good point Chris.   Other then occasionally checking for updates, the system
is intended to remain offline.

dave

--
View this message in context: http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4682043.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave,

On 4/2/12 10:30 AM, DaveNoth wrote:
> We have a new user base that requires our application to run as a 
> stand-alone, disconnected App. Today our App is an Online Web
> Application running under Websphere. I was also looking to see if
> anyone is currently deploying a Web Application (Servlet/JSP)
> running on Tomcat as a *stand-alone,* *disconnect* application.
> Our goal is to use our same Java Web application code base for
> Online connected users as well as disconnected stand-alone users.
> If no one out there is doing this, I am going to infer it's not a
> very good idea and look into a rewrite of the code to work under 
> windows as a desktop app.

I think your biggest problem is going to be modifying the app itself
so that it can report whatever data is required back to "home base"
when the Internet connection resumes.

Or is this something that's intended to remain offline for its whole
lifetime?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk96D18ACgkQ9CaO5/Lv0PBF1wCfZYZkoJhn+MEUTEABOXcBb8KA
zIwAnRx9GMdvr2c0eyXBXG6p8RtAy9Yh
=2GWt
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by DaveNoth <da...@prudential.com>.
Thanks André!  This is very helpful.  

We have a new user base that requires our application to run as a
stand-alone, disconnected App. Today our App is an Online Web Application
running under Websphere. I was also looking to see if anyone is currently
deploying a Web Application (Servlet/JSP) running on Tomcat as a
*stand-alone,* *disconnect* application.   Our goal is to use our same Java
Web application code base for Online connected users as well as disconnected
stand-alone users.   If no one out there is doing this, I am going to infer
it's not a very good idea and look into a rewrite of the code to work under
windows as a desktop app.

--
View this message in context: http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4679081.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by André Warnier <aw...@ice-sa.com>.
Pid wrote:
> On 02/04/2012 12:37, DaveNoth wrote:
>> Yes,  On a company owned windows server we would control the server setup.
>> (What software is installed and how it is configured)   We are planning to
>> distribute to individually owned machines in which we can not control what
>> is installed. They may have software installed that interferes with a
>> TomCat/Web App setup.  We are hoping for someone who has had experiences
>> doing this that can provide "best practices" or Do's and Don'ts based upon
>> their experience.   I also see that embedded TomCat may also be an option. 
>> Would that be a better approach?   Any help would be greatly appreciated.
> 
> Better approach than what?  You haven't really explained...
> 
> I'm not sure there'll be any best practices, beyond common sense ones.
> 
Among those, I would suggest that you first read the FAQ entry about running Tomcat under 
Windows : http://wiki.apache.org/tomcat/FAQ/Windows
at least entries 9 and 10
This would give you an idea of what is actually running and how it all fits together.

As a first checklist, I would look at the following :
- Tomcat is a java application, so it runs under a Java JVM.  You will thus need to check 
if the host already has an installed JVM, and if yes, if it is compatible with your 
version of Tomcat.  If not, you will need to install a JVM.
- then you will need to set the appropriate paths so that the "service wrapper" (see above 
FAQs) uses that compatible JVM.
- when installed as a Service, it also needs a unique Service name. I'd suggest naming it 
differently from the standard Tomcat installation Service name, to avoid conflicts if 
there is already one installed.
- when running, Tomcat needs at least 2 "listen" ports, both of them configured in 
Tomcat's "server.xml" configuration file. One is the shutdown port, mentioned in the 
<Server> tag.  The other is the port for the HTTP connector, mentioned in the 
corresponding <Connector .. protocol="HTTP/1.1"> tag.
Tomcat will not start properly if it tries to open these listen ports, and some other 
software on the target machine is already using them. (For example, another webserver 
already using port 80).
- under Windows 7 and beyond, you'll also need to make sure that the installation does not 
run afoul of bothersome things like UAC and Windows Firewall etc..

All in all, a good bit of work, I would say.  You may be better off using the standard 
installation packages, and providing a good documentation.
Scanning the Tomcat online FAQ's may give you a good idea of how many failure modes are 
possible (some Windows-specific, some not), and what to do about them.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running Tomcat as a Standalone desktop Application

Posted by Pid <pi...@pidster.com>.
On 02/04/2012 12:37, DaveNoth wrote:
> Yes,  On a company owned windows server we would control the server setup.
> (What software is installed and how it is configured)   We are planning to
> distribute to individually owned machines in which we can not control what
> is installed. They may have software installed that interferes with a
> TomCat/Web App setup.  We are hoping for someone who has had experiences
> doing this that can provide "best practices" or Do's and Don'ts based upon
> their experience.   I also see that embedded TomCat may also be an option. 
> Would that be a better approach?   Any help would be greatly appreciated.

Better approach than what?  You haven't really explained...

I'm not sure there'll be any best practices, beyond common sense ones.


p


P.S. It's Tomcat, not TomCat.


> --
> View this message in context: http://tomcat.10.n6.nabble.com/Running-Tomcat-as-a-Standalone-desktop-Application-tp4671621p4678609.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


-- 

[key:62590808]