Re: Cartes Offertes

2001-05-19 Thread Valeriy Molyakov




Hi, Nikolas,
Ido not want to receive your announcements.
Thank's.

  - Original Message - 
  From: 
  Nicolas 
  Dulion 
  To: [EMAIL PROTECTED] 
  Sent: Friday, May 18, 2001 10:46 AM
  Subject: Cartes Offertes
  
  
  
  
  


  

Imprimerie - Objets Promotionnels - Vêtements 
Publicitaires

  
  

  OFFRE SPECIALE DE 
  LANCEMENT 
Réalisez vous même vôtre maquette sur le site Internet et recevez 
:
250 CARTES DE VISITE 
GRATUITES* ! 
Cartes 8,5x5,4 Recto quadrichromie (toutes couleurs) sur carton 
350g. CM.
(*) Participation aux frais de port 30 F. Offre réservée aux 
professionnels valable jusqu'au 31/05/2001, pour toute maquette réalisée 
sur Internet.1 lot de 250 cartes gratuites par société.


  
  

  DECOUVREZ sur 
  www.omnipub.net

  
  

  
Notre catalogue de supports publicitaires 
Le calcul de devis instantanement sur le site 
La réalisation et sauvegarde de vos MAQUETTES en 
ligne. 




Imprimerie - Objets Promotionnels - Vêtements 
Publicitaires
280, 
bis rue Roland Garros - Espace Fréjorgues Ouest - 34135 MauguioTél. 
04 99 13 63 33 - Fax. 04 67 65 03 06 - Mail : 
[EMAIL PROTECTED]
  


starting tomcat

2001-05-19 Thread Vasanth Krishnan Venkatachalam

Hi, I'm new to this list and tomcat. Right after installing it in unix, I
ran
startup.sh, and got the following error:

Starting tomcat. Check logs/tomcat.log for error messages
2001-05-18 11:35:36 - ContextManager: Adding context Ctx( /admin )
2001-05-18 11:35:36 - ContextManager: Adding context Ctx(  )
2001-05-18 11:35:36 - ContextManager: Adding context Ctx( /test )
FATAL: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, Compiled
Code)
at java.net.ServerSocket.init(ServerSocket.java, Compiled Code)
at java.net.ServerSocket.init(ServerSocket.java, Compil

Any suggestions on how to beat this?

Vasanth







Re: starting tomcat

2001-05-19 Thread Valeriy Molyakov

Hi,
by default Tomcat listen port 8080.
May be other application busy same port :)

- Original Message - 
From: Vasanth Krishnan Venkatachalam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 19, 2001 9:50 AM
Subject: starting tomcat


 Hi, I'm new to this list and tomcat. Right after installing it in unix, I
 ran
 startup.sh, and got the following error:
 
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-05-18 11:35:36 - ContextManager: Adding context Ctx( /admin )
 2001-05-18 11:35:36 - ContextManager: Adding context Ctx(  )
 2001-05-18 11:35:36 - ContextManager: Adding context Ctx( /test )
 FATAL: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, Compiled
 Code)
 at java.net.ServerSocket.init(ServerSocket.java, Compiled Code)
 at java.net.ServerSocket.init(ServerSocket.java, Compil
 
 Any suggestions on how to beat this?
 
 Vasanth
 
 
 




manager application bug

2001-05-19 Thread Ryan Kennedy

In reading up on the Tomcat Manager Application in the 4.0b5 release, it
mentions a bug that has been around since the milestone 2 release. The bug
has to do with loading/unloading/reloading of an application via a URL (it's
in the documentation for the manager application). Here is the full text of
the bug (in case noone has any idea of what I'm talking about):

WARNING - As of the Tomcat 4.0 milestone 2 release, there is a bug in the
operation of the deploy command that prevents deploying, undeploying, and
then redeploying an application from the same URL for a web application
archive (WAR) file. To work around this, either redeploy the application
from a different WAR file URL, or deploy from an unpacked directory (on the
same server that Tomcat is running on).

Are there any immediate plans to fix this bug?

Ryan




Subject: NoClassDefFoundError ServletException

2001-05-19 Thread mbe bem


Hi!
My name is Mbe, I did download jakarta-tomcat-4.0.b3 and
jakarta-servletapi-4.0.b3 and installed them in my nt4.0 workstation. 
I also installed jdk1.3 and set the variables and values as follows
Variable:   Values
TOMCAT_HOME D:\jakarta-tomcat-4.0-b3
JAVA_SERVLETAPI D:\jakarta-servletapi-4.0-b3
JAVA_HOME   D:\jdk1.3

I was able to start tomcat with startup, but trying to run java
programm  Dabe (with execute) at localhost:8080/examples/jsp I get the
following errors
Exception Report:
javax.servlet.ServletException: sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:439)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


and

Root Cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:268)


