aspose file tools*
The moose likes Servlets and the fly likes Servlets on Apache Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets on Apache Web Server" Watch "Servlets on Apache Web Server" New topic
Author

Servlets on Apache Web Server

Karan Tyagi
Greenhorn

Joined: Nov 14, 2000
Posts: 9
Hi all,
I have made a small application using Java Servlets. Also have just installed Apache Web Server. In my application I'm simply trying to read some values from an HTML form and insert them into Oracle database. I have put the servlet class file in the jserv's servlet directory. But the data is not going into the database. Help me out.
Karan
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
You will need to give us more information to work with. Is JServ working (do the example servlets work?) Is the database working (can you run its non-java example programs?) Is the JDBC driver installed and working? have you set the right parameters to the JDBC driver? Have you created the tables with the right names? Are you using valid SQL? What error messages do you get?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
hello there,
I have also problems running servlets on apache , I have installed apache web server and apache jserv but how to
invoke servlets in apache jserv and how to start jserv ,
thanks
Karan Tyagi
Greenhorn

Joined: Nov 14, 2000
Posts: 9
Yes, Jserv is working. The database is also working fine. I am using sun.jdbc.odbc.JdbcOdbcDriver. And as a matter of fact when I am executing the servlet using simply the JSDK2.1 StartServer utility the application is working. Values being read from the HTML form are being inserted successfully. So this means that SQL and database created is working fine. I have installed JSDK2.0 for apache. I am getting no errors on the Java Console either. So help me out.
Originally posted by Frank Carver:
You will need to give us more information to work with. Is JServ working (do the example servlets work?) Is the database working (can you run its non-java example programs?) Is the JDBC driver installed and working? have you set the right parameters to the JDBC driver? Have you created the tables with the right names? Are you using valid SQL? What error messages do you get?


[This message has been edited by Karan Tyagi (edited November 20, 2000).]
Karan Tyagi
Greenhorn

Joined: Nov 14, 2000
Posts: 9
Yes, Jserv is working. The database is also working fine. I am using sun.jdbc.odbc.JdbcOdbcDriver. And as a matter of fact when I am executing the servlet using simply the JSDK2.1 StartServer utility the application is working. Values being read from the HTML form are being inserted successfully. So this means that SQL and database created is working fine. I have installed JSDK2.0 for apache. I am getting no errors on the Java Console either. So help me out.
Karan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlets on Apache Web Server