Hi all, Thanks for your advices. The error is that files startup.sh and shutdown.sh are not executable. Now I can start Tomcat.
But I meet the following problem: - I use the mysql supported already by Redhat Linux 7.3 O/S to store my database. - The jakarta-tomcat-3.2.4 is used to be the server. - I use mysql-connector-java-3.0.6-stable-bin.jar for connection between mysql and JSP. - I put the my web application in the directory: jakarta-tomcat-3.2.4/webapps/myapp. - I put the mysql-connector-java-3.0.6-stable-bin.jar in directories: jakarta-tomcat-3.2.4/lib, and jakarta-tomcat-3.2.4/webapps/myapp/WEB-INF/lib - I create a properties file (myprop.prop contains DBURL, DBUserName, DBPassword, and DBDriver) and put it at directories: jakarta-tomcat-3.2.4/bin, and jakarta-tomcat-3.2.4/conf. After I start mysqlserver and tomcat, I type on the Mozilla browse: http://localhost:8080/myapp, the browser display my web page. When I link to a URL that call the JSP program: import java.io.FileInputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Enumeration; import java.util.Properties; public class MyData { private Connection connection; private Statement statement; public MyData() throws ClassNotFoundException,SQLException{ String DBDriver=null; String url=null; String username=null; String password=null; Properties props = new Properties(); String pFile="myprop.prop"; try { props.load(new FileInputStream(pFile)); } catch(IOException e) { System.err.println("Failed to load property file"); } ... I get the following massage "Failed to load property file". Please help me! Thank you very much. LuongPhan --- Bill Barker <[EMAIL PROTECTED]> wrote: > Correct. You need to do 'ls -lL /bin/sh' to be > sure. However, if the link > is there, I'd guess that what it links to is > probably there. More likely, > Tomcat's 'startup.sh' script isn't executable (e.g. > you used the ".zip" > download, or copied from a Windows machine). > > "victor pereira" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > (lrwxrwxrwx). <-- that makes it a symbolic link i > believe but if the file > > the sym link is pointing to is not executeable you > wont be able to excute > > Cheers > > Vic > > > > > > > > ----- Original Message ----- > > From: "Luong Phan" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" > <[EMAIL PROTECTED]> > > Sent: Tuesday, August 19, 2003 9:52 PM > > Subject: Re: Error when I start > Jakarta-tomcat(Cont) > > > > > > > Hi all, > > > > > > The file /bin/sh exists, and is executable > > > (lrwxrwxrwx). > > > > > > I still get the error massage when I start > > > jakarta-tomcat. > > > > > > Please help me! > > > > > > LuongPhan > > > > > > > > > --- Reinhard Moosauer <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > > > > > seems like > > > > /bin/sh > > > > does not exist. I saw the same problem in > another > > > > mail today. > > > > > > > > Please check if /bin/sh exists and is > executable. It > > > > really should! > > > > > > > > regards, > > > > > > > > Reinhard > > > > > > > > Am Dienstag, 19. August 2003 11:05 schrieb > Luong > > > > Phan: > > > > > Hi all, > > > > > > > > > > I am having problem starting TOMCAT, I > installed > > > > > j2sdk1.4.2 and > > > > > jakarta-tomcat-3.2.4 on the Redhat Linux > 7.3. > > > > Those > > > > > two directories are > > > > > located at the /usr/java. > > > > > I set the envoroment variables in the > > > > /.bash_profile > > > > > as the following: > > > > > JAVA_HOME=/usr/java/j2sdk1.4.2 > > > > > TOMCAT_HOME=/usr/java/jakarta-tomcat-3.2.4 > > > > > > > > > > > > > CLASSPATH=$JAVA_HOME/lib/tools.jar:$TOMCAT_HOME/lib/servlet.jar > > > > > export JAVA_HOME TOMECAT_HOME CLASSPATH > > > > > > > > > > Every time I try [EMAIL PROTECTED] root]# > > > > > $TOMCAT_HOME/bin/startup.sh > > > > > I get the massage: > > > > > > > > > > > > > bash:/usr/java/jakarta-tomcat-3.2.4/bin/startup.sh:/bin/sh > > > > > bad interpreter: Permision denied > > > > > > > > > > Please help me! > > > > > > > > > > LuongPhan > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > The New Yahoo! Search - Faster. Easier. > Bingo. > > > > > http://search.yahoo.com > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > > [EMAIL PROTECTED] > > > > > For additional commands, e-mail: > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > The New Yahoo! Search - Faster. Easier. Bingo. > > > http://search.yahoo.com > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]