Am I missing anything?
How do I go about it?

Thanks in anticipation!


Mbe





CookieServlet giving a NullPointerException

2001-05-19 Thread John Sisk

Hi,

This is the start of the stacktrace I get when I try the Tomcat (v
4.0-b-5)CookieExample servlet. Worked fine on Tomcat 3.2 win98/win2k, broke
when I upgraded to 4.0. Has anyone else seen/fixed this before I start
digging?

A Servlet Exception Has Occurred
java.lang.NullPointerException
 at CookieExample.doGet(CookieExample.java:53)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

Regards
John Sisk


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




mapping servlets

2001-05-19 Thread Tim Arnold

Is it possible to execute a servlet off of anything that does not start
with
/servlet?

I want to start servlets off of:
http://www.domainname.com/bin/ServletName

Thanks for any help
Tim Arnold




Re: mapping servlets

2001-05-19 Thread Richard Draucker

Sure.  Set up a servlet context in the WEB-INF/web.xml
file.  Then, setup an alias (servlet mapping) to the alias
url you want to use. 

Example:
Servlet Context
servlet
servlet-namemyServletAlias/servlet-name
servlet-classmyServlet/servlet-class
/servlet

Servlet Mapping
servlet-mapping
servlet-namemyServletAlias/servlet-name
url-pattern/bin/ServletName/url-pattern
/servlet-mapping

This example will run 'myServlet' whenever the url
http://www.domainname.com/bin/ServletName is requested.

You can also append .html or whatever to the url-patterns
to get friendly urls like:
http://www.domainname.com/users/login.html

If you're using packages, remember to include the package
name with the servlet-class, e.g., Users.myServlet

-Richard


On Sat, 19 May 2001, you wrote:
 Is it possible to execute a servlet off of anything that does not start
 with
 /servlet?
 
 I want to start servlets off of:
 http://www.domainname.com/bin/ServletName
 
 Thanks for any help
 Tim Arnold
-- 
Richard Draucker,  [EMAIL PROTECTED]
Protected-Data.Com  www.protected-data.com
Remote data support for web developers.











web.xml layout

2001-05-19 Thread Richard Draucker

Does anyone know if it makes any difference whether I group
servlet contexts with servlet mappings or keep all contexts
together and below them keep all mappings together. 

Assuming the xml file is being processed by SAX, the
callback handling would make this irrelevant I would think.

Thoughts?

Thanks,
Richard










Re: starting tomcat

2001-05-19 Thread Mazur

I was running into this problem too, while using jdk1.2.2 and
Tomcat3.1.  If I shutdown Tomcat using shutdown.sh, the messages would
indicate that Tomcat was killed, but a look at my processes (ps -aux)
would say otherwise.  So I would have to kill -9 the top-most Tomcat
process before I could launch again using startup.sh.

All this changed by upgrading to jdk1.3 from Sun's site.  Both
shutdown.sh and startup.sh do what I expected now.

I don't know if this applies to you, or will help you.

Good luck,
Rob

p.s. And as another poster said, do check that nothing else is using
port 8080.

