Re: Mysql driver problem...

2002-12-30 Thread Keith Pemberton
Well, my JNDI name for the resource is jdbc/gatep5 and that is what I
have as the ResourceParams name=jdbc/gatep5.  Then I translated that
name into the web.xml which is under the ROOT directory of
$Tomcat/webapps.  Shouldn't this be ok?  

Keith


On Mon, 2002-12-30 at 02:03, shawn wrote:
 I got that same message myself many times.
 
 Are you trying from the root context?
 
 If so, you'll need 
   resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/root/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref
 in web.xml
 
 and 
 
 Context path=/root docBase=root 
 debug=5 reloadable=true crossContext=true
 
 
 in server.xml
 
 that's what worked for me anyway
 
 Shawn
 
 
 On Mon, 2002-12-30 at 16:22, Keith Pemberton wrote:
  Ok, first off sorry if this is a little vague and I can write more
  details later.  Anyway, I am new at this stuff with setting up the mysql
  driver to work with tomcat by setting a JNDI Datasource.  I followed the
  directions under that heading in the documentation from the Tomcat
  website for the mysql driver, but I keep getting a Cannot load JDBC
  driver class 'null' message when I try to create a connection using the
  driver.  I put the .jar file in the $TOMCAT/common/lib directory and
  restarted tomcat.  Anyone have any quick tips for me to try?  I can post
  my code later if yall need it; it's just late right now and I don't feel
  like cutting and pasting.  Anyway, thanks in advance!
  
  Keith  
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 -- 
 shawn [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Mysql driver problem...

2002-12-30 Thread Keith Pemberton
I got it to work finally.  I actually had to use the

Context path= docBase=ROOT debug=5 reloadable=true
crossContext=true

As soon as I did that everything was fine.  Thanks for the help and
suggestions.

Keith



On Mon, 2002-12-30 at 02:39, shawn wrote:
 just like the example, I should think that would be ok.
 
 my point was
 
 Context path=/root docBase=root 
  debug=5 reloadable=true crossContext=true
 
 and not sililar to the following which I found in server.xml
 
!-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
  
 I tried  Context path= docBase=ROOT debug=0/
 and got the same message you did.
 
 
 On Mon, 2002-12-30 at 17:09, Keith Pemberton wrote:
  Well, my JNDI name for the resource is jdbc/gatep5 and that is what I
  have as the ResourceParams name=jdbc/gatep5.  Then I translated that
  name into the web.xml which is under the ROOT directory of
  $Tomcat/webapps.  Shouldn't this be ok?  
  
  Keith
  
  
  On Mon, 2002-12-30 at 02:03, shawn wrote:
   I got that same message myself many times.
   
   Are you trying from the root context?
   
   If so, you'll need 
 resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/root/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
   in web.xml
   
   and 
   
   Context path=/root docBase=root 
   debug=5 reloadable=true crossContext=true
   
   
   in server.xml
   
   that's what worked for me anyway
   
   Shawn
   
   
   On Mon, 2002-12-30 at 16:22, Keith Pemberton wrote:
Ok, first off sorry if this is a little vague and I can write more
details later.  Anyway, I am new at this stuff with setting up the mysql
driver to work with tomcat by setting a JNDI Datasource.  I followed the
directions under that heading in the documentation from the Tomcat
website for the mysql driver, but I keep getting a Cannot load JDBC
driver class 'null' message when I try to create a connection using the
driver.  I put the .jar file in the $TOMCAT/common/lib directory and
restarted tomcat.  Anyone have any quick tips for me to try?  I can post
my code later if yall need it; it's just late right now and I don't feel
like cutting and pasting.  Anyway, thanks in advance!

Keith  


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
   -- 
   shawn [EMAIL PROTECTED]
   
   
   --
   To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: mailto:[EMAIL PROTECTED]
   
  
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 -- 
 shawn [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Mysql driver problem...

2002-12-29 Thread Keith Pemberton
Ok, first off sorry if this is a little vague and I can write more
details later.  Anyway, I am new at this stuff with setting up the mysql
driver to work with tomcat by setting a JNDI Datasource.  I followed the
directions under that heading in the documentation from the Tomcat
website for the mysql driver, but I keep getting a Cannot load JDBC
driver class 'null' message when I try to create a connection using the
driver.  I put the .jar file in the $TOMCAT/common/lib directory and
restarted tomcat.  Anyone have any quick tips for me to try?  I can post
my code later if yall need it; it's just late right now and I don't feel
like cutting and pasting.  Anyway, thanks in advance!

Keith  


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Compiling from src rpm...

2002-12-07 Thread Keith Pemberton
I am having a little trouble compiling the full src rpm for tomcat.  The
error message is:

+ mv
/var/tmp/tomcat4-root-4.1.12/var/tomcat4/common/lib/jdbc-stdext-2.0.jar
/var/tmp/tomcat4-root-4.1.12/var/tomcat4/common/lib/jdbc2_0-stdext.jar
mv: cannot stat
`/var/tmp/tomcat4-root-4.1.12/var/tomcat4/common/lib/jdbc-stdext-2.0.jar': No such 
file or directory
error: Bad exit status from /var/tmp/rpm-tmp.86974 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.86974 (%install)


Is this just a bug in the build file trying to look for the
jdbc2_0-stdext.jar file as opposed to the jdbc-stdext-2.0.jar or is
there another jar file that I need to find and download.  Surely someone
else has been able to compile from source  Anyone with help/advice is
much appreciated!

Keith




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Compiling from src rpm...

2002-12-07 Thread Keith Pemberton
Just wanted to bump up this question.  Don't want it to get lost in the
mix.  Any help is appreciated!

Keith

On Sat, 2002-12-07 at 05:14, Keith Pemberton wrote:
 I am having a little trouble compiling the full src rpm for tomcat.  The
 error message is:
 
 + mv
 /var/tmp/tomcat4-root-4.1.12/var/tomcat4/common/lib/jdbc-stdext-2.0.jar
 /var/tmp/tomcat4-root-4.1.12/var/tomcat4/common/lib/jdbc2_0-stdext.jar
 mv: cannot stat
 `/var/tmp/tomcat4-root-4.1.12/var/tomcat4/common/lib/jdbc-stdext-2.0.jar': No such 
file or directory
 error: Bad exit status from /var/tmp/rpm-tmp.86974 (%install)
 
 
 RPM build errors:
 Bad exit status from /var/tmp/rpm-tmp.86974 (%install)
 
 
 Is this just a bug in the build file trying to look for the
 jdbc2_0-stdext.jar file as opposed to the jdbc-stdext-2.0.jar or is
 there another jar file that I need to find and download.  Surely someone
 else has been able to compile from source  Anyone with help/advice is
 much appreciated!
 
 Keith
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Is Tomcat a J2EE Container as well??

2002-11-12 Thread Keith Pemberton
No, JBoss is in my opinion not easy to use.  Plus you have to buy the
documentation.  I know that they have to make money somewhere, but at least
they could provide a comprehensive management tool that was easy to use like
Macromedia JRun.  If you are a beginner I would highly recommend staying
away from JBoss.

Keith

- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 7:35 PM
Subject: Re: Is Tomcat a J2EE Container as well??


 
 
 Try jboss and tomcat together:
 
 http://www.jboss.org/downloads.jsp
 
 
 
 
 Is that easy to use btw (I mean the jboss part) ?  I tried iplanet
 platform edition but that wouldn't let me do remote admin. Enhydra was a
 bit vague in certain areas for me.


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat4 Linux Process...

2002-11-11 Thread Keith Pemberton
All,

 Just wanting to know if ppl have noticed that the 4.1.12 linux process will not 
properly shutdown under Redhat 8.0.  When either stopping the process manually or 
shutting down my computer, it always hangs on the shutting down of the tomcat process. 
 Anyone else with this experience and know a work-a-round?  Thanks!

Keith


Tomcat Linux process...

2002-11-11 Thread Keith Pemberton
All,

 Just wanting to know if ppl have noticed that the 4.1.12 linux process will not 
properly shutdown under Redhat 8.0.  When either stopping the process manually or 
shutting down my computer, it always hangs on the shutting down of the tomcat process. 
 Anyone else with this experience and know a work-a-round?  Thanks!

Keith


So what database and script language do you use?

2002-09-24 Thread Keith Pemberton

Hi everyone...

 I have been trying to use MySQL and JSP,Servlets to interact with
my tomcat server.  So far I have had a lot of frustration and little
luck.  Anyway, I was just wonder what the majority of ppl are using as a
database and scripting language.  Your input is much appreciated!

Keith





RE: So what database and script language do you use?

2002-09-24 Thread Keith Pemberton

Do you use auto_increment fields in any of your tables in MySQL.  If so,
have you found a good way to put entries into the table that has an
auto_increment field.  Everything I try will not automatically generate
that field when I insert something from either a JSP page or servlet

Keith

On Tue, 2002-09-24 at 05:58, Cato, Christopher wrote:

Apache + TomCat / MySQL / JSP
Apache + mod_perl / MySQL / Perl

are the two combinations I use

/christopher

 -Original Message-
 From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
 Sent: den 24 september 2002 12:39
 To: [EMAIL PROTECTED]
 Subject: So what database and script language do you use?
 
 
 Hi everyone...
 
  I have been trying to use MySQL and JSP,Servlets to interact with
 my tomcat server.  So far I have had a lot of frustration and little
 luck.  Anyway, I was just wonder what the majority of ppl are 
 using as a
 database and scripting language.  Your input is much appreciated!
 
 Keith
 
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





Re: new to this...

2002-09-19 Thread KEITH PEMBERTON

I know that I have had this problem in the past.
What I had to do is to go to the Runtime tab down at the 
bottom of the explorer menu. There is an option for 
servers, but I can't remember right now what the exact 
name is but it is not HTTP server.  Click through that 
choice till you find the Tomcat server.  Down below in the 
Properties menu there is a line that has parameter that 
are like {tomcat-filesystem}.  click to edit that line and 
after the {tomcat-filesystem} line put the following with 
NO SPACES: {:}{filesystems}.  So your line should read:
{tomcat-filesystem}{:}{filesystems}  (plus whatever 
else is in the line).  Restart Forte and it should work. 
 Hope this helps!!

Keith 

On Tue, 17 Sep 2002 16:34:07 -0300 (ADT)
  Marcella MacDougall [EMAIL PROTECTED] wrote:

Hey all,

I am using Forte for Java along with Tomcat.  My problem 
is that when I
try to execute a servlet, I keep getting the same error 
message:

Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet 
HelloServlet2 is currently
unavailable



type Status report

message Servlet HelloServlet2 is currently unavailable

description The requested service (Servlet HelloServlet2 
is currently
unavailable) is not currently available.

Can anybody give me some words of wisdom?  I am pretty 
darn frustrated:(

Marcy


--
To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


TEXTAREA NAME=Signature ROWS=4 COLS=60

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tsdok


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: new to this...

2002-09-17 Thread KEITH PEMBERTON

I know that I have had this problem in the past.
What I had to do is to go to the Runtime tab down at the 
bottom of the explorer menu. There is an option for 
servers, but I can't remember right now what the exact 
name is but it is not HTTP server.  Click through that 
choice till you find the Tomcat server.  Down below in the 
Properties menu there is a line that has parameter that 
are like {tomcat-filesystem}.  click to edit that line and 
after the {tomcat-filesystem} line put the following with 
NO SPACES: {:}{filesystems}.  So your line should read:
{tomcat-filesystem}{:}{filesystems}  (plus whatever 
else is in the line).  Restart Forte and it should work. 
 Hope this helps!!

Keith 

On Tue, 17 Sep 2002 16:34:07 -0300 (ADT)
  Marcella MacDougall [EMAIL PROTECTED] wrote:

Hey all,

I am using Forte for Java along with Tomcat.  My problem 
is that when I
try to execute a servlet, I keep getting the same error 
message:

Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet 
HelloServlet2 is currently
unavailable



type Status report

message Servlet HelloServlet2 is currently unavailable

description The requested service (Servlet HelloServlet2 
is currently
unavailable) is not currently available.

Can anybody give me some words of wisdom?  I am pretty 
darn frustrated:(

Marcy


--
To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


TEXTAREA NAME=Signature ROWS=4 COLS=60

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Need HELP!!.....

2002-09-12 Thread Keith Pemberton

Ok, I had this web app running where I am using a login jsp page and a
AuthenticateServet.  If the user is valid, then the person gets sent to
main.jsp.  Anyway, I had the whole thing working last night and now it
is not working and I get the following error message below when trying
to login.
Your help is much appreciated!

Keith


type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
AuthenticateServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.ClassNotFoundException: AuthenticateServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at

Wrapper cannot find servlet class...

2002-09-12 Thread KEITH PEMBERTON

I have a servlet and three jsp files in a directory under 
/var/tomcat4/webapps/techlabs.  The web.xml file 
identifies the uri to be /AuthenticateServlet for the 
servlet in that directory.  I get the following error 
message when I try to access the servlet from the 
login.jsp file that is also in the techlabs directory. 
 Any help would be very much appreciated!!

javax.servlet.ServletException: Wrapper cannot find 
servlet class AuthenticateServlet or a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.ClassNotFoundException: AuthenticateServlet
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 

How to set tomcat to use port 80...

2002-09-07 Thread Keith Pemberton

Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type tomcat4 run as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith





RE: How to set tomcat to use port 80...

2002-09-07 Thread Keith Pemberton

tomcat4 run is a script file that I can run to start and stop tomcat4
because I installed an rpm version on tomcat.  I found the solution and
thanks for everyone that was trying to help me out.  Turns out that the
tomcat4.conf file has a line TOMCAT_USER which was assigned to tomcat4. 
When I installed the rpm version it created a tomcat4 user and group. 
Eventhough I was logged in as root and trying to run tomcat4 run it
was using the user specified as TOMCAT_USER in the conf file as the user
to start the server.  That is why it kept giving me permission denied
errors.  A simple change in that conf file to read root as opposed to
tomcat4 quickly fixed the problem.  Again, thanks so much for the help
everyone... I'm sure that I will have more questions later

Keith

On Sat, 2002-09-07 at 22:56, Turner, John wrote:

 What is tomcat4 run?  What happens if you run
$CATALINA_HOME/bin/startup.sh as root?  Do you get the same error message?
Whatever tomcat4 is, it might be doing some sort of su or setuid/setgid
before actually trying to start Tomcat.

John

-Original Message-
From: Keith Pemberton
To: [EMAIL PROTECTED]
Sent: 9/7/02 11:19 PM
Subject: How to set tomcat to use port 80...

Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type tomcat4 run as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith






Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Keith Pemberton

I'm trying to point my tomcat server over to port 80 in Redhat Linux,
but I am having a little trouble with it.  I have apache installed as
well but I have both disabled the service and commented out the two
lines in the /etc/services file that deal specifically with port 80. 
Anyone have a suggestion as to why I am getting this error message and
what I can do to resolve it?  Thanks in advance! 

Keith 




RE: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Keith Pemberton


hmm, I guess that I was not clear in my email... after already shutting
down the httpd server (and using netsta to make sure that it wasn't
running) I tried as the root user to start the service and it was giving
me that error message.  Any other suggestions?  Thanks!

Keith

On Fri, 2002-09-06 at 22:12, John Naldoza wrote:

Hi,


Kindly check if your web server is currently running, netstat -vat or ps -aux 
|grep httpd

if it is, shut it down via /etc/rc.d/init.d/httpd stop and then try to start your 
tomcat server.

If this still doesn't work, then you may need to be with root priveledges to 
start-up applications listening on ports  1024 :)

Hope that helps.


Cheers,


John Clark

 -Original Message-
 From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 07, 2002 10:44 AM
 To: [EMAIL PROTECTED]
 Subject: Permission denied trying to connect tomcat to port 80...
 
 
 I'm trying to point my tomcat server over to port 80 in Redhat Linux,
 but I am having a little trouble with it.  I have apache installed as
 well but I have both disabled the service and commented out the two
 lines in the /etc/services file that deal specifically with port 80. 
 Anyone have a suggestion as to why I am getting this error message and
 what I can do to resolve it?  Thanks in advance! 
 
 Keith 
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





Re: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Keith Pemberton

Here is the output I get from running tomcat4 run.  Hope this helps:

Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.0
Catalina.start: LifecycleException:  null.open:  java.net.BindException:
Permission denied:80
LifecycleException:  null.open:  java.net.BindException: Permission
denied:80
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Permission denied:80
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Keith

On Fri, 2002-09-06 at 22:59, Ben Walding wrote:

Might be best to post the dump of your error message.

Although from the sounds of it, it might be that your catalina.sh / 
startup.sh is not set for execute

Try chmod a+x catalina.sh

Then
./catalina.sh run

See if that helps

Keith Pemberton wrote:

I'm trying to point my tomcat server over to port 80 in Redhat Linux,
but I am having a little trouble with it.  I have apache installed as
well but I have both disabled the service and commented out the two
lines in the /etc/services file that deal specifically with port 80. 
Anyone have a suggestion as to why I am getting this error message and
what I can do to resolve it?  Thanks in advance! 

Keith 

  



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





RE: Web-application not yet deployed

2002-06-26 Thread Keith Pemberton

Which version of mod_webapp are you running?  I have found now that can run
tomcat4.0.4 but I have to use the 4.0.1 version of mod_webapp inorder for it
to work.  If you need the source code for it I can send it to you.

Keith

-Original Message-
From: David Bishop [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 2:23 PM
To: Tomcat Users List
Subject: Re: Web-application not yet deployed


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Didn't help.  I should point out that I've used tomcat 3.2 for about a year,
so I'm *somewhat* familiar with how it works.  It's just the new mod_webapp
stuff (vs. mod-jk.conf) that's confusing me/not working correctly.  Is there
*nothing* that I should have to do, besides that snippet from my server.xml,
to deploy a web-app, so as to make it available through mod_webapp?

On Wednesday 26 June 2002 01:11 pm, Keith Pemberton wrote:
 Make sure that you first stop both the tomcat and the httpd servers.
Then,
 first start the tomcat server and then start the httpd server.  Hope this
 helps!



 -Original Message-
 From: David Bishop [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 26, 2002 1:24 PM
 To: Tomcat Users List
 Subject: Re: Web-application not yet deployed



 Any ideas on this?  Please help!

 On Tuesday 25 June 2002 10:13 am, David Bishop wrote:
  I am using 4.0.4.  I was going to try going back to 4.0.1, as per your
  suggestion, however it doesn't seem to be available from the web
  (http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ just has

 back

  to 4.0.3).  I *don't* get Segfaults in apache, though.  Here's a snippet

 of

  it's log:
 
  Mon Jun 24 18:23:54 2002] [error] Re-Trying to deploy connections
  [Mon Jun 24 18:23:54 2002] [error] Connection webappConn cannot
connect
  [Mon Jun 24 18:23:54 2002] [error] Cannot open connection webappConn
  [Mon Jun 24 18:23:54 2002] [error] Web-application not yet deployed
 
  I did get Sig11's for a little while, IIRC, it had to do with not
linking
  to -lglibc_s.  Anything else I should try?
 
  On Monday 24 June 2002 10:04 pm, Keith Pemberton wrote:
   What version of tomcat 4 are you using? 4.0.3 or 4.0.4?  I am another
   person on this list have had problems with Apache 1.3.xx and
   tomcat4.0.3 producing the same error messages under RedHat.  The
   solution that we came up with is to go back to the 4.0.1 series and
   that has worked just fine for /examples/. The default page, though,
for
   me some of the images are garbled, which I don't know what is up with
   that.  Look at your error_log page for apache tail -f
   /path/to/apache/logs/error_log and see if you get a bunch of
   Segmentation Fault errors when you try to access /examples/. Hope this
   helps!
  
   Keith
  
   -Original Message-
   From: David Bishop [mailto:[EMAIL PROTECTED]]
   Sent: Monday, June 24, 2002 5:58 PM
   To: [EMAIL PROTECTED]
   Subject: Web-application not yet deployed
  
  
   I'm getting 4.0 up and running (well, upgrading from 3.2) and after
two
   days straight of downloading various things and tweaking others, I
   think I'm almost there.  It's the almost that's the kicker :-)
  
   I have tomcat running fine, standalone, on port 8080.  I have apache
   running fine on 80.  I am using j2se 1.4, on solaris 7.  Apache 1.3.26
   (two birds with one stone).  I have a self-compiled mod_webapp, though
   I had to manually
   add -lgcc_s to that makefile to get that working.  My server.xml is

 based

   off
   of the server-noexamples.xml.config, with very few modifications.  The
   following is in my httpd.conf:
   WebAppConnection webappConn  warp  pedh12.micron.com:8009
   WebAppDeploy examples  webappConn  /examples
  
   The following is the only section that I have made changes to in the
   server.xml:
 Service name=Tomcat-Apache
   Connector
   className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0/
   Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=pedh12.micron.com debug=0
   appBase=webapps
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=apache_log. suffix=.txt
 timestamp=true/
 Realm className=org.apache.catalina.realm.MemoryRealm /
   Host name=localhost debug=0 appBase=webapps
   unpackWARs=true
   Context path=/examples
 docBase=webapps/examples
 crossContext=false
 debug=0
 reloadable=false 
   /Context
   /Host
   /Engine
 /Service
  
   That bit is the only part that is black magic to me.  I have *no*
   idea if I'm supposed to be putting the host and context tags as
   children to the Tomcat-Apache service tag.  Basically, I guessed and
   added things until it started.  And, it works

RE: Web-application not yet deployed

2002-06-24 Thread Keith Pemberton

What version of tomcat 4 are you using? 4.0.3 or 4.0.4?  I am another person
on this list have had problems with Apache 1.3.xx and tomcat4.0.3 producing
the same error messages under RedHat.  The solution that we came up with is
to go back to the 4.0.1 series and that has worked just fine for /examples/.
The default page, though, for me some of the images are garbled, which I
don't know what is up with that.  Look at your error_log page for apache
tail -f /path/to/apache/logs/error_log and see if you get a bunch of
Segmentation Fault errors when you try to access /examples/.  Hope this
helps!

Keith

-Original Message-
From: David Bishop [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 5:58 PM
To: [EMAIL PROTECTED]
Subject: Web-application not yet deployed


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm getting 4.0 up and running (well, upgrading from 3.2) and after two days
straight of downloading various things and tweaking others, I think I'm
almost there.  It's the almost that's the kicker :-)

I have tomcat running fine, standalone, on port 8080.  I have apache running
fine on 80.  I am using j2se 1.4, on solaris 7.  Apache 1.3.26 (two birds
with one stone).  I have a self-compiled mod_webapp, though I had to
manually
add -lgcc_s to that makefile to get that working.  My server.xml is based
off
of the server-noexamples.xml.config, with very few modifications.  The
following is in my httpd.conf:
WebAppConnection webappConn  warp  pedh12.micron.com:8009
WebAppDeploy examples  webappConn  /examples

The following is the only section that I have made changes to in the
server.xml:
  Service name=Tomcat-Apache
Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=pedh12.micron.com debug=0
appBase=webapps
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
Host name=localhost debug=0 appBase=webapps
unpackWARs=true
Context path=/examples
  docBase=webapps/examples
  crossContext=false
  debug=0
  reloadable=false 
/Context
/Host
/Engine
  /Service

That bit is the only part that is black magic to me.  I have *no* idea if
I'm supposed to be putting the host and context tags as children to the
Tomcat-Apache service tag.  Basically, I guessed and added things until it
started.  And, it works in standalone mode (i.e., pedh12:8080/examples
works).  However, when I try to goto pedh12/examples, well, examples returns
no such directory, etc, while /examples/ returns the Web-application not
yet deployed, 404 message.  Whew.  That took a while :-)  Any ideas?  This
is starting to get painful

Thanks, and have a great day!

- --
D.A.Bishop

Three people can take efficient care of a unix system as long as two of
them
are dead - Unknown HP-UX mailing list member
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9F6Pt14eKrYdPXKkRAhK4AJ98z8+EKwW+ct09O6JEZbYyHemHkgCfX/kQ
GRSdYrQDIDQF1YEcENHLEdM=
=rdvb
-END PGP SIGNATURE-


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Segmentation Fault/Document Contains No Data...

2002-06-21 Thread KEITH PEMBERTON

Thanks for the suggestion!  It seems that only the 4.0.1 
webapp module will work with a RedHat system.  I finally 
was able to get to the examples director without suppling 
a port number by doing just as you said.  I had to re-read 
it, though, a couple of times until I realized that you 
had used the 4.0.1 verson of the webapp module and not the 
4.0.3 which I had been trying to use.  Once I found the 
source and build the module everything worked fine. 
 Anyone got an answer to the /examples/ versus /examples 
problem?  Thanks again for your help!

Keith




On Fri, 21 Jun 2002 09:34:55 +0200 (MET DST)
  Sebastien Reboux [EMAIL PROTECTED] wrote:
Hi,

I've spent the last two days having the same troubles, 
and all I could do
is get rid of 4.0.3 an go back to the 4.0.1 binary 
version ; I
compiled the 4.0.1 mod_webapp and it now works like a 
charm.
See Re: webapp coredump a few posts upper.

Good luck,

Seb.

On 20 Jun 2002, Keith Pemberton wrote:

 All Tomcat gurus,

  I was hoping that getting Tomcat4.0.3 and apache 
1.3.22 working
 under Redhat would be a quick and easy setup.  I have 
spent the last
 month, though, just trying to get the examples to come 
up from
 http://mydomain.com/examples as opposed to
 http://mydomain.com:8180/examples.  Since I have 
installed using rpms,
 the server.xml file uses port 8180.  Tomcat has no 
problem running when
 I use the port at the end of my domain name.  I have yet 
to get apache
 to correctly send the request to Tomcat, though, by not 
calling the port
 number.  There are two common errors that I keep 
getting.  In the
 error_log for apache I keep getting a Segmentation 
Fault.  As well, when
 I try http://mydomain.com/examples I keep getting a 
popup dialog box
 saying that the document contains no data.  I am trying 
to use
 mod_webapp module.  Any suggestions would be greatly 
appreciated!  I
 have been pulling my hair out on this one.  Thanks!

 Keith




 --
 To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



-- 
Sebastien Reboux
BioInformaticien
Genoplante-Info


--
To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Segmentation Fault/Document Contains No Data...

2002-06-20 Thread Keith Pemberton

All Tomcat gurus,

 I was hoping that getting Tomcat4.0.3 and apache 1.3.22 working
under Redhat would be a quick and easy setup.  I have spent the last
month, though, just trying to get the examples to come up from
http://mydomain.com/examples as opposed to
http://mydomain.com:8180/examples.  Since I have installed using rpms,
the server.xml file uses port 8180.  Tomcat has no problem running when
I use the port at the end of my domain name.  I have yet to get apache
to correctly send the request to Tomcat, though, by not calling the port
number.  There are two common errors that I keep getting.  In the
error_log for apache I keep getting a Segmentation Fault.  As well, when
I try http://mydomain.com/examples I keep getting a popup dialog box
saying that the document contains no data.  I am trying to use
mod_webapp module.  Any suggestions would be greatly appreciated!  I
have been pulling my hair out on this one.  Thanks!

Keith




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]