RE: Tomcat application won't start with MySQL Connection Pooling

2005-08-08 Thread James Adams
> Please note the following for the path attribute in > the Tomcat 5.5 doc for : > > "The value of this field must not be set except when > statically defining a Context in server.xml, as it > will be infered [sic] from the filenames > used for either the .xml context file or the > docBase." > > A

RE: Tomcat application won't start with MySQL Connection Pooling

2005-08-05 Thread James Adams
> > I'm curious: why are you using the documentation for an > older level to configure the current version? Things > have changed in this area (among others) between 5.0 > and 5.5. > You bring up a very good point, thanks for spotting that for me. I have now created a context.xml according to

Tomcat application won't start with MySQL Connection Pooling

2005-08-05 Thread James Adams
I have tried adding connection pooling for a MySQL database in Tomcat 5.5 by following the steps described [URL=http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html]here[/URL]. Now when I start Tomcat my application fails to load. The only message I can find in any

Re: Log4j initialization problem

2002-03-20 Thread James Adams
Hello, I have tried the ServletContextListener approach suggested below by Sriram (thanks !) and I am still having the same problem, i.e. I get the log file (specified in my log4j.properties file) created under whatever directory I am at when I issue the tomcat start command. It appears that the

Log4j initialization problem

2002-03-19 Thread James Adams
Hello, I am having the problem of Tomcat initializing/creating my Log4j log files in whatever directory that Tomcat is started from. In other words if I am currently at directory /kung/foo when I issue the command /etc/init.d/tomcat start, then my log files will be created under /kung/foo instea

Not finding class, mistakenly looking for "null"

2002-02-14 Thread James Adams
Hello, I have a web application which is not finding a tag handler class, it is mistakenly looking for "null". The classes for this tag handler is located in the WEB-INF/classes directory and is declared in web.xml. The web application works as advertised on another system which is running To

Log messages

2002-01-25 Thread James Adams
Is there a class I can use to write log messages to the Tomcat log files ? Can anyone explain how this is done ? Also I have looked a wee bit at java.util.logging - can this also be used, or is it a better solution ? Thanks for any suggestions. -James Adams -- To unsubscribe: <mai

Re: NoClassDefFoundError: sun/tools/javac/Main

2001-11-16 Thread James Adams
I have heard that perhaps I need to make sure that tools.jar is in Tomcat's CLASSPATH. How can I determine the environment variables being used by Tomcat ? Where are these set ? I assume that there is a config file which is handling this... Thanks for suggestions, -James -- To unsubscribe:

NoClassDefFoundError: sun/tools/javac/Main

2001-11-16 Thread James Adams
I am trying to get Tomcat working on an SGI - IRIX machine. I can get the example Tomcat page (index.html) as well as the example servlets. However the example JSPs and my own JSPs are not being served and give errors, such as: 001-11-16 12:22:04 - Ctx() : Compiling: /dataview/DataCenterFramese

Re: Why am I getting a Javascript file request instead of my servlet ?

2001-11-14 Thread James Adams
[EMAIL PROTECTED] wrote: > > > > Subject: Why am I getting a Javascript file request instead of my servlet ? > Date: Wed, 14 Nov 2001 12:11:49 -0700 > From: James Adams <[EMAIL PROTECTED]> >

Re: Why am I getting a Javascript file request instead of my servlet ?

2001-11-14 Thread James Adams
As a test I have set the action of the form equal to alert(1) as well as to a test JSP which prints the form parameters, both of these work well. However when the action is my form handler servlet that's when I get the bad voodoo - it tells me that it can't find the .js file when I submit, and it

Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread James Adams
I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especiall

Why am I getting a Javascript file request instead of my servlet ?

2001-11-14 Thread James Adams
I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especiall

How to get an Applet to run in a JSP ?

2001-10-02 Thread James Adams
I have an applet which runs fine when I include it in a HTML page, but whenever I try to include it in a JSP I get a pop-up message from my browser (Netscape 4.78) telling me that I need to download the Java plugin. I get the same behavior when testing with Internet Explorer. Obviously I already h