Vasanth Krishnan Venkatachalam wrote:
 
 Hi, I'm new to this list and tomcat. Right after installing it in unix, I
 ran
 startup.sh, and got the following error:
 
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-05-18 11:35:36 - ContextManager: Adding context Ctx( /admin )
 2001-05-18 11:35:36 - ContextManager: Adding context Ctx(  )
 2001-05-18 11:35:36 - ContextManager: Adding context Ctx( /test )
 FATAL: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, Compiled
 Code)
 at java.net.ServerSocket.init(ServerSocket.java, Compiled Code)
 at java.net.ServerSocket.init(ServerSocket.java, Compil
 
 Any suggestions on how to beat this?
 
 Vasanth



RE: web.xml layout

2001-05-19 Thread CPC Livelink Admin


I believe that the web.xml is parsed using the DTD, so rearranging the
elements will make it complain that the format of the file is incorrect.
Even if you find a container which lets you rearrange, the spec says you
should follow the DTD. So to be portable . . . .

Regards,
Paul


-Original Message-
From: Richard Draucker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 12:24 PM
To: [EMAIL PROTECTED]
Subject: web.xml layout


Does anyone know if it makes any difference whether I group
servlet contexts with servlet mappings or keep all contexts
together and below them keep all mappings together.

Assuming the xml file is being processed by SAX, the
callback handling would make this irrelevant I would think.

Thoughts?

Thanks,
Richard











RE: web.xml layout

2001-05-19 Thread Robert Petersen

It matters, and doesn't have to do with SAX vs. DOM, it's because
of the DTD - check out this bit of the DTD:
!ELEMENT web-app (icon?, display-name?, description?, distribut-able?,
context-param*, filter*, filter-mapping*, listener*, servlet*,
servlet-mapping*,
session-config?, mime-mapping*, welcome-file-list?, error-page*,
taglib*, resource-env-ref*, resource-ref*, security-constraint*,
login-config?,
security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

This says that the servlet-mapping tags must follow all of the servlet.
Basically the
tags must be in the order above.

- Robert Petersen
http://www.orangefood.com


-Original Message-
From: Richard Draucker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 9:24 AM
To: [EMAIL PROTECTED]
Subject: web.xml layout


Does anyone know if it makes any difference whether I group
servlet contexts with servlet mappings or keep all contexts
together and below them keep all mappings together.

Assuming the xml file is being processed by SAX, the
callback handling would make this irrelevant I would think.

Thoughts?

Thanks,
Richard











RE: web.xml layout

2001-05-19 Thread Milt Epstein


FWIW, I think Mike Slinn has put up a web.xml validator (and other
useful tools/documentation) at

http://tomcat.mslinn.com/


On Sat, 19 May 2001, Robert Petersen wrote:

 It matters, and doesn't have to do with SAX vs. DOM, it's because
 of the DTD - check out this bit of the DTD:
 !ELEMENT web-app (icon?, display-name?, description?, distribut-able?,
 context-param*, filter*, filter-mapping*, listener*, servlet*,
 servlet-mapping*,
 session-config?, mime-mapping*, welcome-file-list?, error-page*,
 taglib*, resource-env-ref*, resource-ref*, security-constraint*,
 login-config?,
 security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

 This says that the servlet-mapping tags must follow all of the servlet.
 Basically the
 tags must be in the order above.

 - Robert Petersen
 http://www.orangefood.com


 -Original Message-
 From: Richard Draucker [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 19, 2001 9:24 AM
 To: [EMAIL PROTECTED]
 Subject: web.xml layout


 Does anyone know if it makes any difference whether I group
 servlet contexts with servlet mappings or keep all contexts
 together and below them keep all mappings together.

 Assuming the xml file is being processed by SAX, the
 callback handling would make this irrelevant I would think.

 Thoughts?

 Thanks,
 Richard









Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: CookieServlet giving a NullPointerException

2001-05-19 Thread Bo Xu

John Sisk wrote:

 Hi,

 This is the start of the stacktrace I get when I try the Tomcat (v
 4.0-b-5)CookieExample servlet. Worked fine on Tomcat 3.2 win98/win2k, broke
 when I upgraded to 4.0. Has anyone else seen/fixed this before I start
 digging?

 A Servlet Exception Has Occurred
 java.lang.NullPointerException
  at CookieExample.doGet(CookieExample.java:53)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

 Regards
 John Sisk

Hi :-)  I am not sure, in  CookieExample.java from Tc4.0-b5:

 ...
Cookie[] cookies = request.getCookies();   //line52
if (cookies.length  0) {   //line53
 ...

so I think the reason  is:
 with some reason, cookies is null, so you got a NullPointerException.


Bo
may.19, 2001







Complete credentials

2001-05-19 Thread Andrew



 Hi,where I can find out 
user password for user from request.getRemoteUser()?
Thanks.


Architectural question for tomcat-apache running Virtual Hosts

2001-05-19 Thread Brandon Cruz



I have an apache-tomcat 
configuration running on Linux servers. Does anyone have any experience or 
know if there is a limit to how many virtual hosts youshould set up on one 
instance of tomcat? What is the most traffic or connection limit before I 
should either use another instance of tomcat or use an entirely new 
server? How can I track the status of everything to see when we are 
getting too busy? Is there a good software I can use? Maybe even 
some basic Linux commands on Linux I can use to keep track of things? I am 
pretty new to these types of issues, if anyone can provide some insight or tell 
me where to look to do a little research on this topic, I would greatly 
appreciate it! Thanks in 
advance...

Brandon 
Cruz


How to embed Tomcat into an existing application OR how to use EmbededTomcat - Class

2001-05-19 Thread Matthias Schiffer



Hi!

I have developed an application which runs with the 
jo!-server at the moment, now I want to replace it with the embeded Tomcat, but 
i don't really know how!!! Can someone write me a short explanation how to embed 
Tomcat into my application? Below you can see what i have tried to embed, but 
this does not work and additional: i know that the src is not complete but some 
additional things are missing, please write which ones that are. Thank you very 
much!

Source code:

public static void main( String[] args) throws 
ServerException {ContextManager cm = new 
ContextManager();WebXmlReader xml = new WebXmlReader();EmbededTomcat et 
= new EmbededTomcat();try 
{xml.engineInit(cm);}catch(TomcatException te) 
{System.out.println("Exception: " + te);}Context ctx = new 
Context();ctx.setContextManager(cm);cm.setTomcatHome("/home/matsch/synet/tomcat");xml.setContextManager(cm) 
;try {xml.contextInit(ctx);}catch(TomcatException te) 
{System.out.println("Exception: " +te);}AdminService admin = 
new AdminService();admin.setName( 
"AdminService");admin.start();}


RE: Tomcat 3.3 Milestone 3 - NOCLASSDEF

2001-05-19 Thread Mark Priatel

On another note, we're encountering another problem when running our webapps
under 3.3M3.

Specifically, when using the com.oreilly.servlet.MultipartRequest, it
generates a NoClassDefError for javax.servlet.ServletRequest 

How can this be?!  servlet.jar is obviously in the classpath. 

After reverting to 3.3M2 everything works fine.

Any suggestions??

-mark



Setting up Virtual Hosts

2001-05-19 Thread Glen Eustace

I am trying to establish a number of virtual hosts such that the majority 
of each site is serverd by Apache as usual but the .jsp pages are handled 
by hosts ../ in tomcat.

I have followed the varioss examples in the documentation, but am not 
having any success.  I would appreciate someone who has this working 
corresponding with me to help me work out what I am missing.

I have Apache 1.3.12, tomcat 3.2.1, mod_jk, jdk 1.3

I can not seem to set the docBase in the host context such that the 
tomcat process can find the existing files, which are in the respective 
users directories in /home.  I have tried the obvious /home/user and that 
doesn't work, which makes me wonder whether / is / or is somehow relative 
to the tomcat directories.

I am guessing I have made an assumption somewhere that is fundamentally 
incorrect as this is my first attempt at using tomcat.

Any help would be much appreciated.

Glen.
-- 
Glen Eustace,
GodZone Internet Services, a div. of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 5301
Tel/Fax: +64 6 357 8168, Mob: +64 21 424 015
E-mail: [EMAIL PROTECTED] Website: http://www.godzone.net.nz



Virtual hosts and individual webapps directories

2001-05-19 Thread Jonas Björnerstedt

Is there any way to configure Tomcat to have multiple webapps directories,
one for each user / virtual host? I want each user to have a webapps
directory where explicit specification of the context path is not necessary.
As it is, I have to enter a new Context path  entry in the Host name 
for every context a user has.

Jonas




[jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters

2001-05-19 Thread William C. Robertson

Hi,
My name is Bill Robertson.  I'm an ASP programmer who wants to migrate to
JSP.  I'm having a little trouble getting a worker to work for me though.
It's frustrating because I think I'm close.

Under IIS, I have tomcat started without error (startup.bat), and I have a
Jakarta virtual directory running, and I registered the redirector (I have a
green up arrow).

Im at http://192.168.100.253/webapps/root/examples/jsp/

The page returns:

The specified module could not be found.

and the isapi.log has

[jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters.

I hope it's somthing simple.  Any help you could offer it MAXIMALLY
appreciated!




Problems with 3.2.1 Just Dying

2001-05-19 Thread Hunter Hillegas

I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux
2.4.4/Apache 1.3.19. After a few days of serving up the hits very well,
Tomcat just dies. It won't respond to shutdown requests and stops serving
pages, giving out only null pointer exceptions. Killing the java processes
manually and restarting Tomcat clears it up.

Anyone else seen this? Any idea how to work around it?

Hunter




Redhat 7.1 ApacheTomcat How-to (long)

2001-05-19 Thread Neil Jolly

I've finally managed to get apache/tomcat running successfully  on a redhat 
7.1 box (with stock kernel). Since I've seen several posts asking about this 
so I'll post a quick how-to.

Install Sun's JavaTM 2 Standard Edition, 1.3.1 RC2 
from: http://java.sun.com/j2se/1.3/download-linux.html

Install tomcat (I used Jakarta-Tomcat 3.2.1) 
Setup your classpaths, and environment in /etc/profile
Here's mine:
#Java Environment
JAVA_HOME=/usr/local/java
export JAVA_HOME

#Tomcat Environment
TOMCAT_HOME=/usr/local/tomcat
export TOMCAT_HOME

#Set Classpaths for java servlets
CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$JAVA_HOME/lib/:$TOMCAT_HOME/lib:$TOMCAT_HOME/classes:.
export CLASSPATH

Create a directory named classes in your $TOMCAT_HOME directory

Copy $JAVA_HOME/lib/tools.jar to $TOMCAT_HOME/classes

Change to the $TOMCAT_HOME/classes directory

Expand with the command jar xvf tools.jar

Make sure you've added $TOMCAT_HOME/classes to you classpath as I did above

You should be able to start tomcat as a stand alone server at this point by 
running the startup.sh script in $TOMCAT_HOME/bin

Test the server by connecting to http://localhost:8080

Shutdown tomcat using the $TOMCAT_HOME/bin/shutdown.sh script

If all works well all that remains is to integrate apache and tomcat
( if not figure out whats wrong with these directions ;-0 )

Shutdown Apache

Follow the instructions at: 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

The only place I deviated from the instructions was:
Move the original $TOMCAT_HOME/conf/mod_jk.conf to 
$TOMCAT_HOME/conf/mod_jk.conf-orig as a backup

Copy $TOMCAT_HOME/conf/mod_jk.conf -auto to $TOMCAT_HOME/conf/mod_jk.conf 

Change the line -- LoadModule jk_module libexec/mod_jk.so 
to read -- LoadModule jk_module /usr/lib/apache/mod_jk.so ( or wherever you 
put it!)

Add the following to your /etc/httpd/conf/httpd.conf:
###
#   #
#   Tomcat support  #
###

Include /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf

I also changed /etc/rc.d/init.d/httpd to start tomcat as well. Here's my 
script:
#!/bin/bash
#
# Startup script for the Apache Web Server
# Modified to start apache with tomcat
# by Neil Jolly [EMAIL PROTECTED]
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#  HTML files and CGI.
# processname: httpd
# pidfile: /var/run/httpd.pid
# config: /etc/httpd/conf/access.conf
# config: /etc/httpd/conf/httpd.conf
# config: /etc/httpd/conf/srm.conf

# Set path for java and tomcat

#Java Environment
JAVA_HOME=/usr/local/java
export JAVA_HOME

#Tomcat Environment
TOMCAT_HOME=/usr/local/tomcat
export TOMCAT_HOME
CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$JAVA_HOME/lib/:$TOMCAT_HOME/lib:$TOMCAT_HOME/classes:.
export CLASSPATH

# Source function library.
. /etc/rc.d/init.d/functions

# This will prevent initlog from swallowing up a pass-phrase prompt.
INITLOG_ARGS=

# Source additional OPTIONS if we have them.
if [ -f /etc/sysconfig/apache ] ; then
. /etc/sysconfig/apache
fi

# Path to the httpd binary.
httpd=/usr/sbin/httpd
prog=httpd
RETVAL=0

# Change the major functions into functions.
moduleargs() {
moduledir=/usr/lib/apache
moduleargs=`
/usr/bin/find ${moduledir} -type f -perm -0100 -name *.so | awk '{\
gsub(.*/,);\
gsub(^mod_,);\
gsub(^lib,);\
gsub(\.so$,);\
print -DHAVE_ toupper($0)}'`
echo ${moduleargs}
}
start() {
echo -n $Starting $prog: 
/usr/local/tomcat/bin/startup.sh
daemon $httpd `moduleargs` $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ]  touch /var/lock/subsys/httpd
return $RETVAL
}
stop() {
echo -n $Stopping $prog: 
/usr/local/tomcat/bin/shutdown.sh
killproc $httpd
RETVAL=$?
echo
[ $RETVAL = 0 ]  rm -f /var/lock/subsys/httpd /var/run/httpd.pid
}

# See how we were called.
case $1 in
  start)
start
;;
  stop)
stop
;;
  status)
status $httpd
;;
  restart)
stop
start
;;
  reload)
