How to run servlet in tomcat
Hello I created directory called kiran in D:/tomcat/jakarta-tomcat/webapps/ . I have set the context path in /conf/server.xml I have kept both source and class file in /kiran directory now tell me how to execute this servlet file how to use web.xml file please assist me with example with regards kiran __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Great Software ... we'll go into production ;)
Hi, this will be just tomcat. Ingo -Ursprngliche Nachricht- Von: Ciot, Thierry [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Jnner 2001 04:30 An: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Betreff: RE: Great Software ... we'll go into production ;) Just curious, will that be running with Apache web server as well or just Tomcat? Thanks. Thierry. -Original Message- From: Ingo Rammer [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 4:30 PM To: '[EMAIL PROTECTED]' Subject: Great Software ... we'll go into production ;) Hi ladies and gentlemen, I just wanted to tell you about a project which will use Tomcat as a backend. We are currently integrating a CRM solution to use servlets hostet in Tomcat as their major means of communication with the backend-systems and as a the only source for business-rule validation. The communication between client and server uses XML-documents that are POSTed to Tomcat. We chose Tomcat simply because it is available as OSS. [price didn't count at all, the whole projects costs are 10 millions of USD, software-licenses beeing about 1 million USD] Tomcat will be running on a Sun Enterprise 1 and support ~ 1500 LAN users and ~ 400 WAN users in the first line. In the second line, we will communicate with Customer-Self-Service web-applications as well ... We managed to create a running prototype (starting with zero-knowledge, except for some "personal" java experience of three developers) within 3 weeks. This prototype exceeded our performance expecations by far ... we can handle more then 70 requests/sec on a small-range sun enterprise (i think a 450). No memory leaks, no performance decrease on higher loads ... GREAT SOFTWARE! Starting with tomorrow, 6 developers will take the project and implement the needed business-rule-logic until march when we will go into production. keep up the good work, I'll keep you informed ;) bye, Ingo [sorry ... mustn't tell you the customer's name] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to run servlet in tomcat
Ok Then in Kiran should have following structure \webapps\kiran \src(new directory-dir)Copy ur *.java files \index.html (ur *.html file) \WEB-INF(dir) \web.xml \classes(dir) Copy all ur *.class files. Now open ur web.xml create servlet alias and servlet class. For more info. go through document web application development in the index.html file cheers Venkatesh dsd dsd wrote: Hello I created directory called kiran in D:/tomcat/jakarta-tomcat/webapps/ . I have set the context path in /conf/server.xml I have kept both source and class file in /kiran directory now tell me how to execute this servlet file how to use web.xml file please assist me with example with regards kiran __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Syntax and Performance
In terms of performance, little difference is caused by splitting scriptlets (perhaps the extra print noted below. However, this may be a typo on your part, but %! String hostname;% declares an *instance* variable "hostname". While this assignment: % hostname= request.getParameter("Host"); % happens in the _jspService method. Essentially the hostname variable is not thread safe. When accessing the hostname value, you will have a race condition if the JSP does not implement SingleThreadModel. [EMAIL PROTECTED] on 22/01/2001 18:31:49 Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Ken X Horn) Subject: RE: Syntax and Performance I think it will generate a out.print("\n"); that is unecesary. Why don't you look at the generated code? Bye, Gaston - Original Message - From: Hobson, Don To: '[EMAIL PROTECTED]' Sent: Monday, January 22, 2001 2:36 PM Subject: Syntax and Performance Is there any reason that I should not do this: %! String hostname;% % hostname= request.getParameter("Host"); % Does the compiler have to do any extra work? Should I combine them? I think it will generate a out.print("\n"); that is unecesary. Why don't you look at the generated code? Bye, Gaston - Original Message - From: Hobson, Don To: '[EMAIL PROTECTED]' Sent: Monday, January 22, 2001 2:36 PM Subject: Syntax and Performance Is there any reason that I should not do this: %! String hostname;%% hostname = request.getParameter("Host"); % Does the compilerhave to do any extra work? Should I combine them? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
NT tomcat
Hi All, In tomcat for NT can i use java beans please give me reply.
Re: NT tomcat
of course!!! You can place them in the WEB-INF/classes directory and use from the jsp pages Bye Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932474 Fax 0521/989045 [EMAIL PROTECTED] --- http://www.delfi.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Illeagal Argument Exception - Cookies -JSP Page
I am developing a small Demo WAP Application. My WML page is generated by the following JSP Page. My JSP Page ?xml version="1.0"? !DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd" %@ page import="javax.servlet.http.HttpSession" % %@ page language="java" % %@ page contentType="text/vnd.wap.wml;charset=ISO-8859-1" % wml !-- THIS IS THE FIRST CARD IN THE DECK -- card id="Card1" title="Welcome" p align="center" img src="Yantrilogo.wbmp" alt="Can not display Image"/br/ bbigWelcome/big/b br/(c) Yantri Enterprise Solutions Pvt Ltd do type="accept" label="Login" go href="#auth"/ /do /p /card !-- user authentication card -- card id="auth" title="Authentication" p align="center"User Authentication/p p align="left" fieldset id="fs1" title="name" login input name="login" type="text"/ password input name="pwd" type="password"/ do type="accept" go href="validateUser.jsp?lname=$(login)#38;passwd=$(pwd)#38"/ /do /fieldset /p /card /wml Problem: When i execute the page, the JSESSIONID=190383948 is being set. This inturn stops further executing any JSP page. I just don't understand why this? And it is important before it was working fine, and i don't understand what is the mistaike i did. Env: Wap Browser - WInWAP Pro 3.0 Tomcat Web Server Please kindly some one help me in getting out of this problem. Note: Actually, i didnot mention anywhre/ no code is written to set the cookie or session. How come this happen suudenly?!!! Errorr Looklike: Context log: path="/examples" bInternal Servlet Error:/bbr pre java.lang.IllegalArgumentException: Cookie name Path is a reserved token at javax.servlet.http.Cookie.init(Cookie.java:185) at org.apache.tomcat.util.RequestUtil.processCookies(RequestUtil.java:187) at org.apache.tomcat.core.RequestImpl.getCookies(RequestImpl.java:379) at org.apache.tomcat.request.SessionInterceptor.requestMap(SessionInterceptor.java:101) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:552) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Unknown Source) /pre Thanks in advance kalaiselvan software engineer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat lisence
Hi All, Tomcat has nay lisence or it is free from the tomcat site.
SV: tomcat lisence
Affan Alim wrote Hi All, Tomcat has nay lisence or it is free from the tomcat site. Both, actually. Tomcat is released under the Apache Software License (http://www.apache.org/LICENSE-1.1.txt) I believe. This license (among other stuff) grants you free-of-charge download and use. Correct me if I'm wrong. Cato Frrisdahl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
beans problem
Hi All, Please tell me how i will make .class to .jar i am new in java.
Re: beans problem
Hi Affan, A .jar file is an [J]ava [AR]chive file, similar to zip file. You should find the utility jar.exe in your jdk distribution in the bin directory. Type JAR on its own and you will get help on the command. You will need to use jar -c to make a new jar archive. Steve On Tue, 23 Jan 2001, Affan Alim wrote: Hi All, Please tell me how i will make .class to .jar i am new in java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Session creation speed
Im having problems with creating sessions with a servlet in tomcat. When the getSession line is reached in the code it freezes for around 9-10 seconds before returning a session, leading the user to think theyre not going to get anything back... This only seems to be the case with new sessions being created; - once the session is established, future access to the servlet is an acceptable speed for the duration of that client's session. Im testing it with netscape 4.71/linux and a standalone tomcat server... Anyone else had this problem? -- Steve Smale [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: beans problem
Hi Smale, Thanks. - Original Message - From: Steve Smale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 11:02 AM Subject: Re: beans problem Hi Affan, A .jar file is an [J]ava [AR]chive file, similar to zip file. You should find the utility jar.exe in your jdk distribution in the bin directory. Type JAR on its own and you will get help on the command. You will need to use jar -c to make a new jar archive. Steve On Tue, 23 Jan 2001, Affan Alim wrote: Hi All, Please tell me how i will make .class to .jar i am new in java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Any way to add a directory for class loading?
Hello. I was wondering if there is any way to specify an additional directory that Tomcat should use for class loading, say perhaps outside of the web app directory structure? Kind regards, Stefan p.s. I'm using EmbededTomcat so I would appreciate if someone could tell me if that was possible using that. Otherwise I would like to know if it's possible in server.xml or even (and probably best of all) web.xml. Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session creation speed
When the getSession line is reached in the code it freezes for around 9-10 seconds before returning a session, leading the user to think theyre not going to get anything back... That's because of the secure random number generator that's used to create the session ID - it takes quite some time to initialize. You could try adding -dtomcat.sessionid.randomclass=java.util.Random to the JVM's command line (i.e. add the above string to TOMCAT_OPTS) which makes Tomcat use the standard JAVA random number generator... I guess they're using the SecureRandom generator because it'll make guessing the next session ID harder based on the current one, but I think that that's not needed for development purposes, especially with that speed hit incurred by using the SecureRandom generator... Hope this helps. np: Flanger - Stepping Out Of My Dream (Midnight Sound) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Form based authentication and JDBC Realm with Interbase
Hi I'am try to get form based authentication working with jBoss/Tomcat and interbase 5.6 but I'am getting the following error. Interbase is working fine for the CMP and code and general setup works fine with mySQL (our other trial database). It looks to me like the param being setup for the query by PreparedStatement.setString is Null and hence the error Version used Interclient 1.6 jBoss 2.0 Final Tomcat 3.2 Win 2000 2001-01-23 10:23:17 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT USER_PASS FROM USERS WHERE USER_NAME = ? 2001-01-23 10:23:18 - Ctx( /war ): Exception in: R( /war + /member/test.jsp + null) - java.lang.NullPointerException at interbase.interclient.PreparedStatement.setString(Unknown Source) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:306) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:480) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java, Compiled Code) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:501) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78 9) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Anybody got any ideas Thanks in advance Nigel Nigel Stirzaker Software Consultant SSA Softwright (01753) 811833 Ext 265 [EMAIL PROTECTED] www.Softwright.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session creation speed
Thanks for that, its steaming along at a good ol' speed now! What is to gain by using the secure random generator? On Tue, 23 Jan 2001 [EMAIL PROTECTED] wrote: You could try adding -dtomcat.sessionid.randomclass=java.util.Random to the JVM's command line Sorry, make that -Dtomcat.sessionid.randomclass=java.util.Random (notice the capital D...) np: Flanger - Stepping Out Of My Dream (Midnight Sound) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Steve Smale [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session creation speed
On Tue, 23 Jan 2001, Steve Smale wrote: | | Thanks for that, its steaming along at a good ol' speed now! | | What is to gain by using the secure random generator? I guess it's more secure?! It initializes a better random number generator, which isn't that predictable. If you can predict a session cookie, you don't have any client security anymore. Another person can supply that id, and place an order or whatever as that user. It's only the first hit after a restart that gets the problem. Just try to make a new session (with another browser), and you'll see that it's not slow anymore. -- Mvh, Endre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Form based authentication and JDBC Realm with Interbase
Please post your server.xml JDBRealm config, to have a look at it.. Saludos , Ignacio J. Ortega -Mensaje original- De: Nigel Stirzaker [mailto:[EMAIL PROTECTED]] Enviado el: martes 23 de enero de 2001 12:41 Para: '[EMAIL PROTECTED]' Asunto: Form based authentication and JDBC Realm with Interbase Hi I'am try to get form based authentication working with jBoss/Tomcat and interbase 5.6 but I'am getting the following error. Interbase is working fine for the CMP and code and general setup works fine with mySQL (our other trial database). It looks to me like the param being setup for the query by PreparedStatement.setString is Null and hence the error Version used Interclient 1.6 jBoss 2.0 Final Tomcat 3.2 Win 2000 2001-01-23 10:23:17 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT USER_PASS FROM USERS WHERE USER_NAME = ? 2001-01-23 10:23:18 - Ctx( /war ): Exception in: R( /war + /member/test.jsp + null) - java.lang.NullPointerException at interbase.interclient.PreparedStatement.setString(Unknown Source) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:306) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:480) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextMa nager.java, Compiled Code) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:501) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:78 9) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Anybody got any ideas Thanks in advance Nigel Nigel Stirzaker Software Consultant SSA Softwright (01753) 811833 Ext 265 [EMAIL PROTECTED] www.Softwright.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FW: Form based authentication and JDBC Realm with Interbase
Sorry to post this again but I was asked to include the relevant section of the server.xml file RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="interbase.interclient.Driver" connectionURL="jdbc:interbase://localhost:3060/D:/Development/DBs/authority. gdb" connectionName="sysdba" connectionPassword="masterkey" userTable="USERS" userNameCol="USER_NAME" userCredCol="USER_PASS" userRoleTable="USER_ROLES" roleNameCol="ROLE_NAME" / RequestInterceptor className="org.apache.tomcat.request.Jdk12Interceptor" debug="0" / Thanks Nigel -Original Message- From: Nigel Stirzaker Sent: Tuesday 23 January 2001 11:41 To: '[EMAIL PROTECTED]' Subject: Form based authentication and JDBC Realm with Interbase Hi I'am try to get form based authentication working with jBoss/Tomcat and interbase 5.6 but I'am getting the following error. Interbase is working fine for the CMP and code and general setup works fine with mySQL (our other trial database). It looks to me like the param being setup for the query by PreparedStatement.setString is Null and hence the error Version used Interclient 1.6 jBoss 2.0 Final Tomcat 3.2 Win 2000 2001-01-23 10:23:17 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT USER_PASS FROM USERS WHERE USER_NAME = ? 2001-01-23 10:23:18 - Ctx( /war ): Exception in: R( /war + /member/test.jsp + null) - java.lang.NullPointerException at interbase.interclient.PreparedStatement.setString(Unknown Source) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:306) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:480) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java, Compiled Code) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:501) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 789) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt pConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Anybody got any ideas Thanks in advance Nigel Nigel Stirzaker Software Consultant SSA Softwright (01753) 811833 Ext 265 [EMAIL PROTECTED] www.Softwright.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2: 500 error, what does it mean?
Hi, I have a servlet calles "xmlcpreove.prova1"; I copied it into webapps/examples/webinf/classes under a directory xmlcprove; i modified web.xml withan appropriate servletservlet-nameservlet-classxmlcprove.prova1/servlet-class/ servlet but when trying the servlet with http://davanzol1:8080/examples/servlet/prova1 I get the following page.. what does it mean? Error: 500 Location: /examples/servlet/prova1 Internal Servlet Error: java.lang.ClassCastException: xmlcprove.prova1 at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Form based authentication and JDBC Realm with Interbase
Thanks I've posted it onto the list. Here is a copy aswell RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="interbase.interclient.Driver" connectionURL="jdbc:interbase://localhost:3060/D:/Development/DBs/authority. gdb" connectionName="sysdba" connectionPassword="masterkey" userTable="USERS" userNameCol="USER_NAME" userCredCol="USER_PASS" userRoleTable="USER_ROLES" roleNameCol="ROLE_NAME" / RequestInterceptor className="org.apache.tomcat.request.Jdk12Interceptor" debug="0" / thanks Nigel Stirzaker Software Consultant SSA Softwright (01753) 811833 Ext 265 [EMAIL PROTECTED] www.Softwright.co.uk -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday 23 January 2001 12:07 To: '[EMAIL PROTECTED]' Subject: RE: Form based authentication and JDBC Realm with Interbase Please post your server.xml JDBRealm config, to have a look at it.. Saludos , Ignacio J. Ortega -Mensaje original- De: Nigel Stirzaker [mailto:[EMAIL PROTECTED]] Enviado el: martes 23 de enero de 2001 12:41 Para: '[EMAIL PROTECTED]' Asunto: Form based authentication and JDBC Realm with Interbase Hi I'am try to get form based authentication working with jBoss/Tomcat and interbase 5.6 but I'am getting the following error. Interbase is working fine for the CMP and code and general setup works fine with mySQL (our other trial database). It looks to me like the param being setup for the query by PreparedStatement.setString is Null and hence the error Version used Interclient 1.6 jBoss 2.0 Final Tomcat 3.2 Win 2000 2001-01-23 10:23:17 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT USER_PASS FROM USERS WHERE USER_NAME = ? 2001-01-23 10:23:18 - Ctx( /war ): Exception in: R( /war + /member/test.jsp + null) - java.lang.NullPointerException at interbase.interclient.PreparedStatement.setString(Unknown Source) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:306) at org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:480) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextMa nager.java, Compiled Code) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:501) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:78 9) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Anybody got any ideas Thanks in advance Nigel Nigel Stirzaker Software Consultant SSA Softwright (01753) 811833 Ext 265 [EMAIL PROTECTED] www.Softwright.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session creation speed
Note that this only happens for the very first session that is created after tomcat is started. All following session id's will be generated much faster, it's only the initialisation of the secure random number generator that takes a long time. The latest versions of tomcat (both the 3.x and 4.x versions) address this problem by initialising the generator when tomcat starts instead of waiting until the first session id is needed. I'm not sure this is already present in the release versions... You can use the simple java.util.Random class during development, but for production, you should use the SecureRandom class to prevent anyone from guessing your session id and taking over from another browser... Luc Vanlerberghe Steve Smale wrote: Im having problems with creating sessions with a servlet in tomcat. When the getSession line is reached in the code it freezes for around 9-10 seconds before returning a session, leading the user to think theyre not going to get anything back... This only seems to be the case with new sessions being created; - once the session is established, future access to the servlet is an acceptable speed for the duration of that client's session. Im testing it with netscape 4.71/linux and a standalone tomcat server... Anyone else had this problem? -- Steve Smale [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JNDI and Tomcat
I am using JNDI and RMI -- Has anyone used JNDI with Tomcat? Both Linux and NT give me difficulty. JNDI looks like my problem ... I have the jndi.properties files referred to in many classpathswhether it be automatic under the web app classes folder, etc. Thanks! Bob Robert Mulrenin SalzburgNewMediaLab Salzburg Research Forschungsgesellschaft m.b.H Jakob-Haringer-Strasse 5/III A-5020 Salzburg AUSTRIA phone: +43-662-2288-402 fax: +43-662-2288-222 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Invoking a servlet from JSP
I have a self-contained servlet that returns a single value. I am trying to include the output of this servlet in-line on an HTML/JSP page. When I try to invoke the servlet using the following JSP INCLUDE tag, the page bombs with Exception #500 (java.lang.IllegalStateException: Writer is already being used for this request): jsp:include page="/servlet/TestServlet" flush="true" jsp:param name="type" value="apples" / /jsp:include But when I use the JSP FORWARD tag, the servlet and page work perfectly, except for the fact that the page returned contains only the output of the servlet (as expected): jsp:forward page="/servlet/TestServlet" jsp:param name="type" value="apples" / /jsp:forward How can I accomplish what I need? BTW, I am using Tomcat 3.2.1. One solution I can think of is using the second option have the servlet forward back to the referrer jsp passing the answer value(s). The reason the include doesn't work is because in your servlet there is a call to getWriter() while the jsp page still has a handle on the JSPWriter. Another option might be replacing your servlet with a bean but I'm not sure about that. --- Michael Wentzel Software Developer Software As We Think http://www.aswethink.com mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I precompile JSP files for final Production use?
I don't want the files to be compiled at startup. I don't want them to ever have to be compiled once installed on the users machine. I want to compile them, package the .class files and ship my application. Has anyone tried this with success? I don't want to install the JDK on the users machine, as I assume I will have to. Just the JVM. You wouldn't have to install the JDK(or the JVM for that matter, unless you are running applets as well as servlets) on every users machine only the server that is running tomcat. The way JSP works is it is a server side technology (hence the Server in Java Server Pages). The servlet, or jsp, is run on the server and the HTML/XML/WML/... that is generated is then streamed down to the user who made the request. The compilation would only occur at server startup not at client startup. This would be relatively transparent to all users(might cause a slight bubble of time at server startup but it wouldn't be too significant and it would only be once). --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JNDI and Tomcat
Bob Mulrenin schrieb: I am using JNDI and RMI -- Has anyone used JNDI with Tomcat? Both Linux and NT give me difficulty. JNDI looks like my problem ... I have the jndi.properties files referred to in many classpathswhether it be automatic under the web app classes folder, etc. Thanks! Bob Hi Bob, I had a lot of problems with jndi and rmi. My first solution was to put all classes and properties into tomcat/lib/*.jar tomcat/classes BUT this destroys the separation of the different webapps. If you are using jdk1.2 or higher you can put the following into your server.xml copy_ RequestInterceptor className="org.apache.tomcat.request.Jdk12Interceptor" debug="0" / paste Now, every thread get the correct web application dependent classloader. Everything is fine, IF ALL jndi/rmi depending classes are located in the corresponding application dirs WEB-INF/classes WEB-INF/lib/*.jar I hope this helps. simon PS: I do not know if I have given a correct "general" solution or if I described the problem correctly. But a solution for this problem should be listed in some FAQ or in a user guide. I invested a lot of time to find a solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
jsp and servlets won't run
I have installed tomcat together with mod_jk to work with Apache 1.3.14 on Linux. Tomcat 3.2.1 and Apache both seem to start up fine and when I type in http://myhostname/examples I can see the example pages with the links to the examples. However the jsp and servlet examples do not run. No errors are shown in the tomcat log files but the apache log file error_log contains the following lines: ..[notice] Apache/1.3.14 (Unix) mod_jk configured -- resuming normal operations ..[notice] child pid 10764 exit signal Segmentation fault (11) The first line is generated on web server startup and the second line is generated whenever I try to run a JSP file. Can anyone help? Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: oracle driver problem Zip or Jar?
I developed a custom servlet that uses the oracle classes12.zip class file which works well with Jrun when I set the classpath. I am having problems running it on Tom Cat 3.2.1. It might be that the zip file is not recodnised. I looked for a download of a Jar file from oracle but could not find one. I unzipped the classes12.zip and the program worked but oviously this is not how it must work. How can I solve this problem or how can I get a Jar file? I am not even sure if this is the problem. Any help is appreciated. Thanks [EMAIL PROTECTED] 01/17/01 08:25PM Eric: I've never experienced that problem exactly, but you might need newer Oracle JDBC drivers. There is a classes12.jar which is what we use. Don't know if that will solve the problem, but it's worth a shot. And for what it's worth, there's a serious bug in the Oracle drivers. NEVER call Statement.setQueryTimeout() - If the query returns within the time set, the thread will go to sleep and become a zombie . .. banged my head against a wall for quite some time before I figured that one out. :) Good luck. Eric Weber wrote: Hi I try to get a BLOB from an oracle database and to save it to a file. From a small test program everything works fine. When I copy the code into a servlet I get a strange error from the database at the moment when I try to read the first byte on the InputStream: java.io.IOException: ORA-01013: user requested cancel of current operation at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java) at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java) at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java) at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java) at lib.download.service(download.java:60) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484) The JDBC connection works fine for Varchar and other "normal" data from the database. I saw in the archive that somebody had a similar problem, but I couldn't find any answer to the problem. I use Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01) and Oracle8i Enterprise Edition Release 8.1.5.0.0. with the thin driver(classes111.zip) from oracle. I use Tomcat 3.1. Does anybody have an idea about this problem? ERic -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** Any unauthorized use and interception of this e-mail is illegal. If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon the City of Cape Town unless the City of Cape Town subsequently confirms the content in writing non-electronically. This e-mail may be confidential, legally privileged or otherwise protected by law. Unauthorised disclosure or copying of any or all of it may be unlawful. If you receive this e-mail in error please notify the sender and delete the message ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I precompile JSP files for final Production use?
Michael, I don't want to install the JDK onto the server either. It is too big. When I install my app I will install Tomcat to use http as the transport mechanism. Is there a way around having to install the JDK at all? -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 7:03 AM To: '[EMAIL PROTECTED]' Subject: RE: How do I precompile JSP files for final Production use? I don't want the files to be compiled at startup. I don't want them to ever have to be compiled once installed on the users machine. I want to compile them, package the .class files and ship my application. Has anyone tried this with success? I don't want to install the JDK on the users machine, as I assume I will have to. Just the JVM. You wouldn't have to install the JDK(or the JVM for that matter, unless you are running applets as well as servlets) on every users machine only the server that is running tomcat. The way JSP works is it is a server side technology (hence the Server in Java Server Pages). The servlet, or jsp, is run on the server and the HTML/XML/WML/... that is generated is then streamed down to the user who made the request. The compilation would only occur at server startup not at client startup. This would be relatively transparent to all users(might cause a slight bubble of time at server startup but it wouldn't be too significant and it would only be once). --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I precompile JSP files for final Production use?
I don't want to install the JDK onto the server either. It is too big. When I install my app I will install Tomcat to use http as the transport mechanism. Is there a way around having to install the JDK at all? The other option is to compile the jsp's somewhere else and copy over the class files then set up a servlet mapping in your web.xml file. I haven't delt with this directly but I recall a couple of posts a while back in the list regarding this I believe try checking the archive. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Invoking a servlet from JSP
turn your servlet into a taglib or a javabean. I think you are using the wrong approach using a servlet like this. --Angus "Robert E. Baker" wrote: I have a self-contained servlet that returns a single value. I am trying to include the output of this servlet in-line on an HTML/JSP page. When I try to invoke the servlet using the following JSP INCLUDE tag, the page bombs with Exception #500 (java.lang.IllegalStateException: Writer is already being used for this request): jsp:include page="/servlet/TestServlet" flush="true" jsp:param name="type" value="apples" / /jsp:include But when I use the JSP FORWARD tag, the servlet and page work perfectly, except for the fact that the page returned contains only the output of the servlet (as expected): jsp:forward page="/servlet/TestServlet" jsp:param name="type" value="apples" / /jsp:forward How can I accomplish what I need? BTW, I am using Tomcat 3.2.1. Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
enctype=multipart/form-data problem
Hi I read here http://www.oop-reserch.com/tomcat_3_1_ext.html that JSP could NOT handle yet data posted by a form with the method POST and enctype="multipart/form-data". Is this true? At least when I tried it out under Tomcat 3.1. it did not work. Did anybody solve the problem? ERic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Single sign-on with Tomcat 3.21
Does anyone have any ideas about this very interesting question or the email with subject "How can I share Sessions between Contexts?" which is also the same question I think. Aron Kramlik. Frederic Kam-Thong wrote: The J2EE spec makes it clear that single sign-on for web-based applications should be supported (J2EE spec, section 3.4.1.1). The specification says: "It must be possible for one login session to span more than one application, allowing a user to log in once and access multiple applications." Is single sign-on supported by Tomcat 3.21? Frederic Kam-Thong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
startup class in Tomcat
Besides setting load-on-startup in the web.xml file, is there another way to have a startup class define in Tomcat? ( ie I want a class to run whenever Tomcat is started) Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Single sign-on with Tomcat 3.21
Does anyone have any ideas about this very interesting question or the email with subject "How can I share Sessions between Contexts?" which is also the same question I think. Aron Kramlik. Frederic Kam-Thong wrote: The J2EE spec makes it clear that single sign-on for web-based applications should be supported (J2EE spec, section 3.4.1.1). The specification says: "It must be possible for one login session to span more than one application, allowing a user to log in once and access multiple applications." Is single sign-on supported by Tomcat 3.21? Frederic Kam-Thong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: oracle driver problem Zip or Jar?
Ganasen Gounden wrote: I developed a custom servlet that uses the oracle classes12.zip class file which works well with Jrun when I set the classpath. I am having problems running it on Tom Cat 3.2.1. It might be that the zip file is not recodnised. I looked for a download of a Jar file from oracle but could not find one. I unzipped the classes12.zip and the program worked but oviously this is not how it must work. How can I solve this problem or how can I get a Jar file? Just rename the ZIP file to classes12.jar; ZIP and JAR are the same file format, just used for different things... :) -- Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Leak - Broken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: enctype=multipart/form-data problem
Check out the archive for more information about multipart requests. There have been several threads started. In short it is possible but haven't heard of anyone getting it done with jsp's but with servlets instead. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: startup class in Tomcat
Make a servlet which init() only calls the methods needed in your class. That way you extract the functionality to your class and the servlet is only a wrapper. In other words, create a new servlet that actually does nothing except in the init method it calls the necessary methods in your class. Regards Stefan -Original Message- From: William Au [mailto:[EMAIL PROTECTED]] Sent: 23. janar 2001 15:43 To: [EMAIL PROTECTED] Subject: Re: startup class in Tomcat The way I understand it, load-on-startup will only work on a servlet, and only the init() method is called. What I have now is a generic Java class. So I will have to convert it into a servlet and put most of the code inside init(). I was just trying to see if I can use my class as-is. Bill Michael Wentzel wrote: Besides setting load-on-startup in the web.xml file, is there another way to have a startup class define in Tomcat? ( ie I want a class to run whenever Tomcat is started) Sounds to me like load-on-startup is what you need... Is there some reason this does not fit your needs? --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Why doesn't build.sh work?? I followed the README
When I do ./build.sh, I get 'Command not found' (I have execute privelges on it) Any one know? Please help! Thanks.. I'm running Solaris. I untarred the jakarta-tomcat-3.2.1-src.tar file into /export/local/jakarta/jakarta-tomcat-3.2.1-src Following the README, I added to /export/local/jakarta : jakarta-ant jakarta-servletapijakarta-tools (all bin versions) and : setenv TOMCAT_HOME /export/local/jakarta/jakarta-tomcat-3.2.1-src setenv JAVA_HOME "/afs/glue.umd.edu/software/java/current/sys" setenv CLASSPATH /export/local/java/jaxp1.0.1: /export/local/java/jsse1.0.2/lib: /export/local/jakarta/jakarta-ant/lib: /export/local/jakarta/jakarta-servletapi/lib setenv JAKARTA_HOME /export/local/jakarta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Invoking a servlet from JSP
You can try using javax.servlet.RequestDispatcher or in the worst case you can open up a java.net.HttpURLConnection to the servlet and grab the returned data. I'm pretty sure that there is a struts taglib that will do the latter too. Troy -Original Message- From: Robert E. Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 5:46 PM To: [EMAIL PROTECTED] Subject: Invoking a servlet from JSP I have a self-contained servlet that returns a single value. I am trying to include the output of this servlet in-line on an HTML/JSP page. When I try to invoke the servlet using the following JSP INCLUDE tag, the page bombs with Exception #500 (java.lang.IllegalStateException: Writer is already being used for this request): jsp:include page="/servlet/TestServlet" flush="true" jsp:param name="type" value="apples" / /jsp:include But when I use the JSP FORWARD tag, the servlet and page work perfectly, except for the fact that the page returned contains only the output of the servlet (as expected): jsp:forward page="/servlet/TestServlet" jsp:param name="type" value="apples" / /jsp:forward How can I accomplish what I need? BTW, I am using Tomcat 3.2.1. Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
'Dir checksum error' untarring jakarta-tomcat-3.2.1-src.tar onSolaris .. ??
Same error untarring jakarta-tomcat-3.1.1-src.tar on Solaris. Anyone seen this? If I untar on Linux and retar then ftp to Solaris, I get the same error. Please help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem with classpath and .jar files
Hi, Yes, I create the directory struct in .jar. --- CPC Livelink Admin [EMAIL PROTECTED] escreveu: Did you create the jar with directories? -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:46 AM To: [EMAIL PROTECTED] Subject: RE: problem with classpath and .jar files I'm putting the .jar file into WEF-INF/classes/my.jar... I too try put the .jar into lib directory, but it's no work too... --- "Morahg, Yoav" [EMAIL PROTECTED] escreveu: ARe you putting the .jar in the lib directory as opposed to the classes directory? That's where it should go. -Yoav -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: 'Dir checksum error' untarring jakarta-tomcat-3.2.1-src.tar onSolaris .. ??
Tim Darling wrote: Same error untarring jakarta-tomcat-3.1.1-src.tar on Solaris. Anyone seen this? If I untar on Linux and retar then ftp to Solaris, I get the same error. Please help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Yes i have seen this and some people have answer to me few days ago (my message was posted Friday and had the subject "Corrupted files on Jakarta server ?") for the same problem. An answer was to use the GNU tar for decompressing on Solaris (not the sun tar). I haven't tried (and people who answered to me that they have the same problem aren't on Solaris) but perhaps you could try. Please feedback us. -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HOW TO ? Passing parameter to another page
Hello, I have a simple problem, in a JSP page I have for ... { td a href="queryShareDetails.jsp?key=" jsp:getProperty name="queryShare" property="MyPrimaryKey"/" jsp:getProperty name="queryShare" property="symbol"/ /a /td ... } I want to put a link with a dynamic parameter. Why ? - I have 2 page, the first one display a list on items and a list of links, theses links go to the second page a give me details on the selected item - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: help need
Affan Alim typed the following on 04:37 PM 1/23/2001 + Any body knows about the big diffrences between the tomcat server, Jrun and Java Web Server which is power full and why? Tomcat 3.x is (as I understand it) the replacement for Java Web Server - Sun joined with Apache to form Jakarta, which took the code to make Tomcat 3.0. I don't think it was ever much of an option for production use, more for learning. JRun is a closed source, commercial product from Allaire. I haven't heard anything truly horrible about it, so if you don't mind paying and then having to wait for a small commercial team to fix any bugs you find, it's fine. Tomcat 3.0 and 3.1 have not always had the best reputation, but 3.2.1 is newer and much more solid. I have no qualms about using it for a production site. If it's business critical for you, I recommend downloading Tomcat and a demo of JRun, try them out and see which works best for you. If it's not business critical, try Tomcat - it's free and good. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlets under /webapp/app_name/java ?
Hi All, What I should do for configure servlets directory other than /servlets for a new application? with regards, Aide P.D. Please tell me how I should do in web.xml and server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
response.sendRedirect() and NSAPI redirection...
Hello, All. I have a legacy web app running under iPlanet Web Server 4.1. I have configured the app to run under Tomcat 3.2 and it runs fine. Our app needs iPlanets additional speed in handling static content, though, so I configured iPlanet to use the NSAPI redirector. Everything seems to work fine except for response.sendRedirect(). Ordinarily we use a relative path as the argument to this method, but full paths seem to fail as well. Again, everything works fine under Tomcat alone (port 8080). When I use iPlanet and the NSAPI redirector (port 8082 its a testing configuration) things dont work. Thanks in advance, Dean Des Rosiers Digital Artisans, Inc.
RE: tomcat installation under win98
Daniel Aderhold wrote: Hello. I'm new to Tomcat. Hi, how nice. You have something to look forward to if you take the time to read a little bit. :) I want to run jsp pages and java servlets in my PC. I'm using Windows 98. That shouldn't be a problem at all. I'm confused about which file(s) I have to download from the jakarta.apache.org web site. I think I must download version 3.2.1. Downloading Tomcat 3.2.1 would be a nice idea. You should go for the .zip-file. The can anyone teel me how I must install them in my win98 system. If you download the Tomcat 3.2.1 zip-file and extract it to a folder you will find a doc-folder with the information you need. But beware - there's one tricky little thing which might confuse you, namely the limited environment-space in windows-shells. This results in some not-so-easy-to-figure-out errormessages when trying to start Tomcat the way the Tomcat documentations describes. You could, if you like, adjust the environment-space on your system and reboot and stuff, but there's a simpler way I learned earlier on this list. There's a Tomcat-launcher called JustGo you could get from http://www.geocities.com/jdrudnicki/ which makes starting Tomcat painless. Good Luck! Cato Frrisdahl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: 'Dir checksum error' untarring jakarta-tomcat-3.2.1-src.tar onSolaris .. ??
Using GNU tar will not give you any errors on Solaris. - Purav Tim Darling wrote: Same error untarring jakarta-tomcat-3.1.1-src.tar on Solaris. Anyone seen this? If I untar on Linux and retar then ftp to Solaris, I get the same error. Please help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Yes i have seen this and some people have answer to me few days ago (my message was posted Friday and had the subject "Corrupted files on Jakarta server ?") for the same problem. An answer was to use the GNU tar for decompressing on Solaris (not the sun tar). I haven't tried (and people who answered to me that they have the same problem aren't on Solaris) but perhaps you could try. Please feedback us. -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
passing an object using sessions - STRANGE???
Hi there, first allow me to apologize for the complexed description... :o) I am trying to pass an object using the HttpSession interface. my object is: class test { int num = 5; String str = "this is the string"; } I added the instance I created in the first JSP page to the session ( session.setattribute("atr") ), I made sure that session does exist when I enter the first JSP page. I linked this page to a servlet, created an instance of the HttpSession and tried to get the str/num of that class: HttpSession session = request.getSession(); test foo = (test)session.getAttribute("atr"); String lala = foo.str; out.println("sessionVar: " + lala); I get an error ("The page cannot be displayed") because of the third line (when I comment it, the servlet IS found and executed...). what is wrong??? Thanks in advance! David Treves. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How do I get jk_jnicb.o ?? ./build doesn't make it, I don'tthink
In src/native/jni_connect/ there's: Makefile.nw Makefile.solaris jk_jnicb.cjk_jnicb.exp jk_jnicb.hjni_connect.dsp jni_connect.dsw When I ./build, it doesn't seem to compile those files.. does anyone know where jk_jnicb.o is or how I can make it? Thanks again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Servlets under /webapp/app_name/java ?
A simple answer would be: place every servlet in your web.xml file, and apply a servlet mapping. You must do it for each one you have, but then it works (that's what I do). And also, you can skip those odd package names. Un saludo, Alex. web-app servlet servlet-name MyServlet /servlet-name servlet-class package.MyServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-name MyServlet /servlet-name url-pattern /MyServlet /url-pattern /servlet-mapping [...] /webapp "Aidee Angulo P." wrote: Hi All, What I should do for configure servlets directory other than /servlets for a new application? with regards, Aide P.D. Please tell me how I should do in web.xml and server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[TOMCAT] Spaces in directories / filenames
Hello, I am running Apache with Tomcat 3.1 under Linux. I just transferred a web-app that was working under Windows NT / Weblogic to Linux and I am having a problem with spaces in filenames. This is definitely happening only under the web-app directory (served by Tomcat). Here is my configuration in tomcat-apache.conf : Alias /flash /usr/local/drip/jakarta-tomcat-3.1/webapps/flash Directory "/usr/local/drip/jakarta-tomcat-3.1/webapps/flash" Options Indexes FollowSymLinks /Directory ApJServMount /flash/servlet /flash Location /flash/WEB-INF/ AllowOverride None deny from all /Location An example of a URL not properly served would be http://www.myserver.com/flash/music/Drip%20Joy/ ... Is there a configuration I can set or is this possibly fixed in Tomcat 3.2 ? Thanks, Daniel Wabyick Fluid, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Servlets under /webapp/app_name/java ?
Set up a servlet mapping in web.xml. As follows: servlet-mapping servlet-name NameHere /servlet-name url-pattern /example/NameToBeCalled /url-pattern /servlet-mapping here all requests to localhost/example/NameToBeCalled would be sent to the servlet defined in web.xml named NameHere. This has been discussed in the past on this list. It would cut down on traffic and save you time as well if you check the archives before posting messages because most topics have at least been mentioned on the list before. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A -Original Message- From: Aidee Angulo P. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:22 PM To: Tomcat Users Subject: Servlets under /webapp/app_name/java ? Importance: High Hi All, What I should do for configure servlets directory other than /servlets for a new application? with regards, Aide P.D. Please tell me how I should do in web.xml and server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk, j_security_check
Hi, I have a quick question. I am using form-based authentication, and was having a problem where Tomcat would see the ACTION="j_security_check" and try to load this page from the filesystem (which is not what I want, of course) I fixed this by doing: JkMount /path/to/the/login/form/j_security_check ajp13 in the mod_jk.conf. However, I have to do this for every location that I want to have a login form. This normally would not be a problem, but in my case, if a logged in user attempts to access a page they are not authorized to view, I serve them a 403.jsp which tells them they don't have access, and provides a login form right there on the page. Thus, there is a possibility that the login could take place in any directory on the system. Is there a way to "globally mount" j_security_check, perhaps with some wildcard usage that I am missing? Thanks, David -- David Haraburda - [EMAIL PROTECTED] Outsourcing Center - Providing Insight Into Outsourcing 972-980-0013 x736 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
sample JSP sites?
Hi I'm just learning JSP. I just installed linux 6.0 and I am going to put tomcat 3.2 on it. If anyone can post url to yout jsp sites links and a brief (or not) description on the site design it would be much appreciated! Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HOW TO ? Passing parameter to another page
SO what is your problem exactly?? Stefan
RE: passing an object using sessions - STRANGE???
Its probably because the String str is not public, only package access. Tomcat should have complianed and printed out the description of the error message to the web browser. If you have set up some error pages, you might want to comment them out until you get the pages compiling. Randy -Original Message- From: David Treves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:24 PM To: MAILING tomcat Subject: passing an object using sessions - STRANGE??? Hi there, first allow me to apologize for the complexed description... :o) I am trying to pass an object using the HttpSession interface. my object is: class test { int num = 5; String str = "this is the string"; } I added the instance I created in the first JSP page to the session ( session.setattribute("atr") ), I made sure that session does exist when I enter the first JSP page. I linked this page to a servlet, created an instance of the HttpSession and tried to get the str/num of that class: HttpSession session = request.getSession(); test foo = (test)session.getAttribute("atr"); String lala = foo.str; out.println("sessionVar: " + lala); I get an error ("The page cannot be displayed") because of the third line (when I comment it, the servlet IS found and executed...). what is wrong??? Thanks in advance! David Treves. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: passing an object using sessions - STRANGE???
What kind of error message do you get?? WIth a quick look at your code there is one thing that I can think of. The variable str has package visibility so if the servlet that gets generated by Tomcat is not part of the anonymouse package (or the package you specifiy) it has no right to access str in test. Try making str public and see what happens. STefan
Re: in other directory
i dont see howe to start tomcat form another directory., can you help me more? can you say me where is it? thansk Carlos - Original Message - From: "Grobe, Gary" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 10:35 PM Subject: RE: in other directory In the docs dir, read the tomcat-apache-howto.html, where you'll find a link to Tomcat User's Guide, then where it says "Starting Tomcat from Another Directory". It does a better job explaining than anything. -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: in other directory how can i say to tomcat that the webs home directory doesn't the /opt/tomcat/webapps/ROOT and is the /usr/local/httpd/htdocs directory? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem with classpath and .jar files
In winnt I placed .jar below of the /WEB-INF/classes/ and only configured in wrapper.properties classpath for .jar and the program functioned perfectly. I made this same configuration in redhat, but it did not work. Somebody knows which can be the cause of this? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: Sorry, but none that I know of. If I think of anything, I will let you know, but it was my understanding that it should just work without any extra tweaking... Good luck! [EMAIL PROTECTED] on 01/23/2001 11:05:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files Hi Jeffry, Is necessary some type of special configuration so that tomcat to find the class? Some thing as to configure worker.properties or wrapper.properties? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: The .jar should go directly in the WEB-INF/lib directory. [EMAIL PROTECTED] on 01/23/2001 10:36:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem with classpath and .jar files
.jars go in the WEB-INF/lib directory, not WEB-INF/classes. -Yoav -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: Re: problem with classpath and .jar files In winnt I placed .jar below of the /WEB-INF/classes/ and only configured in wrapper.properties classpath for .jar and the program functioned perfectly. I made this same configuration in redhat, but it did not work. Somebody knows which can be the cause of this? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: Sorry, but none that I know of. If I think of anything, I will let you know, but it was my understanding that it should just work without any extra tweaking... Good luck! [EMAIL PROTECTED] on 01/23/2001 11:05:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files Hi Jeffry, Is necessary some type of special configuration so that tomcat to find the class? Some thing as to configure worker.properties or wrapper.properties? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: The .jar should go directly in the WEB-INF/lib directory. [EMAIL PROTECTED] on 01/23/2001 10:36:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem with classpath and .jar files
You should be able to get this to work without touching the wrapper.properties file. You want to place the .jar file for your application will need in that application's WEB-INF/lib directory, not below the WEB-INF/classes directory. [EMAIL PROTECTED] on 01/23/2001 12:21:00 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files In winnt I placed .jar below of the /WEB-INF/classes/ and only configured in wrapper.properties classpath for .jar and the program functioned perfectly. I made this same configuration in redhat, but it did not work. Somebody knows which can be the cause of this? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: Sorry, but none that I know of. If I think of anything, I will let you know, but it was my understanding that it should just work without any extra tweaking... Good luck! [EMAIL PROTECTED] on 01/23/2001 11:05:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files Hi Jeffry, Is necessary some type of special configuration so that tomcat to find the class? Some thing as to configure worker.properties or wrapper.properties? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: The .jar should go directly in the WEB-INF/lib directory. [EMAIL PROTECTED] on 01/23/2001 10:36:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem with classpath and .jar files
I already tried to place .jars in /WEB-INF/lib, but this did not function... therefore I is trying to know if it is necessary to configure or worker.properties or wrapper.properties so that tomcat finds jars... --- "Morahg, Yoav" [EMAIL PROTECTED] escreveu: .jars go in the WEB-INF/lib directory, not WEB-INF/classes. -Yoav -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: Re: problem with classpath and .jar files In winnt I placed .jar below of the /WEB-INF/classes/ and only configured in wrapper.properties classpath for .jar and the program functioned perfectly. I made this same configuration in redhat, but it did not work. Somebody knows which can be the cause of this? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: Sorry, but none that I know of. If I think of anything, I will let you know, but it was my understanding that it should just work without any extra tweaking... Good luck! [EMAIL PROTECTED] on 01/23/2001 11:05:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files Hi Jeffry, Is necessary some type of special configuration so that tomcat to find the class? Some thing as to configure worker.properties or wrapper.properties? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: The .jar should go directly in the WEB-INF/lib directory. [EMAIL PROTECTED] on 01/23/2001 10:36:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: sample JSP sites?
Hi Richard, Try to visit this: http://www.xmlclassroom.com/lvista/index.jsp Aidee Richard Diaz wrote: Hi I'm just learning JSP. I just installed linux 6.0 and I am going to put tomcat 3.2 on it. If anyone can post url to yout jsp sites links and a brief (or not) description on the site design it would be much appreciated! Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Why doesn't build.sh work?? I followed the README
Hi Tim try sh build.sh that works on my system Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
WebApps and Sub-Projects
Title: WebApps and Sub-Projects We've got a J2EE project that like most is composed of multiple sub-projects, each sub-project being a fairly autonomous set of JSPs/Servlets/EJBs etc. but with some sharing of components across sub-projects (and a lot of linking between projects in the generated HTML code). Currently each sub-project is developed within its own web application, which makes it easy to test and deploy all on its lonesome. But for production purposes we like to deploy this as one big web-app. (Among other reasons, this minimizes the number of sessions floating about, and saves us trips to the data store to recreate session information.) To do this, we use a fairly complicated Ant script that can build each sub-project as an isolated web-app or build all of the web-apps as an integrated whole. This is workable but seems like a big hassle. It seems like there ought to be a better way. It occurs to me that others must have encountered similar problems with overlaying sub-projects onto what for all intents and purposes is a single web application, and I wonder what if any solutions you have come up with. If anyone has a more clever solution, or would like to compare notes, either on-list or off, I'd welcome your input. Thanks, - Rod Waldhoff
Re: Invoking a servlet from JSP
Do you have an example of this, or can you point me in the right direction? Bob -- From: Troy Landers [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: Re: Invoking a servlet from JSP Date: Tue, 23 Jan 2001 09:57:15 -0600 You can try using javax.servlet.RequestDispatcher or in the worst case you can open up a java.net.HttpURLConnection to the servlet and grab the returned data. I'm pretty sure that there is a struts taglib that will do the latter too. Troy -Original Message- From: Robert E. Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 5:46 PM To: [EMAIL PROTECTED] Subject: Invoking a servlet from JSP I have a self-contained servlet that returns a single value. I am trying to include the output of this servlet in-line on an HTML/JSP page. When I try to invoke the servlet using the following JSP INCLUDE tag, the page bombs with Exception #500 (java.lang.IllegalStateException: Writer is already being used for this request): jsp:include page="/servlet/TestServlet" flush="true" jsp:param name="type" value="apples" / /jsp:include But when I use the JSP FORWARD tag, the servlet and page work perfectly, except for the fact that the page returned contains only the output of the servlet (as expected): jsp:forward page="/servlet/TestServlet" jsp:param name="type" value="apples" / /jsp:forward How can I accomplish what I need? BTW, I am using Tomcat 3.2.1. Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
properties files and tomcat
Hi, I want to read a properties file like this : Properties.class.getResourceAsStream("my.properties"); This function should find the properties files when it's in the CLASSPATH. I have putted the properties file in the WEB-APPS dir ... anyone ? thanks ...Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
error building mod_jk for Suse Linux
in my Suse linux i have the jdk1.3 whe i got to comple the mod_jk from the jakarta3.2.1 source i make in the manual i read: i am in the apache1.3 directory and i make: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c *.c ../jk/*.c and it runs butr appear the follow error: ../jk/jk_jni_worker.c:67:jni.h:no surch file or direcotyr ../jk/jk_jni_worker.c:764 warning: #warning NO JAVA HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED . apxs Break command failed with rc=65536 how can i run it well? how can i create the mod_jk.so file? thanks Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: WebApps and Sub-Projects
Hi Rodney, isn't this a generic design issue, rather than a jakarta-apache issue? It sounds like the solution you want lies in modularizing your project design so that the lots of little apps have an identical framework as your target one big-app. So: --- application framework (for testing, front-end presentation, etc) - ||| subproject 1 subproject 2 subproject 3 The application framework can be compiled in one central place and distributed as binary code to the people doing the subprojects (shouldn't have any technical problem here since the point of Java is to be cross-platform). when you want to make you one big app, you don't have to do anything except plug your subprojects into the same framework instance. -Matt At 12:57 PM 1/23/01 -0600, you wrote: We've got a J2EE project that like most is composed of multiple sub-projects, each sub-project being a fairly autonomous set of JSPs/Servlets/EJBs etc. but with some sharing of components across sub-projects (and a lot of linking between projects in the generated HTML code). Currently each sub-project is developed within its own web application, which makes it easy to test and deploy all on its lonesome. But for production purposes we like to deploy this as one big web-app. (Among other reasons, this minimizes the number of sessions floating about, and saves us trips to the data store to recreate session information.) To do this, we use a fairly complicated Ant script that can build each sub-project as an isolated web-app or build all of the web-apps as an integrated whole. This is workable but seems like a big hassle. It seems like there ought to be a better way. It occurs to me that others must have encountered similar problems with overlaying sub-projects onto what for all intents and purposes is a single web application, and I wonder what if any solutions you have come up with. If anyone has a more clever solution, or would like to compare notes, either on-list or off, I'd welcome your input. Thanks, - Rod Waldhoff
RE: properties files and tomcat
The problem is that java.util.Properties is loaded by the system class loader, which knows nothing about the class loaders for the web-applications. You need to do something like: public MyClass { public loadProps() { MyClass.class.getResourceAsStream("my.props"); } } Then, as long as MyClass and my.props are loaded by the same class loader, the properties file will be found and loaded. Randy -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 2:24 PM To: [EMAIL PROTECTED] Subject: properties files and tomcat Hi, I want to read a properties file like this : Properties.class.getResourceAsStream("my.properties"); This function should find the properties files when it's in the CLASSPATH. I have putted the properties file in the WEB-APPS dir ... anyone ? thanks ...Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
org.apache.jasper.compiler.CompileException: Unable to convert a String to java.lang.Object for attribute name
Title: org.apache.jasper.compiler.CompileException: Unable to convert a String to java.lang.Object for attribute name Hi All, I am trying to use a JRun tag called form. I have already used JRun foreach tag from the same jar in the same browser and tomcat server, so those parts seem to work fine. I keep getting the error: org.apache.jasper.compiler.CompileException: C:\webdev\JRunFormTags.jsp(12,4) Unable to convert a String to java.lang.Object for attribute name with the form tag, even when typing in the example exactly as shown in the JRun taglib.pdf file on page 47. I have moved around the attribute names and values and reloaded fifty times at least. It always has an error on the first attribute of the form tag. Example html: !-- Import classes needed to support the JRun Tag Library -- %@ page import=java.lang.Object % %@ page import=java.lang.String % %@ page import=java.util.* % %@ page import=allaire.taglib.* % %@ taglib uri=JRunTaglib prefix=jrun % html body table trtd jrun:form action=processForm1.jsp name=vick input type=submit value=validate /jrun:form /td/tr /table /body /html Anyone else seen such a problem? Thanks much, Vick Fisher [EMAIL PROTECTED] Software Engineer TEOCO, Fairfax, VA
RE: properties files and tomcat
Actually, there are good reasons to NOT do it that way. You may not have access to the file system for one, or the property file may be embedded ina JAR file. Whereas if you use the getResourceAsStream you don't have thise problems. However, if you need to access an arbitrary file, using FileInputStream is the way to go. For general purpose properties file usage, I reccommend you stay with getResourceAsStream. It makes it easy to switch the properties files you use by just changing the classpath a little bit. And it allows you to have defaults buried deep in the class path which are overridden by the same named resource which occurs earlier in the classpath. Just my 2 cents. Regards, Paul -Original Message- From: Greg Schueler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: RE: properties files and tomcat You should do this: Properties myprops = new Properties(); myprops.load(new FileInputStream(new File("my.properties"))); if this doesn't seem to work, make sure that my.properites is in the right place, and/or qualify the new File() call. e.g. new File("d:\tomcat\webapps\myapp\my.properties"); The CLASSPATH is only for loading class files, and will not help you find the properties file. -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:24 AM To: [EMAIL PROTECTED] Subject: properties files and tomcat Hi, I want to read a properties file like this : Properties.class.getResourceAsStream("my.properties"); This function should find the properties files when it's in the CLASSPATH. I have putted the properties file in the WEB-APPS dir ... anyone ? thanks ...Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Invoking a servlet from JSP
"Robert E. Baker" wrote: I have a self-contained servlet that returns a single value. I am trying to include the output of this servlet in-line on an HTML/JSP page. When I try to invoke the servlet using the following JSP INCLUDE tag, the page bombs with Exception #500 (java.lang.IllegalStateException: Writer is already being used for this request): jsp:include page="/servlet/TestServlet" flush="true" jsp:param name="type" value="apples" / /jsp:include How does your servlet create its output? If the servlet calls response.getWriter(), this should work fine because it will use the same output writer that the JSP page is using. You should only hit this exception if your servlet tries to call response.getOutputStream() instead. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat lisence
ok...so if it is free, can it be used in a production environment that generates a profit? -- C. Jason Benedict - Original Message - From: "Ciot, Thierry" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 1:20 PM Subject: RE: tomcat lisence Yep it is free both in source and binary forms (see conditions below) Here is the license from the source code. Thierry /* * The Apache Software License, Version 1.1 * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowlegement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS 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 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * http://www.apache.org/. * */ -Original Message- From: Affan Alim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 4:50 AM To: [EMAIL PROTECTED] Subject: tomcat lisence Hi All, Tomcat has nay lisence or it is free from the tomcat site. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Invoking a servlet from JSP
Michael Wentzel wrote: Do you have an example of this, or can you point me in the right direction? The tomcat implementation is in src/org/apache/tomcat/core/RequestDispatcherImpl.java. Depending on what you need passed to the servlet(as long as you don't need the entire HttpSession for some reason), I still think that a bean is a better solution. FYI, the JSP engine uses a RequestDispatcher to implement the jsp:include and jsp:forward tags. Doing it yourself is not going to help matters if the includer and includee are trying to do two different kinds out output (by calling getWriter() versus getOutputStream()). Using a jsp:include is a perfectly reasonable solution if you want the output of the included servlet to be copied to the output page -- it's basically the same thing as doing server-side includes on static web pages. A bean or tag will work better when you want to process the output created by the called object before writing it to the response. IMHO --- Michael Wentzel Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat under win98
Hello. I'm new to Tomcat. Please can any one tell me exactly which file(s) I must download from jakarta web site. I want to run jsp pages and java servlets in my home computer with win98. How must I install them? Best regards, Daniel Aderhold
RE: properties files and tomcat
Hi Greg, You can use the CLASSPATH to load properties files ... Properties p = new Properties(); java.io.InputStream is; is = getClass().getResourceAsStream("rnb.properties"); if (is == null) throw new Exception("Properties file not found"); p.load(is); This works fine ! greetz, christoph -Original Message- From: Greg Schueler [mailto:[EMAIL PROTECTED]] Sent: dinsdag 23 januari 2001 21:18 To: [EMAIL PROTECTED] Subject: RE: properties files and tomcat You should do this: Properties myprops = new Properties(); myprops.load(new FileInputStream(new File("my.properties"))); if this doesn't seem to work, make sure that my.properites is in the right place, and/or qualify the new File() call. e.g. new File("d:\tomcat\webapps\myapp\my.properties"); The CLASSPATH is only for loading class files, and will not help you find the properties file. -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:24 AM To: [EMAIL PROTECTED] Subject: properties files and tomcat Hi, I want to read a properties file like this : Properties.class.getResourceAsStream("my.properties"); This function should find the properties files when it's in the CLASSPATH. I have putted the properties file in the WEB-APPS dir ... anyone ? thanks ...Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: WebApps and Sub-Projects
Waldhoff, Rodney typed the following on 12:57 PM 1/23/2001 -0600 It occurs to me that others must have encountered similar problems with overlaying sub-projects onto what for all intents and purposes is a single web application, and I wonder what if any solutions you have come up with. If anyone has a more clever solution, or would like to compare notes, either on-list or off, I'd welcome your input. I think this is a pretty standard problem regardless of the particulars of webapps, etc. Are you using CVS or something similar? It's a good idea for all of the developers to be able to build their own copy of the project and make sure their own changes integrate well before they check it in. Very frequent build-test runs (daily if possible) are also good. The key is to make sure the integration of everbody's work happens soon and often, rather than waiting until the week before the deadline. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: jsp:getProperty... error in scriptlets
I'm sorry but I made a small mistake the import tag is not irrelevant. What I meant is that it doesn't concern the class attribute. Stefan
RE: database question
If you can get an ODBC Driver to the target database, then you can use access to export (File Menu then Export) the entire DB using an ODBC connection. I have dones this for Oracle once. -Original Message- From: Richard Diaz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 4:22 PM To: [EMAIL PROTECTED] Subject: database question I have an access database created with relationships and some data. Are there tools to read an access database and create SQL scripts to create the equivalent in an SQL database (like MySql) ? thanks, Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: database question
this is a common question from Access users wanting to convert to some other db, and the Microsoft answer is that the Access file format is proprietary and therefore if MS doesn't provide a conversion program (which they don't), then you're out of luck. The solution then is to write some VB that will dump the DB data to a file in a format that can be imported by the target DB. As for creating tables, relationships, etc, that's another place you'll have to write code to output a script for creating the db objects. If you have very long text strings or binary objects in your Access db, this could be a major pain. If you don't, it should be pretty straightforward. Regards -Matt At 01:21 PM 1/23/01 -0800, you wrote: I have an access database created with relationships and some data. Are there tools to read an access database and create SQL scripts to create the equivalent in an SQL database (like MySql) ? thanks, Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Possible isapi bug.
I've noticed that if I edit my uriworkermap.properties file, shut down IIS and then restart IIS the changes I've made to the uriworkermap.properties file are not taken into account. In order to get the changes to take place, I have to reboot. Is it possible that the isapi dll is not being unloaded between shutdown and startup of IIS? System: NT 4.0 service pack 6, IIS 4, 160Meg RAM, plenty of HDD space. Craig. -- I've been trying to change the world for years, but they just won't give me the source code begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: startup class in Tomcat
William Au wrote: Besides setting load-on-startup in the web.xml file, is there another way to have a startup class define in Tomcat? ( ie I want a class to run whenever Tomcat is started) Tomcat 4.0 implements the new "application events" feature of the Servlet 2.3 (Proposed Final Draft) spec. Among the events you can register listeners for are application startup and shutdown -- perfect places to do things like opening and closing database connections, independent of the lifecycle of an individual servlet. Bill Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Single sign-on with Tomcat 3.21
Frederic Kam-Thong wrote: The J2EE spec makes it clear that single sign-on for web-based applications should be supported (J2EE spec, section 3.4.1.1). The specification says: "It must be possible for one login session to span more than one application, allowing a user to log in once and access multiple applications." Is single sign-on supported by Tomcat 3.21? Not in the sense that the spec talks about. You can share a "realm" of users and passwords across webapps in Tomcat 3.2.1, but you have to authenticate yourself to each webapp individually. Tomcat 4.0 supports the single signon feature (within a virtual host), as follows: the first time you access a protected resource, you are asked to authenticate yourself. Now, you can go access protected pages in all the other related webapps without having to sign in again. Frederic Kam-Thong Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Which JVM for Tomcat?
I'm getting ready to install a JVM. Is it OK not to use Java2 with Tomcat (since that requires a 5+ meg download by the user) ? I am also Planning on using Expresso Tools. Which JVM works best with Apache Tomcat? Sun? IBM? thanks Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: properties files and tomcat
Christoph Rooms wrote: Hi Greg, You can use the CLASSPATH to load properties files ... Properties p = new Properties(); java.io.InputStream is; is = getClass().getResourceAsStream("rnb.properties"); if (is == null) throw new Exception("Properties file not found"); p.load(is); This works fine ! This approach works fine, and can be used to load properties files that are embedded in your WEB-INF/classes directory, or inside a JAR file inside WEB-INF/lib (or anywhere on the classpath for Tomcat). There is an additional option that can read any static resource in your WAR file. For example, you can read the "web.xml" file like this: InputStream is = getServletContext().getResourceAsStream("/WEB-INF/web.xml"); which will work even in servlet containers that run your application directly out of a WAR file (instead of an unpacked directory structure like Tomcat does). greetz, christoph Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat lisence
C. Jason Benedict typed the following on 03:50 PM 1/23/2001 -0600 ok...so if it is free, can it be used in a production environment that generates a profit? It is under the same license as the Apache web server, which is the most widely used web server on the Internet for commercial as well as non-commercial use. In other words, yes. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Cocoon and Tomcat
Greetings, I want to use Cocoon for XSL transforms with Tomcat. I'm fairly new to Tomcat and have read all available documentation (including the archives)on intalling Cocoon using Tomcat. Configuration: Win98, Tomcat3.2.1, Cocoon1.7.4 I have added all necessary Cocoon components to the Tomcat classpath (in tomcat.bat). I have created a context in which to test Cocoon and added its definition to the server.xml I have defined the Cocoon servlet and its mapping of *.xml extensions in my contexts respective web.xml. I have defined init parameters which initializes Cocoon using its cocoon.properties file I have added a copy of the cocoon.properties to the web-inf directory. Directory hierarchy and contents: c:\work\web\test\names.xml c:\work\web\test\names.xsl c:\work\web\test\web-inf\lib c:\work\web\test\web-inf\classes c:\work\web\test\web-inf\web.xml c:\work\web\test\web-inf\cocoon.properties web.xml excerpt with cocoon definition: servlet servlet-nameorg.apache.cocoon.Cocoon/servlet-name servlet-classorg.apache.cocoon.Cocoon/servlet-class init-param param-nameproperties/param-name param-value /test/cocoon.properties /param-value /init-param /servlet servlet-mapping servlet-nameorg.apache.cocoon.Cocoon/servlet-name url-pattern*.xml/url-pattern /servlet-mapping server.xml excerpt with context definition: Context path="/test" docBase="c:/work/web/test" debug="0" reloadable="true" trusted="false" /Context Each time I try and access names.xml( http://localhost:8080/test/names.xml ), I get a 404 error. I checked the log files, but nothing indicates that Cocoon generated an error. There is actually nothing to indicate Cocoon was even invoked. I can access other files in the same directory without any problems. I have defined and configured other servlets and they work as expected. My *.jsp files are served up as expected. If anyone can offer some advice on configuring and using Cocoon with Tomcat in Win98 environment, it would be greatly appreciated. Robert Taylor - Senior Developer MuleWork Technologies, L.L.C. [EMAIL PROTECTED] 770.891.9858 http://www.mulework.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tools.jar
Title: Tools.jar Hello there boys and Girls I have a license issue 1. Sun JDK's license is for non commercial or production use 2. For Production and commercial use they give the JRE 3. Tools.jar is a part of the JDK and is missing from the JRE 4. Tomcat needs Tools.jar for it's normal activity result : Cant put Tomcat on production or commercial use Any Solutions ? Eitan Golan MIS KAMOON 29 Bezalel St. Ramat Gan, 52521 ISRAEL +972 (3) 6129922 ext. 205 +972 (3) 6129923 Fax +972 (58) 638845 Mobile www.Kamoon.com
jdbc realm
If I have two different projects under the webapps dir and want each one to use a different data base, how can a do that? Seems that the jdbc realm stuff is in the conf/server.xml file that applies to all projects. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Which JVM for Tomcat?
You can use Java 2 with tomcat, because the JVM is running on the server, the user will not even know about it. But IBM JDK118 works nicely on linux/redhat 6.2 with tomcat 3.2.x. I am also using j2jdk1.3 from Sun. Both work fine. Cheers Jason Richard Diaz wrote: I'm getting ready to install a JVM. Is it OK not to use Java2 with Tomcat (since that requires a 5+ meg download by the user) ? I am also Planning on using Expresso Tools. Which JVM works best with Apache Tomcat? Sun? IBM? thanks Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: database question
ER/Win from Computer Associates will generate a schema for every database on the planet. It has round trip engineering too Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "Darrell Porter" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 3:13 PM Subject: RE: database question This might sound lame but... Microsoft Visio 2000 Enterprise has a tool which will analyze an existing database and output SQL. What specifically do you want to port it to? -Original Message- From: Richard Diaz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 3:22 PM To: [EMAIL PROTECTED] Subject: database question I have an access database created with relationships and some data. Are there tools to read an access database and create SQL scripts to create the equivalent in an SQL database (like MySql) ? thanks, Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: OFFTOPIC - jsp hosting sites
http://www.aoindustries.com Comes highly recommended from my friend who hosts a site there, Tomcat, mySQL. PostGres, plenty of bandwidth all for an amazing $30 a month. Damian -Original Message- From: Darrell Porter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 3:18 PM To: '[EMAIL PROTECTED]' Subject: RE: OFFTOPIC - jsp hosting sites http://www.webappcabaret.com/ I'm not affiliated but it has a 4-star ating so... -Original Message- From: DIEGO RODRIGO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 3:02 PM To: [EMAIL PROTECTED] Subject: OFFTOPIC - jsp hosting sites Hi, sorry for this off-topic posting. Anyone knows any *WORKING* jsp-enabled free hosting site ? thanks diego. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Which JVM for Tomcat?
Applets run on the client machine in the client VM. (and this VM is complete separate from the Tomcat VM that runs on the server) if you want to control the client VM you can use the Java Plug-In. take a look at http://java.sun.com/products/plugin Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "Richard Diaz" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:11 PM Subject: Re: Which JVM for Tomcat? Heh, didn't think about that. But what about APPLETS I create? I'll need to use Java 1 right? Can you install BOTH? I think I'd screw that up =( I have Linux 6.0, is that ok with Tomcat 3.2.x ? thanks! Rich You can use Java 2 with tomcat, because the JVM is running on the server, the user will not even know about it. But IBM JDK118 works nicely on linux/redhat 6.2 with tomcat 3.2.x. I am also using j2jdk1.3 from Sun. Both work fine. Cheers Jason Richard Diaz wrote: I'm getting ready to install a JVM. Is it OK not to use Java2 with Tomcat (since that requires a 5+ meg download by the user) ? I am also Planning on using Expresso Tools. Which JVM works best with Apache Tomcat? Sun? IBM? thanks Rich _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
newbie [apache/tomcat] question: what does AJP stand for?
howdy, i found a lot of info on ajpv12 vs ajpv13, for example, but nothing that explains the protocol in depth (including what it stands for). since it seems like the servlet container (e.g. tomcat) talks to the webserver adapter (e.g. mod_jk or mod_jserv) via ajp12 or ajp13 [and then the server adapter, in turn, communicates with the webserver (e.g. apache)]...does ajp stand for Apache-Java Protocol? if in fact it does stand for Apache-Java Protocol, then i guess that would make me MORE confused since i thought that part of the goal of mod_jk was to allow the servlet engine (tomcat) to deal with more types of webservers (IIS, iPlanet, etc.) by adding the jk libraries or something?!? any explanation plus links howtos or protocol specs, etc. would be much appreciated. thank you, tc P.S. why would you NOT run ajp13? what would be the downside? it seems like the "+'s" are: 1-better SSL support 2-faster...what are the "-'s"? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP 404 error with TOMCAT standalone
Hello, I need a little help here please. I just installed TOMCAT and use it as standalone. Problem is that examples of Servlets work fine but when I try example of JSP it gives me: Not Found (404)Original request: /examples/jsp/sessions/carts.jsp Not found request: /examples/jsp/sessions/carts.jsp Linux JDK 1.3 all .jsp file are present in the directory my server.xml has --- Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true" /Context . Host name="127.0.0.1" Context path="" docBase="webapps/ROOT" / Context path="/examples" docBase="webapps/examples" / /Host -- -- Oleg Timofeyev ReadySetNet [EMAIL PROTECTED] http://www.readysetnet.com Phone : 323 469 2000 Fax : 323 469 2155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: newbie [apache/tomcat] question: what does AJP stand for?
try to look around on the Jserv section of Apache.org the APJ protocol was originally built to bridge Apache and JServ. (hence the name and all the references AjpServMount etc) the protocol was then adapted and modified to work with Tomcat. the module/protocol goal now is to allow plugins for Netscape and IIS as well as Apache to talk to Tomcat. Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "sharkis j avatar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 4:39 PM Subject: newbie [apache/tomcat] question: what does "AJP" stand for? howdy, i found a lot of info on ajpv12 vs ajpv13, for example, but nothing that explains the protocol in depth (including what it stands for). since it seems like the servlet container (e.g. tomcat) talks to the webserver adapter (e.g. mod_jk or mod_jserv) via ajp12 or ajp13 [and then the server adapter, in turn, communicates with the webserver (e.g. apache)]...does ajp stand for Apache-Java Protocol? if in fact it does stand for Apache-Java Protocol, then i guess that would make me MORE confused since i thought that part of the goal of mod_jk was to allow the servlet engine (tomcat) to deal with more types of webservers (IIS, iPlanet, etc.) by adding the jk libraries or something?!? any explanation plus links howtos or protocol specs, etc. would be much appreciated. thank you, tc P.S. why would you NOT run ajp13? what would be the downside? it seems like the "+'s" are: 1-better SSL support 2-faster...what are the "-'s"? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]