Solaris 10 Tomcat 5.5.7

2005-02-07 Thread Chad Kellerman
Tomcat Users,
   I thought I would test out Tomcat 5.5.7 on a Solaris 10 (Ultra 60) so see 
how it performs.

Here is what I did.

edited /etc/profile
JAVA_HOME=/usr/java
export JAVA_HOME

exploded the tar ball in /opt/
then created a link to jakarta.XX.XX name tomcat

I started tomcat, it started but there are messages in the catalina.out file 
that don't make sense.

catalina.out
SEVERE: Exception starting filter Compression Filter
java.lang.ClassNotFoundException: compressionFilters.CompressionFilter

Then I tried to go to the example pages on http://localhost:8080/jsp-examples/
and recieved an error.

Feb 7, 2005 11:12:09 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet 
org.apache.jsp.jsp2.el.basic_002darithmetic_jsp
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.jsp.jsp2.el.basic_002darithmetic_jsp or a class it depends on

I have java 1.5.0_01 and Tomcat 5.5 installed on a Fedora server and 
everything works fine, but the java on the SOlaris server seems to mess 
things up a bit.

Anyone else see this?  Anyone else have a fix?


Thanks,
Chad



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



Re: Solaris 10 Tomcat 5.5.7

2005-02-07 Thread Chad Kellerman
On Monday February 7 2005 1:54 pm, Remy Maucherat wrote:
 On Mon, 7 Feb 2005 12:55:56 -0500, Chad Kellerman

 [EMAIL PROTECTED] wrote:
  Tomcat Users,
 I thought I would test out Tomcat 5.5.7 on a Solaris 10 (Ultra 60) so
  see how it performs.
 
  Here is what I did.
 
  edited /etc/profile
  JAVA_HOME=/usr/java
  export JAVA_HOME
 
  exploded the tar ball in /opt/
  then created a link to jakarta.XX.XX name tomcat
 
  I started tomcat, it started but there are messages in the catalina.out
  file that don't make sense.
 
  catalina.out
  SEVERE: Exception starting filter Compression Filter
  java.lang.ClassNotFoundException: compressionFilters.CompressionFilter
 
  Then I tried to go to the example pages on
  http://localhost:8080/jsp-examples/ and recieved an error.
 
  Feb 7, 2005 11:12:09 AM org.apache.catalina.core.StandardWrapperValve
  invoke SEVERE: Allocate exception for servlet
  org.apache.jsp.jsp2.el.basic_002darithmetic_jsp
  javax.servlet.ServletException: Wrapper cannot find servlet class
  org.apache.jsp.jsp2.el.basic_002darithmetic_jsp or a class it depends on
 
  I have java 1.5.0_01 and Tomcat 5.5 installed on a Fedora server and
  everything works fine, but the java on the SOlaris server seems to mess
  things up a bit.
 
  Anyone else see this?  Anyone else have a fix?

 Did you use GNU TAR to extract the .tar.gz ?

I used /usr/sfw/bin/gtar  but I guess that's still buggy.  I grabbed the zip 
file and it worked like a charm.

thanks for the help.

Chad


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



redirecting based on role name

2003-12-16 Thread chad kellerman
hello everyone,

I have a site that uses form authentication thru JDBCRealm.  I have
my webapp root as /ROOT/ with 3 directories.  I have also set up the
web.xml file with 3 different security constraints based on the 3
directories in /ROOT/.

My questions is, can I redirect a successful login to a specified
directory based on the role_name I assigned the user in the mysql
database?

 For example,  if I have configured bob with the role_name of
admin.  Can I redirect his url to /ROOT/ADMIN by retrieving his
role_name?

  Can any one point me in the right direction?  Any help would be
appreciated.

Thanks,
Chad



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



RE: redirecting based on role name

2003-12-16 Thread chad kellerman
Yoav,

   Thanks, I did not know whether there was anything I could put in the
web.xml file under the security-constraint for some sort of redirect for
the role.

Chad 

On Tue, 2003-12-16 at 13:19, Shapira, Yoav wrote:
 Howdy,
 You can write a simple filter that uses request.isUserInRole to control
 the redirect.  I think I wrote a rule for the balancer webapp (tomcat 5)
 that does just that.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: chad kellerman [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 16, 2003 12:51 PM
 To: Tomcat Users List
 Subject: redirecting based on role name
 
 hello everyone,
 
 I have a site that uses form authentication thru JDBCRealm.  I have
 my webapp root as /ROOT/ with 3 directories.  I have also set up the
 web.xml file with 3 different security constraints based on the 3
 directories in /ROOT/.
 
 My questions is, can I redirect a successful login to a specified
 directory based on the role_name I assigned the user in the mysql
 database?
 
  For example,  if I have configured bob with the role_name of
 admin.  Can I redirect his url to /ROOT/ADMIN by retrieving his
 role_name?
 
   Can any one point me in the right direction?  Any help would be
 appreciated.
 
 Thanks,
 Chad
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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]



character sets showing as ?

2003-10-28 Thread chad kellerman
Hey guys, 
   I moved a few tomcat Apps from a 6.2 server to a 7.3 server.  Running
the same version of Tomcat.  But now the character sets that are
displayed are coming out as ? ..  They are all spanish character sets. 
I tried changing to the character set to utf-8 from iso-8859-1 but still
it comes up.

  Anyone ever seen this before?  Maybe point me in the right direction.



Thanks,
Chad  










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



tomcat or java problem?

2002-10-25 Thread chad kellerman
Hello,

I am running tomcat 4.0.X with Java 1.4.1. on a red hat 6.2 apache
1.3.x.

 I am using the WarpConnector to allow tomcat and apache to
communicate and for Virtual Hosts.  I have a few ( about 16) Virtual
Hosts on the box.

 What I am noticing is that when tomcat starts and the warp
connection gets estatblished by localhost on port 8008.

log 
[org.apache.catalina.connector.warp.WarpConnector] Connection from
/127.0.0.1:3952 to /127.0.0.1:8008
/log

 But it apears that the connection opens eventhough a request  has
not been made.  Then the connection never closes.

Is this a bug with the Warp Connector or is it a config problem with
java or tomcat?

Thansk for the help.

Chad





signature.asc
Description: This is a digitally signed message part


Bug?

2002-10-25 Thread chad kellerman
Hey everyone,

  Check this out.
  So I am getting this java exception:
 2002-10-25 13:53:40
[org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end 
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:536)

  Now I know I couldn't be the only one experiencing this error.  I
checked everywhere, where I eventually ended up at apache-bugzilla

http://issues.apache.org/bugzilla/show_bug.cgi?id=4547

If you read the thread you'll see that it has been resolved and it
was a duplicate bug.  And it lists the link to the other bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=4545


But,  The two are completely different.  One is a ssl key bug and the
other is a socket exception



Am I missing something??

I am running the newest tomcat 4.0.6  on apache 1.3.2X with the newest
jvm on redhat 6.2.

I get the above error then apache freezes up?

Any every have this happen?



Does this bug need to be reopened??  Never been in this situation and I
don't know how to proceed.  Any help would be greatly appreciated.

Sincerely,
Chad





signature.asc
Description: This is a digitally signed message part


Re: Bug?

2002-10-25 Thread chad kellerman
AC,

  You know, I am thinking now it may be a kernel thing.  Was the kernel
on both machines the same when you had the problem? (*nix?)

Chad 



On Fri, 2002-10-25 at 15:39, ContestAdmin wrote:
 chad kellerman wrote:
 
  Hey everyone,
 