echo -n $Reloading $prog: 
killproc $httpd -HUP
RETVAL=$?
echo
;;
  condrestart)
if [ -f /var/run/httpd.pid ] ; then
stop
start
fi
;;
  *)
echo $Usage: $prog {start|stop|restart|reload|condrestart|status}
exit 1
esac

exit $RETVAL


Restart your new integrated apache/tomcat server with /etc/rc.d/init.d/httpd 
start

Test your new server with your browser by accessing http://localhost/examples 
and running some of the jsp scripts and servlets.

Sorry for the long post, but hope it's 

Re: Setting up Virtual Hosts

2001-05-19 Thread Jeff Kilbride

Post the relevant pieces of your apache config and server.xml.

Thanks,
--jeff

- Original Message -
From: Glen Eustace [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 19, 2001 2:31 PM
Subject: Setting up Virtual Hosts


 I am trying to establish a number of virtual hosts such that the majority
 of each site is serverd by Apache as usual but the .jsp pages are handled
 by hosts ../ in tomcat.

 I have followed the varioss examples in the documentation, but am not
 having any success.  I would appreciate someone who has this working
 corresponding with me to help me work out what I am missing.

 I have Apache 1.3.12, tomcat 3.2.1, mod_jk, jdk 1.3

 I can not seem to set the docBase in the host context such that the
 tomcat process can find the existing files, which are in the respective
 users directories in /home.  I have tried the obvious /home/user and that
 doesn't work, which makes me wonder whether / is / or is somehow relative
 to the tomcat directories.

 I am guessing I have made an assumption somewhere that is fundamentally
 incorrect as this is my first attempt at using tomcat.

 Any help would be much appreciated.

 Glen.
 --
 Glen Eustace,
 GodZone Internet Services, a div. of AGRE Enterprises Ltd.,
 P.O. Box 8020, Palmerston North, New Zealand 5301
 Tel/Fax: +64 6 357 8168, Mob: +64 21 424 015
 E-mail: [EMAIL PROTECTED] Website: http://www.godzone.net.nz





Re: Setting up Virtual Hosts

2001-05-19 Thread Glen Eustace

As requested, here are the respective configs. I still think there is 
something fundamental that I have missed. :-)


