Re: blue screen with servlets/jsp in Apache-Tomcat
What happens if you look at them from another box? that is - is it a client problem or a server problem? On Tue, 3 Jul 2001 16:07, you wrote: hi, i get the blue screen of death everytime i access a servlet or jsp example from the Tomcat examples with: http://localhost:8080/examples/jsp/* or http://localhost:8080/examples/servlet/* or http://localhost/examples/jsp/* or http://localhost/examples/servlet/* system: dell inspiron 4000 windows 2000 pro jdk 1.3.1 jakarta-tomcat 3.2.2 with jserv module loaded in apache i don't know where/how to start debugging this. i don't even get any runtime errors. please help. thanks, --meg __ Get your FREE personalized e-mail at http://www.canada.com
RE: http errors
Hi, Using error-page elements in the web.xml, you can program web applications to handle HTTP errors and exceptions. The deployment description below makes the container send the /errors/TryAgain.html file if either a TryAgainExeption or the HttpServletResponse.SC_SERVER_UNAVAILABLE error code occurs: web-app !-- Servlet definitions -- error-page exception-typejavax.servlet.TryagainException/exception-type location/errors/TryAgain.html/location /error-page error-page error-code503/error-code location/errors/TryAgain.html/location /error-page I hope this helps. Tim Hughes -Original Message-From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]Sent: 3. juli 2001 02:15To: Lista tomcat UserSubject: http errors Anyone know if I can set tomcat to use a custom page for http errors, like 500, instead of it´s default??? please, help me, i´ve tried a lot of things and it didn´t help. []´s Francisco This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Does Tomcat needs jdk 1.2.2
Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan
RE: Programmatic security with servlet mappings in tomcat
Hi, Thanks for the help. Your suggestion is one way of implementing the security. The reason I suggest a controller as the first page that all requests must go through is that I was hoping that it would enable me to factor out the authentification check that you have on every page i.e. instead of having the jsp:useBean id=Authentication scope=session class=com.mycompany.authentication/jsp:useBean %if (Authentication.isAuthenticated()) {% rest of JSP goes here %} else { response.sendRedirect(./login.jsp); } % on every page, I could have a controller that looked like: if (requesting login) { // forward to handleLogin.jsp } else { if (not logged on) { //forward to submitLoginInfo.jsp } else { //forward to appropriate servicing JSP //(which I can determine from the URL or by having an action parameter in the request) } } If I want to implement this I need to be sure that it is not possible to get access to the servicing JSPs directly since they wouldn't have any security embedded in them. What do you reckon? ~~ Tim Hughes ~ -Original Message- From: pete [mailto:[EMAIL PROTECTED]] Sent: 3. juli 2001 01:00 To: [EMAIL PROTECTED] Subject: Re: Programmatic security with servlet mappings in tomcat Tim, there are several ways to implement this kind of security check. If you want a fullblown MVC model, you might consider looking at Struts or one of the other Apache-driven frameworks (Struts is the only one i have personal experience with). with the example you give, i don't understand the need for a 'controller' jsp in this context. The way i handle security in one of my apps is that i have a method in a session-bean (public void isAuthenticated()) that checks the user has a valid login, so all my jsps (except login.jsp) are wrapped in a statement like jsp:useBean id=Authentication scope=session class=com.mycompany.authentication/jsp:useBean %if (Authentication.isAuthenticated()) {% rest of JSP goes here %} else { response.sendRedirect(./login.jsp); } % If a valid session key is already assigned, the method returns true. If username and password are supplied in request scope, isAuthenticated does a lookup to our authentication database, and if successful, sets a valid session key, and returns true. If neither of these are true, isAuthenticated sets a 'you are not authenticated' message to be displayed by login.jsp, returns false, and the user is redirected back to login.jsp In our struts projects, we have a custom tag library that checks authentication details, so its even simpler than the above. This example lacks exhaustive detail, but it is pretty easy to implement a security model like this. There are a number of foibles you can make, however. I'd tell you what they are, but that would spoil your fun now, wouldn't it ;) Hope that helps -Pete Hi, (Tomcat 3.2.1, windows 2000, JdK1.3.1) I want to use a Request Controller architecture for a webapp (i.e. one JSP that receives all requests and then dispatches the requests to other JSPs for servicing of the request). Of course I want to ensure that these servicing JSPs are not accessible without passing through the controller jsp. Is a secure solution to this problem to use a servlet mapping of the following form in web.xml: web-app servlet servlet-namecontroller/servlet-name jsp-filecontroller.jsp/jsp-file /servlet servlet-mapping servlet-namecontroller/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app And to include in Controller.jsp a session bean for each user to check whether they have logged on to the site before forwarding their request to the servicing JSP. I have tried this out empirically myself and it seems to work but I would quite like a theoretical confirmation that this is secure and that this solution makes it impossible for a malicious user to get access to the servicing JSPs (without passing through Controller.jsp which will force a logon). Thanks. Tim. This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part
Re: Does Tomcat needs jdk 1.2.2
Yes you do. Or better get(download) the jdk1.3.1 Allan. --- Eitan Ben Noach [EMAIL PROTECTED] wrote: Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Programmatic security with servlet mappings in tomcat
Pete, pete wrote: Tim, there are several ways to implement this kind of security check. If you want a fullblown MVC model, you might consider looking at Struts or one of the other Apache-driven frameworks (Struts is the only one i have personal experience with). with the example you give, i don't understand the need for a 'controller' jsp in this context. The way i handle security in one of my apps is that i have a method in a session-bean (public void isAuthenticated()) that checks the user has a valid login, so all my jsps (except login.jsp) are wrapped in a statement like jsp:useBean id=Authentication scope=session class=com.mycompany.authentication/jsp:useBean %if (Authentication.isAuthenticated()) {% rest of JSP goes here %} else { response.sendRedirect(./login.jsp); } % If a valid session key is already assigned, the method returns true. If username and password are supplied in request scope, isAuthenticated does a lookup to our authentication database, and if successful, sets a valid session key, and returns true. If neither of these are true, isAuthenticated sets a 'you are not authenticated' message to be displayed by login.jsp, returns false, and the user is redirected back to login.jsp Interesting that you don't use the container's authentication mechanism to protect pages. What if someone writes an app that doesn't protect the page. Any reason why you chose this route? Rgds Antony
How to make a war file
I have got all the file structure ready to make this archive. But how do we create one? I didn't find it being demonstrated at any place. I studied that it's similar to jar. So what do I do? jar cvf xyz.jar abc? And rename xyz.jar to xyz.war?
RE: variable jk_b_set_buffer_size in mod_jk module....
I did. I did it again. The error was different this time. Similar error with a different variable name. If the compilation isn't complete, why do I see mod_jk.so? Anyways, I got away with this by downloading a binary version, which again was not working earlier. And suddenly it did. It's highly unpredictable. I can just hope that I have a good luck, not to see this happen again. -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 2:22 PM To: [EMAIL PROTECTED] Subject: RE: variable jk_b_set_buffer_size in mod_jk module You didn't compile ALL the source files - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Anshul [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 30, 2001 7:20 AM To: [EMAIL PROTECTED] Subject: variable jk_b_set_buffer_size in mod_jk module I built mod_jk.so from the source code. But now when I am adding this one in apache, it doesn't start, I mean apache. I get the following Syntax error on line 131 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: undefined symbol: jk_b_set_buffer_size Someone please help me... -Original Message- From: Anshul [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 30, 2001 10:00 AM To: [EMAIL PROTECTED] Subject: mod_jk.so-eapi Why do I see these in http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2/ bin/linux/i38 6/ I am looking for mod_jk.so. There are these files mod_jk.so-eapi mod_jk.so-eapi.asc mod_jk.so-noeapi mod_jk.so-noeapi.asc Does that mean mod_jk.so changed? But I don't see any documentation about this one. I am having problem integrating apache with tomcat. Apache doesn't delegate the servlet jsp/request to tomcat. It just trys to serv it on it's own. Anyone any clues?? Thanks in advance, Anshul
RE: Programmatic security with servlet mappings in tomcat
me-too I wrote my own custom authentication scheme for exactly the same reasons. I hope Tomcat will soon add forms based authentication so I can remove this (unnecessary) level of complexity from my applications. /me-too Emir. -Original Message- From: Hughes, Tim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:50 PM To: '[EMAIL PROTECTED]' Subject: RE: Programmatic security with servlet mappings in tomcat I did not want to use the container's authentication mechanism for several reasons: 1. I can't store passwords and usernames in a database. 2. I get more control over the login process e.g. I can give different login error message depending on the source of the login failiure (wrong password, wrong username, etc ...) + I can log these login failiures (useful since they may help in detecting breakins). 3. I read in Wrox Professional Java Server Programming that as of writing this chapter, Tomcat (Version 3.1) does not completely support form-based authentication. Although Tomcat includes an experimentation version of form-based authentication, this is not suitable for demonstration purposes. ~~~ Tim Hughes ~~ -Original Message- From: Antony Bowesman [mailto:[EMAIL PROTECTED]] Sent: 3. juli 2001 10:32 To: [EMAIL PROTECTED] Subject: Re: Programmatic security with servlet mappings in tomcat Pete, pete wrote: Tim, there are several ways to implement this kind of security check. If you want a fullblown MVC model, you might consider looking at Struts or one of the other Apache-driven frameworks (Struts is the only one i have personal experience with). with the example you give, i don't understand the need for a 'controller' jsp in this context. The way i handle security in one of my apps is that i have a method in a session-bean (public void isAuthenticated()) that checks the user has a valid login, so all my jsps (except login.jsp) are wrapped in a statement like jsp:useBean id=Authentication scope=session class=com.mycompany.authentication/jsp:useBean %if (Authentication.isAuthenticated()) {% rest of JSP goes here %} else { response.sendRedirect(./login.jsp); } % If a valid session key is already assigned, the method returns true. If username and password are supplied in request scope, isAuthenticated does a lookup to our authentication database, and if successful, sets a valid session key, and returns true. If neither of these are true, isAuthenticated sets a 'you are not authenticated' message to be displayed by login.jsp, returns false, and the user is redirected back to login.jsp Interesting that you don't use the container's authentication mechanism to protect pages. What if someone writes an app that doesn't protect the page. Any reason why you chose this route? Rgds Antony This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: How to make a war file
Hi ! See the attached files. Edit the build.xml and change this line: property name=app.name value=SB_URM/ Set the value to your application's directory name, and run the batch. Thats it. - Original Message - From: Anshul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 10:51 AM Subject: How to make a war file I have got all the file structure ready to make this archive. But how do we create one? I didn't find it being demonstrated at any place. I studied that it's similar to jar. So what do I do? jar cvf xyz.jar abc? And rename xyz.jar to xyz.war? !-- A project describes a set of targets that may be requested when Ant is executed. The default attribute defines the target which is executed if no specific target is requested, and the basedir attribute defines the current working directory from which Ant executes the requested task. This is normally set to the current working directory. -- project name=Schichtbuch default=dist basedir=. !-- Property Definitions Each of the following properties are used by convention in this build file. The values specified can be overridden at run time by adding a -Dname=value argument to the command line that invokes Ant. This technique is normally used to copy the values of the ANT_HOME and TOMCAT_HOME environment variables into the ant.home and tomcat.home properties, which are normally not defined explicitly. app.name Base name of this application, used to construct filenames and directories. deploy.home The name of the directory into which the deployment hierarchy will be created. Normally, this will be the name of a subdirectory under $TOMCAT_HOME/webapps. dist.home The name of the base directory in which distribution files are created. dist.src The name of the distribution JAR file containing the application source code, to be stored in the dist.home directory. This filename should end with .jar. dist.war The name of the Web ARchive (WAR) file containing our deployable application. This filename should end with .war. javadoc.home The name of the base directory in which the JavaDoc documentation for this application is generated. tomcat.home The name of the base directory in which Tomcat has been installed. This value is normally set automatically from the value of the TOMCAT_HOME environment variable. In the example below, the application being developed will be deployed to a subdirectory named myapp, and will therefore be accessible at: http://localhost:8080/myapp -- property name=app.name value=SB_URM/ property name=deploy.homevalue=${tomcat.home}/webapps/${app.name}/ property name=dist.home value=${deploy.home}/ property name=dist.src value=${app.name}.jar/ property name=dist.war value=${app.name}.war/ property name=javadoc.home value=${deploy.home}/javadoc/ !-- The prepare target is used to construct the deployment home directory structure (if necessary), and to copy in static files as required. In the example below, Ant is instructed to create the deployment directory, copy the contents of the web/ source hierarchy, and set up the WEB-INF subdirectory appropriately. copydir src=web dest=${deploy.home}/ mkdir dir=${deploy.home}/WEB-INF/ copyfile src=etc/web.xml dest=${deploy.home}/WEB-INF/web.xml/ -- target name=prepare mkdir dir=${deploy.home}/ mkdir dir=${deploy.home}/WEB-INF/classes/ mkdir dir=${deploy.home}/WEB-INF/lib/ copydir src=${deploy.home}/WEB-INF/lib dest=${deploy.home}/lib/ copydir src=${deploy.home}/WEB-INF/classes dest=${deploy.home}/classes/ mkdir dir=${javadoc.home}/ /target !-- The clean target removes the deployment home directory structure, so that the next time the compile target is requested, it will need to compile everything from scratch. -- target name=clean deltree dir=${deploy.home}/ /target !-- The compile target is used to compile (or recompile) the Java classes that make up this web application. The recommended source code directory structure makes this very easy because the javac task automatically works its way down a source code hierarchy and compiles any class that has not yet been compiled, or where the source file is newer than the class file. After compilation is complete, any non-Java files (such as properties files containing resource bundles) found in the source code hierarchy are copied to a
return number of available is 0
When using ApacheJServ-1.1.2, we figured out the return number of character strings length by using available of InputStream. But, when using jacarta-tomcat-3.2.2, the return value is always 0. Please inform us whether we can't use available when using jacarta-tomcat-3.2.2, or there is an another method.
RE: variable jk_b_set_buffer_size in mod_jk module....
I did. I did it again. The error was different this time. Similar error with a different variable name. If the compilation isn't complete, why do I see mod_jk.so? Anyways, I got away with this by downloading a binary version, which again was not working earlier. And suddenly it did. It's highly unpredictable. I can just hope that I have a good luck, not to see this happen again. 1) What's your platform ? Linux/BSD. if you're using Linux use our RPM please :) 2) Did you do makefile -f Makefile.linux ? What's the output ? -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 2:22 PM To: [EMAIL PROTECTED] Subject: RE: variable jk_b_set_buffer_size in mod_jk module You didn't compile ALL the source files - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Anshul [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 30, 2001 7:20 AM To: [EMAIL PROTECTED] Subject: variable jk_b_set_buffer_size in mod_jk module I built mod_jk.so from the source code. But now when I am adding this one in apache, it doesn't start, I mean apache. I get the following Syntax error on line 131 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: undefined symbol: jk_b_set_buffer_size Someone please help me... -Original Message- From: Anshul [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 30, 2001 10:00 AM To: [EMAIL PROTECTED] Subject: mod_jk.so-eapi Why do I see these in http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2/ bin/linux/i38 6/ I am looking for mod_jk.so. There are these files mod_jk.so-eapi mod_jk.so-eapi.asc mod_jk.so-noeapi mod_jk.so-noeapi.asc Does that mean mod_jk.so changed? But I don't see any documentation about this one. I am having problem integrating apache with tomcat. Apache doesn't delegate the servlet jsp/request to tomcat. It just trys to serv it on it's own. Anyone any clues?? Thanks in advance, Anshul
Mail Notification
The attached message has had some or all attachments deleted because of the following reason: Message contains attachments: build.bat Additional Information: none Hi ! See the attached files. Edit the build.xml and change this line: property name=app.name value=SB_URM/ Set the value to your application's directory name, and run the batch. Thats it. - Original Message - From: Anshul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 10:51 AM Subject: How to make a war file I have got all the file structure ready to make this archive. But how do we create one? I didn't find it being demonstrated at any place. I studied that it's similar to jar. So what do I do? jar cvf xyz.jar abc? And rename xyz.jar to xyz.war? !-- A project describes a set of targets that may be requested when Ant is executed. The default attribute defines the target which is executed if no specific target is requested, and the basedir attribute defines the current working directory from which Ant executes the requested task. This is normally set to the current working directory. -- project name=Schichtbuch default=dist basedir=. !-- Property Definitions Each of the following properties are used by convention in this build file. The values specified can be overridden at run time by adding a -Dname=value argument to the command line that invokes Ant. This technique is normally used to copy the values of the ANT_HOME and TOMCAT_HOME environment variables into the ant.home and tomcat.home properties, which are normally not defined explicitly. app.name Base name of this application, used to construct filenames and directories. deploy.home The name of the directory into which the deployment hierarchy will be created. Normally, this will be the name of a subdirectory under $TOMCAT_HOME/webapps. dist.home The name of the base directory in which distribution files are created. dist.src The name of the distribution JAR file containing the application source code, to be stored in the dist.home directory. This filename should end with .jar. dist.war The name of the Web ARchive (WAR) file containing our deployable application. This filename should end with .war. javadoc.home The name of the base directory in which the JavaDoc documentation for this application is generated. tomcat.home The name of the base directory in which Tomcat has been installed. This value is normally set automatically from the value of the TOMCAT_HOME environment variable. In the example below, the application being developed will be deployed to a subdirectory named myapp, and will therefore be accessible at: http://localhost:8080/myapp -- property name=app.name value=SB_URM/ property name=deploy.homevalue=${tomcat.home}/webapps/${app.name}/ property name=dist.home value=${deploy.home}/ property name=dist.src value=${app.name}.jar/ property name=dist.war value=${app.name}.war/ property name=javadoc.home value=${deploy.home}/javadoc/ !-- The prepare target is used to construct the deployment home directory structure (if necessary), and to copy in static files as required. In the example below, Ant is instructed to create the deployment directory, copy the contents of the web/ source hierarchy, and set up the WEB-INF subdirectory appropriately. copydir src=web dest=${deploy.home}/ mkdir dir=${deploy.home}/WEB-INF/ copyfile src=etc/web.xml dest=${deploy.home}/WEB-INF/web.xml/ -- target name=prepare mkdir dir=${deploy.home}/ mkdir dir=${deploy.home}/WEB-INF/classes/ mkdir dir=${deploy.home}/WEB-INF/lib/ copydir src=${deploy.home}/WEB-INF/lib dest=${deploy.home}/lib/ copydir src=${deploy.home}/WEB-INF/classes dest=${deploy.home}/classes/ mkdir dir=${javadoc.home}/ /target !-- The clean target removes the deployment home directory structure, so that the next time the compile target is requested, it will need to compile everything from scratch. -- target name=clean deltree dir=${deploy.home}/ /target !-- The compile target is used to compile (or recompile) the Java classes that make up this web application. The recommended source code directory structure makes this very easy because the javac task automatically works its way down a source code hierarchy and compiles any class that has not yet been compiled, or where the source file is newer than the class file.
RE: Apache with multiple Tomcat Instances
Yes i have used it. I wont be able to give any pointers until u tell me what you are planning to implement. shuklix -Original Message- From: Vinay Menon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:26 AM To: Tomcat Dev; Tomcat User Subject: Apache with multiple Tomcat Instances Hello, Had posted this question a couple of days back but never heard from anyone! Has anyone tried integration Apache with multiple instances of Tomcat? Any pointers would be appreciated. Many Thanks Vinay
RE: How to make a war file
When in the directory of your web app: jar -cvf myapp.war . (without quotes, of course) -Original Message- From: Anshul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:51 PM To: [EMAIL PROTECTED] Subject: How to make a war file I have got all the file structure ready to make this archive. But how do we create one? I didn't find it being demonstrated at any place. I studied that it's similar to jar. So what do I do? jar cvf xyz.jar abc? And rename xyz.jar to xyz.war?
I need de import paht
Hellow I read a document about upload files with Tomcat Apache whit MultipartRequest class. But in this document you don't tell nothing about import path or library *.jar that it include MultipartRequest class Can you tell me please. Thank you, very match. Tomás Pérez GarcíaIngeniero de software tperez@epi.eshttp://www.renr.es Tlf:Fax: 96.598.71.7096.592.43.12 Recursos en la Red,S.L.U.Pintor Cabrera, 22 - Esc.B 3º03003 Alicante (España)
Re: JkMount in httpd.conf
Hi Dim all... My troubles are gone. ;-) One of the biggest problem was too sophisticated configuration... ;-) I let myself to be inspirated by Jason Koeninger - in fact, when I configure something I also would like to know what's the effect - exactly. Summary: mod_jk.conf-auto included in httpd.conf interfered with my directives. I wiped it out (include) and then I inserted all directives just inside my VirtualHost in httpd.conf... and IT STARTED RUN!!! :-))) I wanna thank to Dim which helped me to drift in good configuration of tomcat itself - and thank to Jason for his hint to not include mod_jk.conf-auto. Sometimes it can be good. But it is better to do it yourself - really! E.g. I was always wondering why ajp12 worker is asked when I mounted my ajp13 worker! So just this include was a reason. :-))) At last: Something out of this topic. Re: reference material - Dmitri wrote something about look at mod_jk-howt and tomcat-apache-howto... so... In these HTMLs (on the server - so called latest documentation or something ;-)) is mentioned ApJServMount... really often! This confused me always I read it. Because both documents are in mod_jk section of documentation... In fact - tomcat-apache-howto starts with mod_jk and config examples are with these ApJServMounts... Hm? Is it historical reason? (Many times mentioned problem of documentation to Tomcat?) Oh - one another question: For one webapp I have these lines inside VirtualHost in httpd.conf (virgo is worker ;-)): JkMount /*.jsp virgo# this is common for all webapps JkMount /admin/* virgo # this is because of servlets # Admin application Alias /admin /export/home/ias/jakarta-tomcat-3.2.1/webapps/admin Directory /export/home/ias/jakarta-tomcat-3.2.1/webapps/admin Options Indexes FollowSymLinks /Directory Location /admin/WEB-INF/ AllowOverride None deny from all /Location Location /admin/META-INF/ AllowOverride None deny from all /Location This is copied from that mod_jk.conf-auto (only changed ajp12 for virgo, etc.) - but I tried it without Alias and it runs... is that Alias needed? Isn't it solved with JkMount? And really last question :-)))... When I have servlet short names (url-mappings): http://host:port/admin/servlet/Class and http://host:port/admin/shortname Where shortname is mapped to Class class ;-)... When in such a servlet is link to image (eg. obligate images/tomcat.gif), one is good (shortname), but other not (.../admin/servlet/images/tomcat.gif doesn't exist). Which way is obvious to solve this problem? - Have I use only shortnames? - Have I use absolute link? (Works in both.) - Have I use ../images link for Class? (First case.) - Or have I configure alias remapping servlet/images to images? (I guess this is configured in Tomcat, not in httpd.conf - because this URL part is solved by Tomcat, hm?) - Or something else? :-))) So that's all... Thanks for solved things or any future suggestion... Richard Virgo Richter From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JkMount in httpd.conf Date: Fri, 29 Jun 2001 08:52:16 +1000 The fact that two are too much wasn't known to me - you know, example of web.xml is the only thing I have to learn from. ;-))) This was web.xml of one of my mate in work - I was just trying to let it run as admin of Tomcat ;-)... Now I can see that I have to write it from scratch or something... ;-) Have you got a copy of the (2.2) spec? It has a reasonably readable (IMHO) overview of the web.xml dtd. Might clear up a few things. If you're interested in buying a book - my first introduction to servlets was O'Reilly's Java Servlet Programming. Recommend it as a good intro, although having said that I cant remember it covering the web.xml in detail (not to say it doesn't). So - after your last mail I woke up and I'm checking logs now... but all at all - the only thing I see is in mod_jk.log well known two lines: Ahh yes - you'll need to edit your server.xml. Have a look for tc_log - there's a comment there saying put in path=logs/tomcat.log to get more logging... do that. otherwise your logging is going to stdout (I think). Hopefully that will give you some more info. You can also crank up the debug levels in there. Another so - so where is the differences between Apache-mod_jk-Tomcat and standalone Tomcat? I mean differences in servlet processing. On localhost:8080 everything runs perfectly and via virtual host of Apache and mod_jk... only jsp. But - as I can see now - servlet request is redirected - jk_uri_worker_map can't resolve it and Apache then sends obvious Not found. Hm... I think it would be worth taking a few steps back and following the example to the letter. In the doco there's a good walk through of how to get it
List traffic et al
Given the huge amount of traffic this list generates, I can rarely get involved with the discussions that take place. It occurs to me that there sems to be three major discussion themes on the list as a whole: 1.) General servlet/jsp development issues and how tomcat affects them 2.) General tomcat configuration issues 3.) Webserver integration issues I guess as documentation improves (e.g. tomcat book, work by people like Mike Slinn) points 23 will become less of an issue. I'm just wondering if there is any millage in perhaps splitting the list into 2 or 3 lists? Personally, I've got no issues with getting tomcat up and running and so don't care too much about that end of things, however the servlet/jsp development issues is more interesting to me. I don't have too strong an opinion on it, its just that I worry I'm missing some interesting topics because I don't have the time to work though all the posts sam
Re: Programmatic security with servlet mappings in tomcat
Sure, one is that i want custom login screens, another is that we store all our authentication details centrally and query for them via an XML data service. Various user and domain-specific data, including user preferences,roles etc. is stored in this repository, not just 'yes, this user has blanket access to the site'. Our permissions-management tools are all written to work with this, so i have an existing system i must fit my tomcat-based solutions into here. I do use tomcat's basic authentication facilities for some unrelated services, but for us it makes a lot of sense to centralize authentication and preference data this way. If someone writes an app that doesn't protect the page? well, then the page is unprotected. Security never comes completely for 'free', and in my experience it is beneficial to place some onus on the developer to at least think about security during the course of development. YMMV, of course, but this approach has worked well for us. -Pete Pete, Interesting that you don't use the container's authentication mechanism to protect pages. What if someone writes an app that doesn't protect the page. Any reason why you chose this route? Rgds Antony
Virtual hosting with IIS
Hi! I have several IIS webserver instances running on different ports on the same IP. Now I need to map the *.xml extension to Cocoon for all instances. Anybody an idea how to set this up? I'm using IIS5, Tomcat-3.2.2, JDK1.3 Any help would be appreciated, -markus
RE: List traffic et al
List is tomcat-user and not java-server-development; thus, issues such as getting Tomcat up and running (i.e. Tomcat configuration) ARE the purpose of this list. Methinks you should get invovled into discussion more often, given as you say that getting Tomcat up and running is no issue to you: could you perchance share your knowledge with us? The lists are there to provide convenient ways of GIVING to the community, not only TAKING... My 2 cents. Respectfully, Emir. -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:47 PM To: [EMAIL PROTECTED] Subject: List traffic et al Given the huge amount of traffic this list generates, I can rarely get involved with the discussions that take place. It occurs to me that there sems to be three major discussion themes on the list as a whole: 1.) General servlet/jsp development issues and how tomcat affects them 2.) General tomcat configuration issues 3.) Webserver integration issues I guess as documentation improves (e.g. tomcat book, work by people like Mike Slinn) points 23 will become less of an issue. I'm just wondering if there is any millage in perhaps splitting the list into 2 or 3 lists? Personally, I've got no issues with getting tomcat up and running and so don't care too much about that end of things, however the servlet/jsp development issues is more interesting to me. I don't have too strong an opinion on it, its just that I worry I'm missing some interesting topics because I don't have the time to work though all the posts sam
PROBLEM: tomcat 3.2.2, Solaris/Intel loop when translatin .jsp to .java
Hi guys! I've run into a problem which i know has been posted here before, but i havent been able to find a solution the problem is when running jsp's on the configuration mentioned in the subject, the translation from .jsp to java sturts an endless loop where the last line in the .java file is written continuesly until im out of disk space ;-) Otherwise the installation works correctly (able to use servlets etc) Mikkel Bruun [EMAIL PROTECTED] Valtech Kanonbaadsvej 10 DK-1433 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 Direct + 45 32 88 22 73
Re: List traffic et al
Emir wrote: List is tomcat-user and not java-server-development; thus, issues such as getting Tomcat up and running (i.e. Tomcat configuration) ARE the purpose of this list. Methinks you should get invovled into discussion more often, given as you say that getting Tomcat up and running is no issue to you: could you perchance share your knowledge with us? The lists are there to provide convenient ways of GIVING to the community, not only TAKING... My 2 cents. snip I have no problem with giving to the community - its just that I've got tired of answering the same questions again and again, and if I answered every question that I had an answer for I wouldn't get any work done (like most/all of us here I do have a full time job). Because I saw the same questions coming up again and again I decided to get involved with the tomcat-book project (which has had to take a back-burner for me at the moment due to things going mental at work). The fact remains that general discussion as to servlet development DOES take place here, which leads me to believe that there may be a place for a decent developmnet mailing list. Now this (jakarta) might not be the best place to host it I'd admit, and if anyone knows of a decent list which already exists that covers servlet/jsp/taglib development, please let me know. On a related note I know for a fact that the jakarta-taglib list contains probably 50% general taglib discussion as opposed to specific stuff about the jakarta taglibs. As to the general config issues for tomcat, there still might be some scope for splitting the list - perhaps one for general issues, and one covering integration with other tools (webservers, EJB containers etc). Its just that given the volume of traffic I think the things that interest me (and the things I could mostly helpfully contribute to) are getting lost. Also the generla configuration issues are typically for the newer users, whilst more advanced issues (SSL, working with IIS/Apache etc) concern those people who are more familiar with Tomcat. By splitting the list, you would reduce traffic for those people only intersted in one side of it or the other, and those that still care about both will recieve the same number of posts (bar some potential cross-posting). This would reduce the amount of people (probably with something to say) who leave the list because of the amount of daily posts.. sam
Re: Does Tomcat needs jdk 1.2.2
Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: List traffic et al
well there's already [EMAIL PROTECTED] and [EMAIL PROTECTED] there's also [EMAIL PROTECTED] perhaps ppl with more development specific questions should use these? -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 11:24 To: [EMAIL PROTECTED] Subject: Re: List traffic et al Emir wrote: List is tomcat-user and not java-server-development; thus, issues such as getting Tomcat up and running (i.e. Tomcat configuration) ARE the purpose of this list. Methinks you should get invovled into discussion more often, given as you say that getting Tomcat up and running is no issue to you: could you perchance share your knowledge with us? The lists are there to provide convenient ways of GIVING to the community, not only TAKING... My 2 cents. snip I have no problem with giving to the community - its just that I've got tired of answering the same questions again and again, and if I answered every question that I had an answer for I wouldn't get any work done (like most/all of us here I do have a full time job). Because I saw the same questions coming up again and again I decided to get involved with the tomcat-book project (which has had to take a back-burner for me at the moment due to things going mental at work). The fact remains that general discussion as to servlet development DOES take place here, which leads me to believe that there may be a place for a decent developmnet mailing list. Now this (jakarta) might not be the best place to host it I'd admit, and if anyone knows of a decent list which already exists that covers servlet/jsp/taglib development, please let me know. On a related note I know for a fact that the jakarta-taglib list contains probably 50% general taglib discussion as opposed to specific stuff about the jakarta taglibs. As to the general config issues for tomcat, there still might be some scope for splitting the list - perhaps one for general issues, and one covering integration with other tools (webservers, EJB containers etc). Its just that given the volume of traffic I think the things that interest me (and the things I could mostly helpfully contribute to) are getting lost. Also the generla configuration issues are typically for the newer users, whilst more advanced issues (SSL, working with IIS/Apache etc) concern those people who are more familiar with Tomcat. By splitting the list, you would reduce traffic for those people only intersted in one side of it or the other, and those that still care about both will recieve the same number of posts (bar some potential cross-posting). This would reduce the amount of people (probably with something to say) who leave the list because of the amount of daily posts.. sam
I need help in tomcat configuration with Oracle 8.1.7
Hello, I would like to know whether anyone is able togive me a hinttowards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in javathat comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
RE: List traffic et al
Why don't we then monitor the list for a while and figure out the exact questions that keep on coming up. We can then create an FAQ for the list and post it somewhere (maybe Jakarta Project would host it) and we can then direct all newbies there. We can then retain [what I perceive is] the purpose of this list, while reducing (dramataically) the volume of correspondence. How's that? Emir. -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:24 PM To: [EMAIL PROTECTED] Subject: Re: List traffic et al Emir wrote: List is tomcat-user and not java-server-development; thus, issues such as getting Tomcat up and running (i.e. Tomcat configuration) ARE the purpose of this list. Methinks you should get invovled into discussion more often, given as you say that getting Tomcat up and running is no issue to you: could you perchance share your knowledge with us? The lists are there to provide convenient ways of GIVING to the community, not only TAKING... My 2 cents. snip I have no problem with giving to the community - its just that I've got tired of answering the same questions again and again, and if I answered every question that I had an answer for I wouldn't get any work done (like most/all of us here I do have a full time job). Because I saw the same questions coming up again and again I decided to get involved with the tomcat-book project (which has had to take a back-burner for me at the moment due to things going mental at work). The fact remains that general discussion as to servlet development DOES take place here, which leads me to believe that there may be a place for a decent developmnet mailing list. Now this (jakarta) might not be the best place to host it I'd admit, and if anyone knows of a decent list which already exists that covers servlet/jsp/taglib development, please let me know. On a related note I know for a fact that the jakarta-taglib list contains probably 50% general taglib discussion as opposed to specific stuff about the jakarta taglibs. As to the general config issues for tomcat, there still might be some scope for splitting the list - perhaps one for general issues, and one covering integration with other tools (webservers, EJB containers etc). Its just that given the volume of traffic I think the things that interest me (and the things I could mostly helpfully contribute to) are getting lost. Also the generla configuration issues are typically for the newer users, whilst more advanced issues (SSL, working with IIS/Apache etc) concern those people who are more familiar with Tomcat. By splitting the list, you would reduce traffic for those people only intersted in one side of it or the other, and those that still care about both will recieve the same number of posts (bar some potential cross-posting). This would reduce the amount of people (probably with something to say) who leave the list because of the amount of daily posts.. sam
Re: List traffic et al
Paul Wrote: well there's already [EMAIL PROTECTED] and [EMAIL PROTECTED] there's also [EMAIL PROTECTED] perhaps ppl with more development specific questions should use these? Thanks for that Paul. I kind of stopped using the Sun Java forums because they weren't much use, but after looking at the archives these look pretty good. Incidently I found a good archive of them (and others) at http://www.servlets.com/lists/index.html sam
RE: Virtual hosting with IIS
Markus, Go in to IIS admin console and right click the computer icon, select properties. In 'Master Properties' select 'WWW Service' and click the 'Edit ...' button this will bring up the default properties page for all virtual server's on the computer - set the things you want set globally and you're done. Cheers, Andi. -Original Message- From: Markus Strickler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 10:53 To: [EMAIL PROTECTED] Subject: Virtual hosting with IIS Hi! I have several IIS webserver instances running on different ports on the same IP. Now I need to map the *.xml extension to Cocoon for all instances. Anybody an idea how to set this up? I'm using IIS5, Tomcat-3.2.2, JDK1.3 Any help would be appreciated, -markus
Re: I need help in tomcat configuration with Oracle 8.1.7
I don't know anything too specific about use with Oracle, but I've certainly used servlets/JSP's to access DB's via JDBC in the past (read: maintained code which did it, not developed it!), so its certainly possible. Firstly, could you give the exact error you are getting from tomcat? Also, you might want to try using 3.2.2, which is the current stable release and might contain fixes to your problems already. sam - Original Message - From: Internet Total Solutions LLC - Customer Liaisons Department - To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:37 AM Subject: I need help in tomcat configuration with Oracle 8.1.7 Hello, I would like to know whether anyone is able togive me a hinttowards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in javathat comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
Re: List traffic et al
Sounds good. Aren't there online tools for creating FAQ's via a web-front end? Of course, there are always going to be the people who ask first, read the documents later :-) sam - Original Message - From: Emir Alikadic (ADNOC IST) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:38 AM Subject: RE: List traffic et al Why don't we then monitor the list for a while and figure out the exact questions that keep on coming up. We can then create an FAQ for the list and post it somewhere (maybe Jakarta Project would host it) and we can then direct all newbies there. We can then retain [what I perceive is] the purpose of this list, while reducing (dramataically) the volume of correspondence. How's that? Emir.
Re: I need help in tomcat configuration with Oracle 8.1.7
'Serious Errors'? you'll have to be a bit more specific than that. Exactly what errors is tomcat giving you? - Segmentation faults? NullPointerExceptions? NoClassDefFoundException? Also, be aware that Tomcat 3.2.2 is the latest stable version, and it has fixes for a number of problems with versions prior to it. This may have nothing to do with1 your problems, but it is advisable to upgrade to 3.2.2, unless you have a particular reason to stick with 3.1 -Pete Hello, I would like to know whether anyone is able to give me a hint towards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in java that comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
RE: I need help in tomcat configuration with Oracle 8.1.7
I am not sure that I understand the problem exactly but I do know that there are a number of problems that can occur with connecting to a JDBC driver, the most common of which is that classes111.zip needs to be placed in TOMCAT_HOME/lib/and renamed to classes111.jar so that Tomcat can detect it and put it on the classpath. See if this helps. Tim. Tim Hughes Cap Gemini Ernst Young Addr.: Sandbrugt. 5-7, Postboks 3950, Dreggen, 5835 Bergen, Norway Tel: +47 55 90 66 24 / +47 48 10 06 38 Email: [EMAIL PROTECTED] Web: http://no.cgey.com -Original Message-From: Internet Total Solutions LLC - Customer Liaisons Department - [mailto:[EMAIL PROTECTED]]Sent: 3. juli 2001 12:37To: [EMAIL PROTECTED]Subject: I need help in tomcat configuration with Oracle 8.1.7 Hello, I would like to know whether anyone is able togive me a hinttowards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in javathat comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: I need help in tomcat configuration with Oracle 8.1.7
Hi, If I remember correctly, you have to be using at least jdk1.2 in order to run Tomcat, but the classes111.zip file is intended for use with jdk1.1. You might have better luck if you used classes12.zip (which you can get from technet.oracle.com). Brendan : Hello, : : I would like to know whether anyone is able to give me a hint towards = : solving the following scenario. If anyone is available on consultation = : basis, it is fine too. : : I have developed website personalization engine in java that comes with = : it's own kind of application server to handle the client access requests = : to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the = : oracle thin driver and classes111.zip in order to handle the requests = : through the jdbc. However tomcat giving me serious errors and my client = : application can't login to the database. Would anyone be able to help me = : on that matter?=20 : : Thanks : : Tobias Hansen : : : !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN : HTMLHEAD : META content=text/html; charset=iso-8859-1 http-equiv=Content-Type : META content=MSHTML 5.00.2314.1000 name=GENERATOR : STYLE/STYLE : /HEAD : BODY bgColor=#d8d0c8 : DIVFONT size=2 : DIVFONT size=2Hello,/FONT/DIV : DIVnbsp;/DIV : DIVFONT size=2I would like to know whether anyone is able tonbsp;give me a : hintnbsp;towards solving the following scenario. If anyone is available on : consultation basis, it is fine too./FONT/DIV : DIVnbsp;/DIV : DIVFONT size=2I have developed website personalization engine in : javanbsp;that comes with it's own kind of application server to handle the : client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am : using the oracle thin driver and classes111.zip in order to handle the requests : through the jdbc. However tomcat giving me serious errors and my client : application can't login to the database. Would anyone be able to help me on that : matter? /FONT/DIV : DIVnbsp;/DIV : DIVFONT size=2Thanks/FONT/DIV : DIVnbsp;/DIV : DIVFONT size=2Tobias Hansen/FONT/DIV : DIVnbsp;/DIV/FONT/DIV/BODY/HTML : -- Brendan McKennaEmail: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
Re: List traffic et al
Perhaps what would be useful here is some type of moderation system for threads on the list that so people who find those topics that are most helpful - i.e. don't seem to be covered elsewhere in the existing docs, can be identified and flagged for inclusion in the 'official' docs. It could be as simple as replying to a list topic with a helpful rating='5'/ (where rating was a score out of 5 stating how helpful the thread was) tag or something in the subject and the mailing list processor could send it to someone who could collate the threads etc. There is probably a better way to do this, but hey, it's been a long day :) I think the list represents excellent value in and of itself, however, and generally people only turn to the list if other sources of information come up short, or are not clear enough. I think tomcat is a really good product, but for me it did take time to figure out how the various config files, and their (initially) unwieldy syntax works. I no longer consider the tomcat configuration syntax unwieldy, but for a newbie it can be hard to understand. -Pete Paul Wrote: well there's already [EMAIL PROTECTED] and [EMAIL PROTECTED] there's also [EMAIL PROTECTED] perhaps ppl with more development specific questions should use these? Thanks for that Paul. I kind of stopped using the Sun Java forums because they weren't much use, but after looking at the archives these look pretty good. Incidently I found a good archive of them (and others) at http://www.servlets.com/lists/index.html sam
Re: List traffic et al
I think tomcat is a really good product, but for me it did take time to figure out how the various config files, and their (initially) unwieldy syntax works. I no longer consider the tomcat configuration syntax unwieldy, but for a newbie it can be hard to understand. My single bigest complaint is that when there is a problem with the syntax (e.g. in web.xml) the error is typically not very informative. This in itself leads to allot of problems. sam
Re: Virtual hosting with IIS
Andi- actually which parameters to set, is the problem. For example I have two server instances with their doc roots at C:\server1 and c:\server2 a) If I access a file from server1 like this: http://server:9000/index.xml I need the Cocoon servlet being invoked and the path C:\server1\index.xml passed to it. b) If I access a file from server2 like this: http://server:9001/index.xml I need the servlet being invoked and the path C:\server2\index.xml passed to it. The best solution would be if in case a) and b) different servlet contexts could be invoked. Any idea how to accomplish this? Note that I have several dozens of web servers, so using a separate JVM for each is ruled out. Thanks for any help -markus - Original Message - From: Everitt, Andrew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 12:44 PM Subject: RE: Virtual hosting with IIS Markus, Go in to IIS admin console and right click the computer icon, select properties. In 'Master Properties' select 'WWW Service' and click the 'Edit ...' button this will bring up the default properties page for all virtual server's on the computer - set the things you want set globally and you're done. Cheers, Andi. -Original Message- From: Markus Strickler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 10:53 To: [EMAIL PROTECTED] Subject: Virtual hosting with IIS Hi! I have several IIS webserver instances running on different ports on the same IP. Now I need to map the *.xml extension to Cocoon for all instances. Anybody an idea how to set this up? I'm using IIS5, Tomcat-3.2.2, JDK1.3 Any help would be appreciated, -markus
RE: Restarting Tomcat on NT
No, there is no way to free a port. You mentioned that Tomcat comes up after a reboot, implying that you are running Tomcat as a service. If that is the case, the process name is jk_nt_service.exe. Unless you have another process that is constantly trying to grab that port, Tomcat is still running - NT does free the ports when the process dies. Also, 2000 (and I believe NT) ship with netstat. Using netstat -a you can determine which ports are currently in use (and their state). Randy -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 7:34 PM To: [EMAIL PROTECTED] Subject: RE: Restarting Tomcat on NT I've already tried that. Tomcat is dead, alright. Is there a way to explicitly free up a port on NT? At 06:04 PM 07/02/2001, you wrote: Maybe you didn't really kill off Tomcat, but just the DOS box it was running in,... (I've seen it happen after closing the DOS box, but not after Ctrl+C'ing the program.) Try bringing up the Task Manager, and make sure there aren't any instances of a java image name running. -- Bill K. -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Restarting Tomcat on NT I am having problems restarting Tomcat on NT. After a reboot of the machine, Tomcat starts without a problem. However, if I stop Tomcat and then attempt to restart, I get the following error: FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket( DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.jav a, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) I'm running Tomcat on port 8080. After I receive the above error, a netstat -a yields: TCPcx628443-b:80070.0.0.0:0 LISTENING TCPcx628443-b:80070.0.0.0:0 LISTENING TCPcx628443-b:80800.0.0.0:0 LISTENING TCPcx628443-b:80800.0.0.0:0 LISTENING So, for some reason, stopping Tomcat does not free up the port. I must then reboot my machine to run Tomcat again. I'm using Tomcat 3.2.1 and Classic VM (build JDK-1.2.2-001, native threads, symcjit). Ideally, I'd like to fix the problem, however, I'm also interested in any solution that doesn't require rebooting my machine. I'll be switching to a Linux-Tomcat platform soon, but need a solution for the meantime. Thanks, Steve
RE: Does Apache worth it? Security issues make it worth it
David, Thanks for the enlightening survey. Eitan -Original Message- From: David Wall [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 5:56 PM To: [EMAIL PROTECTED] Subject: Re: Does Apache worth it? Security issues make it worth it One thing architecturally and security-wise about having Apache front Tomcat should also be mentioned. Apache provides native code for serving up HTTP 1.1 (is Tomcat at 1.1 yet, or still 1.0?) which means images and such are transferred much more efficiently. This is also particularly true for SSL code. But the separation makes it easier to put the application server on a box that is not directly connected to the Internet. Architecturally speaking, this is a huge advantage since you don't generally want your application code to be so vulnerable to attacks. Using mod_jk, you can put Tomcat on a private network with a firewall that limits access very tightly -- only allowing connections FROM the web server using the 8007/8009 ports (if that's what you use). This is much more restrictive than needing to allow ports 80/443 from ANY computer in the world. It also means that a hacker has to get through two layers of your system before they can reach the gold, such as modifying JSP pages for graffiti or getting to your database. David
RE: errors using Tomcat w/ IIS 5.0
Connection Refused, I believe. It probably indicates that your workers.properties file and your server.xml file specify two different ports for the AJP12. Another possible issue (but its not very likely) is that you have configured IP Filtering on your 2000 server to disallow localhost to access the AJP12 port. Randy -Original Message- From: Chris Blessing [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 7:24 PM To: [EMAIL PROTECTED] Subject: errors using Tomcat w/ IIS 5.0 Hi there- I'm running Windows 2000 w/ IIS 5.0. I've configured the webserver with the appropriate /jakarta virtual dir, entered the correct registry settings and all, and properly setup the workers.properties and uriworkermap.properties files. I was reading the IIS How-To page and went through all the steps. Triple-checked! So I finally get the green arrow I've been waiting for and go to request http://localhost/examples/jsp/index.html but it errors on me. I check the IIS log and the last line(s) is/are: 23:17:19 127.0.0.1 GET /jakarta/isapi_redirect.dll 500 So then I check the Tomcat log file (set to debug in registry) and I find this (I removed the initial log lines related to the IIS startup/ISAPI loading): [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1760 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done Note, again, that this log excerpt is only in relation to the HTTP request, not the startup of the ISAPI filter. So basically I'm wondering if someone can tell me what errno 61 is, and why this is failing on me. I've tried everything in the troubleshooting section of the IIS How-To page and nothing's worked yet. =( TIA for any help you can offer, I'm stuck! -Chris Blessing [EMAIL PROTECTED]
RE: blue screen with servlets/jsp in Apache-Tomcat
If it is a server problem I would suggest trying a different (1.2) JVM to rule that out. Also, I would stick with getting Tomcat standalone to work first. (Take little steps) Randy -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:46 AM To: [EMAIL PROTECTED] Subject: Re: blue screen with servlets/jsp in Apache-Tomcat What happens if you look at them from another box? that is - is it a client problem or a server problem? On Tue, 3 Jul 2001 16:07, you wrote: hi, i get the blue screen of death everytime i access a servlet or jsp example from the Tomcat examples with: http://localhost:8080/examples/jsp/* or http://localhost:8080/examples/servlet/* or http://localhost/examples/jsp/* or http://localhost/examples/servlet/* system: dell inspiron 4000 windows 2000 pro jdk 1.3.1 jakarta-tomcat 3.2.2 with jserv module loaded in apache i don't know where/how to start debugging this. i don't even get any runtime errors. please help. thanks, --meg __ Get your FREE personalized e-mail at http://www.canada.com
RE: Does Tomcat needs jdk 1.2.2
Since there have been two mis-informed posts, I will also say that Java 1.1.7 is all that is required for Tomcat 3.x. If you want to use security policies or certain security aspects then you will need JDK 1.2 or above, and you will need the actual JVM, not any particular JAR, because these features take advantage of the new for the 1.2 versions Security architecture. Randy -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 6:36 AM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
RE: Does Tomcat needs jdk 1.2.2
Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
URGENT plz help (resend re: jk_uri_worker prob)
hi list i tried to find an answer to this everywhere but no luck ... my mod_jk log is full with these two entries: [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any idea what could be causing this?? i get thousands of entries like this, nothing else, no errors in the application whatsoever i'd really like to know what the problem here is. and if it's nothing serious, i'd like to turn these messages off as it makes everything else very hard to find, and the mod_jk.log gets bigger and bigger. many thanks, Nico
RE: JDBC Problem with Ultradev
Although this certainly is off topic, this person is trying to develop JSP for Tomcat on the Ultradev IDE. The Macromedia newsgroups are notoriously unhelpful when it comes to JSP/JDBC, mainly due to lack of knowledge, and I suspect that this list goes out to some people very knowledgeable in this area. That being said, there's a lot of documentation both in the Ultradev docs and on the Macromedia website for how to configure JDBC for live data preview, and you should probably state that you've checked all of this and that this list is your last resort if that is the case, rather than posting here to save yourself the effort. Most JDBC live data preview connection problems in Ultradev are due to misconfigured classpaths, absent, misplaced or misnamed driver jar's, and lack of plain old trawling through the docs. Make sure you've checked these first. The drivers need to be in the Ultradev file system as well, in one of the subfolders detailed in the Ultradev online help. James - James Radvan Websphere Analyst/Architect London, UK [EMAIL PROTECTED] +44 7990 624899 -Original Message- From: pete [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 05:46 To: [EMAIL PROTECTED] Subject: Re: JDBC Problem with Ultradev And this has what to do with tomcat? Click here to visit the Argos home page http://www.argos.co.uk The information contained in this message or any of its attachments may be privileged and confidential, and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you are not the addressee, any disclosure, reproduction, distribution, dissemination or use of this communication is not authorised. If you have received this message in error, please advise the sender by using the reply facility in your e-mail software. All messages sent and received by Argos Ltd are monitored for virus, high risk file extensions, and inappropriate content. As a result users should be aware that mail may be accessed.
RE: Does Tomcat needs jdk 1.2.2
If you are using just servlets, you don't need a JDK. If you are deploying JSPs then you need the JavaC compiler (in the tools.jar file in the later versions of the JDK), which is the component that Sun indicates that you are not supposed to redistribute. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
Netscape/Tomcat link appears incorrect
Hello, I've been tinkering with the Netscape/Tomcat integrationi for a few weeks now, using the documentation supplied with the Tomcat installation, and the process doesn't seem to work according to the documentation. I don't know if the link itself is a problem, or the doco, but after following all the steps in the online help, when NES 3.6 attempts to serve JSP's, all that it ends up showing is the source code for the JSP, and not the output. Has anyone else encountered this, or have I installed something incorrectly? I've gone over the doco with a fine tooth comb, but to no avail. Cheers, Andrew. -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup FREE PC-to-Phone calls with Net2Phone http://www.net2phone.com/cgi-bin/link.cgi?121
Re: blue screen with servlets/jsp in Apache-Tomcat
I have a similar problem with Dell Inspiron 4000 Windows 2000 Pro JDK 1.3.0 jakarta-tomcat 3.2.2 I am using Tomcat standalone. I notice that 1) I can get one or two invocations of my servlet URL to work if I set up a local proxy server on 127.0.0.1:8080. However, after one or two goes, I get BSOD. 2) It never seems to work without the proxy server setup. 3) It will also fail on one of my static HTML page URLs. 4) I have tried using other ports. Whichever way you look at it, this is a(nother) Windows bug, but is there a workaround? Dominic North Red-Black IT Limited +44-7803-293753
Re: Newbie stumped by NoClassDefFoundError
First, you need to increase your environment space. I'm on NT and don't remember the parameter to command.com that enlarges the environment for W98. Try help command at the command prompt to find the right parameter. Next, you need to pay attention to the error message about 8.3 file names. You may need to find the 8.3 names for your jar files that are too long. Your basic problem is that Java can not find the class files it needs to run Tomcat. That is due to your environment size and file names. --- Yizchak Naveh-Benjamin [EMAIL PROTECTED] wrote: I'm trying to install Tomcat 3.2.2 under Win98, but keep getting a NoClassDefFoundError. I've looked through the archives and tried some of the different solutions that have been proposed to this problem, but nothing seems to work. Here are my environment variables: SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3.0_02\BIN set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2 set JAVA_HOME=C:\JDK1.3.0_02 set CLASSPATH=C:\JDK1.3.0_02 set CLASSPATH=C:\JDK1.3.0_02\lib\tools set CLASSPATH=C:\JDK1.3.0_02\bin set CLASSPATH=C:\jakarta-tomcat-3.2.2\classes set CLASSPATH=C:\jakarta-tomcat-3.2.2\lib set CLASSPATH=C:\jakarta-tomcat-3.2.2\lib\tools.jar * And here's what I get when I try to run startup: C:\jakarta-tomcat-3.2.2\binstartup Out of environment space Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using CLASSPATH: Starting Tomcat in new window * After this, a new window pops up and I get an exception in thread main = NoClassDefFoundError. Can someone please tell me what I'm doing wrong? Thank you ynb __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: Restarting Tomcat on NT
Actually, I'm not running Tomcat as a service. I meant that I don't have any problems starting Tomcat after rebooting the machine. I've run netstat -a (results below) and can see that the ports are in use, however that information doesn't seem to be very useful. Perhaps I should try running tomcat as a service? Steve At 05:56 AM 07/03/2001, Randy Layman wrote: No, there is no way to free a port. You mentioned that Tomcat comes up after a reboot, implying that you are running Tomcat as a service. If that is the case, the process name is jk_nt_service.exe. Unless you have another process that is constantly trying to grab that port, Tomcat is still running - NT does free the ports when the process dies. Also, 2000 (and I believe NT) ship with netstat. Using netstat -a you can determine which ports are currently in use (and their state). Randy -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 7:34 PM To: [EMAIL PROTECTED] Subject: RE: Restarting Tomcat on NT I've already tried that. Tomcat is dead, alright. Is there a way to explicitly free up a port on NT? At 06:04 PM 07/02/2001, you wrote: Maybe you didn't really kill off Tomcat, but just the DOS box it was running in,... (I've seen it happen after closing the DOS box, but not after Ctrl+C'ing the program.) Try bringing up the Task Manager, and make sure there aren't any instances of a java image name running. -- Bill K. -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Restarting Tomcat on NT I am having problems restarting Tomcat on NT. After a reboot of the machine, Tomcat starts without a problem. However, if I stop Tomcat and then attempt to restart, I get the following error: FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket( DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.jav a, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) I'm running Tomcat on port 8080. After I receive the above error, a netstat -a yields: TCPcx628443-b:80070.0.0.0:0 LISTENING TCPcx628443-b:80070.0.0.0:0 LISTENING TCPcx628443-b:80800.0.0.0:0 LISTENING TCPcx628443-b:80800.0.0.0:0 LISTENING So, for some reason, stopping Tomcat does not free up the port. I must then reboot my machine to run Tomcat again. I'm using Tomcat 3.2.1 and Classic VM (build JDK-1.2.2-001, native threads, symcjit). Ideally, I'd like to fix the problem, however, I'm also interested in any solution that doesn't require rebooting my machine. I'll be switching to a Linux-Tomcat platform soon, but need a solution for the meantime. Thanks, Steve
RE: Does Tomcat needs jdk 1.2.2
Thanks Randy, Can you please direct me to the place were SUN says that tools.jar may not be redistribute? (We are using JSPs. ) Regards, Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you are using just servlets, you don't need a JDK. If you are deploying JSPs then you need the JavaC compiler (in the tools.jar file in the later versions of the JDK), which is the component that Sun indicates that you are not supposed to redistribute. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
two tomcat one machine
Hello! I am running two tomcat 3.2.2 on one Solaris machine, each of them is bind to one IP Address via the inet parameter. But now it is impossible to shut the down with the standard process by calling org.apache.tomcat.startup.Tomcat -stop because none of them listen to 127.0.0.1 anymore... Has anyone an idea for this ? Bye, Oli Eales germany.net Technik Tel: +49-69-63397411
Re: Programmatic security with servlet mappings in tomcat
pete wrote: Sure, one is that i want custom login screens, another is that we store all our authentication details centrally and query for them via an XML data service. Various user and domain-specific data, including user preferences, roles etc. is stored in this repository, not just 'yes, this user has blanket access to the site'. You mean custom login screens per JSP? We had the same issue about how to protect the site and eventually went for getting the container to handle the security. Now we have optionally different login screens for different webapps and a tomcat realm that authenticates users against a user repository running in an EJB container. Permissions are then checked using JAAS and realm loads groups,roles etc from the user realm into the JAAS context. In addition J2EE roles are also mapped from roles in the user realm so we can use J2EE security and roles are dynamic rather than having to redeploy apps. We opted against the JSP approach because it means that the onus was on the developer to think about security :)) At least from the presentation point of view, but for the business logic there has to be some thought... Antony Our permissions-management tools are all written to work with this, so i have an existing system i must fit my tomcat-based solutions into here. I do use tomcat's basic authentication facilities for some unrelated services, but for us it makes a lot of sense to centralize authentication and preference data this way. If someone writes an app that doesn't protect the page? well, then the page is unprotected. Security never comes completely for 'free', and in my experience it is beneficial to place some onus on the developer to at least think about security during the course of development. YMMV, of course, but this approach has worked well for us. -Pete Pete, Interesting that you don't use the container's authentication mechanism to protect pages. What if someone writes an app that doesn't protect the page. Any reason why you chose this route? Rgds Antony
J2SDK 1.3.1 on Linux Segmentation Fault
A while ago I posted a question about a segmentation fault error I was getting with Tomcat. The machine is SuSE Linux 7.1 and the application was fine with J2SDK 1.3 but when I switched to J2SDK 1.3.1 it aborted with a segmentation fault. It turns out that it was aborting in the call to new DOMParser() in Xerces so it's not a Tomcat problem per se, but I still think it's worth mentioning what I found. I have discovered that this is a documented problem (Sun Java bug database ID 4466587). The problem appears when an exception is thrown inside a deeply recursive call and seems to be related to glibc-2.2-x. I gather that glibc-2.1-x enforced a 2M stack size limit but glibc-2.2-x does not, but it can only handle larger stacks if it's compiled with --enable-kernel=2.4.0 . The workaround is to set 'ulimit -s 2048' in your bash shell or 'limit stacksize 2048' in tcsh before starting the VM. I have not tried recompiling glibc.
newbie question
hi all! i am new with tomcat... having installed tomcat 3.2.2 and apache 1.3.11 on my NT 4.0... how will i come to know whether my apache and tomcat are communicating or notor rather what should i do to access tomcat from apacge(or vice-versa)... plz. help. Sumit Ranjan
RE: Does Tomcat needs jdk 1.2.2
If you read the license that you accept when you download the JDK you'll note that you can't redistribute any component of the JDK. If you read the license for the JVM download, you are free to redistribute. The only real difference between the packages is the tools.jar file, implying that this is the file that they want to restrict. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 9:36 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Randy, Can you please direct me to the place were SUN says that tools.jar may not be redistribute? (We are using JSPs. ) Regards, Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you are using just servlets, you don't need a JDK. If you are deploying JSPs then you need the JavaC compiler (in the tools.jar file in the later versions of the JDK), which is the component that Sun indicates that you are not supposed to redistribute. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
Protecting static resources with tomcat and apache
Can somebody answer this question or provide a link ? If using Tomcat 3.2/4.0 with apache and form based login, will the resources that are served directly by apache be protected, and how is it done ? As far as I understood tomcat stores username and password in the session and checks on each request if the requested resource is proteted and the stored user has the credentials to access it. (org/apache/tomcat/request/AccessInterceptor.java) But apache doesn't know anything about the tomcat session (it may know the session id from the cookie or the url but has no access to the internal data of the session) so how can apache protect the static resources ?
Re[2]: Does Tomcat needs jdk 1.2.2
Tuesday, July 03, 2001, 9:35:59 AM, [EMAIL PROTECTED] wrote: EBN Thanks Randy, EBN Can you please direct me to the place were SUN says that tools.jar may not EBN be redistribute? Sun only lets you distribute the JRE. You couldn't distribute the jdk if you wanted to. Note: you might be able to distribute the jikes compiler. EBN (We are using JSPs. ) EBN Regards, EBN Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you are using just servlets, you don't need a JDK. If you are deploying JSPs then you need the JavaC compiler (in the tools.jar file in the later versions of the JDK), which is the component that Sun indicates that you are not supposed to redistribute. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
Re: Running more than one instance of Tomcat on the same machine
Check the paths of your new instance. Ensure you're running Tomcat/Catalina 2 on another port besides 8080. Also, it uses 8007 to communicate with Apache if you're doing that as well. You'll need to change the port on the second instance that communicates with 8007 to something else. What I did was simply this Copy new instance. the JDK path does not change. If you have some custom classes within Tomcat's path, that will also have to change in startup.bat or tomcat.bat. Use the command Tomcat env to verify the classpath. You should not have to change any other variables. The JAVA02 might not be necessary because it will be a variable running in a separate instance. You're safe. If all this was done, what error did you get? From: "Albretch Mueller" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Running more than one instance of Tomcat on the same machine Date: Mon, 02 Jul 2001 15:41:27 - Hi, I am trying to run another instance of tomcat on the same machine, listening to another port, ... I copy the whole content of the "jakarta" folder into a second directory and run the startup script from there but it did not work (the rationale being that you may run the same java program in two different directories, since they will startup on their own JVM) I was tinkering with the startup script and came up with the following that - did not work- (Notice the "\prjct02\" folder): - - - - - - - - - - - - - - - - - - - - - - - - - SET _RUNJAVA02="%JAVA_HOME%\bin\java" SET _CATALINA_OPTS02=%CATALINA_OPTS02% SET _CATALINA_HOME02=%CATALINA_HOME02% SET CATALINA_OPTS02=" " SET CATALINA_HOME02= "C:\tomcat\prjct02\jakarta-tomcat-4.0-b5\" %_RUNJAVA02% %CATALINA_OPTS02% -Dcatalina.home="%CATALINA_HOME02%" org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start - - - - - - - - - - - - - - - - - - - - - - - - - - - How do you run a totally separate instance of tomcat in the same machine listening to incomming requests from another port, ...? Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: newbie question
I'm assuming you are running Tomcat on the default port, which is 8080. Start Tomcat and Apache and then go to: http://localhost:8080 Steve At 08:05 AM 07/03/2001, you wrote: hi all! i am new with tomcat... having installed tomcat 3.2.2 and apache 1.3.11 on my NT 4.0... how will i come to know whether my apache and tomcat are communicating or notor rather what should i do to access tomcat from apacge(or vice-versa)... plz. help. Sumit Ranjan
Re: Catalina only version of Tomcat
In a win32 environment, Tomcat as a command line instance get's it's classpath info from startup.bat and tomcat.bat. If you installed it as a service, it would get it from wrapper.properties. I don't believe you'd get a performance increase by trimming it down in the manner you suggest. Using Apache integration soluiton might improve your performance if you are serving static pages. This will allow Tomcat to process the JSP, etc. and Apache will act as the web server. From: "Albretch Mueller" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: "Catalina only" version of Tomcat Date: Mon, 02 Jul 2001 20:23:58 - Hi, before I go on with configuration experiments, which are alawys problematic, I would like to know what yur experience is with Tomcat running exclisive servlets, and for that matter the 2.3 specification. The servlets 2.2 package I have simply deleted from my system. But, how can you customize a slim down version of tomcat in stand alone fashion to process only servlets (+ XML) and forget about JSP's? Can you simply delete all jasper*.* files and all references to them in the web.xml and server.xml files? Should Tomcat run faster this way? Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Netscape/Tomcat link appears incorrect
Don't use Netscape (iPlanet?) myself, but that sure sounds like either a mime type is not set up right, or the 'content-type: text/html' is not being output. -joe- Andrew Willshire wrote: Hello, I've been tinkering with the Netscape/Tomcat integrationi for a few weeks now, using the documentation supplied with the Tomcat installation, and the process doesn't seem to work according to the documentation. I don't know if the link itself is a problem, or the doco, but after following all the steps in the online help, when NES 3.6 attempts to serve JSP's, all that it ends up showing is the source code for the JSP, and not the output. Has anyone else encountered this, or have I installed something incorrectly? I've gone over the doco with a fine tooth comb, but to no avail. Cheers, Andrew. --
RE: blue screen with servlets/jsp in Apache-Tomcat
Are you useing ZoneAlarm? I noticed that vsdatant.sys (from ZoneAlarm) does not get along well with Tomcat (especially in combination with struts and UltraDev) causing a BSD. D -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 7:04 AM To: [EMAIL PROTECTED] Subject: RE: blue screen with servlets/jsp in Apache-Tomcat If it is a server problem I would suggest trying a different (1.2) JVM to rule that out. Also, I would stick with getting Tomcat standalone to work first. (Take little steps) Randy -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:46 AM To: [EMAIL PROTECTED] Subject: Re: blue screen with servlets/jsp in Apache-Tomcat What happens if you look at them from another box? that is - is it a client problem or a server problem? On Tue, 3 Jul 2001 16:07, you wrote: hi, i get the blue screen of death everytime i access a servlet or jsp example from the Tomcat examples with: http://localhost:8080/examples/jsp/* or http://localhost:8080/examples/servlet/* or http://localhost/examples/jsp/* or http://localhost/examples/servlet/* system: dell inspiron 4000 windows 2000 pro jdk 1.3.1 jakarta-tomcat 3.2.2 with jserv module loaded in apache i don't know where/how to start debugging this. i don't even get any runtime errors. please help. thanks, --meg __ Get your FREE personalized e-mail at http://www.canada.com
RE: Virtual hosting with IIS
To get the mapping to happen you need to configure your uriworkermap.properties file (in the tomcat 'conf' directory) to pickup xml files: # # Simple worker configuration file # # Catch all XML files and pass to Tomcat *.xml=ajp12 As I understand it this should cause all .xml files requested to IIS to have the request passed to tomcat. You then need tomcat to pickup the xml files and pass them thro' your servlet, you achieve this in web.xml using a mapping. Andi. -Original Message- From: Markus Strickler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 12:31 To: [EMAIL PROTECTED] Subject: Re: Virtual hosting with IIS Andi- actually which parameters to set, is the problem. For example I have two server instances with their doc roots at C:\server1 and c:\server2 a) If I access a file from server1 like this: http://server:9000/index.xml I need the Cocoon servlet being invoked and the path C:\server1\index.xml passed to it. b) If I access a file from server2 like this: http://server:9001/index.xml I need the servlet being invoked and the path C:\server2\index.xml passed to it. The best solution would be if in case a) and b) different servlet contexts could be invoked. Any idea how to accomplish this? Note that I have several dozens of web servers, so using a separate JVM for each is ruled out. Thanks for any help -markus - Original Message - From: Everitt, Andrew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 12:44 PM Subject: RE: Virtual hosting with IIS Markus, Go in to IIS admin console and right click the computer icon, select properties. In 'Master Properties' select 'WWW Service' and click the 'Edit ...' button this will bring up the default properties page for all virtual server's on the computer - set the things you want set globally and you're done. Cheers, Andi. -Original Message- From: Markus Strickler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 10:53 To: [EMAIL PROTECTED] Subject: Virtual hosting with IIS Hi! I have several IIS webserver instances running on different ports on the same IP. Now I need to map the *.xml extension to Cocoon for all instances. Anybody an idea how to set this up? I'm using IIS5, Tomcat-3.2.2, JDK1.3 Any help would be appreciated, -markus
RE: Does Tomcat needs jdk 1.2.2
Thanks for this very important legal note. It is very sad to here that you can't deploy a product without relying on the user to install before another product ( which is a development tool ). Poor us. Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you read the license that you accept when you download the JDK you'll note that you can't redistribute any component of the JDK. If you read the license for the JVM download, you are free to redistribute. The only real difference between the packages is the tools.jar file, implying that this is the file that they want to restrict. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 9:36 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Randy, Can you please direct me to the place were SUN says that tools.jar may not be redistribute? (We are using JSPs. ) Regards, Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you are using just servlets, you don't need a JDK. If you are deploying JSPs then you need the JavaC compiler (in the tools.jar file in the later versions of the JDK), which is the component that Sun indicates that you are not supposed to redistribute. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
Re: Programmatic security with servlet mappings in tomcat
You can setup a custom login screen and set it up in the tomcat. I am doing it. and you can access the username and password from session variables j_username and j_password. also you can access requested link from session. login-config auth-methodFORM/auth-method form-login-config form-login-page/LogIn/form-login-page form-error-page/LogIn/form-error-page /form-login-config /login-config I like the tomcat login module because it is transparent. I guess you check the role, roleGroup and set response.sendError(401,..) to redirect user back to login page if he/she does not have enough previlages. did I miss anything here?? anil pete wrote: Sure, one is that i want custom login screens, another is that we store all our authentication details centrally and query for them via an XML data service. Various user and domain-specific data, including user preferences,roles etc. is stored in this repository, not just 'yes, this user has blanket access to the site'. Our permissions-management tools are all written to work with this, so i have an existing system i must fit my tomcat-based solutions into here. I do use tomcat's basic authentication facilities for some unrelated services, but for us it makes a lot of sense to centralize authentication and preference data this way.
Re: newbie question
http://localhost - Apache homepage http://localhost:8080 - Tomcat homepage If both display then Apache is working and Tomcat is working. Loads of mails about how to set up Tomcat with Apache. Pls read the archives or check out the Tomcat site. Vinay - Original Message - From: Sumit Ranjan To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 2:05 PM Subject: newbie question hi all! i am new with tomcat... having installed tomcat 3.2.2 and apache 1.3.11 on my NT 4.0... how will i come to know whether my apache and tomcat are communicating or notor rather what should i do to access tomcat from apacge(or vice-versa)... plz. help. Sumit Ranjan
Re: J2SDK 1.3.1 on Linux Segmentation Fault
At 05:55 AM 7/3/2001, you wrote: A while ago I posted a question about a segmentation fault error I was getting with Tomcat. The machine is SuSE Linux 7.1 and the application was fine with J2SDK 1.3 but when I switched to J2SDK 1.3.1 it aborted with a segmentation fault. It turns out that it was aborting in the call to new DOMParser() in Xerces so it's not a Tomcat problem per se, but I still think it's worth mentioning what I found. I have discovered that this is a documented problem (Sun Java bug database ID 4466587). The problem appears when an exception is thrown inside a deeply recursive call and seems to be related to glibc-2.2-x. I gather that glibc-2.1-x enforced a 2M stack size limit but glibc-2.2-x does not, but it can only handle larger stacks if it's compiled with --enable-kernel=2.4.0 . The workaround is to set 'ulimit -s 2048' in your bash shell or 'limit stacksize 2048' in tcsh before starting the VM. I have not tried recompiling glibc. To add more possibly useless comments to this it seems like a good idea generally to up the limits in the descriptor table for most of the params in a production system. I myself have encountered a number of problems that have been solved by increasing the number of file descriptors for example. A lot of unices ship with a default value of 64 for this; way to low for a production system. I typically edit (or create) startup scripts that use the root shell (sh) to kick off processes by adding ulmit command the increase the handles and descriptors to various production levels that seem to be useful, it also helps to know and be comfortable with setting the heap size settings in the jvm, although I see in my 1.3.1 copy running on 2K the -mx and -sx options seem to be missing...
RE: Does Tomcat needs jdk 1.2.2
At 06:35 AM 7/3/2001, you wrote: Thanks Randy, Can you please direct me to the place were SUN says that tools.jar may not be redistribute? He's right, I remember reading that too. I think it's in the javadocs/tools section, and possibly in the agreement blurb they put over the agree radio button you have to click to download the jdk.
Re: I need help in tomcat configuration with Oracle 8.1.7
Hello Guys, thanks for so much advises from all of you, I will try now to incorporate certain ideas to see whether I get it to work. Thanks Tobias - Original Message - From: Sam Newman To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 5:43 PM Subject: Re: I need help in tomcat configuration with Oracle 8.1.7 I don't know anything too specific about use with Oracle, but I've certainly used servlets/JSP's to access DB's via JDBC in the past (read: maintained code which did it, not developed it!), so its certainly possible. Firstly, could you give the exact error you are getting from tomcat? Also, you might want to try using 3.2.2, which is the current stable release and might contain fixes to your problems already. sam - Original Message - From: Internet Total Solutions LLC - Customer Liaisons Department - To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:37 AM Subject: I need help in tomcat configuration with Oracle 8.1.7 Hello, I would like to know whether anyone is able togive me a hinttowards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in javathat comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
RE: Does Tomcat needs jdk 1.2.2
At 08:41 AM 7/3/2001, you wrote: Thanks for this very important legal note. It is very sad to here that you can't deploy a product without relying on the user to install before another product ( which is a development tool ). Not really. You either use tools and standards that other people before have developed, and agree to their terms and give them due credit where appropriate, or re-invent the wheel all over again. That's not sad at all, that's fair trade. How would you like it if a customer (maybe I'm alone in this but I've never worked for a company that paid Sun a dime for the JDK itself) came up to you and said I want to redistribute your product and not only that I want you to re-engineer it so that it works to MY specifications, and if you bill me I'm going to tell you to get lost.
RE: I need help in tomcat configuration with Oracle 8.1.7
Firstly ... post in text, not HTML! What sort of errors are you getting from Tomcat? Have you checked your JDBC URL using Oracle's CheckJDBC class? Eoin. -Original Message- From: Internet Total Solutions LLC - Customer Liaisons Department - [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 3:37 AM To: [EMAIL PROTECTED] Subject: I need help in tomcat configuration with Oracle 8.1.7 Hello, I would like to know whether anyone is able to give me a hint towards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in java that comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
Change default context path of auto-loaded webapps??
I'd like all my webapps to be accessed as http://server/webapps/app rather than http://server/app. (To make it easier to configure the connector from IIS.) Is it possible to do this automatically for all auto-loaded webapps? Or would I have to create an explicit context definition for each one? Thanks in advance, -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW/ 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
Re: Newbie stumped by NoClassDefFoundError
Hello, the command on windows 98 for the settings in the config.sys is shell=C:\COMMAND.COM C:\ /p /e:4096 (4 MB is usually enough to start tomcat. I having it on 32 MB and it works fine) Bye Tobias - Original Message - From: Wyn Easton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 7:32 PM Subject: Re: Newbie stumped by NoClassDefFoundError First, you need to increase your environment space. I'm on NT and don't remember the parameter to command.com that enlarges the environment for W98. Try help command at the command prompt to find the right parameter. Next, you need to pay attention to the error message about 8.3 file names. You may need to find the 8.3 names for your jar files that are too long. Your basic problem is that Java can not find the class files it needs to run Tomcat. That is due to your environment size and file names. --- Yizchak Naveh-Benjamin [EMAIL PROTECTED] wrote: I'm trying to install Tomcat 3.2.2 under Win98, but keep getting a NoClassDefFoundError. I've looked through the archives and tried some of the different solutions that have been proposed to this problem, but nothing seems to work. Here are my environment variables: SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3.0_02\BIN set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2 set JAVA_HOME=C:\JDK1.3.0_02 set CLASSPATH=C:\JDK1.3.0_02 set CLASSPATH=C:\JDK1.3.0_02\lib\tools set CLASSPATH=C:\JDK1.3.0_02\bin set CLASSPATH=C:\jakarta-tomcat-3.2.2\classes set CLASSPATH=C:\jakarta-tomcat-3.2.2\lib set CLASSPATH=C:\jakarta-tomcat-3.2.2\lib\tools.jar * And here's what I get when I try to run startup: C:\jakarta-tomcat-3.2.2\binstartup Out of environment space Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using CLASSPATH: Starting Tomcat in new window * After this, a new window pops up and I get an exception in thread main = NoClassDefFoundError. Can someone please tell me what I'm doing wrong? Thank you ynb __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: blue screen with servlets/jsp in Apache-Tomcat
On Tue, 03 July 2001, DHarty wrote: Are you useing ZoneAlarm? i was! i just installed it in the weekend. and actually, i had Apache-Tomcat-MySQL running fine before that. so i stopped running ZoneAlarm. but ruled it out as the problem because i'm still getting BSOD-ed. i'll try uninstalling it. I noticed that vsdatant.sys (from ZoneAlarm) does not get along well with yes, BSOD comes with a STOP error, PAGE_FAULT_IN_NONPAGED_AREA, Address BABC055E at BABB2000, DateStamp 3ae73a79-vsdatant.sys. Tomcat (especially in combination with struts and UltraDev) causing a BSD. is there anything i can do aside from reinstalling my system? D thanks, i feel a little bit better now. --meg -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 7:04 AM To: [EMAIL PROTECTED] Subject: RE: blue screen with servlets/jsp in Apache-Tomcat If it is a server problem I would suggest trying a different (1.2) JVM to rule that out. Also, I would stick with getting Tomcat standalone to work first. (Take little steps) Randy -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:46 AM To: [EMAIL PROTECTED] Subject: Re: blue screen with servlets/jsp in Apache-Tomcat What happens if you look at them from another box? that is - is it a client problem or a server problem? On Tue, 3 Jul 2001 16:07, you wrote: hi, i get the blue screen of death everytime i access a servlet or jsp example from the Tomcat examples with: http://localhost:8080/examples/jsp/* or http://localhost:8080/examples/servlet/* or http://localhost/examples/jsp/* or http://localhost/examples/servlet/* system: dell inspiron 4000 windows 2000 pro jdk 1.3.1 jakarta-tomcat 3.2.2 with jserv module loaded in apache i don't know where/how to start debugging this. i don't even get any runtime errors. please help. thanks, --meg __ Get your FREE personalized e-mail at http://www.canada.com __ Get your FREE personalized e-mail at http://www.canada.com
Re: I need help in tomcat configuration with Oracle 8.1.7
As long as you have the classes111.zip in your classpath, you should not have a problem. I just created a simple form that allowed a user to enter information and login. You could also hardcode these values and they would work. Here's a little snippet of code that works fine. You have catch the exceptions, but the connection will work for you. private String url; private String user; private String password; private Connection conn; private boolean conn_s; private boolean hasClosed; public void init(ServletConfig config) throws ServletException { super.init(config); conn_s=false; hasClosed=true; } /**Process the HTTP Get request*/ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { url=jdbc:oracle:thin:@+request.getParameter(hostString); user=request.getParameter(userName); password=request.getParameter(password); try { System.out.println(Current connection status: +hasClosed); DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); conn=DriverManager.getConnection(url,user,password); conn_s=true; System.out.println(Connection made succesfully); } __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: Does Tomcat needs jdk 1.2.2
Not really - you could use jspc to compile your JSPs into servlets and then compile the servlets before install time (like at installer build time). Then you would only need to distribute the JRE. This would also give you a runtime speed up and still allow developers to use JSP technology. This all assumes that you application doesn't require the users to compile their own JSPs. Another option, as was pointed out, is to use Jikes. I am unsure of its distribution regulations, so you will need to investigate this. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 11:41 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks for this very important legal note. It is very sad to here that you can't deploy a product without relying on the user to install before another product ( which is a development tool ). Poor us. Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you read the license that you accept when you download the JDK you'll note that you can't redistribute any component of the JDK. If you read the license for the JVM download, you are free to redistribute. The only real difference between the packages is the tools.jar file, implying that this is the file that they want to restrict. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 9:36 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Randy, Can you please direct me to the place were SUN says that tools.jar may not be redistribute? (We are using JSPs. ) Regards, Eitan -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: Does Tomcat needs jdk 1.2.2 If you are using just servlets, you don't need a JDK. If you are deploying JSPs then you need the JavaC compiler (in the tools.jar file in the later versions of the JDK), which is the component that Sun indicates that you are not supposed to redistribute. Randy -Original Message- From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Does Tomcat needs jdk 1.2.2 Thanks Sam, Actually, my intention was to ask if Tomcat need JDK at all. Now it's clear that the answer is yes. I want to be more precise: what parts of the JDK are needed, since we want to deploy Tomcat with our product, without the need of full JDK installation - only those special resources. What are they? Thanks, Eitan -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: Re: Does Tomcat needs jdk 1.2.2 erm, my understanding is that Tomcat only requires Java 1.1.7 or above. By default the server.xml that ships with Tomcat actually comments out those areas of code that require Java 1.2/Java 2, e.g. the use of a security manager/policies sam - Original Message - From: Frans Thamura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:09 PM Subject: Re: Does Tomcat needs jdk 1.2.2 Ya, JSDK. Because Tomcat is a server based on Java Frans - Original Message - From: Eitan Ben Noach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:40 AM Subject: Does Tomcat needs jdk 1.2.2 Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan snip
404 R
Hello, does anyone know why I keep getting the following messages? I can't find any path in my files that looks like the ones below. can it bring down the server? I'm using tomcat standalone. Any feedback would be appreciated 2001-07-03 09:48:31 - Ctx( /examples ): 404 R( /examples + /html/html/Images/RWS LOGO.gif + null) null 2001-07-03 09:48:38 - Ctx( /examples ): 404 R( /examples + /html/Images/RWSLOGO. gif + null) null 2001-07-03 09:48:55 - Ctx( /examples ): 404 R( /examples + /html/Images/RWSLOGO. gif + null) null
Re: newbie question
Hi, I have a simple question: if I put the following into my ChatEnter.jsp form METHOD="post" ACTION="/Code/Chap03/Chat.jsp" it doesn't work even I set in my server.xml by Context path="/Code/Chap03" docBase="c:/Code/Chap03" / my EnterChat.jsp and Chat.jsp are under directory c:\Code\Chap03 But if I change ACTION="/Code/Chap03/Chat.jsp" into /Chap03/Chat.jsp and path="/Code/Chap03" into /Chap03. All work fine. Why is it? mwu - Original Message - From: Vinay Menon To: [EMAIL PROTECTED] ; Sumit Ranjan Sent: Tuesday, July 03, 2001 7:58 AM Subject: Re: newbie question http://localhost - Apache homepage http://localhost:8080 - Tomcat homepage If both display then Apache is working and Tomcat is working. Loads of mails about how to set up Tomcat with Apache. Pls read the archives or check out the Tomcat site. Vinay - Original Message - From: Sumit Ranjan To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 2:05 PM Subject: newbie question hi all! i am new with tomcat... having installed tomcat 3.2.2 and apache 1.3.11 on my NT 4.0... how will i come to know whether my apache and tomcat are communicating or notor rather what should i do to access tomcat from apacge(or vice-versa)... plz. help. Sumit Ranjan
Re: blue screen with servlets/jsp in Apache-Tomcat
On Tue, 03 July 2001, Dominic North wrote: I have a similar problem with Dell Inspiron 4000 Windows 2000 Pro JDK 1.3.0 jakarta-tomcat 3.2.2 I am using Tomcat standalone. I notice that 1) I can get one or two invocations of my servlet URL to work if I set up a local proxy server on 127.0.0.1:8080. However, after one or two goes, I get BSOD. i stop all servers. then start Tomcat then Apache then MySQL. then the URLs work for a few times before it goes BSOD again. it seems that if Tomcat is started after Apache it goes BSOD right away. but i have yet to confirm that. 2) It never seems to work without the proxy server setup. 3) It will also fail on one of my static HTML page URLs. 4) I have tried using other ports. i played around with ports too. now the IS folks can't even get my laptop back on the network anymore :( Whichever way you look at it, this is a(nother) Windows bug, but is there a workaround? reinstall windows or reformat disk altogether? Dominic North Red-Black IT Limited +44-7803-293753 __ Get your FREE personalized e-mail at http://www.canada.com
Mail Delivery Status Notification
MAIL ESSENTIALS SENDER NOTIFICATION The following message: TO: [EMAIL PROTECTED] FROM:[EMAIL PROTECTED] DATE: Tue, 3 Jul 2001 23:01:20 +0700 Subject: Re: I need help in tomcat configuration with Oracle 8.1.7 has been quarantined by Mail Essentials for the following reason(s): Body contains word(s)/phrase(s) 'ad:, ad:' Mail essentials Hello Guys, thanks for so much advises from all of you, I will try now to incorporate certain ideas to see whether I get it to work. Thanks Tobias - Original Message - From: Sam Newman To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 5:43 PM Subject: Re: I need help in tomcat configuration with Oracle 8.1.7 I don't know anything too specific about use with Oracle, but I've certainly used servlets/JSP's to access DB's via JDBC in the past (read: maintained code which did it, not developed it!), so its certainly possible. Firstly, could you give the exact error you are getting from tomcat? Also, you might want to try using 3.2.2, which is the current stable release and might contain fixes to your problems already. sam - Original Message - From: Internet Total Solutions LLC - Customer Liaisons Department - To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:37 AM Subject: I need help in tomcat configuration with Oracle 8.1.7 Hello, I would like to know whether anyone is able togive me a hinttowards solving the following scenario. If anyone is available on consultation basis, it is fine too. I have developed website personalization engine in javathat comes with it's own kind of application server to handle the client access requests to the oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin driver and classes111.zip in order to handle the requests through the jdbc. However tomcat giving me serious errors and my client application can't login to the database. Would anyone be able to help me on that matter? Thanks Tobias Hansen
Re: List traffic et al
On Tue, 3 Jul 2001, Sam Newman wrote: Given the huge amount of traffic this list generates, I can rarely get involved with the discussions that take place. It occurs to me that there sems to be three major discussion themes on the list as a whole: 1.) General servlet/jsp development issues and how tomcat affects them 2.) General tomcat configuration issues 3.) Webserver integration issues I guess as documentation improves (e.g. tomcat book, work by people like Mike Slinn) points 23 will become less of an issue. I'm just wondering if there is any millage in perhaps splitting the list into 2 or 3 lists? Personally, I've got no issues with getting tomcat up and running and so don't care too much about that end of things, however the servlet/jsp development issues is more interesting to me. I don't have too strong an opinion on it, its just that I worry I'm missing some interesting topics because I don't have the time to work though all the posts This idea has come up before, and I think it's one of the best for dealing with the high volume on this list (I guess it's one of the two or three highest volume apache lists). I even volunteered to take the lead in doing this. So I sent a note to the list owner explaining the idea. Unfortunately, I never heard anything back. Without the list owner's cooperation/participation (or someone who can modify the apache/jakarta mailing lists), it won't be possible to do this. So, we could do some work on this (i.e. figuring out what separate lists to have), but unless we know that it's going to come to something, it doesn't make sense to do too much work on it. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Problem with stopping Tomcat
Hi all... When I tried to minimize my configuration I reach a state when tomcat.sh stop ends with this message. Only Classpath information was before it. Stop tomcat java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.doConnect(Compiled Code) at java.net.PlainSocketImpl.connectToAddress(Compiled Code) at java.net.PlainSocketImpl.connect(Compiled Code) at java.net.Socket.init(Compiled Code) at java.net.Socket.init(Compiled Code) at org.apache.tomcat.task.StopTomcat.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.stopTomcat(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.main(Compiled Code) I've got only one worker defined in server.xml on port 8444. What can I miss in my config-files? I really don't know when this started to occure, so I can't say which file is siner. But httpd.conf is not. I tried older version and it doesn't help me. I changed tomcat-configs without backin them up... so. :-))) What connection is tried when tomcat goes down? Thanks Virgo Richard Richter ([EMAIL PROTECTED]) Application Programmer, Business Global Systems a. s.
PoolMan woes
I am trying to get PoolMan and TomCat to play nicely together. I am developing on Win2k, Tomcat 3.2. My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just vanishes. I tried increasing the heap size, but that didn't seem to help. Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it can't find its poolman.props file. I've tried putting it in directories that I'm absolutely positive are in my ClassPath without luck. I've read the docs pretty extensively I think, but can't seem to come up with an answer. My overall goal is to simply add connection pooling to tomcat. If anyone can give me some pointers, thanks in advance. Matt
solved! RE: blue screen with servlets/jsp in Apache-Tomcat
i uninstalled ZoneAlarm and reinstalled TCP/IP and now back in business. thanks very much for your help. no way i could have solved that on my own. --meg On Tue, 03 July 2001, [EMAIL PROTECTED] wrote: On Tue, 03 July 2001, DHarty wrote: Are you useing ZoneAlarm? i was! i just installed it in the weekend. and actually, i had Apache-Tomcat-MySQL running fine before that. so i stopped running ZoneAlarm. but ruled it out as the problem because i'm still getting BSOD-ed. i'll try uninstalling it. I noticed that vsdatant.sys (from ZoneAlarm) does not get along well with yes, BSOD comes with a STOP error, PAGE_FAULT_IN_NONPAGED_AREA, Address BABC055E at BABB2000, DateStamp 3ae73a79-vsdatant.sys. Tomcat (especially in combination with struts and UltraDev) causing a BSD. is there anything i can do aside from reinstalling my system? D thanks, i feel a little bit better now. --meg -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 7:04 AM To: [EMAIL PROTECTED] Subject: RE: blue screen with servlets/jsp in Apache-Tomcat If it is a server problem I would suggest trying a different (1.2) JVM to rule that out. Also, I would stick with getting Tomcat standalone to work first. (Take little steps) Randy -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 2:46 AM To: [EMAIL PROTECTED] Subject: Re: blue screen with servlets/jsp in Apache-Tomcat What happens if you look at them from another box? that is - is it a client problem or a server problem? On Tue, 3 Jul 2001 16:07, you wrote: hi, i get the blue screen of death everytime i access a servlet or jsp example from the Tomcat examples with: http://localhost:8080/examples/jsp/* or http://localhost:8080/examples/servlet/* or http://localhost/examples/jsp/* or http://localhost/examples/servlet/* system: dell inspiron 4000 windows 2000 pro jdk 1.3.1 jakarta-tomcat 3.2.2 with jserv module loaded in apache i don't know where/how to start debugging this. i don't even get any runtime errors. please help. thanks, --meg __ Get your FREE personalized e-mail at http://www.canada.com __ Get your FREE personalized e-mail at http://www.canada.com __ Get your FREE personalized e-mail at http://www.canada.com
Can't find class ERROR
Hi Friends, I installed Tomcat's Binary Version 3.2.2. But when I try to run server on my HP-UX machine using, /bin/startup.sh it gives me following error Can't find class org.apache.tomcat.startup.Tomcat Any suggestion will be appreciated... Thanks.. DIPAL
Running multiple virtual hosts with one JVM
Hello! The idea I've got is to run 2 or 4 or 8 virtual hosts, all doing the same thing, under one JVM. I got this working several months ago, but it has slipped my mind as to how to do this. I recall having each virtual host having its own unique web.xml file, it's own unique WEB-INF directory, and the WEB-INF containing a complete set of the classes for the application. Each virtual host was configured in the apache conf file, pointing to different ports. Each port was listend to in one server.xml file. Each different port pointed to a unique WEB-INF directory, as mentioned above. Does this sound correct? Are there better ways to have multiple virtual hosts running under one JVM? Thanks in advance for any tips, howtos, etc. Will -- /~'find `funny quote`': Command not found; humor not installed. 1986 Concours 72,xxx 1982 Maxim 12,xxx (For Sale!) CDA #00046 Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD http://will.mylanders.com/
Re: need help for rmi calls from tomcat 3.2.1
I tried that but still the problem is not solved. I wonder why RMI calls are not documented anywhere in apache tomcat. There must be quite a lot of applications using RMI and IIOP from tomcat JSP server. If anyone knows any solutions pls let me know. [EMAIL PROTECTED] - Original Message - From: Francisco Areas Guimaraes To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 5:10 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 Assumming you installed tomcat in "c:\tomcat", you have to copy the "getStart" directory to "c:\tomcat\webapps\ROOT", so it would end up like this "c:\tomcat\webapps\ROOT\getStart". Now your url will work. You just have to think that "c:\tomcat\webapps\ROOT" is the physical address of "localhost:8080", got it? []´s Francisco - Original Message - From: Shyam Sarkar To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 7:02 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 No, I copied to a separate directory called getStart and accesing hello.html in that directory using http://loalhost:8080/getStart/hello.html. Any suggestions ? Thanks. [EMAIL PROTECTED] - Original Message - From: Francisco Areas Guimaraes To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 3:00 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 Have you copied to "/webapps/ROOT" ? Francisco - Original Message - From: Shyam Sarkar To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 6:43 PM Subject: need help for rmi calls from tomcat 3.2.1 I installed rmi example problem (Helloworld) in a directory called getStartunderC:\rmi\rmi. I can start the server and the client applet as described inthe trail.Next I started tomcat server and copied getStart under webapp directory.I started rmiregistry and then the server.I tried to open hello.html from a browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the resultmessage is 'blank' rather than 'Hello World'. I added the wrapper classpathetc.Any suggestions what is wrong.Regards.[EMAIL PROTECTED]
RE: Problem with stopping Tomcat
Tomcat uses AJP12 to shutdown. -Original Message- From: Richard Richter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 1:15 PM To: [EMAIL PROTECTED] Subject: Problem with stopping Tomcat Hi all... When I tried to minimize my configuration I reach a state when tomcat.sh stop ends with this message. Only Classpath information was before it. Stop tomcat java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.doConnect(Compiled Code) at java.net.PlainSocketImpl.connectToAddress(Compiled Code) at java.net.PlainSocketImpl.connect(Compiled Code) at java.net.Socket.init(Compiled Code) at java.net.Socket.init(Compiled Code) at org.apache.tomcat.task.StopTomcat.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.stopTomcat(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.main(Compiled Code) I've got only one worker defined in server.xml on port 8444. What can I miss in my config-files? I really don't know when this started to occure, so I can't say which file is siner. But httpd.conf is not. I tried older version and it doesn't help me. I changed tomcat-configs without backin them up... so. :-))) What connection is tried when tomcat goes down? Thanks Virgo Richard Richter ([EMAIL PROTECTED]) Application Programmer, Business Global Systems a. s.
Re: PoolMan woes
Matt: I ran into the same problem several days ago. If I used the poolman.xml.example as poolman.xml... tomcat just plain died without warning. No errors, nothing. When I tried using the poolman.xml.template as poolman.xml... it worked flawlessly. Hope it helps, Jack Lauman Matt Barre wrote: I am trying to get PoolMan and TomCat to play nicely together. I am developing on Win2k, Tomcat 3.2. My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just vanishes. I tried increasing the heap size, but that didn't seem to help. Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it can't find its poolman.props file. I've tried putting it in directories that I'm absolutely positive are in my ClassPath without luck. I've read the docs pretty extensively I think, but can't seem to come up with an answer. My overall goal is to simply add connection pooling to tomcat. If anyone can give me some pointers, thanks in advance. Matt
RE: PoolMan woes
We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems. PoolMan does respond rather violently when it can't find its configuration file - which is poolman.xml in version 2. I put this in $TOMCAT_HOME/classes and it appears to be found OK. If PoolMan doesn't find its configuration file, it ends up throwing a NullPointerException however, I've never seen this floor Tomcat - you just get an exception in the logs. How are you using PoolMan from within Tomcat? We just import it into our servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a data source from it and then call ds.getConnection() to force initialisation. One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K JVM. Eoin. -Original Message- From: Matt Barre [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: PoolMan woes I am trying to get PoolMan and TomCat to play nicely together. I am developing on Win2k, Tomcat 3.2. My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just vanishes. I tried increasing the heap size, but that didn't seem to help. Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it can't find its poolman.props file. I've tried putting it in directories that I'm absolutely positive are in my ClassPath without luck. I've read the docs pretty extensively I think, but can't seem to come up with an answer. My overall goal is to simply add connection pooling to tomcat. If anyone can give me some pointers, thanks in advance. Matt
error using the sample applications with tomcat
Hi. I'm getting this error message and have tried my hardest to figure it out. Any help would be appreciated. 500 Error - java.lang.NoClassDefFoundError: sun/tools/javac/Main --- this occurs when executing the samples. Thanks so much! Lynn Domzalski Testing Integration Center Compuware Corporation Office: (248) 737-7300 x10739 Fax: (248) 737-7606 E-Mail: mailto:[EMAIL PROTECTED]
RE: Restarting Tomcat on NT
Steve, If you're running personal web server, IIS, or some third party apps that have integrated web servers (several webcam products come to mind), then shut these down. This is most likely the offending application. Darrell -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 5:30 AM To: [EMAIL PROTECTED] Subject: RE: Restarting Tomcat on NT Actually, I'm not running Tomcat as a service. I meant that I don't have any problems starting Tomcat after rebooting the machine. I've run netstat -a (results below) and can see that the ports are in use, however that information doesn't seem to be very useful. Perhaps I should try running tomcat as a service? Steve At 05:56 AM 07/03/2001, Randy Layman wrote: No, there is no way to free a port. You mentioned that Tomcat comes up after a reboot, implying that you are running Tomcat as a service. If that is the case, the process name is jk_nt_service.exe. Unless you have another process that is constantly trying to grab that port, Tomcat is still running - NT does free the ports when the process dies. Also, 2000 (and I believe NT) ship with netstat. Using netstat -a you can determine which ports are currently in use (and their state). Randy -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 7:34 PM To: [EMAIL PROTECTED] Subject: RE: Restarting Tomcat on NT I've already tried that. Tomcat is dead, alright. Is there a way to explicitly free up a port on NT? At 06:04 PM 07/02/2001, you wrote: Maybe you didn't really kill off Tomcat, but just the DOS box it was running in,... (I've seen it happen after closing the DOS box, but not after Ctrl+C'ing the program.) Try bringing up the Task Manager, and make sure there aren't any instances of a java image name running. -- Bill K. -Original Message- From: Steven Turoff [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Restarting Tomcat on NT I am having problems restarting Tomcat on NT. After a reboot of the machine, Tomcat starts without a problem. However, if I stop Tomcat and then attempt to restart, I get the following error: FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket( DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.jav a, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) I'm running Tomcat on port 8080. After I receive the above error, a netstat -a yields: TCPcx628443-b:80070.0.0.0:0 LISTENING TCPcx628443-b:80070.0.0.0:0 LISTENING TCPcx628443-b:80800.0.0.0:0 LISTENING TCPcx628443-b:80800.0.0.0:0 LISTENING So, for some reason, stopping Tomcat does not free up the port. I must then reboot my machine to run Tomcat again. I'm using Tomcat 3.2.1 and Classic VM (build JDK-1.2.2-001, native threads, symcjit). Ideally, I'd like to fix the problem, however, I'm also interested in any solution that doesn't require rebooting my machine. I'll be switching to a Linux-Tomcat platform soon, but need a solution for the meantime. Thanks, Steve
Re: PoolMan woes
Thanks for the tip. By taking the two suggestions I now have Tomcat somewhat stabilized. I am working on a jsp to get all the kinks worked out. I import the PoolMan packages but I get the following/weird error: Method getDataSource(java.lang.String) not found in class com.codestudio.sql.PoolMan According to the javadocs that is a valid function call Any further ideas? Thanks, Matt - Original Message - From: Eoin Woods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 1:18 PM Subject: RE: PoolMan woes We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems. PoolMan does respond rather violently when it can't find its configuration file - which is poolman.xml in version 2. I put this in $TOMCAT_HOME/classes and it appears to be found OK. If PoolMan doesn't find its configuration file, it ends up throwing a NullPointerException however, I've never seen this floor Tomcat - you just get an exception in the logs. How are you using PoolMan from within Tomcat? We just import it into our servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a data source from it and then call ds.getConnection() to force initialisation. One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K JVM. Eoin. -Original Message- From: Matt Barre [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: PoolMan woes I am trying to get PoolMan and TomCat to play nicely together. I am developing on Win2k, Tomcat 3.2. My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just vanishes. I tried increasing the heap size, but that didn't seem to help. Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it can't find its poolman.props file. I've tried putting it in directories that I'm absolutely positive are in my ClassPath without luck. I've read the docs pretty extensively I think, but can't seem to come up with an answer. My overall goal is to simply add connection pooling to tomcat. If anyone can give me some pointers, thanks in advance. Matt
RE: error using the sample applications with tomcat
Your JAVA_HOME doesn't point to a JDK - Tomcat can't find Sun's Java compiler and therefore can't compile the JSPs into servlets. Randy -Original Message- From: Domzalski, Lynn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 3:35 PM To: '[EMAIL PROTECTED]' Subject: error using the sample applications with tomcat Hi. I'm getting this error message and have tried my hardest to figure it out. Any help would be appreciated. 500 Error - java.lang.NoClassDefFoundError: sun/tools/javac/Main --- this occurs when executing the samples. Thanks so much! Lynn Domzalski Testing Integration Center Compuware Corporation Office: (248) 737-7300 x10739 Fax: (248) 737-7606 E-Mail: mailto:[EMAIL PROTECTED]
problem with getPort()
I'm trying to get the port off of a request object and it is returning port 0. Here is how I'm getting the URL I came from. StringBuffer came_from = HttpUtils.getRequestURL(request); While reconstructing a new URL java.net.URL tmp_url = new java.net.URL(came_from.toString()); My servlet faild because I was using port 0. To test I printed out 'came_from' and it said port 0. I'm using Tomcat 3.2.2 with ajp12 configured to use Apache 1.3.20 Thanks joe -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
JDBC Bad handshake error
hi, I'm trying to use mysql with tomcat IIS i downloaded and installed the mm.mysql.jdbc-1.2c driver i have this error when i try to access the database: java.sql.exception: Communication link failure : Bad handshake can anyone tell me what did i do wrong??? thanks Georges
Re: two tomcat one machine
Reviewed the code a couple weeks ago looking for a similar solution. You can call org.apache.tomcat.startup.StopTomcat directly with -host and -port options. Check the code for more details if you have trouble...the -port option works for me on 3.3.m3. btw - It's possible I was looking at current 3.3 code and not 3.2.2 so YMMV. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Tue, 3 Jul 2001 14:41:12 +0200 (CEST), [EMAIL PROTECTED] wrote: Hello! I am running two tomcat 3.2.2 on one Solaris machine, each of them is bind to one IP Address via the inet parameter. But now it is impossible to shut the down with the standard process by calling org.apache.tomcat.startup.Tomcat -stop because none of them listen to 127.0.0.1 anymore... Has anyone an idea for this ? Bye, Oli Eales germany.net Technik Tel: +49-69-63397411
RE: problem with getPort()
Is there a reason that you aren't using request.getPort()? -Original Message- From: Joseph D Toussaint [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 4:38 PM To: [EMAIL PROTECTED] Subject: problem with getPort() I'm trying to get the port off of a request object and it is returning port 0. Here is how I'm getting the URL I came from. StringBuffer came_from = HttpUtils.getRequestURL(request); While reconstructing a new URL java.net.URL tmp_url = new java.net.URL(came_from.toString()); My servlet faild because I was using port 0. To test I printed out 'came_from' and it said port 0. I'm using Tomcat 3.2.2 with ajp12 configured to use Apache 1.3.20 Thanks joe -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
Re: List traffic et al
Milt wrote: This idea has come up before, and I think it's one of the best for dealing with the high volume on this list (I guess it's one of the two or three highest volume apache lists). I even volunteered to take the lead in doing this. So I sent a note to the list owner explaining the idea. Unfortunately, I never heard anything back. Without the list owner's cooperation/participation (or someone who can modify the apache/jakarta mailing lists), it won't be possible to do this. So, we could do some work on this (i.e. figuring out what separate lists to have), but unless we know that it's going to come to something, it doesn't make sense to do too much work on it. perhaps if we came up with a general consensus as to how to split the lists, we might get more of a response? As a first draft proposal, what about the following division: tomcat-config - for deploying webapps (web.xml, war files), working with server.xml, running on various platforms etc tomcat-integration - for working with other webservers, EJB containers, databases etc. Please feel free to comment sam