Click to See Complete Forum and Search --> : Deployment of j2ee application????


jonathan0804
10-21-2003, 02:43 PM
Hi,

I want to convert my internet site in a j2ee application, but I don't know how to deploy any application (also HelloWorld) on my internet server! Everything works fine on my computer, but I don't know what I must do to deploy on my server!

I asked to the server administrator, but he don't know Java at all. Tomcat 4 is installed.

Can someone give me some hint?

Thanks a lot,

Jonathan :)

Khalid Ali
10-21-2003, 07:31 PM
did you try to see the answer in the documentation that comes with the tomcat4x

havik
10-21-2003, 09:08 PM
You mean Java servlets?? I can help you out with those. PM me and we'll talk.

Havik

spufi
10-22-2003, 10:04 AM
If you want to use your Java class file to display something like "Hello world!" than you have to have an applet it do it that way. Even then, I hardly consider a applet showing "Hello world!" as being a J2EE application. J2EE applications are things that deal with Java Beans, databases, and that kind of stuff.

jonathan0804
10-22-2003, 12:29 PM
Hi,

yes I know what is a j2ee applicaiton. But my problem is not developping a j2ee application, it is only to deploy it or install it to my internet server! The HelloWorld I was referring to was a JSP HelloWorld version. If I can access a jsp, I will probably to able to refer to my servlet after using the *.xml . But I'm unable to acces a single jsp! They told me that Tomcat 4 is installed on the Unix server, but I don't know how to use it!

I searched a lot and found a lot of info, but nothing is working in my situation because I cannot access the environment variable, ... : It's not my server and I don't know where Tomcat is Installed! On my personal computer, everything is fine with the deploytool or JBuilder. At my job, I'm using an internet console to upload my projects. But I'm very lost on my Internet server!

Thanks,

Jonathan

Khalid Ali
10-22-2003, 01:31 PM
There are few very important things to keep in mind.
1. I could be wrong,but in my understanding Tocat is not an application werver where you can run J2EE apps, tomcat is a jsp/servlet engine that allows you to only run web applications(a component known as *.war in a j2ee app).

2. To run a simple jsp page only by placing it in the root directory should make it work.

3. A better way for deployment will be to customise the web.xml file in the WEB-INF directory where you tell the server where are the resources that it will find.

4.If you decide not to use the default path,you can alse set a context from where you can access the resources jsp/servlets.

As I said in my first response,the documentation that is acompanied with the server installation is pretty elaborate in explaining all this.

If you are having a particular error or a specific question please ask away,how ever a general question can not get a to the point answer.