Re: Taglibs & Jasper CompileException

2001-10-02 Thread James Adams
It turns out that the unterminated description element which was causing the CompileException was actually in the web.xml file. Strange that I never get any errors or exceptions when web.xml is processed during a restart of Tomcat. -James

Taglibs & Jasper CompileException

2001-10-01 Thread James Adams
I am getting a weird exception message when I try to use a taglib. I hope somebody reading this forum can enlighten me. This is my first foray into using taglibs. I have a JSP which has the following lines of code in place to use my taglib: <%@ taglib uri="/WEB-INF/errorMessages-taglib.tl

Re: How to make a URL map to a servlet ?

2001-09-26 Thread James Adams
> Hi James > > Add the following to your web.xml which is located in the > WEB-INF directory > > > myServlet > myServlet > The description for my > servlet > > server.ucar.edu.myapp.sevlet.ServletClass > > > > > myServlet > /myurlmapping > > > Now you should be

Re: How to make a URL map to a servlet ?

2001-09-26 Thread James Adams
So if my machine is named "server.ucar.edu", and my servlet's class file is located as $TOMCAT_HOME/webapps/myapp/WEB-INF/classes/servlet/Servlet.class then I should have an entry like the following in my web.xml: server.ucar.edu.myapp.sevlet.ServletClass I've tried the above approach but still

Re: How to make a URL map to a servlet ?

2001-09-26 Thread James Adams
One other thing, my web.xml file is located as $TOMCAT_HOME/webapps/myapp/WEB_INF/web.xml and not as /etc/web.xml - is this perhaps where I've gone wrong ? -James Lester June Cabrera wrote: > Hi James, > > Tomcat is bundled with a "build" utility. By editing /etc/web.xml in your > development

Re: How to make a URL map to a servlet ?

2001-09-26 Thread James Adams
Thanks for the quick response Lester. I thought web.xml might be the key. I have actually already added some entries to web.xml in order to try to get this to work but I guess I'm not quite there yet. Here's what I have so far, perhaps somebody can tell me what I'm doing wrong: ---

How to make a URL map to a servlet ?

2001-09-26 Thread James Adams
I have a servlet which looks at the request, makes sure that there is a Session and the necessary beans included in the Session and then directs to a JSP page. I want to be able to enter a URL and get the servlet (which will direct me to the JSP). I have the JSP in $TOMCAT_HOME/webapps/myapp/Mya

Re: Rep: Image Not Found

2001-09-07 Thread James Adams
background: url(../images/bg1.jpg) fixed > } > a > { > text-decoration:none > } > > Rgds > Vijay > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > Jame

Image file not found - why not ?

2001-09-06 Thread James Adams
I have a JSP which tries to load an image which is referenced by a URI which is set in the request by a servlet. " alt="IMAGE NOT FOUND"> Unfortunately this has never worked because Tomcat can never find the image. Perhaps I am using a bad URI ? I have the image located under my applic

Re: JSP page not found - any ideas why ?

2001-08-23 Thread James Adams
Thanks so much - the problem was due to my modification of server.xml. I've removed the modification and restarted Tomcat and now I can see my pages fine. -James Jeff Turner wrote: > > Have a read of: > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/index.html > > Specifically the

Re: JSP page not found - any ideas why ?

2001-08-23 Thread James Adams
stuck... -James James Adams wrote: > > Hello, > > I am attempting to set up my first web application using Tomcat. I have > taken the following first steps but still no enchilada - the initial JSP > isn't found when I try to access it (Not Found 404): > > - I h

JSP page not found - any ideas why ?

2001-08-23 Thread James Adams
Hello, I am attempting to set up my first web application using Tomcat. I have taken the following first steps but still no enchilada - the initial JSP isn't found when I try to access it (Not Found 404): - I have put a JSP in a directory named $TOMCAT_HOME/james1. The JSP is named Test1.jsp a