Check this out.
So I am getting this java exception:
   2002-10-25 13:53:40
  [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
  java.io.IOException: Premature packet header end
  at
  org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
  at
  
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
  at
  org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
  at java.lang.Thread.run(Thread.java:536)
 
Now I know I couldn't be the only one experiencing this error.  I
  checked everywhere, where I eventually ended up at apache-bugzilla
 
  http://issues.apache.org/bugzilla/show_bug.cgi?id=4547
 
  If you read the thread you'll see that it has been resolved and it
  was a duplicate bug.  And it lists the link to the other bug:
 
  http://issues.apache.org/bugzilla/show_bug.cgi?id=4545
 
  But,  The two are completely different.  One is a ssl key bug and the
  other is a socket exception
 
  Am I missing something??
 
  I am running the newest tomcat 4.0.6  on apache 1.3.2X with the newest
  jvm on redhat 6.2.
 
  I get the above error then apache freezes up?
 
  Any every have this happen?
 
  Does this bug need to be reopened??  Never been in this situation and I
  don't know how to proceed.  Any help would be greatly appreciated.
 
  Sincerely,
  Chad
 

 Name: signature.asc
 signature.asc   Type: application/pgp-signature
  Description: This is a digitally signed message part
 
 Chad,
 
 I've had the same problem and have had little luck on this list with
 a response. I also saw the two entries in bugzilla.
 
 The only suggestion that I have is to change to mod_jk or mod_jk2
 instead of mod_webapp.
 
 From what I've been able to get from the conversations on this list
 the development on mod_webapp is dead.
 
 My problem was even more fun as I have two (supposedly) identical
 machines and one has this bug while the other does not. I still have
 not found anything different between the two. (same JDK, same
 extentsions, same apache version, same mod_webapp version same
 tomcat version, same ssl version).
 
 If you do happen to find anything out about this I'd love to hear about
 it.
 
 -AC
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
-- 
Chad Kellerman
Jr. Systems Administrator
Alabanza Inc
410-234-3305



signature.asc
Description: This is a digitally signed message part


out of memory errors

2002-10-23 Thread chad kellerman
Hi everyone,

I'll try and be a specific as possible:
I am running red hat 6.2/apache 1.3.26, tomcat 4.0.3 with java 1.4.0 on
a 1 ghz 1 gig ram server. (all old I am going to upgrade as soon as I
get it all working)  I am using mod_webapp for ip based virtual hosts

httpd.conf file has:
httpd.conf
ServerName localhost

LoadModule webapp_module libexec/mod_webapp.so 
AddModule mod_webapp.c 
WebAppConnection warpConnection warp localhost:8008

VirtualHost testdomain.com
User test
Group testgrpgrp
ServerName testdomain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/test/testdomain-www
TransferLog /home/test/testdomain-logs/access-log
ScriptAlias /cgi-bin/ /home/test/testdomain-www/cgi-bin/
WebAppConnection testdomainCONN warp localhost:8008
#to be able to call jsp pages from webapps directory
WebAppDeploy . testdomainCONN webapps
#for a test application
WebAppDeploy shopping testdomainCONN /webapps/shopping/
/VirtualHost

/httpd.conf

My server.xml has:

##

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Engine defaultHost=localhost name=Standalone debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  suffix=.txt prefix=catalina_log. timestamp=true /
  Host appBase=webapps unpackWARs=false name=localhost
debug=0
Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=localhost_log. directory=logs
timestamp=true /
Valve className=org.apache.catalina.valves.AccessLogValve
   pattern=common suffix=.txt
   prefix=localhost_access_log. directory=logs /
Context path=/manager docBase=manager privileged=true
 debug=0 /
Context path=/examples docBase=examples reloadable=true
crossContext=true debug=0 /
  /Host
  Realm className=org.apache.catalina.realm.MemoryRealm /
/Engine
Connector acceptCount=10 port=8080 maxProcessors=5
connectionTimeout=6 minProcessors=3
className=org.apache.catalina.connector.http.HttpConnector
enableLookups=false redirectPort=8443 debug=0 /
  /Service
!-- for non-secure sites --
  Service name=Apache
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache debug=0
  Host className=org.apache.catalina.connector.warp.WarpHost 
appBase=/home/test/testdomain-www/webapps
unpackWARs=false debug=0 name=testdomain.com
Valve className=org.apache.catalina.valves.AccessLogValve
   pattern=common prefix=access-log
   directory=/home/test/testdomain-logs /
Context path=/manager docBase=manager privileged=true
 debug=0 /
Context path=/home/test/testdomain-www/webapps/shopping
docBase=shopping privileged=true debug=0 /
  /Host
  
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=file-log directory=/var/log/tomcat
  timestamp=true /
  Realm className=org.apache.catalina.realm.MemoryRealm /
/Engine

Connector acceptCount=10 scheme=http appBase=webapps
port=8008 secure=false maxProcessors=5
minProcessors=3 
className=org.apache.catalina.connector.warp.WarpConnector
enableLookups=false debug=0 /
DefaultContext reloadable=true /
  /Service

!-- for secure sites --
  Service name=Apache-SSL
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache-SSL debug=0
  Host className=org.apache.catalina.connector.warp.WarpHost 
appBase=/home/test/testdomain-www/webapps
unpackWARs=false debug=0
name=testdomain.com
Valve className=org.apache.catalina.valves.AccessLogValve
   pattern=common prefix=access-log
   directory=/home/test/testdomain-logs /
Context path=/manager docBase=manager privileged=true
 debug=0 /
Context path=/home/test/testdomain-www/webapps/shopping
 docBase=shopping privileged=true debug=0 /
  /Host
  
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=secure-file-log directory=/var/log/tomcat
  timestamp=true /
  Realm className=org.apache.catalina.realm.MemoryRealm /
/Engine
Connector acceptCount=10 scheme=https appBase=webapps
port=8012 secure=true maxProcessors=5
minProcessors=2 
className=org.apache.catalina.connector.warp.WarpConnector
enableLookups=false debug=0 /
  /Service
/Server

##

The web.xml file, tomcat-users.xml, and catalina.policy have been
untouch.

The only 

virtual hosting

2002-10-23 Thread chad kellerman
He;llo,

Can anyone point me to some good links to post exampls of httpd.conf
files and server.xml files?

I have started getting 
java.lang.OutOfMemoryError: unable to create new native thread

when I started addding extra virtual hosts to my tomcat server.

thanks,
chad





signature.asc
Description: This is a digitally signed message part


startup as www

2002-10-07 Thread chad kellerman

Hi everyone,

previously I had my startup script ( /etc/rc.d/init.d/tomcat) start
the tomcat server like so:

code

#!/bin/sh
#
case $1 in
start)
echo -n Starting TomCat 4 and httpd:
su - www -c /usr/local/tomcat/bin/startup.sh
sleep 5 
/etc/httpd/bin/apachectl start
/usr/local/apache-ssl/bin/apachectl startssl
;;
restart)
/etc/httpd/bin/apachectl stop
/usr/local/apache-ssl/bin/apachectl stop
echo -n Stopping TomCat 4 and httpd:
su - www -c /usr/local/tomcat/bin/shutdown.sh
sleep 5
echo -n Restarting TomCat 4 and httpd:
su - www -c /usr/local/tomcat/bin/startup.sh
sleep 5
/etc/httpd/bin/apachectl start
/usr/local/apache-ssl/bin/apachectl startssl
;;
stop)
/etc/httpd/bin/apachectl stop
/usr/local/apache-ssl/bin/apachectl stop
echo -n Stopping TomCat 4 and httpd:
su - www -c /usr/local/tomcat/bin/shutdown.sh
sleep 5
;;
*)
echo Usage: $0 {start|stop|restart}
exit 1
;;
esac

/code

but since I moved it to RH 7.3 it prompts for a password.  Does anyone
know a way aroung this?  I would like the tomcat server to run as user
www and not prompt for a password.

thanks,.
--chad






signature.asc
Description: This is a digitally signed message part


download 4.0.3?

2002-10-04 Thread chad kellerman

Hi everyone,

I just went to download 4.0.3 and I can't, the url is missing not
found.  

