You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Brian V. Casteel" <br...@ilhcgh.org> on 2015/02/27 17:32:36 UTC

1st time user

I am wanting to set up Tomcat on my windows 2008 server and utilize it with my page running on IIS.  However I don't event know where to begin.  Can anyone help me out?


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.
And in response to the first half that message I have at least one Java script I want to have on my webpage that is currently served up by IIS


-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Friday, February 27, 2015 11:02 AM
To: Tomcat Users List
Subject: Re: 1st time user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Brian,

On 2/27/15 11:32 AM, Brian V. Casteel wrote:
> I am wanting to set up Tomcat on my windows 2008 server and utilize it 
> with my page running on IIS.  However I don't event know where to 
> begin.  Can anyone help me out?

Do you have an application you want to deploy, or do you just want to use Tomcat as a web server?

Getting started is pretty easy. What have you read/done already?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8KL8AAoJEBzwKT+lPKRYwswP/3G7H/COUPVl758SVBJ94Egn
4tPBJGPQyZ8G1EFd3vjgsqJ8Din5AvXwrcIG7yR/cbPOjTYlWSlKFDXQdYW/TVc8
ahnaTKpfmbBYZl0PspSd8qcIuaZocuqJY3rXmX6sMr4aljOq/QM7nc8qkzvG8ix1
H8OLDM9ehCFCdTVVrteyoMmD8K5710al1Bb+ZCdsaIemkooB9JhsB6FGeCYR/Jy3
JmRmLwY+zxx9iIctsLUc5VqP5ACEUfpsWKsmcw5UuYKsfPkFcyOwHjeWSIoZu7wj
TO7Z8Iwa/i4KQ8sJ03gykQ9tlPNYLb1VTZSkHBJWe/42X4KEiL8q+NqqzmG5pQuD
MuzY4uFGVd6MCUzO78TpuwF8HyFD7OgcHUywJeKXYVAxX3CAxaLvTgFj7+TvwyVI
iFycTsXhUbCaaGFzwwHgoc661cyD9aqaGhW11n27Hj9FlKOvQTEc5jW3wVXQ1fdr
CUFlgGeQpfe42LmIOHcj73vBaeWUw0xM3viZlQs4+QR73hru0FhEYiYIsQKDSjrS
Ad7FuS4l8VpcLU9hLT5W6mAE8sODPm6tYNoozvKswDE52MsjuAe0F/z5vPj6Y8ut
mSmJcsvPoqZXBd2jF/8CE7IDcp/w/NfvZxnAoyKdQ9LOwahz4yw64Bj1CQ5VZrQe
47/a2Gq8vZZuQBdutTaN
=IAZV
-----END PGP SIGNATURE-----

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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Friday, February 27, 2015 11:32 AM
To: Tomcat Users List
Subject: Re: 1st time user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Brian,

Please bottom-post or mix your responses inside of the original message. It's much easier to read and the convention on this mailing list. I've re-formatted your message slightly. Please see below.

On 2/27/15 12:12 PM, Brian V. Casteel wrote:
>> -----Original Message----- From: Christopher Schultz 
>> [mailto:chris@christopherschultz.net] Sent: Friday, February 27,
>> 2015 11:02 AM To: Tomcat Users List Subject: Re: 1st time user
>> 
>> Brian,
>> 
>> On 2/27/15 11:32 AM, Brian V. Casteel wrote:
>>> I am wanting to set up Tomcat on my windows 2008 server and utilize 
>>> it with my page running on IIS.  However I don't event know where to 
>>> begin.  Can anyone help me out?
>> 
>> Do you have an application you want to deploy, or do you just want to 
>> use Tomcat as a web server?
>> 
>> Getting started is pretty easy. What have you read/done already?
> 
> I haven’t done much of anything. I downloaded what I think is the 
> appropriate versions of tomcat 8 for my server, other than that I'm 
> incredibly lost.

You have a few options. For Windows users, perhaps the Windows Installer (one of the .exe downloads) is probably the easiest to use:
you'll get everything installed in a standard place (C:\Program Files) and it will also install the Windows Service that you can use to start/stop Tomcat.

If you download one of the ZIP packages, you can unzip it anywhere you want. Launching Tomcat from the command-line is often a little easier to troubleshoot when you are getting started. I can't remember if the startup scripts are or are not included in the .exe packages; I seem to remember them being missing in the past. I'm not prepared to download and install the .exe package right now just to check, though.

> And in response to the first half that message I have at least one  
> Java script I want to have on my webpage that is currently served up 
> by IIS.

Would you like to connect IIS to Tomcat, or do you want to use Tomcat instead?

I was hoping to connect IIS to Tomcat rather than migrate my pages

