How to deploy a servlet project on Apache HTTP 2.0 server? What are the things needed that i have to do for the same? I tried searching on the topic but did not come up with something relevent. So please help me. Thank you. [ November 06, 2008: Message edited by: Sudipto Shekhar ]
I have deployed a project on the server. in the wel-come page i have a button which calls the controller servlet. The welcome page works fine.When the button is clicked it says "404 error.file not found. the link appears to be broken." the project when deployed on tomcat 5.0 it works fine,but not when deployed on Apache HTTP 2.0 server. I have configured the Apache httpd.conf file and set it as follows:
Using the Apache httpd 2.0 server i have set-up my own server at my work place and am hosting a site. I have got a domain name,bound to my ip from one of the service provider. But now that i know that that apache httpd 2.0 does not support JAVA, do you have some alternative ideas of a server which can serve my purpose? [ November 06, 2008: Message edited by: Sudipto Shekhar ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35437
9
posted
0
There are any number of servlet containers - Tomcat, Resin, JBoss, ...
Most standard hosting plans do not support those, though - you'll need a Java hosting plan which will likely be more expensive. (Unless your plan gives you root access, of course, in which case you can install any of these.)
Originally posted by Ulf Dittmer: (Unless your plan gives you root access, of course, in which case you can install any of these.)
Sorry as i am very new to all these please can you explain a little more of this to me?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35437
9
posted
0
Many inexpensive hosting plans will not give you root access, meaning you can only use whatever software is preinstalled by the provider. In that case, if no servlet container is installed, you can't add one later.
So you should check the feature list of your hosting company to see whether they provide Java web app support and/or root access.
ok i get it. Let me explain to you what i want to do. I have an embedded server.I want a web-site through which i can access the embedded server.What my embedded server does is it takes the request from the user and do the processing. To provide this input i want a web-server through which the client can send requests to my embedded server. now my web-server would be using a .dll file which will be the driver for the embedded server,and no service provider will allow me to make system calls om their system.This is for what i require a web-server running at my place.So what do you think should be the probable choice?
Which server will help me hosting as well as support servlet-api? I am trying to figure it out, any help will be great.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35437
9
posted
0
What do you mean by "at my place" - your home machine? That's under your control, so you can do anything you want. If you're talking about a hosting setup that allows DLLs to be deployed, I have no idea if those exist. You may have to go for a dedicated machine for that.
Yes, my own machine. That's exactly what i tried to say! I want my own server. So what should i do? Which software will i require to set-up my own server and that too which supports JAVA api. By using the apache http server set-up i was able to host my own web-site and it worked fine. When the domain name www.mylane.com was typed, it worked over the internet and the well-come page was displayed.But on click of a particular button,which called a servlet,it showed 404 error(because as you, said it does not support JAVA api). Now i want to replace this server with another which would fulfill the requirement and also support servlet api. I hope now you might have understood what i am trying to say and do. [ November 06, 2008: Message edited by: Sudipto Shekhar ]
no it did not work.the host name could not be resolved. Any help how do i configure Tomcat 5.0..please
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35437
9
posted
0
I'm not sure what the "it" is that you tried and which didn't work, but getting a domain name to resolve to your machine has nothing to with Tomcat (or Apache httpd). It's a feature of DNS. You need to register your IP address (which must be static, not dynamic) with the registrar you're using for your domain name. The registrar will make sure it gets into the DNS system (which might take a few hours or even days).
Yes i do have a domain name.My ip is registered and the service provider has provided me with the domain name. After configuring tomcat when i typed www.mydomainname.com, the message was "host could not be resolved", which i think, was because i could not configure tomcat properly. So i asked a help regarding configuring tomcat, as a web host,any help.... [ November 06, 2008: Message edited by: Sudipto Shekhar ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35437
9
posted
0
That message has nothing to do with Tomcat; it occurs before the request is even sent. What happens when you do "nslookup www.mydomainname.com" - does it report the correct IP address? Can you ping the address?