RE: JServ - mod_jk
Hi, Mod_jk has its own config file called mod_jk.conf.auto you'll need to caopy this to something like mod_jk.conf.correct and edit it for your paths etc. After this make sure apache is including it. Regards, Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] "Every new beginning comes from some other beginning's end" -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: JServ - mod_jk I am trying to migrate some applications from Apache/JServ to Tomcat using mod_jk, and I am having trouble getting Tomcat to find servlets that are in my classpath. The web application is really just a presentation layer on top of a proprietary application server built with Java. Many of the various packages that the application server is built from have servlets associated with them. Right now, these classes are not archived but are under a development directory which is in the classpath. Here is the basic structure of the entire system (this is on Windows 2000): \dev\src -- has all of the Java packages, unarchived, including servlet classes. This is in the CLASSPATH \dev\public_html -- document root (JSPs) Apache is pointing here and a Context also exists in server.xml \3rdpart\jakarta -- TOMCAT_HOME \3rdparty\apache -- APACHE_HOME Tomcat and Apache work fine using the default contexts (i.e., everything under /examples works just fine). Now, when I start up the servers, the index.jsp under the document root loads, runs some JavaScript to see if cookies are enabled: if (document.cookie.indexOf("acceptCookies=") 0) { top.location.replace("/Error/Cookie/"); } else { top.location.replace("/servlets/com.appserver.servlets.Login"); } When the redirect occurs, I get Not Found (404) Original request: /servlets/com.appserver.servlets.Login Not found request: /servlets/com.appserver.servlets.Login in the browser. The JSPs are building and compiling just fine (the compiled classes are showing up under %TOMCAT_HOME%\work), but the servlet classes are just not being seen. What am I missing? -- Brett http://www.chapelperilous.net/~bmccoy/ --- You will receive a legacy which will place you above want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: JServ - mod_jk
On Mon, 26 Feb 2001, Adam Fowler wrote: Mod_jk has its own config file called mod_jk.conf.auto you'll need to caopy this to something like mod_jk.conf.correct and edit it for your paths etc. After this make sure apache is including it. I got the problem sorted out (not having mod_jk.conf included wasn't the issue -- it was being included). For some reason my modified CLASSPATH wasn't being seen globally on Windows 2000. When I ended up rebooting the machine over the weekend (for other reasons), it all started working (go figure, it's Windows). Now comes the fun of documenting the code impacts I've discovered in our application server (which uses GNU JSP) and having to document all of the API deprecations. *sigh* At least I'm the programmer who has to do the re-coding... -- Brett http://www.chapelperilous.net/~bmccoy/ --- Wasting time is an important part of living. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: JServ - mod_jk
On Mon, 26 Feb 2001, Brett W. McCoy wrote: *sigh* At least I'm the programmer who has to do the re-coding... Oops, that should be "At least I'm NOT the programmer..." :-) -- Brett http://www.chapelperilous.net/~bmccoy/ --- My uncle was the town drunk -- and we lived in Chicago. -- George Gobel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JServ - mod_jk
I am trying to migrate some applications from Apache/JServ to Tomcat using mod_jk, and I am having trouble getting Tomcat to find servlets that are in my classpath. The web application is really just a presentation layer on top of a proprietary application server built with Java. Many of the various packages that the application server is built from have servlets associated with them. Right now, these classes are not archived but are under a development directory which is in the classpath. Here is the basic structure of the entire system (this is on Windows 2000): \dev\src -- has all of the Java packages, unarchived, including servlet classes. This is in the CLASSPATH \dev\public_html -- document root (JSPs) Apache is pointing here and a Context also exists in server.xml \3rdpart\jakarta -- TOMCAT_HOME \3rdparty\apache -- APACHE_HOME Tomcat and Apache work fine using the default contexts (i.e., everything under /examples works just fine). Now, when I start up the servers, the index.jsp under the document root loads, runs some JavaScript to see if cookies are enabled: if (document.cookie.indexOf("acceptCookies=") 0) { top.location.replace("/Error/Cookie/"); } else { top.location.replace("/servlets/com.appserver.servlets.Login"); } When the redirect occurs, I get Not Found (404) Original request: /servlets/com.appserver.servlets.Login Not found request: /servlets/com.appserver.servlets.Login in the browser. The JSPs are building and compiling just fine (the compiled classes are showing up under %TOMCAT_HOME%\work), but the servlet classes are just not being seen. What am I missing? -- Brett http://www.chapelperilous.net/~bmccoy/ --- You will receive a legacy which will place you above want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]