Tomcat 4.0 with IIS
Hi all, Is Tomcat 4 compatiable with IIS 4? Can i upgrade my Tomcat 3 on IIS 4 to Tomcat 4 Thanks Regards ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Vishal Mukherjee IRSSL Vashi 91.022.7896004.155 (voice) 022.7896020(fax) Don't take life too serious. You'll never escape it alive anyway. - Ebert Hubbard ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Visit Our Cement Site at http://cement.indorama.com Our Software Site at http://www.irssl.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Yes - Janet B
Hi, Janet, thanks for your assistance, and I will try that tomorrow. RIght now I am trying to set up the Apache connection to Tomcat 4.0.1 and it bails on restart, not recognizing the LoadModule file in libexec. You know anything about that problem? I am using Red Hat 7.2. At 10:25 PM 2/3/02 +, you wrote: --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: Clear question: No answers The subject, supra, asks the question. If you have a number of URLs pointed to a single IP address, can you map the URLs somehow to discrete web applications in Tomcat 4.0? I have read everything I know to read and cannot get the answer to this. I know I could do it with JBoss and Tomcat 3.2.4 and the context manager. But, I don't see that in Tomcat 4.0. What's up? Sure is hard to get a response to this question. Have no idea what. Please don't tell me the stuff that is simple and covered like how to set up directories, etc. I know how to handle aliases, how to handle multiple IP addresses on the same machine, etc. My question is specific. How can I get, e.g. www.a.com and www.b.com when they are pointed to a given IP address, 209.43.251.66 (for example), to map to webapps/a and webapps/b? Or, is this not now possible? Some people have suggested that, since I don't know the answer to this, I need to essentially take the classes I teach for fun. Lord. If only they could answer the question instead of loading me with pompous self-righteous drivel. I do thank those who have tried. I don't know where to look at this point. I may just write the classes to do it. Micael Hi Micael, It is possible to setup Apache with the Warp connector to map different host names to different webapps. In my case I have a number of webapps available under the ROOT context for an equal number of host names. http://xx-xx.mydomain.net - webapps/xx-xx http://yy-yy.mydomain.net - webapps/yy-yy http://zz-zz.mydomain.net - webapps/zz-zz (The setup you desire is a virtual host setup. I'll restrict my advice to the Apache/Warp/TC setup but I think you should reread http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html if you want to omit Apache from your setup.) Below are the relevant extracts from my httpd.conf and server.xml files. httpd.conf -- NameVirtualHost 194.164.98.233 VirtualHost 194.164.98.233 ServerName eng.dev.studylink.com ServerAdmin [EMAIL PROTECTED] WebAppConnection eng-cnx warp localhost:8008 WebAppDeploy eng eng-cnx / ErrorLog /var/opt/apache/logs/eng.error_log CustomLog /var/opt/apache/logs/eng.access_log common /VirtualHost server.xml -- Server port = 8005 shutdown = SHUTDOWN debug = 0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className = org.apache.catalina.connector.warp.WarpConnector port = 8008 minProcessors = 5 maxProcessors = 75 enableLookups = true acceptCount = 10 debug = 1/ Engine className= org.apache.catalina.connector.warp.WarpEngine name = Apache debug = 0 appBase = webapps defaultHost = delta.tudylink.com !-- Global logger unless overridden at lower levels -- Logger className= org.apache.catalina.logger.FileLogger prefix = apache_log. suffix=.txt timestamp = true/ Realm className = org.apache.catalina.realm.MemoryRealm / DefaultContext/DefaultContext /Engine /Service /Server __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: webapp WebAppDeploy root + other webapps
OK, here's a simple patch to make this work. I hope this is useful and meets your code requirements: Troy A. Griffitts wrote: I've seen many questions about this in the FAQ and none have good answers. Can anyone tell me how I might make this work: WebAppDeploy sword warpConnection /sword WebAppDeploy crosswire warpConnection / The crosswire webapp overrides the /sword webapp. I've seen a response about regular expressions like ^/^(sword) on the second WebAppDeploy, but I may have MANY webapps deployed in the future and this is not an acceptable means. mod_webapp should be smart enough to resolve webapps accordingly. Please let me know if there is a solution, or point me to the correct place in mod_webapp so I might make the enhancements myself. Thank you, -Troy. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] diff -Pru webapp-module-1.0.1-tc401.orig/apache-1.3/mod_webapp.c webapp-module-1.0.1-tc401/apache-1.3/mod_webapp.c --- webapp-module-1.0.1-tc401.orig/apache-1.3/mod_webapp.c Thu Nov 1 15:20:51 2001 +++ webapp-module-1.0.1-tc401/apache-1.3/mod_webapp.c Sun Feb 3 01:48:23 2002 @@ -386,6 +386,9 @@ wa_virtualhost *host=NULL; wa_application *appl=NULL; wa_chain *elem=NULL; +wa_chain *matchelem=NULL; +int matchlen = 0; +int len = 0; /* Paranoid check */ if (!wam_initialized) return(DECLINED); @@ -398,12 +401,20 @@ elem=host-apps; while(elem!=NULL) { appl=(wa_application *)elem-curr; -if (strncmp(appl-rpth,r-uri,strlen(appl-rpth))==0) break; - -appl=NULL; +len=strlen(appl-rpth); +if (strncmp(appl-rpth,r-uri,len)==0) { +/* if we match, let's see if we're more specific than any previous + match */ +if (len matchlen) { +matchlen=len; +matchelem=elem; +} +} elem=elem-next; } -if (appl==NULL) return(DECLINED); +if (matchelem==NULL) return(DECLINED); + +appl=(wa_application *)matchelem-curr; /* The uri path is matched: set the handler and return */ r-handler=ap_pstrdup(r-pool,webapp-handler); diff -Pru webapp-module-1.0.1-tc401.orig/apache-2.0/mod_webapp.c webapp-module-1.0.1-tc401/apache-2.0/mod_webapp.c --- webapp-module-1.0.1-tc401.orig/apache-2.0/mod_webapp.c Thu Nov 1 15:20:51 2001 +++ webapp-module-1.0.1-tc401/apache-2.0/mod_webapp.c Sun Feb 3 01:55:11 2002 @@ -392,6 +392,9 @@ wa_virtualhost *host=NULL; wa_application *appl=NULL; wa_chain *elem=NULL; +wa_chain *matchelem=NULL; +int matchlen = 0; +int len = 0; /* Paranoid check */ if (!wam_initialized) return(DECLINED); @@ -404,12 +407,20 @@ elem=host-apps; while(elem!=NULL) { appl=(wa_application *)elem-curr; -if (strncmp(appl-rpth,r-uri,strlen(appl-rpth))==0) break; - -appl=NULL; +len=strlen(appl-rpth); +if (strncmp(appl-rpth,r-uri,len)==0) { +/* if we match, let's see if we're more specific than any previous + match */ +if (len matchlen) { +matchlen=len; +matchelem=elem; +} +} elem=elem-next; } -if (appl==NULL) return(DECLINED); +if (matchelem==NULL) return(DECLINED); + +appl=(wa_application *)matchelem-curr; /* The uri path is matched: set the handler and return */ r-handler=apr_pstrdup(r-pool,webapp-handler); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: can't get tomat working with IIS (complete email...earlier one was incomplete)
I have tried this uriworkermap.properties file, but it made no difference. I have setup the 'jakarta' virtual directory under the default web site, is there anythng else required with IIS ? I've set the website IIS to allow anonymous access. I have only modified worker.properties servlet.xml, is there anything else that needs to be done thats NOT mentioned in the official HOWTO?(no mention of modifying server.xml). I suspect the following log file entries may have something to do with it - [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/ [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/' [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/examples/] is not a servlet url [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/] is points to the web-inf directory some problem not mapping to the directory 'example', but it is in the standard place under webapps. Are there any permissions that need to be set with the /examples directory ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:30 PM Subject: RE: can't get tomat working with IIS (complete email...earlier one was incomplete) woopssent it prematurely. :-) The uriworkermap.properties has the following format: -- # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) -- If example was a directory located under webapps, then this would define what IIS would redirect to Tomcat for processing. As for server.xml, there is something that looks like this: -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- Hope this helpsany questions, just shout... Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:27 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS What is required in uriworkermap.properties ? No, I haven't modified this file. I can't find any reference to 'ajp13' in server.xml, what is meant to be there ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:15 PM Subject: RE: can't get tomat working with IIS Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates - [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /examples/ [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (625)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [Sun Feb 03 04:42:55
RE: htdocs or servlet
Howdy Matt - thanks for the reply! take a look at mod_jk, the directory directive for apache, and the context directive in tc. ive always used the j2ee standard .war packaging for server side java applications. I have been reading this page: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html But I don't see how this allows us to keep applet and servlet files together with other java files in the one directory. Can you tell me more? Rob :-) ;- :-] -Original Message- From: Matt Egyhazy [mailto:[EMAIL PROTECTED]] Sent: Sunday, 3 February 2002 1:28 PM To: Tomcat Users List Subject: Re: htdocs or servlet take a look at mod_jk, the directory directive for apache, and the context directive in tc. ive always used the j2ee standard .war packaging for server side java applications. matt - Original Message - From: Rob [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 8:31 PM Subject: htdocs or servlet Howdy all! We are using Apache for web serving and Tomcat for servlets in a project that involves web pages and servlets being accessed by the user. We have html pages, XML documents and a large java package containing server side application logic, servlets and applets to be used by the system. The problem we are having is how to store our files in one directory so that both Apach and Tomcat know where they are. At the moment we are in the awkward situation of having copies of our package stored in two locations - one in htdocs and the other in the servlet directory so that each part of the system can access the files and other classes needed. How can we solve this problem? Is it a matter of setting up aliases in a config file or something similar? Thanks! Rob :-) ;- :-] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?
hi, i think you are looking for something called virtual hosts. tomcat can do virtual hosts. look in the tomcat documentation after the host directive. jochen Hello Micael, Sunday, February 03, 2002, 7:46:13 AM, you wrote: MPOmG Clear question: No answers MPOmG The subject, supra, asks the question. If you have a number of URLs MPOmG pointed to a single IP address, can you map the URLs somehow to discrete MPOmG web applications in Tomcat 4.0? MPOmG I have read everything I know to read and cannot get the answer to this. I MPOmG know I could do it with JBoss and Tomcat 3.2.4 and the context MPOmG manager. But, I don't see that in Tomcat 4.0. What's up? MPOmG Sure is hard to get a response to this question. Have no idea MPOmG what. Please don't tell me the stuff that is simple and covered like how MPOmG to set up directories, etc. I know how to handle aliases, how to handle MPOmG multiple IP addresses on the same machine, etc. My question is MPOmG specific. How can I get, e.g. www.a.com and www.b.com when they MPOmG are pointed to a given IP address, 209.43.251.66 (for example), to map to MPOmG webapps/a and webapps/b? Or, is this not now possible? MPOmG Some people have suggested that, since I don't know the answer to this, I MPOmG need to essentially take the classes I teach for fun. Lord. If only they MPOmG could answer the question instead of loading me with pompous self-righteous MPOmG drivel. I do thank those who have tried. I don't know where to look at MPOmG this point. I may just write the classes to do it. MPOmG Micael MPOmG -- MPOmG To unsubscribe: mailto:[EMAIL PROTECTED] MPOmG For additional commands: mailto:[EMAIL PROTECTED] MPOmG Troubles with the list: mailto:[EMAIL PROTECTED] jochen schwoerer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.01 + SSL + JDK 1.4 (on RedHat 7.1)
Hi, I can't get this configuration to work. When I try https://hostname:443 I just get a blank page. (Changed port in server.xml). JDK 1.4 has built-in support for SSL, is there anything different in configuring Tomcat to work with it as opposed to add-on SSL package for 1.3? Greetings, deacon Marcus -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
populating save as... dialog for application/octet-stream content type
I'm trying to 'suggest' a filename for download when I send binary output as a reply. I would like the suggested filename to appear in the save as... dialog that pops up when the response is sent (rather than whatever the url may be at the time). My servlet basically does this. setContentType(application/octet-stream); open a file .. OutputStream is = response.getOutputStream(); loop ( read from file into buffer while not end of file ) is.write( buffer ); close streams input output If there is a more appropriate list for this posting please tell me. Otherwise a solution would be helpful. Thanks rob -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: populating save as... dialog for application/octet-stream content type (solved maybe)
I tried the following request.setHeader(Content-Disposition, attachment; filename=mypdf.pdf); and it seemed to work, is this the correct way or is there a more appropriate way to do this? Thanks - Original Message - From: rob [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 11:01 PM Subject: populating save as... dialog for application/octet-stream content type I'm trying to 'suggest' a filename for download when I send binary output as a reply. I would like the suggested filename to appear in the save as... dialog that pops up when the response is sent (rather than whatever the url may be at the time). My servlet basically does this. setContentType(application/octet-stream); open a file .. OutputStream is = response.getOutputStream(); loop ( read from file into buffer while not end of file ) is.write( buffer ); close streams input output If there is a more appropriate list for this posting please tell me. Otherwise a solution would be helpful. Thanks rob -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: RE: Catalina Beans - Class Path Problem
I am having the same problem only my clases ARE directly in the classes folder. Also, my utility classes, which are neither servlets nor Beans, are also giving me the same problem. Please help!!! I have tried packaging them and then without packaging. I am not sure what to do now. I am not using any IDE nor am I using a deployment tool. Tomcat Users List [EMAIL PROTECTED] wrote: Please see my comments below: All your classes and/or beans should go into: ./webapps/gateway/WEB-INF/classes, or ./webapps/gateway/WEB-INF/lib This should help you out. :-) Paul -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 8:12 PM To: Tomcat Users List Subject: Catalina Beans - Class Path Problem Short Version: For some reason, I can not get my JSP pages to compile when loading a little bean ... It is not reading web-inf/classes. Although, it is reading web-inf/web.xml Long Version: A)Installed tomcat, got it running, all of the example programs work. B)I am building an application called Gateway I created ./webapps/gateway ./webapps/gateway/index.jsp ./webapps/gateway/WEB-INF/ ./webapps/gatewayWEB-INF/web.xml So I understand this to be creating a bean with id Words from the class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp. However, I am getting a compiler error saying C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class gwclasses.words not found Any thoughts ? Thanks -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: HELP on server.xml PLEASE
- Original Message - From: Micael Padraig Og mac Grene Sent: Saturday, February 02, 2002 2:06 AM To: Tomcat Users List Subject: Re: HELP on server.xml PLEASE Thanks, Rick. I guess I was not clear. What I need is a way to set the context for different urls rather than aliases for a single url. Micael At 05:58 PM 2/1/02 -0500, you wrote: Michael, There should be a folder under the tomcat installation director called webapps. Under that folder you should create a new folder for your jsp pages. Lets call your new folder home for argument sake. Under the home folder you should have created a folder called WEB-INF. Under WEB-INF you should have created two additional folders called classes and lib. So, your directory structure should look like this: Tomcat -home --WEB-INF ---classes ---lib Place your jsp files under the home directory, the custom classes under the WEB-INF\classes directory and your custom JAR files under the WEB-INF\lib directory. Now to access your files go to: http://server:port/home/something.jsp or html. Hope this helps! - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 01, 2002 4:13 PM Subject: HELP on server.xml PLEASE My forte is Java and at the XML configuration of Tomcat I suck. Could someone please help me with this? It would be greatly appreciated. If I add the following to servlet.xml, then I get the startup.sh to create the proper directories under TOMCAT_HOME/work/. But, then I cannot reach my site with the urls. If I don't add these, then I can reach the site, but without the create of the appropriate subfolders. What is up? Context path=/ourforge docBase=webapps/ourforge debug=0 reloadable=true /Context Context path=/micael docBase=webapps/micael debug=0 reloadable=true /Context Context path=/db docBase=webapps/db debug=0 reloadable=true /Context Context path=/ctr docBase=webapps/ctr debug=0 reloadable=true /Context !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection
RE: can't get tomat working with IIS (complete email...earlier one was incomplete)
Is the IIS virtual directory set to execute (with scripts) mode? Did you register your iisredirect.reg file? Also, did you load your redirector at the level of your computer name in the Internet Information Services area? Could you send me screen captures of your settings? You can send it to my email address if you wish... Thanks Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 4:55 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS (complete email...earlier one was incomplete) I have tried this uriworkermap.properties file, but it made no difference. I have setup the 'jakarta' virtual directory under the default web site, is there anythng else required with IIS ? I've set the website IIS to allow anonymous access. I have only modified worker.properties servlet.xml, is there anything else that needs to be done thats NOT mentioned in the official HOWTO?(no mention of modifying server.xml). I suspect the following log file entries may have something to do with it - [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/ [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/' [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/examples/] is not a servlet url [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/] is points to the web-inf directory some problem not mapping to the directory 'example', but it is in the standard place under webapps. Are there any permissions that need to be set with the /examples directory ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:30 PM Subject: RE: can't get tomat working with IIS (complete email...earlier one was incomplete) woopssent it prematurely. :-) The uriworkermap.properties has the following format: -- # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) -- If example was a directory located under webapps, then this would define what IIS would redirect to Tomcat for processing. As for server.xml, there is something that looks like this: -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- Hope this helpsany questions, just shout... Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:27 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS What is required in uriworkermap.properties ? No, I haven't modified this file. I can't find any reference to 'ajp13' in server.xml, what is meant to be there ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:15 PM Subject: RE: can't get tomat working with IIS Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates - [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (555)]: HttpFilterProc started [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Feb 03 04:42:55 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 04:42:55 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test
RE: RE: Catalina Beans - Class Path Problem
I am not sure if you are running this in Windows but if you go to something equivalent to starting this at the command line, type startup debug in the %CATALINA_HOME%\bin directory and see if your classes or jars are loaded? Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 8:29 AM To: Tomcat Users List Subject: Re: RE: Catalina Beans - Class Path Problem I am having the same problem only my clases ARE directly in the classes folder. Also, my utility classes, which are neither servlets nor Beans, are also giving me the same problem. Please help!!! I have tried packaging them and then without packaging. I am not sure what to do now. I am not using any IDE nor am I using a deployment tool. Tomcat Users List [EMAIL PROTECTED] wrote: Please see my comments below: All your classes and/or beans should go into: ./webapps/gateway/WEB-INF/classes, or ./webapps/gateway/WEB-INF/lib This should help you out. :-) Paul -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 8:12 PM To: Tomcat Users List Subject: Catalina Beans - Class Path Problem Short Version: For some reason, I can not get my JSP pages to compile when loading a little bean ... It is not reading web-inf/classes. Although, it is reading web-inf/web.xml Long Version: A)Installed tomcat, got it running, all of the example programs work. B)I am building an application called Gateway I created ./webapps/gateway ./webapps/gateway/index.jsp ./webapps/gateway/WEB-INF/ ./webapps/gatewayWEB-INF/web.xml So I understand this to be creating a bean with id Words from the class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp. However, I am getting a compiler error saying C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class gwclasses.words not found Any thoughts ? Thanks -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Not Virual Hosts: Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?
Hi, Jochen, thanks for the help. But, I think, unless I misunderstand, that virtual hosts are not the solution. Virtual hosts are defined by the Host element in server.xml. Hosts are parents to one or more web applications, each represented by a Context component. I can see nothing in a virual host that allows us to introduce the variable of a URL, e.g. www.aa.com versus www.bb.com, incoming to the site. However, since I am the one having the problem, maybe I misunderstand. Could you expand on how you think this solves the problem of mapping, e.g., the url www.aa.com to the application webapps/aa and the url www.bb.com to the application webapps/bb? Thanks. At 12:01 PM 2/3/02 +0100, you wrote: hi, i think you are looking for something called virtual hosts. tomcat can do virtual hosts. look in the tomcat documentation after the host directive. jochen Hello Micael, Sunday, February 03, 2002, 7:46:13 AM, you wrote: MPOmG Clear question: No answers MPOmG The subject, supra, asks the question. If you have a number of URLs MPOmG pointed to a single IP address, can you map the URLs somehow to discrete MPOmG web applications in Tomcat 4.0? MPOmG I have read everything I know to read and cannot get the answer to this. I MPOmG know I could do it with JBoss and Tomcat 3.2.4 and the context MPOmG manager. But, I don't see that in Tomcat 4.0. What's up? MPOmG Sure is hard to get a response to this question. Have no idea MPOmG what. Please don't tell me the stuff that is simple and covered like how MPOmG to set up directories, etc. I know how to handle aliases, how to handle MPOmG multiple IP addresses on the same machine, etc. My question is MPOmG specific. How can I get, e.g. www.a.com and www.b.com when they MPOmG are pointed to a given IP address, 209.43.251.66 (for example), to map to MPOmG webapps/a and webapps/b? Or, is this not now possible? MPOmG Some people have suggested that, since I don't know the answer to this, I MPOmG need to essentially take the classes I teach for fun. Lord. If only they MPOmG could answer the question instead of loading me with pompous self-righteous MPOmG drivel. I do thank those who have tried. I don't know where to look at MPOmG this point. I may just write the classes to do it. MPOmG Micael MPOmG -- MPOmG To unsubscribe: mailto:[EMAIL PROTECTED] MPOmG For additional commands: mailto:[EMAIL PROTECTED] MPOmG Troubles with the list: mailto:[EMAIL PROTECTED] jochen schwoerer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
UNO C++ Servlets
UNO C++ Servlets Hi, I would like to announce the birth of the UNO C++ Servlets project on http://uno-servlets.sourceforge.net . The framework allows to develop servlets as UNO C++ components ( UNO is the component model of OpenOffice.org, see http://www.openoffice.org ) and to plug these servlets seamlessly either into jakarta-tomcat 3.2.x or apache 1.3.x. For tomcat users, it may be an alternative to JNI, RMI or CORBA if they need to access a C API. It allows to access data in the tomcat-httpsession as long as the data-types are simple or support UNO types. The project is yet in a alpha state, it is published under the LGPL license. It is currently available for Windows and Linux. Joerg Budischewski [EMAIL PROTECTED] ( Author of UNO C++ servlets ) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?
Thanks, Pete. I assume that you are saying that you map the request to differing ports? E.g. 192.168.x.x.:8080 for one and 192.168.x.x.:8081 for another? If you are not saying that but are saying that it is multiple IP addresses, i.e. the xs change, that is not my problem. My problem is with using a single IP. I assume you know that, but am just covering the bases. I would much prefer an Apache or Tomcat solution and assume there will be one. If I get an answer, want me to forward it to you? (I will either get an answer or build one!) Micael At 08:15 PM 2/3/02 +1300, you wrote: What you are after is essentially a 'Layer-7 Switch' I do this with the SQUID proxy server and a perl script which rewrites HTTP requests using regular expressions to match URL fragments. e.g. all our domains are pointed at a single IP, and i map requests for external domain namesservers to internal servers e.g. http://www.mydomain.com/myapp/ gets mapped to http://192.168.x.x:8080/myapp/ There are a few hurdles to overcome with this approach, chiefly that cookies get set based on the server name and directory, which means that you need to match webapp names - i.e. you need to map http://externally.visible.domain/myapp to http://internally.visible.domain/myapp - trying to map e.v.d/myapp to i.v.d/someotherapp probably won't work properly with sessions etc. Also, you'll probably need to use absolute URLs in your JSPs etc. , since the client and the web server have different ideas about exactly what is being requested. I believe Apache has built-in URL-rewriting features, and Tomcat may do as well, however, I find SQUID works reliably for what I want to do, so I have not looked for another solution. One thing to be aware of with the SQUID approach is the fact that your proxy server is effectively opened to the net, and clients are free to request arbitary URLs from your proxy, letting them use your bandwidth to fetch their URLs. I see a surprisingly high level of abuse for a fairly obscure and little-used web server, with requests for banner-ads, machines with obvious viral infections and others trying to exploit my 'open' proxy server. However, a small perl script run daily by cron that parses the SQUID access log and bans IPs with IPTables that match abuse patterns takes care of that pretty quickly. Hope that helps -Pete Micael Padraig Og mac Grene wrote: Clear question: No answers The subject, supra, asks the question. If you have a number of URLs pointed to a single IP address, can you map the URLs somehow to discrete web applications in Tomcat 4.0? I have read everything I know to read and cannot get the answer to this. I know I could do it with JBoss and Tomcat 3.2.4 and the context manager. But, I don't see that in Tomcat 4.0. What's up? Sure is hard to get a response to this question. Have no idea what. Please don't tell me the stuff that is simple and covered like how to set up directories, etc. I know how to handle aliases, how to handle multiple IP addresses on the same machine, etc. My question is specific. How can I get, e.g. www.a.com and www.b.com when they are pointed to a given IP address, 209.43.251.66 (for example), to map to webapps/a and webapps/b? Or, is this not now possible? Some people have suggested that, since I don't know the answer to this, I need to essentially take the classes I teach for fun. Lord. If only they could answer the question instead of loading me with pompous self-righteous drivel. I do thank those who have tried. I don't know where to look at this point. I may just write the classes to do it. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: safety deploy in tomcat in a shared enviroment
Not sure of what sort of security you are trying to develop, Eli. Be more specific. There are lots of available solutions for lots of differing objectives. For example, do you just want to avoid hackers, people jumping into the middle of your site, returns to sensitive pages, etc.? Micael At 06:03 PM 2/3/02 +0100, you wrote: Hi to all, I need to setup a linux-box to host user application in a safety environment. I already read how to setup a Java SecurityManager. Is this the only attention I have look for? If someone had got experience in hosting solution using Tomcat please send me a guideline to check for common security problem, or a list of url to look for doc. every hints is mostly appreciated. thank you Eli Spizzichino -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
apache+web_app/mod_jk+tomcat - segmentation fault error
I just configure tomcat-4.0 and I set up its virtual hosts. Just to mention that root dirs for virtual hosts are not in webapps but in /home/user dirs. Than I set up Apache-1.3.22 also with the same virtual hosts and the document roots (/home/user) . Than I wanted to set up mod_webapp to deploy apps from tomcat through apache. But it doesnt't work. I have downloaded mod_webapp-1.0-eapi.so , I put LoadModule webapp_module /home/flylord/mod_webapp-1.0-eapi.so AddModule mod_webapp.c Then I put VirtualHost x.x.x.x ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/cmsdev/www/htdocs ServerName x.x.x.x WebAppConnection tomcat4_connect warp localhost:8008 WebAppDeploy cmsdev tomcat4_connect / #WebAppInfo /webapp-info # WebAppDeploy examples tomcat4_connect /examples #JkMount /*.jsp ajp13 ErrorLog/var/log/apache/cmsdev/error.log CustomLog /var/log/apache/cmsdev/access.log combined /VirtualHost And in /var/log/apache/error.log I got: [Mon Feb 4 17:56:02 2002] [notice] child pid 13523 exit signal Segmentation fault (11) In tomcat/logs I got: 2002-02-04 18:07:39 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2052 to localhost/127.0.0.1:8008 2002-02-04 18:07:39 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 2002-02-04 18:07:39 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 2002-02-04 18:07:41 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source) at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) 2002-02-04 18:07:41 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source) at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) 2002-02-04 18:07:42 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2053 to localhost/127.0.0.1:8008 2002-02-04 18:07:42 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 2002-02-04 18:07:43 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2054 to localhost/127.0.0.1:8008 2002-02-04 18:07:43 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2055 to localhost/127.0.0.1:8008 2002-02-04 18:07:43 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappi I also have tried with mod_jk. And I am getting problem with it too. I wrote some JSPs thatt have to check wether client have cookies and javascript enabled. When I am accessing to that app through tomcat, it's working ffine, but when I am try that through apache I got error that cookies are disabled!!! I just loaded mod_jk into apache and put JkMount /*.jsp ajp13 into apache and enabled ajp13 conenctor in Tomcat Any help, pleas Ilic Aleksandar -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk+tomcat-4.0
I have tried with mod_jk to set up apache to serve static context from tomcat. And I am getting problem with it . I wrote some JSPs thatt have to check wether client have cookies and javascript enabled. When I am accessing to that app through tomcat, it's working ffine, but when I am try that through apache I got error that cookies are disabled!!! I just loaded mod_jk into apache and put JkMount /*.jsp ajp13 into apache and enabled ajp13 conenctor in Tomcat. I am getting no error:( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
safety deploy in tomcat in a shared enviroment
Hi Micael, probably I was unclear. I want to avoid insecure code to being executed. Is it useful to run multiple JVM? If yes how... and so on... I want to make java hosting for unknown java user code, so I need to take attention on system resources and insecure servlet/jsp code. I like to provide a sort of secure sandbox for running servlet and jsp to external users. What type of restriction I have to make? // my environment is: kernel 2.4 (RedHat o SuSe) OpenSSH (opz. OpenSSL) Apache 1.3 Jakarta Tomcat 3.3, Velocity, Turbine, Ant, ORO JDK 1.3 MySQL 3.3 Qmail - Courier IMAP (and other programs like vpopmail .) thank you Eli At 09.02 03/02/2002 -0800, you wrote: Not sure of what sort of security you are trying to develop, Eli. Be more specific. There are lots of available solutions for lots of differing objectives. For example, do you just want to avoid hackers, people jumping into the middle of your site, returns to sensitive pages, etc.? Micael At 06:03 PM 2/3/02 +0100, you wrote: Hi to all, I need to setup a linux-box to host user application in a safety environment. I already read how to setup a Java SecurityManager. Is this the only attention I have look for? If someone had got experience in hosting solution using Tomcat please send me a guideline to check for common security problem, or a list of url to look for doc. every hints is mostly appreciated. thank you Eli Spizzichino -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Using jdbc realms + nocookies + form login causes triple-login bug
_I would have posted this to tomcat-dev, but the page with directions on subscribing was down when I last checked. I am witnessing a bug where if you use cookie-less form-based login with JDBC realms, Tomcat 4.0.1 and 4.0.2b2 will force you to triple-login to actually login. (You have type your username password into the form based page three times) I am apparently not the only one who has seen this: http://mikal.org/interests/java/tomcat/archive/view?mesg=52926 The reason I believe it has to do with JDBC realms is that I tried cookieless login using the tomcat example /tomcat/webapps/examples/jsp/security , which worked fine with the memory or file-based realms. I then modified the 'examples' context in server.xml to use my jdbc realm, and while I could manage to login in, it took three efforts to actually get in. -Cameron Elliott
Re: triggering JSP page recompilation
Hi, August Detlefsen wrote: BODY PAGE: %@ taglib uri=request.jar prefix=req % req:setattribute name=content (HTML, JSP, etc - Whatever needs to go in the body of the page goes here...) /req:setattribute jsp:forward page=/template.jsp / TEMPLATE PAGE (template.jsp): (HTML header) (HTML sidebar) %= request.getAttribute(content) % It would be even nicer if c:expr would accept request scoped variables Greetings, Wolfgang smime.p7s Description: S/MIME Cryptographic Signature
How set:Property works?
I've got a simple JSP that has the use bean and set property tags like this: jsp:useBean id=MyCart scope=session class=CartBean jsp:setProperty name=MyCart property=* / /jsp:useBean Later in the FORM tag, I use the MyCart bean to populate the input fields like this: INPUT TYPE=TEXT NAME=phone SIZE=25 VALUE=%=MyCart.getPhone()% I fill in the FORM stuff and the first time I POST back to the same JSP all of the form data is set in the bean. When I change the data and POST again, I still have the same data that I had the first time. Does the set:Property only set the Bean variables if the Bean is being create for the first time? Or, should I have the latest form data in the Bean every time I hit the submit button and post back to the same JSP. Thanks. BTW-I'm using Tomcat 3.2.2 __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0? - Yes
--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: Clear question: No answers The subject, supra, asks the question. If you have a number of URLs pointed to a single IP address, can you map the URLs somehow to discrete web applications in Tomcat 4.0? I have read everything I know to read and cannot get the answer to this. I know I could do it with JBoss and Tomcat 3.2.4 and the context manager. But, I don't see that in Tomcat 4.0. What's up? Sure is hard to get a response to this question. Have no idea what. Please don't tell me the stuff that is simple and covered like how to set up directories, etc. I know how to handle aliases, how to handle multiple IP addresses on the same machine, etc. My question is specific. How can I get, e.g. www.a.com and www.b.com when they are pointed to a given IP address, 209.43.251.66 (for example), to map to webapps/a and webapps/b? Or, is this not now possible? Some people have suggested that, since I don't know the answer to this, I need to essentially take the classes I teach for fun. Lord. If only they could answer the question instead of loading me with pompous self-righteous drivel. I do thank those who have tried. I don't know where to look at this point. I may just write the classes to do it. Micael Hi Micael, It is possible to setup Apache with the Warp connector to map different host names to different webapps. In my case I have a number of webapps available under the ROOT context for an equal number of host names. http://xx-xx.mydomain.net - webapps/xx-xx http://yy-yy.mydomain.net - webapps/yy-yy http://zz-zz.mydomain.net - webapps/zz-zz (The setup you desire is a virtual host setup. I'll restrict my advice to the Apache/Warp/TC setup but I think you should reread http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html if you want to omit Apache from your setup.) Below are the relevant extracts from my httpd.conf and server.xml files. httpd.conf -- NameVirtualHost 194.164.98.233 VirtualHost 194.164.98.233 ServerName eng.dev.studylink.com ServerAdmin [EMAIL PROTECTED] WebAppConnection eng-cnx warp localhost:8008 WebAppDeploy eng eng-cnx / ErrorLog /var/opt/apache/logs/eng.error_log CustomLog /var/opt/apache/logs/eng.access_log common /VirtualHost server.xml -- Server port = 8005 shutdown = SHUTDOWN debug = 0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className = org.apache.catalina.connector.warp.WarpConnector port = 8008 minProcessors = 5 maxProcessors = 75 enableLookups = true acceptCount = 10 debug = 1/ Engine className= org.apache.catalina.connector.warp.WarpEngine name = Apache debug = 0 appBase = webapps defaultHost = delta.tudylink.com !-- Global logger unless overridden at lower levels -- Logger className= org.apache.catalina.logger.FileLogger prefix = apache_log. suffix=.txt timestamp = true/ Realm className = org.apache.catalina.realm.MemoryRealm / DefaultContext/DefaultContext /Engine /Service /Server __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: can't get tomat working with IIS (complete email...earlier one was incomplete)
Yes, the virtual directory 'jakarta' is set with execute permissions for 'Scripts and Executables'. I could not get the reg file to work, I double clicked, it tells me it worked, but no registry changes are made, so I manually created the registry entry. I have not registered this reg file. - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 04, 2002 1:08 AM Subject: RE: can't get tomat working with IIS (complete email...earlier one was incomplete) Is the IIS virtual directory set to execute (with scripts) mode? Did you register your iisredirect.reg file? Also, did you load your redirector at the level of your computer name in the Internet Information Services area? Could you send me screen captures of your settings? You can send it to my email address if you wish... Thanks Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 4:55 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS (complete email...earlier one was incomplete) I have tried this uriworkermap.properties file, but it made no difference. I have setup the 'jakarta' virtual directory under the default web site, is there anythng else required with IIS ? I've set the website IIS to allow anonymous access. I have only modified worker.properties servlet.xml, is there anything else that needs to be done thats NOT mentioned in the official HOWTO?(no mention of modifying server.xml). I suspect the following log file entries may have something to do with it - [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default redirection of /examples/ [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/examples/' [Sun Feb 03 08:39:10 2002] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (638)]: HttpFilterProc [/examples/] is not a servlet url [Sun Feb 03 08:39:10 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if [/examples/] is points to the web-inf directory some problem not mapping to the directory 'example', but it is in the standard place under webapps. Are there any permissions that need to be set with the /examples directory ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:30 PM Subject: RE: can't get tomat working with IIS (complete email...earlier one was incomplete) woopssent it prematurely. :-) The uriworkermap.properties has the following format: -- # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /example=$(default.worker) /example/*=$(default.worker) -- If example was a directory located under webapps, then this would define what IIS would redirect to Tomcat for processing. As for server.xml, there is something that looks like this: -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- Hope this helpsany questions, just shout... Paul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:27 PM To: Tomcat Users List Subject: Re: can't get tomat working with IIS What is required in uriworkermap.properties ? No, I haven't modified this file. I can't find any reference to 'ajp13' in server.xml, what is meant to be there ? - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:15 PM Subject: RE: can't get tomat working with IIS Did you add the appropriate directories to uriworkermap.properties? Also, did you uncomment the reference to the ajp13 connector in server.xml? I am also running Windows 2K IIS and Tomcat and they both work well. Thanks PAul -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: can't get tomat working with IIS I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly (green arrow) but still nothing. Works fine with 8080. I have checked the iis_redirect.log - it generates -
Re: Apache/WARP connector/trailing slash
I wanted to know the same thing, so I went out and looked at the code base to understand why. USE OF THE FOLLOWING IS AT YOUR OWN RISK. IN NO EVENT SHALL MYSELF AND/OR TWINQUEST LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION/SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Ok, if you do not want to have to supply the trailing slash, you need to keep the following in mind. The webapp module attaches itself to Apache in such a way that Apache asks the webapp module if it will handle or decline a request that Apache receives. For every request that Apache passes on to the webapp module, the webapp module searches its list of applications to see if it will handle the request. The slower this matching process is, the slower Apache becomes. I got this to work using the source distribution webapp-module-1.0.1-tc401-src.tar.gz. Mind you, I'm on Mac OS X, but that shouldn't matter any bit. Take a good look at the wam_match() function in mod_webapp.c found in jakarta-tomcat-connectors/webapp/apache-1.3. You will notice that the requested uri is compared against the WebAppDeploy's request path. Note that when the WebAppDeploy directive is processed, the request path is normalized to begin with '/' and end with '/'. So it doesn't matter whether you have WebAppDeploy examples warpConnection /examples Or WebAppDeploy examples warpConnection /examples/ So if you do not want to have to type the trailing slash, you could modify the wam_match() function to allow this. I didn't spend that much time with this, but it currently SEEMS to be working (I performed hardly any testing!!!) The details of what I changed follow: I changed elem=host-apps; while(elem!=NULL) { appl=(wa_application *)elem-curr; if (strncmp(appl-rpth,r-uri,strlen(appl-rpth))==0) break; appl=NULL; elem=elem-next; } if (appl==NULL) return(DECLINED); to look like this elem=host-apps; while(elem!=NULL) { register int slen; appl=(wa_application *)elem-curr; slen = strlen(appl-rpth); if( strncmp( appl-rpth, r-uri, slen) == 0 ) break; if( slen = 2 strncmp( appl-rpth, r-uri, slen - 1 ) == 0 ) break; appl=NULL; elem=elem-next; } if (appl==NULL) return(DECLINED); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector
Hi, I am having problems implementing servlets and JSP pages using Tomcat 4.0.1 and Apache 1.3.20 (mod_ssl) on Solaris 8. Initially, after searching on the web, I used the AJP connector as this (according to what I read) was the recommeded connector to use. After having Tomcat hang several times and reading that Tomcat 4 only has beta support for the AJP connector, I changed to the WARP connector. All seemed to be going well, but eventually, instead of Tomcat hanging, Apache would hang. I found one reference on the internet to this problem, and this was stated as a known problem with the WARP connector. The only probable solution was that the latest WARP connector could be downloaded from the CVS area and compiled. However, no guarantee was given that this would work. Therefore, I find myself in the position of having to implement servlet and JSP pages with Tomcat and have no reliable connector to use with Apache. Also, I cannot use the standalone server in Tomcat as I need the SSL encryption provided by Apache. Does anybody know of any solution to this problem, or do I have to go back to Tomcat 3.3. Thanks for your help. Regards, -- Anthony Jones Senior Programmer (Applications and Development) Queensland Tertiary Admissions Centre (QTAC) Ltd Phone: +61 7 38581285 email: [EMAIL PROTECTED] If a train station is where the train stops, what is a work station? -- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector
Hi Anthony, Why not use mod_jk instead of WARP? I have seen folks on the list that have had no problems with WARP on non-Windows servers but I don't know the problem rate of WARP. I had some troubles also (but on windows) and switched to mod_jk. B -Original Message- From: Anthony Jones [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 6:37 PM To: Tomcat Users List Subject: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector Hi, I am having problems implementing servlets and JSP pages using Tomcat 4.0.1 and Apache 1.3.20 (mod_ssl) on Solaris 8. Initially, after searching on the web, I used the AJP connector as this (according to what I read) was the recommeded connector to use. After having Tomcat hang several times and reading that Tomcat 4 only has beta support for the AJP connector, I changed to the WARP connector. All seemed to be going well, but eventually, instead of Tomcat hanging, Apache would hang. I found one reference on the internet to this problem, and this was stated as a known problem with the WARP connector. The only probable solution was that the latest WARP connector could be downloaded from the CVS area and compiled. However, no guarantee was given that this would work. Therefore, I find myself in the position of having to implement servlet and JSP pages with Tomcat and have no reliable connector to use with Apache. Also, I cannot use the standalone server in Tomcat as I need the SSL encryption provided by Apache. Does anybody know of any solution to this problem, or do I have to go back to Tomcat 3.3. Thanks for your help. Regards, -- Anthony Jones Senior Programmer (Applications and Development) Queensland Tertiary Admissions Centre (QTAC) Ltd Phone: +61 7 38581285 email: [EMAIL PROTECTED] If a train station is where the train stops, what is a work station? -- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can't get tomat working with IIS
Just to confirm, when you right click on the iis_redirect.reg file, you should see the option to merge. When you do that, you should see six entries in: HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0 If those entries are not there, then, you wouldn't be able to properly redirect. However, it does sound strange that the registry changes didn't take affect. Interesting, please let me know if this works out. Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
DistributedManager
Has anyone played with the DistributedManager? Jonathan. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat upgrade on Debian fails..
I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update: I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat. Having not used it for awhile, or updated in 4-6 months, I did an apt-get install of tomcat and Apache, to get the most current versions. It did an update, and now it is broken. -( Apache seems to work fine, and has the prescribed tomcat attachments in /etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp pages give not found. 1) At first none of the servlet or JSP pages worked. Once the first request is made, tomcat keeps getting errors, about one per second, like this (forever) PoolTcpEndpoint Endpoint ServerSocket[addr=localhost/127.0.0.1,port=0,localport =8009] ignored exception java.net.SocketException Socket closed java.net.SocketException Socket closed at java.net.PlainSocketImpl.close(PlainSocketImpl.java408) at java.net.Socket.close(Socket.java383) at java.net.ServerSocket.implAccept(ServerSocket.java206) at java.net.ServerSocket.accept(ServerSocket.java181) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java) PoolTcpEndpoint Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored exception java.net.SocketException Socket closed java.net.SocketException Socket closed at java.net.PlainSocketImpl.close(PlainSocketImpl.java408) at java.net.Socket.close(Socket.java383) at java.net.ServerSocket.implAccept(ServerSocket.java206) at java.net.ServerSocket.accept(ServerSocket.java181) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source) I found that the workers.properties file was not in the right (referenced in config files), so I repaired that. (why did the (re-)install goof this up?) 2) Now the servlet examples work, all html works, either through Apache or directly by tomcat (:8081), but all .Jsp examples fail: page not found omega/etc/tomcat/logs# more mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters ... and log/stdout.log shows: Unable to open log file: /usr/share/tomcat/logs/servlet-${MMdd}.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/jasper-${MMdd}.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/examples.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/servlet_examples.log! Using stderr as the default. and in stdout, a bunch of good startup stuff, and then: 2002-01-11 14:18:28 - /examples: Error creating validation mark - java.io.FileNotFoundException: /usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt at java.io.FileOutputStream.init(FileOutputStream.java) at java.io.FileOutputStream.init(FileOutputStream.java) at org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown Source) at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source) at org.apache.tomcat.core.Context.init(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source) at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source) at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source) at org.apache.tomcat.startup.Main.execute(Unknown Source) at org.apache.tomcat.startup.Main.main(Unknown Source) ... 2002-01-11 14:18:41 - Http10Interceptor: Starting on 8081 2002-01-11 14:18:41 - Ajp12Interceptor: Starting on 8007 2002-01-11 14:18:41 - Ajp13Interceptor: Starting on 8009 2002-01-11 14:18:41 - Ajp12Interceptor: Can't create stop file: /usr/share/tomcat/conf/ajp12.id - java.io.FileNotFoundException: /usr/share/tomcat/conf/ajp12.id at java.io.FileOutputStream.init(FileOutputStream.java) at java.io.FileOutputStream.init(FileOutputStream.java) at java.io.FileWriter.init(FileWriter.java) at org.apache.tomcat.modules.server.Ajp12Interceptor.engineState(Unknown Source) at org.apache.tomcat.core.ContextManager.setState(Unknown Source) at org.apache.tomcat.core.ContextManager.start(Unknown Source) at
Re: DistributedManager
Yes. It does not achieve the desired effect, in that updates are not persisted across the cluster, only newly created sessions. I'm working on a replacement that solves the problem of distributed session management, thus providing fail-over capability for a properly configured tc cluster. Tom - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 5:27 PM Subject: DistributedManager | Has anyone played with the DistributedManager? | | Jonathan. | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Fixed - RE: RE: Catalina Beans - Class Path Problem
All fixed :) Can tomcat/catalina check the classes directory to make sure none of them have been modified. Obviosuly it will check my JSPs but apparently not so when I have to change a class. Currently I have to reload the applciation. Any thoughts? Thanks for the help. -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 9:10 AM To: Tomcat Users List Subject: RE: RE: Catalina Beans - Class Path Problem I am not sure if you are running this in Windows but if you go to something equivalent to starting this at the command line, type startup debug in the %CATALINA_HOME%\bin directory and see if your classes or jars are loaded? Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 8:29 AM To: Tomcat Users List Subject: Re: RE: Catalina Beans - Class Path Problem I am having the same problem only my clases ARE directly in the classes folder. Also, my utility classes, which are neither servlets nor Beans, are also giving me the same problem. Please help!!! I have tried packaging them and then without packaging. I am not sure what to do now. I am not using any IDE nor am I using a deployment tool. Tomcat Users List [EMAIL PROTECTED] wrote: Please see my comments below: All your classes and/or beans should go into: ./webapps/gateway/WEB-INF/classes, or ./webapps/gateway/WEB-INF/lib This should help you out. :-) Paul -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 8:12 PM To: Tomcat Users List Subject: Catalina Beans - Class Path Problem Short Version: For some reason, I can not get my JSP pages to compile when loading a little bean ... It is not reading web-inf/classes. Although, it is reading web-inf/web.xml Long Version: A)Installed tomcat, got it running, all of the example programs work. B)I am building an application called Gateway I created ./webapps/gateway ./webapps/gateway/index.jsp ./webapps/gateway/WEB-INF/ ./webapps/gatewayWEB-INF/web.xml So I understand this to be creating a bean with id Words from the class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp. However, I am getting a compiler error saying C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class gwclasses.words not found Any thoughts ? Thanks -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01 + SSL + JDK 1.4 (on RedHat 7.1)
Hi, As long as i can remember the default post of https is 8443 and not 443 HTH Best Regards Moin. Deacon Marcus wrote: Hi, I can't get this configuration to work. When I try https://hostname:443 I just get a blank page. (Changed port in server.xml). JDK 1.4 has built-in support for SSL, is there anything different in configuring Tomcat to work with it as opposed to add-on SSL package for 1.3? Greetings, deacon Marcus -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help - Support of LDAP SortControl under Tomcat 4.0.1
Hi, I wrote a java libary from where functions are called by some JSP pages running under Tomcat 4.0.1. In this library, I use Sun's LDAP Control Extension for LDAP Sort Control (exported from com.sun.jndi.ldap.ctl.SortControl), as following: ldapCtx = new InitialLdapContext(env, null); // Create the critical Sort control that sorts based on uid Control[] ctxCtls = new Control[] { new SortControl(new String[]{uid}, Control.CRITICAL) }; // Set the context's request controls to be ctxCtls ldapCtx.setRequestControls(ctxCtls); When I tested the code with a standalone java program (i.e., not running under Tomcat) it works just fine. However, when I run the code (called from a JSP page) under Tomcat 4.0.1, I got the following error: javax.naming.OperationNotSupportedException: [LDAP: error code 12 - Unavailable Critical Extension]; I put 'ldapbp.jar' under a few different places under Tomcat home directory, including 'lib', 'common\lib', etc. but got the same error. Any help you can give to get this resolved is appreciated. Thanks in advance. Best Regards, James Chiou