The thing that's usually most confusing to new users is that Tomcat isn't a traditional web server where you just point it at a directory (DocumentRoot in Apache httpd's parlance, not sure what it's called in
IIS) and serve files from it. Instead, everything is a "web application" which can be very simple -- just having a few .html files or whatever -- or it can have servlets, JSPs, and all kinds of other things that are more interesting than just static files.

Unfortunately, the "getting started" documentation in the Users' Guide is not great. There are whole sections of your local public library or bookstore devoted to the basics of Java web applications, so repeating all that stuff in Tomcat's documentation is kind of ... repetitive.

Understanding what a "web application" is, in terms of structure, is probably going to be the best time spent as you get started, here. Do a little bit of Googling and maybe to get a book on Java web applications and read some of the introductory sections.

O'Reilly's "Tomcat: The Definitive Guide" is fairly good, though it's based upon Tomcat 6 and so some of the specific configurations are a bit out of date, but if you are okay with a loose interpretation of those specifics, it's worth the read. The book is HUGE, so don't try to go read the whole thing before getting started.

Wrox's "Professional Java for Web Applications" is also good, though it moves very quickly and goes from covering "the basics" to ... well, everything else under the sun. It's also enormous, so don't think you have to read the whole thing.

The authors of both of those books do lurk on this mailing list, and no, I don't get paid if you buy their books (though I should consider asking for some consideration!).

So do a bit of reading and ask whatever questions you have, here. But don't ask this community to teach you how to write web applications because that will become tiresome for them. :)

Welcome to the community.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8KoFAAoJEBzwKT+lPKRY1sQQAI3qHSgZgYA2YfHVnnYC4oGG
NIZI5YZnVU9pHR29DlhEjobUkFhXTKFCHGikcuUId6RWvv6FNFq9h3eCZwIE11WN
1EQ7qxzllY8b66lQr28GMRKwXpPZns74IFHBbCNS9jPef5hfzvnC+XIVMxP5vWOJ
BNOCpn1O1rGvFTfbkGQET5VSTKlql23owCz6hRTwpVSHYn/Te7vKuZI1aIPiGOzI
YCPFjIvPVtnbgnDa+98Ax/K58rgP/Pp72Z458xn6totqr88VfqqweVTiLFLxJ7jh
YwQ1yI6+BQSLQ2vYPkFuuVJ6cjOV2N0FjpW90zaedsvdDwxwmLwnVVefNf8kdAkH
HzhB71WEqtt59SuZQqS7WpDvNWK8CvBBE2yV2iUAX7uUHIP8sZeOHZydsVQKmlz/
oKQ6S8CXiJ3YlwIUMnn4GSGM0ebLkhKhn0brtVT+4baVgofRw+Gzcoe2eGL/VSC/
4yalMtpZLOZELjDDa7b/8tTeHr1U1+/RCex3uNaM+UK57Ego+gli8Ew5ZUq8RyDu
3suSZaZqWICjFZEZxamxCbkv/NrVuHTTmDms3D4hFq/iLx01h8kvhPjDd+VNxDyH
yn6tl6dp3e00QBUGqg5rdx0JkhOTkZCaE3nIKFbwBtijKyRO8LQ3zKIlvfL3b2Ac
cnDvvX9Sm5VVx7NGfoKa
=Qj8R
-----END PGP SIGNATURE-----

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


RE: 1st time user

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Brian V. Casteel [mailto:brian.casteel@ilhcgh.org] 
> Subject: RE: 1st time user

> I have a bit of javascipt I want to run on a page hosted from my IIS server.

Javascript runs in a _browser_, not on the server; it's just text as far as the server is concerned.  You don't need Tomcat for that.

 - 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: 1st time user

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, Feb 27, 2015 at 12:38 PM, Brian V. Casteel
<br...@ilhcgh.org> wrote:

> At this point I am lost and confused.   I have a page.  I have a bit of java that I want to display on that page and do its little java thing.  However as of right now  my page is showing up as blank.

Again, Java and JavaScript are *not the same*.

You don't need Tomcat to have JavaScript included in a page from
any web server, IIS or otherwise.

So which is it?
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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


Re: 1st time user

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

Brian,