I was using 4.0.3 on a rh6.2 server now I was going to put it on a
rh7.3 server.  Figured I use the same version because I am afraid the
the {$TOMCAT_HOME}/conf/*.xml files might not work(compatible) with
newer versions of tomcat.  

  Can I just drop the server.xml file (and others) and expect them to
work with 4.1.X? ( making sure everything else is set up correctly, of
course) Or are there a lot of changes?  

If I can't, anyone know where to download 4.0.3?


Thanks,
chad

-- 
Chad Kellerman
Jr. Systems Administrator
Alabanza Inc
410-234-3305



signature.asc
Description: This is a digitally signed message part


mod_webapp question

2002-09-06 Thread Chad Kellerman

Hello everyone,

  A few months ago I installed Tomcat 4.0.*  on a virtual hosting
server (linux) using apache and the web_app module.  I chose the web app
module because I remember hearing good things about it and it seemed
that it was being developed more then the others.

  I was just wondering,  is there any news on when and if,
mod_webapp will ever be able to distinguish between dynamic pages and
static pages within the same directory?  I know that mod_jk can pass
html pages to apache if there are jsp pages and html pages with in the
same directory.  But mod_webapp apparently doesn't.

Any one have any idea on the development status of mod_webapp??


Thanks for the info.

chad 

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




Wouldn't this be a security risk??

2002-08-28 Thread Chad Kellerman

Hello everyone,

I have been running tomcat for a while and just started to notice a
few things.  First, let me say I have it configure on a linux server
with mod_webapp, with Tomcat version 4.0.3.

Let's say I have a war file application called hello.war that I call
like so:

http://mydomain.com/webapps/hello/

But if I call it this way:

http://mydomain.com/webapps/hello.war 
   
it forces a download.  I realize this is not the proper way to call
it but if someone did call it this way..
I believe I can stop this through Apache but I am not quite too
sure.  

Does anyone else notice this or have a fix for it???
 
THanks,

Chad

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




Re: Process java Size

2002-06-21 Thread chad kellerman

Edit the tomcat_home/bin/catalina.sh file.

  Put something like this in it under CATALINA_OPTS

CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS -Xmx64m -Xms32m

This will allow the jvm to  use a maximum of 64 meg of memory. and a minimum 
of 32.

You can change this to fit your needs.

I am assuming you are talking about memory consumption.

--chad


On Fri June 21 2002 9:47 am, Guillaume Mignot wrote:
 Hello
 When i launch Tomcat 3.3.1 the process size is 557M
 how can i reduce that?

 JDK 1.3.1
 Tomcat 3.3.1 with apache


 Txs

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




Re: Where do you put servlets and how do you get them to run?

2002-06-21 Thread chad kellerman

Jesse,

 Try

http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html

that will explain everything.


chad

On Fri June 21 2002 3:51 pm, Jesse Schingen wrote:
 I am doing a project for my univeristy using Tomcat 4 under Linux. I am
 using Java Servlets and I am very confused as to where to put the servlets
 and how to get them to run in a browser. I know it has to do something with
 the WEB-INF folder and the web.xml page inside of that folder. I also know
 you have to change some settings in the server.xml to make them work. The
 only problem is that I have no idea what I need to change, where to put the
 servlets, and how to get them to run.

 Thank you for your time.

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




Re: calling servlets from jsp

2002-06-20 Thread chad kellerman

I have been working on this same thing for the past couple of days.

THe people on the list have been a great help.  While looking I came across a 
great article that shows step by step how to do this.

http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1

hope this helps.

--chad


On Thu June 20 2002 12:16 pm, Alex wrote:
 Hello,

  I want to call a servlet from a jsp ( i mean, when i press a button
  in the html file generated by the jsp, i want to call a servlet).
  for ex: document.location.href = SERVLET;
  How can i do this ?

  Thanks in advance...
  Alex.

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




Re: calling servlets from jsp

2002-06-20 Thread chad kellerman

Mike,
 You said:
Now there's an added complication if you're not running tomcat stand alone
 (ie
 using mod_jk and apache or something) in that you'll need to also tell the
 front end web server to pass the requests for your mapping through to
 tomcat as well (this is the part that I *always* forget about).

what other config lines do you need?

-chad


On Thu June 20 2002 12:41 pm, Mike Jackson wrote:
 You need to do a number of things, assuming that I understand the question.

 1) create your servlet (duh)

 2) create jsp (duh also)

 3) modify WEB-INF/web.xml

   add servlet entry for the servlet, should look something like this:

   servlet
   servlet-namefoo/servlet-name
   servlet-classorg.somewhere.Bar/servlet-class
   /servlet

   add a mapping for a file extension to the servlet, looks like this:

   servlet-mapping
   servlet-namefoo/servlet-name
   url-pattern*.form/url-pattern
   /servlet-mapping

   Note: the name of the servlet should be the same in both places and in
   order to have tomcat auto-magically map the request to the servlet you
   need have the link or action have the extension that you specify in the
   url-pattern.

 Now there's an added complication if you're not running tomcat stand alone
 (ie
 using mod_jk and apache or something) in that you'll need to also tell the
 front end web server to pass the requests for your mapping through to
 tomcat as well (this is the part that I *always* forget about).

 If you have any problems setting this up email and I'll try to answer
 questions
 or provide examples.

 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]

  -Original Message-
  From: Alex [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 20, 2002 9:17 AM
  To: [EMAIL PROTECTED]
  Subject: calling servlets from jsp
 
 
  Hello,
 
   I want to call a servlet from a jsp ( i mean, when i press a button
   in the html file generated by the jsp, i want to call a servlet).
   for ex: document.location.href = SERVLET;
   How can i do this ?
 
   Thanks in advance...
   Alex.
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




mod_webapp

2002-06-20 Thread chad kellerman

If you are using mod webapp  do you need?

 Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

to be able to connect to port 8080.

Can't you do it this way?

Connector className = org.apache.catalina.connector.warp.WarpConnector
  port=8080
  minProcessors=2
  maxProcessors=10
  scheme=http
  secure=false
  enableLookups=true
  acceptCount=10
  debug=0/


   If my server.xml file does not have any reference to HttpConnector I can't 
seem to connect to port 8080.

-- chad

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




Re: mod_webapp

2002-06-20 Thread chad kellerman

So you are saying if I am trying to use tomcat with Virtual Hosts,

I can connect to the host box with HttpConnector through port 8080

but at the same time use Warp to serve up servlets and jsp pages  (in a 
specified dsrectory) through 8009 with the Warp Connector then normal html 
pages through apache?

--chad


On Thu June 20 2002 2:51 pm, Milt Epstein wrote:
 On Thu, 20 Jun 2002, chad kellerman wrote:
  If you are using mod webapp  do you need?
 
   Connector className=org.apache.catalina.connector.http.HttpConnector
 port=8080 minProcessors=5 maxProcessors=75
 enableLookups=false redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=6/
 
  to be able to connect to port 8080.
 
  Can't you do it this way?
 
  Connector className = org.apache.catalina.connector.warp.WarpConnector
port=8080
minProcessors=2
maxProcessors=10
scheme=http
secure=false
enableLookups=true
acceptCount=10
debug=0/
 
 
 If my server.xml file does not have any reference to
  HttpConnector I can't seem to connect to port 8080.

 HttpConnector is for using Tomcat standalone (i.e. without a web
 server), WarpConnector is for using Tomcat with mod_webapp to connect
 to the web server.  You can use both.  But if you do make sure you use
 different ports -- the shipped default for HttpConnector is 8080, for
 WarpConnector I think it's 8009.  (Either way, I'd suggest not using
 8080 for WarpConnector, because it'd be confusing.)

 Milt Epstein
 Research Programmer
 Systems and Technology Services (STS)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




Re: mod_webapp

2002-06-20 Thread chad kellerman

THanks everyone.

  I thought this might be the reason I can't get any servlets to work from my 
virtual host. I can call it by
host.domain.com:8080/examples/servlet/servletname

but not,
virtualhost.com/webapps/appname/servlets/servletname

O well,
back to the drawing board.

thanks again

chad



On Thu June 20 2002 3:24 pm, Turner, John wrote:
 This is correct, for the current incarnation of mod_webapp.

 John Turner
 [EMAIL PROTECTED]
 http://www.aas.com

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 3:22 PM
 To: Tomcat Users List
 Subject: Re: mod_webapp

 Caveat: I've heard that the way WARP/mod_webapp works in terms of
 passing requests to Tomcat it doesn't distinguish between
 static/dynamic content, so that anything under a tomcat context/web
 application will be handled by tomcat; supposedly if you use mod_jk
 you can have apache handle such static content.

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




Re: war file deploys but can't reach any urls

2002-06-20 Thread chad kellerman

How is the 404 error displayed?

Is it displayed as actual html code in the browser or an actual blue 
backgrounded 404 error?

  If you are using mod_webapp you need:

#WebAppDeploy name.war  conn1/webapps/name


--chad


On Thu June 20 2002 4:00 pm, Koes, Derrick wrote:
 I dropped my war file in the webapps directory in a tomcat 4.0.4 install.

 I started tomcat, and a directory is created with the contents of my war
 file.

 However, I cannot hit the expected url with any success.  I always get a
 404 error.

 Can anyone help?



 Thanks.



 /**

  * Contact information.

  */

 public interface INFO

 {

 static final String NAME = Derrick Koes;

 String title = Senior Software Engineer;

 String company = Smith + Nephew Endoscopy;

 URL companyURL = new URL(

 http://www.smith-nephew.com/index-flash.html
 http://www.smith-nephew.com/index-flash.html );

 String aolIM = codeauthor2001;

 String EMAIL = [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]@smith-nephew.com ;

 String PHONE = (978) 749-1288;

 String FAX = (978) 749-1487;

 }

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




netstat -a localhost to localhost

2002-06-18 Thread chad kellerman

Hello everyone,

I have a redhat 6.2 machine ( I know a little behind the times, but it 
works very well)  with Tomcat 4.0.1 running with mod webapp both securely and 
non-securely.  

I little question.  Whne I run a netstat -a I notice many connection from 
and to localhost  from the ports I designated in my server.xml configuration 
file.  Is this normal?

Here is a little output:

tcp0  0 localhost:2327  localhost:8008  
ESTABLISHED
tcp0  0 localhost:8008  localhost:2326  
ESTABLISHED
tcp0  0 localhost:2326  localhost:8008  
ESTABLISHED
tcp0  0 localhost:8008  localhost:2325  
ESTABLISHED
tcp0  0 localhost:2325  localhost:8008  
ESTABLISHED
tcp0  0 localhost:8008  localhost:2324  
ESTABLISHED
tcp0  0 localhost:2324  localhost:8008  
ESTABLISHED
tcp0  0 localhost:8008  localhost:2323  
ESTABLISHED
tcp0  0 localhost:2323  localhost:8008  
ESTABLISHED
tcp

 I find it odd that the server ( being idle ) would have that many 
localhost connections ESTABLISHED.  This is not public yet so there are not 
too many requests yet.

 I am thinking it could be a java thing.  In my catalina.sh I have 
CATALINA_OPTS set with  -Xmx64m -Xms32m.  Maybe tomcat will open as many 
connections as it can with the amount of memory I allow it???

Any help would be appreciated.

Thanks for all the help,

--chad




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




classpath problem? maybe?

2002-06-18 Thread chad kellerman

Hello,

  I am getting frustrated with this little jsp /javabean problem.  I hope 
someone can steer me in the proper direction.

in my server.xml file I have set:

Host className = org.apache.catalina.connector.warp.WarpHost
  name=testdomain.net
  debug=0
  appBase=/home/test/www/webapps
  unpackWARs=false 

 Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=/home/test/tomcat-test-logs
prefix=access-log
pattern=common/

 Context path=manager docBase=manager 
debug=0 privileged=true/
 Context path=webapps docBase=webapps 
debug=0 reloadable=true/
/Host


I created a test jsp file with the line

jsp:useBean id=myBean scope=page class= examples.bean1/


   The bean1.class file I have in /home/test/www/webapps/examples.

But when I call the page I get the error

java.lang.ClassNotFoundException: examples.bean1

   It seems that everything else works for the site.  I created a war file of 
the examples and everything seems to work.  Basic jsp pages work fine also.

 IT just when I created this bean I get errors.

Can anyone offer me any suggestions with this?  I am running tomcat 4.0.3 on 
red hat with mod_webapp.

THanks for the help.

--chad




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




TurbineResources.properties

2002-06-14 Thread chad kellerman

Hello everyone,

 I hope everyone had a great week??

Anyway, I have installed Tomcat 4.03.   And everything seems to work like a 
charm.  All the example jsp/servlets work as they should.

My question,  why in the catalina.out file, do I get 

java.io.FileNotFoundException: null/WEB-INF/conf/TurbineResources.properties


I never installed Turbine on my server.  Should I?

From the website it says Turbine is a servlet based framework that allows 
experienced Java developers to quickly build secure web applications

Why is this error showing in my logs when I just have Tomcat?


Thansk for the help..


--chad


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




multiple instances

2002-06-13 Thread chad kellerman

Hi everyone,

 I think this topic has been beet to death.  But I have a few questions 
more.

   Just a quick survey.  Does anyone have mulitple instances of tomcat 
running-under different users?  (under linux or Solaris)
  If so, how many instances are you running? with 20 users? 50,100?

   My problem...
My set up has the main tomcat installation in /usr/local/tomcat/.  I have 
also another user called gotc.  His tomcat instance in in
/home/gotc/www/tomcat-  which I think I am going to change so it is not in his 
directory root.  but anyway.

My server.xml files are set up so that the main tomcat should list on 
8080.  And that gotc-tomcat should listen on 8090.  No other port is the same 
in the server.xml file.  Each runs great separately, but when run together, 
the one started second dies with the error:

StandardServer.await: create[8005]: java.net.BindException: Address already in 
use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
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)


 what port is it trying to bind to?  And how can I change that port to 
