Re: Simple Question
even if u dont restart the SERVER again, the moment u open the new browser the web.xml should be read again. But at time if this doens work then its better to RESTART the server. After that the new web.xml will be read for sure. Are u sure that ur mapping for the servlets and all that stuff is right inside the web.xml ? u may want to check that once more. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Vy Ho [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Simple Question Date: Sun, 02 Mar 2003 23:29:23 -0500 I have a very simple question, and if you are a bit experienced in tomcat, you probably would know. I would really appreciate any links, hints, tips or advices. The question is this, if I change an application deployment file (web.xml), and then use the tomcat manager to restart the application (through the web), would the change in the web.xml file be used? Is the restart as of the above action is the same as a restart of the tomcat server (application) itself (that is to stop and start the whole server)? If the above does not work (I tried to restart, and it says restart successfully, but the xml file does not seem to be read), then how to I do this without actually restart the server? Thank you very much again for any help. VD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT INSTALLATION
hey ! Just check whether TOMCAT was downloaded properly. i had the same error for the reason that there was no LOGS forlder created automatocally while downloading TOMCAT and the second time there was no index.html present inside the ROOT. so u may want to check for something like that ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: M A [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: TOMCAT INSTALLATION Date: Mon, 03 Mar 2003 14:51:36 + Hi, I downloaded tomcat-4.1.18.zip and following the installation precisely on my Window XP machine (PC standalone) However, when I typed http://localhost:8080, blank page appear no error messages shown. Please help me figure out how to set up Tomcat to run servlet. I have jdk 1.3 installed. Then, I try to use an eariler version 4.0.2 and when I typed http://localhost:8080 in the browser, HTTP 500 Internal server error is shown while TOmcat (DOS window) is running in the background with no errors. Thanks, R. A. _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC connectivityfor ORACLE !!!
thanx MIKE and PATER. i am starting to work on it, lets see how quickly i go ahead with the installation and all that stuff. trying best to do the TIGHT-ROPE-WALK ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC connectivityfor ORACLE !!! Date: Thu, 27 Feb 2003 08:56:19 -0800 Also, http://www.orafaq.com is extremely helpful for answering questions. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 8:53 AM To: Tomcat Users List Subject: RE: JDBC connectivityfor ORACLE !!! To Install Oracle: Create three groups, sysdba, sysoper, oinstall Create an oracle user, default group oinstall, member of sysdba and sysoper Setup environment variables for ORACLE_HOME, and ORACLE_SID Change the PATH to include $ORACLE_HOME/bin Get the CDROMS Mount the CDROMS cd /where the cdrom is mounted As the oracle user ./runInstaller.sh For the most part follow the instructions, but do not, and I repeat do not let it to the copy the inital database, in fact when you get the option have it install the software only. After oracle is installed run dbca Create the initial database, take the option that creates a database without using a template As for JDBC drivers, I've never had a problem with the oracle drivers, except in their JDBC2.0 connection pooling, so as long as you use another connection pool I'd use the standard ones. --mikej -=- mike jackson [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC connectivityfor ORACLE !!!
hey MIKE ! may be this is a DUMB QUESTION but all this procedure for installation remains tha same irrespective of the fact that i am trying to implement ORACLE under XP. right ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC connectivityfor ORACLE !!! Date: Thu, 27 Feb 2003 08:56:19 -0800 Also, http://www.orafaq.com is extremely helpful for answering questions. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 8:53 AM To: Tomcat Users List Subject: RE: JDBC connectivityfor ORACLE !!! To Install Oracle: Create three groups, sysdba, sysoper, oinstall Create an oracle user, default group oinstall, member of sysdba and sysoper Setup environment variables for ORACLE_HOME, and ORACLE_SID Change the PATH to include $ORACLE_HOME/bin Get the CDROMS Mount the CDROMS cd /where the cdrom is mounted As the oracle user ./runInstaller.sh For the most part follow the instructions, but do not, and I repeat do not let it to the copy the inital database, in fact when you get the option have it install the software only. After oracle is installed run dbca Create the initial database, take the option that creates a database without using a template As for JDBC drivers, I've never had a problem with the oracle drivers, except in their JDBC2.0 connection pooling, so as long as you use another connection pool I'd use the standard ones. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:50 PM To: [EMAIL PROTECTED] Subject: JDBC connectivityfor ORACLE !!! hi MIKE, PENG , CHONG !! guys, there seems to be a problem here for me with the database implementation. After all the discussion i was all set to implemenent the database as a FILESYSTEM only but my BOSS insists that ORACLE shoudl be implemented. Can somebody of u enlighten me with the SITES and README files about impplementing ORACLE under TOMCAT umbrella and what could be the DRIVERS i need to know before i plunge into the deep sea of ORACLE implementation. some of the drivers suggested are the ones made by DATATAKE, JBOSS (i guess, i may be wrong)or the default drivers which come up with the ORACLE. Comments are really awaited ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 09:20:31 -0800 SQLPlus is part of oracle. You can't do sqlplus without oracle. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:20 PM To: [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that there i sno urgent need for me to take up a HUMONGOUS taks of using ORACLE and i guess i will IMPLEMENT the SQLPLUS or the FILESYSTEM as my alternatives to the DATABASE application. but in the end i would really like to know as to between SQLPLUS or FILESYSTEM, which will be convinient for me to HANDLE string stripping , string comparison and all that stuff ! ( BTW, i have really started implementing the FILESYSTEM to a good level ) do commment about this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 07:06:31 +0800 I think if you take Oracle installation, configuration and maintenance out of the picture, you definitely have a much more workable plan. I agree with Peter, in that designing the tables and application logic are going to be tough. I once wrote a servlet that processed CDR data from a Cisco switch, and I spent a lot of time getting the logic just right. If I understand you correctly, Swapneel, you need the database for storage only, correct ? Are you planning to use the Oracle text indexer, or are you implementing that yourself? One last thing : JDBC may take you a shorter time to learn than the 2 weeks I put down in an earlier email. On reflection, that is probably padding
RE: JDBC connectivityfor ORACLE !!!
hi ~ thanx for the files u sent me . hope that i should be able to use then successfully, but i am curious to know if i will use another version of ORACLE such as the Oracle Personal Edition then will this driver still be applicable. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Galbayar Dorjgotov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: JDBC connectivityfor ORACLE !!! Date: Thu, 27 Feb 2003 16:36:14 +0800 Attached oracle8i JDBC driver. copy oracle.jar tomcat\common\lib dir or WEB-INF\lib dir Simple JSP % try { DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); java.sql.Connection conn = DriverManager.getConnection (jdbc:oracle:thin:@host:SID,username,password); String Query=select * from blabla; java.sql.PreparedStatement st=conn.prepareStatement(Query); java.sql.ResultSet rs=st.executeQuery(); while (rs.next()) out.println(rs.getString(1)+br); rs.close(); st.close(); conn.close(); } catch(Exception e) { out.println(e.getMessage()); //e.printStackTrace(); } % -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:50 PM To: [EMAIL PROTECTED] Subject: JDBC connectivityfor ORACLE !!! hi MIKE, PENG , CHONG !! guys, there seems to be a problem here for me with the database implementation. After all the discussion i was all set to implemenent the database as a FILESYSTEM only but my BOSS insists that ORACLE shoudl be implemented. Can somebody of u enlighten me with the SITES and README files about impplementing ORACLE under TOMCAT umbrella and what could be the DRIVERS i need to know before i plunge into the deep sea of ORACLE implementation. some of the drivers suggested are the ones made by DATATAKE, JBOSS (i guess, i may be wrong)or the default drivers which come up with the ORACLE. Comments are really awaited ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 09:20:31 -0800 SQLPlus is part of oracle. You can't do sqlplus without oracle. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:20 PM To: [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that there i sno urgent need for me to take up a HUMONGOUS taks of using ORACLE and i guess i will IMPLEMENT the SQLPLUS or the FILESYSTEM as my alternatives to the DATABASE application. but in the end i would really like to know as to between SQLPLUS or FILESYSTEM, which will be convinient for me to HANDLE string stripping , string comparison and all that stuff ! ( BTW, i have really started implementing the FILESYSTEM to a good level ) do commment about this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 07:06:31 +0800 I think if you take Oracle installation, configuration and maintenance out of the picture, you definitely have a much more workable plan. I agree with Peter, in that designing the tables and application logic are going to be tough. I once wrote a servlet that processed CDR data from a Cisco switch, and I spent a lot of time getting the logic just right. If I understand you correctly, Swapneel, you need the database for storage only, correct ? Are you planning to use the Oracle text indexer, or are you implementing that yourself? One last thing : JDBC may take you a shorter time to learn than the 2 weeks I put down in an earlier email. On reflection, that is probably padding too much, but I recommend that you do not underestimate the time taken to get the JDBC connection going, especially for Oracle. I've had problems with 8.1.5 before and had to resort to DataDirect drivers. 8.1.7 seems to be ok, though. Regards, chong Peter Lin wrote: overall, using JDBC with Tomcat is the easy part. Deciding how to implement your tables and application logic will be the hard part. If your data is not normalized and doesn't need to be, then the first thing you should
JDBC connectivityfor ORACLE !!!
hi MIKE, PENG , CHONG !! guys, there seems to be a problem here for me with the database implementation. After all the discussion i was all set to implemenent the database as a FILESYSTEM only but my BOSS insists that ORACLE shoudl be implemented. Can somebody of u enlighten me with the SITES and README files about impplementing ORACLE under TOMCAT umbrella and what could be the DRIVERS i need to know before i plunge into the deep sea of ORACLE implementation. some of the drivers suggested are the ones made by DATATAKE, JBOSS (i guess, i may be wrong)or the default drivers which come up with the ORACLE. Comments are really awaited ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 09:20:31 -0800 SQLPlus is part of oracle. You can't do sqlplus without oracle. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:20 PM To: [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that there i sno urgent need for me to take up a HUMONGOUS taks of using ORACLE and i guess i will IMPLEMENT the SQLPLUS or the FILESYSTEM as my alternatives to the DATABASE application. but in the end i would really like to know as to between SQLPLUS or FILESYSTEM, which will be convinient for me to HANDLE string stripping , string comparison and all that stuff ! ( BTW, i have really started implementing the FILESYSTEM to a good level ) do commment about this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 07:06:31 +0800 I think if you take Oracle installation, configuration and maintenance out of the picture, you definitely have a much more workable plan. I agree with Peter, in that designing the tables and application logic are going to be tough. I once wrote a servlet that processed CDR data from a Cisco switch, and I spent a lot of time getting the logic just right. If I understand you correctly, Swapneel, you need the database for storage only, correct ? Are you planning to use the Oracle text indexer, or are you implementing that yourself? One last thing : JDBC may take you a shorter time to learn than the 2 weeks I put down in an earlier email. On reflection, that is probably padding too much, but I recommend that you do not underestimate the time taken to get the JDBC connection going, especially for Oracle. I've had problems with 8.1.5 before and had to resort to DataDirect drivers. 8.1.7 seems to be ok, though. Regards, chong Peter Lin wrote: overall, using JDBC with Tomcat is the easy part. Deciding how to implement your tables and application logic will be the hard part. If your data is not normalized and doesn't need to be, then the first thing you should look into is statistical analysis of text. there are several well tested algo's for doing this type of processing. Unfortunately I don't know the name of the algo's. I worked on integrating personalization applications a couple years back relating to filtering news. If your needs aren't too complex, it shouldn't take too long to implement some form of statistical analysis. Using file system to store the entire text doesn't necessarily mean you can't store the text summaries in Oracle. Google for related topics and you should be to find some examples. If you're needs are more complex, you'll need to look into grammar based parsing, which is a slow process. Most of the comparison between grammar based and statistical parsing has shown that statistical is more effective. hope that helps. peter Swapneel Dange [EMAIL PROTECTED] wrote:hey peter, mike chong ! so if i stay with a small thing like SQLPLUS, the JDBC connectivity wont be a tough thing to do as compared to the ORACLE implementation. right ? because in last few days after consulting with some people in-house here, i am thinking over the OPTION of SQLPLUS. do commment on this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Re: running tomcat under unix
hey micheal ! yeah i tried changing the path of the ENVIRONMENT variable as u specified but it still doesnt work. it still says that the file doesnt exists and moreover the directory is not in existense and there is no directory or the file created as i run the TOMCAT. oh yeah the permission to all the .exe files are set and they all run but i am still not able to figure out the ERROR. comments anticiapted here ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Michael Hackl [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: running tomcat under unix Date: 25 Feb 2003 09:04:05 +0100 try to use this: setenv CATALINA_HOME /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/ else check your rights Am Die, 2003-02-25 um 08.31 schrieb Swapneel Dange: i am trying to run TOMCAT 4.0 under unix, but i get the following messages when i try to start the TOMCAT : [EMAIL PROTECTED] ./startup.sh Using CATALINA_BASE: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src Using CATALINA_HOME: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src Using CATALINA_TMPDIR: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/temp Using JAVA_HOME: /local/jdk1.3.1 touch: creating `/home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/logs/catalina.out': No such file or directory [EMAIL PROTECTED] /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/bin/catalina.sh: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/logs/catalina.out: No such file or directory yeah its true that there is no file known as 'catalina.out' in my folders and there is no directory such as 'logs' inside the directory 'src'. do i need to create a directory such as 'logs' or somethign like that. and i have set the following inside .cshrc - setenv JAVA_HOME /local/jdk1.3.1 setenv CATALINA_HOME /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src i am literally CLUELESS as to whats going on there. do commment ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC ORACLE implementation !
hey peter, mike chong ! so if i stay with a small thing like SQLPLUS, the JDBC connectivity wont be a tough thing to do as compared to the ORACLE implementation. right ? because in last few days after consulting with some people in-house here, i am thinking over the OPTION of SQLPLUS. do commment on this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC ORACLE implementation ! Date: Thu, 20 Feb 2003 09:14:52 -0800 clip senior DBA's help. when ever I need to tune oracle, I ask my Oracle DBA friends who have 8 yrs of exp for help. peter Me too, oracle can be a pain. If you stay small however all the tuning defaults should work for you. --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC ORACLE implementation !
hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that there i sno urgent need for me to take up a HUMONGOUS taks of using ORACLE and i guess i will IMPLEMENT the SQLPLUS or the FILESYSTEM as my alternatives to the DATABASE application. but in the end i would really like to know as to between SQLPLUS or FILESYSTEM, which will be convinient for me to HANDLE string stripping , string comparison and all that stuff ! ( BTW, i have really started implementing the FILESYSTEM to a good level ) do commment about this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 07:06:31 +0800 I think if you take Oracle installation, configuration and maintenance out of the picture, you definitely have a much more workable plan. I agree with Peter, in that designing the tables and application logic are going to be tough. I once wrote a servlet that processed CDR data from a Cisco switch, and I spent a lot of time getting the logic just right. If I understand you correctly, Swapneel, you need the database for storage only, correct ? Are you planning to use the Oracle text indexer, or are you implementing that yourself? One last thing : JDBC may take you a shorter time to learn than the 2 weeks I put down in an earlier email. On reflection, that is probably padding too much, but I recommend that you do not underestimate the time taken to get the JDBC connection going, especially for Oracle. I've had problems with 8.1.5 before and had to resort to DataDirect drivers. 8.1.7 seems to be ok, though. Regards, chong Peter Lin wrote: overall, using JDBC with Tomcat is the easy part. Deciding how to implement your tables and application logic will be the hard part. If your data is not normalized and doesn't need to be, then the first thing you should look into is statistical analysis of text. there are several well tested algo's for doing this type of processing. Unfortunately I don't know the name of the algo's. I worked on integrating personalization applications a couple years back relating to filtering news. If your needs aren't too complex, it shouldn't take too long to implement some form of statistical analysis. Using file system to store the entire text doesn't necessarily mean you can't store the text summaries in Oracle. Google for related topics and you should be to find some examples. If you're needs are more complex, you'll need to look into grammar based parsing, which is a slow process. Most of the comparison between grammar based and statistical parsing has shown that statistical is more effective. hope that helps. peter Swapneel Dange [EMAIL PROTECTED] wrote:hey peter, mike chong ! so if i stay with a small thing like SQLPLUS, the JDBC connectivity wont be a tough thing to do as compared to the ORACLE implementation. right ? because in last few days after consulting with some people in-house here, i am thinking over the OPTION of SQLPLUS. do commment on this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running tomcat under unix
i am trying to run TOMCAT 4.0 under unix, but i get the following messages when i try to start the TOMCAT : [EMAIL PROTECTED] ./startup.sh Using CATALINA_BASE: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src Using CATALINA_HOME: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src Using CATALINA_TMPDIR: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/temp Using JAVA_HOME: /local/jdk1.3.1 touch: creating `/home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/logs/catalina.out': No such file or directory [EMAIL PROTECTED] /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/bin/catalina.sh: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/logs/catalina.out: No such file or directory yeah its true that there is no file known as 'catalina.out' in my folders and there is no directory such as 'logs' inside the directory 'src'. do i need to create a directory such as 'logs' or somethign like that. and i have set the following inside .cshrc - setenv JAVA_HOME /local/jdk1.3.1 setenv CATALINA_HOME /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src i am literally CLUELESS as to whats going on there. do commment ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC ORACLE implementation !
yeah i know what ur saying PENG , but i am still at a very basic stage in the FILESYSTEM implementation , thats why before i move any further, i was making sure as to whether considering the ROBUST structure and all that stuff into account will it be better if i implement the SQLPLUS or stick to the FILESYSTEM! comments awaited ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 15:31:22 +0800 If you have already started on a filesystem and if it does what you want it to do at a reasonable speed then stick with it :) . Swapneel Dange wrote: hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that there i sno urgent need for me to take up a HUMONGOUS taks of using ORACLE and i guess i will IMPLEMENT the SQLPLUS or the FILESYSTEM as my alternatives to the DATABASE application. but in the end i would really like to know as to between SQLPLUS or FILESYSTEM, which will be convinient for me to HANDLE string stripping , string comparison and all that stuff ! ( BTW, i have really started implementing the FILESYSTEM to a good level ) do commment about this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 07:06:31 +0800 I think if you take Oracle installation, configuration and maintenance out of the picture, you definitely have a much more workable plan. I agree with Peter, in that designing the tables and application logic are going to be tough. I once wrote a servlet that processed CDR data from a Cisco switch, and I spent a lot of time getting the logic just right. If I understand you correctly, Swapneel, you need the database for storage only, correct ? Are you planning to use the Oracle text indexer, or are you implementing that yourself? One last thing : JDBC may take you a shorter time to learn than the 2 weeks I put down in an earlier email. On reflection, that is probably padding too much, but I recommend that you do not underestimate the time taken to get the JDBC connection going, especially for Oracle. I've had problems with 8.1.5 before and had to resort to DataDirect drivers. 8.1.7 seems to be ok, though. Regards, chong Peter Lin wrote: overall, using JDBC with Tomcat is the easy part. Deciding how to implement your tables and application logic will be the hard part. If your data is not normalized and doesn't need to be, then the first thing you should look into is statistical analysis of text. there are several well tested algo's for doing this type of processing. Unfortunately I don't know the name of the algo's. I worked on integrating personalization applications a couple years back relating to filtering news. If your needs aren't too complex, it shouldn't take too long to implement some form of statistical analysis. Using file system to store the entire text doesn't necessarily mean you can't store the text summaries in Oracle. Google for related topics and you should be to find some examples. If you're needs are more complex, you'll need to look into grammar based parsing, which is a slow process. Most of the comparison between grammar based and statistical parsing has shown that statistical is more effective. hope that helps. peter Swapneel Dange [EMAIL PROTECTED] wrote:hey peter, mike chong ! so if i stay with a small thing like SQLPLUS, the JDBC connectivity wont be a tough thing to do as compared to the ORACLE implementation. right ? because in last few days after consulting with some people in-house here, i am thinking over the OPTION of SQLPLUS. do commment on this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e
Re: JDBC ORACLE implementation !
hey CHONG ~ i think that i have got my all the answers here in the mail u send me. gosh , i never knew all these details are lying behind my implementation thought of a good database. i really went through all the details u gave me here. anyways i am thinking now more seriously about the FILE SYSTEM and its implementation. anyway, if i get more doubts on this topic, i will put those questions here, thanx all ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Thu, 20 Feb 2003 17:11:35 +0800 Hi Swapneel ! I need you to clarify something : are you processing the files first, then putting them into the database, or are you putting all the raw data inside the database and doing SQL operations to extract the data you want ? I am assuming that you want to do the second option, am I right ? I need to make a few other things clear : 1. If you are committing 1MB of data into the database per operation, that would take a looong time, and I'm not sure if that is the most efficient, or even the easiest way to do what you are trying to do. Why I say that is, Oracle is fine when you break up the data and commit, perhaps line by line, to the database. Not very fast or efficient, but still manageable. My experience of Oracle, though limited, has not exactly given me much confidence in its ability to handle huge data in individual fields. Stuff the fields with too much data, and try to work with them, and you will realize the necessity to tune Oracle. I'm not an expert on Oracle, nor do I care to be, so I won't try this. 2. String manipulation with Java 1.4 is possible and quite easy, now that it supports regular expressions. If, like me, you'd like to do things the hard way, you can use the string handling functions in Java to do the processing for you. It's actually a lot easier than it sounds. I refer to O'Reilly's Java Cookbook for examples on this. 3. The least risky way (and some would say, the lazy way) is to just improve on the existing code -- use the FILE SYSTEM solution that already exists and extend the functionality, fix bugs, or improve the GUI. It's not because you may be re-inventing the wheel, as some may say, if you choose to implement it in a database. I am assuming that you don't have a lot of time, and there is no in-house expertise you can refer to (i.e. programmer friends where you live, that you can ask), and, as you say, you are coming into this for the first time. As a rough indicator (and I invite others to correct me), it takes : - 1 month to understand Oracle - 2 weeks to get JDBC working the way you want - 2 weeks or more to work out the business logic - 1 week to figure out how to draw graphs - 2 weeks to fix bugs - 1 week to understand the deployment environment - 1-2 weeks to fix problems related to the deployment environment - Total : 14 weeks That's more than 3 months, and assumes that you devote yourself 100% to the project. A filesystem solution however takes : - 1 week to learn about file i/o - 1 week to learn how to do string manipulation - 1 week to learn graphs - 2 weeks to fix bugs - 2-3 weeks to deploy - Total : 8 weeks You might want to just go with a simple file system solution for now, and slowly work out how to do the rest later, when you are not hurried. It really is better. Regards, pascal chong Swapneel Dange wrote: hey CHONG ! yepp, i think i am hurrying too fast, and i have the FILE SYSTEM with me but the thing is that i need a sytem is which i can atlesat shoud be able to do something like this -- 1) strip of the files of the un-necessary content. 2) then use the data for searching patterns. 3) apply the patterns to the unsual causes. 4) then use the data to relate to GRAPHS right now i am using a file system in which i cant perform the string matching and other operatoins. moreover all thsi has to be implemented on teh WINDOWS NT or XP. so i am sure as to how u implement somethign like shell scripting in windows. anyways thats more or less knowledge i ahev about al lthis. will be great to hear from u about all this ! thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC ORACLE implementation !
hi there ~ i am curious to know as to how can u implement ORACLE database in the TOMCAT. and can somebody tell me as to where i can read the DOCUMENTATION for the implementation of the JDBC connectivity under TOMCAT. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC ORACLE implementation !
hi ! frankly speaking, i am very new to the database concepts. i am trying to use the Oracle Database Personal Edition for my use here. But i can tell about the version of the TOMCAT, i am using , its 3.3.1a. if u could tell me in detail as to what ORACLE product i should use will be great. By the way i am using this database for the users to send data from 3 different states on the webserver i am running here. so that when that data which are huge files coem over here, i can massage them and get the particular details i want for my use. thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Andoni [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Wed, 19 Feb 2003 10:09:16 - The implementation is based on which driver you use, which mostly depends on which version of Oracle you are running. What version numbers are you using for Oracle Tomcat - Original Message - From: Swapneel Dange [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 9:47 AM Subject: JDBC ORACLE implementation ! hi there ~ i am curious to know as to how can u implement ORACLE database in the TOMCAT. and can somebody tell me as to where i can read the DOCUMENTATION for the implementation of the JDBC connectivity under TOMCAT. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC ORACLE implementation !
hi mike ! the files i am using are quite small in size like 200-300 KB but sometimes i get files of the size 1MB or so. but the rate at which i get these files is huge, i get a file every 12 second so that makes 7200 files a day and all are useful files. i will then massgae the files and strip them of the un-necessary details. and then look out for keywords in the file. draw some conclusions based on that and then implement the solutions. moreoevr i could not understand as to what u wanted to convey through the sentense, So, you don't really need tomcat per say to talk to oracle, you need yourservlets/jsps to be able to talk to oracle. . i am a NOVICE, thats the reason that i didnt understans the meaning of the sentense there. anyways i can user the other JDBC drivers which are not supplied by ORACLE. some of the drivers suggested to me here are the ones by DATADIRECT. awaiting reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC ORACLE implementation ! Date: Wed, 19 Feb 2003 16:24:25 -0800 So, you don't really need tomcat per say to talk to oracle, you need your servlets/jsps to be able to talk to oracle. What type of data are you working with and how big is it? That's really the question to ask that'll tell you what version of oracle to use. If you using small data (standard types or lobs) then any version should work ok. But you'll want to be in the READ_COMMITED transaction isolation mode (default). If you're working with large lobs (25 megs) you'll probably want to be on 9.2.0.1.0 or better (or a patched 9.1, but not an 8.x version I think). And you'll want to make sure you're using the jdbc driver supplied by the database, or one from a newer version, the older ones with newer databases tend to cause problems. Personal/Standard/Enterprise may not matter. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 4:11 PM To: [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! hi ! frankly speaking, i am very new to the database concepts. i am trying to use the Oracle Database Personal Edition for my use here. But i can tell about the version of the TOMCAT, i am using , its 3.3.1a. if u could tell me in detail as to what ORACLE product i should use will be great. By the way i am using this database for the users to send data from 3 different states on the webserver i am running here. so that when that data which are huge files coem over here, i can massage them and get the particular details i want for my use. thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Andoni [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Wed, 19 Feb 2003 10:09:16 - The implementation is based on which driver you use, which mostly depends on which version of Oracle you are running. What version numbers are you using for Oracle Tomcat - Original Message - From: Swapneel Dange [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 9:47 AM Subject: JDBC ORACLE implementation ! hi there ~ i am curious to know as to how can u implement ORACLE database in the TOMCAT. and can somebody tell me as to where i can read the DOCUMENTATION for the implementation of the JDBC connectivity under TOMCAT. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
Re: JDBC ORACLE implementation !
hey peter ! ur right, that there is no transaction involved in this process here. only thing i will be doing is receiving files on the server using the servlets. now may be it was too much thinking on my part to say that i will use ORAVCLE. what do u say that for atleast 7200 files a day of size max 1MB, shouldnt i use ORACLE ? should i try some other options and if YES then what kind of database can i implement. right now i have the FILE SYSTEM implemented here. but i think it has limited my ability to do pattern searching and data mining, thats why i was trying to move to something more stable and robust such as a database which can support TOUGHER queries. awaiting reaply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peter Lin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! Date: Wed, 19 Feb 2003 18:09:36 -0800 (PST) First off, you probably should be use Oracle enterprise edition, unless you're on a box with less than 128meg of memory. Oracle personal edition for 8i and 9i is really designed for simple uses. The scenario you've described will probably mean storing the text as a clob or in multiple columns. keep in mind if you store it as a clob, it limits your ability to search performance. breaking the text into columns will allow you to index the content easier. If query time is important, you may want to generate summaries of the text and use that for your indexes instead. as far as connecting to oracle, it's fairly straight forward. databases are handy, but take care with how you implement the application. If you don't need to index the content, or do not need transaction capabilities, you're better off using file system to store the text. RDBMS are designed specifically to handle relational data. If your data isn't relational, using Oracle is a bit over kill. Using the right tool will make your life easier in the long run. peter _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webpage servlets !
hey WENDY, JOHN , CHONG, PENG ! all those who were trying to help me, i am SORRY guys, there was a mistake on my part in writing the name of the FOLDER wrong in the path, i specified. anyway i really thank all of u for helping me in finding the error. i hope that i wil bore u with some more interesting errors in future :)) Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Tue, 18 Feb 2003 09:40:56 +0800 Hi Swapneel ! I'm pretty sure there's a typo there, because the error is pretty specific, and in my experience, it definitely points to either a non-existent file, directory, or a typo. Can you confirm if your directory structure is as shown below : C:\ tomcat jakarta-tomcat-3.1.1a jakarta-tomcat-3.1.1a--- is there an error here ? webapps ROOT dange java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webpage servlets !
yeah, there is the servlet code as an attachment to this mail. and ther hierarchy for the servlet classes are as folllows : webapps ROOT dange frame0.txt frame0.html frame1.html WEB-INF classes ranade SubmitServlet.java SubmitServlet.class and all other supporting class files. i am not able to understand the meaning of the error such as the following : java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) although it says that FILE NOT FOUND, but i am pretty sure that the FILE is there in the directory, anyways.. ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 15:55:58 +0800 I do not see why you cannot access a directory under a legit webapp, much less get the text file you put in there. Can you please send your servlet code ? Swapneel Dange wrote: i am accesing the webpage inside the SERVLET itself. and i am trying to access them as normal webpage and normal .txt page, but the .txt page is then made into a .html page. And there is no link as such on nay page for the webpage i am trying to access. i am accessing them through the html tags inside the servlet itself. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 14:30:07 +0800 How are you referring to the link in your html or jsp page? Swapneel Dange wrote: hi there ! i am running a servlet, which takes the username and then the password and opens another webpage in the browser , my servlet is under the webapps/ROOT/WEB-INF/classes but my .txt file for running the webpage are not inside the directory known as classes( i am generating a webpage by making a .txt file first and then making a .html file out of that) the .txt and .html files are under webapps/ROOT/dange/ , and whenever i try to access the .txt files, i get some error like tha one i am sending here. can anybody help me on this ! java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail SubmitServlet.java Description: java/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webpage servlets !
hey CHONG ! ur right man, its kind of weird but i do have a jakarta directory under a jakarta directory. i am not at all mistaken in the directory path description i guess. anyway thanx for reminding to take a look at the directory stucture i have defined. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 22:03:16 +0800 Swapneel Dange wrote: java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) Arrgh! Swapneel ! Look at the directory ! Unless you have a jakarta-tomcat directory under ANOTHER jakarta-tomcat directory, I do believe you have a typo error !! Regards, chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webpage servlets !
hey filip ! ur right that my servlets should be inside classes, but my classes are under WEB-INF, and i guess thats what the documentation on the servlet says in the book ADVANCED JAVA PROGRAMMING - by Dietel Dietel. Anyway i will be glad if u could explain to me after seeing my directory stucture, as to where should i move my files for running the servlets. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Filip Hanik [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: webpage servlets ! Date: Mon, 17 Feb 2003 10:23:34 -0800 your servlet should also be under classes, not under WEB-INF Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect www.filip.net -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 10:12 AM To: [EMAIL PROTECTED] Subject: Re: webpage servlets ! yeah, there is the servlet code as an attachment to this mail. and ther hierarchy for the servlet classes are as folllows : webapps ROOT dange frame0.txt frame0.html frame1.html WEB-INF classes ranade SubmitServlet.java SubmitServlet.class and all other supporting class files. i am not able to understand the meaning of the error such as the following : java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\ dange\frame0.html (The system cannot find the path specified) although it says that FILE NOT FOUND, but i am pretty sure that the FILE is there in the directory, anyways.. ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 15:55:58 +0800 I do not see why you cannot access a directory under a legit webapp, much less get the text file you put in there. Can you please send your servlet code ? Swapneel Dange wrote: i am accesing the webpage inside the SERVLET itself. and i am trying to access them as normal webpage and normal .txt page, but the .txt page is then made into a .html page. And there is no link as such on nay page for the webpage i am trying to access. i am accessing them through the html tags inside the servlet itself. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 14:30:07 +0800 How are you referring to the link in your html or jsp page? Swapneel Dange wrote: hi there ! i am running a servlet, which takes the username and then the password and opens another webpage in the browser , my servlet is under the webapps/ROOT/WEB-INF/classes but my .txt file for running the webpage are not inside the directory known as classes( i am generating a webpage by making a .txt file first and then making a .html file out of that) the .txt and .html files are under webapps/ROOT/dange/ , and whenever i try to access the .txt files, i get some error like tha one i am sending here. can anybody help me on this ! java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\R OOT\dange\frame0.html (The system cannot find the path specified) Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8
RE: webpage servlets !
john ! i think that the first thing u referred to the fact that i am generating a .txt and .html file , which eventually gets fed to the browser to view the webpage i want. Exactly thats what i am trying to do but i think that i have somewhere in keeping the proper directory stucture. And thats why i was curious to know has anybody ever had this problem wherein it was solved or not ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: webpage servlets ! Date: Mon, 17 Feb 2003 08:31:08 -0500 I think you've got your terminology a little mixed up. Accessing them through the HTML tags inside the servlet itself isn't possible. If you mean that your servlet generates HTML text that is sent to the browser, and some of that HTML text refers to the page you are looking for, then the URL needs to be a URL that the client browser can resolve, that is something like http://www.host.com/myWebApp/somepage.html. If you mean that your servlet is trying to read the file that is sitting on your hard drive, using some sort of Java File object, then you need to refer to the file in a filesystem-related manner, such as myWebApp/somepage.html. In either case, you will get much faster (and more accurate) help if you: 1) explain exactly what it is you want to do, and 2) post the code that you've written that is trying to do it, and 3) describe the manner (URL) you're using to execute that servlet code, and 4) post the error message you get when you execute that code John -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 2:32 AM To: [EMAIL PROTECTED] Subject: Re: webpage servlets ! i am accesing the webpage inside the SERVLET itself. and i am trying to access them as normal webpage and normal .txt page, but the .txt page is then made into a .html page. And there is no link as such on nay page for the webpage i am trying to access. i am accessing them through the html tags inside the servlet itself. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 14:30:07 +0800 How are you referring to the link in your html or jsp page? Swapneel Dange wrote: hi there ! i am running a servlet, which takes the username and then the password and opens another webpage in the browser , my servlet is under the webapps/ROOT/WEB-INF/classes but my .txt file for running the webpage are not inside the directory known as classes( i am generating a webpage by making a .txt file first and then making a .html file out of that) the .txt and .html files are under webapps/ROOT/dange/ , and whenever i try to access the .txt files, i get some error like tha one i am sending here. can anybody help me on this ! java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapp s\ROOT\dange\frame0.html (The system cannot find the path specified) Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webpage servlets !
Wendy ! i am creating a webpage using the HTML ags inside the servlets, and why i am using the .txt file becuase i find its easy to update my webpage using the .txt file whenever needed. but if i use straight away the HTML tags inside the servlet to access in the BROWSER the relevant webpage then everytime to make a small change i will have to change the HTML tags inside the servlet. Using a .txt file solves this problem that everytime i wont have to tamper my servlet code for any relevant changes in the WEBPAGE. i can just make the changes in the .txt and they will be reflected in the WEBAPGE. but the problem i am having now is, i am not able to access the .html or the .txt file which is created by the servlet itself. as the servlet is not able to locate the file it creates by itself. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: webpage servlets ! Date: Mon, 17 Feb 2003 13:05:47 -0700 i think that the first thing u referred to the fact that i am generating a .txt and .html file , which eventually gets fed to the browser to view the webpage i want. Exactly thats what i am trying to do but i think that i have somewhere in keeping the proper directory stucture. Do you mean that inside your Servlet, you're using some sort of Writer and generating text that gets saved to a file? I can't imagine why you'd want to do this, but if you insist, then try a relative path using '..' to back up one level and write the file. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webpage servlets !
hey CHONG ! there is no TYPO there in the naming of the directory as i have created that complx structure of directories by mistake, but they are realy all right ! there is something about not locating the FILE, i think ! but i am not sure ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Tue, 18 Feb 2003 09:40:56 +0800 Hi Swapneel ! I'm pretty sure there's a typo there, because the error is pretty specific, and in my experience, it definitely points to either a non-existent file, directory, or a typo. Can you confirm if your directory structure is as shown below : C:\ tomcat jakarta-tomcat-3.1.1a jakarta-tomcat-3.1.1a--- is there an error here ? webapps ROOT dange java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: changing the IPaddress !
thanx john and chong for all the info u guys gave me about the DNS. i will try to work on that and if i get stuck somewhere, may be i will again shoot some quesions to u guys ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: changing the IPaddress ! Date: Sun, 16 Feb 2003 01:00:05 -0500 It is possible to have internal DNS without having to register any domains with an Internet domain registrar. Many organizations run an internal DNS that never touches the public Internet. As long as you have a server willing to serve requests for a particular domain, and clients know to query that server for resolution, you can have a functioing domain name resolution system, all without interfacing with public servers. John -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 15, 2003 11:19 PM To: Tomcat Users List Subject: Re: changing the IPaddress ! Hello Swapneel ! In a typical scenario, your computer or server will have a name, for example , www.swapneel.org. This DNS name will exist on a DNS server somewhere on the Internet, and it would have been registered under InterNIC (or Verisign now, isn't it ?). Anybody anywhere in the world will be able to open a browser and key in www.swapneel.org and be automatically directed to your server. If the server that is www.swapneel.org runs Tomcat, the browser will be able to run servlets and JSPs and display www.swapneel.org/some_directory/some_servlet in the URL. If you have not registered a domain with InterNIC/Verisign, or if your DNS record does not exist on the Internet, nobody can access www.swapneel.org because, to all intents and purposes, it does not exist on the Internet. If you have a cable/DSL/dial-up connection, you may have a permanent/temporary IP address, and I am assuming that you want to turn that IP address into a URL like www.swapneel.org. Well, that isn't possible unless you have registered your name with Verisign/InterNIC, have a permanent IP address or a temporary address with a service like DynDNS. In Apache, you can define the ServerName directive as www.swapneel.org, and it will return that URL in the browser when people access your site using your IP address, but the next time they key in www.swapneel.org, they will get -- nothing ! Because that server and domain does not exist in any DNS records. I hope this clears up some of your confusion. As you may have noticed, this is not a Tomcat issue, but a network one. If you have difficulty understanding what I have written above, you may want to post your question on a networking mailing list, read books on TCP/IP and DNS, or -my recommendation- find someone in your organization who may have worked for an ISP before. They'll explain how it works. There is no easy way to explain this in an email. I personally had to setup 2 computers in my office in my previous employment, setup a DNS server and show my trainees how the whole process worked, and even then, they understood with some difficulty. Regards, chong Swapneel Dange wrote: john ! i guess what ur saying is making sense to me like i should set up the DNS on my comp as mine will be the NATIVE MACHINE , which will be used to run the SRVLETS( so the idea of changing the DNS makes sense here) but when my clients will access the servlets from the remote machine, i am not sure what type of machines they wil be using so thats why i am not sure as to how can u setup a record for the DNS of all the machines in the world which will try to access the SERVLETS i am running here. can u explain me something on this issue ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webpage servlets !
hi there ! i am running a servlet, which takes the username and then the password and opens another webpage in the browser , my servlet is under the webapps/ROOT/WEB-INF/classes but my .txt file for running the webpage are not inside the directory known as classes( i am generating a webpage by making a .txt file first and then making a .html file out of that) the .txt and .html files are under webapps/ROOT/dange/ , and whenever i try to access the .txt files, i get some error like tha one i am sending here. can anybody help me on this ! java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webpage servlets !
i am accesing the webpage inside the SERVLET itself. and i am trying to access them as normal webpage and normal .txt page, but the .txt page is then made into a .html page. And there is no link as such on nay page for the webpage i am trying to access. i am accessing them through the html tags inside the servlet itself. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: webpage servlets ! Date: Mon, 17 Feb 2003 14:30:07 +0800 How are you referring to the link in your html or jsp page? Swapneel Dange wrote: hi there ! i am running a servlet, which takes the username and then the password and opens another webpage in the browser , my servlet is under the webapps/ROOT/WEB-INF/classes but my .txt file for running the webpage are not inside the directory known as classes( i am generating a webpage by making a .txt file first and then making a .html file out of that) the .txt and .html files are under webapps/ROOT/dange/ , and whenever i try to access the .txt files, i get some error like tha one i am sending here. can anybody help me on this ! java.io.FileNotFoundException: C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\dange\frame0.html (The system cannot find the path specified) Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: changing the IPaddress !
john ! i guess what ur saying is making sense to me like i should set up the DNS on my comp as mine will be the NATIVE MACHINE , which will be used to run the SRVLETS( so the idea of changing the DNS makes sense here) but when my clients will access the servlets from the remote machine, i am not sure what type of machines they wil be using so thats why i am not sure as to how can u setup a record for the DNS of all the machines in the world which will try to access the SERVLETS i am running here. can u explain me something on this issue ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: changing the IPaddress ! Date: Sat, 15 Feb 2003 08:35:47 -0500 Yes, it is fully supported. If you want to use a name instead of an IP address to access your web applications, you will need to do one of the following: 1) setup DNS for the name you want to use 2) setup a record in the hosts file on your computer, and on every computer that needs to access your web application How to setup DNS and/or how to setup a hosts record isn't related to Tomcat. John -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 7:36 PM To: [EMAIL PROTECTED] Subject: changing the IPaddress ! hi there ! I was trying to remove the IPADDRESS from BROWSER while accessing the servlets. Many GURUS here have suggested me earlier i went ahead ahead and looked at the server.xml file, which i guess, i never understood fully so the problem is ,i want to reaname the address i am using. For example even if the IP address is 123.456.789.123 to be read as some name such as 'IAMTOMCAT', now i am not able to understand as to whether TOMCAT suppports this or not. does sombody have a clue to this problem ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ipaddress ?
I am trying to remove the IPADDRESS from BROWSER while accessing the servlets as people have suggested me earlier i went ahead ahead and looked at the server.xml file. Still the problem is ,i want to reaname the address i am using. For example even if the IP address is 123.456.789.123 to be read as some name such as 'IAMTOMCAT', now i am not able to understand as to whether TOMCAT suppports this or not. does sombody have a clue to this problem ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: index.html and ipaddress ? Date: Fri, 14 Feb 2003 08:51:11 +0800 If you are running windows you can use your machine name to access the url but I doubt that'll work from outside. As for not using the port number 8080, you can configure tomcat to use port 80. Most browsers understand that webservers listen at port 80, so if you configure tomcat to listen on port 80 you can access the url without specifying the port. How to change the port? take a peek in the server.xml file, and look for 8080, change it to 80. but all the way do u know how to fix this problem i have - i want to replace the IPADDRESS of the machine on which TOMCAT is running with some name, lets say 'IAMTOMCAT' and can we get rid of the port number in the address for running the TOMCAT, so in the end can the address look like this - http://IAMTOMCAT/index.html awaitaing reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Jake Robb [EMAIL PROTECTED] Reply-To: Jake Robb [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: index.html and ipaddress ? Date: Thu, 13 Feb 2003 11:33:04 -0500 And do you want the current contents of the ROOT directory to remain available? If there's no reason you can't, then just put your stuff in ROOT. If there is, but you want to keep the current contents of ROOT, then just redefine your contexts in server.xml so that / points to swapneel and something else points to ROOT. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changing the IPaddress !
hi there ! I was trying to remove the IPADDRESS from BROWSER while accessing the servlets. Many GURUS here have suggested me earlier i went ahead ahead and looked at the server.xml file, which i guess, i never understood fully so the problem is ,i want to reaname the address i am using. For example even if the IP address is 123.456.789.123 to be read as some name such as 'IAMTOMCAT', now i am not able to understand as to whether TOMCAT suppports this or not. does sombody have a clue to this problem ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Swapneel Dange [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ipaddress ? Date: Fri, 14 Feb 2003 15:45:24 -0700 I am trying to remove the IPADDRESS from BROWSER while accessing the servlets as people have suggested me earlier i went ahead ahead and looked at the server.xml file. Still the problem is ,i want to reaname the address i am using. For example even if the IP address is 123.456.789.123 to be read as some name such as 'IAMTOMCAT', now i am not able to understand as to whether TOMCAT suppports this or not. does sombody have a clue to this problem ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: index.html and ipaddress ? Date: Fri, 14 Feb 2003 08:51:11 +0800 If you are running windows you can use your machine name to access the url but I doubt that'll work from outside. As for not using the port number 8080, you can configure tomcat to use port 80. Most browsers understand that webservers listen at port 80, so if you configure tomcat to listen on port 80 you can access the url without specifying the port. How to change the port? take a peek in the server.xml file, and look for 8080, change it to 80. but all the way do u know how to fix this problem i have - i want to replace the IPADDRESS of the machine on which TOMCAT is running with some name, lets say 'IAMTOMCAT' and can we get rid of the port number in the address for running the TOMCAT, so in the end can the address look like this - http://IAMTOMCAT/index.html awaitaing reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Jake Robb [EMAIL PROTECTED] Reply-To: Jake Robb [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: index.html and ipaddress ? Date: Thu, 13 Feb 2003 11:33:04 -0500 And do you want the current contents of the ROOT directory to remain available? If there's no reason you can't, then just put your stuff in ROOT. If there is, but you want to keep the current contents of ROOT, then just redefine your contexts in server.xml so that / points to swapneel and something else points to ROOT. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Apache for Servlets
Umm , what do u mean by OUT THE FILES from ROOT. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Saravanakumar Soundarrajan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Configuring Apache for Servlets Date: Fri, 14 Feb 2003 15:50:34 -0800 (PST) Hi, I have been trying to run some servlets in the apache server. If I put my class files under \Tomcat4.1\webapps\ROOT\WEB-INF\classes folder, they dont work. But all examples run and so I was wondering if there is any way to out class files under the ROOT folder. Please let me know if this is possible or not. Thanks Saravanakumar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
index.html and ipaddress ?
hi there ! i am running a TOMCAT successfully, but if i want to see the page saying index.html , which is not in the 'ROOT' diretory under 'webapps' but its under another directory named 'swapneel', which is also under 'webapps'. But whenever i say http://localhost:8080/index.html then it will always show the default page for the TOMCAT. i want my index.html in 'swapneel' to be shown on the browser. the other thing is that i want to replace the IPADDRESS of the machine on which TOMCAT is running with some name, lets say 'IAMTOMCAT' and can we get rid of the port number in the address for running the TOMCAT, so in the end can the address look like this - http://IAMTOMCAT/index.html What are the files that need to be changed accordingly for this thing to work ? thanx to all ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.html and ipaddress ?
yeah , because i am making the index.html using a text file , which resides in the directory called 'swapneel' and i cant possibly store that text file from which the index.html is created, in the ROOT directory as this index.html is supposed to invoke another servlet and then the chain continues fo servlets to submit the data as a part of the process. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Jake Robb [EMAIL PROTECTED] Reply-To: Jake Robb [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: index.html and ipaddress ? Date: Thu, 13 Feb 2003 11:26:42 -0500 Is there a reason you can't put your index.html file in the ROOT directory? - Original Message - From: Swapneel Dange [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 11:24 AM Subject: index.html and ipaddress ? hi there ! i am running a TOMCAT successfully, but if i want to see the page saying index.html , which is not in the 'ROOT' diretory under 'webapps' but its under another directory named 'swapneel', which is also under 'webapps'. But whenever i say http://localhost:8080/index.html then it will always show the default page for the TOMCAT. i want my index.html in 'swapneel' to be shown on the browser. the other thing is that i want to replace the IPADDRESS of the machine on which TOMCAT is running with some name, lets say 'IAMTOMCAT' and can we get rid of the port number in the address for running the TOMCAT, so in the end can the address look like this - http://IAMTOMCAT/index.html What are the files that need to be changed accordingly for this thing to work ? thanx to all ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.html and ipaddress ?
thanx jake, i will try to play around with the server.xml file but u said in ur reply that my ROOT then point to something else. i didnt understand what u meant by something else. anyway if i am not successful in doing what u suggested probably i will move all the files to the ROOT and then change the directory sturcture for me. if i am stuck at something then i will probably sure ask u for more help. but all the way do u know how to fix this problem i have - i want to replace the IPADDRESS of the machine on which TOMCAT is running with some name, lets say 'IAMTOMCAT' and can we get rid of the port number in the address for running the TOMCAT, so in the end can the address look like this - http://IAMTOMCAT/index.html awaitaing reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Jake Robb [EMAIL PROTECTED] Reply-To: Jake Robb [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: index.html and ipaddress ? Date: Thu, 13 Feb 2003 11:33:04 -0500 And do you want the current contents of the ROOT directory to remain available? If there's no reason you can't, then just put your stuff in ROOT. If there is, but you want to keep the current contents of ROOT, then just redefine your contexts in server.xml so that / points to swapneel and something else points to ROOT. - Original Message - From: Jake Robb [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 11:26 AM Subject: Re: index.html and ipaddress ? Is there a reason you can't put your index.html file in the ROOT directory? - Original Message - From: Swapneel Dange [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 11:24 AM Subject: index.html and ipaddress ? hi there ! i am running a TOMCAT successfully, but if i want to see the page saying index.html , which is not in the 'ROOT' diretory under 'webapps' but its under another directory named 'swapneel', which is also under 'webapps'. But whenever i say http://localhost:8080/index.html then it will always show the default page for the TOMCAT. i want my index.html in 'swapneel' to be shown on the browser. the other thing is that i want to replace the IPADDRESS of the machine on which TOMCAT is running with some name, lets say 'IAMTOMCAT' and can we get rid of the port number in the address for running the TOMCAT, so in the end can the address look like this - http://IAMTOMCAT/index.html What are the files that need to be changed accordingly for this thing to work ? thanx to all ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compiling servlets !
hi there ! i am trying to install and run TOMCAT 3.3.1 But i guess i am having problems with the compilation of the SERVLETS on the tomcat. I have also deifned the classpath as following : C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\lib\common\servlet.jar and while compiling i am using the following command : javac -classpath HellowWorld.java , but what this command does is nothing. i mean there is no class file generated for this one. this may sound as a question from a NOVICE. but i will be glad if somebody can help me on this ! Swapneel! _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compiling servlets !
hi Wendy ! i tried the stuff u said about compiling the SERVETS, but only thing it does is to give me errors like these -- ^ HelloWorld.java:21: illegal escape character out.println(\cf2 /body\cf0 );\par ^ HelloWorld.java:21: illegal escape character out.println(\cf2 /body\cf0 );\par ^ HelloWorld.java:21: illegal character: \92 out.println(\cf2 /body\cf0 );\par ^ HelloWorld.java:22: illegal escape character out.println(\cf2 /html\cf0 );\par ^ HelloWorld.java:22: illegal escape character out.println(\cf2 /html\cf0 );\par ^ HelloWorld.java:22: illegal character: \92 out.println(\cf2 /html\cf0 );\par ^ HelloWorld.java:23: illegal character: \92 \}\par ^ HelloWorld.java:23: illegal character: \92 \}\par ^ HelloWorld.java:24: illegal character: \92 \}\f1\par ^ HelloWorld.java:24: illegal character: \92 \}\f1\par ^ HelloWorld.java:24: illegal character: \92 \}\f1\par ^ HelloWorld.java:24: '{' expected \}\f1\par ^ HelloWorld.java:26: illegal character: \0 ^ 100 errors C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\webapps\swapneel\WEB-INF\c lasses\swapneel\servlets I am not sure as to what i am doing wrong here. when i was using the JIGSAW webserver, i think it was working fine but here in TOMCAT i am not able to find the SOLUTION for this EZ problem. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: compiling servlets ! Date: Wed, 12 Feb 2003 15:50:34 -0700 But i guess i am having problems with the compilation of the SERVLETS on the tomcat. I have also deifned the classpath as following : C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\lib\common\servlet.jar Is that really the location of servlet.jar? With jakarta-tomcat-3.3.1a in it twice? and while compiling i am using the following command : javac -classpath HellowWorld.java , but what this command does is nothing. i mean there is no class file generated for this one. No, because you haven't specified one. When you use -classpath, the very next thing is taken as the classpath. So you've told the compiler that classpath=HellowWorld.java, and you have not specified a file to compile. That's why it's not doing anything. If you're setting the classpath as an environment variable, then _don't_ use the command line switch.I prefer to use ant, or to specify the classpath on the command line. Try this: javac -classpath C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\lib\common\servlet.jar HellowWorld.java (Was that a typo? Is it really HelloWorld.java?) -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running the servlet !
Thanx All ! i got my servler compiled but now when i try to see the same SERVLET using the following address --- http://localhost:8080/swapneel/hello then i get the following errors -- * Error: 500 Location: /swapneel/hello Internal Servlet Error: java.lang.NoClassDefFoundError: swapneel/servlets/HelloWorld (wrong name: HelloWorld) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(DependClassLoader12.java:156) at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java:211) at org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java:92) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java:90) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:343) at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439) at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:536) * i am having the following hierarchy for the class file --- webapps swapneel WEB-INF web.xml classes swapneel servlets HelloWorld.class HelloWorld.java Is this the way we deploy the FILES or there is some other way to work around these things. awaiting reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running the servlet !
hey Filip ! thanx man ! i got it running ! i think ur right for the package name ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Filip Hanik [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Running the servlet ! Date: Wed, 12 Feb 2003 17:30:11 -0800 does your HelloWorld.java have package swapneel.servlets; as the first statement? Filip -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 5:17 PM To: [EMAIL PROTECTED] Subject: Running the servlet ! Thanx All ! i got my servler compiled but now when i try to see the same SERVLET using the following address --- http://localhost:8080/swapneel/hello then i get the following errors -- * Error: 500 Location: /swapneel/hello Internal Servlet Error: java.lang.NoClassDefFoundError: swapneel/servlets/HelloWorld (wrong name: HelloWorld) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(DependClassLoader12.java:156) at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java:211) at org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java:92) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java:90) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:343) at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439) at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:536) * i am having the following hierarchy for the class file --- webapps swapneel WEB-INF web.xml classes swapneel servlets HelloWorld.class HelloWorld.java Is this the way we deploy the FILES or there is some other way to work around these things. awaiting reply ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: preview of webapp of Tomcat Performance book
Thats really interesting to know ! swapneel ! From: Fabio Mengue [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: preview of webapp of Tomcat Performance book Date: Tue, 11 Feb 2003 14:09:40 -0200 Very much :))) F. Peter Lin wrote: I plan on releasing the webapp and utilities for Tomcat Performance Handbook Remy and I are writing in the next few days. I'd like to know if tomcat-users find that appealing? peter lin __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Fabio Mengue - Centro de Computacao - Unicamp [EMAIL PROTECTED] [EMAIL PROTECTED] The first step in fixing a broken program is getting it to fail repeatably. Tom Duff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]