• Post Reply Bookmark Topic Watch Topic
  • New Topic

"newbie" question...

 
Jeff Grant
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done quite a bit of Java programming (last two years) and now I have somewhat moved into doing Applets. I want to have a Java Applet use JDBC to connect to my Oracle database (something I have done numerous times with a Java Application). However, I have run into security issues on the client system which are not easily overcome.
I have done some research and it seems as though creating a Servlet on my webserver is the only / best solution. However, in attempting to download Tomcat and XML and NUMEROUS other items, I am becoming quite overwhelmed.
It seems as though Tomcat only comes in source code, not compiled code like Apache, but I cannot seem to get that to compile. I had to download XML and JNDI and many other items just to follow the directions Tomcat gives for installation... but I am quite confused.
I know this is a lot to ask, but if anyone could take the time to give me a step by step very simple how-to for me to get what I'm trying to do done, that'd be great. Through e-mails between us would be even better if that'd be ok with you. I'm sure it won't take too long for me to figure it out, just right now it is very confusing.
Thanks,
~~~~Jeff
p.s. I have a BS in Computer Science but we never did Applets! lol, I just want to learn some of this stuff so I can broaden my skills.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to find compiled versions of the "release" Tomcat versions. Thats what I always use. If you get the right package, and already have an SDK installed, it should be possible to unzip the download, follow the installation instructions and just fire it up.
Binary Download Page
Bill
 
Jeff Grant
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill. That's where I had downloaded Tomcat from to begin with. But this time I downloaded the .exe and ran that... found out it was the install! So now I have it installed, and sniffed my port 8080 to find out that it was now open. Apparently it doesn't have a default .html to display till you change it since I tried http://myip:8080 and nothing came up, not even a blank page. But now I need to read further into the documentation of Tomcat to see how to use it.
Any further info's always welcome.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once installed you should be able to get the startup page provided at the default port of 8080. This page leads to lots of documentation, examples of servlets and JSP, etc. If you didn't get it something is wrong.
Bill
 
Jeff Grant
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guess something is wrong then. I did do a port scan on my system and 8080 is open when Tomcat is on, and not open when Tomcat is shut down. I figured it'd have a default index but apparently the default config is quite "screwy" (technical term). I had some issues with Apache when I had first set that up (standard, not Tomcat), but finally figured that out. I guess I need to do the same for Tomcat.
Do you think I could e-mail you if I have any issues once I get Tomcat to display me the startup page with Servlets so I can do some JDBC through them? It'll be a few days unless work slows down some.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!