another?


Sorry for the long email...  But thanks for any help...


--chad

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




Re: multiple instances

2002-06-13 Thread chad kellerman

Thanks,
   But I got it.  I had the stupid shutdown port the same on the server.xml 
files.


My bad


--chad


On Thu June 13 2002 3:17 pm, Turner, John wrote:
 I have multiple instances of tomcat 3.1 running in a production
 environment, with each instance a separate hostname (a.x.com, b.x.com, etc)
 served by apache 1.3, though all instances are running as the same user. 
 If this is similar to what you are trying to do, holler back and I will dig
 out the configs and post it.  I'm knee deep in tomcat 4 at the moment so I
 don't have the configs handy. :)

 John Turner
 [EMAIL PROTECTED]
 http://www.aas.com


 -Original Message-
 From: chad kellerman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 3:05 PM
 To: [EMAIL PROTECTED]
 Subject: multiple instances


 Hi everyone,

  I think this topic has been beet to death.  But I have a few questions
 more.

Just a quick survey.  Does anyone have mulitple instances of tomcat
 running-under different users?  (under linux or Solaris)
   If so, how many instances are you running? with 20 users? 50,100?

My problem...
 My set up has the main tomcat installation in /usr/local/tomcat/.  I
 have
 also another user called gotc.  His tomcat instance in in
 /home/gotc/www/tomcat-  which I think I am going to change so it is not in
 his
 directory root.  but anyway.

 My server.xml files are set up so that the main tomcat should list on
 8080.  And that gotc-tomcat should listen on 8090.  No other port is the
 same
 in the server.xml file.  Each runs great separately, but when run together,
 the one started second dies with the error:

 StandardServer.await: create[8005]: java.net.BindException: Address already
 in
 use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
 at java.net.ServerSocket.bind(ServerSocket.java:308)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at
 org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
 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:3
9 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


  what port is it trying to bind to?  And how can I change that port to
 another?


 Sorry for the long email...  But thanks for any help...


 --chad

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




tyrex build issues

2002-06-03 Thread chad kellerman

Hello everyone,

  I am trying to build tomcat 4 from source.  I followed the Building.txt 
file but when I issue the ant commands my build fails at tyrex naming.

   Here are the errors:


 Note: sun.tools.javac.Main has been deprecated.
[javac] 
/usr/local/jakarta-tomcat-4.0.3/catalina/src/share/org/apache/naming/factory/TyrexTransactionFactory.java:75:
 
Class tyrex.tm.Tyrex not found in import.
[javac] import tyrex.tm.Tyrex;


The are about three of these erros then I get the ever popular build failed:

 4 errors, 2 warnings

BUILD FAILED

Can anyone give me some insite to what I ma doing wrong?

THanks for the help.


--chad

-- 
Chad Kellerman


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




Ant question

2002-05-23 Thread chad kellerman

Hey guys,

When building ant from source. The jakarta-ant-1.4.1-optional.jar, does this 
contain all the additional jar files, needed to build ant.  It seems that on the site
 
http://jakarta.apache.org/ant/manual/install.html

the section at the bottom,  it is recommend to go to all the site and get all the jars 
from there also.  Such as the  

 junit.jar from junit.org.

  Do I really need to go to all of these sites and get the jar files.


THanks,
Chad

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




Controlling processes

2002-03-07 Thread chad kellerman

Hi everyone,

So I have tomcat running with mod_webApp and apache on a redhat 6.2 box.

   I have read that you can set the maximum number of processes that tomcat has by 
setting it in the server.xml file.  Which I have.

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=50
 enableLookups=false
 acceptCount=10 debug=0/


so why are there 86 child processes running under tomcat???

init-+-atd
 |-crond
 |-httpd---10*[httpd]
 |-httpsd---5*[httpsd]
 |-java---java---86*[java]


   Am I missing something here???

Thanks,
-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




file creation

2002-03-05 Thread chad kellerman

Hello everyone,

 I am using Apache 1.3.23 with tomcat 4.0.1 woth the web_app module.  I have 
configured tomcat to work with Virtual Hosts.  All jsp pages and serverlets operate 
correctly, and everything is running smoothly except one thing.

I downloaded a evalutaion copy of jive forum from http://www.jivesoftware.com  
just to do some testing ( jsp, jdbc, and servlets)  Everything runs great and looks 
great but one thing.

Any files that that it creates has the uid and gid of root.  Root being who 
started and running tomcat.

How can I set suexec for tomcat?  And how can I change the user the Tomcat is 
running as?  For example, have it run as the user tomcat.


Thanks for all the help,

-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Just trying to get things stright...

2002-03-01 Thread chad kellerman

Good morning, afternoon, and evening,


 Just one little clarification.

  If I want apache to handle all html, php, cgi requests, I use:

  Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=50
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/


in my server.xml file.

   And if I want the web_app module to handle java request I use:

