Re: Apache2, Tomcat5 and mod_jk2 configuration problems
At 12:16 PM 24/06/2004 +0800, you wrote: Hi Ryan, I should have asked this earlier, but are you using the RPM version of Apache or compiling the source tarball ? I notice that your directory is /usr/local, which indicates that you are probably using the source tarball (for RH9 rpms, it would be /etc/httpd). If you are using the source tarball, there are a LOT of things that are different. I believe you are missing a package, hence the gdbm error. I cannot recall at the moment what the name of the package is -- can you do a search on rpmfind ? Another thing: apxs is located inside /usr/local/httpd-2.0.49 -- just do a find /usr/local/httpd-2.0.49 -name apxs to locate it. Did you do a Minimal install for Red Hat ? You will need to ensure that you have the necessary packages installed. See this for a short list : http://cymulacrum.net/writings/tomcat5/c875.html#JK2_INTEGRATION_SETUP You probably don't need apr and apr-util because you installed Apache from source. As promised, here are my notes on installing mod_jk2 with Apache 2.0.49 and Tomcat 5.0.25. This is under RedHat 9.0 and the paths and things are a straight cut and paste from my system here, so may not match up for all accounts. Key problem I had was the libraries, once that was figured out it was some minor typos in the configuration files, and then its all up and going now. Cheers, Ryan. Notes -- mod_jk2 (tomcat connector) Download mod_jk2 http://apache.ausgamers.com/jakarta/tomcat-connectors/jk2/source/jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz Check the http://apache.ausgamers.com/jakarta/tomcat-connectors/jk2/ page for information/status on mod_jk2 Uncompress the archive gzip -dc jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz | tar -xvf - Compile cd to /usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 ./configure --with-apxs2=/usr/local/httpd/bin/apxs --with-apr-lib=/usr/lib --with-tomcat-41=/usr/local/tomcat --with-java-home=/usr/java/jdk --with-jni edit ./server/apache2/Makefile Find the block -- ifdef APR_LIBDIR_LA JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt else JK_LDFLAGS=-lcrypt ${APR_LIBS} endif And change it to this: ifdef APR_LIBDIR_LA JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt else JK_LDFLAGS=-lcrypt ${APR_LIBS} JK_LDFLAGS=-lcrypt ${APR_LIBS} -L/usr/local/httpd-2.0.49/lib -laprutil-0 -lgdbm -ldb-4.0 -lexpat endif Note the extra LDFLAGS -- JK_LDFLAGS=-lcrypt ${APR_LIBS} -L/usr/local/httpd-2.0.49/lib -laprutil-0 -lgdbm -ldb-4.0 -lexpat To know what flags to add, run apu-config --link-ld --libs That will output something like -L/usr/lib -laprutil-0 -lgdbm -lexpat Then check the version of apu-config. I discovered that I had two versions. One in /usr/bin and another in /usr/local/httpd/bin/ /usr/bin/apu-config --link-ld --libs -L/usr/lib -laprutil-0 -lgdbm -lexpat /usr/local/httpd/bin/apu-config --link-ld --libs -L/usr/local/httpd/bin -laprutil-0 -lgdbm -ldb-4.2 -lexpat When I tried adding the -ldb-4.2 flag it didn't like it, so I did a bit of a search and tried -L/usr/local/httpd/bin -laprutil-0 -lgdbm -ldb-4.0 -lexpat instead which worked. (I think the path for db-4.2 may need to be added to my /etc/ld.so.conf file?) cd ../build/jk2/apache2 Run apxs /usr/local/httpd/bin/apxs -n jk2 -i mod_jk2.so Should see something like: [EMAIL PROTECTED] apache2]# /usr/local/httpd/bin/apxs -n jk2 -i mod_jk2.so /usr/local/httpd-2.0.49/build/instdso.sh SH_LIBTOOL='/usr/local/httpd-2.0.49/build/libtool' mod_jk2.so /usr/local/httpd-2.0.49/modules /usr/local/httpd-2.0.49/build/libtool --mode=install cp mod_jk2.so /usr/local/httpd-2.0.49/modules/ cp mod_jk2.so /usr/local/httpd-2.0.49/modules/mod_jk2.so Warning! dlname not found in /usr/local/httpd-2.0.49/modules/mod_jk2.so. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/local/httpd-2.0.49/modules/mod_jk2.so Copy the created share object modules to the apache module directory cp libjkjni.so
Re: Re: Message
Your file is attached. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Your archive
Please read the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.25 and windows 2003
I'm running Jonas, Tomcat, Enhydra and Jetty under win 2003 server and it works fine. - Original Message - From: zhicheng wang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 10:50 PM Subject: tomcat 5.0.25 and windows 2003 dear all does any one know if tomcat 5.0.25 runs on windows server 2003 smoothly? also if IIS also running (on different port), will they live in the same server well? thanks cheng = Best wishes Z C Wang ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat Inerconnection
[EMAIL PROTECTED] wrote: Hi, I need some help on Apache and TOmcat interconnectivity I have Apache1.3.19 and Tomcat4.1.24 running on two different machines. I need to run servlets. Can anyone help me on this subject. Any pointers for configuration using JK2 as I need to use loadbalancing See http://raibledesigns.com/tomcat/ for details on mod_jk. Mod_jk2 couldn't be that much different. -- Davor Cengija, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jspc
Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul.
Appending another XML to WEB.XML
Hi! I'm trying to solve a problem I have about a webapplication deployed on several tomcat servers, each one with its own configuration and database connection. Have I to modify manually all web.xml for adding new servlets or can I append to it another XML the way it was with old configuration files in apache? Otherwise, is it possible to tell tomcat (without having to patch it) to look for two configuration files? Thanks everybody Enrico Drusiani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't work
Tomcat 5 has been redesigned in several areas so it should is faster for many operations. If the changes cause tomcat to be much faster depends on your application and what you are looking at. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:48 AM To: [EMAIL PROTECTED] Subject: AW: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't wor k Could it be, that 5.0.25 is MUCH more faster than 4.1.27? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.25 and windows 2003
thanks --- Joao Medeiros [EMAIL PROTECTED] wrote: I'm running Tomcat 5.0.25 on 2003 with Apache and JK2 and it works fine --JM zhicheng wang wrote: dear all does any one know if tomcat 5.0.25 runs on windows server 2003 smoothly? also if IIS also running (on different port), will they live in the same server well? thanks cheng = Best wishes Z C Wang ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Best wishes Z C Wang ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: Re: tomcat 5.0.25 and windows 2003
If you going to integrate Tomcat with IIS 6.0 remember to put IIS into IIS 5.0 isolation mode. There are several documents describing the IIS-Tomcat integration process just Google for it! This one might be helpfull: http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html Best regards Thomas zhicheng wang [EMAIL PROTECTED] 24-06-2004 10:20 Besvar venligst til Tomcat Users List Til:Tomcat Users List [EMAIL PROTECTED] cc: Vedr.: Re: tomcat 5.0.25 and windows 2003 thanks --- Joao Medeiros [EMAIL PROTECTED] wrote: I'm running Tomcat 5.0.25 on 2003 with Apache and JK2 and it works fine --JM zhicheng wang wrote: dear all does any one know if tomcat 5.0.25 runs on windows server 2003 smoothly? also if IIS also running (on different port), will they live in the same server well? thanks cheng = Best wishes Z C Wang ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Best wishes Z C Wang ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT
Re: SingleSignOn
Hi Thomas, The reason you can't log off from the second app is that web apps can not talk to one another. Additionally, with the SingleSignOn feature when you leave a web app with out invalidating the session, it remains attached to the SingleSignOn session. The SingleSignOn session does not expire until all attached sessions are invalid. One solution is to set a time-out on the log in web app's session to something like 30 seconds once you authenticate the user and are about to move to the second web app: httpServletRequest.getSession().setMaxInactiveInterval(30); Once in the second web-app you must create a session otherwise when the log in session expires you will lose the SingleSignOn and the user will have to reauthenticate. Now when you invalidate the second web-apps session the SingleSignOn will be scrubbed. A better solution is web-sphere's extension to HttpSession, invalidateAll() which causes all sessions attached to the authenticated user to be invalidated. Sun suggested this in the original drafts for the servlet API version 2.4, but it didn't make the final draft. However, it is easy to implement in Tomcat. I haven't made the modification to the clusters as I don't use them in my set-up, but the code changes are as follows: -javax.servlet.http.HttpSession.java add the line: public void invalidateAll(); -org.apache.catalina.Session.java add the lines: public static final String INVALIDATE_ALL_SESSIONS = invalidateAllSessions; -org.apache.catalina.session.StandardSession.java add the lines: public void invalidateAll() { fireSessionEvent(Session.INVALIDATE_ALL_SESSIONS, null); } -org.apache.catalina.session.StandardSessionFacade.java add the lines: public void invalidateAll() { this.session.invalidateAll(); } -org.apache.catalina.cluster.session.DeltaSession.java add the lines: public void invalidateAll() { //not using clusters, but need to implement interface } -org.apache.catalina.cluster.session.DeltaSessionFacade.java add the lines: public void invalidateAll() { this.session.invalidateAll(); } -org.apache.catalina.cluster.session.ReplicatedSession.java add the lines: public void invalidateAll() { //not using clusters, but need to implement interface } -org.apache.catalina.authenticator.SingleSignOn.java in the method sessionEvent(SessionEvent event) add the lines: // Catch our event to destroy the single session sign on session and // all attached sessions log(Session event fired. Event type: + event.getType()); if (Session.INVALIDATE_ALL_SESSIONS.equals(event.getType())) { // Look up the single session id associated with this // session (if any) Session session = event.getSession(); if (debug = 1) { log(Destroying SSO Session: + session); } String ssoId = null; synchronized (reverse) { ssoId = (String) reverse.get(session); } if (ssoId == null) { log(Nothing to deregister); return; } deregister(ssoId); log(Deregistered.); } Hope this helps! -Mike Fowler I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with ServletFilter
Hello, I have a Problem with ServletFilters. I am using a CacheFilter originally from Jason Falkner. This CacheFilter wraps ServletWrapper and writes outpustream to a ByteArrayStream and finally this bytearraystream is written to disk. Installing has been very easy and FIlter is working. But: every page I tested (page size from 14k to 150k) is truncated. Truncation is already in the ByteArray. The JSP-Page originally contained include directives which I evetually removed but same result. I am using tomcat 4.1.29 and mod_jk and Apache 2.0 (same result with Apache 1.3) so any idea or any suggestion? -- Mit freundlichen Grüßen Dipl.Inform. Carsten Lex Geschäftsführer DeepWeb GmbH DeepWeb GmbH Universität, Gebäude 30 66123 Saarbrücken Tel.: 0681 - 302 6308 Mobil: 0163 - 33 37 002 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem passing a param to a servlet
Hi, I am trying to pass a parameter string of structure , tic=3,tac-4,toe=8 into a servlet like as follows: a href=/myservlet?strgame=tic=3,tac=4,toe=8 I had this working on a windowns platform before I realised I should have escaped the equals sign some way.Solaris platform tomcat threw a null pointer exception in handling this value for the parameter strhgame.Is there a way for the subsequent equals to be escaped so they can be seen as part of the value? Thanks, Kieran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat Inerconnection
Hello David, I have followed the steps defined on the web page but still I am facing following problem when Apache and Tomcat are on two different machines. Following are the excerpts from mod_jk.log file [Wed Jun 23 17:27:49 2004] [jk_ajp_common.c (874)]: Error connecting to the Tomcat process. [Wed Jun 23 17:27:49 2004] [jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop. err=1 [Wed Jun 23 17:27:49 2004] [jk_connect.c (132)]: Into jk_open_socket [Wed Jun 23 17:27:49 2004] [jk_connect.c (139)]: jk_open_socket, try to connect socket = 8 [Wed Jun 23 17:27:49 2004] [jk_connect.c (148)]: jk_open_socket, after connect ret = -1 [Wed Jun 23 17:27:49 2004] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 2 [Wed Jun 23 17:27:49 2004] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not st arted or is listenning on the wrong port. Failed errno = 2 But everything work properly if both Apache and Tomcat are on the same machine. -AB |-+ | | Davor Cengija| | | [EMAIL PROTECTED]| | | il.inet.hr | | | Sent by: news| | | [EMAIL PROTECTED]| | | rg | | || | || | | 06/24/2004 12:22 | | | PM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | |To: [EMAIL PROTECTED] | |cc: | |Subject: Re: Apache Tomcat Inerconnection | ---| [EMAIL PROTECTED] wrote: Hi, I need some help on Apache and TOmcat interconnectivity I have Apache1.3.19 and Tomcat4.1.24 running on two different machines. I need to run servlets. Can anyone help me on this subject. Any pointers for configuration using JK2 as I need to use loadbalancing See http://raibledesigns.com/tomcat/ for details on mod_jk. Mod_jk2 couldn't be that much different. -- Davor Cengija, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem passing a param to a servlet
Hi Kieran, use java.net.URLEncoder.encode(tic=3,tac-4,toe=8,UTF-8); to encode your parameters before writing to HTML when you receive Parameter then you have to use java.net.URLDecoder.decode(request.getParameter(strgame),UTF-8) Carsten Kieran Buckley (AT/LMI) wrote: Hi, I am trying to pass a parameter string of structure , tic=3,tac-4,toe=8 into a servlet like as follows: a href=/myservlet?strgame=tic=3,tac=4,toe=8 I had this working on a windowns platform before I realised I should have escaped the equals sign some way.Solaris platform tomcat threw a null pointer exception in handling this value for the parameter strhgame.Is there a way for the subsequent equals to be escaped so they can be seen as part of the value? Thanks, Kieran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Dipl.Inform. Carsten Lex Geschäftsführer DeepWeb GmbH DeepWeb GmbH Universität, Gebäude 30 66123 Saarbrücken Tel.: 0681 - 302 6308 Mobil: 0163 - 33 37 002 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem passing a param to a servlet
Thanks Carsten, I was afraid someone was going to say that. That href is being created as part of a pretty complex xsl sheet so assuming using URLEncoding/Decoding isn't an option, is there any other way to handle it?!!!ie.by special chars and/or escape chars?(think I've tried them all already but just in case).. Thanks again, Kieran -Original Message- From: Carsten Lex [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 11:34 To: Tomcat Users List Subject: Re: problem passing a param to a servlet Hi Kieran, use java.net.URLEncoder.encode(tic=3,tac-4,toe=8,UTF-8); to encode your parameters before writing to HTML when you receive Parameter then you have to use java.net.URLDecoder.decode(request.getParameter(strgame),UTF-8) Carsten Kieran Buckley (AT/LMI) wrote: Hi, I am trying to pass a parameter string of structure , tic=3,tac-4,toe=8 into a servlet like as follows: a href=/myservlet?strgame=tic=3,tac=4,toe=8 I had this working on a windowns platform before I realised I should have escaped the equals sign some way.Solaris platform tomcat threw a null pointer exception in handling this value for the parameter strhgame.Is there a way for the subsequent equals to be escaped so they can be seen as part of the value? Thanks, Kieran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Dipl.Inform. Carsten Lex Geschäftsführer DeepWeb GmbH DeepWeb GmbH Universität, Gebäude 30 66123 Saarbrücken Tel.: 0681 - 302 6308 Mobil: 0163 - 33 37 002 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question about user name and password to use
Hi, I have an very simple and maybe stupid question. What are the user names and passwords for the status tomcat administration and manager that i should use on the http://localhost:8080 page. Admin as user name and admin as password do not work. My tomcat_users.xml is on /usr/tomcat/jakarta-tomcat-5.0.25/conf and i use mandrake version 10.0 Thanks in advance, Selmar. !-- NOTE: By default, no user is included in the manager role required to operate the /manager web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. -- tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 / user name=admin password=admin roles=tomcat,role1,admin,manager/ /tomcat-usersssword=admin roles=tomcat,role1,admin,manager/ /tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sybase and Tomcat 5, Possible Problem
I use Sybase ASE12.5 along with Tomcat 5.0.24 I place the JConnect (jconn2d.jar) file in the %tomcathome%/common/lib directory. Sybase and Tomcat 5.0.24 can work together. I don't have my web.xml or root.xml (I use virtual hosting) here however I can provide them tomorrow once I am at work. Matt Anderson -Original Message- From: Jeff Sexton [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 1:40 AM To: [EMAIL PROTECTED] Subject: Sybase and Tomcat 5, Possible Problem After a lot of effort, I feel there may be some reason that the Sybase JConnect JDBC driver doesn't work in Tomcat 5.0.24 (I use Tomcat 4 for my Sybase driven apps quite a bit). The exception is: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null META-INF/context.xml is: Context path=/forteCommon docBase=forteCommon reloadable=true ResourceLink name=jdbc/odsdb03 global=jdbc/odsdb03 type=javax.sql.DataSource/ /Context From conf/server.xml contains: GlobalNamingResources Resource name=jdbc/odsdb03 auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/odsdb03 parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valueexcalibur/value /parameter parameter namepassword/name valuemypassword/value /parameter parameter namedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value /parameter parameter namedriverName/name valuejdbc:sybase:Tds:pdxax12:4100/value /parameter parameter nameurl/name valuejdbc:sybase:Tds:pdxax12:4100/value /parameter parameter namemaxActive/name value5/value /parameter /ResourceParams /GlobalNamingResources web.xml contains: web-app servlet servlet-name ProvCICS /servlet-name servlet-class com.ods.forte.cics.servlet.ProvCICS /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameProvCICS/servlet-name url-pattern/ProvCICS/url-pattern /servlet-mapping resource-ref descriptionodsdb03 Connection Pool/description res-ref-namejdbc/odsdb03/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app I have also tried working with the context placed in server.xml and with the Resource defined in the context, all combinations yield the same behavior. *Tomcat does actually log into the database server when it starts* I can see it from the database side. Therefore I know the jdbc jar file is loaded and the connection specification correct and working. In addition, the stack trace in catalina.out includes a point in Sybase code: Cannot create JDBC driver of class '' for connect URL 'null' java.lang.NullPointerException at com.sybase.jdbc2.jdbc.SybDriver.acceptsURL(SybDriver.java:197) at java.sql.DriverManager.getDriver(DriverManager.java:249) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:743) ... So can I conclude that the app is actually linked to the resource? If so then the problem seems to be that the information required somehow does not reach down the driver? Ideas? Should I rollback to TC 4x for awhile? -- The ODS Companies Jeff Sexton Information Services (503) 228-6554 x1026 http://www.odscompanies.com This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question about user name and password to use
You should be able to login into the admin web app by using the following details Goto http://localhost/admin (assuming the server is on your machine) - this is for the admin web application Goto http://localhost/manager/html (assuming the server is on your machine) - this is for the manager web application Username: admin Password: admin Keep bother your username and password all lower case as this is how they are defined in the tomcat_users.xml file. user name=admin password=admin roles=tomcat,role1,admin,manager/ Matt -Original Message- From: Selmar [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:21 PM To: [EMAIL PROTECTED] Subject: question about user name and password to use Hi, I have an very simple and maybe stupid question. What are the user names and passwords for the status tomcat administration and manager that i should use on the http://localhost:8080 page. Admin as user name and admin as password do not work. My tomcat_users.xml is on /usr/tomcat/jakarta-tomcat-5.0.25/conf and i use mandrake version 10.0 Thanks in advance, Selmar. !-- NOTE: By default, no user is included in the manager role required to operate the /manager web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. -- tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 / user name=admin password=admin roles=tomcat,role1,admin,manager/ /tomcat-usersssword=admin roles=tomcat,role1,admin,manager/ /tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I find out which version of tomcat is installed?
I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I find out which version of tomcat is installed?
Andrew Watters wrote: I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start Tomcat and go to the manager status web app. In the server information table with there is a Tomcat version column. On my box: http://localhost:8080/manager/status -- -Mike Fowler I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I find out which version of tomcat is installed?
Load the root index file. Usually you will get this by simply going to http://yourdomain.com:8080/ Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Andrew Watters [mailto:[EMAIL PROTECTED] :: Sent: Thursday, June 24, 2004 1:42 PM :: To: [EMAIL PROTECTED] :: Subject: How do I find out which version of tomcat is installed? :: :: I have full access to the tomcat directory but I can't find the version :: number in any of the files. It's probably somewhere obvious but I just :: can't see it. :: :: Please help... :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I find out which version of tomcat is installed?
Thanks for your help, unfortunately in this case the manager app isn't there and the default 404 page which I know shows the version number isn't returned because the running application interecepts and shows its own page. Mike Fowler wrote: Andrew Watters wrote: I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start Tomcat and go to the manager status web app. In the server information table with there is a Tomcat version column. On my box: http://localhost:8080/manager/status - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I find out which version of tomcat is installed?
Thanks for your reply, unfortunately the root index file has long since been deleted. Schalk wrote: Load the root index file. Usually you will get this by simply going to http://yourdomain.com:8080/ Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Andrew Watters [mailto:[EMAIL PROTECTED] :: Sent: Thursday, June 24, 2004 1:42 PM :: To: [EMAIL PROTECTED] :: Subject: How do I find out which version of tomcat is installed? :: :: I have full access to the tomcat directory but I can't find the version :: number in any of the files. It's probably somewhere obvious but I just :: can't see it. :: :: Please help... :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I find out which version of tomcat is installed?
Hi, 1. Install tomcat 2. go to installation path 3. enter the server/lib directory 4. unzip the catalina.jar file 5. in the directory resulted, go to org\apache\catalina\util 6. ServerInfo.properties has what you're looking for. /EC -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: How do I find out which version of tomcat is installed? I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I find out which version of tomcat is installed?
Excellent, thanks very much. Not quite as intuitive as I expected... Cocalea, Eugen wrote: Hi, 1. Install tomcat 2. go to installation path 3. enter the server/lib directory 4. unzip the catalina.jar file 5. in the directory resulted, go to org\apache\catalina\util 6. ServerInfo.properties has what you're looking for. /EC -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: How do I find out which version of tomcat is installed? I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not compiles my .jsp!
I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David Cyberjobe wrote: Well, this is my new index.jsp file: HTML BODY Hi! /BODY /HTML And this the same error message (complete now): ... HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:519) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause java.io.FileNotFoundException: /usr/local/jakarta-tomcat-5.0.25/work/Catalina/l ocalhost/jsp1/org/apache/jsp/index_jsp.java java.io.FileOutputStream.open(Native Method) java.io.FileOutputStream.init(FileOutputStream.java:176) java.io.FileOutputStream.init(FileOutputStream.java:70) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188) org.apache.jasper.compiler.Compiler.compile(Compiler.java:461) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) ... My server is on Linux and I create a tomcat user to run it. What may be wrong? Thanks, Cyberjobe - Original Message - From: Jérôme Duval [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 5:38 PM Subject: RE: Tomcat does not compiles my .jsp! Corrected a stupid mistake: You probably have an error in you jsp file. To test this write a normal html file with a jsp extension. If you aren't familiar with html, just go to any website and copy the source of the page and use that... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with ServletFilter
At 11:30 AM 6/24/2004 +0200, you wrote: Hello, I have a Problem with ServletFilters. I am using a CacheFilter originally from Jason Falkner. This CacheFilter wraps ServletWrapper and writes outpustream to a ByteArrayStream and finally this bytearraystream is written to disk. Installing has been very easy and FIlter is working. But: every page I tested (page size from 14k to 150k) is truncated. Truncation is already in the ByteArray. Are you flushing the writer in the wrapper? Hmm... Dont' have time to go into details. I'll just past a useful working wrapper and helper class here... package com.acme.servlet.filter; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponseWrapper; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintWriter; public class GenericResponseWrapper extends HttpServletResponseWrapper { private ByteArrayOutputStream output; private PrintWriter writer; private int origStatus = 0; private int contentLength = 0; private String contentType; public GenericResponseWrapper(HttpServletResponse response) { super(response); output = new ByteArrayOutputStream(); } public byte[] toByteArray() { if (writer != null) writer.flush(); return output.toByteArray(); } public String toString() { if (writer != null) writer.flush(); return output.toString(); } public ServletOutputStream getOutputStream() { return new FilterServletOutputStream(output); } public PrintWriter getWriter() { writer = new PrintWriter(getOutputStream(), true); return writer; } public void sendError(int sc) throws IOException { super.sendError(sc); this.origStatus = sc; } public void sendError(int sc, String message) throws IOException { super.sendError(sc, message); this.origStatus = sc; } public int getStatus() { return this.origStatus; } public void setContentLength(int length) { this.contentLength = length; super.setContentLength(length); } public int getContentLength() { return this.contentLength; } public void setContentType(String type) { this.contentType = type; super.setContentType(type); } public String getContentType() { return this.contentType; } } package com.acme.servlet.filter; import javax.servlet.ServletOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; public class FilterServletOutputStream extends ServletOutputStream { private DataOutputStream stream = null; public FilterServletOutputStream(OutputStream output) { stream = new DataOutputStream(output); } public void write(int b) throws IOException { stream.write(b); } public void write(byte[] b) throws IOException { stream.write(b); } public void write(byte[] b, int off, int len) throws IOException { stream.write(b, off, len); } } Jake The JSP-Page originally contained include directives which I evetually removed but same result. I am using tomcat 4.1.29 and mod_jk and Apache 2.0 (same result with Apache 1.3) so any idea or any suggestion? -- Mit freundlichen Grüßen Dipl.Inform. Carsten Lex Geschäftsführer DeepWeb GmbH DeepWeb GmbH Universität, Gebäude 30 66123 Saarbrücken Tel.: 0681 - 302 6308 Mobil: 0163 - 33 37 002 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I find out which version of tomcat is installed?
It is also listed when Tomcat starts up. Either in your command window or log file. On Thu, 24 Jun 2004 13:17:07 +0100, Andrew Watters [EMAIL PROTECTED] wrote: Excellent, thanks very much. Not quite as intuitive as I expected... Cocalea, Eugen wrote: Hi, 1. Install tomcat 2. go to installation path 3. enter the server/lib directory 4. unzip the catalina.jar file 5. in the directory resulted, go to org\apache\catalina\util 6. ServerInfo.properties has what you're looking for. /EC -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: How do I find out which version of tomcat is installed? I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with ServletFilter
Hi Jake, flushing the writer solved the problem. thanks a lot Carsten Jacob Kjome wrote: At 11:30 AM 6/24/2004 +0200, you wrote: Hello, I have a Problem with ServletFilters. I am using a CacheFilter originally from Jason Falkner. This CacheFilter wraps ServletWrapper and writes outpustream to a ByteArrayStream and finally this bytearraystream is written to disk. Installing has been very easy and FIlter is working. But: every page I tested (page size from 14k to 150k) is truncated. Truncation is already in the ByteArray. Are you flushing the writer in the wrapper? Hmm... Dont' have time to go into details. I'll just past a useful working wrapper and helper class here... package com.acme.servlet.filter; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponseWrapper; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintWriter; public class GenericResponseWrapper extends HttpServletResponseWrapper { private ByteArrayOutputStream output; private PrintWriter writer; private int origStatus = 0; private int contentLength = 0; private String contentType; public GenericResponseWrapper(HttpServletResponse response) { super(response); output = new ByteArrayOutputStream(); } public byte[] toByteArray() { if (writer != null) writer.flush(); return output.toByteArray(); } public String toString() { if (writer != null) writer.flush(); return output.toString(); } public ServletOutputStream getOutputStream() { return new FilterServletOutputStream(output); } public PrintWriter getWriter() { writer = new PrintWriter(getOutputStream(), true); return writer; } public void sendError(int sc) throws IOException { super.sendError(sc); this.origStatus = sc; } public void sendError(int sc, String message) throws IOException { super.sendError(sc, message); this.origStatus = sc; } public int getStatus() { return this.origStatus; } public void setContentLength(int length) { this.contentLength = length; super.setContentLength(length); } public int getContentLength() { return this.contentLength; } public void setContentType(String type) { this.contentType = type; super.setContentType(type); } public String getContentType() { return this.contentType; } } package com.acme.servlet.filter; import javax.servlet.ServletOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; public class FilterServletOutputStream extends ServletOutputStream { private DataOutputStream stream = null; public FilterServletOutputStream(OutputStream output) { stream = new DataOutputStream(output); } public void write(int b) throws IOException { stream.write(b); } public void write(byte[] b) throws IOException { stream.write(b); } public void write(byte[] b, int off, int len) throws IOException { stream.write(b, off, len); } } Jake The JSP-Page originally contained include directives which I evetually removed but same result. I am using tomcat 4.1.29 and mod_jk and Apache 2.0 (same result with Apache 1.3) so any idea or any suggestion? -- Mit freundlichen Grüßen Dipl.Inform. Carsten Lex Geschäftsführer DeepWeb GmbH DeepWeb GmbH Universität, Gebäude 30 66123 Saarbrücken Tel.: 0681 - 302 6308 Mobil: 0163 - 33 37 002 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: connectionpool initial number of connections
Hi Shyam, By using tomcat connection pooling, I suppose you're using commons-dbcp. Take a look at http://jakarta.apache.org/commons/dbcp/configuration.html And you'll notice the initialSize parameter. :) Hope that helps! Marcelo -Mensagem original- De: shyam [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 21 de junho de 2004 16:43 Para: 'Tomcat Users List'; [EMAIL PROTECTED] Assunto: connectionpool initial number of connections Hi, I have successfully migrated my application from using a third party connection pooling to tomcat connection pooling using data sources. The documentation helped me a lot. However I want to initialize a certain number of connections at the start up just as the maxActive connections. Is there anyway of doing this? Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not compiles my .jsp!
No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html file problem in apache-tomcat/serious problem
hi friends, i am using apache 2.x ,tomcat 4x and mod_jk for redhat 9. my configuration in server.xml is 1)Host name=localhost debug=0 appBase=/home/shiva unpackWARs=true autoDeploy=true 2)Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true i created one folder 'examples' in /home/shiva i put all of my jsp,html files in /home/shiva/examples using tomcat, jsp and html files are working fine,i am calling in browser like http://myhost:8080/examples/jspname.jsp; and using apache jsp files are working fine,i am calling in browser like http://myhost/examples/jspname.jsp; but my problem is html files are not working using apache. note:all jsps and htmls are have same permissions. i am getting the following error in the browser **begin** Forbidden You don't have permission to access /examples/forward1.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. - Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7a mod_jk/1.2.5 Server at 192.168.68.10 Port 80 **end* i test it by 777 also. plz help me. thanks in advance. shiva - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
Toimcat / Apache / Modjk
Hello, I have posted this problem before to no avail and thought I would try again I have apache 2.049 in front of tomcat 5.025 and they are linked with modjk 1.2 I want everything for a site such as www.mydomain.com to go through tomcat EXCEPT for any php pages. Is there a way I can JkMount everything BUT something? Basically I want to mount everything EXCEPT url's ending in .php Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does anybody know what this means?
Hii Hii Have u included Tag Library Decriptor file into WEB-INF / lib folder u can solve this problem Deepak On Thu, 24 Jun 2004 Casas,Claudia wrote : 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/pop3.jar to /home/dln/wwwdocs/WEB-INF/lib/pop3.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/smtp.jar to /home/dln/wwwdocs/WEB-INF/lib/smtp.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/taglibs-datetime.jar to /home/dln/wwwdocs/WEB-INF/lib/taglibs-datetime.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Reloading checks are enabled for this Context 2004-06-23 22:42:05 ContextConfig[/dln] Exception processing TLD at resource path /WEB-INF/datetime.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/datetime.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - I KEEP GETTING THE REQUESTED RESOURCE IS NOT AVAILABLE WHEN I TRY TO RUN MY TOMCAT FORM MY HOME DIR. I NOTICED THIS ERROR INSIDE THE LOG FOR THAT SPECIFIC CONTEXT. IT SEEMS LIKE EVERYTHING IS GOING OK, NTIL SOMETHING HAPPENS WITH DATETIME.TLD?
Re: RE: my jsps don't work anymore :(
Can u post me ur Error?? When u run a program into Browser Let me know wat type of Exception u got Deepak On Thu, 24 Jun 2004 Casas,Claudia wrote : By the way, I tried it with http://localhost:8080/myacct/test.jsp and I am still getting the same error. -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:58 PM To: 'Tomcat Users List' Subject: RE: my jsps don't work anymore :( Can you post your error message? You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't work. Does it with localhost? -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /textarea /TD TD TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1/TD/TR/TABLE /TD /TR /TABLE !-- Compose buttons -- TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% TR bgcolor=#EE TD height=32 width=450 input type=button name=Send value=Send onclick=validate() class=wm_canbttns input type=button name=Save Draft value=Save Draft onclick=save_values_in_draft() class=wm_savebttns input type=button name=Add/Remove Attachment value=Add/Remove Attachment onclick=attachment(0) class=wm_arbttns /TD TD width=95 TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1 width=95/TD/TR/TABLE /TD TD align=left input type=button name=cancel value=Cancel onclick=backToInbox() class=wm_canbttns /TD /TR /FORM /TABLE !-- Compose buttons -- TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1/TD/TR/TABLE TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1/TD/TR/TABLE /TD /TR /TABLE !-- Main Table Ends -- !-- Footer starts -- TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% TR TD height=4 bgcolor=#67C1E9 width=100% TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=4 width=100%/TD/TR/TABLE /TD /TR /TABLE TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% TR TD align=center class=sb1 height=25 valign=bottom Copyright © 2004 Rediff.com India Limited. All Rights Reserved. /TD /TR /TABLEBR !-- Footer Ends -- /BODY /HTML
Re: Tomcat does not compiles my .jsp!
Take a look at your log files for around the time you try to access the jsps. Seems to me there has to be some info related to this error. Does the .java file get created in the work directory tree at all? Also check the volume your work directory is on -- is there enough space and have you run fsck on it recently? The last time I experienced what you saw, it was r/w permissions on the work directory for user tomcat. I couldn't see the error until I su'd into the tomcat user account and tried to write a file. Obviously your situation is different somehow. Good luck. That's all my ideas. --David Cyberjobe wrote: No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: my jsps don't work anymore :(
Please Speciy Context Path in server.xml file so that u can solve ur problem Deepak On Thu, 24 Jun 2004 Casas,Claudia wrote : I am getting the following error message: HTTP Status 404 - /myacct/test.jsp Type: Status report Message: /myacct/test.jsp Description: The requested resource (/myacct/test.jsp) is not available I copied test.jsp into the /examples/jsp directory in the tomcat root. When I access http://localhost:8080/examples/jsp/mytest.jsp it works perfectly. I am getting the error message when I try to access it from /home/myacct/wwwdocs. I am thinking that my context path for my homedirectory is not being taken, but I do not know why. -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:58 PM To: 'Tomcat Users List' Subject: RE: my jsps don't work anymore :( Can you post your error message? You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't work. Does it with localhost? -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] /textarea /TD TD TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1/TD/TR/TABLE /TD /TR /TABLE !-- Compose buttons -- TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% TR bgcolor=#EE TD height=32 width=450 input type=button name=Send value=Send onclick=validate() class=wm_canbttns input type=button name=Save Draft value=Save Draft onclick=save_values_in_draft() class=wm_savebttns input type=button name=Add/Remove Attachment value=Add/Remove Attachment onclick=attachment(0) class=wm_arbttns /TD TD width=95 TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1 width=95/TD/TR/TABLE /TD TD align=left input type=button name=cancel value=Cancel onclick=backToInbox() class=wm_canbttns /TD /TR /FORM /TABLE !-- Compose buttons -- TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1/TD/TR/TABLE TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=1/TD/TR/TABLE /TD /TR /TABLE !-- Main Table Ends -- !-- Footer starts -- TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% TR TD height=4 bgcolor=#67C1E9 width=100% TABLE cellSpacing=0 cellPadding=0 border=0TRTD height=4 width=100%/TD/TR/TABLE /TD /TR /TABLE TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% TR TD align=center class=sb1 height=25 valign=bottom Copyright © 2004 Rediff.com India Limited. All Rights Reserved. /TD /TR /TABLEBR !-- Footer Ends -- /BODY /HTML
Re: RE: IllegalArgumentException in jsp:forward
just u add following in a code jsp:forward page=my.jsp/ jsp:forward page=my.jsp jsp:param name=message value=%= message % / jsp:param name=MailId value=%= mailId % / /jsp:forward On Thu, 24 Jun 2004 Giri,Sandeep wrote : The following code is also throwing the same error: jsp:forward page=my.jsp jsp:param name=message value=%= message % / jsp:param name=MailId value=%= mailId % / /jsp:forward Someone please help. Thanks. Regards, Sandeep Giri -Original Message- From: deepak shripat mane [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 9:58 AM To: Tomcat Users List Subject: Re: IllegalArgumentException in jsp:forward Hii.. For forwarding JSP Page u must use following Syntax jsp:forward page=myJsp.jsp u can specify the list of parameters u can forwarded /jsp:forward Deepak On Wed, 16 Jun 2004 Giri,Sandeep wrote : Hi! The following code: jsp:forward page=myJsp.jsp / is throwing the following exception on tomcat 4.0 (perhaps): Included servlet error: 500 Location: /servlets/showClientSubmissions.jsp Error Location: /servlets/generaltemplate.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:459) at servlets._0002fservlets_0002fshowClientSubmissions_0002ejspshowClientSub missions_jsp_0._jspService(_0002fservlets_0002fshowClientSubmissions_000 2ejspshowClientSubmissions_jsp_0.java:450) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher Impl.java:194) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:4 21) at servlets._0002fservlets_0002flogin_0002ejsplogin_jsp_11._jspService(_000 2fservlets_0002flogin_0002ejsplogin_jsp_11.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec tion(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at a href=http://www.ntsearch.com/search.php?q=javav=56;java/a.lang.Thread.run(Thread.java:484) Root cause: java.lang.IllegalArgumentException at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285) at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:154) at org.apache.tomcat.facade.RequestDispatcherImpl.addQueryString(RequestDis patcherImpl.java:491) at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcher Impl.java:333) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:4 14) at servlets._0002fservlets_0002fshowClientSubmissions_0002ejspshowClientSub missions_jsp_0._jspService(_0002fservlets_0002fshowClientSubmissions_000 2ejspshowClientSubmissions_jsp_0.java:440) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: Tomcat does not compiles my .jsp!
I seem to recall I had this problem once and it occurred because servlet.jar wasn't where it should be (/tomcat/common/lib in my setup). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 11:21 AM To: Tomcat Users List Subject: Re: Tomcat does not compiles my .jsp! Take a look at your log files for around the time you try to access the jsps. Seems to me there has to be some info related to this error. Does the .java file get created in the work directory tree at all? Also check the volume your work directory is on -- is there enough space and have you run fsck on it recently? The last time I experienced what you saw, it was r/w permissions on the work directory for user tomcat. I couldn't see the error until I su'd into the tomcat user account and tried to write a file. Obviously your situation is different somehow. Good luck. That's all my ideas. --David Cyberjobe wrote: No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: Tomcat does not compiles my .jsp!
Hii.. Let me know wat is version of ur tomcat server if u r using tomcat 4.x then u have to specify servlet.jar in classpath for tomcat 5.x u can specify servlet-api.jar into classpath file On Thu, 24 Jun 2004 Januski,Ken wrote : I seem to recall I had this problem once and it occurred because servlet.jar wasn't where it should be (/tomcat/common/lib in my setup). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 11:21 AM To: Tomcat Users List Subject: Re: Tomcat does not compiles my .jsp! Take a look at your log files for around the time you try to access the jsps. Seems to me there has to be some info related to this error. Does the .java file get created in the work directory tree at all? Also check the volume your work directory is on -- is there enough space and have you run fsck on it recently? The last time I experienced what you saw, it was r/w permissions on the work directory for user tomcat. I couldn't see the error until I su'd into the tomcat user account and tried to write a file. Obviously your situation is different somehow. Good luck. That's all my ideas. --David Cyberjobe wrote: No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html file problem in apache-tomcat/serious problem
Have you checked if your shiva folder account has 755 permissions? -Original Message- From: shiv juluru [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:11 AM To: Tomcat Users List Subject: html file problem in apache-tomcat/serious problem hi friends, i am using apache 2.x ,tomcat 4x and mod_jk for redhat 9. my configuration in server.xml is 1)Host name=localhost debug=0 appBase=/home/shiva unpackWARs=true autoDeploy=true 2)Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true i created one folder 'examples' in /home/shiva i put all of my jsp,html files in /home/shiva/examples using tomcat, jsp and html files are working fine,i am calling in browser like http://myhost:8080/examples/jspname.jsp; and using apache jsp files are working fine,i am calling in browser like http://myhost/examples/jspname.jsp; but my problem is html files are not working using apache. note:all jsps and htmls are have same permissions. i am getting the following error in the browser **begin* * Forbidden You don't have permission to access /examples/forward1.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. - Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7a mod_jk/1.2.5 Server at 192.168.68.10 Port 80 **end*** ** i test it by 777 also. plz help me. thanks in advance. shiva - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can the Server header in an HTTP response be customised?
I would like to change the value of the Server HTTP header returned by Tomcat. Calling HttpServletResponse.setHeader( Server, value ) will either add a second Server header or will do nothing, depending on whether it is called before or after the HTTP body is written. Is it possible to programmatically change the Server header? Barring that, is it possible to set a Server header for a servlet within its web.xml file? My least preferred method is to change the Server header within Tomcat's server.xml file. thank you, ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Toimcat / Apache / Modjk
jk file mod_jk.conf it is like this JkMount /*.jsp worker JkMount /*.htm worker JkMount /*.whatever ext you want - just not *.php or * or jk2 file workers2.properties you would do something like [uri:/*.jsp] [uri:/*.htm] [uri:/*.whatever ext you want - just not *.php or *] hope this helps. At 08:25 AM 6/24/2004, James Sherwood wrote: Hello, I have posted this problem before to no avail and thought I would try again I have apache 2.049 in front of tomcat 5.025 and they are linked with modjk 1.2 I want everything for a site such as www.mydomain.com to go through tomcat EXCEPT for any php pages. Is there a way I can JkMount everything BUT something? Basically I want to mount everything EXCEPT url's ending in .php Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: Tomcat does not compiles my .jsp!
The version of tomcat that I am using is tomcat-4.1.30 I just included in my classpath the servlet.jar, but NO results yet. -Original Message- From: deepak shripat mane [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:28 AM To: Tomcat Users List Subject: Re: RE: Tomcat does not compiles my .jsp! Hii.. Let me know wat is version of ur tomcat server if u r using tomcat 4.x then u have to specify servlet.jar in classpath for tomcat 5.x u can specify servlet-api.jar into classpath file On Thu, 24 Jun 2004 Januski,Ken wrote : I seem to recall I had this problem once and it occurred because servlet.jar wasn't where it should be (/tomcat/common/lib in my setup). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 11:21 AM To: Tomcat Users List Subject: Re: Tomcat does not compiles my .jsp! Take a look at your log files for around the time you try to access the jsps. Seems to me there has to be some info related to this error. Does the .java file get created in the work directory tree at all? Also check the volume your work directory is on -- is there enough space and have you run fsck on it recently? The last time I experienced what you saw, it was r/w permissions on the work directory for user tomcat. I couldn't see the error until I su'd into the tomcat user account and tried to write a file. Obviously your situation is different somehow. Good luck. That's all my ideas. --David Cyberjobe wrote: No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc
Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to check if a String is empty?
Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to check if a String is empty?
There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
Howdy, Instead of comparing to a zero length string, test.trim().equala(), try test.trim().length() == 0 /Robert Carl Olivier wrote: There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to check if a String is empty?
Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Toimcat / Apache / Modjk
This would work great if I was using an architecture that had definite endings, I use tapestry and they all end in different names Thank you for the input though James - Original Message - From: Dan Barron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 12:57 PM Subject: Re: Toimcat / Apache / Modjk jk file mod_jk.conf it is like this JkMount /*.jsp worker JkMount /*.htm worker JkMount /*.whatever ext you want - just not *.php or * or jk2 file workers2.properties you would do something like [uri:/*.jsp] [uri:/*.htm] [uri:/*.whatever ext you want - just not *.php or *] hope this helps. At 08:25 AM 6/24/2004, James Sherwood wrote: Hello, I have posted this problem before to no avail and thought I would try again I have apache 2.049 in front of tomcat 5.025 and they are linked with modjk 1.2 I want everything for a site such as www.mydomain.com to go through tomcat EXCEPT for any php pages. Is there a way I can JkMount everything BUT something? Basically I want to mount everything EXCEPT url's ending in .php Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank From: Robert Bateman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Fri, 18 Jun 2004 12:58:30 -0400 Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
Frank, NOT questioning your solution, but doesn't the call to equalsIgnoreCase() cause a temp String object to be created and destroyed? Or do todays JIT compilers handle that case effectively? Bob On Thursday 24 June 2004 01:16 pm, Frank Zammetti wrote: I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
Howdy, if (test == null || test.trim().length() == 0 ) { } is simpler. /Robert Frank Zammetti wrote: I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank From: Robert Bateman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Fri, 18 Jun 2004 12:58:30 -0400 Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
Depends I guess :) I personally find the use of a magic number to be more complex. To my eyes, it's clearer to see an empty string. The intention is more clear. Kind of a silly debate I suppose because neither is exactly rocket science ;) From: Robert F. Hall [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Thu, 24 Jun 2004 10:22:06 -0700 Howdy, if (test == null || test.trim().length() == 0 ) { } is simpler. /Robert Frank Zammetti wrote: I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank From: Robert Bateman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Fri, 18 Jun 2004 12:58:30 -0400 Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
That's a good question, and one to which I do not know the answer. My HUNCH is that, as you say, modern compilers would deal with that easy enough. I could be very wrong though. Anyone happen to know for sure? From: Robert Bateman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Fri, 18 Jun 2004 13:21:09 -0400 Frank, NOT questioning your solution, but doesn't the call to equalsIgnoreCase() cause a temp String object to be created and destroyed? Or do todays JIT compilers handle that case effectively? Bob On Thursday 24 June 2004 01:16 pm, Frank Zammetti wrote: I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Movies - Trailers, showtimes, DVD's, and the latest news from Hollywood! http://movies.msn.click-url.com/go/onm00200509ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to check if a String is empty?
Every once in a while you see this question pop-up and the same thing happens...you get a whole bunch of answers. Remember that a String is an Object and not a primitive e.g. int, long etc. So in that regard if it is not an int but an Integer what would you use to test for an empty String. Think about it. Tom Kochanowicz -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Depends I guess :) I personally find the use of a magic number to be more complex. To my eyes, it's clearer to see an empty string. The intention is more clear. Kind of a silly debate I suppose because neither is exactly rocket science ;) From: Robert F. Hall [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Thu, 24 Jun 2004 10:22:06 -0700 Howdy, if (test == null || test.trim().length() == 0 ) { } is simpler. /Robert Frank Zammetti wrote: I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank From: Robert Bateman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Fri, 18 Jun 2004 12:58:30 -0400 Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: development/production configuration for JSPs
any response for this question? :) Emerson Cargnin wrote: May I set the following in the web.xml of the CATALINA_HOME/conf ??? Instead of put this in every application??? init-param param-namedevelopment/param-name param-valuefalse/param-value /init-param init-param param-namereloading/param-name param-valuefalse/param-value /init-param init-param -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat JK2 Question
Hello All, I am not sure if this question has been answered but will appreciate if some one can help. I have apache 2 and tomcat running on the same machine and are connected by jk2. My webserver url is http://someserv.com http://someserv.com/ and my web app is someapp containing jsp pages. I can access my app with the url http://someserv.com/someapp properly. But I want to access it just by typing http://someserv.com http://someserv.com/ . Thanks in advance, Balaji
RE: Toimcat / Apache / Modjk
I just saw something similar on apache-user. You can use LocationMatch JkUriSet ... /LocationMatch as described here: http://marc.theaimsgroup.com/?l=apache-httpd-usersm=108756469315623w=2 LocationMatch takes perl-compatible regular expression, so you should be able to do it. However, I have not tried this, so hopefully it works. If so, please let us know. In my first attempt at doing this, I did not realize I could use perl-compatible regex, but I have suggested changes to the Apache docs to make this more obvious. Charlie -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 11:25 AM To: Tomcat Users List Subject: Toimcat / Apache / Modjk Hello, I have posted this problem before to no avail and thought I would try again I have apache 2.049 in front of tomcat 5.025 and they are linked with modjk 1.2 I want everything for a site such as www.mydomain.com to go through tomcat EXCEPT for any php pages. Is there a way I can JkMount everything BUT something? Basically I want to mount everything EXCEPT url's ending in .php Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to check if a String is empty?
to avoid null pointer exceptions. If(.equals(test)) { } On 24 Jun 2004, at 19:39, Tom K wrote: Every once in a while you see this question pop-up and the same thing happens...you get a whole bunch of answers. Remember that a String is an Object and not a primitive e.g. int, long etc. So in that regard if it is not an int but an Integer what would you use to test for an empty String. Think about it. Tom Kochanowicz -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Depends I guess :) I personally find the use of a magic number to be more complex. To my eyes, it's clearer to see an empty string. The intention is more clear. Kind of a silly debate I suppose because neither is exactly rocket science ;) From: Robert F. Hall [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Thu, 24 Jun 2004 10:22:06 -0700 Howdy, if (test == null || test.trim().length() == 0 ) { } is simpler. /Robert Frank Zammetti wrote: I've always done if (test == null || test.trim().equalsIgnoreCase()) { } (I'm anal about always using equalsIgnoreCase unless I know for sure that case sensitivity is required). No need to do anything more complex than that in my experience. Always do the simplest thing that will work. Frank From: Robert Bateman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to check if a String is empty? Date: Fri, 18 Jun 2004 12:58:30 -0400 Wouldn't test.trim().length() be a better test? length() after trm would tell you if non white-space was left. Bob On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote: Hi There, You could do the check test.length() 0 Pete -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 17:18 To: 'Tomcat Users List' Subject: RE: how to check if a String is empty? There is a trim() funtion in java.lang.String ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 06:20 PM To: 'Tomcat Users List' Subject: how to check if a String is empty? Hello, maybe this is not the perfect group for my question, but as my problem appears at the development of JSPs and tomcat is concerned with that, I hope you can answer it. I often see the condition String test = req.getParameter(test); if (test == null) { /* string is empty */ } else { /* string contains something */ } But if test contains just blanks and other whitespaces, it's not null, but doesn't contain usable data anyhow. How can I check if a string contains whitespaces only? I though of something like if (test == null || test.trim().equals()) { } but there's no trim()-function, right? How do you solve this problem? With whitespaces I mean blanks, tabs and newlines. Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JK2 Question
Host name=www.sparrow.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=true xmlNamespaceAware=false Context path= docBase=sparrow / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=sparrow_log. suffix=.log pattern=common resolveHosts=false/ /Host Notice the path attribute in context. HTH Mark On 24 Jun 2004, at 19:50, Balaji Varanasi wrote: Hello All, I am not sure if this question has been answered but will appreciate if some one can help. I have apache 2 and tomcat running on the same machine and are connected by jk2. My webserver url is http://someserv.com http://someserv.com/ and my web app is someapp containing jsp pages. I can access my app with the url http://someserv.com/someapp properly. But I want to access it just by typing http://someserv.com http://someserv.com/ . Thanks in advance, Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JK2 Question
Hello Balaji, try something like: ... [uri:/*.jsp] group=ajp13:localhost:8009 ... in your workers2.properties Oliver Balaji Varanasi wrote: Hello All, I am not sure if this question has been answered but will appreciate if some one can help. I have apache 2 and tomcat running on the same machine and are connected by jk2. My webserver url is http://someserv.com http://someserv.com/ and my web app is someapp containing jsp pages. I can access my app with the url http://someserv.com/someapp properly. But I want to access it just by typing http://someserv.com http://someserv.com/ . Thanks in advance, Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JK2 Question
In fact combine what oliver and I have suggested and you should be home n dry. On 24 Jun 2004, at 20:24, Oliver Nautsch wrote: Hello Balaji, try something like: ... [uri:/*.jsp] group=ajp13:localhost:8009 ... in your workers2.properties Oliver Balaji Varanasi wrote: Hello All, I am not sure if this question has been answered but will appreciate if some one can help. I have apache 2 and tomcat running on the same machine and are connected by jk2. My webserver url is http://someserv.com http://someserv.com/ and my web app is someapp containing jsp pages. I can access my app with the url http://someserv.com/someapp properly. But I want to access it just by typing http://someserv.com http://someserv.com/ . Thanks in advance, Balaji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cookies and Tags
I'm attempting to create a cookie within a Tag. My log messages tell me that the call to pageContext.getResponse().addCookie() is being called - but nothing is showing up at the browser. I noticed a recent thread talking about sending cookie from JSPs. I looked thru that thread and as far as I can tell, my Tag is executing *before* I set contentType or anything (I have the tag loading as the first line of the JSP and invocation of the tag as line 2 of the tag.) Thoughts anyone? Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not compiles my .jsp!
Hi! I think I have the same problem as you have. I have been using Tomcat 5.0.19 in a RedHat 8.0 system. (Using JDK 1.4.2 and Ant 1.6.1) and everything has been working fine. Now I have installed the same thing on a laptop using VMWare and I have run into this error. I have tried installing Tomcat 5.0.25 instead but that didn't help. I start Tomcat using jsvc from the root account. When I run ant install (with another user) the webapp deploys ok and a directory containing a tldCache.ser file is created in work/Catalina/localhost. But when I try to access a jsp file I get the compilation error exception. No directories or files have been created in the work directory. Tne only thing I get in the logs when the error happens is the FileNotFoundException (with the huge stack trace). I'm totally clueless.. /Niklas On Thu, 24 Jun 2004, Cyberjobe wrote: No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does anybody know what this means?
I checked my /home/dln/wwwdocs/WEB-INF/lib and there is a taglibs-datetime.jar in it. Please, what else can I do? -Original Message- From: deepak shripat mane [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:17 AM To: Tomcat Users List Subject: Re: does anybody know what this means? Hii Hii Have u included Tag Library Decriptor file into WEB-INF / lib folder u can solve this problem Deepak On Thu, 24 Jun 2004 Casas,Claudia wrote : 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/pop3.jar to /home/dln/wwwdocs/WEB-INF/lib/pop3.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/smtp.jar to /home/dln/wwwdocs/WEB-INF/lib/smtp.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/taglibs-datetime.jar to /home/dln/wwwdocs/WEB-INF/lib/taglibs-datetime.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Reloading checks are enabled for this Context 2004-06-23 22:42:05 ContextConfig[/dln] Exception processing TLD at resource path /WEB-INF/datetime.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/datetime.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - I KEEP GETTING THE REQUESTED RESOURCE IS NOT AVAILABLE WHEN I TRY TO RUN MY TOMCAT FORM MY HOME DIR. I NOTICED THIS ERROR INSIDE THE LOG FOR THAT SPECIFIC CONTEXT. IT SEEMS LIKE EVERYTHING IS GOING OK, NTIL SOMETHING HAPPENS WITH DATETIME.TLD? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context Questions
First, I want to say thanks to everyone that has helped with my transition from Resin to Tomcat. Here is my question: I want to deploy my webapp in a different directory (XYZ) but I want it to load under the default context /. Do I need to specify this in my context.xml (Context path= docbase=XYZ ...) or is there something else I must do? Thanks, Brent Worley ** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
application beans and Tomcat 5
Hi all, I am getting a wierd behaviour from application beans: they seem to remain different for pages within my application. I have a very simple application, in which I need application beans. I have two pages that go like this: page1.jsp jsp:useBean id=gums scope=application class=gov.bnl.gums.GUMS / % gums.doSomething(); % page2.jsp jsp:useBean id=gums scope=application class=gov.bnl.gums.GUMS / % gums.doSomethingElse();% I would expect the pages to share the object, but they appear to create one object per page, and then keep it throught the life of the app. I logged the stack trace, to be sure I wasn't creating them somehow: DEBUG http-8080-Processor23 gov.bnl.gums.GUMS - GUMS init at :java.lang.Exception at gov.bnl.gums.GUMS.initConfiguration(GUMS.java:82) at gov.bnl.gums.GUMS.init(GUMS.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:12 12) at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116) DEBUG http-8080-Processor24 gov.bnl.gums.GUMS - GUMS init at :java.lang.Exception at gov.bnl.gums.GUMS.initConfiguration(GUMS.java:82) at gov.bnl.gums.GUMS.init(GUMS.java:29) at org.apache.jsp.updateMembers_jsp._jspService(updateMembers_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) ... They both come from jasper... am I missing something? Thanks, Gabriele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache / tomcat / jk2 / phpMyAmin
Hi I have phpMyAdmin.conf in /etc/http/conf.d to ne used as: http://domain.com/mysql this works fine for apache vhost but my tomcat vhost can't. Any ideas ? TIA LFung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load balancing question
Hello All, First of all, thanks Oliver and Mark for your assistance. I will follow your suggestion and see if it works. I have a question about Load balancing and I am writing this after a lot of frustration. I am trying to load balance Apache2 and 2 tomcat 4.1 servers. But I couldn't find any proper online resource that clearly explains the process. All the resources I looked were either out dated or didn't work properly. I will appreciate if somebody can give me pointers on this topic. Thanks, Balaji Varanasi
Re: Tomcat does not compiles my .jsp! - the solution!
Hi! Well...its working! But just when I run the server with the script startup.sh, NOT the Tomcat5.sh (from /bin/jsvc-src dir). It created the org/apache/jsp/index_jsp.java and index_jsp.class on work/Catalina/localhost/jsp1 dir. So... may this be a bug? (the Tomcat5.sh script is wrong! At least to me :) Now I have to make a new start-up script to put on my /etc/rc.d dir... Thanks everybody! Cyberjobe - Original Message - From: Niklas Lindholm [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:17 PM Subject: Re: Tomcat does not compiles my .jsp! Hi! I think I have the same problem as you have. I have been using Tomcat 5.0.19 in a RedHat 8.0 system. (Using JDK 1.4.2 and Ant 1.6.1) and everything has been working fine. Now I have installed the same thing on a laptop using VMWare and I have run into this error. I have tried installing Tomcat 5.0.25 instead but that didn't help. I start Tomcat using jsvc from the root account. When I run ant install (with another user) the webapp deploys ok and a directory containing a tldCache.ser file is created in work/Catalina/localhost. But when I try to access a jsp file I get the compilation error exception. No directories or files have been created in the work directory. Tne only thing I get in the logs when the error happens is the FileNotFoundException (with the huge stack trace). I'm totally clueless.. /Niklas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC5 / Solaris CPU usage
Hi - I'm having a problem using Tomcat 5.0.16 on Solaris 9. We've just upgraded to Tomcat 5 from 4.x and are having a problem with CPU usage. After we start our app, the CPU load goes to 50% and never goes below this number. Does anyone else have any experience with this problem? Running truss shows that Java is in a tight loop doing a yield(). (We don't have any code that uses threads outside of the Tomcat code, and we aren't in an infinite loop anywhere). We are using: java version 1.4.2_04 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) JAVA_OPTS=-server -Xms300m -Xmx1000m export JAVA_OPTS I've also tried using these in JAVA_OPTS: -Xconcurrentio -Xincgc SunOS foo 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-280R Any help would be greatly appreciated! Cheers - Dave - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
Re: my jsps don't work anymore :(
Isn't your Context tag wrong? I used something like Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true / (without /Context) -- Cyberjobe -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not compiles my .jsp! - the solution!
Hi! I tried skipping using jsvc and start Tomcat using startup.sh instead (which starts java directly) and now it works for me too! Although using jsvc works fine in my old environment.. Thanks for the hint! /Niklas On Thu, 24 Jun 2004, Cyberjobe wrote: Hi! Well...its working! But just when I run the server with the script startup.sh, NOT the Tomcat5.sh (from /bin/jsvc-src dir). It created the org/apache/jsp/index_jsp.java and index_jsp.class on work/Catalina/localhost/jsp1 dir. So... may this be a bug? (the Tomcat5.sh script is wrong! At least to me :) Now I have to make a new start-up script to put on my /etc/rc.d dir... Thanks everybody! Cyberjobe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jspc
Hi Jason, Thanks for that. Yes, it does make Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting url which submitted form
Using Tomcat 5.0.26. I'm trying to find out the name of the JSP page which submitted a form. For example, I have a form in MyFirstPage.JSP. form id=MyFirstPage method=post action=MyNextPage.jsp input class=actionButton type=submit name=Submit value=Continue / /form Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a way to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while processing the HttpServletRequest parameters inside MyNextForm.jsp. Thank you, Mark Thias This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies.
RE: Getting url which submitted form
Put a hidden field in the form with and identifier that you can use to determine which form it was that submitted it. I'd also suggest another hidden field to store a transaction id field so you can detect if it's a re-submittal of previously submitted information. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mark Thias [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:01 PM To: Tomcat User Group (E-mail) Subject: Getting url which submitted form Using Tomcat 5.0.26. I'm trying to find out the name of the JSP page which submitted a form. For example, I have a form in MyFirstPage.JSP. form id=MyFirstPage method=post action=MyNextPage.jsp input class=actionButton type=submit name=Submit value=Continue / /form Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a way to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while processing the HttpServletRequest parameters inside MyNextForm.jsp. Thank you, Mark Thias This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jspc
(sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat exist without any known reason
I have a Sun box with Solaris 9. Tomcat 11.9.0,REV=2002.03.02.00.35 Apache and Tomcat were installed as part of the OS. Tomcat seems to work fine, but about once per day it stops. Just exits as far as I can tell. No errors in the logs. It has only stopped when it was not being used. Each time I noticed that it was not running, it was the first attempt to use it that day. Maybe some sort of idle timeout. Any ideas? I am new to Tomcat. I upgraded a test system from jserv to tomcat. The OS and Oracle were also upgraded. This is 1 of 2 outstanding issues. Thanks, Guy NAME: Tomcat Servlet/JSP Container (root) CATEGORY: system ARCH: sparc VERSION: 11.9.0,REV=2002.03.02.00.35 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: Tomcat Servlet/JSP Container (root) PSTAMP: sfw8120020302003834 INSTDATE: Apr 09 2004 12:44 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 1009 installed pathnames 4 shared pathnames 119 directories 27315 blocks used (approx) PKGINST: SUNWtcatu NAME: Tomcat Servlet/JSP Container CATEGORY: system ARCH: sparc VERSION: 11.9.0,REV=2002.03.02.00.35 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: Tomcat Servlet/JSP Container PSTAMP: sfw8120020302003915 INSTDATE: Apr 09 2004 12:44 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 51 installed pathnames 3 shared pathnames 12 directories 10 executables 8280 blocks used (approx) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and mod_webapp?
I'm still trying to understand integrating tomcat with apache2. I came across this site looking for answers : http://developer.apple.com/internet/java/tomcat1.html It make reference to the following: Using Tomcat with Apache via mod_webapp If youd like Tomcat to run in conjunction with your Apache web server, youll need to install a new Apache module, called mod_webapp. Its available from the Jakarta Projects site as a pre-compiled binary file for Mac OS X. At the time of this writing, this was the latest binary. To install the module, simply download it to your machine (a standard location would be /usr/local/src/), and copy the mod_webapp library file into your Apache module folder. When I goto the Jakarta Project's site I can't seem to locate anything that is titled mod-webapp? Where exactly is this module available? Link? Thanks, Samuel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc
Why would you precompile jsp files? On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED] wrote: (sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jspc
In an effort to increase speed/free up memory that otherwise might be consumed by Tomcat otherwise Why would you precompile jsp files? On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED] wrote: (sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameterizing a web app via resources
I'd like to give people a webapp to run by telling them: - drop the .war file - add some parameters - stand back If I focus on Tomcat, I see how to do that: I can tell them to create a Context element in the outboard XML file and configure some resources there. This is, of course, Tomcat-specific. Have anyone any experience with the equivalent functionality in other possible deployment targets? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc
It will increase speed on the first viewing of the jsp, but after that I can't see how there will be any difference. How much memory can you save if any? And how would that work? Thanks On Fri, 25 Jun 2004 11:12:44 +1000, Paul Wallace [EMAIL PROTECTED] wrote: In an effort to increase speed/free up memory that otherwise might be consumed by Tomcat otherwise Why would you precompile jsp files? On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED] wrote: (sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jspc
Hi, Yes..that is what I thought, but I learned from a 'reliable' source I could accomplish this on saving overhead. So rather than looking into the whys and whats, I looked into how to do it, and look into the performance benefits later. I will provide the list with my sources reasoning, when it becomes available! A thought..and to answer a question with a question (Why would you precompile jsp files?), why is jspc there? If only to increase performance on the first hit? Thanks Paul. It will increase speed on the first viewing of the jsp, but after that I can't see how there will be any difference. How much memory can you save if any? And how would that work? Thanks On Fri, 25 Jun 2004 11:12:44 +1000, Paul Wallace [EMAIL PROTECTED] wrote: In an effort to increase speed/free up memory that otherwise might be consumed by Tomcat otherwise Why would you precompile jsp files? On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED] wrote: (sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to try and speed up / make TC less memory consumptive. cheers Paul. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ksemailfilter scan report (ksemailfilter ɨÃ豨¸æ) [0625092515479]
This email has been sent to you from an email content scanning filter located on the server [jakarta.apache.org]. If you have any queries relating to this email, please direct them to [EMAIL PROTECTED] Report Details --- Administrator Email Reply Address: [EMAIL PROTECTED] Email sent to: [EMAIL PROTECTED] ksemailfilter ID: 0625092515479 ÎÒÃÇ´Ó·þÎñÆ÷ÉϽø³öµÄµç×ÓÓʼþ½øÐÐÁËÄÚÈÝɨÃ裬·¢ÏÖÓв¡¶¾»òÆäËû·Ç·¨ÄÚÈÝ ÏÖÔÚ±»ËøÔÚÎÒÃÇ·þÎñÆ÷ÉÏ£º [jakarta.apache.org]. Èç¹ûÄúÓÐÈκÎÒÉÎÊ,¿ÉÒÔÖ±½Ó·¢ÐŸø¹ÜÀíԱѯÎÊ¡£ [EMAIL PROTECTED] Ïêϸ±¨¸æ --- ¹ÜÀíÔ±ÓʼþµØÖ·: [EMAIL PROTECTED] ½ÓÊÕÕß: [EMAIL PROTECTED] ±»Â˵ÄÓʼþIDºÅ: 0625092515479 Ïêϸ±¨¸æ --- AntiVirus Results... /focusexe/filter/ksemailfilter/tmp/inf_0625092515479/unpacked/_headers_: OK /focusexe/filter/ksemailfilter/tmp/inf_0625092515479/unpacked/textfile0: Empty file. /focusexe/filter/ksemailfilter/tmp/inf_0625092515479/unpacked/textfile1: OK /focusexe/filter/ksemailfilter/tmp/inf_0625092515479/unpacked/creditcard.txt.pif: Worm.SomeFool.Gen-2 (Clam) FOUND /focusexe/filter/ksemailfilter/tmp/inf_0625092515479/unpacked/textfile2: Empty file. --- SCAN SUMMARY --- Known viruses: 21523 Scanned directories: 1 Scanned files: 3 Infected files: 1 Data scanned: 0.02 MB I/O buffer size: 131072 bytes Time: 0.419 sec (0 m 0 s) File NAME/TYPE Scan Results 0625092515479 from:[EMAIL PROTECTED] to: [EMAIL PROTECTED] scanning off. Name scanning off. Text scanning off. END OF MESSAGE. End. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
installing HTTPS SSL on tomcat 5.0.25
Hi, I'm installing SSL on Tomcat 5.0.25. My system settings are Linux Mandrake 10 java version 1.4.2_04 Tomcat 5.0.25 In a nutshell I believe I am looking for where I need to copy my .keystore file or make some configuration in tomcat. I followed the how-to at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html but I think I missed a step. So far, I uncommented my SSL connector in my server.xml file Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / And, I created a keystore named .keystore and placed it into the root directory of jakarta-tomcat-5.0.25, set with a password of 'changeit' with the following command 'keytool -genkey -keyalg RSA -alias tomcat -keystore .keystore' whats next? thanks, -Terry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jspc
There are a number of compelling reasons that pre-compiling JSPs are a good idea. Among the short list are: (+) Safety: If you precompile a JSP, you *know* before putting it in production that it will compile without problems. Why do we compile .java files into .class files before releasing a product? Because we want to make as sure as we can that the application will run as intended. (+) Source Code Privacy: Likewise, would your company release non-compiled source code for others to see? Why would you release uncompiled jsp source code for the world to see? (+) Speed: The first time a jsp is accessed, it must be compiled. Obviously, this delay degrades the user experience. (+) Security: Setting up your JVM to allow both execute and write access is a potential security hole. (+) Resource Usage: There is inherent overhead caused by the process of translating a jsp request to a servlet request (which all jsp requests become). To see this, look at a stack trace for a request that came through a JSP, then compare that to one from a Servlet. If you can avoid the overhead, why not? (+) Pre-compiling is a Deployment-time activity: Pre compiling doesn't affect developers -- it happens only at deployment time. Unless you change JSPs frequently (which won't happen is a best-practice production environment), there is no penalty to be paid by pre-compiling. If you care about these issues, pre-compile your JSPs. If you don't care, don't spend the 30 minutes it takes to figure it out. :) justin At 06:38 PM 6/24/2004, you wrote: Hi, Yes..that is what I thought, but I learned from a 'reliable' source I could accomplish this on saving overhead. So rather than looking into the whys and whats, I looked into how to do it, and look into the performance benefits later. I will provide the list with my sources reasoning, when it becomes available! A thought..and to answer a question with a question (Why would you precompile jsp files?), why is jspc there? If only to increase performance on the first hit? Thanks Paul. It will increase speed on the first viewing of the jsp, but after that I can't see how there will be any difference. How much memory can you save if any? And how would that work? Thanks On Fri, 25 Jun 2004 11:12:44 +1000, Paul Wallace [EMAIL PROTECTED] wrote: In an effort to increase speed/free up memory that otherwise might be consumed by Tomcat otherwise Why would you precompile jsp files? On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED] wrote: (sorry, wrong key!) Hi Jason, Thanks for that. Yes, it does make sense. A couple of things though, I just ran it with -compile - great. But my query about the work directory and was more towards what I am being 'encouraged' to do from the powers that be. I.e not WAR the app., but put it in the work directory. Is this ill-advised/poor practice? To accomplish this, is it as simple as dragging the compiled source under my work directory, and modifying my web.xml as advised? Why does -compile work, but not appear in the usage?! Also, can I specify a path for the compilation, rather than the classes be placed in the same dirs as the source? (I tried adding a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create a complete web.xml file that you can place in WEB-INF or, if you already have a web.xml file you want to keep, you can have jspc create an xml fragment that just contains the servlet definitions and mappings that you then add (in the appropriate place) to your existing web.xml. Then just war up you application directory in the normal way (you can even delete the jsps once your certain the servlet mappings are working). If you try to put the generated files in your working directory you won't be able to war them up and deploy them in the normal put war file under webapps directory and tomcat will expand it when it starts way. You'd have to ship a complete tomcat directory structure with the work directory already filled in with your compiled jsps. Does that make sense? Jason --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files, then WAR/JAR? Can I not define the JSP compile to go under my work directory? The purpose of my efforts is to
Running Tomcat as Service Results DBCP Error
Hello! Just like to ask why is it that I always have dbcp error everytime i run tomcat as a service??? I have already declared System DSN but still dbcp error occurs... Help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting url which submitted form
Mark Thias [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Using Tomcat 5.0.26. I'm trying to find out the name of the JSP page which submitted a form. For example, I have a form in MyFirstPage.JSP. form id=MyFirstPage method=post action=MyNextPage.jsp input class=actionButton type=submit name=Submit value=Continue / /form Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a way to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while processing the HttpServletRequest parameters inside MyNextForm.jsp. String lastPage = request.getHeader(referer); Thank you, Mark Thias This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and mod_webapp?
mod_webapp has been dead for a very long time now. Use mod_jk(2). Samuel V. Green III [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm still trying to understand integrating tomcat with apache2. I came across this site looking for answers : http://developer.apple.com/internet/java/tomcat1.html It make reference to the following: Using Tomcat with Apache via mod_webapp If youd like Tomcat to run in conjunction with your Apache web server, youll need to install a new Apache module, called mod_webapp. Its available from the Jakarta Projects site as a pre-compiled binary file for Mac OS X. At the time of this writing, this was the latest binary. To install the module, simply download it to your machine (a standard location would be /usr/local/src/), and copy the mod_webapp library file into your Apache module folder. When I goto the Jakarta Project's site I can't seem to locate anything that is titled mod-webapp? Where exactly is this module available? Link? Thanks, Samuel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting url which submitted form
Mike Jackson wrote: Put a hidden field in the form with and identifier that you can use to determine which form it was that submitted it. I'd also suggest another hidden field to store a transaction id field so you can detect if it's a re-submittal of previously submitted information. [SNIP] -Original Message- From: Mark Thias [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:01 PM To: Tomcat User Group (E-mail) Subject: Getting url which submitted form Using Tomcat 5.0.26. I'm trying to find out the name of the JSP page which submitted a form. That might be impractical. I believe every decent HTTP client will place a HTTP header Referer: , which holds the page that refered to the current one. If that wasn't so, tracking broken links on a web site would be a nightmare :-) Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]