tomcat & XML
hi , I have created a couple of xml files and I need to know in which directory of Tomcat 4.0 I need to place these xml files , from where Java Beans can use them. Mubaraka Arif Database software developer St Mary's University , San Antonio, TX -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: authorization using tomcat...
hi , I am trying to use the JDBC authentication using Informix database on Debain Tomcat 4.1. The snippet of the server.xml : execution - 1. tomcat process started 2. tried to access the page login.jsp. It throws an expection "connection refused". 3. When tomcat process is stopped. schroeder:/etc/init.d# tomcat4 stop Using CATALINA_BASE: /usr/share/tomcat4 Using CATALINA_HOME: /usr/share/tomcat4 Using CATALINA_TMPDIR: /usr/share/tomcat4/temp Using JAVA_HOME: /usr/lib/j2sdk1.3 Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.(Socket.java:273) at java.net.Socket.(Socket.java:100) at org.apache.catalina.startup.Catalina.stop(Catalina.java:579) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) I went the documentation of Tomcat explaining the JDBCRealm - how to. But , if you can explain me the steps to go through I would greatly appreciate. Thanks, Mubaraka Arif DataManagement Software Developer St Mary's University On 2002.10.02 13:19 Padhu Vinirs wrote: > > Now I am able to access the secure page through the login page. But > even if I close the browser ( whcih i assume will close the session > ), and restart it, I am able to access the secure page without going > through the login page. Is there a place where I need to say that the > login info should not be a permanent cookie but only session scope ??? > > Thanks > > -- padhu > > > > > Rick Fincher wrote: > >> Hi Padu, >> >> It looks like you have this set up OK. Do you have a memory realm >> set up in >> conf/web.xml as is required for this setup? >> >> Also, since your transport guarantee is set up as confidential it is >> going >> to use SSL so you either have to use an HTTPS:// url or you have to >> have >> redirection turned on in port 80 (or whatever your HTTP port is) in >> conf/web.xml. >> >> If your HTTPS port isn't 443 you'll have to have :8443 (if 8443 is >> the HTTPS >> port) in the url too. >> >> Rick >> >> - Original Message - >> From: "Padhu Vinirs" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >> Sent: Wednesday, October 02, 2002 10:19 AM >> Subject: authorization using tomcat... >> >> >> >>> I am testing web resource form-based authentication. I have created >>> a >>> dummy jsp page "Details.jsp" and have created the following nodes in >>> web.xml: >>> >>> >>> >>>SecurePages >>>Details.jsp >>> >>> >>>EditUsers >>> >>> >>>CONFIDENTIAL >>> >>> >>> >>>FORM >>> >>>/login.jsp >>>/error.jsp >>> >>> >>> >>>Users who can edit >>>EditUsers >>> >>> >>> >>> I have created a "EditUsers" role in tomcat-users.xml. >>> >>> But when I access "Details.jsp", I am redirected to the Netscape >>> search >>> page !!! I am able to access the login and error.jsp pages fine. >>> >>> Any ideas ? >>> >> >> >> >> -- >> To unsubscribe, e-mail: >> <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> >> >> >> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Adding Jar files in Tomcat 4.1.12
For the Tomcat version 4.0.3-3 on Linux (Debian) I the JDBC Driver files in : /common/lib I have successfully used the postgresql and Informix JDBC driver keeping their respective jars in the above path. Mubaraka Arif Data Management Software Developer Administrative Technology and Information Services St. Mary's University, San Antonio, TX PH : (210)-436-3647 emial : [EMAIL PROTECTED] www.stmarytx.edu On 2002.12.06 09:27 Laxmikanth M.S. wrote: Hi , In tomcat3.3.1 I added my JDBC Driver files classpath in tomcat.sh simillarly where I have to add it in Tomcat4.1.12 thanks in advance for replies and answers Laxmikanth * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
tomcat4 dies when JBDC Realm is configured
hello , I have been trying to establish conainer amanaged security , so I tried to configure it using JDBC Realm. Steps what I follwed where : 1. created users table with fields username, password. 2. created roles tables with fields username, rolename. 3. In server.xml I added the JDBC Realm as follows : Snippet of server.xml unpackWARs="false" autoDeploy="true"> directory="logs" prefix="localhost_" suffix=".log" timestamp="true"/> driverName="com.informix.jdbc.IfxDriver" connectionURL=" " connectionName="" connectionPassword="" userTable="users" userNameCol="username" userCredCol="password" userRoleTable="roles" roleNameCol="rolename:/> When I start tomcat4 , it starts and dies in about 60sec. If any of you have encountered such situations , please provide some light to this problem which would be greatly appreciated. Mubaraka Arif Data Management Software Developer St Mary's University, San Antonio, TX e-mail : [EMAIL PROTECTED] phone: 210-436-3647 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat4 dies when JBDC Realm is configured
hello , I have been trying to establish conainer amanaged security , so I tried to configure it using JDBC Realm. Steps what I follwed where : 1. created users table with fields username, password. 2. created roles tables with fields username, rolename. 3. In server.xml I added the JDBC Realm as follows : Snippet of server.xml directory="logs" prefix="localhost_" suffix=".log" timestamp="true"/> driverName="com.informix.jdbc.IfxDriver" connectionURL=" " connectionName="" connectionPassword="" userTable="users" userNameCol="username" userCredCol="password" userRoleTable="roles" roleNameCol="rolename:/> When I start tomcat4 , it starts and dies in about 60sec. If any of you have encountered such situations , please provide some light to this problem which would be greatly appreciated. Mubaraka Arif Data Management Software Developer St Mary's University, San Antonio, TX e-mail : [EMAIL PROTECTED] phone: 210-436-3647 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat4 dies when JBDC Realm is configured
hi michael, I had provided the ConnectionURL, connectionName and connectionPassword , its jsut for security reasons I did not have it along with other details. I tried it placing under host, context and Engine services but still it dies. All help would be appreciated Mubaraka On 2003.02.24 12:34 "Tam, Michael" wrote: In your xml, if it is what you're using in your setup, then you didn't provide any value to connectionURL, connectionName, and connectionPassword to establish connection to the database. If you need help on this, you should read the document that comes with tomcat where you will find a section related to setting up JDBC REALM and the document of the JDBC driver that you use. Hope this help. Michael -Original Message- From: Mubaraka Arif [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:16 AM To: Tomcat Users List Subject: tomcat4 dies when JBDC Realm is configured hello , I have been trying to establish conainer amanaged security , so I tried to configure it using JDBC Realm. Steps what I follwed where : 1. created users table with fields username, password. 2. created roles tables with fields username, rolename. 3. In server.xml I added the JDBC Realm as follows : Snippet of server.xml unpackWARs="false" autoDeploy="true"> When I start tomcat4 , it starts and dies in about 60sec. If any of you have encountered such situations , please provide some light to this problem which would be greatly appreciated. Mubaraka Arif Data Management Software Developer St Mary's University, San Antonio, TX e-mail : [EMAIL PROTECTED] phone: 210-436-3647 - 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: tomcat4 dies when JBDC Realm is configured
hi michael, yes , my JDBC connectively does work well using Servlets/jsp. I am running tomcat4 on debain linux. I also include the snippet of server.xml : port="8180" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" connectionTimeout="2" useURIValidationHack="false" /> port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" scheme="https" secure="true"> clientAuth="false" protocol="TLS" keystoreFile="/usr/share/tomcat4/" keystorePass="vision2003"/> port="8009" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" connectionTimeout="2" useURIValidationHack="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> driverName="com.informix.jdbc.IfxDriver" connectionURL="jdbc:informix-sqli://" userName="mubaraka" userPassword="login" userTable="users" userNameCol="username" userCredCol="password" userRoleTable="roles" roleNameCol="rolename"/> directory="logs" prefix="localhost_" suffix=".log" timestamp="true"/> pls suggest whether my placing of the Realm needs change to resolve the problem. Thanks for all yr help Mubaraka On 2003.02.24 15:08 "Tam, Michael" wrote: Hi Mubaraka, Can you verify if your JDBC library does work? For example, use a simple jsp/servlet to call JDBC to connect to your db?? Once JDBC is working then we can narrow down where the problem is. Michael -Original Message- From: Mubaraka Arif [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:51 AM To: Tomcat Users List Subject: Re: tomcat4 dies when JBDC Realm is configured hi michael, I had provided the ConnectionURL, connectionName and connectionPassword , its jsut for security reasons I did not have it along with other details. I tried it placing under host, context and Engine services but still it dies. All help would be appreciated Mubaraka On 2003.02.24 12:34 "Tam, Michael" wrote: > In your xml, if it is what you're using in your setup, then you didn't > provide any value to connectionURL, connectionName, and > connectionPassword > to establish connection to the database. If you need help on this, > you > should read the document that comes with tomcat where you will find a > section related to setting up JDBC REALM and the document of the JDBC > driver > that you use. > > Hope this help. > > Michael > > -Original Message- > From: Mubaraka Arif [mailto:[EMAIL PROTECTED] > Sent: Monday, February 24, 2003 9:16 AM > To: Tomcat Users List > Subject: tomcat4 dies when JBDC Realm is configured > > > hello , > > I have been trying to establish conainer amanaged security , so I > tried > to configure it using JDBC Realm. > Steps what I follwed where : > > 1. created users table with fields username, password. > > 2. created roles tables with fields username, rolename. > > 3. In server.xml I added the JDBC Realm as follows : > Snippet of server.xml > > > > unpackWARs="false" autoDeploy="true"> > > > > directory="logs" prefix="localhost_" suffix=".log" > timestamp="true"/> > > > debug="99" > driverName="com.informix.jdbc.IfxDriver" > connectionURL=" " > connectionName="" > connectionPassword="" > userTable="users" > userNameCol="username" > userCredCol="password" > userRoleTable="roles" >
Integrate JasperReport in JSP !
hello, Its been few days , I downloaded JasperReports and JasperEdit. I copied all the required jars of JasperReport into Tomcat's /WEB-INF/lib. Aslo, I used JasperEdit to create the report design and it generated an xml file. Now, JasperReports loads this xml file and allows to view the report. From this I don't know how. Also, I was able to find very usefull links for this. Please, if any of you have any inputs to offer , I would really appreciate. Thankyou in advance, Mubaraka Arif Software Developer St Mary's University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A good book about Tomcat
Professional Apache Tomcat - Vivek Chopra, Ben Galbraith, Sing Li, Romin Irani... [Wrox Publication] is good one for TOmcat Administration and Configuration. ~ Mubaraka Arif Software Developer Administrative Technology & Information Services St Mary's University San Antonio, TX -78228 On 2003.08.14 14:22 Alexander Vavilin wrote: Hi all, can anybody advice me a good book about Tomcat ???. -- Best regards, Alexander mailto:[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]