compiling mod_jk 1.2.8 from source on Win32
I have visual studio 6 service pack 5 installed. I have the processor packs installed. I have set APACHE1_HOME to my apache_1.3.33 source directory. I have set JAVA_HOME to my JDK directory. APACHE_HOME is set to the apache installation directory. A colleague advised me to change these two lines in the mod_jk.dsp file from ADD CPP /nologo /MD /W3 /O2 /Zi /I ..\common /I $(APACHE1_HOME)\include /I $(APACHE1_HOME)\src\include /I $(APACHE1_HOME)\src\os\win32 /I $(JAVA_HOME)\include /I $(JAVA_HOME)\include\win32 /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /D _USRDLL /D MOD_JK_EXPORTS /FdRelease\mod_jk_src /FD / to ADD CPP /nologo /MD /W3 /O2 /Zi /I ..\common /I $(APACHE1_HOME)\include /I $(APACHE1_HOME)\src\include /I $(APACHE1_HOME)\src\os\win32 /I $(JAVA_HOME)\include /I $(JAVA_HOME)\include\win32 /D EAPI /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /D _USRDLL /D MOD_JK_EXPORTS /FdRelease\mod_jk_src /FD / Note the only change is the addition of /D EAPI. I did this in the release and debug sections, and of course uncommented those lines. I'm expecting this to produce a DLL. However I get 19 errors when I run ``MSDEV mod_jk.dsp /MAKE ALL''. Here are the errors from the Release build: Configuration: mod_jk - Win32 Release C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_ajp_c ommon.c( 32): Could not find the file util_ebcdic.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_ajp_c ommon.c( 35): Could not find the file novsock2.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(47): Could not find the file ap_config.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(51): Could not find the file ap_config.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(52): Could not find the file apr_strings.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(53): Could not find the file apr_lib.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(66): Could not find the file unistd.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(68): Could not find the file novsock2.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(75): Could not find the file netdb.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(76): Could not find the file netinet/in.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(77): Could not find the file sys/socket.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(80): Could not find the file netinet/tcp.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(81): Could not find the file arpa/inet.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(82): Could not find the file sys/un.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(84): Could not find the file sys/socketvar.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(87): Could not find the file sys/select.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(91): Could not find the file sys/time.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(92): Could not find the file sys/ioctl.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(172) : Could not find the file util_ebcdic.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_mt.h( 59): Could not find the file pthread.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(47): Could not find the file ap_config.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(51): Could not find the file ap_config.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(52): Could not find the file apr_strings.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(53): Could not find the file apr_lib.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(66): Could not find the file unistd.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(68): Could not find the file novsock2.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(75): Could not find the file netdb.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(76): Could not find the file netinet/in.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(77): Could not find the file sys/socket.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(80): Could not find the file netinet/tcp.h. C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa l.h(81): Could not find the file arpa/inet.h.
RE: Tomcat Webserver
Tomcat is capable of server static and dynamic content with out Apache. One of the main benefits to using Apache is to let Apache server the static content and thereby reduce the load on Tomcat. By default, the document roots for your various webapps are in $CATALINA_HOME/webapps/$WEBAPP_NAME . At least that's true of Tomcat 4.1.x. I haven't begun using 5.0.x yet. All of this is covered in the docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html -Original Message- From: Marcelo Muzilli (Gelt) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 3:42 PM To: [EMAIL PROTECTED] Subject: Tomcat Webserver Importance: High Howdy TomcatERs, I would like to know if Tomcat has an webserver inside it or do I have to work with Apache (for example) together. If yes, where is the DocumentRoot directory? Regards, Marcelo Muzilli GELT Tecnologia www.gelt.com.br [EMAIL PROTECTED] Tel: +55 (43) 3375 3187 - 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 as Win2k service
Uhm, did you read the docs at all? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Installation as a service: Tomcat will be installed as a Windows NT/2k/XP service no matter what setting is selected. Using the checkbox on the component page sets the service as auto startup, so that Tomcat is automatically startup when Windows starts. For optimal security, the service should be affected a separate user, with reduced permissions (see the Windows Services administration tool and its documentation). -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 5:55 PM To: Tomcat Users List Subject: Tomcat as Win2k service Hi, I am using Tomcat5 on win2k Professional. I want to use it as a windows service. Please help. Thanks. Yogesh __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! 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]
Windows Service Source Code
I wanted to take a look at the source code for tomcat.exe that can be installed as a windows service. I downloaded and looked through the 4.1.30 src distribution and don't see anything. Can someone point me in the right direction? Charles H. Baker O: 864.422.5349 C: 864.201.8456 [EMAIL PROTECTED] Whatever you vividly imagine, ardently desire, sincerely believe and enthusiastically act upon must inevitably come to pass! -- Paul J. Meyer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logging
I'm using tomcat 4.1.30 on Red Hat Linux w/ Sun JDK 1.4.2_03. In catalina.sh one of the other admins has redirected standard out to a log file so that we can capture some info that would ordinarily only be seen at the console. What we would like to do is have the tomcat container itself, not just a particular web application, use log4j to log it's messages. Also, after the container is up and all webapps have been deployed, we would like to lower the logging level of the container from say INFO to FATAL. We are already doing this with JBoss but haven't been able to figure a way to do this with tomcat. I've googled and looked at the archives w/o finding anything relevant. Does anyone have a clue? Charles H. Baker O: 864.422.5349 C: 864.201.8456 [EMAIL PROTECTED] Whatever you vividly imagine, ardently desire, sincerely believe and enthusiastically act upon must inevitably come to pass! -- Paul J. Meyer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: export exel stylesheets from jsp
--- Barney Hamish [EMAIL PROTECTED] wrote: I assume you mean spreadsheet and not stylesheet... Unless you really need something complicated from excel why don't you just send a csv (comma seperated values) file. Excel can open CSV files like normal excel format spreadsheets. {{SNIP}} Try the Java Excel Api: http://www.andykhan.com/jexcelapi/ = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwin Schrodinger __ 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]
Re: how do I reference a bean that's inside my jsp page?
--- Jeff Ousley [EMAIL PROTECTED] wrote: Hello, I cannot seem to get this example below to work under tomcat (I'm using version 4.1.18). I get an error indicating that the class localBean cannot be found such as: java.lang.ClassNotFoundException: localBean at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) I tried doing an import (which is now commented out) to no avail. Can I not have a bean in my jsp page? If I can, how do I reference it or what do I set so that it can be found? thanks! example page HTML %-- %@ page import=localBean % --% %! // this is a local helper bean for processing the HTML form static public class localBean { private String value; public String getValue() { return value;} public void setValue(String s) { value = s; } } % jsp:useBean id=localBean scope=page class=localBean Where is the bean class file? Is it in $CATALINA_HOME/webapps/yourApp/WEB-INF/classes ? Is the bean in a package? If so, it needs to be in a corresponding directory structure under classes. Is you bean in fact named localBean.[java|class] ? Convention says Java classes should be named LocalBean.java. {{SNIP}} = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Perl And Tomcat
--- Scott Purcell [EMAIL PROTECTED] wrote: Hello, I have been beating my head on a wall all afternoon, trying to get Perl to work with Tomcat. I can call up the CGIServlet, and it shows that the tomcat side is working. The problem is in the fact that I cannot seem to get a perl cgi to run. Has anyone out there ever ran perl on Tomcat? If so does one need to call the script as param input? Any ideas, help would be appreciated. Thanks, Scott I'm curious as to why you want to do it? Why use a Java app server to call a PERL script even if it can? Why not just use Apache httpd? These questions are just for my personal edification, and aren't meant to be disparaging. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how do I reference a bean that's inside my jsp page?
--- Jeff Ousley [EMAIL PROTECTED] wrote: Charles, The bean is actually on the same page in a declaration block. If I pull the bean out and put it into it's own class file, I can get it to work. I was just trying to get the example from the tutorial to work. It seems to work on the tutorial site, but I'm not sure what application server they are using. -jeff {{SNIP}} I cannot imagine how that would work in any app server. A Java bean is it's own class that can be used by a jsp, a servlet, or even a Java gui app. Strange. What tutorial are you looking at? = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Debian packages
--- Reynir_Hübner [EMAIL PROTECTED] wrote: Has anyone created debian packages of tomcat 4.1.x ? Please inform me of where to find these if there are any available (I've only found some unstable packages). Thanx [EMAIL PROTECTED] That is one of the reasons I upgraded my machine to unstable. I've had few problems so far, and none related to tomcat and java. Of course the machine in question is not a mission critical server. YMMV. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: iPlanet 6.0 / Tomcat 4.1.18 / W2k
--- John P. Dodge [EMAIL PROTECTED] wrote: You are probably going need to compile it yourself from the source. I have compiled it on Solaris and it is pretty simple, but I don't know about Win32. On Thu, 9 Jan 2003, Pipho Matt wrote: We are trying to run Tomcat 4.1.18 as our servlet runner with iPlanet 6.0 as the web server on a Windows 2000 server. We have iPlanet and Tomcat running successfully independently of each other. We now would like to have iPlanet forward the servlet requests to Tomcat. I just did an install of iPlanet 6.0 and it includes a Servlet/JSP container. I'm curious as to why you need tomcat? I use tomcat with apache in other places, but this particular job is anti-freesoftware so they shelled out the bucks for iPlanet. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to organize your software in proper version control structure?
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Tue, 7 Jan 2003, Will Hartung wrote: Date: Tue, 7 Jan 2003 10:05:05 -0800 From: Will Hartung [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to organize your software in proper version control structure? From: Timo Riikonen [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 3:46 AM Subject: How to organize your software in proper version control structure? Hello, Here ia a question that may not have only one correct answer, but I hope you will try to give me your answer still. How to organize your software in proper version control structure? The Application Developer's Guide that ships with Tomcat describes, among other things, the directory structures I recommend for webapp development: http://jakarta.apache.org/tomcat/tomcat-4.1-dev/appdev/ That link didn't work for me, but this one did: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html {{SNIP}} = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Easy question - Java Beans
--- Denise Mangano [EMAIL PROTECTED] wrote: Just curious if anyone knows how to use bean properties so that on a retry of a form, the previously selected item in a select list is maintained if validated. For example, for Select Your State. If I select NY, but something else on my form is wrong, when Retry.jsp is brought up, the State select box is still on NY. Is this possible? I am currently using the same code as I do for the text fields, but the state is not being maintained. Thanks! You should probably give Struts a try. It can help you out with this sort of thing. http://jakarta.apache.org/struts/ = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Should not be this hard
--- Randy Paries [EMAIL PROTECTED] wrote: Hello, me again This should have been so easy (famous last words) I am upgrading from tomcat jakarta-tomcat-4.0.4 to jakarta-tomcat-4.1.17 4.0.4 was working fine. For some reason I can not find my servlets ARG! I believe that the servlet-mapping sections in web.xml are now required. Do you have those for all of your servlets? {{SNIP}} = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ BOFH excuse #106: The electrician didn't know what the yellow cable was so he yanked the ethernet out. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how many linux processes should tomcat create???
--- Brandon Cruz [EMAIL PROTECTED] wrote: Does anyone know how many processes tomcat should create? When I start my server, there are about 525 processes created. The number constantly grows as time goes on, but I think it is related to a database connection being left open. 525 seems like a lot to start with though. Brandon Wow 525! I've got 53 lines listed. I started to say it's just becuase of the way the kernel deals with threads...what you're seeing is threads and not heavy weight processes, but 525 is a whole order of magnitude more than what i've got going on. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cannot shutdown Tomcat with GLIBC in unstable
I just tried to shutdown Tomcat 4.1.12-2 using Sun JDK 1.3.1_03 on my box running unstable. I got the following undefined symbol message and Tomcat does not shutdown. Does anyone have a suggestion for what I should do other than kill the Tomcat pids? I wonder if I do that will Tomcat be able to restart? usmghdebian:~# /usr/share/tomcat4/bin/shutdown.sh Using CATALINA_BASE: /usr/share/tomcat4 Using CATALINA_HOME: /usr/share/tomcat4 Using CATALINA_TMPDIR: /usr/share/tomcat4/temp Using JAVA_HOME: /usr/local/java1.3 Error occurred during initialization of VM Unable to load native library: /usr/local/stow/jdk1.3.1_03/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference usmghdebian:~# = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
changing root webapp
I had successfully changed the root webapp on a tomcat 3.x installation. I upgraded to 4.1.12, but cannot seem to get it regard my webapp as the root webapp. Anyone have a clue or a few pointers? I don't have access to the machine right now, but I can send my server.xml later if need be. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is Tomcat a J2EE Container as well??
--- Kwok Peng Tuck [EMAIL PROTECTED] wrote: No servlet and jsp only. Nicholas Orr wrote: Just a quick one, Can you run full blown J2EE apps in Tomcat?? If so do you need to do anything special or is it ready to go out of the box?? Nicholas Orr {{SNIP}} Try jboss and tomcat together: http://www.jboss.org/downloads.jsp = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Profiling with tomcat
--- Steinar Bang [EMAIL PROTECTED] wrote: Ralph Einfeldt [EMAIL PROTECTED]: From: Steinar Bang [mailto:sb;dod.no] Is this program available for free download? I was unable to determine from the web pages whether it was a freely downloadable program, or whether it was a commercial product. Have a look at http://www.hp.com/products1/unix/java/hpjmeter/downloads/license_hpjmeter_1-5.html I've seen it. But it contradicts with the information that's displayed during download, ie. the 90 day's warranty statement, that looks like it's meant for a commercial product. I kept looking for where they would be asking me for my credit card number. {{SNIP}} I'm late on this thread, so forgive me if this has already been covered, but what's wrong with the plain, freely available jmeter? http://jakarta.apache.org/jmeter/ = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: sendRedirect not working correctly
--- Jared Reeve [EMAIL PROTECTED] wrote: Using Apache Tomcat/4.1.12 I have my application under the webapps directory. When I do a sendRedirect to /servlet/MyServlet I get an HTTP Status 404 - The requested resource (/servlet/MyServlet) is not available. The correct path should be /MyApp/servlet/MyServlet. It appears it is not prepending the Root URI (MyApp). Any suggestions I assume that you are calling sendRedirect() in a servlet? If so then why not use MyServlet? You are already at /MyApp/servlet/. Is it a jsp in /MyApp? Then try servlet/MyApp. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
modssl apache tomcat and rewrites
I found a nice little snippet of code to force certain pages to be served via ssl by applying a rewrite wule to them. What I want is to have apache change http://my.domain.com/form.jsp to https://my.domain.com/form.jsp Here is my rewrite rule that I adapted from the mod_ssl FAQ. RewriteEngine on RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 \ [R,L] RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 \ [R,L] I can get https to work if the typed in url begins with https, but the rewrite always yeilds a 404. BTW, I'm using a pathced apache version 1.3.22, and tomcat 3.2.3. We are planning to upgrade, but can't yet. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jnar file best practices tomcat 4.x
One of the apps I'm working with needs the javax.xml.* packages. I put the needed jars in /path/to/webapps/app/web-inf/lib Is this a good practice? Or should they go in the common/lib or perhaps the JDK's on lib/ext ? If this or a similar topic has been beat to death already just tell me to go read archives and I cheerfully will. Thanks. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jnar file best practices tomcat 4.x
--- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, /path/to/webapps/app/web-inf/lib Is this a good practice? Or should they go in the common/lib or perhaps the JDK's on lib/ext ? If this or a similar topic has been beat to death already just tell me to go read archives and I cheerfully will. Thanks. You don't want to put things in lib/ext unless you have to. The general idea is not to mess with the default JDK installation without good reason. ;) If you have more than one web application that will use the same jars, common/lib is a good location for those jars. Otherwise, /app/WEB-INF/lib is the right place. The documentation on the classloader hierarchy can help you determine where to place jars. It's at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html {{SNIP}} Thanks. I'll read that. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0.4 apache 2.0.39 integration
--- Koes, Derrick [EMAIL PROTECTED] wrote: http://www.galatea.com/flashguides/index snip Really nice useful link. Thanks = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: The best website database!
--- Basil Bourque [EMAIL PROTECTED] wrote: SNIP I did not catch the earlier part of this thread, but let me throw in my favorite db: FrontBase http://www.FrontBase.com/ It is native software, but runs on many Unixes, MS Windows, and Mac OS X, with a most excellent GUI admin tool for Mac OS X. It includes an excellent free JDBC driver (the best I've seen actually). FrontBase fully supports Unicode, and even uses Unicode internally for storing data. It is a commercial product, but has a free developer license, and a free deployment license (with some restrictions such as no backup feature). FrontBase is a mature, complete SQL database without the glaring holes in functionality that you'll find in hsqldb, Postgres, and MySQL. FrontBase stands out in its commitment to following standards, most especially the SQL92 standard. The makers of FrontBase go so far as to consider Date's book A Guide To The SQL Standard to be their documentation. http://www.bookpool.com/.x/isppqxs3im/sm/0201964260 Not saying you're wrong or right, but what do you see as the glaring holes in Postgres 7.2? And certainly not wanting to start any flame wars. SNIP = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Book recommendation
--- Carl Bacher [EMAIL PROTECTED] wrote: There's one coming out soon - hopefully. Developer's Guide to Tomcat 4 by Alex Garrett Jeff Kean and published by Manning SNIP Cindy Ballreich wrote: I can't speak to the others, but I really didn't like JSP, Servlets, and Mysql. It reads nicely, but the examples are full of really basic errors. Be sure to check out the reader reviews on Amazon for any book you're interested in. They can be very helpful. At 10:26 AM 6/21/02 -0700, [EMAIL PROTECTED] wrote: SNIP Some books that came up on Internet search were... 1) MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL By James Turner 2) Apache Jakarta-Tomcat by James Goodwill 3) JSP, Servlets, and Mysql by Dave Harms 4) Professional Java Server Programming (many authors) Any other ones out there and which one would you recommend? SNIP I just got back from Developing J2EE Compliant Enterprise Applications, a Sun course. The instructor recommended 4) in your list, Core J2EE Patterns and the latest edition of the O'Reilly EJB book. I've also been looking over EJB Design Patterns and the previews of the Struts book both of which are available from http://www.theserverside.com/ = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JavaBeans
--- Anibal Constante Brito [EMAIL PROTECTED] wrote: I have the same problem of other, I read a some tutorial too and... public class UserData { String username; String email; int age; public void setUsername( String value ) {... I put in UserData.java and compiled and put in the same directory \WEB-INF\classes, and when call I find this and compiled and put in the same directory \WEB-INF\classes, and when call SaveName.jsp jsp:useBean id=user class=UserData scope=session/jsp:setProperty name=user property=*/ receive this error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 1 in the jsp file: /SaveName.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\_\SaveName$jsp.java:56: Class org.apache.jsp.UserData not found. UserData user = null; ^ SNIP Did you include a package statement in your UserData.java file? Something like package org.apache.jsp; ? If so, then the compiled class file needs to be in /WEB-INF/classes/org/apache/jsp/ = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlets
--- Anibal Constante Brito [EMAIL PROTECTED] wrote: Hello: I dont understand somthing, I a beginner of Java programming and Tomcat. I read in some tutorial that when a wirte a servlet, just put the .java in \WEB-INF\classes and the tomcat compile this .java in .class, but I tried to do this useless. I have windows XP and my CLASSPATH:C:\Program Files\Apache Tomcat 4.0\common\lib and JAVA_HOME:C:\Program Files\jdk1.3.1_01\bin, and my web site is in d:\ SNIP No, servlet containers don't compile java code, whether regular classes or servlets, to *.class files automatically. Servlet containers will compile *.jsp files into servlets automatically. You must compile the servlets yourself. = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Some JSP Questions...
--- Frederick Aubert [EMAIL PROTECTED] wrote: Hi, I am currently building a Webapp for a project and I came on a couple of questions I didn¹t find any answer to. So if one of you has time to go through them and answer to them I would be thankful. Maybe it would be better to reply to my personal address directly for I guess my questions might be somehow unrelated to the main threads in this list... 1) I am using some static inclusions along the way, ie jsp:include page=²...² /, and in the included files I want to do some repetitive security check and/or connection check. When building the included files under my Java Development Environement (JBuilder 6), I am allowed to use session, request, and response object from inside the included files. Great... But I tried then to call the response.sendRedirect() methode, but when my Webapp was running the redirection was just simply skipped with no apparent reason... Any idea? Anything I missed? Or? I suspect this is because you have already committed a response from the including page. But wiser heads will have to confirm or deny. 2) Is there a way to use general constant defined either in a Java Class or in a Java Interface from inside JSP directive tag. For example I have a constant with the URL of the standard error page. I would like to call the constant instead of writing explicitly %@ param errorPage=²...² %. Or I would like to use, inside a jsp:include or jsp:forward, some parameterNames or paramaterValues that are constant. Is it a dream? Or is it possible somehow? 3) Is there a way to force re-initialization of, or invalidating, a JavaBean that was given the scope = ³session² without invalidating the whole session? As far as I am understanding, whenever you invalidate a session, you loose everything done so far, bean variables and attributes... Right? Oh and by the way are bean variables and attributes stored differently or are bean variables just another way to use session attributes? You have to write the bean class. You could always set the bean = null . Attributes don't require you to write another class, but I still prefer beans. Sincerely, Frederick Aubert --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,' [EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I'm getting no responses to my requests for help on this list
--- Gary Frick [EMAIL PROTECTED] wrote: Hi All, I've been working day and night trying to get Tomcat started and to get past the HTTP 500 error when trying to invoke the JSP examples. I've been combing the archives, but I'm not seeing any real solutions. What must I do and where must I go to get help? First it would be helpful to know what is going on. When I try to start Tomcat I get the following (See below. Only providing first few lines of trace). When I try //localhost/examples I can execute the servlets, but not the JSPs. On the JSPs I always get HTTP Status 500 messages. I've followed the recommendations to recheck the classpaths and environment variables (JAVA_HOME and TOMCAT_HOME), but this hasn't helped. For one thing I don't understand why port 8080 is already in use. How can I check? Thanks, Gary Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne ctor.java:1130) at org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j ava:950) Are you using windows or *nix? Do you have another web server or other server program running on your box that might be listening on port 8080? Do you have a java compiler installed? JSPs require a compiler, not just the jre. = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Classpath problems with Tomcat4 and RedHat 7.2
--- Jose Ferrer [EMAIL PROTECTED] wrote: Yes, CATALINA_HOME is set to /var/tomcat4 Here is my simple jsp %@ page language=java % %@ page import = java.util.* % %@ page import = java.io.* % %Properties prop = System.getProperties(); % Java class path: %=prop.getProperty(java.class.path)% % Properties props = new Properties(); FileInputStream fin = new FileInputStream(DBConnMgr.properties); props.load(fin); % P %=props.getProperty(admin.log)% The java.class.path returned is Java class path: /usr/java/j2sdk1.4.0/lib/tools.jar:/var/tomcat/common/lib/:/var/tomcat4/ bin/bootstrap.jar Notice the missing 4 in the common/lib classpath. It is interesting that the bootstrap.jar is listed as being in /var/tomcat4 but common/lib is listed as being in /var/tomcat. I'm still trying to figure out where the classpath is set. I know how to do this when tomcat is started from a shell but not as a daemon. If I place the DBConnMgr.properties file in my root directory it works. When I place it in /var/tomcat4/common/lib (or any other supposedly valid classpath) it does not. Jose Ferrer On Tuesday, May 07, 2002 12:10 PM, Larry Meadors [SMTP:[EMAIL PROTECTED]] wrote: Do you have a CATALINA_HOME environment variable set? That might cause this... [EMAIL PROTECTED] 05/07/02 09:21AM I am having problems reading a resource file I placed in /var/tomcat4/common/lib. I also tried placing it in /var/tomcat4/common/classes. I wrote a small JSP which lists the classpath and I notice it prints out as /var/tomcat/common/lib (missing the 4). Does anyone know where this is set? SNIP Hello, Jose! You know I'm a debian user, but I suppose something similiar happens on RedHat. My environment is built by the script /etc/init.d/tomcat4 . Some of the elements defined in there can be overridden by settings in /etc/default/tomcat4 . Do you have those files for starting tomcat4 as a daemon? If you like, I can email those scripts/files to you personally. = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
webmin
Does anyone have any experience using the webmin tomcat module w/ tomcat4.x? Does it work at all? = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Unix (Solaris) HTML Editor for Apache and Tomcat, Recommendations?
--- Brian Adams [EMAIL PROTECTED] wrote: netbaens! it will do that and more (java) when you are ready for servlets! :) www.netbeans.org -Original Message- From: C Cayetano [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 10:25 PM To: Tomcat Users List Subject: Unix (Solaris) HTML Editor for Apache and Tomcat, Recommendations? I use netbeans, but I think the key hear is wysiwig. I know netbeans has a code based html editor, but wysiwig html? I haven't come across that even in 3.3.1 = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Sharing a bean between servlet and jsp. Arrggghhhhh
Which is first the jsp or the servlet? I don't see any code in your servlet snippet that adds the new instance of the bean to the session. If the bean already exists in the session as created by the jsp, a session.setAttribute(myFormBean, fb) will overwrite the old bean values w/ the new values. If the servlet is first, you still have to add the bean to the session so that the jsp can use it. --- Dahnke, Eric [EMAIL PROTECTED] wrote: Now I'm going crazy. This can't be so hard. Please help... I can't figure this out. I'm trying to share a bean between a jsp page and servlet. Arggh... Please I help on other lists... and donate time to charity. I've been to Barnes and Noble and looked at a heap of texts. I've done no less than 500 Google searches. There are no errors, I just can't get this jsp:getProperty name=myFormBean property=userName / goddamned thing to display the userName bean property if fb.validate() fails. Everything works. I've got this begugger and can see the userName variable throughout the POST process. Everything's cool until the rd.forward (request, response), but once the forward takes place my jsp cannot again pick up the bean properties eventhough I say jsp:useBean id=myFormBean class=beans.FormBean scope=session/ I've tried every scope, and am using beans with straight JSP no problem (same application). Any ideas? Millions of Thanks Here's the JSP page. === jsp:useBean id=myFormBean class=beans.FormBean scope=session/ form method=POST action=controller input type=text name=userName jsp:getProperty name=myFormBean property=userName / input type=hidden name=event value=FORM_TEST input type=submit name=submit value=next /form Here's the two relavant parts of the servlet. public void process (ServletContext sc, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { FormBean fb = new FormBean(); fb.setUserName(request.getParameter(userName)); if (fb.validate()) { URL = index.jsp; } else { // go back URL = signup1.jsp; } } public void forward (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { RequestDispatcher rd = request.getRequestDispatcher(URL); rd.forward (request, response); } Here's the bean === package beans; public class FormBean implements java.io.Serializable { public String userName; public FormBean() {} public boolean validate() { boolean allOk=false; return allOk; } public String getUserName() { //return this.userName; // doesn't work either return userName; } public void setUserName(String uname) { this.userName = uname; } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Using a JavaBean from within a servlet
--- Dahnke, Eric [EMAIL PROTECTED] wrote: Hello, This is killing me. I've got a form that posts to a servlet. I simply want to get the form variables into a bean's properties. I can find only one reference to what I'm trying to do here. it is a formToBean() method from a FormUtils package, that some company sells. Reading form variables into and out of javabean from a servlet has to be a common activity. I can find heaps of info about using beans from JSP pages (specifically about introspection), but I need to manipulate bean properties from both Servlets and or JSPs. How do I do the introspection thing within a servlet? Code included below. JSP Post to a Servlet. - Servlet instantiates a FormBean - FormBean.validate() is called. - but the validate() is always false because the bean property vals are empty. Do I have to explicitly read each request.getParameter(FORM_VAR) and set that to a bean property? // from the servlet // FormBean fb = new FormBean(); fb.setProperty(*); // * this aint workin - here * if (fb.validate()) { URL = WELCOME; } else { // go back URL = INDEX; } // from FormBean // private String UserName; private String Password; public boolean validate() { Debug.log (this, validate,GETTING THIS FAR AT LEAST); boolean allOk=true; if (UserName.equals()) { errors.put(UserName,Please enter a username); //UserName=; allOk=false; } if (Password.equals() ) { errors.put(Password,Please enter a valid password); Password=; allOk=false; } return allOk; } public void setUserName(String uname) { UserName = uname; } public void setPassword(String pword) { Password =pword; } public String getUserName() { return UserName; } public String getPassword() { return Password; } SNIP What I do is something like this: // assuming we are creating a new session for login HttpSession session = request.getSession(true); FormBean formBean = new FormBean(); formBean.setUserName( request.getParameter(userName)); formBean.setPassword(request.getParameter(password)); if ( formBean.validate()) { session.setAttribute(formBean, formBean); URL = Welcome; } else { URL = Index; } = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is this a stupid question or something? Why no nibbles?
--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: At 01:08 AM 1/25/02 -0800, you wrote: FIRST If I want several development urls, e.g. app1.mycompany.com app2.mycompany.com app3.mycompany.com to be accessed through one registered url, e.g. www.mycompany.com can I do this with server.xml alone or do I have to also configrue the dns server to cooperate? Are you accessing these dev urls from outside your local LAN or inside? Do you have an internal DNS server? You are going to have to configure DNS for machines outside of your LAN to know what IP address app1.mycompany.com should resolve to. If you are only concerned w/ 1 or 2 internal machines you could set up a host file on those machines that maps the different name to the same IP address. Of course, if these are to be different contexts you will have to edit server.xml . I have yet to upgrade to 4.0 so I can't answer in detail about that. SNIP = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY
--- Ramkumar Menon [EMAIL PROTECTED] wrote: hi, I am getting the following error when I try accessing the database via a datasource . Dude, this is a mostly volunteer mailing list. People help out as they can, not on demand and not for pay. Also, in the USA, email w/ ALL CAPITAL LETTERS is considered to be SHOUTING and thus RUDE. This may or may not be true in other countries/cultures. Just thought I would let you know before you make to many people angry with you. = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Commercial Use of Apache
You don't have to get permission for anything. Apache and Tomcat are Free Software! http://www.apache.org/LICENSE.txt see also: http://httpd.apache.org/ABOUT_APACHE.html --- Hemant Singh [EMAIL PROTECTED] wrote: Hi All I am working on a project which is to be deployed on Apache-Tomcat and the client has asked to install the beta version of the same .I jus wanted to know informations like do i need to get some permissions from Apache if i use it for commercial purpose.I'll have to write him back the pricing information and other details too. Pls give me some details have anybody collected some informations Thanks in Advance Hemant = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Chaning location of initial web page
Well, I hope I'm getting this right. Any directory( or *.war or *.tar.gz or *.jar file) right under webapps that has the proper structure will be automatically loaded as a context. What does your server.xml say about the root, '/', context? What if you change the root directory to another name and make your app the root directory under webapps? --- Yoav Shapira [EMAIL PROTECTED] wrote: Hi, You can always use HTML or JSP forwarding, along the lines of: html head meta http-equiv=REFRESH content=0; URL=/miiq/index.html /head /html Or something like html head titleJSP Forwarder/title /head body jsp:forward page=/miiq/index.html /body /html Good luck, Yoav Ryan Brown wrote: We are having a alot of trouble changing the location of the first page that displays on Tomcat 3.2.3 server. If i start the server and then point my browser to http://localhost:8080/ it brings up the following file: d:\jakarta-tomcat-3.2.3\webapps\root\index.html how do I change this so that it brings up an index.html in a different directory on my harddrive: d:\webdevelopment\miiq\index.html I have searched all of the documentation and the mailing list archive and I have only gotten more confused. We have all of our development for our site in the above directory and need it to be the default directory when we are working. Thanks, Ryan Brown MI-Assistant Software Email: [EMAIL PROTECTED] = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
How to make Apache's docroot a tomcat webapp?
I want apache's docroot to point to a webapp directory containing static content as well as servlets and jsp's. I only have one site on this machine. do i still need to set up a virtual server in httpd.conf like this: VirtualHost 10.0.0.1:80 DocumentRoot /web/host1 ServerName host1.apache.org JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost and add something like this in server.xml for Tomcat: Host name=host1.apache.org Context path= docBase=/web/host1 debug=0/ /Host ? = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
SSL, Apache and Tomcat
I'm setting up apache and tomcat to process some credit card info and other personal data via verisign. For the moment, Apache and tomcat live on the same box. Do I need just one certificate or two? I will read more on apache and ssl, but there isn't much to the tomcat-ssl howto... = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
Re: SV: How to start/stop tomcat from a remote machine???
I just found this version of openssh for windowsNT but have not tested it. http://allserv.rug.ac.be/helpdesk/software/winscpeng.html And I would assume that once you've got it set up, you could log in as administrator and run the tomcat start and stop batch files. --- Hans-Erik Skyttberg [EMAIL PROTECTED] wrote: Hi! I do not know how to do it in NTm but this is how you could do it on a unix box. Let's say you have a users called tomcat that should start and stop tomcat. Then you can create a small shell script to call start stop tomcat like this: Call this script tomcat_stop.cgi: #!/bin/sh /opt/app/tomcat/bin/tomcat stop Call this script tomcat_start.cgi: #!/bin/sh /opt/app/tomcat/bin/tomcat start Do the following on thoose two scripts: chmod 750 tomcat_st* chgrp apache tomcat_st* # or whatever group id your apache is running as chown tomcat tomcat_st* # or whatever user you start stop tomcat as, should not be root though. chmod u+s tomcat_st* Now put them in a ScriptAliased dir on your webserver and protect them either by deby allow directives or maybe a .htpasswd or something equivalent, now you can start and stop your tomcat with a browser. Regards Hans - Erik Skyttberg Boxer TV Access AB Tegluddsv. 64 115 28 Stockholm +46 (0)8 587 899 64 +46 (0)733 35 70 64 -Ursprungligt meddelande- Från: Siomara Pantarotto [mailto:[EMAIL PROTECTED]] Skickat: den 25 september 2001 08:14 Till: [EMAIL PROTECTED] Ämne: Re: How to start/stop tomcat from a remote machine??? I am currently using windows NT. Could you provide more details on how exactly you do even for Linux or Solaris (and NT if possible) Thanks Sio From: Charles Baker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: How can I start/stop tomcat web server from a remote machine??? Date: Mon, 24 Sep 2001 18:00:17 -0700 (PDT) Are you using *nix or NT? On my Linux or Solaris boxes I just ssh in and start/stop whatever I want to. --- Siomara Pantarotto [EMAIL PROTECTED] wrote: Hi all, How can I start/stop tomcat web server from a remote machine??? In other words, how can I run the start/shutdown batch files that tomcat has to start/stop its services from a remote machine that is not the server that Tomcat is installed in? Thanks Siomara _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
Re: How can I start/stop tomcat web server from a remote machine???
Are you using *nix or NT? On my Linux or Solaris boxes I just ssh in and start/stop whatever I want to. --- Siomara Pantarotto [EMAIL PROTECTED] wrote: Hi all, How can I start/stop tomcat web server from a remote machine??? In other words, how can I run the start/shutdown batch files that tomcat has to start/stop its services from a remote machine that is not the server that Tomcat is installed in? Thanks Siomara _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
webapp directory as apache document root
What all needs to be changed to make a webapp's directory be the document root of my apache server? Do I just need to change the docment root entry in httpd.conf? = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
Re: Upgrading tomcat
Another question, do apps developed under the 3.2.x ( jsp 1.1/servlet 2.2 ) work well with Tomcat 4.0 and the newer servlet/jsp specs? --- John Hebert [EMAIL PROTECTED] wrote: Tia Haenni wrote: Has anyone gone from 3.2.1 up to 3.3? Does it require a complete uninstall of previous versions? Is it best to go with 3.3 or wait for 4.0? Thanks, On a Linux box, an uninstall is not needed. I assume it is the same on an MS-Windows box. The different versions of Tomcat are simply installed parallel to each other. You do have to shutdown the old install, as the new install will try to use the same port numbers (8007, 8009, 8080, etc). -- John Alex Hebert [EMAIL PROTECTED] System Engineer = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Basic Help
have you tried the url: http://your.machine:8080/examples or http://your.machine:8080/test have you read the User Guide that comes bundled w/ Tomcat or that is available here: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html I'm just guessing from the Ajp12ConnectionHandler on 8007 line that you're using Tomcat 3.2.1. What version of Apache are you using? Are you familiar at all with installing and configuring Apache or is this your first time? --- Chris Schierkolk [EMAIL PROTECTED] wrote: Please Excuse me for my ignorance Windows 2000 I am trying to install tomcat and apache in order to run a software packages that requires there presence. I downloaded apache last night and successfully installed it (I get the default **It works** page). I downloaded tomcat this afternoon and after a little tinkering I think it works. When I execute the startup command a new window pops up and it says 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /examples ) 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( ) 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /test ) 2001-07-19 18:58:14 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-19 18:58:14 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then proceed into the conf folder in tomcat and try to use the test_tomcat bin\tomcat.bat ant -f conf/test-tomcat.xml client I then get the horribly long message. I am not sure what else I need to configure to make tomcat work for one thing. Then I am not sure how to make tomcat and apache interact. Any help would be nice = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Basic Help
Well, those two links I used before, with the 8080 port, are directly to tomcat. The 8007 port is the port used for apache to talk to tomcat. --- Chris Schierkolk [EMAIL PROTECTED] wrote: Thank you Mr Baker for replying. The version of tomcat that I am running is 3.2.3 and Apache 1.3 This is my first time doing any of this. I guess first off I need to try to figure how to test tomcat standalone to ensure that it is working properly before I attempt to go any further - Original Message - From: Charles Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 7:45 PM Subject: Re: Basic Help have you tried the url: http://your.machine:8080/examples or http://your.machine:8080/test have you read the User Guide that comes bundled w/ Tomcat or that is available here: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html I'm just guessing from the Ajp12ConnectionHandler on 8007 line that you're using Tomcat 3.2.1. What version of Apache are you using? Are you familiar at all with installing and configuring Apache or is this your first time? --- Chris Schierkolk [EMAIL PROTECTED] wrote: Please Excuse me for my ignorance Windows 2000 I am trying to install tomcat and apache in order to run a software packages that requires there presence. I downloaded apache last night and successfully installed it (I get the default **It works** page). I downloaded tomcat this afternoon and after a little tinkering I think it works. When I execute the startup command a new window pops up and it says 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /examples ) 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( ) 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /test ) 2001-07-19 18:58:14 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-19 18:58:14 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then proceed into the conf folder in tomcat and try to use the test_tomcat bin\tomcat.bat ant -f conf/test-tomcat.xml client I then get the horribly long message. I am not sure what else I need to configure to make tomcat work for one thing. Then I am not sure how to make tomcat and apache interact. Any help would be nice = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Basic Help
Well, those two links I used before, with the 8080 port, are directly to tomcat. The 8007 port is the port used for apache to talk to tomcat. --- Chris Schierkolk [EMAIL PROTECTED] wrote: Thank you Mr Baker for replying. The version of tomcat that I am running is 3.2.3 and Apache 1.3 This is my first time doing any of this. I guess first off I need to try to figure how to test tomcat standalone to ensure that it is working properly before I attempt to go any further - Original Message - From: Charles Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 7:45 PM Subject: Re: Basic Help have you tried the url: http://your.machine:8080/examples or http://your.machine:8080/test have you read the User Guide that comes bundled w/ Tomcat or that is available here: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html I'm just guessing from the Ajp12ConnectionHandler on 8007 line that you're using Tomcat 3.2.1. What version of Apache are you using? Are you familiar at all with installing and configuring Apache or is this your first time? --- Chris Schierkolk [EMAIL PROTECTED] wrote: Please Excuse me for my ignorance Windows 2000 I am trying to install tomcat and apache in order to run a software packages that requires there presence. I downloaded apache last night and successfully installed it (I get the default **It works** page). I downloaded tomcat this afternoon and after a little tinkering I think it works. When I execute the startup command a new window pops up and it says 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /examples ) 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( ) 2001-07-19 18:58:14 - ContextManager: Adding context Ctx( /test ) 2001-07-19 18:58:14 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-19 18:58:14 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then proceed into the conf folder in tomcat and try to use the test_tomcat bin\tomcat.bat ant -f conf/test-tomcat.xml client I then get the horribly long message. I am not sure what else I need to configure to make tomcat work for one thing. Then I am not sure how to make tomcat and apache interact. Any help would be nice = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Fwd: NoClassDefFound
--- John Baker [EMAIL PROTECTED] wrote: On Thursday 12 July 2001 23:04 pm, you wrote: Hi, Weird!!! You can always use the Class class' getInstance(String className) method to get a copy of your class. You mean Class.newInstance(className) ? :-) Well I'd rather know why Tomcat does this. It's silly. Also, I get problems when Tomcat shuts down, ie another NoClassDefFoundException when the Class is clearly there. There must be some bug that needs solving here :-) And it's only /some/ Classes it can't find, others it can. I've tried changing compilers, trying the code outside of Tomcat (works fine), chainging VM's. Nothing makes a difference. It was only when I noticed that: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails Aren't t.start() and t.stop() deprecated? but t.run(); // works that I became very suspucious and decided this wasn't my fault. SNIP = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Fwd: NoClassDefFound
Sorry, you're right about that! stop(), suspend(), resume() and countStackFrames() are deprecated. --- John Baker [EMAIL PROTECTED] wrote: On Friday 13 July 2001 12:23 pm, you wrote: --- John Baker [EMAIL PROTECTED] wrote: On Thursday 12 July 2001 23:04 pm, you wrote: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails Aren't t.start() and t.stop() deprecated? Err, stop is, but if start was deprecated then threads would be a little difficult to run! = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
OT: Example using session bean in servlet like jsp
Can anyone point me to an example of using a bean w/ a servlet similar to the way a bean can be used with jsp pages? I'm not ready to implement EJBs or an EJB container yet. = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: web.xml not working
Here is a servlet definition from my web.xml file: servlet servlet-name Login /servlet-name servlet-class com.beeslender.servlets.LoginServlet /servlet-class servlet-mapping servlet-name Login /servlet-name url-pattern /Login /url-pattern /servlet-mapping /servlet Notice that servlet-mapping is a child of servlet. Also, did you create your servlets as part of a package? If so, you need a directory structure under $TOMCAT_HOME/sampleapp/WEB-INF/classes that matches your package. For example, $TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets That's where the *.class files would go. --- Erin Lester [EMAIL PROTECTED] wrote: I have created a web application as per the Servlet API specs and deployed it into the webapps directory of Tomcat in a directory called 'sampleapp.' The only way that I am able to access the webapp's servlet (which is in sampleapp/WEB-INF/classes) is by the url 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and this is only when I don't have a web.xml file in the WEB-INF directory. When I place the web.xml file that I created (using to the documents on the Sun and Jakarta sites) I am unable to find my servlet. The servlet mapping in the web.xml file looks like this: servlet servlet-nameStoryGeneratorServlet/servlet-name servlet-classStoryGenerator/servlet-class /servlet servlet-mapping servlet-nameStoryGeneratorServlet/servlet-name url-pattern/story/url-pattern /servlet-mapping I tried using the urls 'SERVERNAME/sampleapp/servlet/story' and 'SERVERNAME/sampleapp/story' I also tried to install the J2EE sample 'petstore' web application but had problems accessing the servlets with it too. I am able to get to the jsps and static files okay. Does anyone know what I am doing wrong? Thanks! Erin PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7 = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: web.xml not working
That was my web.xml for Erin to use as an example. Mine works just fine btw. --- Krishna Muthyala [EMAIL PROTECTED] wrote: Eric If you deploy your servlets using a web.xml then you should have your servlets properly packaged. so in your case you need to package your servlets as com.beeslender.servlets.LoginServlet package com.beelender.servlets; at the top of your Login Servlet and then you should map your web.xml in the following way servlet servlet-nameLoginServlet/servlet-name servlet-classcom.beeslender.servlets.LoginServlet/servlet-class servlet-mapping servlet-name LoginServlet /servlet-name url-pattern /com/beeslender/servlets/LoginServlet/* /url-pattern /servlet-mapping /servlet in your server.xml also you need to specify as followd Context path=/com docBase=webapps/com crossContext=false debug=0 reloadable=true /Context Context path=/com/beeslender docBase=webapps/com/beeslender crossContext=false debug=0 reloadable=true /Context Context path=/com/beeslender/servlets docBase=webapps/com/beeslender/servlets crossContext=false debug=0 reloadable=true /Context you want to make your servlets work, package them and deploy them as above, ok Kris --- Erin Lester [EMAIL PROTECTED] wrote: Thanks for the suggestion, but I don't think that's it. According to the Java Servlet Spec. v2.2 (ch. 13, pg 65), servlet-mapping isn't contained within the servlet element, but is a seperate element. In my original post I said I couldn't have a web.xml file in my application. That was incorrect, I am able to have a web.xml file, but the servlet mappings in it aren't working. To clarify, my servlet isn't in a package. - Erin On Tue, 26 Jun 2001, Charles Baker wrote: Here is a servlet definition from my web.xml file: servlet servlet-name Login /servlet-name servlet-class com.beeslender.servlets.LoginServlet /servlet-class servlet-mapping servlet-name Login /servlet-name url-pattern /Login /url-pattern /servlet-mapping /servlet Notice that servlet-mapping is a child of servlet. Also, did you create your servlets as part of a package? If so, you need a directory structure under $TOMCAT_HOME/sampleapp/WEB-INF/classes that matches your package. For example, $TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets That's where the *.class files would go. --- Erin Lester [EMAIL PROTECTED] wrote: I have created a web application as per the Servlet API specs and deployed it into the webapps directory of Tomcat in a directory called 'sampleapp.' The only way that I am able to access the webapp's servlet (which is in sampleapp/WEB-INF/classes) is by the url 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and this is only when I don't have a web.xml file in the WEB-INF directory. When I place the web.xml file that I created (using to the documents on the Sun and Jakarta sites) I am unable to find my servlet. The servlet mapping in the web.xml file looks like this: servlet servlet-nameStoryGeneratorServlet/servlet-name servlet-classStoryGenerator/servlet-class /servlet servlet-mapping servlet-nameStoryGeneratorServlet/servlet-name url-pattern/story/url-pattern /servlet-mapping I tried using the urls 'SERVERNAME/sampleapp/servlet/story' and 'SERVERNAME/sampleapp/story' I also tried to install the J2EE sample 'petstore' web application but had problems accessing the servlets with it too. I am able to get to the jsps and static files okay. Does anyone know what I am doing wrong? Thanks! Erin PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7 = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ === message truncated === = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: web.xml not working
Okay, that sample was just what I had modified/copied from the web.xml that was supplied w/ TomCat. --- Erin Lester [EMAIL PROTECTED] wrote: Thanks for the suggestion, but I don't think that's it. According to the Java Servlet Spec. v2.2 (ch. 13, pg 65), servlet-mapping isn't contained within the servlet element, but is a seperate element. In my original post I said I couldn't have a web.xml file in my application. That was incorrect, I am able to have a web.xml file, but the servlet mappings in it aren't working. To clarify, my servlet isn't in a package. - Erin On Tue, 26 Jun 2001, Charles Baker wrote: Here is a servlet definition from my web.xml file: servlet servlet-name Login /servlet-name servlet-class com.beeslender.servlets.LoginServlet /servlet-class servlet-mapping servlet-name Login /servlet-name url-pattern /Login /url-pattern /servlet-mapping /servlet Notice that servlet-mapping is a child of servlet. Also, did you create your servlets as part of a package? If so, you need a directory structure under $TOMCAT_HOME/sampleapp/WEB-INF/classes that matches your package. For example, $TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets That's where the *.class files would go. --- Erin Lester [EMAIL PROTECTED] wrote: I have created a web application as per the Servlet API specs and deployed it into the webapps directory of Tomcat in a directory called 'sampleapp.' The only way that I am able to access the webapp's servlet (which is in sampleapp/WEB-INF/classes) is by the url 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and this is only when I don't have a web.xml file in the WEB-INF directory. When I place the web.xml file that I created (using to the documents on the Sun and Jakarta sites) I am unable to find my servlet. The servlet mapping in the web.xml file looks like this: servlet servlet-nameStoryGeneratorServlet/servlet-name servlet-classStoryGenerator/servlet-class /servlet servlet-mapping servlet-nameStoryGeneratorServlet/servlet-name url-pattern/story/url-pattern /servlet-mapping I tried using the urls 'SERVERNAME/sampleapp/servlet/story' and 'SERVERNAME/sampleapp/story' I also tried to install the J2EE sample 'petstore' web application but had problems accessing the servlets with it too. I am able to get to the jsps and static files okay. Does anyone know what I am doing wrong? Thanks! Erin PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7 = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: apache tomcat as services under Linux
I thought tomcat need to start first? Or is that only when using the generated mod_jk.conf? --- Antoni Reus [EMAIL PROTECTED] wrote: Hi, You should create a script with something like and put it on /etc/rc.d/init.d/ cut here--- #!/bin/sh # Set this as you have it in your sistem APACHE_HOME=/usr/local/apache TOMCAT_HOME=/usr/local/jakarta/tomcat # Test apachectl if [ ! -x $APACHE_HOME/bin/apachectl ] then echo apachectl not found exit fi # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo tomcat not found exit fi case $1 in start) ## Start services $APACHE_HOME/bin/apachectl start $TOMCAT_HOME/bin/startup.sh ;; stop) $TOMCAT_HOME/bin/shutdown.sh $APACHE_HOME/bin/apachectl stop ;; esac -cut here -- name it apache-tomcat and give it execution permissions with chmod u+x apache-tomcat Then with control-panel you can link it to the run-level 3 or you can make it directly with # Start in run level 3 cd /etc/rc.d/rc3.d ln -s ../init.d/apache-tomcat S99apache-tomcat # Stop cd ../rc0.d ln -s ../init.d/apache-tomcat K11apache-tomcat Saludos, -- Antoni Reus - Original Message - From: Pier Paolo Bortone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 2:15 PM Subject: apache tomcat as services under Linux Hi, I need to start to use apache tomcat in a production environment, thus I need to start them as services. I'm using RedHat 7.1, someone knows which scripts I have to put in rc3.d. Thanks for your time. Pier Paolo. = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: where is the JSP servlet
Look in $TOMCAT_HOME/work/ there should be directories there for different contexts, which contain the generated *.java files as well as the compiled *.class files --- [EMAIL PROTECTED] wrote: I was told that JSP scripts get translated into a servlet, however where do you find it.Where can I find the servlet = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: RES: stress test
Spare-threads are idle threads. We want a few idle threads to quickly answer incoming requests. We don't want too many idle threads, or else we can negatively impact performance. So, we can represent the config below with this pseudo-code in an attempt to make it more clear: // Max spare threads while ( IDLE_THREADS 20 ) { server.killThread(); } // Min spare threads while ( IDLE_THREADS 5 THREAD_COUNT = 200 ){ server.spawnThread(); } --- Jose Euclides da Silva Junior - DIGR.O [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- First of all, what does spare-treads mean? Secondly, there are 2 very important parameters that should be configurated: delay and threads - and 1 important concept: each new group will begin after the prior one ends. So, you should have enough CPU and memory to allow multithreads. Finally, if you are testing a web page, this kind of tool (in general) doesnt simulate the real overhead. Regards, José Euclides Júnior __ E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] http://euclides.8m.com - -Mensagem original- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Enviada em: Segunda-feira, 11 de Junho de 2001 08:19 Para: [EMAIL PROTECTED] Assunto: stress test Hi all i am testing tomcat with using ap which comes with apache what is ideal test case , ? for example 1000 user , 7 concurrent is ideal ? and while i am testing tomcat sometimes it uses %98 cpu and never gives it back .. i configured my server.xml like that Parameter name=max_threads value=200/ Parameter name=max_spare_threads value=20/ Parameter name=min_spare_threads value=5 / any idea ? regards .. -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7 hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG Eo7s29sLgL8= =xzb+ -END PGP SIGNATURE- = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: Newbie Contexts
You might want to take a look in the configuration file $TOMCAT_HOME/conf/server.xml at the sections that define the contexts. The path is sort of from the docroot of your websererver like /admin if you want to access the admin context as http://your.domain.com/admin;, the documentation says it is relative to the context manager's location. The document base is usually, but not always a directory that is relative to your $TOMCAT_HOME directory such as webapps/admin and yes the context name can be whatever you choose as long as it is not already in use on your server. Most of this info is available online at: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html --- Mark Senefsky [EMAIL PROTECTED] wrote: Greetings all... OK I think the solution to my previous email Newbie Help (the sequel) is related to contexts. Currently the only context for my server points to the examples directory. How do I establish new Contexts? Using Tomcat admin what goes in each of these inputs? Path: (assume directory path?) Document Base: (no clue.) Context Name: (whatever I choose?) Thanks, Mark _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: where to find the Free Java TestingTool!!
There is also httpunit which tests the website as if it were actually an automated browser...well that might not be the best description. Check the page: http://httpunit.sourceforge.net/ --- Alex Fernández [EMAIL PROTECTED] wrote: Hi Rajesh! Rajesh Chandran M. R. wrote: I want to test my web application developed in java.If U pls inform me about the links for free java testingtool with license it would be more helpful to me. I'm not sure I understand your problem, the license part eludes me. But, if you want to test servlets and such, you can use Cactus (from Apache Commons): http://jakarta.apache.org/commons/cactus/index.html It allows testing (in JUnit fashion) of webapps, using your favorite container. That means it sends requests via HTTP, and parses the response to detect cookies and such. Un saludo, Alex. = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: URL encoding and ';' rather than '?'
I must admit that I am far from an expert on this subject, but I'm trying to learn as much as I can as quickly as I can. At any rate, my reading to date has suggested that be using the encodeURL and encodeRedirectURL methods one can maintain session state across static pages as well as across servlet generated pages and JSPs. Is the encoding not needed? --- David Crooke [EMAIL PROTECTED] wrote: The semicolon approach is what most of the proper commercial appservers run (Dynamo, Websphere, etc.) and is superior in many ways - since this is not a significant part of the URL per the HTTP standard, the browser will ignore it as part of the servlet name. This allows you to pre-rewrite base URL's for servlets, and then add the querystring later, or use them in METHOD=GET forms (if you have an ACTION with a querystring, it gets blown away and replaced by the form arguments). This has been a bit of a headache for us with JServ (which uses a querystring arg just like JRun) It sounds like the problem here is that the URL you're presenting is not being served by Tomcat and should not be rewritten in the first place. Cheers Dave Charles Baker wrote: Thanks. I read the bug report you listed below. I'm still not certain from what is says that this has been fixed in 3.2.2 or later. Does anyone know? I guess I can upgrade since this is just my personal dev box and see. --- Peter Hrastnik [EMAIL PROTECTED] wrote: It's a know bug. It is listed at the Apache bug database having the bug id 1388. You can find more information here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1388 Bye, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277 On Sat, 2 Jun 2001, Charles Baker wrote: I've been browsing the archives but still haven't seen what I'm looking for. Why does Tomcat use ';' rather than '?' when an URL gets encoded? Example: URL = http://my.domain/some_form.htm;; response.sendRedirect(response.encodeRedirectURL(URL)); Yeilds an url like this: http://my.domain/some_form.htm;jsessionid=lidfano10 and a 404 not found error. I use JRun at work because my company is predjudiced against free software, and it uses the '?' to separate the url and the query string which I thought was standard. SNIP = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: authentication
I searched the list archives and found that there needs to be a user with role=admin like so: user name=admin password=some_hard_password roles=admin / Also, in the server.xml the admin context should have trusted=true and password=some_hard_password, the same as the one in the tomcat-users.xml file for admin. It works for me now. --- Boris Garbuzov [EMAIL PROTECTED] wrote: When I am hitting admin application http://localhost:8080/admin/contextAdmin/contextAdmin.html, it tries to authenticate me, but does not accept pairs from tomcat-users.xml. Can somebody explain me how to use this app? -- tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 / /tomcat-users = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
URL encoding and ';' rather than '?'
I've been browsing the archives but still haven't seen what I'm looking for. Why does Tomcat use ';' rather than '?' when an URL gets encoded? Example: URL = http://my.domain/some_form.htm;; response.sendRedirect(response.encodeRedirectURL(URL)); Yeilds an url like this: http://my.domain/some_form.htm;jsessionid=lidfano10 and a 404 not found error. I use JRun at work because my company is predjudiced against free software, and it uses the '?' to separate the url and the query string which I thought was standard. BTW, I'm using Tomcat 3.2.1 and Apache 1.3.14 on Mandrake 7.2. I saw some workarounds posted to the list, but I'm curious as to why Tomcat behaves this way. Does either 3.2.2, 3.3 or 4.0 do things differently? I know 4.0 is the cutting or perhaps bleeding edge, but is 3.3 mostly stable though it hasn't been through beta testing yet? = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: URL encoding and ';' rather than '?'
Thanks. I read the bug report you listed below. I'm still not certain from what is says that this has been fixed in 3.2.2 or later. Does anyone know? I guess I can upgrade since this is just my personal dev box and see. --- Peter Hrastnik [EMAIL PROTECTED] wrote: It's a know bug. It is listed at the Apache bug database having the bug id 1388. You can find more information here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1388 Bye, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277 On Sat, 2 Jun 2001, Charles Baker wrote: I've been browsing the archives but still haven't seen what I'm looking for. Why does Tomcat use ';' rather than '?' when an URL gets encoded? Example: URL = http://my.domain/some_form.htm;; response.sendRedirect(response.encodeRedirectURL(URL)); Yeilds an url like this: http://my.domain/some_form.htm;jsessionid=lidfano10 and a 404 not found error. I use JRun at work because my company is predjudiced against free software, and it uses the '?' to separate the url and the query string which I thought was standard. BTW, I'm using Tomcat 3.2.1 and Apache 1.3.14 on Mandrake 7.2. I saw some workarounds posted to the list, but I'm curious as to why Tomcat behaves this way. Does either 3.2.2, 3.3 or 4.0 do things differently? I know 4.0 is the cutting or perhaps bleeding edge, but is 3.3 mostly stable though it hasn't been through beta testing yet? = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/