Hello,
This is a question and not an answer. Hope that's ok? Here is what I'm up against. I currently admin a OS/2 webserver running Domino Go 4.6.2. Because of Y2K concerns I have been ask to upgrade to a new platform other than OS/2. The two options are NT with Domino Go or Linux with Apache. Naturally I selected Linux and Apache. Having little Linux experience and no Apache experience I knew what I was up against. 3 days later I have Redhat 5.2 and Apache 1.3.3 up and running so far so good. The problem that I am now facing is as follows:
Currently I have numerous Java server side apps that do small amounts of # crunching based on the clients requested parameters and then dynamically build a html doc based upon the results which is then served up to the client. I have just started looking at the Servlet concept and can see some real benefits to it but being in a production environment do not have time at this point to go back and convert all my existing apps. That being said here is the crux of my problem. I cannot seem to get Apache to take a request for a java app in the cgi-bin directory and invoke the JVM and execute it. I have no problem doing this on my Domino server. In the case of my Domino server as long as I have the JVM installed and paths correctly configured the server understands that when a request comes through from the cgi-bin directory that it should look for a way to execute it. I have logs that I can monitor this process and know that it tries several things to exec including .bat, .pl, and finally .class. Upon finding the .class it then invokes the JVM and executes the app. Apache seems to choke on that file type, .class, and fails to invoke the JVM and execute the code. I have turned on the cgi log and it basically reports there was an error in executing the app. If I can run the JVM and app from the command line and have added the correct path to the PATH statement in my .bash profile why can't the server understand? I have added the extension to the mime.types and srm.conf files but to no avail. I would amazed if Apache did not support just plain old Java apps run out of cgi. If Domino and Netscape servers do what is up with that? Any light that anyone can shed on this problem would be greatly appreciated and would prevent me from having to set up NT and Domino for my production server. Uhhhhhggg! I'm hoping I am just being stupid and have overlooked something that is causing this problem. Please don't tell me that Apache can't deal with Java server side apps. I'm so close to having this thing up and running! Thanks!
mikedhATusDOTibmDOTcom |