Apache.conf
NB: I have tried with and without the explicit KnMount in the VirtualHost 
definition.

# 

# mod jk configuration
# 

IfModule mod_jk.c
   JkWorkersFile   /usr/local/tomcat/conf/workers.properties
   JkLogFile   /usr/local/tomcat/logs/mod_jk.log
   JkLogLevel  error
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
/IfModule  


VirtualHost 210.55.214.169
   ServerAdmin [EMAIL PROTECTED]
   ServerName www-dev.godzone.net.nz
   DocumentRoot /home/GodZone
   SetEnv isDevelopment 1

   RewriteEngine on
   RewriteRule (^.+)/gzlogo\.gif$ $1/gzlogo_dev.gif [P]
   JkMount /*.jsp ajp13
/VirtualHost

I added the following definition to server.xml

Host name=www-dev.godzone.net.nz 
   Context path=
debug=2
docBase=/home/GodZone /
/Host 

I get the following in the tomcat.log

2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /examples )
2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /admin )
2001-05-20 01:05:29 - Ctx(  ): Set debug to 2
2001-05-20 01:05:29 - ContextManager: Adding context Ctx( 
www-dev.godzone.net.nz: )
2001-05-20 01:05:29 - ContextManager: Adding context Ctx(  )
2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /test )
2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /GodZone )
2001-05-20 01:05:30 - Ctx( www-dev.godzone.net.nz: ): XmlReader - init   
/home/GodZone
2001-05-20 01:05:30 - Ctx( www-dev.godzone.net.nz: ): Loading -2147483646 
jsp
2001-05-20 01:05:30 - PoolTcpConnector: Starting Ajp12ConnectionHandler 
on 8007
2001-05-20 01:05:31 - PoolTcpConnector: Starting Ajp13ConnectionHandler 
on 8009
2001-05-20 01:05:57 - Ctx( www-dev.godzone.net.nz: ): 404 R(  + 
/dates.jsp + null) JSP file not found

when I try to access http://www-dev.godzone.net.nz/dates.jsp

which definitinetly exists
T2.(agree-6)conf: la /home/GodZone/date.jsp
-rw-r--r--1 geustace gzsys1043 May 17 19:25 
/home/GodZone/date.jsp




Re: mapping servlets

2001-05-19 Thread Tim Arnold

thanks alot!

Actually the way I got this to work was to change the url-pattern below to
this:
url-pattern/ServletName/url-pattern

instead of
url-pattern/bin/ServletName/url-pattern

Richard Draucker wrote:

 Sure.  Set up a servlet context in the WEB-INF/web.xml
 file.  Then, setup an alias (servlet mapping) to the alias
 url you want to use.

 Example:
 Servlet Context
 servlet
 servlet-namemyServletAlias/servlet-name
 servlet-classmyServlet/servlet-class
 /servlet

 Servlet Mapping
 servlet-mapping
 servlet-namemyServletAlias/servlet-name
 url-pattern/bin/ServletName/url-pattern
 /servlet-mapping

 This example will run 'myServlet' whenever the url
 http://www.domainname.com/bin/ServletName is requested.

 You can also append .html or whatever to the url-patterns
 to get friendly urls like:
 http://www.domainname.com/users/login.html

 If you're using packages, remember to include the package
 name with the servlet-class, e.g., Users.myServlet

 -Richard

 On Sat, 19 May 2001, you wrote:
  Is it possible to execute a servlet off of anything that does not start
  with
  /servlet?
 
  I want to start servlets off of:
  http://www.domainname.com/bin/ServletName
 
  Thanks for any help
  Tim Arnold
 --
 Richard Draucker,  [EMAIL PROTECTED]
 Protected-Data.Com  www.protected-data.com
 Remote data support for web developers.




testing tomcat from web browser

2001-05-19 Thread Vasanth Krishnan Venkatachalam

Hi everyone, 

I'm trying to test tomcat from the web. I have it running on a server
called vader.ics.uci.edu, on port 19000. I want to access the file,
source.jsp, which is located in the directory, 
webapps/examples/jsp/

But when I point my browser to
http://vader.ics.uci.edu:19000/webapps/examples/jsp/source.jsp

I notice, in the window where startup.sh is running the following error:


5-19 09:23:30 - ContextManager: Error reading request, ignored - java.lang
.NullPointerException
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)  


Any suggestions on how to beat this?

Vasanth