On 2/27/15 3:38 PM, Brian V. Casteel wrote:
> 
> 
> -----Original Message----- From: David kerber
> [mailto:dckerber@verizon.net] Sent: Friday, February 27, 2015 2:36
> PM To: Tomcat Users List Subject: Re: 1st time user
> 
> On 2/27/2015 3:25 PM, Brian V. Casteel wrote:
>> 
>> 
>> -----Original Message----- From: David kerber
>> [mailto:dckerber@verizon.net] Sent: Friday, February 27, 2015
>> 2:24 PM To: Tomcat Users List Subject: Re: 1st time user
>> 
>> On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>>> 
>>> 
>>> -----Original Message----- From: Christopher Schultz
>>> [mailto:chris@christopherschultz.net] Sent: Friday, February
>>> 27, 2015 11:32 AM To: Tomcat Users List Subject: Re: 1st time
>>> user
>>> 
>> 
>> ...
>> 
>>> 
>>> 
>>> OK  I have Tomcat installed.  But when how do I make my java on
>>> my HTML page from IIS run it?
>>> 
>> 
>> Java, or JavaScript?  They are two very different animals.
>> 
>> I have a bit of javascipt I want to run on a page hosted from my
>> IIS server.
> 
> Javascript is normally run in the client browser, not on the
> server. There is also some server-side javascript, but I doubt that
> is what you're referring to.  Even so, that would normally be done
> by your IIS, rather than tomcat.
> 
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> At this point I am lost and confused.   I have a page.  I have a
> bit of java that I want to display on that page and do its little
> java thing.  However as of right now  my page is showing up as
> blank.

I think I'm starting to see the picture. Do you have a Java Applet
that you want to put on your page, or do you have a Java Servlet that
you want to run?

If you have an Applet, you don't need Tomcat /at all/: you just code
the page with an <object> tag in it, stick your JAR file containing
your applet in the right place and you can serve it with any web
server you want (including plain-old IIS). It will use the client's
Java Virtual Machine to run -- like like a Flash applet uses Flash
installed on the user's machine.

If you have a Servlet that will be producing content on the
server-side, then you do need Tomcat. If you have a dynamic page
generated by a Java servlet, including Javascript from IIS is not a
problem at all: just use a URL in your HTML page that will be handled
by IIS and it's no problem, either.

