RE: database - jdbc setup help
Wow, great. That worked like a charm. After following your simple instructions, your script listed my database tables. Amazing! I don't quite get the JSTL stuff tho... Your script says: %-- The taglib directive below imports the JSTL library. If you uncomment it, you must also add the JSTL library to the project. The Add Library... action on Libraries node in Projects view can be used to add the JSTL 1.1 library. --% %-- [EMAIL PROTECTED] uri=http://java.sun.com/jsp/jstl/core; prefix=c% --% So where are the Projects View, Libraries Node, Add Library action, etc. I was thinking maybe in the tomcat admin or manager web interfaces, but couldn't find it. Thanks, b. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classpath problem?
Hi, Newbie here, I'm not sure why I'd be getting these compilation errors. I see my tomcat server at http://localhost/. The http://www.coreservlets.com/Apache-Tomcat-Tutorial/ seems to tell me it's my classpath, but *I* think I have my jar files properly in my classpath. See this following shell transcript. Thanks, Bagus id uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator) echo $CLASSPATH .:/www/my_tomcat_apps:/usr/local/jakarta-tomcat-5.4.4/common/lib/servlet-api .jar:/usr/local/jakarta-tomcat-5.5.4/common/lib/jsp-api.jar ls /usr/local/jakarta-tomcat-5.5.4/common/lib/jsp-api.jar /usr/local/jakarta-tomcat-5.5.4/common/lib/jsp-api.jar ls /usr/local/jakarta-tomcat-5.5.4/common/lib/servlet-api.jar /usr/local/jakarta-tomcat-5.5.4/common/lib/servlet-api.jar pwd /usr/www/my_tomcat_apps ls -al HelloServlet.java -rw-r--r-- 1 bagus staff 955 Feb 18 09:04 HelloServlet.java javac HelloServlet.java elloServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloServlet.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloServlet.java:13: cannot resolve symbol symbol : class HttpServlet location: class HelloServlet public class HelloServlet extends HttpServlet { ^ HelloServlet.java:14: cannot resolve symbol symbol : class HttpServletRequest location: class HelloServlet public void doGet(HttpServletRequest request, ^ HelloServlet.java:15: cannot resolve symbol symbol : class HttpServletResponse location: class HelloServlet HttpServletResponse response) ^ HelloServlet.java:16: cannot resolve symbol symbol : class ServletException location: class HelloServlet throws ServletException, IOException { ^ 6 errors - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
database - jdbc setup help
Hey there newbie here again, I've now set up Tomcat 5.5.4 and have installed mysql-standard-4.1.9-unknown-freebsd4.7-i386 on my Freebsd 5.3 box intel box. I've loaded some databases and tables into the database. How do I get them to work together with jsp? Can anyone point me to a short-sweet tutorial that can get me from here to there? I'm not sure if I need to install jdbc and the mysql driver or if those are included in the tomcat release. A tutorial that takes me through all that would be great. Thanks Bagus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat and virtual hosts
Here's a more general question about Tomcat. I'm used to using apache to set up virtual hosts, but when Tomcat installed, http://localhost/ now goes to my tomcat installation. So how does one set up multiple virtual hosts with Tomcat? Is it in the server.xml file or something? Or do I somehow now modify my apache configuration to be able to use tomcat and the jsp files? Thanks, Bagus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configure: error: Unsupported operating system freebsd5.3
Hi there, Any idea why I might get that error on running configure from my $CATALINA_HOME/bin/jsvc_src/ directory? I'm a newbie and this is my first Jakarta-tomcat installation. This is the first step I've taken since getting my jdk1.4.2 running on my new FreeBSD 5.3 box. It's like this: [root][/usr/local/jakarta-tomcat-5.5.4/bin/jsvc-src]: ./configure *** Current host *** checking build system type... i386-unknown-freebsd5.3 checking host system type... i386-unknown-freebsd5.3 checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Java compilation tools *** checking for javac... /usr/local/jdk1.4.2/bin/javac checking wether the Java compiler (/usr/local/jdk1.4.2/bin/javac) works... yes checking for jar... /usr/local/jdk1.4.2/bin/jar *** Host support *** checking C flags dependant on host system type... failed configure: error: Unsupported operating system freebsd5.3 Hmm... I guess I'm not even sure if I should be running Jakarta as a daemon as the first page of the set up recommends. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/setup.html Do I need to do that configuration at all? I noticed this page doesn't have the jsvc stuff: http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Introduction Ok, and while I'm chiefly concerned with why I get the error message mentioned in the subject, I'm beginning to see that I'm in deeper than I thought: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/installation.html Says I have to have Ant and a bunch of other stuff in place before I can have a jsp page that can query my mysql database. Is this true? If this is the case, what does a standalone jakarta-tomcat installation get you? Also, just wondering, why come isn't there a single installation system that sets all of this up for me? Ant, Jakarta, Struts, Cocoon, etc. I'm a little overwhelmed... but determined. Thanks, Bagus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]