Configuring Apache to work with Tomcat

2003-06-23 Thread Matt Kwid
Greetings,

I just read through a bunch of the emails sent at the mail archive for this
mailing list and read about other issues concerning mod_jk as well as the
many different versions of mod_jk configurations for different versions of
Tomcat.

I have followed the  for the impatients JK documentation that comes in my
installations Tomcat docs to the T on two Windows XP machines multiple times
to no avail.  I am working with Tomcat 4.1.24 and Apache 2.0.46.  I am able
to load the pages found at http://localhost and
http://localhost:8080/index.jsp for both servers.

Can someone please give me a hand in configuring them to work together or
point me to any resources?


~Matt the noob


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



RE: Configuring Apache to work with Tomcat

2003-06-23 Thread Logan Scott
Try this:

http://www.johnturner.com/howto/winxp-howto.html

-Original Message-
From: Matt Kwid [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:12 PM
To: [EMAIL PROTECTED]
Subject: Configuring Apache to work with Tomcat


Greetings,

I just read through a bunch of the emails sent at the mail archive for this
mailing list and read about other issues concerning mod_jk as well as the
many different versions of mod_jk configurations for different versions of
Tomcat.

I have followed the  for the impatients JK documentation that comes in my
installations Tomcat docs to the T on two Windows XP machines multiple times
to no avail.  I am working with Tomcat 4.1.24 and Apache 2.0.46.  I am able
to load the pages found at http://localhost and
http://localhost:8080/index.jsp for both servers.

Can someone please give me a hand in configuring them to work together or
point me to any resources?


~Matt the noob


-
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]



RE: Configuring Apache to work with Tomcat

2003-06-23 Thread Matt Kwid
I have tried following these steps before with the newer versions of both
servers that I am working with.  I also just tried it again with the version
of Tomcat that is used in the howto with the newest version of Apache,
using mod_jk_2.0.46.dll to match the release.  I keep getting to this step,

Save the changes you made to server.xml. Restart the Tomcat service. Wait a
few seconds, and then check to see if there is a file called mod_jk.conf in
c:\tomcat\tomcat-4-1-18\conf\auto
(c:\tomcat\tomcat-4-1-18\conf\auto\mod_jk.conf). If there is, all is well.

The new mod_jk.conf file is not being created.

Any and all suggestions are appreciated.

~Matt