The "hard part" is connecting IIS and Tomcat so that some URLs handled
by IIS are proxied-through to Tomcat. You can use mod_jk for that,
though I have never done it myself (I don't live in the Microsoft world).

The best thing for a newbie to do is get the web application running
in Tomcat first, then slap a web server in front of it and get those
components connected.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8O5aAAoJEBzwKT+lPKRYa10QALSHaejNPbTqCa3mC9Jy2yB6
CXafdlMtr7Xm2GxBGEzkTEW7qd+4CvCbd9J6flUjTJHjfoWxuc6w5SWTWPnsAtqA
ZHo9ZACd5fu3zya0HmNQg/RWC2KcTCbg/wWG/7yRUsBOhAbhPUSBvVrXyIa4Qwa8
xi583nNr4+nNIs+jJ0r8wBvYWDKWecnv9V0UuvUMHzvl0shP8ZmNaAJe/NGnnhyK
FsnBm+Znjmns+IQuVqEKpfza8tewsDU7ZPOXYfh9yL3PgLEI7MGB+ReKJ/Lm5JAM
QbO+eyVR8NJyytraSlItyL3FHqHx2Yhx2cjUxUuTc+KBaNXTuCpcga5bKG/9IaY2
1DbwrDd0gaOC3JMj41bJjwlu6zu5UXEKDbfoArNS7wSGgOZ78kAWZicYO8l6He87
7fk3xzosw5Eb2ci5hqUIrjBSlgYH7DkDuJG3fv63yZILg3corvgJeTZ0YXX0bteh
ttoJB87uBYf7fUjCi6eThWZEK90Gid8Jbii6r8cH24xbqNbGvRbL/lJNdV7Ttr24
lGy14Ffxu/ZKwRVBGMk7dgicwEH/B7PXg+yVk9/8TASAvO0Yo55CK0LmZ6Ftq6t6
MtNGTnJeWNz4wQb6EhyfLBEywGL8NwvAVomIkp05gaIHFXd/2oR/5XBZk/iGdRP8
N0lq+oBNQhNq8YaNeatz
=dk3n
-----END PGP SIGNATURE-----

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


Re: 1st time user

Posted by André Warnier <aw...@ice-sa.com>.
Brian,

This list is a Tomcat help list.  We specialise in helping people resolve problems related 
to using Tomcat, and Tomcat is a Java Servlet Engine : a specialised kind of webserver, 
whose main purpose is running Java servlets (a kind of Java program written specially to 
be run in such an engine, usually in a web context).

But it seems that there could be a fundamental misunderstanding, and that maybe you do not 
need Tomcat at all for doing what you want to do.

If the "bit of code" of which you were talking, is something that needs to run in the 
browser (not the server), then you do not need any additional webserver, and the IIS you 
have been using so far is fine and enough.
And if you have a problem running that code, the problem is not on the server side, it is 
on the workstation side.

The basic question is : what is that piece of code that you need to run ? Is it something 
that is included in the HTML page ?
If yes, is it *javascript* or *java* code ? Contrarily to what the name would tend to 
indicate, these are 2 totally different programming languages.
Can you copy and paste here the content of that HTML page (or the relevant part of it), 
and point us to where in that page is the code that should run ?


(Please use copy-and-paste, do not just "attach" the HTML page.  This list strips most 
attachments).

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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.

-----Original Message-----
From: David kerber [mailto:dckerber@verizon.net] 
Sent: Friday, February 27, 2015 2:45 PM
To: Tomcat Users List
Subject: Re: 1st time user

On 2/27/2015 3:38 PM, Brian V. Casteel wrote:
>
>
> -----Original Message-----
> From: David kerber [mailto:dckerber@verizon.net]
> Sent: Friday, February 27, 2015 2:36 PM
> To: Tomcat Users List
> Subject: Re: 1st time user
>
> On 2/27/2015 3:25 PM, Brian V. Casteel wrote:
>>
>>
>> -----Original Message-----
>> From: David kerber [mailto:dckerber@verizon.net]
>> Sent: Friday, February 27, 2015 2:24 PM
>> To: Tomcat Users List
>> Subject: Re: 1st time user
>>
>> On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>>>
>>>
>>> -----Original Message-----
>>> From: Christopher Schultz [mailto:chris@christopherschultz.net]
>>> Sent: Friday, February 27, 2015 11:32 AM
>>> To: Tomcat Users List
>>> Subject: Re: 1st time user
>>>
>>
>> ...
>>
>>>
>>>
>>> OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?
>>>
>>
>> Java, or JavaScript?  They are two very different animals.
>>
>> I have a bit of javascipt I want to run on a page hosted from my IIS server.
>
> Javascript is normally run in the client browser, not on the server.
> There is also some server-side javascript, but I doubt that is what you're referring to.  Even so, that would normally be done by your IIS, rather than tomcat.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> At this point I am lost and confused.   I have a page.  I have a bit of java that I want to display on that page and do its little java thing.  However as of right now  my page is showing up as blank.

It's javascript, not Java.  They have no connection to each other, despite the name.  For what you're trying to do here, tomcat is just an extra complication, with no advantages over just using IIS.


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

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


Re: 1st time user

Posted by David kerber <dc...@verizon.net>.
On 2/27/2015 3:38 PM, Brian V. Casteel wrote:
>
>
> -----Original Message-----
> From: David kerber [mailto:dckerber@verizon.net]
> Sent: Friday, February 27, 2015 2:36 PM
> To: Tomcat Users List
> Subject: Re: 1st time user
>
> On 2/27/2015 3:25 PM, Brian V. Casteel wrote:
>>
>>
>> -----Original Message-----
>> From: David kerber [mailto:dckerber@verizon.net]
>> Sent: Friday, February 27, 2015 2:24 PM
>> To: Tomcat Users List
>> Subject: Re: 1st time user
>>
>> On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>>>
>>>
>>> -----Original Message-----
>>> From: Christopher Schultz [mailto:chris@christopherschultz.net]
>>> Sent: Friday, February 27, 2015 11:32 AM
>>> To: Tomcat Users List
>>> Subject: Re: 1st time user
>>>
>>
>> ...
>>
>>>
>>>
>>> OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?
>>>
>>
>> Java, or JavaScript?  They are two very different animals.
>>
>> I have a bit of javascipt I want to run on a page hosted from my IIS server.
>
> Javascript is normally run in the client browser, not on the server.
> There is also some server-side javascript, but I doubt that is what you're referring to.  Even so, that would normally be done by your IIS, rather than tomcat.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> At this point I am lost and confused.   I have a page.  I have a bit of java that I want to display on that page and do its little java thing.  However as of right now  my page is showing up as blank.

It's javascript, not Java.  They have no connection to each other, 
despite the name.  For what you're trying to do here, tomcat is just an 
extra complication, with no advantages over just using IIS.


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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.

-----Original Message-----
From: David kerber [mailto:dckerber@verizon.net] 
Sent: Friday, February 27, 2015 2:36 PM
To: Tomcat Users List
Subject: Re: 1st time user

On 2/27/2015 3:25 PM, Brian V. Casteel wrote:
>
>
> -----Original Message-----
> From: David kerber [mailto:dckerber@verizon.net]
> Sent: Friday, February 27, 2015 2:24 PM
> To: Tomcat Users List
> Subject: Re: 1st time user
>
> On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>>
>>
>> -----Original Message-----
>> From: Christopher Schultz [mailto:chris@christopherschultz.net]
>> Sent: Friday, February 27, 2015 11:32 AM
>> To: Tomcat Users List
>> Subject: Re: 1st time user
>>
>
> ...
>
>>
>>
>> OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?
>>
>
> Java, or JavaScript?  They are two very different animals.
>
> I have a bit of javascipt I want to run on a page hosted from my IIS server.

Javascript is normally run in the client browser, not on the server. 
There is also some server-side javascript, but I doubt that is what you're referring to.  Even so, that would normally be done by your IIS, rather than tomcat.


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


At this point I am lost and confused.   I have a page.  I have a bit of java that I want to display on that page and do its little java thing.  However as of right now  my page is showing up as blank.


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


Re: 1st time user

Posted by David kerber <dc...@verizon.net>.
On 2/27/2015 3:25 PM, Brian V. Casteel wrote:
>
>
> -----Original Message-----
> From: David kerber [mailto:dckerber@verizon.net]
> Sent: Friday, February 27, 2015 2:24 PM
> To: Tomcat Users List
> Subject: Re: 1st time user
>
> On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>>
>>
>> -----Original Message-----
>> From: Christopher Schultz [mailto:chris@christopherschultz.net]
>> Sent: Friday, February 27, 2015 11:32 AM
>> To: Tomcat Users List
>> Subject: Re: 1st time user
>>
>
> ...
>
>>
>>
>> OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?
>>
>
> Java, or JavaScript?  They are two very different animals.
>
> I have a bit of javascipt I want to run on a page hosted from my IIS server.

Javascript is normally run in the client browser, not on the server. 
There is also some server-side javascript, but I doubt that is what 
you're referring to.  Even so, that would normally be done by your IIS, 
rather than tomcat.


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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.

-----Original Message-----
From: David kerber [mailto:dckerber@verizon.net] 
Sent: Friday, February 27, 2015 2:24 PM
To: Tomcat Users List
Subject: Re: 1st time user

On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>
>
> -----Original Message-----
> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Sent: Friday, February 27, 2015 11:32 AM
> To: Tomcat Users List
> Subject: Re: 1st time user
>

...

>
>
> OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?
>

Java, or JavaScript?  They are two very different animals.

I have a bit of javascipt I want to run on a page hosted from my IIS server.



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


Re: 1st time user

Posted by David kerber <dc...@verizon.net>.
On 2/27/2015 3:07 PM, Brian V. Casteel wrote:
>
>
> -----Original Message-----
> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Sent: Friday, February 27, 2015 11:32 AM
> To: Tomcat Users List
> Subject: Re: 1st time user
>

...

>
>
> OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?
>

Java, or JavaScript?  They are two very different animals.



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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.

-----Original Message-----
From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Sent: Friday, February 27, 2015 2:21 PM
To: Tomcat Users List
Subject: Re: 1st time user

On Fri, Feb 27, 2015 at 12:07 PM, Brian V. Casteel <br...@ilhcgh.org> wrote:

> But when how do I make my java on my HTML page from IIS run it?

Could you translate that into English? My Gibberish is rusty.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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


Sorry,  Meant to ask how do I make my HTML page that is served using IIS display my java script.
Hope that clarifies a bit  my snark to sarcasm is a bit rusty.

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


Re: 1st time user

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, Feb 27, 2015 at 12:07 PM, Brian V. Casteel
<br...@ilhcgh.org> wrote:

> But when how do I make my java on my HTML page from IIS run it?

Could you translate that into English? My Gibberish is rusty.

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Friday, February 27, 2015 11:32 AM
To: Tomcat Users List
Subject: Re: 1st time user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Brian,

Please bottom-post or mix your responses inside of the original message. It's much easier to read and the convention on this mailing list. I've re-formatted your message slightly. Please see below.

On 2/27/15 12:12 PM, Brian V. Casteel wrote:
>> -----Original Message----- From: Christopher Schultz 
>> [mailto:chris@christopherschultz.net] Sent: Friday, February 27,
>> 2015 11:02 AM To: Tomcat Users List Subject: Re: 1st time user
>> 
>> Brian,
>> 
>> On 2/27/15 11:32 AM, Brian V. Casteel wrote:
>>> I am wanting to set up Tomcat on my windows 2008 server and utilize 
>>> it with my page running on IIS.  However I don't event know where to 
>>> begin.  Can anyone help me out?
>> 
>> Do you have an application you want to deploy, or do you just want to 
>> use Tomcat as a web server?
>> 
>> Getting started is pretty easy. What have you read/done already?
> 
> I haven’t done much of anything. I downloaded what I think is the 
> appropriate versions of tomcat 8 for my server, other than that I'm 
> incredibly lost.

You have a few options. For Windows users, perhaps the Windows Installer (one of the .exe downloads) is probably the easiest to use:
you'll get everything installed in a standard place (C:\Program Files) and it will also install the Windows Service that you can use to start/stop Tomcat.

If you download one of the ZIP packages, you can unzip it anywhere you want. Launching Tomcat from the command-line is often a little easier to troubleshoot when you are getting started. I can't remember if the startup scripts are or are not included in the .exe packages; I seem to remember them being missing in the past. I'm not prepared to download and install the .exe package right now just to check, though.

> And in response to the first half that message I have at least one  
> Java script I want to have on my webpage that is currently served up 
> by IIS.

Would you like to connect IIS to Tomcat, or do you want to use Tomcat instead?

The thing that's usually most confusing to new users is that Tomcat isn't a traditional web server where you just point it at a directory (DocumentRoot in Apache httpd's parlance, not sure what it's called in
IIS) and serve files from it. Instead, everything is a "web application" which can be very simple -- just having a few .html files or whatever -- or it can have servlets, JSPs, and all kinds of other things that are more interesting than just static files.

Unfortunately, the "getting started" documentation in the Users' Guide is not great. There are whole sections of your local public library or bookstore devoted to the basics of Java web applications, so repeating all that stuff in Tomcat's documentation is kind of ... repetitive.

Understanding what a "web application" is, in terms of structure, is probably going to be the best time spent as you get started, here. Do a little bit of Googling and maybe to get a book on Java web applications and read some of the introductory sections.

O'Reilly's "Tomcat: The Definitive Guide" is fairly good, though it's based upon Tomcat 6 and so some of the specific configurations are a bit out of date, but if you are okay with a loose interpretation of those specifics, it's worth the read. The book is HUGE, so don't try to go read the whole thing before getting started.

Wrox's "Professional Java for Web Applications" is also good, though it moves very quickly and goes from covering "the basics" to ... well, everything else under the sun. It's also enormous, so don't think you have to read the whole thing.

The authors of both of those books do lurk on this mailing list, and no, I don't get paid if you buy their books (though I should consider asking for some consideration!).

So do a bit of reading and ask whatever questions you have, here. But don't ask this community to teach you how to write web applications because that will become tiresome for them. :)

Welcome to the community.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8KoFAAoJEBzwKT+lPKRY1sQQAI3qHSgZgYA2YfHVnnYC4oGG
NIZI5YZnVU9pHR29DlhEjobUkFhXTKFCHGikcuUId6RWvv6FNFq9h3eCZwIE11WN
1EQ7qxzllY8b66lQr28GMRKwXpPZns74IFHBbCNS9jPef5hfzvnC+XIVMxP5vWOJ
BNOCpn1O1rGvFTfbkGQET5VSTKlql23owCz6hRTwpVSHYn/Te7vKuZI1aIPiGOzI
YCPFjIvPVtnbgnDa+98Ax/K58rgP/Pp72Z458xn6totqr88VfqqweVTiLFLxJ7jh
YwQ1yI6+BQSLQ2vYPkFuuVJ6cjOV2N0FjpW90zaedsvdDwxwmLwnVVefNf8kdAkH
HzhB71WEqtt59SuZQqS7WpDvNWK8CvBBE2yV2iUAX7uUHIP8sZeOHZydsVQKmlz/
oKQ6S8CXiJ3YlwIUMnn4GSGM0ebLkhKhn0brtVT+4baVgofRw+Gzcoe2eGL/VSC/
4yalMtpZLOZELjDDa7b/8tTeHr1U1+/RCex3uNaM+UK57Ego+gli8Ew5ZUq8RyDu
3suSZaZqWICjFZEZxamxCbkv/NrVuHTTmDms3D4hFq/iLx01h8kvhPjDd+VNxDyH
yn6tl6dp3e00QBUGqg5rdx0JkhOTkZCaE3nIKFbwBtijKyRO8LQ3zKIlvfL3b2Ac
cnDvvX9Sm5VVx7NGfoKa
=Qj8R
-----END PGP SIGNATURE-----

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


OK  I have Tomcat installed.  But when how do I make my java on my HTML page from IIS run it?


Re: 1st time user

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

Brian,

Please bottom-post or mix your responses inside of the original
message. It's much easier to read and the convention on this mailing
list. I've re-formatted your message slightly. Please see below.

On 2/27/15 12:12 PM, Brian V. Casteel wrote:
>> -----Original Message----- From: Christopher Schultz
>> [mailto:chris@christopherschultz.net] Sent: Friday, February 27,
>> 2015 11:02 AM To: Tomcat Users List Subject: Re: 1st time user
>> 
>> Brian,
>> 
>> On 2/27/15 11:32 AM, Brian V. Casteel wrote:
>>> I am wanting to set up Tomcat on my windows 2008 server and
>>> utilize it with my page running on IIS.  However I don't event
>>> know where to begin.  Can anyone help me out?
>> 
>> Do you have an application you want to deploy, or do you just
>> want to use Tomcat as a web server?
>> 
>> Getting started is pretty easy. What have you read/done already?
> 
> I haven’t done much of anything. I downloaded what I think is the 
> appropriate versions of tomcat 8 for my server, other than that
> I'm incredibly lost.

You have a few options. For Windows users, perhaps the Windows
Installer (one of the .exe downloads) is probably the easiest to use:
you'll get everything installed in a standard place (C:\Program Files)
and it will also install the Windows Service that you can use to
start/stop Tomcat.

If you download one of the ZIP packages, you can unzip it anywhere you
want. Launching Tomcat from the command-line is often a little easier
to troubleshoot when you are getting started. I can't remember if the
startup scripts are or are not included in the .exe packages; I seem
to remember them being missing in the past. I'm not prepared to
download and install the .exe package right now just to check, though.

> And in response to the first half that message I have at least one
>  Java script I want to have on my webpage that is currently served
> up by IIS.

Would you like to connect IIS to Tomcat, or do you want to use Tomcat
instead?

The thing that's usually most confusing to new users is that Tomcat
isn't a traditional web server where you just point it at a directory
(DocumentRoot in Apache httpd's parlance, not sure what it's called in
IIS) and serve files from it. Instead, everything is a "web
application" which can be very simple -- just having a few .html files
or whatever -- or it can have servlets, JSPs, and all kinds of other
things that are more interesting than just static files.

Unfortunately, the "getting started" documentation in the Users' Guide
is not great. There are whole sections of your local public library or
bookstore devoted to the basics of Java web applications, so repeating
all that stuff in Tomcat's documentation is kind of ... repetitive.

Understanding what a "web application" is, in terms of structure, is
probably going to be the best time spent as you get started, here. Do
a little bit of Googling and maybe to get a book on Java web
applications and read some of the introductory sections.

O'Reilly's "Tomcat: The Definitive Guide" is fairly good, though it's
based upon Tomcat 6 and so some of the specific configurations are a
bit out of date, but if you are okay with a loose interpretation of
those specifics, it's worth the read. The book is HUGE, so don't try
to go read the whole thing before getting started.

Wrox's "Professional Java for Web Applications" is also good, though
it moves very quickly and goes from covering "the basics" to ... well,
everything else under the sun. It's also enormous, so don't think you
have to read the whole thing.

The authors of both of those books do lurk on this mailing list, and
no, I don't get paid if you buy their books (though I should consider
asking for some consideration!).

