Re: Jk1 jkstatus?
Good afternoon Byron. There is a way in JK to check the status of your workers and even configure them to some degree. It requires pretty much the same setup as in JK2; for details about this and other VERY useful info on putting Apache and Tomcat together see this webinar: https://jboss.webex.com/jboss/onstage/tool/record/viewrecording1.php?EventID=136098785. Regards, Carlos * Be adbvised that in order to view the webinar you need to install an ActiveX control in your IExplorer. - Original Message - From: Guernsey, Byron (GE Consumer Industrial) [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 15, 2005 2:03 PM Subject: Jk1 jkstatus? So with JK 1.2.8, is there any equivilent method of finding the data in the jkstatus scoreboard from mod_jk2?? I understand jk2 is no longer the choice module for Apache 2.0.x. Funny, when we first upgraded to Apache 2, the official line was that mod_jk1 should not be used with Apache 2, and we needed to get with the program and move to the refactored jk2- once we did, jk2 was no longer supported and considered flaky- meanwhile on the Apache 2 developers list there continues to be threads asking why people still use Apache 1.3 and aren't upgrading to 2.0, or may even be downgrading in some cases from 2 back to 1.3- I think its partly because things like the jkX confusion. So now we are running on an unsupported platform where at any time a patch could create problems with mod_jk2 with no resolution except to fix it ourselves, and sure ajp13_proxy is coming, but we won't be first in line with apache 2.2 after playing musical chairs with jk1/jk2. So what other things besides the scoreboard will I have to live without when downgrading back to JK1? Byron - 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: Starting a tomcat from a java program
Hi Rajaneesh. You could also take a look at http://cargo.codehaus.org/: Cargo provides a Java API to start/stop and configure Java containers Carlos - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, February 03, 2005 8:05 AM Subject: RE: Starting a tomcat from a java program From: Rajaneesh [mailto:[EMAIL PROTECTED] Subject: Starting a tomcat from a java program How do I start tomcat from a java program? If you want to just kick off an independent execution of Tomcat, use Runtime.exec() to launch the startup script appropriate for your platform. If you want to run Tomcat inside your existing JVM/process (aka embedded), you're in for a fair amount of work. Try Googling for Tomcat and embedded. A starting point might be: http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html but it's nearly three years old, so some things have undoubtedly changed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: [HttpSession creation: When How]
Good morning. Thanks a lot for the shared thoughts and ideas about HttpSession management. Last night I decided to give the Servlet Spec a second try and here's what I think is relevant to this topic: - A session is considered new untils a client joins it [calls to HttpSession.isNew() return true] - A client joins a session when session tracking info has been returned to the server, indicating that the session has been established. - The container always (?) creates a session object for a given user request regardless of its nature (HTML, JSP...), but waits until the client sends tracking info back to consider the client as part of the new session I'm yet to read RFC 2964 - Use of HTTP State Management, but from the Spec and your feedback I think a practical way to address this problem is whith the mecanism suggested by Dennis and Frank: - If the session exists, check for required elements and place them there if they are missing / Check for some known object in session; if it's not there, the user hasn't been validated. Besides being practical, this approach makes complete sense since -as Bob accurately points out: The basic HttpSession object is for state management, not evidence of authentication. Thanks again for sharing your knowledge. Should I trip over again in this matters I'd sure come back... :^) Regards, Carlos - Original Message - From: Bob Feretich [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 12:25 AM Subject: Re: [HttpSession creation: When How] When Tomcat intercepts an access to a protected resource and redirects to your login form, it saves your initial request by attaching it to the session object. If the login is successful, it retrieves the saved request and redirects to it. If you don't have an active session, it creates one to perform the save. The basic HttpSession object is for state management, not evidence of authentication (see best practice RFC-2964 2.2.2). (You may attach authentication info to the session object.) Regards, Bob Feretich Dennis Payne wrote: You can use the session.invalidate() if you need to before creating a new session (I did not use this approach). With my system, if the session exists we check for required elements and place them there if they are missing. Every thirty minutes the session automatically invalidates. At that point we create a new session and simply repeat the check for required elements. All of this is invisible to the user who logs in only once. The only information that stays from session to session is data that is persisted in (written to) the database and put in the session for servlet/JSP use. If I understand correctly the HTTP Session is initiated by the web server when authentication takes place (I only have experience with basic authentication). Other wiser sources may clarify... [EMAIL PROTECTED] 11-29-2004 17:31 Good evening. My question is about HttpSession objects creation and destruction within a Servlet/JSP container. I'm using the JBoss/Tomcat bundle (versions 3.2.3/4.1.29) with a database realm properly configured. Here's how things work so far: 1. User goes to a predefined Welcome File (index.html) 2. Within the welcome file there's a link to a protected resource (wich happens to be the application's main screen) 3. The user clicks the link and the login page appears. 4. The user enters login/password and logs on successfully or is redirected to an error page. Up to this point everything works fine, but the thing that I don't understand is that the moment the user clicks the link that points to a protected resource an HttpSession object is created by the server even though the user hasn't been authenticated. This behavior kinda ruin my plans because I have a Session Creation/Destruction Listener that is supposed to detect a session creation event in order to be able to place some things (objects) in that user session, but it seems that the created session for the unauthenticated is recycled after authentication and my session lifecycle listener is no longer useful (the session already exists) I've looked into the Servlet spec but couldn't find anything clarifying enough... I'f anyone has any comments, tips, thoughts on this issue I'd like to hear'em... :^) Regards, Carlos... - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HttpSession creation: When How]
Good evening. My question is about HttpSession objects creation and destruction within a Servlet/JSP container. I'm using the JBoss/Tomcat bundle (versions 3.2.3/4.1.29) with a database realm properly configured. Here's how things work so far: 1. User goes to a predefined Welcome File (index.html) 2. Within the welcome file there's a link to a protected resource (wich happens to be the application's main screen) 3. The user clicks the link and the login page appears. 4. The user enters login/password and logs on successfully or is redirected to an error page. Up to this point everything works fine, but the thing that I don't understand is that the moment the user clicks the link that points to a protected resource an HttpSession object is created by the server even though the user hasn't been authenticated. This behavior kinda ruin my plans because I have a Session Creation/Destruction Listener that is supposed to detect a session creation event in order to be able to place some things (objects) in that user session, but it seems that the created session for the unauthenticated is recycled after authentication and my session lifecycle listener is no longer useful (the session already exists) I've looked into the Servlet spec but couldn't find anything clarifying enough... I'f anyone has any comments, tips, thoughts on this issue I'd like to hear'em... :^) Regards, Carlos... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternatives to J2EE Authentication
Hello. The idea of a servlet filter to manage part of the user login process that I read here rang a bell in my head. Diggin' in books articles I finally found where I have first heard such a thing :^) In Professional Struts Applications (Carnel, Linwood, Zawadzki - Apress, 2003) the authors state that it is possible to define [...] a filter [...] that checks if the user is logged on into the application. If the user has not logged in yet, they will automatically be logged in as an anonymous user, furthermore, [...] this filter is called every time the Struts ActionServlet is invoked (achieved by mapping the filter and action servlet to the same url pattern, of course) This whole filter thing seems like a pretty good trick to me, and becomes even more interesting if, for instance, you think of adding Tiles into the mix to take care of different (and automatically loaded) application Look Feel depending on the type of user... Anyway, just some thoughts I thought I'd share on the list... Best regards, Carlos You start coding. I'll go find out what they want. Computer analyst to programmer - Original Message - From: David Evans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 10:31 PM Subject: Re: Alternatives to J2EE Authentication Having just researched this, here's what i found. Using a javax.servlet.Filter works very well. As you say, You check the session for an attribute value that indicates authentication. in its absence you use a RequestDispatcher to forward to a login servlet which checks for four cases: 1. no request parameters, display logon form 2. invalid request parameters, display errors 3. unable to authenticate with valid parameters, display error 4. parameters authenticate, forward to home page Thanks to Rick Bay on the struts-users list for this idea. along with option 3 on this email. http://www.mail-archive.com/[EMAIL PROTECTED]/msg24504.html This is a fully featured, xml file configurable filter that i will eventually use as my solution: http://securityfilter.sourceforge.net/ but for fun and understanding i wrote (cut and pasted bits from the web really) this one, as a test: public final class AuthFilter implements Filter { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { boolean auth = false; if (request instanceof HttpServletRequest) { HttpSession session = ((HttpServletRequest)request).getSession(); String path = ((HttpServletRequest) request).getPathInfo(); Boolean authAttr = (Boolean) session.getAttribute(authenticated); if (authAttr != null) auth = authAttr.booleanValue(); } if (auth) { chain.doFilter(request, response); return; } else { RequestDispatcher dispatcher = request.getRequestDispatcher(/login.do); dispatcher.forward (request, response); return; } } } Hope that helps. dave On Thu, 2004-02-26 at 18:19, Steven J. Owens wrote: Hi folks, The most common (and frustrating) bookmarked login page gotcha with J2EE authentication has been oft-discussed (broken as designed) on this list. What are people's favorite alternatives to J2EE authentication? And why? Something I'm particularly interested is alternatives that don't require me to rebuild the application from scratch. I'm looking at tearing out the old login process and putting in a new one and I don't really want to start the whole thing over. If I had to build it from scratch myself, I'd do it as a simple Servlet filter that checks for a Principal object stored in the user's HttpSession. - 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]
Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]
Hi everyone. Tryin' to build mod_jk2 for my Slackware box (version 9.1 with reiserfs) I've come to a dead-end, and I would appreciate any help since the documentation I've looked into (including the mailing lists) seems to be out of date regarding the building process for version 2.0.2 of the Jakarta-Tomcat-Connectors. Please consider the necessary enviroment variables set up as follows: JTC_HOME = /usr/src/jakarta-tomcat-connectors-jk2-2.0.2-src/ JAVA_HOME = /usr/local/java/j2sdk1.4.2_03 TOMCAT_HOME = /usr/local/tomcat/jakarta-tomcat-4.1.29 APACHE2_HOME = /usr/local/apache2 ANT_HOME = /usr/local/ant/apache-ant-1.5.4 In order to successfully run the Ant build file I had to: 1. Modify the provided $JTC_HOME/jk/build.properties.sample to match my enviroment (set up paths, basically) 2. Create an empty 'java' directory inside $JTC_HOME/jk 3. Create the following directory structure inside $JTC_HOME: 'coyote/build/lib' 4. Copy every $TOMCAT_HOME/server/lib/*.jar file into $JTC_HOME/coyote/build/lib After the build process, the necessary files to actually generate the *.so module file for the JK2 connector are left in $JTC_HOME/jk/native2/server/apache2 I assumed that the 'Makefile.in' file was the one to be renamed as 'Makefile' in order tu run make, so I did renamed it and executed make but got the following output: mkdir -p ../../../build/jk2/apache2 make: APACHE2_HOME@/build/libtool: Command not found make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 127 Apparently, the APACHE2_HOME@ variable was the source of the problem, so I went and modified the Makefile changing [EMAIL PROTECTED]@ into APACHE2_HOME=/usr/local/apache2 That solved the problem, but then another one came up. When executing make again, I got the folling output: mkdir -p ../../../build/jk2/apache2 /usr/local/apache2/build/libtool --mode=compile @CC@ @APXS2_CFLAGS@ @APXS2_CPPFLAGS@ -I../../include @APACHE2_INCL@ @APR_CFLAGS@ -I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@ -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @HAVE_JNI@ @HAS_PCRE@ -c ./../common/jk_channel.c -o ../../../build/jk2/apache2/jk_channel.lo rm -f ../../../build/jk2/apache2/.libs/jk_channel.lo @CC@ @APXS2_CFLAGS@ @APXS2_CPPFLAGS@ -I../../include @APACHE2_INCL@ @APR_CFLAGS@ -I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@ -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @HAVE_JNI@ @HAS_PCRE@ -c ./../common/jk_channel.c -fPIC -DPIC -o ./../../build/jk2/apache2/.libs/jk_channel.lo /usr/local/apache2/build/libtool: line 1: @CC@: command not found make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1 Its seemed that the problem was now with the @CC@ variable -which I think should point to /usr/bin/cc. I used the same reasoning as before I changed [EMAIL PROTECTED]@ for CC=/usr/bin/cc, but got an error message pretty much like the last one except for the two last lines: .. cc: cannot specify -o with -c or -S and multiple compilations make: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1 ...And finally Here's where I'm stalled :-( Any help will be geratly appreciated. Regards, Carlos
Re: Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]
Hello again. Thanks A LOT for que quick answers. Mr. Shapira was absolutely right with his UNIX point of view, and along with his reasoning the instructions from Mr. Eggers helped me (finally) build the jk2 module for Apache. Basically, the rest of the building process after running Ant is as follows: 1. Go ${JTC_HOME}/jk/native2 and run ./buildconf.sh. (as stated in http://www.blacksheepnetworks.com/security/resources/apache2-tomcat404-howto.html) This will create the configure file. 2. Run /configure --with-apxs2=${APACHE_HOME}/bin/apxs --with-java-home=${JAVA_HOM E} . This will create the Makefile file. 3. Run make. 4. Look for mod_jk2.so file and place it in the proper location (${APACHE_HOME}/modules) * Mr. Eggers mini how-to (http://marc.theaimsgroup.com/?l=tomcat-userm=106541574307371w=2) is more complete and I think has gone through a whole lot more testing than my procedure; I suggest to look at and try his instructions first. Now, since I'm dealing with the embedded version of Tomcat (JBoss/Tomcat bundle), I'll dive into configuring it to work with Apache... again, any help would be greatly appreciated... ;^) Any results (good bad) will also be posted :-) Best regards, Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to deploy ejb in tomcat
Hi... You'll probably get lots of answers, but here's a very short one ;-) Tomcat IS NOT a container for EJB's... you might want to take a look at JBoss (www.jboss.org)... Regards, Carlos To define recursion, we must first define recursion. - Original Message - From: bala magesh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 05, 2004 9:35 AM Subject: how to deploy ejb in tomcat hai to all i expect from any one how to deploy a ejb in tomcat plz reply soon bala _ Gujarat Kite Fest at http://go.msnserver.com/IN/40247.asp www.gujaratkitefest.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: Installing jakarta on linux RH9 (LEONARDO)
Hola, sobre tu pregunta, la más reciente versión de Tomcat es la que mencionas en tu correo (4.1.29), puedes instalar esa. Personalmente yo no he tenido problemas con la versión anterior (4.1.27) He trabajado con esa cerca de dos meses sin dificultad. (Hi. About your question: yes, the latest Tomcat release is the one you mention in your email: 4.1.29, you could start with it. Personally, I'll stay with the previous stable version, 4.1.27. I have been working nice with it for about 2 months) Te recomiendo que hagas la instalación evitando los RPM's. Baja el archivo *.tar.gz y trata de hacer la instalación a mano, hay varios tutoriales buenos para eso (por ejemplo: http://daydream.stanford.edu/tomcat/install_web_services.html) I recommend that you install Tomcat avoiding RPM's. Download source files and do it by hand, there are excelent tutorials for this (ie. http://daydream.stanford.edu/tomcat/install_web_services.html) Buena suerte! Gud luck! - Original Message - From: LEONARDO MARTINEZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:00 PM Subject: Installing jakarta on linux RH9 Hi! I need install a web server on RH9 that support jsp, it's web server is a jakarta Tomcat but I don't know da version to install, maybe v 4.1.29 ?? PLZ send a answer (sorry, I'm not a native english, im spanish) LOL BR SONNIC - 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]
Apache Tomcat 4.1.29 and Sysdeo plugin
Playing today with the new Apache Tomcat release I found that the plugin had trouble starting Tomcat within the Eclipse IDE... but also found out that the plugin must be configured to use Tomcat Version 5.x (WindowsPreferencesTomcatTomcat versions radio buttons) instead of version 4.1.x (even though you have 4.1.29 installed) to work as expected... I allready sent this comment to the guys at Sysdeo, but just in case someone here ran into the same problem the above setting will do the trick... If anyone can shed some light on why could this be happening I would be very happy :-) God luck... have a nice weekend... Regards, Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss embedded Tomcat setup with IIS - 2nd post
Hi HS. I'm also having problems with the embedded Tomcat distribution. So far I haven't been able to find reliable documentation on the subject but I suggest you start with the free Quickstart guide for JBoss (@jboss.org documentation) and also take a look at the forums in the same web site. I once read there that in order to deploy a WebApp in embedded Tomcat you have to WAR the application; trying to do it recreating the directory structure within the /server/default/deploy path just wouldn't work. The quickstart guide and the forums should give you a starting point. Whatever else I'll find, you'll be the first to know ;-) Good luck!!! Best regards, Carlos C. From: Haytham Samad [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: JBoss embedded Tomcat setup with IIS - 2nd post Date: Mon, 15 Sep 2003 22:10:27 -0500 Okay. I am trying to setup Tomcat with IIS. I have done this before successfully with Tomcat standalone. Now I have to use JBoss with Tomcat embedded (jboss-3.2.1_tomcat-4.1.24). The configuration is not working so well nor does it map as nicely. Anywhere I can look to get a description of what needs to be done? Has anyone done this and wants to share what needs to be done? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat as an in-process Servlet container?
Howdy Bill. My confusion comes from the fact that when using channelSocket to connect Apache and Tomcat I can type the URL of any WebApp without specifying Tomcat's listening port because the mapping/forwarding is handled in the config files, but after configuring ChannelJni to handle Apache-Tomcat communication I'm forced to include the port number (8080) in the URL to access the WebApps, otherwise I get an Internal Server Error. I wonder wether I'm missing something in my configuration because, as I stated, my main concern is to let user access any WebApp without having to type Tomcat's listening port. Thanks for taking time to answer. Best regards, Carlos Bill Barker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't really understand the question. If you are using channelJni, then there is no address or port: The data is passed in-memory. Carlos Cajina - Hotmail [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi everyone. I've followed the steps in http://www.greenfieldresearch.ca/technical/jk2_config.html for configuring Apache and Tomcat to communicate using JNI with good results, but there's just one thing that I can't figure out: When using channelSocket as the communication channel between the two servers is possible to use the workers2.properties file to configure the host:port where Apache is supposed to forward requests for non-static content, so a call to some http://host/webapp/index.jsp would be served transparently. Now, how do I do the same mapping when using channelJni? My main concern is to let user access any WebApp without having to type Tomcat's listening port. Regards, Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat as an in-process Servlet container?
Hi everyone. I've followed the steps in http://www.greenfieldresearch.ca/technical/jk2_config.html for configuring Apache and Tomcat to communicate using JNI with good results, but there's just one thing that I can't figure out: When using channelSocket as the communication channel between the two servers is possible to use the workers2.properties file to configure the host:port where Apache is supposed to forward requests for non-static content, so a call to some http://host/webapp/index.jsp would be served transparently. Now, how do I do the same mapping when using channelJni? My main concern is to let user access any WebApp without having to type Tomcat's listening port. Regards, Carlos
Re: How to get tomcat to autostart on linux
Hi Bobbie. Please see http://daydream.stanford.edu/tomcat/install_web_services.html#java At the end of the HOW-TO you'll find what you need... Good luck!!! - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 8:52 AM Subject: How to get tomcat to autostart on linux Greetings, I need to know how to get tomcat to autostart on a redhat linux 8 box - can anyone tell me? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: NetBeans Debug in JSP Tag Files
Not annoying at all, all advices are welcome... in fact, I'll give it a try... Any suggestions to start (tutorials, samples, whatever - I don't know much about Eclipse)? Regards, Carlos - Original Message - From: Angus Mezick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:23 PM Subject: RE: NetBeans Debug in JSP Tag Files Don't mean to be annoying but this is EXTREMELY easy to do in eclipse. -Original Message- From: Carlos Cajina - Hotmail [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 6:19 PM To: Tomcat Users List Subject: Re: NetBeans Debug in JSP Tag Files Hi Shawn... Do you happen to have a How-To somewhere about integrating Netbeans Tomcat? :-) I don't want to use Netbeans' internal Tomcat server and I've been struggling a little to use both together... Regards, Carlos *** Oh, about your question, there's information at http://developers.sun.com/tools/javatools/tips/tip02-05-17.htm l that I think might be useful to you even if it's related to Forte for Java/Sun ONE Studio (you might also want to check out the viewlet)... - Original Message - From: Shawn Zernik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 08, 2003 12:40 PM Subject: NetBeans Debug in JSP Tag Files Tomcat-Users: I have the tag lib working. Thanks again. I was wondering if anyone could point me to a good tutorial on how to use NetBeans with Tomcat that's running. I can configure tomcat to allow debug connections and connect using NetBeans, but once I'm online with the server how do I trace through a JSP page? Shawn - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NetBeans Debug in JSP Tag Files
Hi Shawn... Do you happen to have a How-To somewhere about integrating Netbeans Tomcat? :-) I don't want to use Netbeans' internal Tomcat server and I've been struggling a little to use both together... Regards, Carlos *** Oh, about your question, there's information at http://developers.sun.com/tools/javatools/tips/tip02-05-17.html that I think might be useful to you even if it's related to Forte for Java/Sun ONE Studio (you might also want to check out the viewlet)... - Original Message - From: Shawn Zernik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 08, 2003 12:40 PM Subject: NetBeans Debug in JSP Tag Files Tomcat-Users: I have the tag lib working. Thanks again. I was wondering if anyone could point me to a good tutorial on how to use NetBeans with Tomcat that's running. I can configure tomcat to allow debug connections and connect using NetBeans, but once I'm online with the server how do I trace through a JSP page? Shawn - 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: Netbeans screwed up my Tomcat install
1. Delete Tomcat from the IDE. 2. Delete the $TOMCAT_HOME/conf/.nbattrs file and try replacing server.xml with original Tomcat installation file (attached)... I asked about Netbeans/Tomcat integration last week but apparently it is still a mistery ;-) Good luck!!! Hope this helps... - Original Message - From: Jim Lynch [EMAIL PROTECTED] To: tomcat [EMAIL PROTECTED] Sent: Monday, August 04, 2003 2:08 PM Subject: Netbeans screwed up my Tomcat install How do I get rid of it? I can always reinstall tomcat, but I sure don't want to. I installed netbeans 3.5 on Linux. Somehow it screwed up my Tomcat server configuration. I wasn't using it with tomcat, just debugging a stand alone java program. When I went to start Tomcat, it doesn't with this message: 2003-08-04 15:41:18 StandardContext[/resources]: Starting filter 'HTTPMonitorFilter' 2003-08-04 15:41:18 StandardContext[/resources]: Exception starting filter HTTPMonitorFilter java.lang.ClassNotFoundException: org.netbeans.modules.web.monitor.server.MonitorFilter I found the jar file in the Netbeans tree that has the Monitor Filter and copied it into the Tomcat tree, but then it failed to find something else from the Netbeans install. Rather than chase my tail tring to find the right jar files, how can I get rid of the Netbean dependency in Tomcat? Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. --
Tomcat 4.1.24/NetBeans IDE 3.5 integration
Good morning to all. This might look like a dumb question, but I haven't been able to figure out what's going on. Previous considerations: I've done the following with both the ZIP and EXE distribution of Tomcat. This is the problem: in NetBeans Runtime Tab-Server Registry-Installed Servers-Tomcat node I add my external tomcat installation, which is located in C:\ApacheGroup\Tomcat4.1.24. After doign this I'm able to start and stop the server instance using the IDE, but if during this setup I choose Full integration mode with the IDE I can't access any of the Tomcat's included WebApps (/admin, /manager, /examples) after starting the server from the IDE, I'm not even able to get http://localhost:8080, just error pages. Now, if I choose Minimum integration mode with the IDE everything works fine, I mean, I can/view use all of Tomcat's default WebApps. The bottom line is that in Minimum mode (according to NetBeans docs) the IDE does not modify any files in your Tomcat installation. Therefore, some features of the IDE will be unavailable, including HTTP monitoring, JSP compilation, and JSP debugging., and for development/test purposes I think I'll need those features. One thing that caught my attention was the fact that when starting Tomcat from the IDE in Full integtration mode and checking the open ports in localhost everything seemed to be fine, ports 8080 and 8009 where listening for connections. Does anybody have experience configuring such a development enviroment? Any help would be much appreciated. Regards, Carlos C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure tomcat users with encrypted password?
I think you'll have to try another authentication method if what you want is tighter security, perhaps using JDBCRealm with digested passwords. According to the Tomcat Docs, what you're trying to do is set up user authentication with Memory Realm, which is a simple demonstration implementation of the Tomcat 4 Realm interface. It is not designed for production use. At startup time, MemoryRealm loads information about all users, and their corresponding roles, from an XML document (by default, this document is loaded from $CATALINA_HOME/conf/tomcat-users.xml). Changes to the data in this file are not recognized until Tomcat is restarted. Hope this helps. Regards - Original Message - From: eric scroger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 5:37 PM Subject: Configure tomcat users with encrypted password? How do I configure Tomcat so the tomcat-users.xml file uses encrypted passwords and not just plain text? Eric - 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]
Don't know what happened
ENVIROMENT: Tomcat 4.1.24 + Apache 2.0.47 + mod_jk2 2.0.43 on Windows XP Professional PROBLEM: I installed and configured Apache + Tomcat according to directions in http://www.greenfieldresearch.ca/technical/jk2_config.html#socket Everything was working fine but now when starting Tomcat all the logs point out this problem: java.lang.ClassNotFoundException: org.netbeans.modules.web.monitor.server.MonitorFilter at A lot of places actually - If necessary, I'll include the complete log Yesterday I configured NetBeans (v3.5) to use my Tomcat external installation (C:\ApacheGroup\Tomcat4.1.24\) during development by adding it to the Server Registry-Installed Servers-Tomcat section in NetBeans' Runtime tab, but that was all I did, didn't change any configuration file(s). Don't know if this is the root of the problem, but it is the only strange thing I've done to my Apache+Tomcat enviroment. Any help would be very much appreciated before I go for the caveman's solution: reinstall/reconfigure everything ;-) Regards, Carlos Cajina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 mess
Hi. I've been trying to configure Apache 2.0.44 and Tomcat 4.1.18 to work together under WinXP Pro with no success. Maybe somebody on the list allready did this and can point out the things I'm missing or doing wrong. Here's what I've done so far: 1. Added the LoadModule jk2_module modules/mod_jk2-2.0.43.dll line in Apache's httpd.conf file. 2. Modify Tomcat's server.xml file to define a Coyote/JK2 AJP 1.3 Connector on port 8009 as follows: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / 3. Left unchanged the default Tomcat jk2.properties file. Here it is: # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess 4. Tried to use some of the example workers2.properties file (which I placed in the Apache conf directory) shown in http://jakarta.apache-korea.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html, like this: # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 After doing this Tomcat starts just fine, but Apache gives me this error messages on the Windows Event Viewer: a)Event Type: Error Event Source: Apache Service Description: The Apache service named reported the following error: (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80. b) Event Type: Error Event Source: Apache Service Description: The Apache service named reported the following error: no listening sockets available, shutting down. c) Event Type: Error Event Source: Apache Service Description: The Apache service named reported the following error: Unable to open logs. I'll appreciate any help. Kind regards, Carlos Cajina
J2EE Form-based Authentication
Although it may not address the specific requests made on this list, I found an article about form-based authentication that could be useful. Here it is: http://www.onjava.com/pub/a/onjava/2002/06/12/form.html Regards. Carlos
Re: Tomcat web server
Hi. Precisely I'm tryin' to configure Apache to work with Tomcat, however, the example configuration files and instructions in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html don't seem to work in my Windows XP Pro enviroment. I'm using the default jk2.properties file and inlcuding the LoadModule jk2_module modules/mod_jk-2.0.43.dll command in my httpd.conf file. Tomcat starts just fine but Apache does not and the error description I get in the Windows Event Viewer is as follows: Event Type: Error Event Source: Apache Service Event Category: None Description: The Apache service named reported the following error: Can't locate API module structure `jk2_module' in file C:/ApacheGroup/Apache2/modules/mod_jk-2.0.43.dll: No error . Is there something I am missing? Best regards, New-to-the-list-and-to-this-stuff :) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 9:16 AM Subject: RE: Tomcat web server There are explanations about why we shall use Apache + Tomcat not TC alone. I think the main reason is Apache interprets htm/html page faster than Tomcat while Tomcat is good at interpreting jsp/servlet. Things have changed. Tomcat now claims interpret htm/html as fast as Apache. If your web site mixes html/html and jsp/servlet generated pages, try Apache + Tomcat. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: x x [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 8:58 AM To: Tomcat Users List Subject: Tomcat web server I have a web server runnig Tomcat 4.1.8, i want to know what its better to run only TOMCAT for my webserver or run tomcat with apache. I`m newbie in this stuff. thanks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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: Tomcat web server
Yes, here's a copy of it... # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp The Tomcat connector is using the same port, I checked it in the server.xml file. Regards, CC - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 10:02 AM Subject: RE: Tomcat web server Have you created workers2.properties in apache2/conf? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Carlos Cajina [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 11:00 AM To: Tomcat Users List Subject: Re: Tomcat web server Hi. Precisely I'm tryin' to configure Apache to work with Tomcat, however, the example configuration files and instructions in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html don't seem to work in my Windows XP Pro enviroment. I'm using the default jk2.properties file and inlcuding the LoadModule jk2_module modules/mod_jk-2.0.43.dll command in my httpd.conf file. Tomcat starts just fine but Apache does not and the error description I get in the Windows Event Viewer is as follows: Event Type: Error Event Source: Apache Service Event Category: None Description: The Apache service named reported the following error: Can't locate API module structure `jk2_module' in file C:/ApacheGroup/Apache2/modules/mod_jk-2.0.43.dll: No error . Is there something I am missing? Best regards, New-to-the-list-and-to-this-stuff :) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 9:16 AM Subject: RE: Tomcat web server There are explanations about why we shall use Apache + Tomcat not TC alone. I think the main reason is Apache interprets htm/html page faster than Tomcat while Tomcat is good at interpreting jsp/servlet. Things have changed. Tomcat now claims interpret htm/html as fast as Apache. If your web site mixes html/html and jsp/servlet generated pages, try Apache + Tomcat. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: x x [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 8:58 AM To: Tomcat Users List Subject: Tomcat web server I have a web server runnig Tomcat 4.1.8, i want to know what its better to run only TOMCAT for my webserver or run tomcat with apache. I`m newbie in this stuff. thanks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I...
turn on the Apache auto-configure setting in Tomcat 4.x under Win32? Apparently in Tomcat 3.x this could be achieved by modifying ther server.xml file, but this file seems to be different in the Tomcat 4.x release and I'm not sure where to add the modifications. To configure Tomcat to generate the Apache auto-configuration add the following block to your TOMCAT_HOME/conf/server.xml file after AutoWebApp ... /. ApacheConfig /Regards,CC
Re: Fatal Error Console Message when using Tomcat's WebDAV
You should use a simple text editor to modify xml files... Notepad works fine... - Original Message - From: Gogulapati, Srividya [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Sent: Friday, February 07, 2003 2:22 PM Subject: Fatal Error Console Message when using Tomcat's WebDAV I installed Tomcat 4.1.18. I made changes to conf\server.xml to have write access. When I use Microsoft Word 2000 to save a file in the location - http://localhost:8080/webdav http://localhost:8080/webdav It gives me a list of files in webdav directory, but also gives the following message on the command line. [Fatal Error] -1:-1: Premature End of File This happens on the PROPFIND servlet request in webdavServlet::doPropFind method when the parse() method is called on document object. Does any of you have any idea as to why this happens ? Am I using wrong versions of Xerces Parser? Thanks Srividya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]