Connector classname=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=50
 enableLookups=false acceptCount=10 debug=0/




I am having trouble distinguishing the difference between the Connectors and how 
Apache handles html requests as compared to java requests.


Thanks
-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mulitple ports in server.xml

2002-02-27 Thread chad kellerman

Good morning,

 It is my understanding that if I set multiple virtual hosts up in Apache 
1.3.22/webapp module, for tomcat 4.0.1, the WebAppConnection directive for the virtual 
host section needs to contain a different port for the app to deploy.  This port 
corresponding to the port set in server.xml.

 Question,

  If I want multiple virtual hosts, how do I set up the server.xml to listen to 
multiple ports?

 Can I have multiple connectors under one serverice name?  For example:

Server port=8005 shutdownSHUTDOWN debug=0
Service name=Tomcat-Apache
!-- for virtual host 1 --
Connector=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=50
 enableLookups=false acceptCount=10 debug=0/

!-- for Virtual host 2 --
Connector=org.apache.catalina.connector.warp.WarpConnector
 port=8009 minProcessors=5 maxProcessors=50
 enableLookups=false acceptCount=10 debug=0/

   then the rest of the config...bla bla bla


I have not been able to get this to work??  I have seen Named Based Virtual hosts 
work, but I want just Virtual Hosts.  Each domain will have their own ip address.

I am stuck, can anyone offer any ideas that I might have over looked???


Thanks again,

-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




many java processes

2002-02-26 Thread chad kellerman

Hello everyone,

   I am running a red hat 6.2 tomcat 4.01 webapp server configured for virtual host.

   I have noticed that if tomcat stays running it builds up a lot of java processes. 
 Has this caused anyone any problems with anyones elses servers?

   I am afraid that if a put a few java domains on the server the java processes will 
begin to go through the roof.

 Any information/insites would be greatly appreciated.

-chad  

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




war files.

2002-02-25 Thread chad kellerman

Happy beginning of the week to everyone,

Are there any special configurations that need to be made to the server.xml file 
or the web.xml file to get war files to work under virtual hosts??

 I am getting 
WebApp: Error 404
 error when ever I call the war file.


Thanks for the help..


-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: war files.

2002-02-25 Thread chad kellerman

Thanks but,

   I should have said that I have that set already.  I have it set to false.  I did 
not want it to unpack.

  I did know wether I need something in WEB-INF or anything else.

Thanks again

-chad

On Mon, 25 Feb 2002 18:49:36 -
Reynir Hübner [EMAIL PROTECTED] wrote:

 dont you need to set the unpackWARs attribute to true on your host in
 server.xml ?
 I think so, 
 check out  : 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
 
 hope it helps
 [EMAIL PROTECTED]
 
  -Original Message-
  From: chad kellerman [mailto:[EMAIL PROTECTED]]
  Sent: 25. febrúar 2002 18:49
  To: [EMAIL PROTECTED]
  Subject: war files.
  
  
  Happy beginning of the week to everyone,
  
  Are there any special configurations that need to be made 
  to the server.xml file or the web.xml file to get war files 
  to work under virtual hosts??
  
   I am getting 
  WebApp: Error 404
   error when ever I call the war file.
  
  
  Thanks for the help..
  
  
  -chad
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




war files

2002-02-22 Thread chad kellerman

Good Day,
  I have virtual hosts configured for tomcat I ran into a problem testing out a war 
file.

Does anyone have any idea why a war file would unpack with the ownership of root when 
called from the web???

I am on a redhat 6.2 box with tomcat 4 and webapp.

Thanks,
Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: war files

2002-02-22 Thread chad kellerman


I thought if I was using the webapp module for virtual hosts it would execute as the 
user that the of the Virtual Host section where the webApp directive is???

For example:

VirtualHost jakarta.domain.net
User jak
Group jakartagrp
ServerName jakarta.domain.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
WebAppConnection conn warp jakarta.gotc.net:8015
WebAppDeploy webapps   conn/
/VirtualHost

  I would think any app executed under this user would have the users permissions??



  I must be looking at it wrong.

-chad