So do a bit of reading and ask whatever questions you have, here. But
don't ask this community to teach you how to write web applications
because that will become tiresome for them. :)

Welcome to the community.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8KoFAAoJEBzwKT+lPKRY1sQQAI3qHSgZgYA2YfHVnnYC4oGG
NIZI5YZnVU9pHR29DlhEjobUkFhXTKFCHGikcuUId6RWvv6FNFq9h3eCZwIE11WN
1EQ7qxzllY8b66lQr28GMRKwXpPZns74IFHBbCNS9jPef5hfzvnC+XIVMxP5vWOJ
BNOCpn1O1rGvFTfbkGQET5VSTKlql23owCz6hRTwpVSHYn/Te7vKuZI1aIPiGOzI
YCPFjIvPVtnbgnDa+98Ax/K58rgP/Pp72Z458xn6totqr88VfqqweVTiLFLxJ7jh
YwQ1yI6+BQSLQ2vYPkFuuVJ6cjOV2N0FjpW90zaedsvdDwxwmLwnVVefNf8kdAkH
HzhB71WEqtt59SuZQqS7WpDvNWK8CvBBE2yV2iUAX7uUHIP8sZeOHZydsVQKmlz/
oKQ6S8CXiJ3YlwIUMnn4GSGM0ebLkhKhn0brtVT+4baVgofRw+Gzcoe2eGL/VSC/
4yalMtpZLOZELjDDa7b/8tTeHr1U1+/RCex3uNaM+UK57Ego+gli8Ew5ZUq8RyDu
3suSZaZqWICjFZEZxamxCbkv/NrVuHTTmDms3D4hFq/iLx01h8kvhPjDd+VNxDyH
yn6tl6dp3e00QBUGqg5rdx0JkhOTkZCaE3nIKFbwBtijKyRO8LQ3zKIlvfL3b2Ac
cnDvvX9Sm5VVx7NGfoKa
=Qj8R
-----END PGP SIGNATURE-----

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