-Original Message-
From: Logan Scott [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:20 PM
To: Tomcat Users List
Subject: RE: Configuring Apache to work with Tomcat


Try this:

http://www.johnturner.com/howto/winxp-howto.html

-Original Message-
From: Matt Kwid [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:12 PM
To: [EMAIL PROTECTED]
Subject: Configuring Apache to work with Tomcat


Greetings,

I just read through a bunch of the emails sent at the mail archive for this
mailing list and read about other issues concerning mod_jk as well as the
many different versions of mod_jk configurations for different versions of
Tomcat.

I have followed the  for the impatients JK documentation that comes in my
installations Tomcat docs to the T on two Windows XP machines multiple times
to no avail.  I am working with Tomcat 4.1.24 and Apache 2.0.46.  I am able
to load the pages found at http://localhost and
http://localhost:8080/index.jsp for both servers.

Can someone please give me a hand in configuring them to work together or
point me to any resources?


~Matt the noob


-
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]


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



Re: JK2 config

2003-06-23 Thread Nikola Milutinovic
Try Googling. There is a link to quite good piece of docs for JK2 that sits on 
Jakarta/Tomcat original site. Why isn't it present in the Tomcat's distribution?

Nix.
- Original Message - 
From: NormW [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 9:49 AM
Subject: Re: JK2 config


 Good evening Nikola.
 Best of luck and I will watch your 'thread' with interest.
 I asked some technical questions about mod_jk2 a few weeks ago and got
 deafened by the silence.
 
 Considering a predominance of questions here are about configuration issues,
 it is amazing there seems to be enough time to answer the questions (most
 anyway) and yet not enough time to get the docs up to scratch and reduce the
 'clutter' here.
 
 Depending on your skills, sometimes wading through the source code can
 reveal needed things of use. Another method would be to write up a list of
 specific things you want to know rather than seek the 'grail' of
 comprehensive mod_jk2 documentation. (The module itself is still 'under
 construction' and the  manual is developed from that.)
 
 On the other hand... if it exists, one ought to read it. I know there is a
 document in the Tomcat 4 doc set about 'virtual' hosts configuration, which
 might get you started at least, and there are a number of documents with the
 Apache manual about the topic... If you have read them, ask questions to
 clarify what is there, if not,...
 
 AFAIK, basically you need to add multiple host   / sections in Tomcat's
 server.xml and 'inside' those, nest the required context / elements, then
 adjust the parameters to suit each host added to keep them unique It's a
 similar thing at the Apache end; create VirtualHost sections within
 httpd.conf, and inside these create Location  entries, inside which use
 'JkUriSet  worker  workername'. If you create only one worker in
 workers2.properties, workername can be the same one for all hosts. Create
 a channelSocket entry in workers2.properties that points to the Tomcat
 machine/port. Aim the workername entry at the channelSocket entry and it
 ought to be very close to going.
 Norm
 
 
 Hi all.
 
 Is there a comprehensive mod_jk2 guide? I'm mostly interested in
 comprehensive explanation of the syntax and semantcis of worker2.properties
 and jk2.properties files.
 
 The docs coming with TC are confusing and full of holes, to say the least.
 
 Right now, my immediate question would be: how to setup Apache 2.0.46 with
 virtual hosts on one machine to map TC (with virtual hosts) on another
 machine?
 
 For instance:
 
 Apache2: HOST: Legba.ev.co.yu (also holding Krb.ev.co.yu)
 TC 4.1.24: HOST: Mercury.ev.co.yu (also holding Test.ev.co.yu)
 
 Coyote HTTP/1.1 connector is working on TC and I can browse to
 http://Test.ev.co.yu:8080/test/index.jsp (you guys can't, it is on our
 Intranet :-)). Now, I would like to map a context test from
 TC:Host:Test.ev.co.yu into /my_test/* under Krb.ev.co.yu hosted on
 Apache.
 
 What exactly should I do?
 
 All the examples on the TC-docs make many assumptions or, shall we say, skip
 a lot of explanation teritory.
 
 Also, I've done this (almost) with mod_webapp and it makes sense to monkey
 around with VHosts under TC - each Apache VHost maps to the corresponding TC
 VHost, defined under WARP engine. Does it make sense when using JK1/2? Can I
 map a context defined under one VHost on TC under totally different VHost on
 Apache? Is there something special in the syntax of workers2.properties in
 such case?
 
 TYIA,
 Nix.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Re: How do I disable HTTP TRACE in Tomcat

2003-06-23 Thread Bill Barker
A 302 response is a re-direct.  If you don't have an SSL Connector
configured, then what you have should work (ugly, but works ;-).

I believe that that idea was to have a:
  auth-constraint
 descriptionForbidden Roles/description
 role-namenobody-has-this-role/role-name
  /auth-constraint
It is really ugly for Form-auth (but it mostly makes life difficult for
hackers, so what do you care ;-).


Peter M. Gerken [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Tim...

 I think I found a way that appears to work... I added the http-method
 line and it give me the 302 message for the HTTP TRACE and my web app
 appears to be working  Is this all I need to do?

   security-constraint
  web-resource-collection
 web-resource-nameProtected Context/web-resource-name
   url-pattern/*/url-pattern
   http-methodTRACE/http-method
   /web-resource-collection
   !-- auth-constraint goes here if you requre authentication --
   user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
/security-constraint

 Thanks

 Pete

  Tim
 
  Thanks for the suggestion and it shows the following when I try to
  telnet and send HTTP TRACE
 
  HTTP/1.1 302 Moved Temporarily
  Pragma: No-cache
  Cache-Control: no-cache
  Expires: Thu, 01 Jan 1970 00:00:00 GMT
  Location: https://localhost:8443/
  Content-Type: text/plain
  Content-Length: 0
  Date: Mon, 23 Jun 2003 03:39:19 GMT
  Server: Apache Coyote/1.0
  Connection: close
 
  That might satisfy the sys admins, but it also doesn't allow my webapp
  to run Here's what the link you gave said to add to web.xml:
 
   security-constraint
  web-resource-collection
 web-resource-nameProtected Context/web-resource-name
   url-pattern/*/url-pattern
   /web-resource-collection
   !-- auth-constraint goes here if you requre authentication --
   user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
/security-constraint
 
  I'm assuming that the url-pattern is catching everything anyway to
  only stop HTTP TRACE?
 
  Thanks!
 
  Pete
 
  Tim Funk wrote:
 
  In web.xml - use a security constraint to disallow trace.
 
  It is similar to this:
  http://jakarta.apache.org/tomcat/faq/security.html#https
 
  -Tim
 
  Peter M. Gerken wrote:
 
  Hi..
 
  I'm using tomcat 4.1.24 and the sys admins found a potential
  security hole by sending a HTTP TRACE. They told me I need to fix it
  by following the instructions in the following URL:
 
  http://www.kb.cert.org/vuls/id/867593
 
  However, I'm not using the Apache HTTP Server, just Tomcat with it's
  embedded server.  Is there anyway to disable a HTTP TRACE sent to
  tomcat?
 
  Here's the test I need to fail...
 
  telnet xxx.xxx.xxx.xxx 8080
 
  type in TRACE / HTTP/1.0  and hit return twice... it shows...
 
 
  HTTP/1.1 200 OK
  Content-Type: message/http
  Content-Length: 18
  Date: Sun, 22 Jun 2003 22:52:24 GMT
  Server: Apache Coyote/1.0
  Connection: close
 
  TRACE / HTTP/1.0
 
 
  I need it that to fail to get the sys admin's off my back.
 
  Any help would much appreciated!
 
  Thanks!!
 




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



RE: How to access a specific session in a servlet

2003-06-23 Thread reitinger franz
Hi,
ist ein wenig Out Of Topic, da dies nichts tomcat-spezifisches ist.

Session-Tracking
Da gibt es verschiedene Methoden wie URL Rewriting oder Cookies oder noch
besser das Session Tracking API;
zur Verfuegung gestellt vom Servlet API. Genaue Docu dazu im entsprechenden
servletApi-Verzeichnis.



Basically recht einfach:
// nachstehender Code realisiert einen sessionbezogenen Counter

public void doGet(HttpServletRequest req, HttpServletResponse res) throws
.. {

// get the current session object, create one if necessary
HttpSession session = req.getSession(true);

// increment the hit count for this page and save it in the client's
session under the name counter
Integer count = (Integer)session.getValue(counter);
if (count == null)
count = new Integer(1);
else
count = new Integer(count.intValue()+1)
session.putValue(counter,count);




}

Note: Die Spez. des HttpSession-Objects wurde geandert - doch javac meldet
dies (-deprecation).

franzR


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 7:37 AM
To: [EMAIL PROTECTED]
Subject: How to access a specific session in a servlet






Hi list,

I am pretty newbie with servlets and I got stock now. How can I access a
specific session from Servlet?

Is this possible?

I need to do this because by a prevoius request I stored some objects in
the session which I need to access again later in other servlets.

I am running Tomcat 4.1.18

Any hints links are welcome and appreciated

Regards,

Christian Schuster

Rudolf Schuster AG
Postfach 277
CH - 3000 Bern 11

http://www.rsag.ch
++41 31 348 05 30


-
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]



ConnectionTimeout of Tomcat4.1.24??

2003-06-23 Thread Bikash Paul
Hi all friends,

I am using tomcat4.1.24 for my uploading
software(swing for client interface and servlet).Iam
facing problem with connection broken,During uploading
of file if connection between local computer and
remote computer broken then my software will give a
message to user through pop up dialog box,but that
dialog box appears after 3 or 4 minitues of connection
broken that means as per my idea that Tomcat realease
the connection after 3 or 4 minitues of connection
broken .I have tried to rectify by configuring
Connector element of server.xml file but couldn't
slove my problem.Can any plz guide me am I correct
that the delay in appearing of dialog box in case of
connection broken due to below configuration of Tomcat
in server.xml file or it may be due to any other
reason.

Connector
className=org.apache.catalina.connector.http.HttpConnectorport=8080
minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443 debug=0
connectionTimeout=0/ 

Regards
Bikash 



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: installing a servlet

2003-06-23 Thread Tony Grant
On Fri, 2003-06-20 at 14:33, John Turner wrote:

 Please post:
- workers2.properties

# Define the communication channel

[shm]
file=/var/log/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:212.100.232.223/*.jsp]
worker=ajp13:localhost:8009

[uri:www.tgds.net/*.jsp]
worker=ajp13:localhost:8009

 - relevant Host section from server.xml

Host name=www.tgds.net debug=0
appBase=/var/tomcat4/webapps 
   unpackWARs=true autoDeploy=true
Aliaslocalhost/Alias
Aliaswww/Alias
Alias212.100.232.223/Alias

Context path= docBase= debug=1/

Context path=/lmstk docBase=/var/tomcat4/webapps/lmstk
debug=0/

Context path=/jFormMail
docBase=/var/tomcat4/webapps/jformmail debug=1/

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=tgds_access_log.
suffix=.txt
 pattern=common resolveHosts=false/

/Host


 - relevant Context section from server.xml
 - servlet and servlet-mapping tags for this servlet from web.xml

servlet
servlet-namejFormMail/servlet-name
servlet-classFormMail/servlet-class
  /servlet
  servlet-mapping
servlet-namejFormMail/servlet-name
url-pattern/jFormMail/url-pattern 
  /servlet-mapping

As I said the webapps work just fine. This servlet will only work if
Tomcat is running standalone.

Cheers

Tony Grant
-- 
www.tgds.net Library management software toolkit, 
redhat linux on Sony Vaio C1XD, 
Dreamweaver MX with Tomcat and PostgreSQL


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



RE: Configuring Apache to work with Tomcat

2003-06-23 Thread Kevin Passey
I struggled with that on my WIN2K pro machine. I got it working though.

In the documentation it does say use short names - so I used exactly the
names in the howto and it worked.

I don't know why but it did - I'd start from there.

Good luck

Kevin



-Original Message-
From: Matt Kwid [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 08:14
To: Tomcat Users List
Subject: RE: Configuring Apache to work with Tomcat


I have tried following these steps before with the newer versions of both
servers that I am working with.  I also just tried it again with the version
of Tomcat that is used in the howto with the newest version of Apache,
using mod_jk_2.0.46.dll to match the release.  I keep getting to this step,

Save the changes you made to server.xml. Restart the Tomcat service. Wait a
few seconds, and then check to see if there is a file called mod_jk.conf in
c:\tomcat\tomcat-4-1-18\conf\auto
(c:\tomcat\tomcat-4-1-18\conf\auto\mod_jk.conf). If there is, all is well.

The new mod_jk.conf file is not being created.

Any and all suggestions are appreciated.

~Matt

-Original Message-
From: Logan Scott [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:20 PM
To: Tomcat Users List
Subject: RE: Configuring Apache to work with Tomcat


Try this:

http://www.johnturner.com/howto/winxp-howto.html

-Original Message-
From: Matt Kwid [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:12 PM
To: [EMAIL PROTECTED]
Subject: Configuring Apache to work with Tomcat


Greetings,

I just read through a bunch of the emails sent at the mail archive for this
mailing list and read about other issues concerning mod_jk as well as the
many different versions of mod_jk configurations for different versions of
Tomcat.

I have followed the  for the impatients JK documentation that comes in my
installations Tomcat docs to the T on two Windows XP machines multiple times
to no avail.  I am working with Tomcat 4.1.24 and Apache 2.0.46.  I am able
to load the pages found at http://localhost and
http://localhost:8080/index.jsp for both servers.

Can someone please give me a hand in configuring them to work together or
point me to any resources?


~Matt the noob


-
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]


-
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]



Virtual Domains with Tomcat

2003-06-23 Thread Stephen Carville
Right now I am running multiple domains with Tomcat by having a completely 
separate instances attached to a different virtual interface: eth0, eth0:1, 
etc.  This works OK for two or even three domains but it will be getting 
unwieldy as the number of domains increases.  Is there anyway to do virtual 
named domains with Tomcat?  This is dirt simple to do in Apache but the web 
developers only know how to program in Java and Visual Basic so I'm kind of 
stuck with Tomcat.  I've tried using mod_jk but only the Apache side works, 
Tomcat still goes to the same directories for its files no mater what domian 
the request is for.

-- 
Stephen Carville
UNIX and Network Administrator
DPSI (formerly Ace USA Flood Services)
310-342-3602
[EMAIL PROTECTED]

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



Virtual domains with Tomcat

2003-06-23 Thread Stephen Carville
How can I get Tomcat to recognize virtual domains?  This is trivial with 
Apache and I can get Apache to fetch the correct jsp but I cannot get timcat 
to process it.  If I turn off tomcat, apache sends the jsp source.  If I turn 
tomcat on, I get the error 404 page

workers.properties:

workers.tomcat_home-/var/jakarta/tomcat
workers.java_home=/usr/java/jdk
ps=/

# worker list
worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

jk.conf: (Included by the httpd.conf file)

LoadModule jk_module modules/mod_jk.so
JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile   /var/log/httpd/mod_jk.log

example Virtual Host

VirtualHost *
ServerName  dookoo.totalflood.com
DocumentRoot/var/jakarta/totalflood/ROOT
  Directory /var/jakarta/totalflood/ROOT
order allow,deny
allow from all
  /Directory
DirectoryIndex  HomePage.jsp
ErrorLog/var/log/httpd/totalflood-error.log
JkMount /*.jsp  ajp13
/VirtualHost

-- 
Stephen Carville
UNIX and Network Administrator
DPSI (formerly Ace USA Flood Services)
310-342-3602
[EMAIL PROTECTED]

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



Re: Virtual domains with Tomcat

2003-06-23 Thread Nikola Milutinovic
 How can I get Tomcat to recognize virtual domains?  This is trivial with 
 Apache and I can get Apache to fetch the correct jsp but I cannot get timcat 
 to process it.  If I turn off tomcat, apache sends the jsp source.  If I turn 
 tomcat on, I get the error 404 page

Anything in the logs?

I'm not totally sure, but I think you need to match VHosts in your Apache and your 
Tomcat. I'll be testing exactly that today with mod_jk2, Apache 2.0.46 and Tomcat 
4.1.24. For mod_webapp it is definite - you need:

Service ...
  Connector ...
  Engine ...
  Host name=my-vhost.domain.com ...
Context docBase=... path=../

  /Host
/Service

I think the same applies to all other connectors: mod_jk, mod_jk2 and HTTP.

Nix.


multiple connectors

2003-06-23 Thread Peter.Kerekes
Hi!

I have 2 connectors configured, in my Tomcat one secure, one non-secure.

Can I configure two webapps in such way, that one would use
ONLY the secure connector, the other ONLY the non-secure ?

Thx,
PEter

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



how two web applications share security realms ?

2003-06-23 Thread martin\(Feng-Chang\)
Dear all:
 I have two web applications named homepage and login.

Application login is for authenticate users. 

How those two web applications share security realms?

I found if i define security-constraint and login-config tags for homepage/web.xml 
and login/web.xml,

I access to http://myhost/login/  and  after I pass the authentication, I access to 
http://myhost/homepage/test.htm, 

the web server ask me to do authenticate again !!

How can I solve this problem ?

E:\myWeb
¢u¢whomepage
¢x  ¢x
¢x  ¢u test.htm
¢x  ¢x  
¢x  ¢|¢wWEB-INF
¢x¢u web.xml
¢u¢wlogin
¢x  ¢x
¢x  ¢u auth.htm
¢x  ¢u index.html
¢x  ¢u err.htm
¢x  ¢x
¢x  ¢|¢wWEB-INF
 ¢u web.xml

   thank a lot.
   
martin


Tomcat/Eclipse tutorial?

2003-06-23 Thread Mohun Biswas
Is there a how-to out there for getting started with Eclipse and Tomcat 
together? I'm reasonably familiar with Tomcat but not Eclipse. To date I've 
set up Eclipse, installed the sysdeo plug-in 
(http://www.sysdeo.com/eclipse/tomcatPlugin.html), and been able to use it 
to start up Tomcat. But I haven't been able to figure out how to do things 
like install and manage my webapp via Eclipse. Eventually I expect to use 
Ant for build and webapp management but if there are basic tools built into 
the Eclipse GUI for this I'd like to start there in order to partition the 
problem of coming up to speed.

Specific help is appreciated, but it feels like there should be a URL 
giving step-by-step instructions somewhere and that would be fine too. Is 
there a John Turner in the Tomcat/Eclipse space?

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


Re: ok, am I offically lost here

2003-06-23 Thread Ben Souther
Each folder in the webapps is an application.
Each application must have a sub directory named WEB-INF.

Create your folder under the webapps directory, create the sub folder 
WEB-INF and restart tomcat. 
You should be able to start playing with jsps in that directory.

If you named the directory myjsps then you would access them  with the 
following url (assuming that you used the default set up when you installed 
tomcat).

http://localhost:8080/myjsps


Check out: http://www.coreservlets.com 






On Sunday 22 June 2003 05:28 pm, you wrote:
 I am totally new to JSP/serlets, my background is C++
 then PHP and recently Java again. I am fine with
 these, but this has me baffled.

 I am almost home when it comes to the install, had
 some issues but almost all is working.

 My last hurdle is one which is very confusing.

 ok, there is a webapps directory, inside is a very
 dirs, examples, ROOT etc.

 the normal root page loads up and I can get to the
 examples, the confusion starts here, the ROOT houses
 the index.jsp, but the examples are not UNDER ROOT
 they are a different dir back one in webapps.

 WHEN I add a jsp page into the root it works fine

 SO all I want to do is start messing with JSP for now.
 I have a folder which houses my work seperate from the
 app structure. so I created a jsp folder and then
 threw in s ln -s to it in the ROOT (also tried the
 webapps) then I renamed the main index file under
 ROOT, so there is not one, then when I goto root in
 the browser I get a dir tree. there is my jsp folder
 BUT when I click on it it says resource is not
 available!!

 what I did was I changed the grp on the folder to be
 tomcat4, just as the other items are.

 why can't I see this folder and get to a jsp in there?

 the docs are confusing and all they talk about is
 setting up web apps and stuff, I am far from this, I
 just want to do a very tests to get going.

 Do I need to create web app for each of them?

 I have looked online and have not found the answer,
 please help!

 Thanks

 tomcat 4.1.24
 redhat 7.3

 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

 -
 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]



RE: Tomcat/Eclipse tutorial?

2003-06-23 Thread Tim Davidson
Theres an even better way - use the MyEclipse plugin at www.myeclipse.com. The plugin 
(EA2), relaesed today supports tomcat webapps and JSP development with JSP syntax 
highlighting and debugging etc..
regards.

-Original Message-
From: Mohun Biswas [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/Eclipse tutorial?


Is there a how-to out there for getting started with Eclipse and Tomcat 
together? I'm reasonably familiar with Tomcat but not Eclipse. To date I've 
set up Eclipse, installed the sysdeo plug-in 
(http://www.sysdeo.com/eclipse/tomcatPlugin.html), and been able to use it 
to start up Tomcat. But I haven't been able to figure out how to do things 
like install and manage my webapp via Eclipse. Eventually I expect to use 
Ant for build and webapp management but if there are basic tools built into 
the Eclipse GUI for this I'd like to start there in order to partition the 
problem of coming up to speed.

Specific help is appreciated, but it feels like there should be a URL 
giving step-by-step instructions somewhere and that would be fine too. Is 
there a John Turner in the Tomcat/Eclipse space?

TIA,
MB


-
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]



Re: JK2 config

2003-06-23 Thread Atreya Basu
Hi,

I've had some success in setting up mod_jk2 but only on winXP.  I was 
able to do it with  the JNI/inprocess and via sockets.  I even wrote up 
a document outling the steps I took.  If anyone wants I can post that or 
even post my workers2.properties and jk2.properties file.

Unfortunately I have had no luck getting it to work under RH9.  I always 
get some kind of error saying scoreboard and then it can't find some 
libjvm.so or something.  I'm not sure what it all means.  If anyone has 
got mod_jk2 to work undre linux I'd really like to hear about it.

Atreya



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


Re: disable session support in Tomcat

2003-06-23 Thread Mikael Blomqvist
Not specifically within Tomcat (since a lot of pages require it).
But you can stop your pages from forcing the creation of new sessions (and thereby if 
no pages request a session you wont have any sessions).

From JSP 1.2 spec chapter 2.10.1, table JSP2.1:

session 
Indicates that the page requires participation in an (http) session. If  true  then 
the implicit script language variable named  session  of type 
javax.servlet.http.HttpSession references the current/new session for the page. If  
false  then the page does not participate in a session; the  session  implicit 
variable is unavailable, and any reference to it within the body of the JSP page is 
illegal and shall result in a fatal translation error. Default is  true .

ie, do %@ page session=false % on all your pages to disable sessions.

/M


On Wed, 18 Jun 2003 19:52:06 +0200
Marco Pöhler [EMAIL PROTECTED] wrote:

 Hi,
 
 Is it possible to disable the session support (means no cookies and no 
 JSESSIONIDs) somewhere in Tomcat ? 
 This is may be a simply question, but I couldn't found any hint in the docs 
 and the list archive.
 
 Thanks in advance
 
 Marco
 
 P.S.: I'm using 4.1.12 on lInux



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



RE: JK2 config

2003-06-23 Thread Dan BECHEANU

probably because RH9 works only with jdk1.4.1 and up
-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:21 AM
To: [EMAIL PROTECTED]
Subject: Re: JK2 config


Hi,

I've had some success in setting up mod_jk2 but only on winXP.  I was 
able to do it with  the JNI/inprocess and via sockets.  I even wrote up 
a document outling the steps I took.  If anyone wants I can post that or 
even post my workers2.properties and jk2.properties file.

Unfortunately I have had no luck getting it to work under RH9.  I always 
get some kind of error saying scoreboard and then it can't find some 
libjvm.so or something.  I'm not sure what it all means.  If anyone has 
got mod_jk2 to work undre linux I'd really like to hear about it.

Atreya



-
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]



Alternatives to DBCP

2003-06-23 Thread pete . storey
Has anyone used any alternatives to the DBCP with Tomcat because it seems 
to get worse and worse as I use it more.  For no apparent reason on one 
server, if there is a failure of a query to clean up its resources 
properly then when it it cleaned up by the finalizer method of our query 
object it actually closes the connection and then DBCP doesnt open any 
more even though it should, so any connection attempt ends up saying 
Connection is closed.  This is obviously a bit of a problem.  I can only 
assume that the problem lies in the combination of DBCP and my code. 
Obviously I know that we shouldnt ever use a finalizer to be cleaning 
stuff up but this is is development so allows us to catch where this 
occurs in code.  The code for our Query object is included here.
The cleanUp method works fine normally it seems it is just when called by 
a finalizer that it goes wrong (although I suppose it could be caused by a 
SQL Exception in the back end of the system?).  We're using INet 
Software's Sprinta2000 SQL Server 2000 JDBC driver if that of any 
importance.
cheers
Pete


/*
 * Query.java
 *
 * Created on 27 May 2002, 15:20
 */

package com.ktdev.sql;

import javax.sql.*;
import java.sql.*;
import javax.naming.*;
import java.io.*;
import java.util.*;
import com.ktdev.errors.GetStackTrace;

import org.apache.log4j.Logger;

/**
 *
 * @author  Dominic Bevacqua
 * @version 
 *
 * Wrapper class for java.sql.Statement and java.sql.CallableStatement
 *
 */
public class Query {
 
static Logger log = Logger.getLogger(Query.class);
 
/** static variables **/
private static Hashtable JNDIEnv=null;
 
/** non-static variables **/
private Connection conn;
private Vector statements = new Vector();
private Vector resultSets = new Vector();
private Statement currentStmt;
private String callingMethodStackTrace = ;
 
private String dataSourceName;
private String commandText;
private boolean isUpdate=false;
private boolean isCallable=true;
private boolean useServerCursor=false;
private boolean returnsMultipleResultSets=false;
private int resultSetType = java.sql.ResultSet.TYPE_FORWARD_ONLY;
private int resultSetConcurrency = 
java.sql.ResultSet.CONCUR_READ_ONLY;
 
 
/** Constructors **/

// should we provide no args constructor? no real need for it but...
public Query() {
 
// This simply gets the stack that called the query so if it is 
not cleaned up properly then we can report it.
// Only run if it is debug mode.
if (log.isDebugEnabled())
callingMethodStackTrace = 
GetStackTrace.getStackTraceAsString();
 
}
 
public Query(String dataSourceName) {
 
if (log.isDebugEnabled()) {
log.debug(Creating a Query connection to  + dataSourceName);
callingMethodStackTrace = 
GetStackTrace.getStackTraceAsString();
}
this.setDataSourceName(dataSourceName);
this.openJNDIConnection();

}
 
/** Create new Query with specified commandText on specified 
dataSourceName **/
public Query(String commandText, String dataSourceName) {

this(dataSourceName);
this.setCommandText(commandText);
this.createStatement();
this.execute();
log.debug(Query created and run with commandText =  + 
commandText );
 
}
 
// In case someone does not want to use JNDI to get connection...
public Query(String url, String username, String password, String 
driver) {
 
if (log.isDebugEnabled()) {
log.debug(Creating a Query using JDBC parameters.);
callingMethodStackTrace = 
GetStackTrace.getStackTraceAsString();
}
 
try {
 
Class.forName(driver);
conn = DriverManager.getConnection(url , username, password);
 
} catch (ClassNotFoundException ce) {
 
// throw exception
throw new QueryException(ce.getMessage());
 
} catch (SQLException se) {
 
// throw exception
throw new QueryException( se );
 
} 
 
}
 
// Better way of doing it...
private void openJNDIConnection(){
 
try {
 
// Define JNDI InitialContext object.
  InitialContext ctx = new InitialContext(JNDIEnv); 
 
// Look up data source in InitialContext.
  DataSource ds = (DataSource)ctx.lookup(dataSourceName);

// get connection from pool
  conn = ds.getConnection();
 
} catch (javax.naming.NamingException ne) {
 
log.error(Caught a NamingException trying to get a Connection 
from JNDI., ne);
throw new QueryException(ne.getMessage());
 
} catch (SQLException se) {
 
log.error(Caught a SQLException trying to get a Connection 
from JNDI., se);
throw new QueryException( se );
 
} 
 
}
 
public void createStatement() {
 
// First clear the current statement as we are 

Tomcat and Apache Basic Authentication

2003-06-23 Thread Eugene Lee
I have a box where Apache's basic authentication is working fine, via
directives in httpd.conf or an .htaccess file in the selected directory.
However, when the selected directory is located under the webapp context
directory, Apache serves it up without any prompting for any username
and password, no 401 response header, nada.  It's as if the URL to any
webapp bypasses Apache's authentication modules and sends the request
straight to the connector.  I'm using Webapp (I know, I know).  Is there
a special setting to make Webapp obey Apache's authentication system?
Any suggestions or pointers are appreciated.


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



Re: JK2 config

2003-06-23 Thread Jason Bainbridge
On Mon, 23 Jun 2003 11:21, Atreya Basu wrote:
 I've had some success in setting up mod_jk2 but only on winXP.  I was
 able to do it with  the JNI/inprocess and via sockets.  I even wrote up
 a document outling the steps I took.  If anyone wants I can post that or
 even post my workers2.properties and jk2.properties file.

Do you feel like putting a quick web page together with your documentation or 
sending it to the list? The more doco we can get on that particular subject 
the better. :)

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



Re: Tomcat/Eclipse tutorial?

2003-06-23 Thread Keshava Murthy
url not working

regards,
Keshava Murthy. S
- Original Message -
From: Tim Davidson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:20 PM
Subject: RE: Tomcat/Eclipse tutorial?


Theres an even better way - use the MyEclipse plugin at www.myeclipse.com.
The plugin (EA2), relaesed today supports tomcat webapps and JSP development
with JSP syntax highlighting and debugging etc..
regards.

-Original Message-
From: Mohun Biswas [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/Eclipse tutorial?


Is there a how-to out there for getting started with Eclipse and Tomcat
together? I'm reasonably familiar with Tomcat but not Eclipse. To date I've
set up Eclipse, installed the sysdeo plug-in
(http://www.sysdeo.com/eclipse/tomcatPlugin.html), and been able to use it
to start up Tomcat. But I haven't been able to figure out how to do things
like install and manage my webapp via Eclipse. Eventually I expect to use
Ant for build and webapp management but if there are basic tools built into
the Eclipse GUI for this I'd like to start there in order to partition the
problem of coming up to speed.

Specific help is appreciated, but it feels like there should be a URL
giving step-by-step instructions somewhere and that would be fine too. Is
there a John Turner in the Tomcat/Eclipse space?

TIA,
MB


-
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]




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



Re: multiple connectors

2003-06-23 Thread Tim Funk
You could if each connector were in its own Service. But I fail to see any 
reason why this would be done.

-Tim

[EMAIL PROTECTED] wrote:
Hi!

I have 2 connectors configured, in my Tomcat one secure, one non-secure.

Can I configure two webapps in such way, that one would use
ONLY the secure connector, the other ONLY the non-secure ?
Thx,
PEter


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


RE: Tomcat/Eclipse tutorial?

2003-06-23 Thread Tim Davidson
sorry..
http://www.myeclipseide.com/index.php

-Original Message-
From: Keshava Murthy [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:13 PM
To: Tomcat Users List
Subject: Re: Tomcat/Eclipse tutorial?


url not working

regards,
Keshava Murthy. S
- Original Message -
From: Tim Davidson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:20 PM
Subject: RE: Tomcat/Eclipse tutorial?


Theres an even better way - use the MyEclipse plugin at www.myeclipse.com.
The plugin (EA2), relaesed today supports tomcat webapps and JSP development
with JSP syntax highlighting and debugging etc..
regards.

-Original Message-
From: Mohun Biswas [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/Eclipse tutorial?


Is there a how-to out there for getting started with Eclipse and Tomcat
together? I'm reasonably familiar with Tomcat but not Eclipse. To date I've
set up Eclipse, installed the sysdeo plug-in
(http://www.sysdeo.com/eclipse/tomcatPlugin.html), and been able to use it
to start up Tomcat. But I haven't been able to figure out how to do things
like install and manage my webapp via Eclipse. Eventually I expect to use
Ant for build and webapp management but if there are basic tools built into
the Eclipse GUI for this I'd like to start there in order to partition the
problem of coming up to speed.

Specific help is appreciated, but it feels like there should be a URL
giving step-by-step instructions somewhere and that would be fine too. Is
there a John Turner in the Tomcat/Eclipse space?

TIA,
MB


-
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]




-
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]



TOMCAT's WEBDAV question

2003-06-23 Thread DTC

Hi 
I am trying to use Tomcat's implementation of WEBDAV for my file upload requirements 
.After deploying webDAV as a web folder, I need to open to webdav as a webfolder, and 
upload files by dragging them over from Windows Explorer to IE . 
 
By default, Tomcat’s webDAV does not have a configurable property where we can set the 
rootpath of where the files will be uploaded to (eg. C:/tmp).  I think TOMCAT’s 
implementation “PUTs” the file based on a relative path to the webdav web app 
directory .
 
Right now, when you drag a file over to the webdav folder, it’s treated as a “PUT” 
method, and it will invoke “DefaultServlet”’s service() to do the uploading.
 
Do you know if it is possible to set an absolute root path with Tomcat's webDAV ? 
Thanks .
 
I have been looking at WebDAVServlet, but found no solution yet how to control where 
the files will be sent to .  
 
- Chinh
 


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Alternatives to DBCP

2003-06-23 Thread Timothy Stone
[EMAIL PROTECTED] wrote:
Has anyone used any alternatives to the DBCP with Tomcat because it seems 
to get worse and worse as I use it more.  
Pete,

Are you asking if there are other connection pool managers other than DBCP?

Yes. Many. Unfortunately, I can only name a couple off the top of my head:

www.javaexchange.com has one (a David Flanagan, author of /Java 
Enterprise in a Nutshell/, recommendation) called DbConnectionBroker.

Also be sure to check the vendor of your database. They may have one.

Finally, if you want some code to play with, hack and improve, try 
looking at Marty Hall's connection pool examples from /Core Servlets and 
JavaServer Pages/ (www.coreservlets.com) -- Chapter 18. His code is free 
for unrestricted use and improvement. It's a great example, and as I 
recall, has room for optimization.

There are many more I'm sure. I recently participated in a code review 
of a complex webapp that used something called Poolman. I didn't have 
to look at it much so I don't know where you can find it, if it's 
open-source, or other; try Google.

HTH,
Tim


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


What the Tomcat 4 RPM files forgot to do.

2003-06-23 Thread Neil Zanella

Hello,

I would like to make the following suggestion for the Tomcat 4 RPM file:

To conform with Red Hat's policy, and at the same time simplify the 
installation process, the following two files should be placed in
the Red Hat compliant /etc/profile.d directory (these are used
to set environment variables upon startup from various RPM
packages):

$ cat /etc/profile.d/tomcat.csh
# Tomcat initialization script (csh)
if ( $?CATALINA_HOME ) then
 exit
endif
setenv CATALINA_HOME /var/tomcat4

... and ...

$ cat /etc/profile.d/tomcat.sh
# Tomcat initialization script (sh)
if [ -z $CATALINA_HOME ] ; then
CATALINA_HOME=/var/tomcat4
fi
export CATALINA_HOME


This sets CATALINA_HOME correctly according to the current installation of 
tomcat4 under /var/tomcat4 (whose correctness according to FHS I am not
yet convinced of).

Thanks!

Neil


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



TOMCAT WEBDAV question

2003-06-23 Thread DTC
Hi 
I am trying to use Tomcat's implementation of WEBDAV for my file upload requirement 
.After deploying webDAV as a web folder, I need to open to webdav as a webfolder, and 
upload files by dragging them over from Windows Explorer to IE . 
 
By default, Tomcat’s webDAV does not have a configurable property where we can set the 
rootpath of where the files will be uploaded to (eg. C:/tmp).  I think TOMCAT’s 
implementation “PUTs” the file based on a relative path to the webdav web app 
directory .
 
Right now, when you drag a file over to the webdav folder, it’s treated as a “PUT” 
method, and it will invoke “DefaultServlet”’s service() to do the uploading.
 
Do you know if it is possible to set an absolute root path with Tomcat's webDAV ? if 
it's not configurable, how would we change the code to do this ? 
 
I have been looking at WebDAVServlet, but found no solution yet how to control where 
the files will be sent to .  
 
- Ch



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Alternatives to DBCP

2003-06-23 Thread Tim Funk
There was recently a similar complaint in common-dev.

DBCP hasn't had a release in a very long time and has significant bug fixes 
in it with respect to connection handling (i think).

So your best best is to checkout from HEAD (jakarta-commons/dbcp) and build 
from source. There are also some milestone tags with respect to struts since 
the last official dbcp release, so checking out with one of the tags instead 
might help if a new bug was introduced since the 1.0 release.

-Tim

[EMAIL PROTECTED] wrote:
Has anyone used any alternatives to the DBCP with Tomcat because it seems 
to get worse and worse as I use it more. 


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


Re: mod_jk quirk?

2003-06-23 Thread John Turner
Thanks for the tip!

John

On Fri, 20 Jun 2003 16:51:45 -0400, Larry Isaacs [EMAIL PROTECTED] 
wrote:

I believe you can add:

jkWorker=my worker name

to your Listener ... to specify the name.

I think Bill Barker's port of the classes involved
is recent enough that the Tomcat 3.3. attributes
(not the server.xml element itself) are valid in the
Tomcat 4 ApacheConfig Listener.  See the Tomcat 3.3
ApacheConfig attribute descriptions at:
http://jakarta.apache.org/tomcat/tomcat-3.3- 
doc/serverxml.html#ApacheConfig

Ignore the rest of the Tomcat 3.3 ApacheConfig info.

Cheers,
Larry
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, June 
20, 2003 11:23 AM
To: Tomcat Users List
Subject: SPAM: Re: mod_jk quirk?

[Message inserted by SAS Postmaster: ISD is evaluating gateway-level 
spam defenses. This message was judged by one of the filters being 
evaluated to be spam. If this message is in fact spam, ** there is no 
action you need to take **. Should our evaluation conclude that this 
technique is practical, you will be receiving fewer messages of this 
type when our evaluation is complete.

If, however, this message is one that is definitely not spam, you may 
submit a false positive report by visiting 
http://mdrweb.na.sas.com/publictools/falsepositive and following the 
instructions found there.]

Hi -

AFAIK, Tomcat never reads workers.properties, only mod_jk reads 
workers.properties.

If you use the auto-generation, your worker will always be named ajp13.  
If you need something else, you need to configure things manually.  The 
ApacheConfig classes are a convenience, not a requirement, and could 
easily go away in the future (they're not even used for JK2 which is 
where the current dev efforts are).

The complaints you are getting when you change or remove 
workers.properties are from Apache and mod_jk, not Tomcat.

John

On Fri, 20 Jun 2003 11:15:59 -0400, Dave Naden [EMAIL PROTECTED] 
wrote:

 When I auto-generate the mod_jk directives, I'm finding strange 
behavior:  Even if my workers.properties file contains the name of a 
worker other  than ajp13, the JkMount commands that get generated 
always have the  worker name as ajp13.
 for example, if I put the following in my workers.properties:

 worker.list=testWorker1
 # settings for testWorker1
 worker.testWorker1.port=8009
 worker.testWorker1.host=localhost
 worker.testWorker1.type=ajp13

 I'll still get, in the auto file, lines like:

 JkMount /examples/jsp/security/protected/j_security_check  ajp13
 JkMount /examples/snoop  ajp13
 JkMount /examples/servlet/*  ajp13
 JkMount /examples/CompressionTest  ajp13
 JkMount /examples/*.jsp  ajp13
 JkMount /examples/servletToJsp  ajp13

 ...etc.

 even though I'm naming the worker 'testWorker1'

 I know Tomcat is reading the correct workers.properties file, because 
 when I remove it, Tomcat complains.

 BTW, here's my location directive:

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/Apache2/modules/mod_jk-2.0.42.dll  /


 Anybody know what's going on?

 -Dave Naden



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





-- Using M2, Opera's revolutionary e-mail client: 
http://www.opera.com/m2/

-
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]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2 config

2003-06-23 Thread John Turner
There are plenty of examples of both JK and JK2 configurations in the list 
archives.  The topic comes up DAILY, and frankly, I don't think you can 
blame people when they tire of posting the same thing day in and day out to 
essentially the same questions.

As always, patches welcome.

John

On Sun, 22 Jun 2003 17:49:41 +1000, NormW [EMAIL PROTECTED] wrote:

Good evening Nikola.
Best of luck and I will watch your 'thread' with interest.
I asked some technical questions about mod_jk2 a few weeks ago and got
deafened by the silence.
Considering a predominance of questions here are about configuration 
issues,
it is amazing there seems to be enough time to answer the questions (most
anyway) and yet not enough time to get the docs up to scratch and reduce 
the
'clutter' here.

Depending on your skills, sometimes wading through the source code can
reveal needed things of use. Another method would be to write up a list 
of
specific things you want to know rather than seek the 'grail' of
comprehensive mod_jk2 documentation. (The module itself is still 'under
construction' and the  manual is developed from that.)

On the other hand... if it exists, one ought to read it. I know there is 
a
document in the Tomcat 4 doc set about 'virtual' hosts configuration, 
which
might get you started at least, and there are a number of documents with 
the
Apache manual about the topic... If you have read them, ask questions to
clarify what is there, if not,...

AFAIK, basically you need to add multiple host   / sections in Tomcat's
server.xml and 'inside' those, nest the required context / elements, 
then
adjust the parameters to suit each host added to keep them unique 
It's a
similar thing at the Apache end; create VirtualHost sections within
httpd.conf, and inside these create Location  entries, inside which use
'JkUriSet  worker  workername'. If you create only one worker in
workers2.properties, workername can be the same one for all hosts. 
Create
a channelSocket entry in workers2.properties that points to the Tomcat
machine/port. Aim the workername entry at the channelSocket entry and 
it
ought to be very close to going.
Norm
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2 config

2003-06-23 Thread John Turner
On Sun, 22 Jun 2003 21:14:26 +0100, Jonathan Peterson 
[EMAIL PROTECTED] wrote:
Instead, you must have the JkWorkersFile in the main apache config, and 
the
workers.properties will have to include all the information you need for
each virtual host. The workers.properties can define worker threads that
reside on the other machine that runs tomcat, but the file itself must be 
on
the apache machine. The worker.workername.host in each thread should be
different for the different hostnames of the tomcat virtual hosts.
Can you clarify what you mean here?  When do you need multiple 
worker.workername.host entries.  By each thread do you mean in a load 
balancing configuration?  I have a test environment on Win2K Pro running 
with six virtual hosts, there is only one worker.workername.host entry in 
workers.properties, and it works like a champ.

John

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Alternatives to DBCP

2003-06-23 Thread pete . storey
Thanks will do.  Presumably I just then replace the JAR file in the 
common\lib directory of the server?
thx
Pete





Tim Funk [EMAIL PROTECTED]
23/06/2003 13:16
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Alternatives to DBCP


There was recently a similar complaint in common-dev.

DBCP hasn't had a release in a very long time and has significant bug 
fixes 
in it with respect to connection handling (i think).

So your best best is to checkout from HEAD (jakarta-commons/dbcp) and 
build 
from source. There are also some milestone tags with respect to struts 
since 
the last official dbcp release, so checking out with one of the tags 
instead 
might help if a new bug was introduced since the 1.0 release.

-Tim

[EMAIL PROTECTED] wrote:
 Has anyone used any alternatives to the DBCP with Tomcat because it 
seems 
 to get worse and worse as I use it more. 


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




RE: JK2 config

2003-06-23 Thread Atreya Basu
Okay,

The website for the JK2 document is:
http://www.greenfieldresearch.ca/technical/jk2_config.html

This document is a raw, so I would very much appreciate feedback on how
to make it better.

Please note that this was written using WinXP Pro SP1, with Apache
2.0.45 and Tomcat 4.1.24 and the Beta JRE 1.4.2.

I would very much appreciate any feedback/suggestions or comments.

I will put my workers2.properties and jk2.properties file up shortly.

Thanks

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 7:47 AM
To: Tomcat Users List
Subject: Re: JK2 config

On Mon, 23 Jun 2003 11:21, Atreya Basu wrote:
 I've had some success in setting up mod_jk2 but only on winXP.  I was
 able to do it with  the JNI/inprocess and via sockets.  I even wrote
up
 a document outling the steps I took.  If anyone wants I can post that
or
 even post my workers2.properties and jk2.properties file.

Do you feel like putting a quick web page together with your
documentation or 
sending it to the list? The more doco we can get on that particular
subject 
the better. :)

Regards,
-- 
Jason Bainbridge
http://jblinux.org

-
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]



RE: JK2 config

2003-06-23 Thread Atreya Basu
Dan,

I've had success using JK2 on WinXP using both 1.4.1 and 1.4.2.  
I'm currently trying 1.4.2 on RH9.  So I'm not too sure if the JVM is
the problem here.  I'm suspecting it has something to do with the
environment settings.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Dan BECHEANU [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 6:53 AM
To: Tomcat Users List
Subject: RE: JK2 config


probably because RH9 works only with jdk1.4.1 and up

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:21 AM
To: [EMAIL PROTECTED]
Subject: Re: JK2 config

Unfortunately I have had no luck getting it to work under RH9.  I always

get some kind of error saying scoreboard and then it can't find some 
libjvm.so or something.  I'm not sure what it all means.  If anyone has 
got mod_jk2 to work undre linux I'd really like to hear about it.
-
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]



Re: ok, am I offically lost here

2003-06-23 Thread John Turner
Sym links are DISABLED by default in Tomcat, for security reasons.  This is 
in the release notes.

I think your frustration level will be GREATLY diminished if you take some 
time to read the docs, such as the application developer's HOWTO, and 
perhaps the classloader HOWTO, before diving in.  Yes, you may have lots of 
experience with other technologies, but that doesn't mean they are similar 
to Tomcat.  Also keep in mind that Tomcat is a reference implementation of 
the servlet spec...that means that in most cases, Tomcat is unforgiving, 
and DOES NOT let you slide or make assumptions about what it is you are 
trying to do.  In the majority of cases, you have to be 100% explicit in 
your Tomcat configuration.  This is by design...you'll save yourself a lot 
of time, effort, and grief if you pickup the ground rules before jumping 
in.

John

On Sun, 22 Jun 2003 14:28:49 -0700 (PDT), [EMAIL PROTECTED] wrote:

I am totally new to JSP/serlets, my background is C++
then PHP and recently Java again. I am fine with
these, but this has me baffled.
I am almost home when it comes to the install, had
some issues but almost all is working.
My last hurdle is one which is very confusing.

ok, there is a webapps directory, inside is a very
dirs, examples, ROOT etc.
the normal root page loads up and I can get to the
examples, the confusion starts here, the ROOT houses
the index.jsp, but the examples are not UNDER ROOT
they are a different dir back one in webapps.
WHEN I add a jsp page into the root it works fine

SO all I want to do is start messing with JSP for now.
I have a folder which houses my work seperate from the
app structure. so I created a jsp folder and then
threw in s ln -s to it in the ROOT (also tried the
webapps) then I renamed the main index file under
ROOT, so there is not one, then when I goto root in
the browser I get a dir tree. there is my jsp folder
BUT when I click on it it says resource is not
available!!
what I did was I changed the grp on the folder to be
tomcat4, just as the other items are.
why can't I see this folder and get to a jsp in there?

the docs are confusing and all they talk about is
setting up web apps and stuff, I am far from this, I
just want to do a very tests to get going.
Do I need to create web app for each of them?

I have looked online and have not found the answer,
please help!
Thanks

tomcat 4.1.24
redhat 7.3
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: restarting the server

2003-06-23 Thread John Turner
Server.xml is not read dynamically.  If you need to deploy, stop, start, 
and otherwise manage web applications without restarting the server, try 
the manager and admin applications that are included with every Tomcat 
installation.  That's what they are for, and this is all covered in the 
docs.

John

On Sun, 22 Jun 2003 16:06:41 -0700 (PDT), [EMAIL PROTECTED] wrote:

how comes my dir under the webapps dir did not work
until I restarted the server?
everytime you install or add one of these you need to
rerstart it? is there a good reason for that?
I tried everything, a guy on this list told me what to
do and I followed it, nothing, restarted the server
and bam, works like a charm.
thanks.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: multiple connectors

2003-06-23 Thread Peter.Kerekes
Can you be more specific, pleae,  about the solution.

The reason why I need this solution is that
I'm running two webbaps, and for the one of them
I need secure connection, while the other one
should work with a non-secure connection too.

 
 You could if each connector were in its own Service. But I 
 fail to see any 
 reason why this would be done.
 
 -Tim


  I have 2 connectors configured, in my Tomcat one secure, 
 one non-secure.
  
  Can I configure two webapps in such way, that one would use
  ONLY the secure connector, the other ONLY the non-secure ?

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



Re: JK2 config

2003-06-23 Thread Nikola Milutinovic
 There are plenty of examples of both JK and JK2 configurations in the list 
 archives.  The topic comes up DAILY, and frankly, I don't think you can 
 blame people when they tire of posting the same thing day in and day out to 
 essentially the same questions.

Hi John.

I have found a link to Tomcat's site which holds a very good explanation for JK2. I'd 
sugest you place it into the distribution of TC and also add it to the newly created 
FAQ.

Basically, what we all need is just what that doc gives 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

Hope this helps.

Nix.


Re: Alternatives to DBCP

2003-06-23 Thread Tim Funk
Yup - you will might also need to replace instances commons-collections and 
commons-pool

-Tim

[EMAIL PROTECTED] wrote:
Thanks will do.  Presumably I just then replace the JAR file in the 
common\lib directory of the server?
thx
Pete





Tim Funk [EMAIL PROTECTED]
23/06/2003 13:16
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Alternatives to DBCP

There was recently a similar complaint in common-dev.

DBCP hasn't had a release in a very long time and has significant bug 
fixes 
in it with respect to connection handling (i think).

So your best best is to checkout from HEAD (jakarta-commons/dbcp) and 
build 
from source. There are also some milestone tags with respect to struts 
since 
the last official dbcp release, so checking out with one of the tags 
instead 
might help if a new bug was introduced since the 1.0 release.

-Tim
 


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


Re: Configuring Apache to work with Tomcat

2003-06-23 Thread John Turner
First, if you have Apache 2.0.46, you won't be able to use the mod_jk 
binary file that is marked for use with 2.0.46.  I had to use mod_jk-2.0.43 
instead, I am not sure why.

Second, please post the relevant portions of your server.xml file that 
generate mod_jk.conf.  It does work, so if it isn't working for you, 
there's either something wrong with your server.xml or there is something 
tweaked on your system, like no write permissions to a directory.

John

On Mon, 23 Jun 2003 00:14:29 -0700, Matt Kwid [EMAIL PROTECTED] wrote:

I have tried following these steps before with the newer versions of both
servers that I am working with.  I also just tried it again with the 
version
of Tomcat that is used in the howto with the newest version of Apache,
using mod_jk_2.0.46.dll to match the release.  I keep getting to this 
step,

Save the changes you made to server.xml. Restart the Tomcat service. 
Wait a
few seconds, and then check to see if there is a file called mod_jk.conf 
in
c:\tomcat\tomcat-4-1-18\conf\auto
(c:\tomcat\tomcat-4-1-18\conf\auto\mod_jk.conf). If there is, all is 
well.

The new mod_jk.conf file is not being created.

Any and all suggestions are appreciated.

~Matt

-Original Message-
From: Logan Scott [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:20 PM
To: Tomcat Users List
Subject: RE: Configuring Apache to work with Tomcat
Try this:

http://www.johnturner.com/howto/winxp-howto.html

-Original Message-
From: Matt Kwid [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:12 PM
To: [EMAIL PROTECTED]
Subject: Configuring Apache to work with Tomcat
Greetings,

I just read through a bunch of the emails sent at the mail archive for 
this
mailing list and read about other issues concerning mod_jk as well as the
many different versions of mod_jk configurations for different versions 
of
Tomcat.

I have followed the  for the impatients JK documentation that comes in 
my
installations Tomcat docs to the T on two Windows XP machines multiple 
times
to no avail.  I am working with Tomcat 4.1.24 and Apache 2.0.46.  I am 
able
to load the pages found at http://localhost and
http://localhost:8080/index.jsp for both servers.

Can someone please give me a hand in configuring them to work together or
point me to any resources?
~Matt the noob

-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


TOMCAT's WEBDAV question

2003-06-23 Thread DTC
Hi 
I am trying to use Tomcat's implementation of WEBDAV for my file upload requirement 
.After deploying webDAV as a web folder, I need to open to webdav as a webfolder, and 
upload files by dragging them over from Windows Explorer to IE . 
 
By default, Tomcat’s webDAV does not have a configurable property where we can set the 
rootpath of where the files will be uploaded to (eg. C:/tmp).  I think TOMCAT’s 
implementation “PUTs” the file based on a relative path to the webdav web app 
directory .
 
Right now, when you drag a file over to the webdav folder, it’s treated as a “PUT” 
method, and it will invoke “DefaultServlet”’s service() to do the uploading.
 
Do you know if it is possible to set an absolute root path with Tomcat's webDAV ? if 
it's not configurable, how would we change the code to do this ? 
 
I have been looking at WebDAVServlet, but found no solution yet how to control where 
the files will be sent to .  
 
- Ch

 


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

invalid reference to form login page

2003-06-23 Thread Jan Pekník
Hello, I'm using container-managed security features in TC 4.1,
and I'm receiving error:

invalid reference to form login page

when trying to login user. I use form-based authentication and have a page
with appropriate configured
form (j_username,j_password, etc). Where is the problem?

Thanks, Jan Peknik.




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



Re: multiple connectors

2003-06-23 Thread Tim Funk
If one app *needs* a secure connection edit web.xml to guarantee it:
http://jakarta.apache.org/tomcat/faq/security.html#https
But with this scenario the other app may also run via https if linked to in 
that manner (or someone types https://... in ). To prevent this - the easy 
way is to create a filter for that webapp which disallows https access. (or 
lookup the correct apache directive to disallow)

-Tim

[EMAIL PROTECTED] wrote:
Can you be more specific, pleae,  about the solution.

The reason why I need this solution is that
I'm running two webbaps, and for the one of them
I need secure connection, while the other one
should work with a non-secure connection too.
 

You could if each connector were in its own Service. But I 
fail to see any 
reason why this would be done.

-Tim



I have 2 connectors configured, in my Tomcat one secure, 
one non-secure.

Can I configure two webapps in such way, that one would use
ONLY the secure connector, the other ONLY the non-secure ?


-
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]


Re: Virtual domains with Tomcat

2003-06-23 Thread John Turner
It is trivial in Tomcat as well.

For each Apache ServerName, you will need a corresponding Host entry in 
Tomcat's server.xml.  Make sure each virtual host in Tomcat's server.xml 
has its own appBase.

For the VirtualHost you posted:

Host name=dookoo.totalflood.com appBase=/var/jakarta/totalflood
  Context path= docBase=ROOT /
/Host
...or something very similar.  Put your JSPs in 
/var/jakarta/totalflood/ROOT.  Make sure there is a directory called 
/var/jakarta/totalflood/ROOT/WEB-INF.  Delete your Directory entry that 
allows all, and instead add a Directory entry that restricts WEB-INF and 
META-INF.  This is all covered in the docs for Host and for Context.  An 
example of what configuration for Apache looks like, for a virtual host 
named localhost, is here:

http://www.johnturner.com/howto/mod_jk_conf.html

John

On Fri, 20 Jun 2003 18:21:20 -0700, Stephen Carville 
[EMAIL PROTECTED] wrote:

How can I get Tomcat to recognize virtual domains?  This is trivial with 
Apache and I can get Apache to fetch the correct jsp but I cannot get 
timcat to process it.  If I turn off tomcat, apache sends the jsp source. 
If I turn tomcat on, I get the error 404 page

workers.properties:

workers.tomcat_home-/var/jakarta/tomcat
workers.java_home=/usr/java/jdk
ps=/
# worker list
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
jk.conf: (Included by the httpd.conf file)

LoadModule jk_module modules/mod_jk.so
JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile   /var/log/httpd/mod_jk.log
example Virtual Host

VirtualHost *
ServerName  dookoo.totalflood.com
DocumentRoot/var/jakarta/totalflood/ROOT
Directory /var/jakarta/totalflood/ROOT
order allow,deny
allow from all
/Directory
DirectoryIndex  HomePage.jsp
ErrorLog/var/log/httpd/totalflood-error.log
JkMount /*.jsp  ajp13
/VirtualHost


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: installing a servlet

2003-06-23 Thread John Turner
There's no URL mapping in workers2.properties that would send your servlet 
request to Tomcat.

The only requests for www.tgds.net that will ever get to Tomcat are those 
URLs that end in *.jsp because of this mapping:

[uri:www.tgds.net/*.jsp]

If you want to map another URI, such as www.tgds.net/servlet/* you have 
to add it.

John

On 23 Jun 2003 10:14:48 +0200, Tony Grant [EMAIL PROTECTED] wrote:

On Fri, 2003-06-20 at 14:33, John Turner wrote:

Please post:
- workers2.properties

# Define the communication channel

[shm]
file=/var/log/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:212.100.232.223/*.jsp]
worker=ajp13:localhost:8009
[uri:www.tgds.net/*.jsp]
worker=ajp13:localhost:8009
- relevant Host section from server.xml
Host name=www.tgds.net debug=0
appBase=/var/tomcat4/webapps unpackWARs=true autoDeploy=true
Aliaslocalhost/Alias
Aliaswww/Alias
Alias212.100.232.223/Alias
		Context path= docBase= debug=1/

Context path=/lmstk docBase=/var/tomcat4/webapps/lmstk
debug=0/
Context path=/jFormMail
docBase=/var/tomcat4/webapps/jformmail debug=1/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=tgds_access_log.
suffix=.txt
pattern=common resolveHosts=false/

/Host

- relevant Context section from server.xml
- servlet and servlet-mapping tags for this servlet from web.xml
servlet
servlet-namejFormMail/servlet-name
servlet-classFormMail/servlet-class
/servlet
servlet-mapping
servlet-namejFormMail/servlet-name
url-pattern/jFormMail/url-pattern /servlet-mapping
As I said the webapps work just fine. This servlet will only work if
Tomcat is running standalone.
Cheers

Tony Grant


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Container managed security

2003-06-23 Thread Shapira, Yoav

Howdy,
App1 and App2 can have completely separate realms.  Read the Realm
configuration reference.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Stephen Ting [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 11:17 PM
To: [EMAIL PROTECTED]; 'Jboss Mailing List'
Subject: Container managed security

Hi All,

May i know is it possible to have more than one login config for a
single container. Says i have 2 applications running on different
context; APP1 and APP2 both of them using container managed security.
But required seperate login credential. Can i mantain 2 or more set of
users and roles data? I need to do this because both APP1 and APP2 is
the same application running in same container and configured with same
ROLES rules.  But the applications are used by different group of users
and have different set of data. Therefore users who can logon to APP1
can't logon to APP2 and reverse. Can anyone shows me how to archive
this?

I am using JBoss 3.0.7 bunble with Tomcat 4.1.24


Any help are very much appreciated.



Regards,

Stephen Ting




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]



RE: Bugs with Session Replication

2003-06-23 Thread Carlos-Roberto Queiroz

  Thanks for the reply, Filip, I´ve already found out the problem.
After I first tried the serverside article, I deleted javagroups.jar and
tomcat-javagroups.jar from server/lib before running the second article
(duh!!), that was the cause of all those hexa characters. When I put them
back, it worked fine. After using it for some time, our application
randomly returns the following message :

Fatal Error


Ispec:MENU4


Routine : doPost


System Message : Read of HTTP Request POST parameters failed: read 
content length


  However, after such error, the session still goes on. Could it be
that replication is not sending the entire session attributes ?





   

  Filip Hanik

  [EMAIL PROTECTED] To:   Tomcat Users List 
[EMAIL PROTECTED]  
   cc:   [EMAIL PROTECTED]   
 
  21/06/2003 05:32 Subject:  RE: Bugs with Session 
Replication 
  PM   

   

   





(http://cvs.apache.org/~fhanik/index.html)

works fine,

turn off your debugging --debug=10 set to debug=0 and nothing will be
printed
the article on theserverside only works for Tomcat 4.0.x not 4.1.x.
filip

 -Original Message-
 From: Carlos-Roberto Queiroz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2003 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: Bugs with Session Replication


   Hello, could anyone help me ? I ´ve tried three implementations for
 session replication with Tomcat (4.1.18 on Red Hat 7.2) but I´ve got
 problems with all of them. I first used the solution discussed in Filip
 Hanik´s article on ServerSide, In Memory Session Replication in
 Tomcat 4,
 but every time I entered our application there was a StackOverflowError
 with literally thousands of calls for method expire(). Then I tried the
 article Tomcat 4 Clustering - How to from the same author
 (http://cvs.apache.org/~fhanik/index.html), but I noticed a huge amount
of
 hexadecimal characters being inserted in catalina.out, and that will
 trouble administration, since even a tail command halts trying to read
the
 file. At last, I tried the PersistentManager that comes with comments
 inside server.xml, but it seemed not to work at all. I could really use
 some advice on that.


 Thanks



 -
 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]



Re: Apache-Tomcat mod_jk Problem

2003-06-23 Thread John Turner
Did you restart Tomcat to generate a new mod_jk.conf file?  If so, did you 
also restart Apache so that it picks up the new changes?  If so, can you 
post the new mod_jk.conf file that shows the new configuration?

Have you tried it without using the Alias command in server.xml?

John

On Sat, 21 Jun 2003 11:55:16 -0700 (PDT), Sam at Yahoo 
[EMAIL PROTECTED] wrote:

I tried both of your URLs and they seem to be working
now! I'm trying to do the exact same thing...but am
having problems.   I've got it all working with
localhost but can't get it working with my domain name
(e.g. http://localhost/examples vs
http://www.mydomain.com/examples).  Can you give me
any hints or suggestions on what I need to change in
my httpd.conf and server.xml?
I haven't set up any virtual hosts in my httpd.conf
and have added the following Alias line in my
server.xml (in Host definition):
Host name=localhost debug=0
appBase=webapps unpackWARs=true autoDeploy=true
Aliaswww.mydomain.com/Alias
This didn't help me.  Any suggestions?



--- Dave Wicks [EMAIL PROTECTED] wrote:
I have recently setup mod_jk with Apache 2.0.40
serving as a proxyfor Tomcat 4.1.24.
The problem is that some redirects don't work
correctly.
e.g. Access the login.jsp on Tomcat directly (port
8080)  login (tomcat/password), this works fine!
http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp
then try the proxy:

http://funbox.hopto.org/examples/jsp/security/protected/login.jsp
This only results on a 404 from the Apache server.

Can someone please suggest why?

Also, would the remedy work over SSL?

Many Thanks


_
Hotmail is now available on Australian mobile
phones. Go to  http://ninemsn.com.au/mobilecentral/signup.asp


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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to access a specific session in a servlet

2003-06-23 Thread Shapira, Yoav

Howdy,

I am pretty newbie with servlets and I got stock now. How can I access
a
specific session from Servlet?

You mean a specific session by its ID?  This is possible with a little
work (see below), but not usually a good idea.  If you want the current
user session, just use request.getSession().  From you message, I think
this is really what you want.  If servlet one calls the above, it will
get a session.  If servlet1 puts stuff in the session, and then servlet2
calls request.getSession() it will get the same session (for the same
user).

Try it out first before trying this:

To get a specific session by ID, you need to keep a map of them.  Use an
HttpSessionListener, e.g.
public class SessionTracker implements HttpSessionListener {
  private static Map sessionsById;

  public void sessionCreated(HttpSessionEvent hse) {
if(sessionsById == null) {
  sessionsById = Collections.synchronizedMap(new HashMap());
}

sessionsById.put(hse.getSession().getId(), hse.getSession());
  }

  public void sessionDestroyed(HttpSessionEvent hse) {
sessionsById.remove(hse.getSession().getId());
  }

  public static HttpSession getSession(String sessionId) {
return (HttpSession)sessionById.get(sessionId);
  }
}

Then you servlets can do SessionTracker.getSession(sessionId) to get a
specific session.  But like I said, I don't think you need the above.

Yoav Shapira





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]



RE: How to serialize an object which is put in the session ?

2003-06-23 Thread Shapira, Yoav

Howdy,

I have a class which implements the HttpSessionBindingListener
interface. I
want to serialize this object and all sessions when the context is
reloaded.

That's a pain to do.  The contextDestroyed() event in the
ServletContextListener is too late.  The sessionDestroyed() event in the
HttpSessionListener is a good place to do this for one session.  This
event will get called once for each session when the container is
shutting down, so you'd have to serialize each session separately.


It is essential because three deveopers are using the same server and
if

Bad idea.  One developer per server will save you a lot of problems,
including this one.

throwing Nullpointer exception after reload. How to know that the
object
and
session is saved when the context is reloaded.

Use logging in the object to tell you I'm being saved or I'm being
restored.

The 4.0.3 version gves better logs.

I completely disagree with that ;)  I think every version of tomcat has
given better logs than its predecessor.

Yoav Shapira



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]



RE: Tomcat 4 and DecodeInterceptor

2003-06-23 Thread Shapira, Yoav

Howdy,

 Your DecodeInterceptor usage covered inappropriately designed web
page ;)

That's the entire point of DecodeInterceptor ;).  While it does a
pretty
good job of guessing the char-set, it's real power is to give a
(Tomcat-specific) way to use the functionality of
request.setCharacterEncoding (which is new in the 2.3 spec).

Ahh, I forgot that wasn't in the 2.2 spec ;)  Thanks -- now the
DecodeInterceptor makes much more sense.

Yoav Shapira



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]



RE: XP - JDev - forward() - NoSuchMethodException

2003-06-23 Thread Shapira, Yoav

Howdy,
Umm, there IS no such method ;)  You have to include the request and
response as parameters to the forward method of RequestDispatcher.  I'm
surprised your classes even compile, but then again I've seen IDEs like
JDeveloper do evil things.

Post the entire stack trace and relevant source code...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Joe McGranaghan [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 8:00 PM
To: [EMAIL PROTECTED]
Subject: XP - JDev - forward() - NoSuchMethodException

I'm develping a web app in JDeveloper on XP and then trying to deploy
it to
tomcat4 on my localhost. All is well until my servlets try to call
RequestDispatcher.forward(). At this point, tomcat gets an internal
server
exception that can be traced back to a NoSuchMethodException at the
forward() call. I've tried everything I can possibly think of and have
found
reading. Has anyone ran into this particular problem?

_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


-
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]



Where to place the tomcat distribution in file system

2003-06-23 Thread Hayo Schmidt
Neil Zanella schrieb:

[...]

This sets CATALINA_HOME correctly according to the current installation of 
tomcat4 under /var/tomcat4 (whose correctness according to FHS I am not
yet convinced of).
 

What's the official recommendation?

The RedHat rpm, which BTW is not marked as RedHat in jakarta download 
area, installs in /var/tomcat4. UnitedLinux 1.0 installs in 
/opt/jakarta/tomcat. I thought it would be a good idea to install in 
/usr/java/tomcat.

Hayo

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


Re: Where to place the tomcat distribution in file system

2003-06-23 Thread John Turner
I don't think there is an official recommendation.  I put anything 
unrelated to the official OS distribution under /usr/local, but that's me.

John

On Mon, 23 Jun 2003 15:25:14 +0200, Hayo Schmidt [EMAIL PROTECTED] wrote:

Neil Zanella schrieb:

[...]

This sets CATALINA_HOME correctly according to the current installation 
of tomcat4 under /var/tomcat4 (whose correctness according to FHS I am 
not
yet convinced of).


What's the official recommendation?

The RedHat rpm, which BTW is not marked as RedHat in jakarta download 
area, installs in /var/tomcat4. UnitedLinux 1.0 installs in 
/opt/jakarta/tomcat. I thought it would be a good idea to install in 
/usr/java/tomcat.

Hayo

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Virtual domains with Tomcat

2003-06-23 Thread John Turner
Yes.  In general, for every Apache ServerName, you need a corresponding 
Host entry in Tomcat's server.xml.

The Apache connectors are just pipelines, they do not do any work on behalf 
of Tomcat.  Thus, when Tomcat receives the request, it has to do the same 
sort of host header processing that Apache has to do.  If Tomcat cannot 
find a Host entry that corresponds to the HTTP Host Header it is receiving 
on the request, it will default to the host name listed in the defaultHost 
parameter in server.xml.  Apache does the same thing...if it can't find a 
VirtualHost to match the host header, it defaults to the global 
VirtualHost, or rather the global ServerName.

The syntax for defining a virtual host in Tomcat's server.xml is different 
than Apache's httpd.conf, but the principles and concepts are the same.

John

On Mon, 23 Jun 2003 11:00:58 +0200, Nikola Milutinovic 
[EMAIL PROTECTED] wrote:

How can I get Tomcat to recognize virtual domains?  This is trivial with 
Apache and I can get Apache to fetch the correct jsp but I cannot get 
timcat to process it.  If I turn off tomcat, apache sends the jsp 
source.  If I turn tomcat on, I get the error 404 page
Anything in the logs?

I'm not totally sure, but I think you need to match VHosts in your Apache 
and your Tomcat. I'll be testing exactly that today with mod_jk2, Apache 
2.0.46 and Tomcat 4.1.24. For mod_webapp it is definite - you need:

Service ...
Connector ...
Engine ...
Host name=my-vhost.domain.com ...
Context docBase=... path=../

/Host
/Service
I think the same applies to all other connectors: mod_jk, mod_jk2 and 
HTTP.

Nix.



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


TOMCAT webDAV question

2003-06-23 Thread Dinh, Chinh
Hi 
I am trying to use Tomcat's implementation of WEBDAV for my file upload
requirement .After deploying webDAV as a web folder, I need to open to
webdav as a webfolder, and upload files by dragging them over from Windows
Explorer to IE . 
 
By default, Tomcat's webDAV does not have a configurable property where we
can set the rootpath of where the files will be uploaded to (eg. C:/tmp).  I
think TOMCAT's implementation PUTs the file based on a relative path to
the webdav web app directory .
 
Right now, when you drag a file over to the webdav folder, it's treated as a
PUT method, and it will invoke DefaultServlet's service() to do the
uploading.
 
Do you know if it is possible to set an absolute root path with Tomcat's
webDAV ? if it's not configurable, how would we change the code to do this ?

 
I have been looking at WebDAVServlet, but found no solution yet how to
control where the files will be sent to .  
 
- Ch
 


Admin app not working..

2003-06-23 Thread Nick Stuart
Good morning all! I'm having issues with getting the admin app to work
correctly on 4.1.24. I can log into it fine and everything appears to be
normal, but when I go to try and do anything I get the following
exception:

type Status report

message Servlet action is currently unavailable

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

And after that if I hit the reload button the following pops up
(truncated to shorten message):

org.apache.jasper.JasperException: Cannot find message resources under
key org.apache.struts.action.MESSAGE
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) .

root cause 

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).

I get this everytime I try to run the admin app. I'm running tomcat
4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
fine, along with all of my apps. Its only the admin app that appears to
busted. Any ideas/suggestions on how to get it working would be great!

Thanks for your help!
-Nick


RE: Admin app not working..

2003-06-23 Thread Roberts, Eric
Hi,

You have a bad download of the admin app.

This typically occurs if you unzipped it with the wrong utility, or copied from 
Windows to Unix improperly.

HTH

-Original Message-
From: Nick Stuart [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 16:36
To: Tomcat
Subject: Admin app not working..


Good morning all! I'm having issues with getting the admin app to work
correctly on 4.1.24. I can log into it fine and everything appears to be
normal, but when I go to try and do anything I get the following
exception:

type Status report

message Servlet action is currently unavailable

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

And after that if I hit the reload button the following pops up
(truncated to shorten message):

org.apache.jasper.JasperException: Cannot find message resources under
key org.apache.struts.action.MESSAGE
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) .

root cause 

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).

I get this everytime I try to run the admin app. I'm running tomcat
4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
fine, along with all of my apps. Its only the admin app that appears to
busted. Any ideas/suggestions on how to get it working would be great!

Thanks for your help!
-Nick

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



RE: JK2 config

2003-06-23 Thread Atreya Basu
Hi Nikola,

The document that you are referring to, I think, is incomplete or wrong.
When I tried it I found that some sections were in correct or
misleading, or just didn't work.  So I found it best to just ignore that
document.  

As a side note, is there any reason why version 2.0.2 of JK2 doesn't
include a Linux binary?  I've built one myself but shouldn't there be a
binary?  Are there some settings that are hard coded when the library
gets compiled?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 9:39 AM
To: Tomcat Users List
Subject: Re: JK2 config

 There are plenty of examples of both JK and JK2 configurations in the
list 
 archives.  The topic comes up DAILY, and frankly, I don't think you
can 
 blame people when they tire of posting the same thing day in and day
out to 
 essentially the same questions.

Hi John.

I have found a link to Tomcat's site which holds a very good explanation
for JK2. I'd sugest you place it into the distribution of TC and also
add it to the newly created FAQ.

Basically, what we all need is just what that doc gives
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

Hope this helps.

Nix.


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



RE: Where to place the tomcat distribution in file system

2003-06-23 Thread Atreya Basu
I put Tomcat in the same place where Apache likes to go:  /usr/local.

I don't make symbolic links anywhere because they are a pain to clean up
later and I like everything to be in one place.  But that may just be
because I'm from a Windows background where everything (should go)goes
in /Program Files.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Hayo Schmidt [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 10:25 AM
To: Tomcat Users List
Subject: Where to place the tomcat distribution in file system

Neil Zanella schrieb:

[...]


This sets CATALINA_HOME correctly according to the current installation
of 
tomcat4 under /var/tomcat4 (whose correctness according to FHS I am not
yet convinced of).
  

What's the official recommendation?

The RedHat rpm, which BTW is not marked as RedHat in jakarta download 
area, installs in /var/tomcat4. UnitedLinux 1.0 installs in 
/opt/jakarta/tomcat. I thought it would be a good idea to install in 
/usr/java/tomcat.

Hayo


-
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]



RE: Apache Web Server + Tomcat Integration with Domain Name?

2003-06-23 Thread Phillip Qin
If you use Apache + Tomcat, you need to replace server name in apache's
httpd.conf.

-Original Message-
From: Sam at Yahoo [mailto:[EMAIL PROTECTED] 
Sent: June 21, 2003 2:01 PM
To: [EMAIL PROTECTED]
Subject: Apache Web Server + Tomcat Integration with Domain Name?

Hi,

I've integrated my Apache Web Server and Tomcat Server
using John Turner's helpful HOWTO website 
http://www.johnturner.com/howto/winxp-howto.html.  I'm
running on Windows 2000.  

I followed the example using localhost and everything
works fine.  The following URLS work:

http://localhost  
http://localhost:8080/examples/jsp/index.html 
http://localhost/examples/jsp/index.html 

However, I do have a registered domain name that has 
DNS entry. I would like to make the following URLs
work:

http://www.mydomain.com
http://www.mydomain.com:8080/examples/jsp/index.html 
http://www.mydomain.com/examples/jsp/index.html

How do I make this work?  

I tried this in my server.xml but it didn't work:

  Host name=localhost debug=0
appBase=webapps 
   unpackWARs=true autoDeploy=true
Aliaswww.mydomain.com/Alias
...

Can anyone help me, please?

-Sam


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


RE: Admin app not working..

2003-06-23 Thread Nick Stuart
Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
and untarred with tar xzf file name
I didnt copy anything over from another machine or anything. I had this
issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
.24 would help, but apparently not.

Thanks for the suggestion.


On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
 Hi,
 
 You have a bad download of the admin app.
 
 This typically occurs if you unzipped it with the wrong utility, or copied from 
 Windows to Unix improperly.
 
 HTH
 
 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: 23 June 2003 16:36
 To: Tomcat
 Subject: Admin app not working..
 
 
 Good morning all! I'm having issues with getting the admin app to work
 correctly on 4.1.24. I can log into it fine and everything appears to be
 normal, but when I go to try and do anything I get the following
 exception:
 
 type Status report
 
 message Servlet action is currently unavailable
 
 description The requested service (Servlet action is currently
 unavailable) is not currently available.
 
 And after that if I hit the reload button the following pops up
 (truncated to shorten message):
 
 org.apache.jasper.JasperException: Cannot find message resources under
 key org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) .
 
 root cause 
 
 javax.servlet.ServletException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).
 
 I get this everytime I try to run the admin app. I'm running tomcat
 4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
 fine, along with all of my apps. Its only the admin app that appears to
 busted. Any ideas/suggestions on how to get it working would be great!
 
 Thanks for your help!
 -Nick
 
 -
 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]



RE: Admin app not working..

2003-06-23 Thread Shapira, Yoav

Howdy,
Are you familiar with the differences between GNU tar and most unix os
tar utilities, especially with respect to handling long file paths in
the tar file?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Nick Stuart [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:48 AM
To: Tomcat Users List
Subject: RE: Admin app not working..

Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
and untarred with tar xzf file name
I didnt copy anything over from another machine or anything. I had this
issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
.24 would help, but apparently not.

Thanks for the suggestion.


On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
 Hi,

 You have a bad download of the admin app.

 This typically occurs if you unzipped it with the wrong utility, or
copied from Windows to Unix improperly.

 HTH

 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: 23 June 2003 16:36
 To: Tomcat
 Subject: Admin app not working..


 Good morning all! I'm having issues with getting the admin app to
work
 correctly on 4.1.24. I can log into it fine and everything appears to
be
 normal, but when I go to try and do anything I get the following
 exception:

 type Status report

 message Servlet action is currently unavailable

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

 And after that if I hit the reload button the following pops up
 (truncated to shorten message):

 org.apache.jasper.JasperException: Cannot find message resources
under
 key org.apache.struts.action.MESSAGE
 at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
254)
 at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
.

 root cause

 javax.servlet.ServletException: Cannot find message resources under
key
 org.apache.struts.action.MESSAGE
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte
xtIm
pl.java:533)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
 at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).

 I get this everytime I try to run the admin app. I'm running tomcat
 4.1.24 on Mandrake 9.1. And also, the manager app appears to be
working
 fine, along with all of my apps. Its only the admin app that appears
to
 busted. Any ideas/suggestions on how to get it working would be
great!

 Thanks for your help!
 -Nick

 -
 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]




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]



RE: Admin app not working..

2003-06-23 Thread Roberts, Eric
On the main Tomcat distribution site it states:

NOTE: The tar files in this distribution use GNU tar extensions, and must be untarred 
with a GNU compatible version of tar. The version of tar on Solaris and Mac OS X will 
not work with these files.

We have also on this list noted other OS's that this applies to (HP for definite).

This warning does not appear on mirror sites!

The admin app is particularly susceptible to this.

Rgeards

eric


-Original Message-
From: Nick Stuart [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 16:48
To: Tomcat Users List
Subject: RE: Admin app not working..


Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
and untarred with tar xzf file name
I didnt copy anything over from another machine or anything. I had this
issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
...24 would help, but apparently not.

Thanks for the suggestion.


On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
 Hi,
 
 You have a bad download of the admin app.
 
 This typically occurs if you unzipped it with the wrong utility, or copied from 
 Windows to Unix improperly.
 
 HTH
 
 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: 23 June 2003 16:36
 To: Tomcat
 Subject: Admin app not working..
 
 
 Good morning all! I'm having issues with getting the admin app to work
 correctly on 4.1.24. I can log into it fine and everything appears to be
 normal, but when I go to try and do anything I get the following
 exception:
 
 type Status report
 
 message Servlet action is currently unavailable
 
 description The requested service (Servlet action is currently
 unavailable) is not currently available.
 
 And after that if I hit the reload button the following pops up
 (truncated to shorten message):
 
 org.apache.jasper.JasperException: Cannot find message resources under
 key org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ..
 
 root cause 
 
 javax.servlet.ServletException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).
 
 I get this everytime I try to run the admin app. I'm running tomcat
 4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
 fine, along with all of my apps. Its only the admin app that appears to
 busted. Any ideas/suggestions on how to get it working would be great!
 
 Thanks for your help!
 -Nick
 
 -
 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]


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



Re: Virtual domains with Tomcat

2003-06-23 Thread Rick Anderson
When you use virtual hosts on apache2 with mod_jk2 does Tomcat have to 
have the same virtual hosts defined in it's server.xml file?

--Rick Anderson

John Turner wrote:

Yes.  In general, for every Apache ServerName, you need a 
corresponding Host entry in Tomcat's server.xml.

The Apache connectors are just pipelines, they do not do any work on 
behalf of Tomcat.  Thus, when Tomcat receives the request, it has to 
do the same sort of host header processing that Apache has to do.  If 
Tomcat cannot find a Host entry that corresponds to the HTTP Host 
Header it is receiving on the request, it will default to the host 
name listed in the defaultHost parameter in server.xml.  Apache does 
the same thing...if it can't find a VirtualHost to match the host 
header, it defaults to the global VirtualHost, or rather the global 
ServerName.

The syntax for defining a virtual host in Tomcat's server.xml is 
different than Apache's httpd.conf, but the principles and concepts 
are the same.

John

On Mon, 23 Jun 2003 11:00:58 +0200, Nikola Milutinovic 
[EMAIL PROTECTED] wrote:

How can I get Tomcat to recognize virtual domains?  This is trivial 
with Apache and I can get Apache to fetch the correct jsp but I 
cannot get timcat to process it.  If I turn off tomcat, apache sends 
the jsp source.  If I turn tomcat on, I get the error 404 page


Anything in the logs?

I'm not totally sure, but I think you need to match VHosts in your 
Apache and your Tomcat. I'll be testing exactly that today with 
mod_jk2, Apache 2.0.46 and Tomcat 4.1.24. For mod_webapp it is 
definite - you need:

Service ...
Connector ...
Engine ...
Host name=my-vhost.domain.com ...
Context docBase=... path=../

/Host
/Service
I think the same applies to all other connectors: mod_jk, mod_jk2 and 
HTTP.

Nix.








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


RE: Admin app not working..

2003-06-23 Thread Nick Stuart
Ok, but I'm assuming I'm using GNU tar as I'm running Mdk Linux. So I
don't have Solaris or OS X so it shouldn't be an issue. 
And straight from the MAN pages:
tar - The GNU version of the tar archiving utility


On Mon, 2003-06-23 at 10:53, Roberts, Eric wrote:
 On the main Tomcat distribution site it states:
 
 NOTE: The tar files in this distribution use GNU tar extensions, and must be 
 untarred with a GNU compatible version of tar. The version of tar on Solaris and Mac 
 OS X will not work with these files.
 
 We have also on this list noted other OS's that this applies to (HP for definite).
 
 This warning does not appear on mirror sites!
 
 The admin app is particularly susceptible to this.
 
 Rgeards
 
 eric
 
 
 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: 23 June 2003 16:48
 To: Tomcat Users List
 Subject: RE: Admin app not working..
 
 
 Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
 and untarred with tar xzf file name
 I didnt copy anything over from another machine or anything. I had this
 issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
 ...24 would help, but apparently not.
 
 Thanks for the suggestion.
 
 
 On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
  Hi,
  
  You have a bad download of the admin app.
  
  This typically occurs if you unzipped it with the wrong utility, or copied from 
  Windows to Unix improperly.
  
  HTH
  
  -Original Message-
  From: Nick Stuart [mailto:[EMAIL PROTECTED]
  Sent: 23 June 2003 16:36
  To: Tomcat
  Subject: Admin app not working..
  
  
  Good morning all! I'm having issues with getting the admin app to work
  correctly on 4.1.24. I can log into it fine and everything appears to be
  normal, but when I go to try and do anything I get the following
  exception:
  
  type Status report
  
  message Servlet action is currently unavailable
  
  description The requested service (Servlet action is currently
  unavailable) is not currently available.
  
  And after that if I hit the reload button the following pops up
  (truncated to shorten message):
  
  org.apache.jasper.JasperException: Cannot find message resources under
  key org.apache.struts.action.MESSAGE
  at
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ..
  
  root cause 
  
  javax.servlet.ServletException: Cannot find message resources under key
  org.apache.struts.action.MESSAGE
  at
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).
  
  I get this everytime I try to run the admin app. I'm running tomcat
  4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
  fine, along with all of my apps. Its only the admin app that appears to
  busted. Any ideas/suggestions on how to get it working would be great!
  
  Thanks for your help!
  -Nick
  
  -
  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]
 
 
 -
 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]



RE: Admin app not working..

2003-06-23 Thread Nick Stuart
I am not, but I am using the gnu version of tar. See my other response
to Roberts post.

-Nick

On Mon, 2003-06-23 at 10:52, Shapira, Yoav wrote:
 Howdy,
 Are you familiar with the differences between GNU tar and most unix os
 tar utilities, especially with respect to handling long file paths in
 the tar file?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 23, 2003 10:48 AM
 To: Tomcat Users List
 Subject: RE: Admin app not working..
 
 Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
 and untarred with tar xzf file name
 I didnt copy anything over from another machine or anything. I had this
 issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
 .24 would help, but apparently not.
 
 Thanks for the suggestion.
 
 
 On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
  Hi,
 
  You have a bad download of the admin app.
 
  This typically occurs if you unzipped it with the wrong utility, or
 copied from Windows to Unix improperly.
 
  HTH
 
  -Original Message-
  From: Nick Stuart [mailto:[EMAIL PROTECTED]
  Sent: 23 June 2003 16:36
  To: Tomcat
  Subject: Admin app not working..
 
 
  Good morning all! I'm having issues with getting the admin app to
 work
  correctly on 4.1.24. I can log into it fine and everything appears to
 be
  normal, but when I go to try and do anything I get the following
  exception:
 
  type Status report
 
  message Servlet action is currently unavailable
 
  description The requested service (Servlet action is currently
  unavailable) is not currently available.
 
  And after that if I hit the reload button the following pops up
  (truncated to shorten message):
 
  org.apache.jasper.JasperException: Cannot find message resources
 under
  key org.apache.struts.action.MESSAGE
  at
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:
 254)
  at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 .
 
  root cause
 
  javax.servlet.ServletException: Cannot find message resources under
 key
  org.apache.struts.action.MESSAGE
  at
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte
 xtIm
 pl.java:533)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
  at
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).
 
  I get this everytime I try to run the admin app. I'm running tomcat
  4.1.24 on Mandrake 9.1. And also, the manager app appears to be
 working
  fine, along with all of my apps. Its only the admin app that appears
 to
  busted. Any ideas/suggestions on how to get it working would be
 great!
 
  Thanks for your help!
  -Nick
 
  -
  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]
 
 
 
 
 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]



RE: Admin app not working..

2003-06-23 Thread Roberts, Eric
All I can tell is that we run on HP.

To get the admin app to work, I have to download to Windows.

I then use Ant to create a tar.gz of the admin app and this then unzips perfectly on 
our HP machines.

Crazy but true :)

-Original Message-
From: Nick Stuart [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 16:48
To: Tomcat Users List
Subject: RE: Admin app not working..


Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
and untarred with tar xzf file name
I didnt copy anything over from another machine or anything. I had this
issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
...24 would help, but apparently not.

Thanks for the suggestion.


On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
 Hi,
 
 You have a bad download of the admin app.
 
 This typically occurs if you unzipped it with the wrong utility, or copied from 
 Windows to Unix improperly.
 
 HTH
 
 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: 23 June 2003 16:36
 To: Tomcat
 Subject: Admin app not working..
 
 
 Good morning all! I'm having issues with getting the admin app to work
 correctly on 4.1.24. I can log into it fine and everything appears to be
 normal, but when I go to try and do anything I get the following
 exception:
 
 type Status report
 
 message Servlet action is currently unavailable
 
 description The requested service (Servlet action is currently
 unavailable) is not currently available.
 
 And after that if I hit the reload button the following pops up
 (truncated to shorten message):
 
 org.apache.jasper.JasperException: Cannot find message resources under
 key org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ..
 
 root cause 
 
 javax.servlet.ServletException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).
 
 I get this everytime I try to run the admin app. I'm running tomcat
 4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
 fine, along with all of my apps. Its only the admin app that appears to
 busted. Any ideas/suggestions on how to get it working would be great!
 
 Thanks for your help!
 -Nick
 
 -
 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]


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



Re: Apache Web Server + Tomcat Integration with Domain Name?

2003-06-23 Thread John Turner
What do you mean by this?  Please clarify.  It's very easy to have multiple 
ServerNames in a httpd.conf file...each VirtualHost container can have its 
own ServerName...which one, then, are you saying to replace?

John

On Mon, 23 Jun 2003 09:41:13 -0400, Phillip Qin 
[EMAIL PROTECTED] wrote:

If you use Apache + Tomcat, you need to replace server name in apache's
httpd.conf.
-Original Message-
From: Sam at Yahoo [mailto:[EMAIL PROTECTED] Sent: June 21, 2003 
2:01 PM
To: [EMAIL PROTECTED]
Subject: Apache Web Server + Tomcat Integration with Domain Name?

Hi,

I've integrated my Apache Web Server and Tomcat Server
using John Turner's helpful HOWTO website 
http://www.johnturner.com/howto/winxp-howto.html.  I'm
running on Windows 2000.

I followed the example using localhost and everything
works fine.  The following URLS work:
http://localhost  http://localhost:8080/examples/jsp/index.html 
http://localhost/examples/jsp/index.html

However, I do have a registered domain name that has DNS entry. I would 
like to make the following URLs
work:

http://www.mydomain.com
http://www.mydomain.com:8080/examples/jsp/index.html 
http://www.mydomain.com/examples/jsp/index.html

How do I make this work?

I tried this in my server.xml but it didn't work:

Host name=localhost debug=0
appBase=webapps unpackWARs=true autoDeploy=true
Aliaswww.mydomain.com/Alias
...
Can anyone help me, please?

-Sam

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Admin app not working..

2003-06-23 Thread Jason Bainbridge
On Mon, 23 Jun 2003 22:36, Nick Stuart wrote:
 Good morning all! I'm having issues with getting the admin app to work
 correctly on 4.1.24. I can log into it fine and everything appears to be
 normal, but when I go to try and do anything I get the following

What JDK are you using? Did you download the LE or full version of Tomcat? Try 
the full version if you have the LE...

Are there any errors in your CATALINA_HOME/logs/localhost_DDMMYYY.log file 
related to the startup of the admin app?

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



Need help on deploying application

2003-06-23 Thread cknell
I have installed Tomcat on my workstation and I'm able to access the applications 
supplied with the distribution. I have two Tomcat books and I'm trying to deploy an 
application from one of them as a tool to learn Tomcat basics. I am unable to get to 
the application. Below is what I believe to be the essential facts of my situation. I 
would appreciate someone looking over this and telling me where I've gone wrong or 
offering suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24 
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc. 
OS:
Windows XP 
OS version:
5.1 
Processor architecture:
x86 

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I get this error 
message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress application, I get 
this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

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



RE: Need help on deploying application

2003-06-23 Thread Shapira, Yoav

Howdy,
Look at the tomcat logs: what errors are in there?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Need help on deploying application

I have installed Tomcat on my workstation and I'm able to access the
applications supplied with the distribution. I have two Tomcat books
and
I'm trying to deploy an application from one of them as a tool to learn
Tomcat basics. I am unable to get to the application. Below is what I
believe to be the essential facts of my situation. I would appreciate
someone looking over this and telling me where I've gone wrong or
offering
suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc.
OS:
Windows XP
OS version:
5.1
Processor architecture:
x86

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I
get
this error message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress
application, I get this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

--
Charles Knell
[EMAIL PROTECTED] - email

-
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]



RE: Need help on deploying application

2003-06-23 Thread Roberts, Eric
Sounds like the JDK 1.4.1 not liking spaces in the directory paths.

Try putting tomcat in D:\Tomcat4.1

HTH

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 17:20
To: [EMAIL PROTECTED]
Subject: Need help on deploying application


I have installed Tomcat on my workstation and I'm able to access the applications 
supplied with the distribution. I have two Tomcat books and I'm trying to deploy an 
application from one of them as a tool to learn Tomcat basics. I am unable to get to 
the application. Below is what I believe to be the essential facts of my situation. I 
would appreciate someone looking over this and telling me where I've gone wrong or 
offering suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24 
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc. 
OS:
Windows XP 
OS version:
5.1 
Processor architecture:
x86 

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I get this error 
message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress application, I get 
this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

-
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]



Re: Virtual domains with Tomcat

2003-06-23 Thread John Turner
Yes, AFAIK.

As I understand it, the JK/JK2 connectors are pipelines, not pre-or post- 
processors.  They send the request from Apache to Tomcat.  When Tomcat 
receives the request, it is as if Apache doesn't even exist.  Tomcat acts 
the same way it would act if using Tomcat stand-alone.  I could be wrong, 
but I've never been able to successfully setup a virtual hosting 
configuration without defining my virtual hosts in both Apache's httpd.conf 
and Tomcat's server.xml.  If there's a shortcut, I'd love to see it.

John

On Mon, 23 Jun 2003 10:59:33 -0400, Rick Anderson 
[EMAIL PROTECTED] wrote:

When you use virtual hosts on apache2 with mod_jk2 does Tomcat have to 
have the same virtual hosts defined in it's server.xml file?

--Rick Anderson

John Turner wrote:

Yes.  In general, for every Apache ServerName, you need a corresponding 
Host entry in Tomcat's server.xml.

The Apache connectors are just pipelines, they do not do any work on 
behalf of Tomcat.  Thus, when Tomcat receives the request, it has to do 
the same sort of host header processing that Apache has to do.  If 
Tomcat cannot find a Host entry that corresponds to the HTTP Host Header 
it is receiving on the request, it will default to the host name listed 
in the defaultHost parameter in server.xml.  Apache does the same 
thing...if it can't find a VirtualHost to match the host header, it 
defaults to the global VirtualHost, or rather the global ServerName.

The syntax for defining a virtual host in Tomcat's server.xml is 
different than Apache's httpd.conf, but the principles and concepts are 
the same.

John

On Mon, 23 Jun 2003 11:00:58 +0200, Nikola Milutinovic 
[EMAIL PROTECTED] wrote:

How can I get Tomcat to recognize virtual domains?  This is trivial 
with Apache and I can get Apache to fetch the correct jsp but I cannot 
get timcat to process it.  If I turn off tomcat, apache sends the jsp 
source.  If I turn tomcat on, I get the error 404 page


Anything in the logs?

I'm not totally sure, but I think you need to match VHosts in your 
Apache and your Tomcat. I'll be testing exactly that today with 
mod_jk2, Apache 2.0.46 and Tomcat 4.1.24. For mod_webapp it is definite 
- you need:

Service ...
Connector ...
Engine ...
Host name=my-vhost.domain.com ...
Context docBase=... path=../

/Host
/Service
I think the same applies to all other connectors: mod_jk, mod_jk2 and 
HTTP.

Nix.








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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Admin app not working..

2003-06-23 Thread Nick Stuart
*sorry if this goes through twice. sent through wrong account the first
time.*

Looking through the log file the only relevant thing I see in there is
the following section:

2003-06-20 16:55:51 StandardWrapper[/examples:default]: Loading
container servlet default
2003-06-20 16:55:51 StandardWrapper[/examples:invoker]: Loading
container servlet invoker
2003-06-20 16:58:26 HostConfig[localhost]: Deploying configuration
descriptor manager.xml
2003-06-20 16:58:26 WebappLoader[/manager]: Deploying class repositories
to work directory
/home/nstuart/java/tomcat/work/Standalone/localhost/manager
2003-06-20 16:58:26 StandardHost[localhost]: Removing web application at
context path /admin
2003-06-20 16:58:26 StandardHost[localhost]: Removing web application at
context path /webdav
2003-06-20 16:58:26 StandardHost[localhost]: Removing web application at
context path /examples
2003-06-20 16:58:26 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1fc1a6')
2003-06-20 16:58:26 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@e29820')
2003-06-20 16:58:26 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@718242')
2003-06-20 16:58:26 SessionListener: contextDestroyed()
2003-06-20 16:58:26 ContextListener: contextDestroyed()


But that I dont understand. If the admin webapp was removed completely
why would I :
a) be able to log in still
b) be able to even get into the /admin directory

I am using jdk 1.4.2 but had the same issue on 1.4.1. I am also using
the LE version. I will try the full version out and see what happens
with that.

-Nick

On Mon, 2003-06-23 at 11:12, Jason Bainbridge wrote:

 On Mon, 23 Jun 2003 22:36, Nick Stuart wrote:
  Good morning all! I'm having issues with getting the admin app to work
  correctly on 4.1.24. I can log into it fine and everything appears to be
  normal, but when I go to try and do anything I get the following
 
 What JDK are you using? Did you download the LE or full version of Tomcat? Try 
 the full version if you have the LE...
 
 Are there any errors in your CATALINA_HOME/logs/localhost_DDMMYYY.log file 
 related to the startup of the admin app?
 
 Regards,


RE: Admin app not working..

2003-06-23 Thread Nick Stuart
Ok, well it obviously shouldn't be that way. Not bitching at you or
anything, but it sounds like this is/should be known issue and should be
looked at somewhere. :\
Thanks for the info!
-Nick

On Mon, 2003-06-23 at 11:05, Roberts, Eric wrote:
 All I can tell is that we run on HP.
 
 To get the admin app to work, I have to download to Windows.
 
 I then use Ant to create a tar.gz of the admin app and this then unzips perfectly on 
 our HP machines.
 
 Crazy but true :)
 
 -Original Message-
 From: Nick Stuart [mailto:[EMAIL PROTECTED]
 Sent: 23 June 2003 16:48
 To: Tomcat Users List
 Subject: RE: Admin app not working..
 
 
 Hmm...dont see how I would. I downloaded the tar.gz file from jakarta
 and untarred with tar xzf file name
 I didnt copy anything over from another machine or anything. I had this
 issue with twoboth version 4.1.18 and .24. I was hoping the upgrade to
 ...24 would help, but apparently not.
 
 Thanks for the suggestion.
 
 
 On Mon, 2003-06-23 at 10:40, Roberts, Eric wrote:
  Hi,
  
  You have a bad download of the admin app.
  
  This typically occurs if you unzipped it with the wrong utility, or copied from 
  Windows to Unix improperly.
  
  HTH
  
  -Original Message-
  From: Nick Stuart [mailto:[EMAIL PROTECTED]
  Sent: 23 June 2003 16:36
  To: Tomcat
  Subject: Admin app not working..
  
  
  Good morning all! I'm having issues with getting the admin app to work
  correctly on 4.1.24. I can log into it fine and everything appears to be
  normal, but when I go to try and do anything I get the following
  exception:
  
  type Status report
  
  message Servlet action is currently unavailable
  
  description The requested service (Servlet action is currently
  unavailable) is not currently available.
  
  And after that if I hit the reload button the following pops up
  (truncated to shorten message):
  
  org.apache.jasper.JasperException: Cannot find message resources under
  key org.apache.struts.action.MESSAGE
  at
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ..
  
  root cause 
  
  javax.servlet.ServletException: Cannot find message resources under key
  org.apache.struts.action.MESSAGE
  at
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137).
  
  I get this everytime I try to run the admin app. I'm running tomcat
  4.1.24 on Mandrake 9.1. And also, the manager app appears to be working
  fine, along with all of my apps. Its only the admin app that appears to
  busted. Any ideas/suggestions on how to get it working would be great!
  
  Thanks for your help!
  -Nick
  
  -
  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]
 
 
 -
 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]



RE: RE: Need help on deploying application

2003-06-23 Thread cknell
I feel like one of the guys who gets hysterical in an old war movie. His buddy slaps 
him in the face and he immediately calms down and says, Thanks, I needed that! I 
found the information I needed in the log files and I'm proceeding from there. Thanks 
again.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: Shapira, Yoav [EMAIL PROTECTED]
Sent: Mon, 23 Jun 2003 11:22:07 -0400
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Need help on deploying application


Howdy,
Look at the tomcat logs: what errors are in there?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Need help on deploying application

I have installed Tomcat on my workstation and I'm able to access the
applications supplied with the distribution. I have two Tomcat books
and
I'm trying to deploy an application from one of them as a tool to learn
Tomcat basics. I am unable to get to the application. Below is what I
believe to be the essential facts of my situation. I would appreciate
someone looking over this and telling me where I've gone wrong or
offering
suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc.
OS:
Windows XP
OS version:
5.1
Processor architecture:
x86

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I
get
this error message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress
application, I get this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

--
Charles Knell
[EMAIL PROTECTED] - email

-
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]



Re: Need help on deploying application

2003-06-23 Thread Dominic Parry
I've seen this come up as a suggestion many time, and I must disagree. I'm using the 
same set up as him, and I have many spaces in my dirs. It makes no difference. My apps 
all work perfectly, spaces or no.

Just my five cents.

Dom
  - Original Message - 
  From: Roberts, Eric 
  To: Tomcat Users List 
  Sent: Monday, June 23, 2003 5:23 PM
  Subject: RE: Need help on deploying application


  Sounds like the JDK 1.4.1 not liking spaces in the directory paths.

  Try putting tomcat in D:\Tomcat4.1

  HTH

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 23 June 2003 17:20
  To: [EMAIL PROTECTED]
  Subject: Need help on deploying application


  I have installed Tomcat on my workstation and I'm able to access the applications 
supplied with the distribution. I have two Tomcat books and I'm trying to deploy an 
application from one of them as a tool to learn Tomcat basics. I am unable to get to 
the application. Below is what I believe to be the essential facts of my situation. I 
would appreciate someone looking over this and telling me where I've gone wrong or 
offering suggestions on other debugging techniques. Thanks.

  Here is the information from the Tomcat Manager page:
  Tomcat version: Apache Tomcat/4.1.24 
  JVM version:
  1.4.1_02-b06
  JVM supplier:
  Sun Microsystems Inc. 
  OS:
  Windows XP 
  OS version:
  5.1 
  Processor architecture:
  x86 

  My CATALINA_HOME environment variable points to:
  D:\Program Files\Apache Group\Tomcat 4.1

  My application is at this path location:
  D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

  I have the files login.jsp and welcome.jsp in this directory.

  I have this web.xml file in apress\WEB-INF:
  ?xml version=1.0 encoding=ISO-8859-1?

  !DOCTYPE web-app PUBLIC
'-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

  web-app

servlet
  servlet-namelogin/servlet-name
  servlet-classchapter2.login/servlet-class
/servlet

taglib
  taglib-uri/apress/taglib-uri
  taglib-location/WEB-INF/lib/taglib.tld/taglib-location
/taglib

  /web-app

  I have this context element in my server.xml file:
  Context path=/apress docBase=apress debug=0 reloadable=true /

  When I point my browser at http://localhost:8080/apress/login.jsp;, I get this 
error message:
  The requested resource (/apress/login.jsp) is not available.

  When I use the Tomcat Manager application to start the /apress application, I get 
this error message:
  FAIL - Application at context path /apress could not be started

  Can anyone point out where I've gone wrong? Thanks.

  -- 
  Charles Knell
  [EMAIL PROTECTED] - email

  -
  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]



RE: XP - JDev - forward() - NoSuchMethodException

2003-06-23 Thread Joe McGranaghan
I'm sorry to be so inspecific. In my doGet() I get an instance of the 
RequestDispatcher I need and then call forward(request,response). I'm sorry 
to have not said all that. Any further advice will be appreciated.


From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: XP - JDev - forward() - NoSuchMethodException
Date: Mon, 23 Jun 2003 09:11:11 -0400
Howdy,
Umm, there IS no such method ;)  You have to include the request and
response as parameters to the forward method of RequestDispatcher.  I'm
surprised your classes even compile, but then again I've seen IDEs like
JDeveloper do evil things.
Post the entire stack trace and relevant source code...

Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Joe McGranaghan [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 8:00 PM
To: [EMAIL PROTECTED]
Subject: XP - JDev - forward() - NoSuchMethodException

I'm develping a web app in JDeveloper on XP and then trying to deploy
it to
tomcat4 on my localhost. All is well until my servlets try to call
RequestDispatcher.forward(). At this point, tomcat gets an internal
server
exception that can be traced back to a NoSuchMethodException at the
forward() call. I've tried everything I can possibly think of and have
found
reading. Has anyone ran into this particular problem?

_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


-
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]
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: XP - JDev - forward() - NoSuchMethodException

2003-06-23 Thread Shapira, Yoav

Howdy,

I'm sorry to be so inspecific. In my doGet() I get an instance of the
RequestDispatcher I need and then call forward(request,response). I'm
sorry
to have not said all that. Any further advice will be appreciated.

OK ;)  I didn't think it would be so simple.

It's hard to help without you giving the stack trace.  My guess is,
since your code compiles, that you have another servlet.jar in your
runtime classpath.  This one collides with tomcat's
($CATALINA_HOME/common/lib) servlet.jar and causes the NoSuchMethod
exception.

Yoav Shapira



From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: XP - JDev - forward() - NoSuchMethodException
Date: Mon, 23 Jun 2003 09:11:11 -0400


Howdy,
Umm, there IS no such method ;)  You have to include the request and
response as parameters to the forward method of RequestDispatcher.
I'm
surprised your classes even compile, but then again I've seen IDEs
like
JDeveloper do evil things.

Post the entire stack trace and relevant source code...

Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Joe McGranaghan [mailto:[EMAIL PROTECTED]
 Sent: Sunday, June 22, 2003 8:00 PM
 To: [EMAIL PROTECTED]
 Subject: XP - JDev - forward() - NoSuchMethodException
 
 I'm develping a web app in JDeveloper on XP and then trying to
deploy
it to
 tomcat4 on my localhost. All is well until my servlets try to call
 RequestDispatcher.forward(). At this point, tomcat gets an internal
server
 exception that can be traced back to a NoSuchMethodException at the
 forward() call. I've tried everything I can possibly think of and
have
 found
 reading. Has anyone ran into this particular problem?
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail
 
 

-
 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]


_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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]



Re: Need help on deploying application

2003-06-23 Thread Jason Bainbridge
On Mon, 23 Jun 2003 23:39, Dominic Parry wrote:
 I've seen this come up as a suggestion many time, and I must disagree. I'm
 using the same set up as him, and I have many spaces in my dirs. It makes
 no difference. My apps all work perfectly, spaces or no.

It is a valid suggestion for many scenarios but I can never work out as to 
what in particular causes the problem with the spaces to arise, most 
installations are fine but on occasion it will crop up.

I don't think it is the problem in this instance however.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



Logging via log4j and war file question

2003-06-23 Thread Jim Lynch
I recently switch from doing install, remove deployments via a build
directory to deploy, undeploy via a war file.  Unfortuantely my
logging has stopped working.  I've traced it to the following statement:

PropertyConfigurator.configure(getServletContext().getRealPath(/)+/WEB-INF/classes/log4j.properties);

It appears the getRealPath method doesn't work with war files, so I'm a
bit stuck.  How can I configure my logging from a file within the war
file, or can I? 

Thanks,
Jim.

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



RE: XP - JDev - forward() - NoSuchMethodException

2003-06-23 Thread Joe McGranaghan
Yes, this could be the problem. Because I develop on my localhost, my system 
$CLASSPATH variable has the JDeveloper path, as well as the JDK path as 
well. So how can I tell tomcat to only look in ($CATALINA_HOME/common/lib).

Also, wouldn't tomcat throw an Exception on startup if it were attempting to 
load another servlet.jar?

This is the stack trace:

HTTP Status 500 -



type Exception report

message

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

exception

javax.servlet.ServletException: Servlet execution threw an exception
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)

root cause :

java.lang.NoSuchMethodError: 
javax.servlet.http.HttpSessionBindingEvent.(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/Object;)V
	at 
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1262)
	at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
	at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
	at lul.servlets.SearchAttribSetter.doGet(SearchAttribSetter.java:53)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 

Re: Logging via log4j and war file question

2003-06-23 Thread Tim Funk
If log4j is nowhere else other than your war file - log4j.properties should 
automajically be used.

Otherwise - you can use a ServletContextListener

-Tim

Jim Lynch wrote:
I recently switch from doing install, remove deployments via a build
directory to deploy, undeploy via a war file.  Unfortuantely my
logging has stopped working.  I've traced it to the following statement:
PropertyConfigurator.configure(getServletContext().getRealPath(/)+/WEB-INF/classes/log4j.properties);

It appears the getRealPath method doesn't work with war files, so I'm a
bit stuck.  How can I configure my logging from a file within the war
file, or can I? 

Thanks,
Jim. 


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


Re: Logging via log4j and war file question

2003-06-23 Thread Jason Bainbridge
On Tue, 24 Jun 2003 00:01, Jim Lynch wrote:
 I recently switch from doing install, remove deployments via a build
 directory to deploy, undeploy via a war file.  Unfortuantely my
 logging has stopped working.  I've traced it to the following statement:

 PropertyConfigurator.configure(getServletContext().getRealPath(/)+/WEB-I
NF/classes/log4j.properties);

From a previous post (I'd include a link but I searched my local mailbox as 
the archives are notoriously hard to search):

Properties logProp = new Properties();
logProp.load(ActionServlet.getServletContext().getResourceAsStream(/WEB-INF/classes/log4j.properties));
PropertyConfigurator.configure(logProp);

So you want getResourceAsStream instead seeing how the file is contained 
within a WAR file. :)

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



RE: Need help on deploying application

2003-06-23 Thread Atreya Basu
Charles,

Try deploying it without the web.xml file.  

Can you maybe post the login.jsp file that you are trying to use?  I can
see if I can reproduce the problem on my machine.

Another thing that you may try doing is copying a directory in
\webapps\examples\jsp.  Just copy the directory right out into
\webapps\dir.  Then restart Tomcat.  If you get an error try putting
in a WEB-INF directory along with a web.xml file.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 12:20 PM
To: [EMAIL PROTECTED]
Subject: Need help on deploying application

I have installed Tomcat on my workstation and I'm able to access the
applications supplied with the distribution. I have two Tomcat books and
I'm trying to deploy an application from one of them as a tool to learn
Tomcat basics. I am unable to get to the application. Below is what I
believe to be the essential facts of my situation. I would appreciate
someone looking over this and telling me where I've gone wrong or
offering suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24 
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc. 
OS:
Windows XP 
OS version:
5.1 
Processor architecture:
x86 

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I
get this error message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress
application, I get this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

-
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]



Re: Logging via log4j and war file question

2003-06-23 Thread Tim Funk
Somedays, I think I'm going senile. Ignore my second sentence.

-Tim

Tim Funk wrote:
If log4j is nowhere else other than your war file - log4j.properties 
should automajically be used.

Otherwise - you can use a ServletContextListener

-Tim

Jim Lynch wrote:

I recently switch from doing install, remove deployments via a build
directory to deploy, undeploy via a war file.  Unfortuantely my
logging has stopped working.  I've traced it to the following statement:
PropertyConfigurator.configure(getServletContext().getRealPath(/)+/WEB-INF/classes/log4j.properties); 

It appears the getRealPath method doesn't work with war files, so I'm a
bit stuck.  How can I configure my logging from a file within the war
file, or can I?
Thanks,
Jim. 


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


RE: XP - JDev - forward() - NoSuchMethodException

2003-06-23 Thread Shapira, Yoav

Howdy,

well. So how can I tell tomcat to only look in
($CATALINA_HOME/common/lib).

This is a JDeveloper-specific question.  Make sure there's no
servlet.jar in the WEB-INF/lib directory of your web application.

Also, wouldn't tomcat throw an Exception on startup if it were
attempting
to load another servlet.jar?

No, it's not allowed to.


This is the stack trace:
snip
java.lang.NoSuchMethodError:
javax.servlet.http.HttpSessionBindingEvent.(Ljavax/servlet/http/HttpSes
sion
;Ljava/lang/String;Ljava/lang/Object;)V

This is COMPLETELY different from the subject line of this thread and
your original question ;) ;)  Oddly enough, I think the reason might be
the same (conflicting servlet.jar files).

What is the object you're trying to put into the session (via
setAttribute) when this exception occurs?

Yoav Shapira



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]



RE: Logging via log4j and war file question

2003-06-23 Thread Shapira, Yoav

Howdy,
getRealPath() will not work in packed war files.  You need to use
getResouce() or getResourceAsStream().

Although it looks like in this case, log4j.properties is on the
classpath, so log4j will locate and configure automatically.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:01 PM
To: tomcat
Subject: Logging via log4j and war file question

I recently switch from doing install, remove deployments via a
build
directory to deploy, undeploy via a war file.  Unfortuantely my
logging has stopped working.  I've traced it to the following
statement:

PropertyConfigurator.configure(getServletContext().getRealPath(/)+/W
EB-
INF/classes/log4j.properties);

It appears the getRealPath method doesn't work with war files, so I'm a
bit stuck.  How can I configure my logging from a file within the war
file, or can I?

Thanks,
Jim.

-
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]



RE: Need help on deploying application

2003-06-23 Thread Peter.Kerekes
do you have a proper WEB-INF
directory?

I mean, are all the letters uppercase?

Peter

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



Getting servlet to run

2003-06-23 Thread cknell
Environment:
Windows XP, Tomcat 4.1.24, Sun JVM 1.4.1_02-b06

I managed to fix my problem running JSPs in an application directory I created. Now 
I'm moving on to getting a servlet to run. I have copied and compiled two servlets 
from different books. One I put in D:\Program Files\Apache Group\Tomcat 
4.1\webapps\ROOT\WEB-INF\classes. The second one, which is part of a package called 
chapter2 I put in D:\Program Files\Apache Group\Tomcat 
4.1\webapps\apress\WEB-INF\classes\chapter2. Both compiled without complaint. I 
stopped and re-started Tomcat and pointed my browser at each in turn and got these 
messages:

The requested resource (/servlet/HelloWorld) is not available.

The requested resource (/apress/servlet/chapter2.login) is not available.

The log file doesn't show anything suggesting a problem. Do all rank Tomcat beginners 
have this much trouble? If so, how did it get to be so popular? Can anyone suggest an 
approach? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

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



Re: RPMs

2003-06-23 Thread Luciano Kiniti Issoe
try to tail catalina.out to see the errors.

tail -f /var/log/tomcat/catalina.out
if it isn't there look for CATALINA_LOGDIR inside your /etc/tomcat.conf or
/etc/tomcat/conf/tomcat.conf

Luciano

- Original Message - 
From: Neil Zanella [EMAIL PROTECTED]
To: Tomcat Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, June 21, 2003 4:22 AM
Subject: RPMs



 Hello,

 I have installed the tomcat 4 RPMs but when I http to port 8080 I see
 nothing despite the fact that I have started tomcat and apache from
 the /etc/init.d directory. Any ideas?

 Thanks!!!

 Neil


 -
 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]



RE: RE: Need help on deploying application

2003-06-23 Thread cknell
Thank you for your reply. This problem has been solved.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: [EMAIL PROTECTED]
Sent: Mon, 23 Jun 2003 18:55:55 +0200
To:   [EMAIL PROTECTED]
Subject:  RE: Need help on deploying application

do you have a proper WEB-INF
directory?

I mean, are all the letters uppercase?

Peter

-
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]



Configuring SSL and LDAP authentication for Apache 1.3 and Tomcat 4.1

2003-06-23 Thread Chuck Ruffing
Hi,
 
I have Apache 1.3, Tomcat 4.1, and mod_jk installed and working together.  I was able 
to configure Apache to use SSL.  Now, I am required to check the client certificate 
that Apache receives against an LDAP directory on a different server to authenticate 
the user.  Could somebody please help me with this?  I have read about JNDIRealm, but 
I'm unsure as to how everything fits together.  Thanks.



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: Getting servlet to run

2003-06-23 Thread Shapira, Yoav

Howdy,
Part of the problems with books is that they fall out of date with the
product.  Specifically here, the invoker servlet is disabled by default
in tomcat 4.1.24.  The invoker servlet is what runs URLs like
/servlet/servletClassName.

You can comment in the invoker servlet mapping in
$CATALINA_HOME/conf/web.xml, or properly define and map your servlets in
the web.xml file for your applications.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:56 PM
To: [EMAIL PROTECTED]
Subject: Getting servlet to run

Environment:
Windows XP, Tomcat 4.1.24, Sun JVM 1.4.1_02-b06

I managed to fix my problem running JSPs in an application directory I
created. Now I'm moving on to getting a servlet to run. I have copied
and
compiled two servlets from different books. One I put in D:\Program
Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes. The second
one, which is part of a package called chapter2 I put in D:\Program
Files\Apache Group\Tomcat 4.1\webapps\apress\WEB-INF\classes\chapter2.
Both compiled without complaint. I stopped and re-started Tomcat and
pointed my browser at each in turn and got these messages:

The requested resource (/servlet/HelloWorld) is not available.

The requested resource (/apress/servlet/chapter2.login) is not
available.

The log file doesn't show anything suggesting a problem. Do all rank
Tomcat
beginners have this much trouble? If so, how did it get to be so
popular?
Can anyone suggest an approach? Thanks.

--
Charles Knell
[EMAIL PROTECTED] - email

-
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]



Re: Getting servlet to run

2003-06-23 Thread Jason Bainbridge
I suggest that you check out the Application Developer's Guide at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

Your problem stems from the fact that the majority of text books assume the 
servlet invoker is switched on, but the servlet invoker is evil so in recent 
versions of Tomcat it is switched off by default. :)

This means you must map your servlets in your web.xml file, see the FAQ for 
more details:

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 00:56, [EMAIL PROTECTED] wrote:
 Environment:
 Windows XP, Tomcat 4.1.24, Sun JVM 1.4.1_02-b06

 I managed to fix my problem running JSPs in an application directory I
 created. Now I'm moving on to getting a servlet to run. I have copied and
 compiled two servlets from different books. One I put in D:\Program
 Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes. The second
 one, which is part of a package called chapter2 I put in D:\Program
 Files\Apache Group\Tomcat 4.1\webapps\apress\WEB-INF\classes\chapter2.
 Both compiled without complaint. I stopped and re-started Tomcat and
 pointed my browser at each in turn and got these messages:

 The requested resource (/servlet/HelloWorld) is not available.

 The requested resource (/apress/servlet/chapter2.login) is not available.

 The log file doesn't show anything suggesting a problem. Do all rank Tomcat
 beginners have this much trouble? If so, how did it get to be so popular?
 Can anyone suggest an approach? Thanks.


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



RE: Logging via log4j and war file question

2003-06-23 Thread Phillip Qin
You don't need this line of code at all! Log4J automatically searches for
your log4j.properties.

But, as general practice, try avoiding getRealPath... to get java.io.File,
use getServletContext().getResourceAsStream instead.

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 12:01 PM
To: tomcat
Subject: Logging via log4j and war file question

I recently switch from doing install, remove deployments via a build
directory to deploy, undeploy via a war file.  Unfortuantely my
logging has stopped working.  I've traced it to the following statement:

PropertyConfigurator.configure(getServletContext().getRealPath(/)+/WEB-IN
F/classes/log4j.properties);

It appears the getRealPath method doesn't work with war files, so I'm a
bit stuck.  How can I configure my logging from a file within the war
file, or can I? 

Thanks,
Jim.

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


  1   2   >