Re: Urgent pls help ! Protection problems of using Realm
An easier method would be to use SecurityFilter (http://securityfilter.sourceforge.net/). There is an example web application (actually several web apps) bundled with the software. Just look at the code and I think you'll find it fairly straightforward to implement what you want. a a wrote: Dear all, I do not have any idea of writing a custom realm, even how to start writing it. Can you give me some example or any references that teaching how to write a custom realm ? Thankyou very much ! kawai Mark Thomas [EMAIL PROTECTED] wrote: You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use Realm to check the roles and password and do authentication directly in my server. Is there any method that can solve that problem ? or any method instead of using Realm ? or override the current settings of Realm ? ... http://ringtone.yahoo.com.hk/ -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Urgent pls help ! Protection problems of using Realm
Dear all, I do not have any idea of writing a custom realm, even how to start writing it. Can you give me some example or any references that teaching how to write a custom realm ? Thankyou very much ! kawai Mark Thomas [EMAIL PROTECTED] wrote: You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use Realm to check the roles and password and do authentication directly in my server. Is there any method that can solve that problem ? or any method instead of using Realm ? or override the current settings of Realm ? ... http://ringtone.yahoo.com.hk/
RE: Urgent pls help ! Protection problems of using Realm
Dear all, I do not have any idea of writing a custom realm, even how to start writing it. Can you give me some example or any references that teaching how to write a custom realm ? Thankyou very much ! kawai Mark Thomas [EMAIL PROTECTED] wrote: You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use Realm to check the roles and password and do authentication directly in my server. Is there any method that can solve that problem ? or any method instead of using Realm ? or override the current settings of Realm ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ... http://ringtone.yahoo.com.hk/
RE: Urgent pls help ! Protection problems of using Realm
You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use Realm to check the roles and password and do authentication directly in my server. Is there any method that can solve that problem ? or any method instead of using Realm ? or override the current settings of Realm ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent ! Pls help !
Try this: netstat -a |grep 8009 If he finds something, than you should see that, tomcat is listening on that port (8009). Next thing is try on your server locally: telnet localhost 8009 If you can see the message 'escape with ^C' or similar msg, than tomcat config is fine. if tomcat is fine, you have to control your mod_jk configuration. have you compiled mod_jk to apache or did you download a binary version? If it's the binary it should match the version of your apache httpd, otherwise it won't work. In any case, I think it's a good idea to compile mod_jk for your apache. kind regards Tuan Arnab Chakravarty wrote: ajp13 and ajp14 and not ajp12...correction -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:32 AM To: Tomcat Users List Subject: RE: Urgent ! Pls help ! Can u check ur server.xml config file and check if the port is correctly set for the ajp12 connector to server the request... -Original Message- From: a a [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:28 AM To: [EMAIL PROTECTED] Subject: Urgent ! Pls help ! Dear all, I have some problem when connecting apache to tomcat. I have installed both apache1.3 and tomcat4. I use mod_jk to do the connection. However some problems exists. Here is the log file of mod_jk.log when I run apachectl restart: [Wed Jan 28 20:32:57 2004] [jk_connect.c (233)]: jk_open_socket, connect() failed errno = 111 [Wed Jan 28 20:32:57 2004] [jk_ajp_common.c (757)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111 and here is the worker.properties: workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina workers.java_home=$(JAVA_HOME) workers.th=$(workers.tomcat_home) ps=\ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp14.port=8010 worker.ajp14.host=localhost worker.ajp14.type=ajp14 worker.ajp14.secretkey=secret worker.ajp14.credentials=myveryrandomentropy worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr I don't know what the problem is. Could anyone please help me to solve the problem. Regards, John LEE ... http://ringtone.yahoo.com.hk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Urgent ! Pls help !
Can u check ur server.xml config file and check if the port is correctly set for the ajp12 connector to server the request... -Original Message- From: a a [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:28 AM To: [EMAIL PROTECTED] Subject: Urgent ! Pls help ! Dear all, I have some problem when connecting apache to tomcat. I have installed both apache1.3 and tomcat4. I use mod_jk to do the connection. However some problems exists. Here is the log file of mod_jk.log when I run apachectl restart: [Wed Jan 28 20:32:57 2004] [jk_connect.c (233)]: jk_open_socket, connect() failed errno = 111 [Wed Jan 28 20:32:57 2004] [jk_ajp_common.c (757)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111 and here is the worker.properties: workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina workers.java_home=$(JAVA_HOME) workers.th=$(workers.tomcat_home) ps=\ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp14.port=8010 worker.ajp14.host=localhost worker.ajp14.type=ajp14 worker.ajp14.secretkey=secret worker.ajp14.credentials=myveryrandomentropy worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr I don't know what the problem is. Could anyone please help me to solve the problem. Regards, John LEE ... http://ringtone.yahoo.com.hk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Urgent ! Pls help !
ajp13 and ajp14 and not ajp12...correction -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:32 AM To: Tomcat Users List Subject: RE: Urgent ! Pls help ! Can u check ur server.xml config file and check if the port is correctly set for the ajp12 connector to server the request... -Original Message- From: a a [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:28 AM To: [EMAIL PROTECTED] Subject: Urgent ! Pls help ! Dear all, I have some problem when connecting apache to tomcat. I have installed both apache1.3 and tomcat4. I use mod_jk to do the connection. However some problems exists. Here is the log file of mod_jk.log when I run apachectl restart: [Wed Jan 28 20:32:57 2004] [jk_connect.c (233)]: jk_open_socket, connect() failed errno = 111 [Wed Jan 28 20:32:57 2004] [jk_ajp_common.c (757)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111 and here is the worker.properties: workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina workers.java_home=$(JAVA_HOME) workers.th=$(workers.tomcat_home) ps=\ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp14.port=8010 worker.ajp14.host=localhost worker.ajp14.type=ajp14 worker.ajp14.secretkey=secret worker.ajp14.credentials=myveryrandomentropy worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr I don't know what the problem is. Could anyone please help me to solve the problem. Regards, John LEE ... http://ringtone.yahoo.com.hk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent. pls help me out
Now, is this really urgent? I'll see if I can help. I'd point you to the tomcat/webapps/examples directory. These are some examples that come with tomcat. You'll find a WEB-INF directory there with a web.xml file within. This is what maps URLs to actual servlet classes. You can create your own directory under webapps and make your own WEB-INF/web.xml there. Follow the directory structure shown in the other web apps that come with tomcat. Under WEB-INF you can have classes (for your class files), and lib (for jars your app might need, such as your JDBC driver). You can put your development directories anywhere you like. Your build process (make, ant, etc.) should put the class files into your webapp directory. Instead of creating your directory under tomcat/webapps, you could put it elsewhere (in your own development tree) and edit the server.xml file (in tomcat/conf), to add your own context. Again, follow the examples. You'll need to change the docBase to point to where your web app lives. David zafar ahsan wrote: I have already installed tomcat and its working . ok now can anyone help me how should i move now, i mean i have written a servlet with jdbc(oracle thin layer) and its compiling without error. Now where should i put it and also whats the best way to organise my application. pls help me with an example, where i have to create a directory for my application development and deployment.and whats r the steps that i should follow now.Would be pleased to know all about it if anyone can have little time for me. thank u. _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent. pls help me out
Tomcat comes with documentation which is relevant to developers about deployment . You can look in the directory of tomcat to find it, or just point your browser to http://localhost:8080/tomcat-docs zafar ahsan wrote: I have already installed tomcat and its working . ok now can anyone help me how should i move now, i mean i have written a servlet with jdbc(oracle thin layer) and its compiling without error. Now where should i put it and also whats the best way to organise my application. pls help me with an example, where i have to create a directory for my application development and deployment.and whats r the steps that i should follow now.Would be pleased to know all about it if anyone can have little time for me. thank u. _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]