Tomcat and Apache
Posted 02 July 2005 - 04:55 AM
Does anyone familiar with Tomcat and Apache?
I have installed Tomcat version 3.3.2
I have installed Apache version 1.3.33
I have installed J2RE version 1.4.2_04
When I start a browser and go to http:\\localhost:80\index.html
The Tomcat page start, everything looks fine.
When I click the Example link, the servlet examples work fine.
However, the JSP examples seem don't work when I go into the JSP example, I hit 500 error .
Any help will be appreciated if you can guide me how to check why the JSP doesn't work.
I actually trying to install eAccess of Glovia which use PROIV bus and task.
After the above installation, I can start the eAcess login screen, key in id and password but cannot login
Posted 04 July 2005 - 06:48 AM
Since you want to run JSP,JSP generates servlets ever time you execute that servlet.
Therefore you need to install JSDK and its run time environment and configure the PATH and the CLASSPATH as per the readme of the JSDK.
Make sure that the servlet.jar files is also pointed to by theCALSSPATH.Make that the JSPs are on the right directory on the webserver.
Please shout if you have any problems.
Posted 05 July 2005 - 07:11 AM
When you install J2SDK the installation process may display to you the checkboxes to install JRE, make sure that the checkbox is ticked.
Below is the configuration on the server.This gaurentees you that your servlets environment is fine.
NB:- Take care of the version of your J2SDK AND JDK.To make sure on type 'java -version' on DOS or LINUX,this will tell you the version of the environment you are using.
.E:\j2sdk1.4.1_03\bin;E:\j2sdk1.4.1_03\lib;E:\j2sdk1.4.1_03\jre;E:\j2sdk1.4.1_03;E:\jdk1.3;E:\jdk1.3\bin;E:\jdk1.3\lib;E:\jdk1.3\include;E:\Program Files\Motorola\Browser ADK 2.2.2-E1000;E:\Data;E:\jdk1.3.1_01\lib\tools.jar
You could place you JSP on your directory like below :-
E:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\jsp\
Please come back if you don't come ritght.
Please give the error you are getting.
Posted 06 July 2005 - 07:48 AM
I have not seen Glovia yet,but I used VIP, DEV STUDIO.
I use Webclient3's web services to call the .PIV, but I will then occupy a sit on PROIV.
If I use Concerto Application server, I would used Xoology's servlet container via B&T which it is slow for me through the JAVA .OCX.
Through Jetty and Apache Tomcat I can write J2EE applications and I can do as much without comming closer to PROIV.
If Glovia uses B&T then you can use Concerto Application server.
If you want to occupy a sit on PRO4, then you can use PROIV Webclient.
Currently I have PROIV Webclient3 services and Apache-Tomcat running. Webclient3 running PROIV on web no B&Ts, and TOMCAT running J2EE.
In addition on that I can even have CLOBs and BLOBs on J2EE, as they not supported by PROIV.That was my resolution.
Posted 06 July 2005 - 08:56 AM
My limited Java knowledgement makes me difficult to answer your questions
Anyway, thanks for you help. I have finished the installation and most of the modules are working fine now.
I still believe if I know more about information which you have mentioned, then I will have more options and tools to deal with customers' problems.
How do you recommend me to start with?
Posted 06 July 2005 - 01:20 PM
1. create table called (brokers)
2. table variables (brk_code = char(2),brk_alpha char(30))
3. define your Domain Name Server name = (jseexchange)
4. Save the code from to as (yip.jsp) and save it in you jsp directory.
5. Make an html file called (yol.htm) which has 'brk_code' and 'brk_alpha', and the form action=yip.jsp.
This is your input screen.
This is a simple way of starting off.
You are welcome to email me on email@example.com for further attachments.
I can give the professional way of coding JSPs and Servlets,EJBs and Web Services.
<%@ page language="java" import="java.sql.*" %>
String iCode = request.getParameter("brk_code");
String iAlfcode = request.getParameter("brk_alpha");
Connection myConn = DriverManager.getConnection ("jdbc:odbc:jseexchange","userid","password");
Statement stmt = myConn.createStatement();
int rowsAffected = stmt.executeUpdate("insert into jseexchange.brokers " +
" (brk_code,brk_alpha) values('" + iCode + "','" + iAlfcode + "' )");
if (rowsAffected == 1)
Successful Addition of Broker
Thank you for Adding a new Broker.
Sorry, Addition as failed
Go bak to control center
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users