RE: 1st time user

Posted by "Brian V. Casteel" <br...@ilhcgh.org>.
I haven’t done much of anything.  I downloaded what I think is the appropriate versions of tomcat 8 for my server,   other than that  I'm incredibly lost.

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Friday, February 27, 2015 11:02 AM
To: Tomcat Users List
Subject: Re: 1st time user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Brian,

On 2/27/15 11:32 AM, Brian V. Casteel wrote:
> I am wanting to set up Tomcat on my windows 2008 server and utilize it 
> with my page running on IIS.  However I don't event know where to 
> begin.  Can anyone help me out?

Do you have an application you want to deploy, or do you just want to use Tomcat as a web server?

Getting started is pretty easy. What have you read/done already?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8KL8AAoJEBzwKT+lPKRYwswP/3G7H/COUPVl758SVBJ94Egn
4tPBJGPQyZ8G1EFd3vjgsqJ8Din5AvXwrcIG7yR/cbPOjTYlWSlKFDXQdYW/TVc8
ahnaTKpfmbBYZl0PspSd8qcIuaZocuqJY3rXmX6sMr4aljOq/QM7nc8qkzvG8ix1
H8OLDM9ehCFCdTVVrteyoMmD8K5710al1Bb+ZCdsaIemkooB9JhsB6FGeCYR/Jy3
JmRmLwY+zxx9iIctsLUc5VqP5ACEUfpsWKsmcw5UuYKsfPkFcyOwHjeWSIoZu7wj
TO7Z8Iwa/i4KQ8sJ03gykQ9tlPNYLb1VTZSkHBJWe/42X4KEiL8q+NqqzmG5pQuD
MuzY4uFGVd6MCUzO78TpuwF8HyFD7OgcHUywJeKXYVAxX3CAxaLvTgFj7+TvwyVI
iFycTsXhUbCaaGFzwwHgoc661cyD9aqaGhW11n27Hj9FlKOvQTEc5jW3wVXQ1fdr
CUFlgGeQpfe42LmIOHcj73vBaeWUw0xM3viZlQs4+QR73hru0FhEYiYIsQKDSjrS
Ad7FuS4l8VpcLU9hLT5W6mAE8sODPm6tYNoozvKswDE52MsjuAe0F/z5vPj6Y8ut
mSmJcsvPoqZXBd2jF/8CE7IDcp/w/NfvZxnAoyKdQ9LOwahz4yw64Bj1CQ5VZrQe
47/a2Gq8vZZuQBdutTaN
=IAZV
-----END PGP SIGNATURE-----

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