On Fri, 22 Feb 2002 14:39:41 -0500
Randy Layman [EMAIL PROTECTED] wrote:

 
   Is tomcat running at root?  (Hint, if your files are being unpacked
 as part of Tomcat's execution, then they are owned by the user running
 Tomcat.)
 
   Randy
 
 
  -Original Message-
  From: chad kellerman [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 22, 2002 3:23 PM
  To: [EMAIL PROTECTED]
  Subject: war files
  
  
  Good Day,
I have virtual hosts configured for tomcat I ran into a 
  problem testing out a war file.
  
  Does anyone have any idea why a war file would unpack with 
  the ownership of root when called from the web???
  
  I am on a redhat 6.2 box with tomcat 4 and webapp.
  
  Thanks,
  Chad
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




server.xml

2002-02-21 Thread chad kellerman

Hi everyone,

   I have a couple of questions about the server.xml file.  I am (want to) running 
Virtual Hosts with apache 1.3 and Tomcat 4.0 with webApp.  I have it running but I 
don't think it is running correctly.

   First question, If I do want to run Virtual Hosts does the Service component still 
need to be named Tomcat-Standalone?  Since I am running webApp I am not sure if this 
should be changed.

  Second Question,  This kinda relates to the above.  Again, if I am running Virtual 
Hosts, should the Top Level Container Engine name still be StandAlone?  I remeber 
reading there were 2 other engine name besides Standalone, but for the life of me I 
can't find where I read it.  I remeber reading that production servers should not have 
the Engine container as standalone, but I am not sure.

Thanks for the help.

-chad

  

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: I'll nearly gave up!!!

2002-02-20 Thread chad kellerman

Ok, but don't quote me on this.  I have been trying to do the same thing.  The 
documentation seems vague when it comes to Virtual Hosts and Tomcat 4.0.  


It also seems that a few people have this working but are not sure whether its 
right or not.  It stemms from lots of trial and error.  But any way here is what I 
have got so far.  I am not finished, it is still a work in progress.


I am running Apache 1.3 with Tomcat 4 on a redhat 6.2 box ( but should apply to win32)


  Ok tomcat in installed in /usr/local/jakarta-tomcat/.  I have not changed the 
directory structure so I still have a dist/ directory which holds the logs/ bin/ conf/ 
and what not.

  Since it's redhat httpd.conf is in /etc/httpd/conf/httpd.conf.  I have it set that 
every virtual hosts has a different ip address and dns.  I have only two Virtual hosts 
set up right now.  The actual host box, and virtual domain.

   I have not touched the server.xml file or the web.xml file. ( I have not gotten 
that far yet).  But what I do have enable the host box to have jsp and servlets 
working as well as the virtual host.

   Here is what I have in the httpd.conf file:



###Tomcat installation
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp jakarta.alabanza.com:8008
WebAppDeploy ROOT warpConnection /home/httpd/html/
WebAppDeploy examples warpConnection /examples/
###

 
#VirtualHost host.some_domain.com
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#/VirtualHost


VirtualHost jakarta.gotc.net
User jak
Group jakartagrp
ServerName jakarta.gotc.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
WebAppConnection apoWarpConn warp jakarta.gotc.net:8015
#WebAppDeploymyapp   apoWarpConn 
#WebAppDeploymanager apoWarpConn /manager/
WebAppDeploy examples warpConnection /examples/
/VirtualHost

#

   There is a couple things to take note here.  First I am not an expert, this works.  
If anyone can offer any other suggestions to make this smoother let me know.

Second,  you have to have the Tomcat Installation section below where you have the 
ServerName set for the host box.  The configtest fails everytime and apache won't 
start without it.  THe same goes in the virtual host section.  The WebAppConnection 
line has to go below the ServerName.  Give a bad hostname error.

Third,  make sure you kill apache completely dead as well as tomcat.  It seems tomcat 
takes a good 15-30 seconds to shutdown when you issue the shutdown.sh script.  After 
everything is shutdown completely, start tomcat first then apache.

If you get the 404 error page ( with some funky error about a line in a web app deploy 
file) you started httpd before tomcat.  SHut them all done and restart.

  Liek I said I am working on the server.xml and the web.xml.  So far this does work, 
but there a a few things not right.  Such as logs, and the {TOMACAT_HOME}/work 
dierctory still holds information about the virtual hosts.  Such as sessions id and 
what not.  THis can't be good.  I think this is a big security risk with my 
configuration.  I am working on it.  When I get the server.xml and web.xnml working 
for virtual hosts I will let you know.  I hope you will do the same.

Please, anyone have any comments let me know.

Chad 

I copied the {TOMCAT_HOME}webapps/examples to my username DocumentRoot directory. And 
everything works. 


WebAppDeploy ROOT warpConnection /home/httpd/html/



On Wed, 20 Feb 2002 13:10:08 +0900
Moi [EMAIL PROTECTED] wrote:

 My wanted configure is as follows:
 
 Apache   listens port 80 (IP : xxx.xxx.xxx.1)
 Javaservlet  listens port 80 (IP : xxx.xxx.xxx.2)
 
 
 The question is :
 Is it possible to configure Apache,Tomcat4 to run separately
 on the different IP listening the same port 80 if so how?
 
 
 
 --
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




web hosting companies

2002-02-20 Thread chad kellerman

Hello,

Does anyone now of any good webhosting companies that support tomcat?


Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: I'll nearly gave up!!!

2002-02-20 Thread chad kellerman

Let me see your Virtual Hosts section in the httpd.conf file.

There might be something funky there.

chad

On Wed, 20 Feb 2002 11:15:20 -0500
Frank [EMAIL PROTECTED] wrote:

 Hey thanks.  This helped me tweak my setup and get rid of the 
 badhostname error.  This works, but only locally.  The other machines 
 cannot use http://Mendelsohn/examples/; but 
 http://Mendelsohn:8080/examples; works fine.
 
 
 chad kellerman wrote:
 
  Ok, but don't quote me on this.  I have been trying to do the same thing.  The 
documentation seems vague when it comes to Virtual Hosts and Tomcat 4.0.  
  
  
  It also seems that a few people have this working but are not sure whether its 
right or not.  It stemms from lots of trial and error.  But any way here is what I 
have got so far.  I am not finished, it is still a work in progress.
  
  
  I am running Apache 1.3 with Tomcat 4 on a redhat 6.2 box ( but should apply to 
win32)
  
  
Ok tomcat in installed in /usr/local/jakarta-tomcat/.  I have not changed the 
directory structure so I still have a dist/ directory which holds the logs/ bin/ 
conf/ and what not.
  
Since it's redhat httpd.conf is in /etc/httpd/conf/httpd.conf.  I have it set 
that every virtual hosts has a different ip address and dns.  I have only two Virtual 
hosts set up right now.  The actual host box, and virtual domain.
  
 I have not touched the server.xml file or the web.xml file. ( I have not gotten 
that far yet).  But what I do have enable the host box to have jsp and servlets 
working as well as the virtual host.
  
 Here is what I have in the httpd.conf file:
  
  
  
  ###Tomcat installation
  LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp jakarta.alabanza.com:8008
  WebAppDeploy ROOT warpConnection /home/httpd/html/
  WebAppDeploy examples warpConnection /examples/
  ###
  
   
  #VirtualHost host.some_domain.com
  #ServerAdmin [EMAIL PROTECTED]
  #DocumentRoot /www/docs/host.some_domain.com
  #ServerName host.some_domain.com
  #ErrorLog logs/host.some_domain.com-error_log
  #TransferLog logs/host.some_domain.com-access_log
  #/VirtualHost
  
  
  VirtualHost jakarta.gotc.net
  User jak
  Group jakartagrp
  ServerName jakarta.gotc.net
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/jak/jakarta-www
  TransferLog /home/jak/jakarta-logs/access-log
  ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
  WebAppConnection apoWarpConn warp jakarta.gotc.net:8015
  #WebAppDeploymyapp   apoWarpConn 
  #WebAppDeploymanager apoWarpConn /manager/
  WebAppDeploy examples warpConnection /examples/
  /VirtualHost
  
  #
  
 There is a couple things to take note here.  First I am not an expert, this 
works.  If anyone can offer any other suggestions to make this smoother let me know.
  
  Second,  you have to have the Tomcat Installation section below where you have 
the ServerName set for the host box.  The configtest fails everytime and apache won't 
start without it.  THe same goes in the virtual host section.  The WebAppConnection 
line has to go below the ServerName.  Give a bad hostname error.
  
  Third,  make sure you kill apache completely dead as well as tomcat.  It seems 
tomcat takes a good 15-30 seconds to shutdown when you issue the shutdown.sh script.  
After everything is shutdown completely, start tomcat first then apache.
  
  If you get the 404 error page ( with some funky error about a line in a web app 
deploy file) you started httpd before tomcat.  SHut them all done and restart.
  
Liek I said I am working on the server.xml and the web.xml.  So far this does 
work, but there a a few things not right.  Such as logs, and the {TOMACAT_HOME}/work 
dierctory still holds information about the virtual hosts.  Such as sessions id and 
what not.  THis can't be good.  I think this is a big security risk with my 
configuration.  I am working on it.  When I get the server.xml and web.xnml working 
for virtual hosts I will let you know.  I hope you will do the same.
  
  Please, anyone have any comments let me know.
  
  Chad 
  
  I copied the {TOMCAT_HOME}webapps/examples to my username DocumentRoot directory. 
And everything works. 
  
  
  WebAppDeploy ROOT warpConnection /home/httpd/html/
  
  
  
  On Wed, 20 Feb 2002 13:10:08 +0900
  Moi [EMAIL PROTECTED] wrote:
  
  
 My wanted configure is as follows:
 
 Apache   listens port 80 (IP : xxx.xxx.xxx.1)
 Javaservlet  listens port 80 (IP : xxx.xxx.xxx.2)
 
 
 The question is :
 Is it possible to configure Apache,Tomcat4 to run separately
 on the different IP listening the same port 80 if so how?
 
 
 
 --
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED

one more question on server.xml Host section

2002-02-20 Thread chad kellerman

I almost got it.  I think.

I am using apache 1.3 webapp and tomcat 4.

My virtaul host sectionis configured like this:

VirtualHost jakarta.gotc.net
User jak
Group jakartagrp
ServerName jakarta.gotc.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
WebAppConnection apoWarpConn warp jakarta.gotc.net:8015
#WebAppDeploy examples warpConnection /examples/
/VirtualHost

I put a host section in the server.xml section that looks like this:

Host name=jakarta.gotc.net debug=0 appBase/home/jak/jakarta-www/webapps 
unpackWARS=true

!-- Access log directive
--
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/jak/jakarta-logs prefix=tomcat-access-logs 
suffix=.txt
pattern=common /

!-- Context log directive.  Can be commented out.
--
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/jak/jakarta-logs prefix=tomcat-logs. suffix=.txt 
timestamp=true/

!-- Additional Context directives.  Adds funtionality to appBase
--
!-- Tomcat Manager Context --
Context path=/home/jak/jakarta-www/webapps/manager docBase=manager
debug=0 privileged=true/

!-- Tomcat Examples Context and Logging info --
Context path=/home/jak/jakarta-www/webapps/examples docBase=examples 
debug=0 reloadable=true/
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/jak/jakarta-logs prefix=examples-logs. 
suffix=.txt timestamp=true/
/Host 


  When I start up tomcat the service starts.  But when I start apache the java 
daemon dies completely.  If I do a shutdown I get the xml parser error that says:

rg.xml.sax.SAXParseException: Attribute name Host must be followed by the '=' 
character.

  I followed the documentation in creating the host section.  Am I missing something?

  I put that Host section right after the original Host section in the default 
server.xml file.  The tags look alright, I thought.

  I am almost done with Virtual hosts.  Any help would be greatly appreciated.  And 
for those plugging away at virtual hosts and tomcat I have this all documented I would 
be more then happy to send you a copy.

Thansk for all the help.

Chad


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Starting Tomcat 4.0.2 with Apache 1.3.23 using J2SDK 1.3.1

2002-02-20 Thread chad kellerman

I can offer a little help.

What os are you running?  If you are on a unix ( which it looks like) variation run ps 
-ef | grep java.  
If it reurns something your are running.  If not there is something else wrong.  Send 
in the output of the startup.sh

Did k the logs? I think cataline.out  will give you the errors.

What does you httpd.conf look like??  Is apache running??

How are you calling your domain?

Give a little info

chad

On Wed, 20 Feb 2002 13:09:11 -0600
Dieter Lunn [EMAIL PROTECTED] wrote:

 I still haven't solved my little dilemma
 
 On February 19, 2002 03:04 pm, you wrote:
  I am having trouble starting Tomcat.  I run the startup.sh script and it
  displays the vars but when I try and connect it isn't running.  I can get
  it started by running catalina.sh debug but I don't want to run it like
  that.
 
  I would like any help that can be offered. Thanks
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: one more question on server.xml Host section

2002-02-20 Thread chad kellerman


Never mind.  I got it.


On Wed, 20 Feb 2002 13:48:32 -0500
chad kellerman [EMAIL PROTECTED] wrote:

 I almost got it.  I think.
 
 I am using apache 1.3 webapp and tomcat 4.
 
 My virtaul host sectionis configured like this:
 
 VirtualHost jakarta.gotc.net
 User jak
 Group jakartagrp
 ServerName jakarta.gotc.net
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/jak/jakarta-www
 TransferLog /home/jak/jakarta-logs/access-log
 ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
 WebAppConnection apoWarpConn warp jakarta.gotc.net:8015
 #WebAppDeploy examples warpConnection /examples/
 /VirtualHost
 
 I put a host section in the server.xml section that looks like this:
 
 Host name=jakarta.gotc.net debug=0 appBase/home/jak/jakarta-www/webapps 
unpackWARS=true
 
   !-- Access log directive
   --
   Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/home/jak/jakarta-logs prefix=tomcat-access-logs 
suffix=.txt
   pattern=common /
 
   !-- Context log directive.  Can be commented out.
   --
   Logger className=org.apache.catalina.logger.FileLogger
   directory=/home/jak/jakarta-logs prefix=tomcat-logs. suffix=.txt 
timestamp=true/
   
   !-- Additional Context directives.  Adds funtionality to appBase
   --
   !-- Tomcat Manager Context --
   Context path=/home/jak/jakarta-www/webapps/manager docBase=manager
   debug=0 privileged=true/
 
   !-- Tomcat Examples Context and Logging info --
   Context path=/home/jak/jakarta-www/webapps/examples docBase=examples 
debug=0 reloadable=true/
   Logger className=org.apache.catalina.logger.FileLogger
   directory=/home/jak/jakarta-logs prefix=examples-logs. 
suffix=.txt timestamp=true/
 /Host 
 
 
   When I start up tomcat the service starts.  But when I start apache the java 
daemon dies completely.  If I do a shutdown I get the xml parser error that says:
 
 rg.xml.sax.SAXParseException: Attribute name Host must be followed by the '=' 
character.
 
   I followed the documentation in creating the host section.  Am I missing something?
 
   I put that Host section right after the original Host section in the default 
server.xml file.  The tags look alright, I thought.
 
   I am almost done with Virtual hosts.  Any help would be greatly appreciated.  And 
for those plugging away at virtual hosts and tomcat I have this all documented I 
would be more then happy to send you a copy.
 
 Thansk for all the help.
 
 Chad
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Yet another webapp connector Paache 1.3 question

2002-02-19 Thread chad kellerman

Hey guys,

I think I have a a config file set wrong somewhere and I was hoping to get a 
little help.

Here is what I have got:  Apache 1.3.20 with tomcat 4 on a redhat 6.2 box.  I am 
trying to get Virtual Hosts to work.

Here is where I am.

  I am trying to get virtual hosts to work. ( I almost have it).  Here is what I put 
in the httpd.conf:

LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp jakarta.domain.com:8008
WebAppDeploy examples warpConnection /examples/


   The problem i am having is that instead of the /examples being in my Document Root 
the examples is being called from {TOMCAT_HOME}/work/jakarta.domain.com/examples

Since my TOMCAT_HOME is in /usr/local/ I would rather have the examples directory 
located in /home/$username/www/  which I set as Document Root.


  I think i am missing something from server.xml but I am not sure.

Can anyone offer any suggestions??

Thanks,
Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




keytool -keygen questions

2002-02-07 Thread chad kellerman

Hello again,

  Ok this may sound like a dumb questions.  But I have been all thru the 
directories and can not find it.

 I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen -alias tomcat 
-keyalg RSA

 Where did it put the cert and key??  What is it called?  I checked in the normal 
locations and it not there???

THanks for the help,

Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




I'm stuck. Apache-tom4.0 virtual hosts

2002-02-07 Thread chad kellerman

Hey guys,

I am stuck again.  This time with the virtual host section in apache.  Here is 
what I got:

 VirtualHost jakarta.domain.com
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/
User jak
Group jakartagrp
ServerName jakarta.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
/VirtualHost

an /etc/httpd/bin/apachectl configtest says it does not like

WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/


  I am trying to get tomcat working with multiple virtual hosts.

I have the module loading fine.  But I haven't found how to configure httpd.conf for 
tomcat as well as the server.xml file.

 Anyone get this working properly?  I on red hat.  But I would think the config 
should be similar on other os's..

Thanks for the info,

Chad



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: servlet.jar and 3.3

2002-02-07 Thread chad kellerman

Mario,

I had sort of the same problem yesterday.  Make sure your CLASSPATH is set 
correctly.

   For linux I put the CLASSPATH in /etc/profile and exported it and everything lit 
up.
   I am not sure about windows???

Chad

On Thu, 07 Feb 2002 14:44:55 -0600
Mario Felarca [EMAIL PROTECTED] wrote:

 Hello,
 
 I had a quick question. We are migrating to Tomcat 3.3a and for some reason 
 my servlets can't seem to see the servlet.jar, even though it is in the 
 lib/common directory.
 
 I am sure it is probably just a small configuration error on my part, but 
 from the Tomcat Users Guide, it appears to me that the Webapp and 
 Application classloaders should be able to see the Common classloader.
 
 If anyone has seen this and could help me out, or if could point me in the 
 right direction for the information, I would appreciate it.
 
 Thanks in advance,
 
 Mario-
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




SendMailServlet.class

2002-02-06 Thread chad kellerman

Hello again,

 I finally got Tomcat and Apache running smoothly. ( well almost).  I  was going 
thru the examples, everyone worked except one.  The mail.  Looking into the problem I 
noticed that the SendMailServlet.class file was not created in 
/usr/local/jakarta-tomcat-4.0/dist/webapps/examples/WEB-INF/classes/

So I decided to try and create it manually.

Here is what I did:

javac SendMailServlet.java

Here is the output:

SendMailServlet.java:1: error:Cannot find type javax/mail/Message

Has anyone seen this?  Has anyone else fixed this?  I am wondering if I missed 
something in my build.properties file when I compiled tomcat  Any suggestion would 
be appreciated.

Thanks again,
Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: SendMailServlet.class

2002-02-06 Thread chad kellerman

Sorry to have to write again but I am lost.  I set the CLASS_PATH.  That did not work, 
I downloaded the javamail, and moved allthe jar file to 
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have done it.  But not.

Still same error.  I open up SendMailServlet.java and looked:


import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

I have everything but the javax.mail.*.  Is there another package that I might be 
missing.  

That again for all the help...

Chad



On Wed, 6 Feb 2002 13:44:27 - 
Mark Meany [EMAIL PROTECTED] wrote:

  SendMailServlet.java:1: error:Cannot find type javax/mail/Message
 
 Try downloading the Sun JavaMail API and putting the jars somewhere visible
 to your application. All should be Ok after this.
 
 http://java.sun.com/products/javamail/index.html
 
 M.
 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: SendMailServlet.class

2002-02-06 Thread chad kellerman

Boy, ever had on of those days.


  I was using the wrong javac.  Not the one with the JDK.

I used the correct one and now I am getting 


SendMailServlet.java:7: cannot resolve symbol
symbol  : class Message  
location: package mail
import javax.mail.Message;

For just about every import.

  I think I am going to call it a day. Atleast, with this part, and work on the SSL 
bit.  There seems to be a lot of info coming thru the past week about SSL.

Thanks for all the help.

Chad


On Wed, 6 Feb 2002 16:17:58 +0100
Michel [EMAIL PROTECTED] wrote:

 I believe you also need the activation.jar from Sun? Did you get that?
 
 gr. Michel
 
  -Original Message-
  From: chad kellerman [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 06, 2002 16:09
  To: Tomcat Users List
  Subject: Re: SendMailServlet.class
  
  
  Sorry to have to write again but I am lost.  I set the 
  CLASS_PATH.  That did not work, I downloaded the javamail, and 
  moved allthe jar file to 
  /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have 
  done it.  But not.
  
  Still same error.  I open up SendMailServlet.java and looked:
  
  
  import java.io.IOException;
  import java.io.PrintWriter;
  import javax.mail.Message;
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.internet.InternetAddress;
  import javax.mail.internet.MimeMessage;
  import javax.naming.Context;
  import javax.naming.InitialContext;
  import javax.servlet.RequestDispatcher;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  I have everything but the javax.mail.*.  Is there another 
  package that I might be missing.  
  
  That again for all the help...
  
  Chad
  
  
  
  On Wed, 6 Feb 2002 13:44:27 - 
  Mark Meany [EMAIL PROTECTED] wrote:
  
SendMailServlet.java:1: error:Cannot find type javax/mail/Message
   
   Try downloading the Sun JavaMail API and putting the jars 
  somewhere visible
   to your application. All should be Ok after this.
   
   http://java.sun.com/products/javamail/index.html
   
   M.
   
   
   
   
   ***
   For more information on Ordnance Survey products and services,
   visit our web site at http://www.ordnancesurvey.co.uk
   ***
   
   
   
   
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: SendMailServlet.class

2002-02-06 Thread chad kellerman

Nancy,

   Actually, for some reason when I ran, ant dist, all the class files were created 
except the class file for  SendMailServlet.java.  I tried the create the class file by 
hand and that's where I ran into trouble

  I have tried a few things.  I am thinking I am going to keep at it today.  When I 
get it I'll post it.

  As always, If anyone gets it let us know.


CHad


On Wed, 06 Feb 2002 10:01:36 -0600
Nancy Crisostomo Martinez [EMAIL PROTECTED] wrote:

 Chad,
 Although I have added the activation, mail and pop3 JAR files to the CLASSPATH, 
TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, $TOMCAT_HOME/webapps/app/WEB-INF/lib I
 could run my application, but when I press a button to send the mail,  I got an 
error message on the console and the mail is not sended... I think the wrong thing
 is the Tomcat configuration, isn't it? and not the libraries you need.
 
 The error is the follow:
 javax.mail.NoSuchProviderException: No provider for Address type: 
rfc822
 
 Has anyone seen this?
 Could anyone else fixed this?
 
 Nancy.
 
 
 
 
 chad kellerman wrote:
 
  Boy, ever had on of those days.
 
I was using the wrong javac.  Not the one with the JDK.
 
  I used the correct one and now I am getting
 
  SendMailServlet.java:7: cannot resolve symbol
  symbol  : class Message
  location: package mail
  import javax.mail.Message;
 
  For just about every import.
 
I think I am going to call it a day. Atleast, with this part, and work on the 
SSL bit.  There seems to be a lot of info coming thru the past week about SSL.
 
  Thanks for all the help.
 
  Chad
 
  On Wed, 6 Feb 2002 16:17:58 +0100
  Michel [EMAIL PROTECTED] wrote:
 
   I believe you also need the activation.jar from Sun? Did you get that?
  
   gr. Michel
  
-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 16:09
To: Tomcat Users List
Subject: Re: SendMailServlet.class
   
   
Sorry to have to write again but I am lost.  I set the
CLASS_PATH.  That did not work, I downloaded the javamail, and
moved allthe jar file to
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have
done it.  But not.
   
Still same error.  I open up SendMailServlet.java and looked:
   
   
import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
   
I have everything but the javax.mail.*.  Is there another
package that I might be missing.
   
That again for all the help...
   
Chad
   
   
   
On Wed, 6 Feb 2002 13:44:27 -
Mark Meany [EMAIL PROTECTED] wrote:
   
  SendMailServlet.java:1: error:Cannot find type javax/mail/Message

 Try downloading the Sun JavaMail API and putting the jars
somewhere visible
 to your application. All should be Ok after this.

 http://java.sun.com/products/javamail/index.html

 M.




 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

   
--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
   
   
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: SendMailServlet.class

2002-02-06 Thread chad kellerman

Ok,

Got it.  Geesh, computers really get on my nerves.  ;^)

I saw that SendMailServlet.java needed two jar files to compile.  And since no matter 
what I did to set the CLASS_PATH it would not work. So I added the jar files in the 
line:

/usr/java/jdk1.3.1_01/bin/javac -classpath 
../../../../common/lib/mail.jar:../../../../common/lib/servlet.jar SendMailServlet.java

THis is on Linux, I think windows needs a ; instead of a :

I hope this helps everyone.  Now on the SSL.

Chad



My other computer is your linux box.



On Wed, 6 Feb 2002 17:14:31 +0100
Ralph Einfeldt [EMAIL PROTECTED] wrote:

 That not his problem, he can't even compile the classes.
 
 Saw your previous posts, but I can't help you as we didn't 
 have any problems with JavaMail.
 
  -Ursprüngliche Nachricht-
  Von: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 6. Februar 2002 17:02
  An: Tomcat Users List
  Betreff: Re: SendMailServlet.class
 snip/
  Although I have added the activation, mail and pop3 JAR files 
  to the CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, 
  $TOMCAT_HOME/webapps/app/WEB-INF/lib I
  could run my application, but when I press a button to send 
  the mail,  I got an error message on the console and the mail 
  is not sended... I think the wrong thing
  is the Tomcat configuration, isn't it? and not the libraries you need.
  
  The error is the follow:
  javax.mail.NoSuchProviderException: No 
  provider for Address type: rfc822
 snip/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




error message

2002-01-31 Thread chad kellerman

Hey guys,

   I think I just build Tomcat 4 on a Red HAt 6.2 server.  But after I
ran 

$ ant dist

it did not create a dist directory, it created a build directory inside
the catalina directory.  Is this suppose to happen?

I went to {$CATALINA}/bin and ran 

$ ./startup

  It did not start.  There was a catalina.out log file which said:

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap

Can anyone help me with this?

Thanks,

Chad





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JDBC driver

2002-01-30 Thread chad kellerman

Ok,

   So this may be a stupid question.  Would it be better to set the
CLASSPATH in /etc/profile or ( since bash is the default shell) in
/home/$user/.bash_profile?

   And would it be a good idea to create a directory called classes in
the jdk directory and place the jar file there and have that be the
CLASSPATH?  For Virtual Hosts?

   I am kinda new to java and CLASSPATH's.  Thanks for all the help.  I
really appreciate it.

Chad


On Tue, 2002-01-29 at 20:13, McLaughlin, Jim wrote:
 You could also put it in your 'webapps/YOUR_WEBAPP/WEB_INF/lib' if you don't
 want to muck up you classpath
 
  I think you can just put it anywhere as long as the pathname is in your
  CLASSPATH setting. E.g. CLASSPATH=/path/to/jar_file.jar
 
  :~)
  Ricky Y. Artigas
  Database Administrator /
  Analyst/Programmer
  Information Technology Division
  Easycall Communications Phils., Inc.
  ---
  IMPORTANT NOTICE:
 
  This message (and any attachment hereto) may contain privileged and/or
  confidential information specific to EasyCall. If you are not the
  intended addressee indicated in this message, you may not copy or
  disseminate this message (or any attachment hereto) to anyone.
  Instead, please destroy this message (and any attachment hereto), and
  kindly notify the sender by reply email. Any information in this
  message (and any attachment thereto) that do not relate to the
  official business of EasyCall shall be understood as neither given nor
  endorsed by the company.
 
 
  -Original Message-
  From:  chad kellerman [SMTP:[EMAIL PROTECTED]]
  Sent:  Wednesday, January 30, 2002 3:14 AM
  To:Tomcat
  Subject:   JDBC driver
 
  Hey Guys,
 
  Hello to you all.  I am trying to install the Tomcat with
  apache1.3.22.  I have to admin the installation overview on
 
 
  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/BUILDING.txt
 
  needs a little work.  I am working on on part 8.  Download and Install
  JDBC Optional Package API Binary Distribituion.  Here is what it says
 
 
  8.  Download and Install JDBC Optional Package API Binary Distribution
 
  * Download the JDBC Optional Pacakge API package (version 2.0) from:
 
  http://java.sun.com/products/jdbc/download.html
 
  * Place the jar in a convenient location.
 
 
  The problem I have is * Place the jar in a convenient location..  I
  think this is a little obscure.  Actaully kind of funny.
 
 Getting to the point.  Anyone have any recommendations on where to
  put this on a redhat6.2 box?
 
  THanks,
  Chad
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 -- 
 Jim McLaughlin
 Software Engineer
 Stonewater Software
 email: [EMAIL PROTECTED]
 Phone: 847.864.1060 x107
 Fax  : 847.864.1238
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JDBC driver

2002-01-29 Thread chad kellerman

Hey Guys,

Hello to you all.  I am trying to install the Tomcat with
apache1.3.22.  I have to admin the installation overview on 


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/BUILDING.txt

needs a little work.  I am working on on part 8.  Download and Install
JDBC Optional Package API Binary Distribituion.  Here is what it says


8.  Download and Install JDBC Optional Package API Binary Distribution

* Download the JDBC Optional Pacakge API package (version 2.0) from:

http://java.sun.com/products/jdbc/download.html

* Place the jar in a convenient location.


The problem I have is * Place the jar in a convenient location..  I
think this is a little obscure.  Actaully kind of funny.  

   Getting to the point.  Anyone have any recommendations on where to
put this on a redhat6.2 box?

THanks,
Chad




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]