I need someone who knows the specifics of linking a web form to a JSP running under Apache 1.3.33 and Tomcat 4.1 with mod_jk enabled on an Xserve running Mac OS X 10.3.9, running Servoy 2.2.5.
The server runs the marketing website for the service. Prospective users are invited to fill out a web form for registration. Servoy recommends using a JSP to migrate the client data into the database.
We’ve successfully written a JSP to do exactly that. It works. However the test machine is running WindowsXP. We need to deploy this on an Xserve running under Mac OS X 10.3.9 with Apache1.3.33 and Tomcat 4.1. mod_jk has been turned on and yes, Tomcat is running.
The website is in the standard location:
/Library/Webserver/Documents/ and it works. However we’re unsure where to put the JSPs and what additional configurations may be required.
Here are some possibilities:
/Library/Tomcat/webapps/ROOT/
/Applications/Servoy/server/webapps/ROOT/
/Library/WebServer/CGI-Executables/
I doubt the last applies because mod_jk intercepts the request and passes it over to Tomcat, which should be listening on port 8009. All ports are open.
I’ve been researching this problem for weeks now, virtually full time. I’ve received lots of partial answers, and most infuriatingly some have simply provided links to Tomcat and Apache docs. These are voluminous and I don’t have the expertise to read them. I need something specific I can act on.
Our most recent error message is the following. It suggests to us either the JSPs are in the wrong location or they’re not enabled in some way.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.33 Server at www.website.com Port 16080
Kind regards,
I must be honest, I’m disappointed in your reaction. It’s been extremely difficult finding consultants in this subject, paid and otherwise. I’ve had them say, “Piece of cake, I’ll call you” and never do and never reply to eMails. Mostly I’ve had them balk when they learn this is Macintosh environment, even though they know Unix and Apache.
I’ve now got a guy who knows the guts of the Mac and is somewhat familiar with Apache/Tomcat. The Windows consultant who wrote the tested JSPs is now back from vacation, but he is thoroughly familiar with Windows and nothing else. Neither of them knows Servoy and especially if and how Servoy’s installer has modified Apache/Tomcat.
The current puzzle is to locate where the JSPs need to go in order to catch the attention of Apache/Tomcat. We know the /Applications/Servoy/server/winapps/ROOT/ directory works if the whole website is in the same location. That works, but isn’t a natural place for a website, or at least I assume.
Entering into this I didn’t expect this nightmare (and that’s exactly what it’s been). After all, I thought, all I’m trying to do is get a web form’s submit button to trigger a JSP. There are many factors, among them Apple’s practice of disabling features until they’re explicitly turned on (the opposite of Microsoft’s practice). The problem is not a simple 1-2 you’re done. Requires several co-ordinated factors, I know that now.
I totally agree with you if the technology at hand is something that’s going to be worked with frequently. That may turn out to be the case with JSPs called from websites, but at the moment that’s not anticipated. Which is why I hired a JSP consultant in the first place.
I posted to Servoy Talk in the hopes of learning whether we’re on the right track or not. The issue is a thick tangle.
Kind regards,
Morley,
You wanted some pointers. Here are some:
If you want your website to be handled by Apache HTTP Server then you place the JSPs in the directory that the webserver looks in. So that means /Library/WebServer/Documents/ .
If you want to use Apache Tomcat as the webserver then you place them in /Applications/Servoy/server/webapps/ROOT/ .
Now, if you used the first option then you need to setup Apache HTTP Server with mod_jk.
This module will need to be configured to connect to Apache Tomcat (in this case the version that comes with Servoy).
And Apache Tomcat (Servoy) need to be configured to accept this connection.
This is, as far as I know, nothing different than on any other platform where Apache HTTP Server and Apache Tomcat runs.
The only thing that is different on Mac OS X Server is that things might be setup to work with the already installed Tomcat/JBoss. So your consultant should look into that (on the Apache HTTP Server side).
I suggest you let your Windows-savvy Apache Tomcat specialist get it’s hands dirty on the Xserve.
It’s all Apache stuff that he/she has to deal with.
Hope this gives you some direction.
Morley,
Check your own post: http://forum.servoy.com/viewtopic.php?t=3671
There you will find the headless client spec.
IN ADDITION, if you put in “headless client example” in the top search bar - then the very first hit is: http://forum.servoy.com/viewtopic.php?p=18441
This is a link where I posted step by step instructions and sample files.