Re: setting up tomcat and apache to run together
Hi, Greg Take a look at the Tomcat Documentation Page and look under the entry "Integrating Tomcat with a Webserver." There are links there on how to do this for Apache, IIS, and Netscape. The instructions, however, are Windows- and UNIX-specific, so you might have to take it from there for MacOS X. Cheers, Noel Lecaros Greg Chakmakian wrote: Bear with me, I know you all have probably already been through this one before. I have Apache (for Darwin/Mac OS X) and Tomcat 3.2.1. They both run great by themselves; apache on port 80 and tomcat on 8080. I want to setup the two so that if I go to a jsp page on Apache it will use tomcat to process the jsp pages; i.e - http://www.apache.org/test.jsp gets processed by tomcat even though its being access through apache. I know I can turn off apache and reconfigure tomcat so that it runs off of port 80, but I would rather do it the other way. Like I said, I know this has probably been discussed and I apologize for being repetitive. I couldn't find any information on how to do this. Any help or direction you all could give would be greatly appreciated.-greg Healant Web Developer [EMAIL PROTECTED] [EMAIL PROTECTED] 336-370-0604 x111
Re: Apache mod_jk
Hi, Anil The JkExtractSSL directive can be found in the file tomcat/conf/mod_jk.conf-auto which is a file that is automatically generated (or overwritten, if it already exists) by Tomcat upon startup. However, in the automatically generated file, the SSL directives are commented out, so you will need to create your own mod_jk.conf file. You can use mod_jk.conf-auto as a starting point for your customizations. You should then Include your customized file somewhere in httpd.conf Regards, Noel Lecaros Noone Anil Kumar wrote: Hi, I am configuring appache to support SSL with the help of http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html . But where in, the section : Tomcat with Apache and mod_jk started with If you use Apache with SSL (apache-ssl or apache-mod_ssl), the apache connector mod_jk will be able to forward to tomcat some SSL informations if JkExtractSSL directive is present in your httpd.conf. But i don't see JkExtractSSL in httpd.conf ; How should i go for it ??? Any help appreciated in configuring Apache 1.3.14 + Tomcat 3.1 on WinNT for SSL .. Thanks in advance, Anil
Re: Apache+mod_ssl
Hi, Subbu Try this: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html Regards, Noel Lecaros subbu wrote: > Hai,How to use MOD_SSL with apache for win32 plat form.. > subbu
Re: Sunday and the brain is numb
Hi, Andrew I think newlist.class should be in a subdirectory named "classes" under WEB-INF (see your item 3). Regards, Noel Lecaros Andrew Stubbs wrote: > Okay - please will somebody spot the obvious mistake for me - I cant > see itThe servlet is called newlist 1) Mailman starts and give the > following 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): XmlReader - > init /mailadmin/servlet /www/listserv/mailadmin > 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Reading > /www/listserv/mailadmin/WEB-INF/web.xml > 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Loading -2147483646 > newlist > 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Loading -2147483646 > jsp Si it finds the class ok. 2) I have setup the alias in httpd.conf > as Alias /mailadmin "/www/listserv" > > Options Indexes FollowSymLinks > > ApJServMount /mailadmin/servlet /mailadmin > > AllowOverride None > deny from all > Apache starts ok. 3) Servlet is in > "/www/listserv/mailadmin/WEB-INF/net/stusoft/newlist.class" 4) tomcat > server.xml is: docBase="/www/listserv/mailadmin" > debug="99" > reloadable="true" > trusted="true" > > 5) "/www/listserv/mailadmin/WEB-INF/web.xml > is: > > > newlist > > > /servlet > > > net.stusoft.newlist > > > -2147483646 > > When I try and access the page using > http:/www/mailadmin/servlet/newlist - it does not find it.It is being > called from a jsp as www/mailadmin/test.jsp which submits a form with > action = "servlet/newlist"Bypassing apache and using port 8080 also > gives the same result. Ideas anyone ? I am off to drown my sorrows > in beer !! Andrew
Re: A latest nigtly build error with MySQL
I'm just speculating, but are transactions supported in the version of MySQL you are using? "Park, Sung-Gu" wrote: > The error message is like : > > Starting service Tomcat-Standalone > Apache Tomcat/4.0-b4-dev > Catalina.start: LifecycleException: Exception opening database connection: > jav > a.sql.SQLException: Cannot disable AUTO_COMMIT > LifecycleException: Exception opening database connection: > java.sql.SQLExcepti > on: Cannot disable AUTO_COMMIT > at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:609) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044) > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253 > ) > at > org.apache.catalina.core.StandardService.start(StandardService.java:3 > 53) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:458 > ) > at org.apache.catalina.startup.Catalina.start(Catalina.java:718) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:640) > at org.apache.catalina.startup.Catalina.process(Catalina.java:177) > at java.lang.reflect.Method.invoke(Native Method) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) > - Root Cause - > java.sql.SQLException: Cannot disable AUTO_COMMIT > at org.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:396) > at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:540) > at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:607) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044) > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253 > ) > at > org.apache.catalina.core.StandardService.start(StandardService.java:3 > 53) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:458 > ) > at org.apache.catalina.startup.Catalina.start(Catalina.java:718) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:640) > at org.apache.catalina.startup.Catalina.process(Catalina.java:177) > at java.lang.reflect.Method.invoke(Native Method) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
Re: URL to catch servlets
Hi, David You didn't specify whehter you were using mod_jserv or mod_jk. On mod_jk anyway, I add the following line into /tomcat/conf/mod_jk.conf: JkMount/workDirectory/*ajp12 and then I put this into Apache's httpd.conf: Include/tomcat/conf/mod_jk.conf When Tomcat starts up, a file named mod_jk.conf-auto is generated. I used this file as the basis for mod_jk.conf. Note that this configuration will cause Apache to forward ALL requests beginning with /workDirectory to your web app, including static content. Regards, Noel Lecaros David DELGRANCHE wrote: > Hi all, > > I'm using Tomcat 3.2.1 with Apache on WinNT. I have defined in the > server.xml conf file the directory I wanted to put my servlets. I named it > workDirectory. All my servlets are in the subdirectory: > workDirectory/web-inf/classes/ and I can access them by > http://localhost/workDirectory/servlet/nameOfServlet. > What I would like to do is to access them by the following URL: > http://localhost/workDirectory/nameOfServlet > Does anyone know which modifications I have to do in the Tomcat > Configuration to do this? > Thanks for help > David. > > David DELGRANCHE > [EMAIL PROTECTED] > Tel: 02.99 05.34.25 > Fax: 02.99.05.34.05 > Sogitec Industries > 24, Avenue Lavoisier > ZI du Champ Niguel > 35174 BRUZ CEDEX
Re: Tomact & IIS
Hi, Mary-Jay You can read this: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html. I got a WINNT/IIS/Tomcat setup working just by following the instructions exactly. Regards, Noel Lecaros "Galon, Mary-Jay" wrote: > I've looked, but have not found any comprehensive step-by-step instructions > for integrating Tomcat and IIS. Does anyone have a URL from the TOMCAT > site?
Re: Jakarta-Tomcat under NT4-IIS
Hi, Tom You must be using JDK1.3. If so, please take a look at this document: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.html paying particular attention to the part that says: Notice for JDK 1.3 users. Regards, Noel Lecaros "Sharp, Thomas R" wrote: > > Help!! > > > > I've been struggling now for about a week, trying things and talking to > > local admin people on how to get the Tomcat java servlet engine to work > > properly on an NT4 server with IIS 4. > > > > In short, I have done all the things in the documentation coming with > > version 3.2.1, and have successfully been able to install tomcat as a > > service on my NT4 box, start the service, and hit against it with a client > > web browser on another machine. However, as soon as I log off of the NT4 > > box as administrator, the service shuts down. > > > > How do I get tomcat to stay running as a persistent service?? > > > > Tom > > > > - > > > > Thomas R. Sharp, Ph.D. > > Mass Spectrometry Resource Laboratory > > Analytical Research & Development > > Pfizer Global Research & Development > > Eastern Point Road > > Groton, Connecticut 06340 > > --- > > phone: (860) 441-5932 > > FAX:(860) 441-0437 > > e-mail: [EMAIL PROTECTED] > >
Re: need help badly...
Hi, John I haven't encountered this exact same message but it looks like you have an incompatibility in your shared library file. Where did you get your copy of mod_jk.so? Regards, Noel Lecaros johnd wrote: > apache 1.3 on linux x86 > > - Original Message - > From: "Jan Labanowski" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Saturday, April 28, 2001 11:43 AM > Subject: Re: need help badly... > > > And how can we help you, if you do not tell us which OS, which version, > etc. > > you are using. If your OS is Linux 7.0, IRIX 6.5, or Solaris 2.7 , you can > > look at my installation/compilation logs at: > > > > http://www.ccl.net/cca/software/UNIX/apache > > > > Jan > > > > PS. If you are using alpha apache 2X you are on your own, from what I > know... > > > > > > > > On Sat, 28 Apr 2001, johnd wrote: > > > > > What can I do? I have tried every thing! Compiling apache...compiling > > > mod_jk.so... > > > > > > I am trying to connect apache to tomcat > > > when i run httpd I get this: > > > > > > > > > - > > > > > > [johnd@board apache2080]$ bin/httpd > > > Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto: > > > Cannot load /home/apache2080/libexec/mod_jk.so into server: > /home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at > > > [johnd@board apache2080]$ > > > > > > > > > - > > > -- > > > > > > -johnd > > > > > > > Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 > > Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] > > 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html > > Columbus, OH 43212-1163 |http://www.osc.edu/ > > > >
Re: /servlet/ mapping
Hi, Patrick Can you tell us a little bit more about your set-up? Are you using mod_jserv or mod_jk? What version of Tomcat are you using? Did you alter anything from the default install? If so, what? I could go into a lengthy explanation into servlet mapping and connector configuration, but you said "be gente." :-) Regards, Noel Lecaros Patrick Medhurst wrote: > I am new to Tomcat, so please be gentle. > > To access a servlet, the default is to use: > http://myhost.com:8080/bob/servlet/bob > > How can I change the "mapping" to use the following instead: > http://myhost.com:8080/servlet/bob
Re: Still trying to configure mod_jk
Hi, Laurence If you're using GNU make, try putting a tab at the start of line 127. Hope this helps. Regards, Noel Lecaros Laurence Mayer wrote: > How do I compile mod_webapp? > > I get errors : > Makefile:127:*** missing separator. Stop. > > Thanks > Laurence > -Original Message- > From: Sam Newman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 03, 2001 1:38 PM > To: [EMAIL PROTECTED] > Subject: Re: Still trying to configure mod_jk > > Lots of people have this problem. The downloadable mod_jk seems to work for > some people, but not all. I'd suggest downloading the mod_jk source and > build it yourself. Give your system, this shouldn't be too hard. > > sam > - Original Message - > From: "Laurence Mayer" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, May 03, 2001 1:10 PM > Subject: Still trying to configure mod_jk > > > > > Redhat 6.2 > > Apache -1.3.6-1 > > > > httpd start gives the following error > > > > Syntax error on line 214 of /etc/httpd/conf/httpd.conf: > > API module structure 'jk_module' in file /user/libexec/apache/mod_jk.so is > > garbled - perhaps > > this is not an apache module DSO? > > > > How do I fix? > > > > Can anyone shed some light, pleeeaaassse? > > > > Desperate > > Laurence > >
Re: Still trying to configure mod_jk
Hi, Patrick Line 127 of Makefile. Problem #1 - There's something wrong with your mod_jk build. Can you outline the exact steps you took? This problem comes up pretty often in this list, but I don't recall encountering it myself. But then again, I usually build apache from source... Problem #2 - This means that you still have a running instance of Tomcat. How many times did you start up Tomcat? Check if any are running with ps ax. Regards, Noel Lecaros "J. Patrick Lanigan" wrote: > Line 127 of what file? > > I am running RH7/Apache1.3.17. The build goes fine for me(of mod_jk), but I > am having a couple problems. > > Problem #1 > I also get the following error when trying to start apache: > > [root@domain]# /usr/local/apache/bin/apachectl start > Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: > API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so > is garbled - perhaps this is not an Apache module DSO? > /usr/local/apache/bin/apachectl start: httpd could not be started > > Problem #2 > I don't have a test directory, but I am also getting the following error > when trying to start Tomcat: > > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /examples ) > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /admin ) > Starting tomcat. Check logs/tomcat.log for error messages > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( ) > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /test ) > FATAL:java.io.IOException: Address already in use > java.io.IOException: Address already in use > at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:native) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:43) > at java.net.ServerSocket.(ServerSocket.java:53) > at java.net.ServerSocket.(ServerSocket.java:30) > at > org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS > ocketFactory.java:97) > at > org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java > :239) > at > org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) > at > org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > -- > Any ideas? > Thanks, > Patrick > > > Noel E. Lecaros wrote: > > Hi, Laurence > > > > If you're using GNU make, try putting a tab at the start of line 127. > > > > Hope this helps. > > > > Regards, > > Noel Lecaros > > > > Laurence Mayer wrote: > > > > > How do I compile mod_webapp? > > > > > > I get errors : > > > Makefile:127:*** missing separator. Stop. > > > > > > Thanks > > > Laurence > > > > > > Sam Newman wrote: > > > > > > Lots of people have this problem. The downloadable mod_jk seems > > to work for > > > some people, but not all. I'd suggest downloading the mod_jk source and > > > build it yourself. Give your system, this shouldn't be too hard. > > > > > > sam > > > "Laurence Mayer wrot: > > > > > > > > > > > Redhat 6.2 > > > > Apache -1.3.6-1 > > > > > > > > httpd start gives the following error > > > > > > > > Syntax error on line 214 of /etc/httpd/conf/httpd.conf: > > > > API module structure 'jk_module' in file > > /user/libexec/apache/mod_jk.so is > > > > garbled - perhaps > > > > this is not an apache module DSO? > > > > > > > > How do I fix? > > > > > > > > Can anyone shed some light, pleeeaaassse? > > > > > > > > Desperate > > > > Laurence
Re: Servlet loading at startup
Hi, Colin in webapps//WEB-INF/web.xml: ... ... 1 ... ... Regards, Noel Lecaros Colin Chalmers wrote: > Hi, Is it possible to configure Tomcat to load a specific servlet at > startup without waiting for a HTTP request? I notice that Websphere > has such a thing. /colin
Re: Where do Servlets go?
Hi, Scott Servlets should go in webapps//WEB-INF/classes. For servlets in a package, the directory structure in the classes subdir should reflect the package structure. Thus, the class named foo.bar.Class should go in the subdirectory classes/foo/bar/. JSPs normally go where HTML files go. Regards, Noel Lecaros "Purcell, Scott" wrote: > Hello, > I have the book, Java Server Pages from Duane K Fields and Kolb, and I am > running the tomcat server. I just used the default install. Anyway, I want > to try an example from the book, but do not know where to put the Servlet so > my .jsp page can find it. > > I was hoping someone could explain to me, where these two files should go. > If they go in the same dir somewhere, or in different dirs.? > > Also, if there is anything else I should know, please advise. > > Thanks have a nice Friday, > > Scott Purcell > > Scott Purcell
Re: AW: Tomcat documentation
Hi, Roman No, Martin is quite serious about this (despite the smiley face). It's a book on Tomcat installation, configuration and use that's being written by readers of this mailing list. It's intended to supplement the (scant) documentation there is on Tomcat. Anyone is welcome to join. The project is being hosted on sourceforge.net. Search for "tomcatbook." Regards, Noel Lecaros "Gerteis, Roman" wrote: > Which TomCat book? Is there one planned? > Or have you been kidding? > > roman > > -Ursprüngliche Nachricht- > Von: Martin Mauri [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 4. Mai 2001 14:42 > An: [EMAIL PROTECTED] > Betreff: Re: Tomcat documentation > > You'll have to wait until the Tomcat book is finished :) > > > Hi, > > > > Does anybody know, where I can find another documentation with more > > detailed information about Tomcat cofiguration than the minimalistic user > > guide? > > > > Mit freundlichen Grüßen > > > > Christian Schildt > > Diplom-Betriebswirt (FH) > > > > Softwaredeveloper > > > > Phone: 089/89013023 > > Mailto: [EMAIL PROTECTED] > > > > ELAXY AG > > Gutenbergstr. 5 > > D-82178 Puchheim bei München > > Phone: +089/8901300 > > Fax: +089/89013089 > > www.elaxy.com > > > >
Re: server.xml / dtd
Hi, Nathan As far as I can tell, there was no server.dtd in TC3.2.1. There is, however, a server.dtd beginning with TC3.3. If such a DTD is present AND is actually being referenced in the xml file in question. The server.xml file in 3.3 does not reference server.dtd, so this DTD is probably not definitive. I think, though, that once TC3.3 reaches release build status, this DTD may actually be used. The only definitive "doc" at this point unfortunately, is the source :-) Regards, Noel Lecaros Nathan Coast wrote: > Hi, > > where can I find the dtd of server.xml? - is there such a thing? > Is the dtd the best place to find docs on server.xml or is there a complete > configuration doc elsewhere? > > Thanks > Nathan
Re: Tomcat/Xalan
Hi, Dante Just a thought but have you tried using the Apache Xerces parser? Hopefully this parser provides better integration with Xalan. Hope this helps. Regards, Noel Lecaros Dante le Poole wrote: > Hi, > > has anyone used the xalan-package in their webapps? I am and it's going troublesome. > > With tomcat 3.2.1 it originally kept giving a NoSuchMethodError for the method >getNamespaceOfNode (in one of apache's > xpath-classes). > I solved that one by replacing the jaxp.jar in tomcat's lib-dir with the latest >version and adding crimson.jar. > > Now tomcat has started hanging on me, refusing any http-requests and requiring >several resets a day (see my post from yesterday). > I'm looking into upgrading to 3.2.2b4, but I'm running into the exact same problem >with the NoSuchMethodError again, only this time > adding jaxp.jar and crimson.jar doesn't work! > > Now I'm stuck with two problems that have got me baffled, and my boss isn't amused >about our site not functioning correctly! Does > anyone please have any ideas? > > Thanx, > > Dante le Poole
Re: Tomcat is not starting - How to trap the startup error?
Hi, (your-name-here) Assuming it's Windows, just open a DOS prompt and type the command "startup" located in the bin subdirectory. If you get an exception filling up the console, on NT you can simply increase the window size, reduce the console screen font, and increase the console buffer. On Win 9x, you're hosed. Regards, Noel Lecaros Web master wrote: > Hello, > > I am using Tomcat as my server and it was working fine till yesterday. > Somebody was in my system to install bunch of stuff and after that, when > I tried to start the server, it starts and the JAVA console comes and it > disappears in a second,. Since I couldn't see, what was in the console, > I couldn't figure out, what is causing the tomcat not to start. > > IS there any way, I can find out why tomcat is not starting. I checked > my CLASSPATH , PATH and server.log nothing helps. > > Thank you for your time.
Re: 2nd Posting: Cannot build servletapi 4b3
Hi, Anthony Hardware problem? Just a suggestion. Regards, Noel Lecaros "Anthony W. Marino" wrote: > ./build.sh: line 35: 1502 Segmentation fault ${JAVA_HOME}/bin/java > -classpath ${CLASSPATH} org.apache.tools.ant.Main -buildfile ${BUILDFILE} > "$@" > > Any suggestions? > > Thank you, > Anthony > > ---
Re: File Hierarchy
Hi, Pinar Look at the sample web app in doc/appdev/sample, and read the accompanying doc. Hopefully, everything should be clear. Regards, Noel Lecaros Pinar Bicioglu wrote: > Hi all, > I have been trying to set my source and deployment directories for couple of > days. I have ant and tomcat installed on my computer and i am suppose to > write a build.xml file. But it seems so confusing to me to place the > neccessary files into directories. > > Lets say that I have this "default" web application. When tomcat starts it > creates a folder called "default" and places application's directory > hireracy in it. I don't understand what it has to do with "ant" and the > application's files that are placed in build.xml file ? > > I am so confused right now. I have read the documentation and FAQ and > couldn't come up with anything. Basically I need help with understanding on > which files does what and how i can build place them in build.xml file > > I appreciate any help > Thanks a lot > Pinar-
Re: Servlet help needed
Hi, Ante You actually don't need to edit anything in server.xml if your app uses default settings. Just drop your app's directory tree into the webapp subdir and start Tomcat. Which web.xml file did you make changes in anyway? You're not supposed to edit the web.xml in the conf subdir! Hope this helps. Regards, Noel Lecaros BTW, just a friendly reminder. Please don't post in HTML. Not everyone on this list uses an HTML-enabled mail reader. Ante Sabo wrote: > I cannot deploy my servlet application to run by Tomcat. I editet > server.xml and web.xml files as described in documentation to set up > my contextes, but all I got on my screen is Tomcat error > message: Mapping context with unregisterred servlet What this > message is meaning to me. I beleive I made everything in script files > needed to register my sevlet, and also registering context, and it > won't work. Can you give me the link to a place where I can find some > explanation what is needed to register servlet application. Only way > I can register it is to put it under /webapps/examples directory. That > way I don't have even to register it - it works, but is that a real > solution? With many thanks, regards,Ante Sabo Zagreb > UniversityFaculty of organization & informaticsVaradin, > Croatia http://www.foi.hr http://www.foi.hr/~asabo
Re: installing tomcat 3.2 on windows 98
Hi, Hari Increase your environment setting. Put this in your c:\config.sys, if it isn't there already: shell=c:\command.com /p /e:32000 Hope this helps. Regards, Noel Lecaros Hari Yellina wrote: > Hi Aruand, > > It is really helpful to me. I wil do the same. But I am alwyas facign a > problem while I try to start my machine , that is > > out of environment space error. > > What is it exactly. > > Thanks in advance > > Regards, > Yellina., > - Original Message - > From: Arnaud Dostes - NTI <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, May 05, 2001 12:12 AM > Subject: Re: installing tomcat 3.2 on windows 98 > > > I'll be verbose : > > > > unzip to c:\tomcat > > set the following environment variables (either modify your autoexec.bat > and > > reboot or type them using 'set' in the same dos prompt used to run tomcat) > > CLASSPATH=. > > JAVA_HOME=c:\jdk1.3 (or wherever) > > TOMCAT_HOME=c:\tomcat > > > > Copy any jar files you need to c:\tomcat\lib (it will be picked up on > > startup) > > > > run from a DOS window c:\tomcat\bin\startup > > > > open a browser to http://localhost:8080 > > > > That should do it > > > > - Original Message - > > From: "Hari Yellina" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, May 04, 2001 3:28 PM > > Subject: Re: installing tomcat 3.2 on windows 98 > > > > > > > Hi Dave, > > > > > > Where can I find the documentation for installing tomcat on 98. Please > > help > > > me. > > > > > > Regards, Yellina. > > > - Original Message - > > > From: <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, May 04, 2001 10:52 PM > > > Subject: RE: installing tomcat 3.2 on windows 98 > > > > > > > > > > Oh Yes You Can ! > > > > > > > > > -Original Message- > > > > > From: Hari Yellina [SMTP:[EMAIL PROTECTED]] > > > > > Sent: 04 May 2001 13:46 > > > > > To: tomcat-user > > > > > Subject: Re: installing tomcat 3.2 on windows 98 > > > > > > > > > > u cannot, try on NT > > > > > - Original Message - > > > > > From: Peter Choe <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, May 04, 2001 10:19 PM > > > > > Subject: installing tomcat 3.2 on windows 98 > > > > > > > > > > > > > > > > is it possible to have tomcat run on windows 98? > > > > > > > > > > > > i downloaded the binaries for tomcat 3.2 for windows and tried to > > run > > > > > > the tomcat.bat file. but i get an exception saying that > > > > > > org.tomcat.startup.Tomcat can't be found. > > > > > > > > > > > > i have the autoexec.bat file with the following: > > > > > > > > > > > > TOMCAT_HOME=c:\tomcat > > > > > > > > CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc > > > > > > for each jar file in tomcat\lib > > > > > > > > > > > > apparantly the tomcat.bat file is setting the proper classpath. > any > > > > > > suggestions? > > > > > > > > > > > > peter choe > >
Re: Tomcat/Xalan
Hi, Robert Actually, I know that, but Dante said he had problems with jaxp and crimson, so Xerces should be another parser to try in place of that. Regards, Noel Lecaros Robert Petersen wrote: > Just FYI - > Xerxes is a parser and Xalan is for XML Transformations (XSLT), they do two > different things and both are from Apache. > > - Robert Petersen > http://www.orangefood.com > > -Original Message- > From: Noel E. Lecaros [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 12:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat/Xalan > > Hi, Dante > > Just a thought but have you tried using the Apache Xerces parser? Hopefully > this parser provides better integration with Xalan. > > Hope this helps. > > Regards, > Noel Lecaros > > Dante le Poole wrote: > > > Hi, > > > > has anyone used the xalan-package in their webapps? I am and it's going > troublesome. > > > > With tomcat 3.2.1 it originally kept giving a NoSuchMethodError for the > method getNamespaceOfNode (in one of apache's > > xpath-classes). > > I solved that one by replacing the jaxp.jar in tomcat's lib-dir with the > latest version and adding crimson.jar. > > > > Now tomcat has started hanging on me, refusing any http-requests and > requiring several resets a day (see my post from yesterday). > > I'm looking into upgrading to 3.2.2b4, but I'm running into the exact same > problem with the NoSuchMethodError again, only this time > > adding jaxp.jar and crimson.jar doesn't work! > > > > Now I'm stuck with two problems that have got me baffled, and my boss > isn't amused about our site not functioning correctly! Does > > anyone please have any ideas? > > > > Thanx, > > > > Dante le Poole
Re: installing tomcat 3.2 on windows 98
Nothing, really, except 32000 allocates 32K for a DOS console. You can try setting it lower and see if you can still start up Tomcat and you are concerned about memory. Hari Yellina wrote: > It has worked. Thank you very much. > > I have one more question > what is the difference between > shell=c:\command.com /p /e:32000 > > and > > c:\command.com /e:4096 /p > - Original Message - > From: Noel E. Lecaros <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, May 05, 2001 12:56 PM > Subject: Re: installing tomcat 3.2 on windows 98 > > > Hi, Hari > > > > Increase your environment setting. Put this in your c:\config.sys, if it > isn't > > there already: > > > > shell=c:\command.com /p /e:32000 > > > > Hope this helps. > > > > Regards, > > Noel Lecaros > > > > Hari Yellina wrote: > > > > > Hi Aruand, > > > > > > It is really helpful to me. I wil do the same. But I am alwyas facign a > > > problem while I try to start my machine , that is > > > > > > out of environment space error. > > > > > > What is it exactly. > > > > > > Thanks in advance > > > > > > Regards, > > > Yellina., > > > - Original Message - > > > From: Arnaud Dostes - NTI <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Saturday, May 05, 2001 12:12 AM > > > Subject: Re: installing tomcat 3.2 on windows 98 > > > > > > > I'll be verbose : > > > > > > > > unzip to c:\tomcat > > > > set the following environment variables (either modify your > autoexec.bat > > > and > > > > reboot or type them using 'set' in the same dos prompt used to run > tomcat) > > > > CLASSPATH=. > > > > JAVA_HOME=c:\jdk1.3 (or wherever) > > > > TOMCAT_HOME=c:\tomcat > > > > > > > > Copy any jar files you need to c:\tomcat\lib (it will be picked up on > > > > startup) > > > > > > > > run from a DOS window c:\tomcat\bin\startup > > > > > > > > open a browser to http://localhost:8080 > > > > > > > > That should do it > > > > > > > > - Original Message - > > > > From: "Hari Yellina" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Friday, May 04, 2001 3:28 PM > > > > Subject: Re: installing tomcat 3.2 on windows 98 > > > > > > > > > > > > > Hi Dave, > > > > > > > > > > Where can I find the documentation for installing tomcat on 98. > Please > > > > help > > > > > me. > > > > > > > > > > Regards, Yellina. > > > > > - Original Message - > > > > > From: <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, May 04, 2001 10:52 PM > > > > > Subject: RE: installing tomcat 3.2 on windows 98 > > > > > > > > > > > > > > > > Oh Yes You Can ! > > > > > > > > > > > > > -Original Message- > > > > > > > From: Hari Yellina [SMTP:[EMAIL PROTECTED]] > > > > > > > Sent: 04 May 2001 13:46 > > > > > > > To: tomcat-user > > > > > > > Subject: Re: installing tomcat 3.2 on windows 98 > > > > > > > > > > > > > > u cannot, try on NT > > > > > > > - Original Message - > > > > > > > From: Peter Choe <[EMAIL PROTECTED]> > > > > > > > To: <[EMAIL PROTECTED]> > > > > > > > Sent: Friday, May 04, 2001 10:19 PM > > > > > > > Subject: installing tomcat 3.2 on windows 98 > > > > > > > > > > > > > > > > > > > > > > is it possible to have tomcat run on windows 98? > > > > > > > > > > > > > > > > i downloaded the binaries for tomcat 3.2 for windows and tried > to > > > > run > > > > > > > > the tomcat.bat file. but i get an exception saying that > > > > > > > > org.tomcat.startup.Tomcat can't be found. > > > > > > > > > > > > > > > > i have the autoexec.bat file with the following: > > > > > > > > > > > > > > > > TOMCAT_HOME=c:\tomcat > > > > > > > > > > > > CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc > > > > > > > > for each jar file in tomcat\lib > > > > > > > > > > > > > > > > apparantly the tomcat.bat file is setting the proper > classpath. > > > any > > > > > > > > suggestions? > > > > > > > > > > > > > > > > peter choe > > > > > >
Re: problems with Tomcat 3.2.1 samples
Hi, Ofer What URL did you type? Did you try: http://localhost:8080/examples/ ? Regards, Noel Lecaros Ofer Baranes wrote: > Hi there , i install Tomcat 3.2.1 and i try to run its samples , but it > failed. > > What's wrong or miss in the next steps which i follow : > > 1 - add to my autoexec.bat : > set TOMCAT_HOME=c:\tmct321 > set JAVA_HOME=c:\jdk13002 > set PATH = > %PATH%;c:\;c:\jdk13002\bin;c:\jdk13002; > 2 - run the tomcat.bat file : >tomcat.bat start > > 3 - open webapps\examples\servlets\index.html and hit the execute button > which fails(all the other examples failed as well) > > I haven't done any change to the server.xml. > Am i using right the tomcat.bat ? should i use the web.xml in any way ? > > What is wrong here ?! > >
Re: problems with Tomcat 3.2.1 samples
Hi, Jack When you say "does not work," what do you see? Do you get an error (e.g. 404-Not Found), or do you get a directory listing? If you get a directory listing, then it is working. Seems you're on the right track. The fact is you don't really need to do anything special to get the examples working. Regards, Noel Lecaros jackling wrote: > > Hi, > > I'm not familiar w/ the configuration also. > > http://localhost:8080/examples/ does not work for me. Is it my config > problem? > > But I try this and works: > > http://localhost:8080/examples/servlet/CookieExample > > this is to call the \web-apps\examples\web-inf\classes\CookieExample.class > > Is it correct to say that we hv to put the java classes under the > web-inf\classes? > > pls let me know if I'm on the right track. > > thanks, > jackling. > > - Original Message - > 寄件者: "Noel E. Lecaros" <[EMAIL PROTECTED]> > 收件者: <[EMAIL PROTECTED]> > 傳送日期: 2001年5月6日 PM 11:19 > 主旨: Re: problems with Tomcat 3.2.1 samples > > > Hi, Ofer > > > > What URL did you type? Did you try: http://localhost:8080/examples/ ? > > > > Regards, > > Noel Lecaros > > > > Ofer Baranes wrote: > > > > > Hi there , i install Tomcat 3.2.1 and i try to run its samples , but it > > > failed. > > > > > > What's wrong or miss in the next steps which i follow : > > > > > > 1 - add to my autoexec.bat : > > > set TOMCAT_HOME=c:\tmct321 > > > set JAVA_HOME=c:\jdk13002 > > > set PATH = > > > %PATH%;c:\;c:\jdk13002\bin;c:\jdk13002; > > > 2 - run the tomcat.bat file : > > >tomcat.bat start > > > > > > 3 - open webapps\examples\servlets\index.html and hit the execute > button > > > which fails(all the other examples failed as well) > > > > > > I haven't done any change to the server.xml. > > > Am i using right the tomcat.bat ? should i use the web.xml in any way > ? > > > > > > What is wrong here ?! > > > > > > > >
Re: wired CLASSPATH behaviour
Hi, Roman Just a thought, but have you tried RENAMING the file db2java.zip to db2java.jar? Regards, Noel Lecaros "Gerteis, Roman" wrote: > > Hay there, > > when I was deploying a application on Tomcat 3.2.1 we had some really wired > Problems with CLASSPATH issues. > > First of all this is the environment: > * apache 1.3.14 > * mod_jk.so > * tomcat 3.2.1 > on Redhat 6.2 > JVM 1.3 (Sun distribution) > > ok. So we were putting JDBC Drivers of IBM (db2java.zip) on various places > where we should be able to put them. > > 1. we put it into the $TOMCAT_HOME/lib/ to be include for whole tomcat. (did > not work) > 2. we put it into the CLASSPATH environment inside the > $TOMCAT_HOME/tomcat.sh script (did not work) > 3. we put it into $TOMCAT_HOME/webapps/our_app/WEB-INF/lib/ (did not work) > 4. we unpacked the zip file and put the package tree under > $TOMCAT_HOME/webapps/our_app/WEB-INF/classes/ --> YUHEE, it worked. > > the depressing part of it was, that db2java.zip and the _right_ Path to it > was shown in the CLASSPATH variable on every of the setups > (System.out.println, or shellscript ECHO). But the JDBC Driver Manager > dumped no suitable driver found. > > It took me quite a lot of time to make the application run, cause there was > no reason for the failure (If you have a package in your classpath, then you > would suggest that it is loaded, right?). > > Anyways. The whole adventure brings me to the conclusion that either the > CLASSPATH environment of Sun JDK 1.3 for Linux is not working properly or .. > the dynamic loading of packages of TomCat is not fully reliable (which I > honestly do not believe). > > Does anyone had similar Problems, and can someone give me a tip for where to > put JDBC Driver packages inside a Webapp? (WEB-INF/lib/ I thought, but) > > thx. and regards > roman
Re: petstore problem
HI, Swamy Did you create the datastore by running the "populate" script? Regards, Noel Lecaros Swamy wrote: > > Hi, >I have been trying to install the pet store implementation. After jumping > a few hoops this last one has been testing me for a while now. Here is the > environment : > j2sdkee1.2.1, > jdk1.3.0_02, > Cloudscape_3.6, > jboss-tomcat-2.2, > jps1.1.1 and the patch from jboss > on > Windows 2000 server. > > Here is what I do : > Step 1 : Start Cloudscape using the script in > j2sdkee1.2.1\bin\cloudscape.bat -start > Step 2 : Start jboss using jboss-tomcat-2.2\jboss-2.2\bin\run.bat > Step 3 : On the browser I try > http://localhost:8080/estore/control/language?language=English > This results in a the following exception > Internal Servlet Error: > > java.lang.RuntimeException: NamingException while looking up DB context : > EstoreDB not bound > at > com.sun.j2ee.blueprints.shoppingcart.catalog.model.CatalogModel.init(Catalog > Model.java:42) > at > com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(Mo > delManager.java:84) > at > com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager. > java:60) > at > com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j > ava:56) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) > at org.apache.tomcat.core.Handler.service(Handler.java:286) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 > 7) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC > onnectionHandler.java:210) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) > at java.lang.Thread.run(Thread.java:484) > Now, if I refresh the screen. I get the first page right but on the console > from where I started jboss I get this message > 2001-05-06 03:47:46 - ContextManager: JDBCRealm: JDBCRealm.authenticate: > SELECTuser_pass FROM users WHERE user_name = ? > 2001-05-06 03:47:47 - ContextManager: JDBCRealm: Authentication unsuccessful > for user null > > Thanks in advance. > Swamy
Re: petstore problem
Hi, Swamy I don't recall the exact steps, but I'm sure you have to make the estore database known to the J2EE container. That means editing a property file somewhere. Sorry, I can't be more detailed since I don't have my setup in front of me right now. Hope this helps. Regards, Noel Lecaros Swamy wrote: > > Yeap. Ran the populate script. > Also used 'select * from users' to check if the inserts were successful. > Thanks. > Swamy > -Original Message- > From: Noel E. Lecaros [SMTP:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 4:11 AM > To: [EMAIL PROTECTED] > Subject:Re: petstore problem > > HI, Swamy > > Did you create the datastore by running the "populate" script? > > Regards, > Noel Lecaros > > Swamy wrote: > > > > Hi, > >I have been trying to install the pet store implementation. After jumping > > a few hoops this last one has been testing me for a while now. Here is the > > environment : > > j2sdkee1.2.1, > > jdk1.3.0_02, > > Cloudscape_3.6, > > jboss-tomcat-2.2, > > jps1.1.1 and the patch from jboss > > on > > Windows 2000 server. > > > > Here is what I do : > > Step 1 : Start Cloudscape using the script in > > j2sdkee1.2.1\bin\cloudscape.bat -start > > Step 2 : Start jboss using jboss-tomcat-2.2\jboss-2.2\bin\run.bat > > Step 3 : On the browser I try > > http://localhost:8080/estore/control/language?language=English > > This results in a the following exception > > Internal Servlet Error: > > > > java.lang.RuntimeException: NamingException while looking up DB context : > > EstoreDB not bound > > at > > com.sun.j2ee.blueprints.shoppingcart.catalog.model.CatalogModel.init(Catalog > > Model.java:42) > > at > > com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(Mo > > delManager.java:84) > > at > > com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager. > > java:60) > > at > > com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j > > ava:56) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) > > at org.apache.tomcat.core.Handler.service(Handler.java:286) > > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > > at > > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 > > 7) > > at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > > at > > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC > > onnectionHandler.java:210) > > at > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > > at > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) > > at java.lang.Thread.run(Thread.java:484) > > Now, if I refresh the screen. I get the first page right but on the console > > from where I started jboss I get this message > > 2001-05-06 03:47:46 - ContextManager: JDBCRealm: JDBCRealm.authenticate: > > SELECTuser_pass FROM users WHERE user_name = ? > > 2001-05-06 03:47:47 - ContextManager: JDBCRealm: Authentication unsuccessful > > for user null > > > > Thanks in advance. > > Swamy
Re: Problem with JSP in Tomcat calling JavaBean that uses Xalan 2
Hi, Christopher Just an idea to get you started. If I remember correctly, an IllegalStateException can be thrown if you obtain a Writer to the ServletOutputStream more than once, e.g. calling Request.getWriter, and then calling Request.getInputStream. From your code, I can't tell whether you're doing so, but I do know that a JSP will try to obtain a Reader from the request object. That means any stream- or writer-related accesses in your bean are suspect. You can also investigate by looking in the working subdirectory where Tomcat creates the servlets from JSPs. The variable names be a bit cryptic, but this should help you debug your exception dumps. Hope this helps. Regards, Noel Lecaros > Christopher Benson wrote: > > I created a bean that can be called from a JSP or by directly instantiating it > from main(). The bean uses an XML file and an XSLT file, both of which are > valid. When I run the bean using the main() method, it works correctly and > prints the correct HTML output to the console. However, when I call the bean > from the JSP below in Tomcat, it gives me the following error: > > java.lang.IllegalStateException: Response has already been committed > > I already know that an IllegalStateException "signals that a method has been > invoked at an illegal or inappropriate time. In other words, the Java > environment or Java application is not in an appropriate state for the > requested operation." > > I don't know how to solve it though. Any ideas? > > Thanks, > Christopher Benson > [EMAIL PROTECTED] > = > package com.christopherbenson; > > import java.io.*; > import javax.xml.transform.*; > import javax.xml.transform.stream.*; > > public class TransformationBean > { > > public TransformationBean(){} > > public static void main(String[] args) > throws Exception > { > TransformationBean bean = new TransformationBean(); > try > { > bean.setXMLdoc("C:/Temp/test.xml"); > bean.setXSLTdoc("C:/Temp/test.xsl"); > String x = bean.getResult(); > System.out.println(x); > } > catch (Exception e) > { > System.out.println(e.toString()); > } > } > > private String xmlsource = null; > private String xsltsource = null; > > public void setXMLdoc(String xmldoc) > throws FileNotFoundException, IOException > { > BufferedReader in = new BufferedReader(new FileReader(xmldoc)); > String s, s2 = new String(); > while((s = in.readLine())!= null) > s2 += s + "\n"; > in.close(); > xmlsource = s2; > } > > public void setXSLTdoc(String xsltdoc) > throws FileNotFoundException, IOException > { > BufferedReader in = new BufferedReader(new FileReader(xsltdoc)); > String t, t2 = new String(); > while((t = in.readLine())!= null) > t2 += t + "\n"; > in.close(); > xsltsource = t2; > > > } > > public String getResult() > throws TransformerException, TransformerFactoryConfigurationError, > TransformerConfigurationException, IOException //SAXException > { > try > { > TransformerFactory tFactory = TransformerFactory.newInstance(); > Transformer transformer = tFactory.newTransformer(new StreamSource(new > StringReader(xsltsource))); > StringWriter resultWriter = new StringWriter(); > StreamResult TheResult = new StreamResult(resultWriter); > transformer.transform(new StreamSource(new StringReader(xmlsource)), > TheResult); > String result = resultWriter.toString(); > return result; > } > catch (Exception e) > { > String result = e.getMessage(); > return result; > } > } > > } > = > > <%@ page language="java" %> > > <% > bean.setXMLdoc("C:/Temp/test.xml"); > bean.setXSLTdoc("C:/Temp/test.xsl"); > String result = bean.getResult(); > out.println(result); > %> > > = > >
Re: User id and Paswd for Admin Webapp?
Hi, Ted If you're using TC3.2.1, look in conf/tomcat-users.xml. If a later version, (e.g. TC3.3b2), look in conf/users/*-users.xml. The admin password should have role="admin." Regards, Noel Lecaros Pavan Seth wrote: > > What is userid and passwd for Admin Webapp? > > Ted > > __ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/
Re: Apache/Tomcat mod-jk configuration
Hi, Scott You only need to specify JkMount directives in mod_jk.conf to tell Apache which URL mappings it has to delegate processing to Tomcat. The url mappings in web.xml tell Tomcat which servlet/jsp will handle specific mappings. The /servlet qualifier I believe is a backward-compatibility feature to earlier servlet containers where you had to specify /servlet/ to access servlets. You're not necessarily stuck with this qualifier - you can create your own via the above-mentioned JkMount directives. However, I find it very convenient to be able to qualify my servlets differently from static content to simplify deployment of servlets on Tomcat, and html pages and other files on Apache. Regards, Noel Lecaros Scott Goldstein wrote: > > I'm using Apache and Tomcat 3.2 and I'm trying to understand the mod-jk > configuration file. > > Suppose, that I want to access servlets through URL's of the form: > > http://host/webappName/servletName > > It seems that I can do this one of two ways: > > 1. Have all requests of the form http://host/webappName/* go to Tomcat. > > The problem with this, is that I want Apache to serve my html pages > > 2. For every servlet, put in a line in the mod-jk configuration file to pass > the request to Tomcat. > > It would seem with this, I would not only have to specify it in the mod-jk > configuration file, but also in the web.xml file. It seems like there should > be an easier way. > > Am I stuck with putting all of my servlets in a "webAppName/servlets" > directory if I want to avoid this problem? Is this compatible with the spec > for WAR files? > > On that note, where can I even find the spec for WAR files? > > Thank you very much for the help. > > Scott Goldstein > > > "Just a mirror for the sun... > My smiling eyes are just a mirror for the sun." >
Re: IIS and Tomcat
Hi, Harry Exactly what did you type to access the page? Regards, Noel Lecaros RMC - Harry Duong wrote: > > I'm installing tomcat and jdk1.3 onto an NT 4.0 web development server. It > seems that I'm getting error when trying to load up tomcat default index.jsp > page: > > "The protocol specified in this address is not valid. Make sure the address > is valid and try again." > > I've successfully install tomcat on windows2K professional. Is there > additional configurations to get tomcat to work in an IIS environment on an > NT server? Any help is very much appreciated! > > Harry
Re: Error whilst executing Tomcat on Windows 2000
Hi, Scott How many times did you start up Tomcat before this? You might have another Tomcat instance, or another process, listening on the same port. Regards, Noel Lecaros Ian Scott wrote: > > Can you help with this ? It may be something I have done or haven't done. > The following text is displayed when tomcat is started using the supplied > startup.bat. > > > -- > Starting tomcat install="C:\JBuilder4\tomcat" home="C:\JBuilder4\tomcat" > classPath="C:\JBuilder4\tomcat\classes;C:\JBuilder4\tomcat\lib\webserver.jar > ;C:\JBuilde > r4\tomcat\lib\jasper.jar;C:\JBuilder4\tomcat\lib\xml.jar;C:\JBuilder4\tomcat > \lib > \servlet.jar;C:\JBuilder4\jdk1.3\lib\tools.jar;C:\JBuilder4\tomcat\classes;C > :\JB > uilder4\tomcat\lib\webserver.jar;" > Context log: path="/admin" Automatic context load > docBase="C:\JBuilder4\tomcat\webapps\admin" > Context log: path="/admin" Adding context path="/admin" > docBase="C:\JBuilder4\tomcat\webapps\admin" > FATAL:java.net.BindException: Address in use: JVM_Bind > java.net.BindException: Address in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) > at java.net.ServerSocket.(ServerSocket.java:170) > at java.net.ServerSocket.(ServerSocket.java:121) > at > org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default > ServerSocketFactory.java:97) > at > org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. > java:186) > at > org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 > 42) > at > org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) > > -- > > Thank you for taking the time. > > Ian Scott > > > This email message and any accompanying attachments may contain information > that is confidential and is subject to legal privilege. If you are not the > intended recipient, do not read, use, disseminate, distribute or copy this > message or attachments. If you have received this message in error, please > notify the sender immediately and delete this message. Any views expressed > in this message are those of the individual sender, except where the sender > expressly, and with authority, states them to be the views of Mobilesoft Pty > Ltd. Before opening any attachments, please check them for viruses and > defects.
Re: jakarta-servletapi
Can't you just build it? It doesn't take a minute. Jason Cheng wrote: > hello, can anybody tell me where i can download the binary distribution of > jakarta-servletapi? been looking at the jakarta site and can't seem to find > it..please help TIA
Re: IIS and Tomcat
Hi, Harry Have you tried excluding the port number? You do have both IIS and Tomcat running, don't you? Regards, Noel Lecaros RMC - Harry Duong wrote: > Hi Noel, > > I tried http://localhost:8080 > and http://myserverIP:8080 > > Harry > > -Original Message- > From: Noel E. Lecaros [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 08, 2001 12:07 AM > To: [EMAIL PROTECTED] > Subject: Re: IIS and Tomcat > > Hi, Harry > > Exactly what did you type to access the page? > > Regards, > Noel Lecaros > > RMC - Harry Duong wrote: > > > > I'm installing tomcat and jdk1.3 onto an NT 4.0 web development server. > It > > seems that I'm getting error when trying to load up tomcat default > index.jsp > > page: > > > > "The protocol specified in this address is not valid. Make sure the > address > > is valid and try again." > > > > I've successfully install tomcat on windows2K professional. Is there > > additional configurations to get tomcat to work in an IIS environment on > an > > NT server? Any help is very much appreciated! > > > > Harry
Re: problem with response.sendRedirect()
Hi, Brandon Can you tell us the OS, tomcat and apache versions, sample output and perhaps a snippet of the code? I can't promise anything but this looks like an interesting problem. Regards, Noel Lecaros Brandon Cruz wrote: > I have a jsp that does a simple response.sendRedirect to another page on the > site when a user logs out. For develoopment, we use tomcat standalone and > there is no problem executing that method. On production, we have apache as > the webserver and it seems to choke when executing that method. There are > other parts on the site that do a redirect with no problem, it is only this > one (which happens to be when a user logs out and a connection to the > database is closed). Sometimes it shows all the source code from the jsp to > the browser and some apache headers as well. Anyone ever seen anything like > this? > > Brandon Cruz
Re: Homepage
bingo! glad i'm using linux. Milt Epstein wrote: > On Wed, 9 May 2001, Dilip Dalton wrote: > > > Hi! > > > > You've got to see this page! It's really cool ;O) > > > > I smell a virus. > > Milt Epstein > Research Programmer > Software/Systems Development Group > Computing and Communications Services Office (CCSO) > University of Illinois at Urbana-Champaign (UIUC) > [EMAIL PROTECTED]
Re: Does tomcat undestant static classes?
Check your file and directory permissions. Do you have execute access to all the subdirs and read access to the files? Egidijus Drobavicius wrote: > I use one class as a collection of data items, such aspublic static final > String tmpDir="/u/somedir"When I use this under W2000, it works. Under UNIX > (SCO 506) i get java.lang.IllegalStateException: Can't happen - classname is > null, who added this ? > at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java, > Compiled Code) > at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java, Compiled > Code) > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled > Code) > at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java, > Compiled Code) > at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, > Compiled Code) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled > Code) > at > >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, > Compiled Code) > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, > Compiled Code) > at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, > Compiled Code) > at java.lang.Thread.run(Thread.java, Compiled Code) Could anyone explain what > is this? Thanks a lot Egidijus Drobavicius > AB Vilniaus Bankas > http://www.vb.lt > tel. + 370 2 682706
Re: ant compile jakarta problem
The file ant.jar should be in your CLASSPATH. Erena Langley wrote: > Hi, > > I am getting this error. > > [erena@statler jakarta-tomcat-3.2.1-src]$ ./build.sh clean > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/tools/ant/Main > > I have fiddled around, putting what I think to be the ant jars in my > classpath, and also reinstalling ant. Where should ant be installed? > Should it be installed > in the /usr/local or within the jakarta-tomcat directory? > > Erena
Re: java database
InstantDB. For more info, look at www.enhydra.org. Kevin Fonner wrote: > Do any good 100% pure java databases exist? Open Source java databases?
Re: tomcat server takes all of my ip addresses?
Just a suggestion, but have you tried configuring IP-based virtual sites on Apache, and then have one of the sites forward everything to Tomcat? sponks Eero Volotinen wrote: > At 17:44 14.5.2001 +1000, you wrote: > >What happens if you start Apache first? > > > >Is it not OK to have them running on different ports? > > No, because I want that both run port 80, but in different ip addresses? > Is this possible in same machine? > > -- > Eero
Re: auto reloading in tomcat
Set reloadable="true" in the tag in conf/server.xml, i.e.: sponks kiran kumar wrote: > hi > > Can u briefly suggest me how the auto-reload feature > works in tomcat 3.2.1 i have installed tomcat has > plug-in to apache server. that does make a difference > for auto-reload to work. The class files are not > gettin refreshed. I have to stop/start the server > again. Please mail me how the auto-reload feature > works > > Kiran Kumar > > __ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/
Re: Virtual Hosts
/etc/hosts -nel Kumar Thotapally wrote: > Hi, > > I am able to startup and shutdown multiple JVMs (using server1.xml ... etc). I >created applications (for example, JVM1, JVM2) under web-apps. > > When I enter http://localhost:8007/jvm1/servlet/HelloWorld1 in my browser, > it works fine. > > However, with the following code in server1.xml : > > > > followed by > > > > docBase="webapps/jvm1" > crossContext="false" > debug="1" > reloadable="true" > > > > along with other contexts. > > When I enter www.tomcat1.com, I am not able to get the result. > > Any suggestions? > > Thanks, > > Kumar.