Re: 1st time user

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

Brian,

On 2/27/15 11:32 AM, Brian V. Casteel wrote:
> I am wanting to set up Tomcat on my windows 2008 server and
> utilize it with my page running on IIS.  However I don't event know
> where to begin.  Can anyone help me out?

Do you have an application you want to deploy, or do you just want to
use Tomcat as a web server?

Getting started is pretty easy. What have you read/done already?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU8KL8AAoJEBzwKT+lPKRYwswP/3G7H/COUPVl758SVBJ94Egn
4tPBJGPQyZ8G1EFd3vjgsqJ8Din5AvXwrcIG7yR/cbPOjTYlWSlKFDXQdYW/TVc8
ahnaTKpfmbBYZl0PspSd8qcIuaZocuqJY3rXmX6sMr4aljOq/QM7nc8qkzvG8ix1
H8OLDM9ehCFCdTVVrteyoMmD8K5710al1Bb+ZCdsaIemkooB9JhsB6FGeCYR/Jy3
JmRmLwY+zxx9iIctsLUc5VqP5ACEUfpsWKsmcw5UuYKsfPkFcyOwHjeWSIoZu7wj
TO7Z8Iwa/i4KQ8sJ03gykQ9tlPNYLb1VTZSkHBJWe/42X4KEiL8q+NqqzmG5pQuD
MuzY4uFGVd6MCUzO78TpuwF8HyFD7OgcHUywJeKXYVAxX3CAxaLvTgFj7+TvwyVI
iFycTsXhUbCaaGFzwwHgoc661cyD9aqaGhW11n27Hj9FlKOvQTEc5jW3wVXQ1fdr
CUFlgGeQpfe42LmIOHcj73vBaeWUw0xM3viZlQs4+QR73hru0FhEYiYIsQKDSjrS
Ad7FuS4l8VpcLU9hLT5W6mAE8sODPm6tYNoozvKswDE52MsjuAe0F/z5vPj6Y8ut
mSmJcsvPoqZXBd2jF/8CE7IDcp/w/NfvZxnAoyKdQ9LOwahz4yw64Bj1CQ5VZrQe
47/a2Gq8vZZuQBdutTaN
=IAZV
-----END PGP SIGNATURE-----

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