Database connection Pooling and other questions

2002-01-16 Thread Gerry Duhig

Hi!

We currently have a couple of sites running JBoss-Tomcat. A third
application that used the JBoss part of this setup has been canned leaving
us with two non-EJB applications.

As far as I can determine the only benefits we currently get from JBoss are
the security system and connection pooling on our database connections.

Security I could do within Tomcat - what about connection pooling? IS there
anythung available within or as a simple add-on to tomcat that can supply
connection pooling. If there is we may drop JBoss as the latest
Jboss2.4/Tomcat4.0.1 package seems to have a few problems - no way to read
server.xml etc.

Anyone any comments?

Gerry



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




RE: Database connection Pooling and other questions

2002-01-16 Thread Sanjay Chopra

Gerry

Have you had a look at:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html

Tyrex and all...

I think this should help, unless I am missing something completely..

cheers
Sanjay

-Original Message-
From: Gerry Duhig [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 1:58 PM
To: [EMAIL PROTECTED]; Tomcat Users List
Subject: Database connection Pooling and other questions


Hi!

We currently have a couple of sites running JBoss-Tomcat. A third
application that used the JBoss part of this setup has been canned leaving
us with two non-EJB applications.

As far as I can determine the only benefits we currently get from JBoss are
the security system and connection pooling on our database connections.

Security I could do within Tomcat - what about connection pooling? IS there
anythung available within or as a simple add-on to tomcat that can supply
connection pooling. If there is we may drop JBoss as the latest
Jboss2.4/Tomcat4.0.1 package seems to have a few problems - no way to read
server.xml etc.

Anyone any comments?

Gerry



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



Off Topic apache problem, Strange url behaviour

2002-01-16 Thread Magnus Jansson

Hi!

I have some problems with my URL:s I know this is a TomCat group but I dont know any 
Apache mailing lists. Suggestion please.

When I got to adress: https://mysite/myprotectedfolder 

I get the logging in dialog box, after klicking ok I get an error saying that I'm not 
allowed to access files.
I see at my url and sees that I'm trying to access via http and not https. I suppose 
this is a configuration error but I dont know how to configure.

Here is a snip of my config file in apache that makes the folder protected.

Directory sys:webbar/intranet/matsedel/input
   AuthType Basic
   AuthName Inmatning av matsedeln kräver att du är en giltig användare!
   AuthNDSTree VAD_TREE
   AuthNDSContext vaddo.vaddo_fhsk
   require user .admin.vaddo.vaddo_fhsk .lena.expeditionen.vaddo.vaddo_fhsk 
.annelie.expeditionen.vaddo.vaddo_fhsk .birgitta.expeditionen.vaddo.vaddo_fhsk 
.maj.expeditionen.vaddo.vaddo_fhsk
/Directory

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - 
Magnus Jansson
IT-Manager
Väddö folkhögskola
760 40 Väddö
Sweden

Phone: +46 (0) 176-528 00
Cellular: +46 (0) 70-370 33 16
Fax: +46 (0) 176-528 28
http://www.vaddo.fhsk.se (work)
http://www.jason.pp.se (private)




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


RE: Off Topic apache problem, Strange url behaviour

2002-01-16 Thread Justin Rowles

 I have some problems with my URL:s I know this is a TomCat 
 group but I dont know any Apache mailing lists. Suggestion please.

sarcasm

STFW?

/sarcasm

http://httpd.apache.org/lists.html

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



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




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




Re[4]: Apache1.3.20 TC3.3 authentication

2002-01-16 Thread MTea

LI Which connector are you using mod_jk or mod_jserv?
mod_jserv
This is a must. I couldn't use mod_jk at this time.

-- 
Best regards,
MTea


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




AW: Off Topic apache problem, Strange url behaviour

2002-01-16 Thread Ralph Einfeldt

STFW='Save the funny wale' or 'Search the f*ing web' or what?

 -Ursprüngliche Nachricht-
 Von: Justin Rowles [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 16. Januar 2002 10:56
 An: 'Tomcat Users List'
 Betreff: RE: Off Topic apache problem, Strange url behaviour
snip/
 sarcasm
 
 STFW?
 
 /sarcasm
snip/

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




Re: AW: Get active Sessions from webapp

2002-01-16 Thread Oto Buchta

Dne st 16. leden 2002 07:24 Lauer, Oliver napsal(a):
 Have a look at Craig's answer:

 In a servlet 2.3 environment (Tomcat 4), you can accomplish your goal
 without getting into the innards of the container.  Simple create and
 register an HttpSessionListener, which will be notified every time a
 session within your app is created or destroyed -- it's easy to maintain a
 local HashMap (or something) of the currently active sessions.


It's clear, but how to configure the Listener in the Web-App?

-- 
Oto 'tapik' Buchta

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




kindly confirm the uninstall steps...

2002-01-16 Thread Ruben, Andy B.

Folks-

I loaded a copy of tomcat 3.2.1 on my laptop to test this server platform
for the possibilities of developing .jsp's and as an alternate to IIS.
However, due to a number of reasons, I have decided that migrating the
platform of our webserver at this time is not a priority.

Therefore, I would like to uninstall the Apache software from this laptop. I
have looked through the dir structure for any README documents or uninstall
instructions and could not find anything. Therefore, in order to avoid
%^$ing any configs on this development machine, I wanted to confirm with you
folks the uninstall steps first.  Please reply to confirm the steps below or
correct me so that I can get the cleanest uninstall possible. 

First, the OS on this computer is Windows 2K Professional, and has Tomcat
3.2 on it as well as IIS 5.0. Since I did not see Tomcat (or any reference
to Apache software) listed in the add/remove software area of the control
panel, can I just:
1-Go into the C:/jakarta-tomcat/bin directory and run the shutdown.bat?

2-After shutting down the apache server, then go ahead and DELETE the
entire dir structure from my C:/ ?

I guess that (again) I wanted to double check with you folks since I really
liked the Apache products, but simply cannot find the time to implement this
migration at this time.

Thanks in advance for your help.



Andy Ruben
IT Specialist/Webmaster
http://vaww.cheyenne.med.va.gov
307.778.7523

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




JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM

2002-01-16 Thread babs boyejo

Dear All,

1)how do you set the java_home to the jdk installation
?
2)and will this be in the autoexec.bat or where?
3)where and how do you set the tomcat_home?

Regards
Vic



__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




Using a servlet as apache's root context with mod_jk

2002-01-16 Thread Rusty Geldmacher

Hello.

I'm trying to set up my site with Apache 1.3.22, Tomcat 3.2.2 and
mod_jk.

What I would like is when someone accesses the URL
http://www.mysite.com/, Apache will forward that over to a servlet, and
everything else would be taken care of by Apache (say, everything under
http://www.mysite.com/images/) However, I can't seem to find the right
combination of configuration values to achieve this. Actually, even by
defining a context in Tomcat and using Tomcat standalone this presents a
problem. 

One problem is that if I specify a servlet-mapping for the /
url-pattern, it will always run the servlet, even if i'm requesting
something under /images.  Is there anyway to tell Tomcat or Apache that
when I request the server root, that is the only time it should run the
servlet? Right now I have something like /index.html mapping to the
servlet and that works when you specify /index.html in the URL, but when
you don't, it just gives you the directory listing.

It seems like this is a basic thing to want to do, but I've spent the
last few hours searching the web, reading the FAQs on jGuru and reading
other assorted documentation but to no avail. Has someone solved this
problem or sould someone point me in the right direction? Thanks!

Rusty

ps: please CC me in the reply as I'm not on this list.


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




Servlet Constraint Matching

2002-01-16 Thread MCCAY,LARRY (HP-NewJersey,ex2)

Hi,

I am having trouble determining tomcat 4.0.1's implementation of constraint
match semantics.
I have a simple application for testing what I expect the matching behavior
to be - I have attached the .war file for your enjoyment.

My expectation is that an implementation of best match would result in a
precedence as follows:

1. Exact matches
2. Prefix matches longest (most precise) first - prefix constraints should
be sorted by length
3. Extension matches
4. Default matches

What I am observing appears to be closer to first match behavior.

I'm just hoping to get some insight into what the behavior is supposed to
be.

Thanks in advance,

--Larry

My web.xml is:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameConstraints/servlet-name
servlet-classtest.ConstraintMatchingServlet/servlet-class
/servlet

servlet-mapping
servlet-nameConstraints/servlet-name
url-pattern/acme/widget/x/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameConstraints/servlet-name
url-pattern/acme/widget/longerprefix/x/url-pattern
/servlet-mapping

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list

security-constraint
web-resource-collection
web-resource-nameexact-get-manager/web-resource-name
url-pattern*.jsp/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-nameexact-get-manager/web-resource-name
url-pattern/acme/widget/*/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-nameexact-get-manager/web-resource-name
url-pattern/acme/widget/longerprefix/*/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-namedeveloper/role-name
/auth-constraint
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-nameexact-get-manager/web-resource-name

url-pattern/acme/widget/longerprefix/FormPostForManager.jsp/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-nameexact-get-manager/web-resource-name
url-pattern/acme/widget/ssl/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
user-data-constraint
transport-guaranteeINTEGRAL/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-nameexact-post-manager/web-resource-name
url-pattern/acme/widget/longerprefix/x/url-pattern
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
user-data-constraint
transport-guaranteeINTEGRAL/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint
web-resource-collection

web-resource-nameprefix-get-post-manager-developer/web-resource-name
url-pattern/acme/widget/ssl/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameConstraint Matching Application/realm-name
/login-config
/web-app


Larry McCay Senior Architect 
HP Bluestone
6000 

XSP User Agents

2002-01-16 Thread Stefano Bonnin

Hi, I'm a new cocoon user and I have just developed a Cocoon application:

XSP --- (Applying XSL stylesheet) -- HTML, WML ... files

here there are no problems.

Now, in the XSP file I'd like want a code like

if (user-agent=WAP) { statement1}
if (user-agent=Explorer) { statement2}



where WAP and Explorer are the user-agents saved in the
cocoon.properties file.

In other words I'd like execute different java code (in the XSP file) for
different browsers.
For example the statement1 and statement2 instructions could be a different
database connection.

Thanks

Stefano Bonnin


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




RE: Off Topic apache problem, Strange url behaviour

2002-01-16 Thread Justin Rowles

 STFW='Save the funny wale' or 'Search the f*ing web' or what?

In answer to your question, I suggest you STFW ;-)

A good place to start for this sort of thing is
http://www.acronymfinder.com/

J.
-- 
You're only jealous cos the little penguins are talking to me. 



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




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




RE: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM

2002-01-16 Thread Raphaele Giordan

on win98, edit the autoexec.bat
at the end add :
SET JAVA_HOME=C:\jdk1.3 for instance
SET PATH=%PATH%;%JAVA_HOME%\bin
SET TOMCAT_HOME=C:\tomcat3.2.3 for instance
reboot
raphaele


 -Message d'origine-
 De:   babs boyejo [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 16 janvier 2002 01:58
 A:[EMAIL PROTECTED]
 Objet:JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM
 
 Dear All,
 
 1)how do you set the java_home to the jdk installation
 ?
 2)and will this be in the autoexec.bat or where?
 3)where and how do you set the tomcat_home?
 
 Regards
 Vic
 
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


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




Re: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM

2002-01-16 Thread Galbayar

set JAVA_HOME=c:\jdk1.3
set TOMCAT_HOME=c:\tomcat
- Original Message - 
From: babs boyejo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 08:58
Subject: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM


 Dear All,
 
 1)how do you set the java_home to the jdk installation
 ?
 2)and will this be in the autoexec.bat or where?
 3)where and how do you set the tomcat_home?
 
 Regards
 Vic
 
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




--- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Marcelo Demestri

Hi all!
I hope that someone can help me, since this is urgent for me.
I have a servlet that processes certain information according to the data
provided by the user.
My problem is: this servlet, when creating the path to call certain jsp,
uses a relative path of the type  / MyApp/html/arch.jsp .  My arch.jsp is
in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp
If this structure of directories is not under ROOT (that is to say,
ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me 404 Not Found.
As I said, I have a folder  MyApp  within  /webapps  but Tomcat does not
find the jsp page. Inclusively I created a context for this application, but
it does not work. Also it tries servlet mapping within web.xml without
results (good, in fact this is not related to the problem, since servlet is
located by Tomcat... what it cannot find are the pages jsp).
This is a prove to do anything more general:  locate the jsp pages outside
the structure of directories of Tomcat.
Any advice or suggestions?
Thanks in advance.

** My Server.xml
!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0
...
!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true
...
Context path=/MyApp docBase=MyApp debug=0
reloadable=true/
/Host
/Engine


** My web.xml
web-app
servlet
servlet-nameMyServlet/servlet-name
servlet-classMyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/servlet/MyServlet/url-pattern
/servlet-mapping
/web-app


Marcelo



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




HOW WILL YOU RUN TOMCAT not as root but as another user?

2002-01-16 Thread louie miranda

YES, how will you run tomcat as user let's say tomcat
hmm, is it

login: tomcat
pass: ***

cd /tomcat/
./startup.sh ??








thanks!

louie


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




RE: mod_jk not connecting: jk_open_socket, connect() failed errno = 111

2002-01-16 Thread Larry Isaacs

You don't mention that you un-commented the Ajp13Connector
in your server.xml.  It's commented out by default.

Cheers,
Larry

 -Original Message-
 From: //chill [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 7:56 PM
 To: Tomcat Users List
 Subject: mod_jk not connecting: jk_open_socket, connect() 
 failed errno =
 111
 
 
 Have installed mod_jk with my Apache 1.3.19 and Tomcat 4.0.1.
 
 Apache Loadmodule Addmodule in httpd.conf and also these lines:
 
 JkWorkersFile /usr/jakarta-tomcat-4.0.1/conf/workers.properties
 JkLogFile /usr/jakarta-tomcat-4.0.1/logs/mod_jk.log
 JkLogLevelinfo
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 
 JkMount /*.swt ajp13 #this is for jgenerator flash file generator
 JkMount /*.jsp ajp13
 
 I've created a worker.properties file with the following:
 
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.tomcat_home=/usr/jakarta-tomcat-4.0.1
 worker.java_home=/usr/j2sdk1.4.0
 ps=/
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 
 I'm logging these errors, and Apache is giving me a 500 
 server error when I
 attempt to view a jsp page.
 [Tue Jan 15 16:28:59 2002]  [jk_connect.c (143)]: 
 jk_open_socket, connect()
 failed errno = 111
 [Tue Jan 15 16:28:59 2002]  [jk_ajp13_worker.c (196)]: In
 jk_endpoint_t::connect_to_tomcat, failed errno = 111
 [Tue Jan 15 16:28:59 2002]  [jk_ajp13_worker.c (635)]: Error 
 connecting to
 the Tomcat process.
 [Tue Jan 15 16:28:59 2002]  [jk_ajp13_worker.c (848)]: In
 jk_endpoint_t::service, send_request failed in send loop 0
 
 I am able to connect to Tomcat using mod_webapp through 
 Apache and on port
 8080 without it, but it doesn't seem to like mod_jk. Any 
 ideas of what I'm
 doing wrong is appreciated
 
 Thanks
 Chris Hill
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Re[4]: Apache1.3.20 TC3.3 authentication

2002-01-16 Thread Larry Isaacs

Is Apache authenticating but not passing the
user to Tomcat, or is Apache not authenticating so
there isn't a user to pass to Tomcat?

If Apache is authenticating, can you temporarily
try mod_jk and see if it works.  I'm not aware
of any bugs in mod_jserv. But because it is
deprecated, it doesn't get as much testing as
mod_jk.

Cheers,
Larry

 -Original Message-
 From: MTea [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 16, 2002 5:17 AM
 To: Tomcat Users List
 Subject: Re[4]: Apache1.3.20  TC3.3  authentication
 
 
 LI Which connector are you using mod_jk or mod_jserv?
 mod_jserv
 This is a must. I couldn't use mod_jk at this time.
 
 -- 
 Best regards,
 MTea
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: HOW WILL YOU RUN TOMCAT not as root but as another user?

2002-01-16 Thread louie miranda

hmm, never mind! I solve my own problem!!
hehe, thanks..



louie...
  
- Original Message - 
From: louie miranda [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 8:40 PM
Subject: HOW WILL YOU RUN TOMCAT not as root but as another user?


 YES, how will you run tomcat as user let's say tomcat
 hmm, is it
 
 login: tomcat
 pass: ***
 
 cd /tomcat/
 ./startup.sh ??
 
 
 
 
 
 
 
 
 thanks!
 
 louie
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Baer Peter

Forgive me that I repost my message from several days ago, then
posted with the subject

WARP / mod_webapp not working --- help needed!

but the urgency of the problem is increasing, now.

Therefore I would kindly ask (anyone of) you, to have a look at
the log files at the end of this message?

Maybe that gives you a hint, why my configuration ain't working.
I suppose that only the log file apache_log is really relevant. 
However, I'm unable to guess myself from the log file what's wrong.

BTW: If I specify http://MyHost.de/example I get a Not found
error, while with http://MyHost.de/examples/ the result is a
blank page. ?!?!?

In standalone mode, ie when I specify port 8080, everythings
working.

So thanks again, for taking the time.

Peter Bär


Hi there!

I've been trying to connect Apache and Tomcat via the Warp connector
(mod_webapp) for quite a while now, but I don't seem to get it
working. Even extensive research of this mailing list didn't point
me
to the solution of my problem. I'm getting desperate...

Forgive me, if I am asking the same questions discussed at least
100 times on this list, but for me the hints given just don't work,
and I don't know why and what's wrong.


I am trying to run Tomcat 4.01 on SuSE Linux 7.3 x86 with Apache
1.3.20.
Tomcat runs properly standalone.

So, please, could you have a look at my configuration and the log
files
I get. I'd be _very_ grateful for any help, as I just don't get
along
on my own, here, it seems. I am probably missing something obvious,
but I don't know what it is. Can you help?


THANKS IN ADVANCE to all of you!


Here is my configuration.
I actually just want to get the standard configuration running.
No virtual hosts or something other more complex. I just want
to be able to get the Tomcat examples with

http://MyHost/examples
not having to specify the port number. If I get the installation
instructions in the file INSTALL.TXT of the mod_webapp distribution
right, then this should work just by adding these five lines to
/etc/httpd.conf.


LoadModule webapp_module /usr/lib/apache/mod_webapp.so
AddModule mod_webapp.c

   IfModule mod_webapp.c
  WebAppConnectionconn warp MyHost.de:8008
  WebAppDeployexamples conn /examples/
  WebAppInfo /webapp-info
   /IfModule

But for me, as I said, it just doesn't work.

I have copied the file mod_webapp.so to /usr/lib/apache, which is
the replacement directory for libexec on SuSE Linux. I have also
tried to use softlinks called libexec placed in the DocumentRoot
directory of Apache pointing to /usr/lib/apache. However, this
didn't have any effect, as expected. Other than in previous versions
of Tomcat there are no automatically created config files explicitly
using paths containing libexec, right? So this shouldn't matter, in
my understanding. Something else must be wrong, however!


Here are the log files. I included some comments to indicate
which of the following steps was just completed at the end
of a paragraph.

Step 1: Tomcat started
Step 2: Request to Tomcat
Step 3: Apache started
Step 4: Request to Apache
Step 5: Request to Tomcat, again
Step 6: Apache shutdown
Step 7: Tomcat shutdown




apache-log
--
--Step 1: Tomcat started (file not yet created)
--Step 2: Request to Tomcat (file not yet created)
2002-01-13 15:17:00
[org.apache.catalina.connector.warp.WarpConnector] Connection from
orion6.trav.orb/192.168.22.6:34396 to
orion6.trav.orb/192.168.22.6:8008
2002-01-13 15:17:00 WarpHost[orion6.trav.orb]: Installing web
application at context path /examples from URL
file:/usr/java/jakarta-tomcat-4.0.1/webapps/examples
2002-01-13 15:17:00 WebappLoader[/examples]: Deploying class
repositories to work directory /usr/java/jakarta-tomcat-
4.0.1/work/orion6.trav.orb/examples
2002-01-13 15:17:00 StandardManager[/examples]: Seeding random
number generator class java.security.SecureRandom
2002-01-13 15:17:00 StandardManager[/examples]: Seeding of random
number generator has been completed
2002-01-13 15:17:00 ContextConfig[/examples]: Configured an
authenticator for method FORM
2002-01-13 15:17:00 ContextListener: contextInitialized()
2002-01-13 15:17:00 SessionListener: contextInitialized()
2002-01-13 15:17:00 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@6e22f7')
2002-01-13 15:17:00 StandardWrapper[/examples:default]: Loading
container servlet default
2002-01-13 15:17:00 default: init
2002-01-13 15:17:00 StandardWrapper[/examples:invoker]: Loading
container servlet invoker
2002-01-13 15:17:00 invoker: init
2002-01-13 15:17:00 jsp: init
2002-01-13 15:17:00
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
--Step 3: Apache started
2002-01-13 15:23:50
[org.apache.catalina.connector.warp.WarpConnector] Connection from
orion6.trav.orb/192.168.22.6:34480 to

RE: --- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Larry Isaacs

It looks like your relative path should be /html/arch.jsp,
not /MyApp/html/arch.jsp.  When refering to a page
within the same web application, you shouldn't include
the context name. It worked under ROOT because /MyApp
in this case isn't a context name but a directory name,
making /MyApp/html/arch.jsp the correct URL.

Cheers,
Larry

 -Original Message-
 From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 16, 2002 12:14 PM
 To: Tomcat Users List
 Subject: --- Please helpme: Tomcat visibility (I think!)
 
 
 Hi all!
 I hope that someone can help me, since this is urgent for me.
 I have a servlet that processes certain information according 
 to the data
 provided by the user.
 My problem is: this servlet, when creating the path to call 
 certain jsp,
 uses a relative path of the type  / MyApp/html/arch.jsp .  
 My arch.jsp is
 in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp
 If this structure of directories is not under ROOT (that is to say,
 ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me 
 404 Not Found.
 As I said, I have a folder  MyApp  within  /webapps  but 
 Tomcat does not
 find the jsp page. Inclusively I created a context for this 
 application, but
 it does not work. Also it tries servlet mapping within web.xml without
 results (good, in fact this is not related to the problem, 
 since servlet is
 located by Tomcat... what it cannot find are the pages jsp).
 This is a prove to do anything more general:  locate the jsp 
 pages outside
 the structure of directories of Tomcat.
 Any advice or suggestions?
 Thanks in advance.
 
 ** My Server.xml
 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone defaultHost=localhost debug=0
 ...
 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true
 ...
 Context path=/MyApp docBase=MyApp debug=0
 reloadable=true/
 /Host
 /Engine
 
 
 ** My web.xml
 web-app
 servlet
 servlet-nameMyServlet/servlet-name
 servlet-classMyServlet/servlet-class
 /servlet
 servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/servlet/MyServlet/url-pattern
 /servlet-mapping
 /web-app
 
 
 Marcelo
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re[6]: Apache1.3.20 TC3.3 authentication

2002-01-16 Thread MTea

Hello Larry,

Uhh. I find the problem.
tc3.3 uses a newer mod_jserv than the 3.2.4. But at the tc download
folder under bin/linux/i386 there is not new mod_jserv.so. So we'd like
to use the old for 3.3. It wasn't working. I try to testing on windows
and the problem was same. BUT now I see that under bin/win32/i386 there is
a new ApacheModuleJServ.dll. And now lets see magic: the authentication
is working under windows. Ok, thank you the chat and sorry for
wasting your time :-)

-- 
Best regards,
 MTeamailto:[EMAIL PROTECTED]


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




Re: Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Chris Newland

Hi Peter,

Have you tried building mod_webapp from source?

I'm using Tomcat 4.0.1 + Apache 1.3.22 + Cocoon 2.0 final.

I downloaded webapp-module-1.0.1-tc401-src.tar.gz from the jakarta site and 
built from source then copied mod_webapp.so into my apache/libexec directory 
and added *only* the following line to the bottom of my httpd.conf:
--
Include conf/warp.conf
--

I also copied the updated warp.jar (built from the java source in  
webapp-module-1.0.1-tc401-src.tar.gz) into my
tomcat/server/lib directory (you need to make sure that your warp.jar matches 
your mod_webapp.so version)

my warp.conf file (in my apache/conf dir) contains:

--
LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
 
ServerName 127.0.0.1
Port 80
 
WebAppConnection warpConnection warp 127.0.0.1:8008
WebAppDeploy cocoon warpConnection /cocoon
 
AddHandler default-handler .gif .jpeg
--

I did not have to change my tomcat/conf/server.xml file at all to enable 
mod_webapp.

Hope this helps,

Best Regards,

Chris Newland

On Wednesday 16 January 2002 12:07, you wrote:
 Forgive me that I repost my message from several days ago, then
 posted with the subject

   WARP / mod_webapp not working --- help needed!

 but the urgency of the problem is increasing, now.

 Therefore I would kindly ask (anyone of) you, to have a look at
 the log files at the end of this message?

 Maybe that gives you a hint, why my configuration ain't working.
 I suppose that only the log file apache_log is really relevant.
 However, I'm unable to guess myself from the log file what's wrong.

 BTW: If I specify http://MyHost.de/example I get a Not found
 error, while with http://MyHost.de/examples/ the result is a
 blank page. ?!?!?

 In standalone mode, ie when I specify port 8080, everythings
 working.

 So thanks again, for taking the time.

   Peter Bär


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




Re: Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Anton Brazhnyk

Hi!

 Therefore I would kindly ask (anyone of) you, to have a look at
 the log files at the end of this message?
 
 Maybe that gives you a hint, why my configuration ain't working.
 I suppose that only the log file apache_log is really relevant. 
 However, I'm unable to guess myself from the log file what's wrong.

I got such stacktraces approximately every 5th request 
when I had tested it.
I think you should try nightly builds, both TC and mod_webapp
or switch to mod_jk maybe even with TC3.3
It seems TC3.3 and mod_jk (still nightly) are the most stable versions.

BTW, are my messages are readable?

Anton.

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




Re: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Tulan W. Hu

I guess many people have the same problem that I encountered.
Did you try http:// MyHost.de/examples/jsp/index.html ?
Maybe your apache server doesn't allow people to browse a directory.

Tulan
 On Wednesday 16 January 2002 12:07, you wrote:
  Forgive me that I repost my message from several days ago, then
  posted with the subject
 
  WARP / mod_webapp not working --- help needed!
 
  but the urgency of the problem is increasing, now.
 
  Therefore I would kindly ask (anyone of) you, to have a look at
  the log files at the end of this message?
 
  Maybe that gives you a hint, why my configuration ain't working.
  I suppose that only the log file apache_log is really relevant.
  However, I'm unable to guess myself from the log file what's wrong.
 
  BTW: If I specify http://MyHost.de/example I get a Not found
  error, while with http://MyHost.de/examples/ the result is a
  blank page. ?!?!?
 
  In standalone mode, ie when I specify port 8080, everythings
  working.
 
  So thanks again, for taking the time.
 
  Peter Bär


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




error using jsse: cannot recover key

2002-01-16 Thread Mehul S Dave

Hello,

  i have generated the RSA key by using keytool  then as per the
configuration i have done the setting in the server.xml file.
I am using jsse for SSL. when i start my server then it gives me
java.io.IOException:Cannot recover  key

Please resolve the problem
Thanks
Mehul

*
Mehul S Dave
Scientific Officer,(STCS Dept.).
School of Technology and Computer Science
Tata Institute of Fundamental Research
Phone -091 22 2152971 Extn - 2550
Mumbai .
webpage:- http://www.ecom.tifr.res.in/~mehul
  http://www.tifr.res.in/~mehul

(Keep Smiling Forever)))


*


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




Re: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-16 Thread Steve

Sharp thinking Ralph.

I finally got an error message when telneting to localhost 8080. I ran 
GET / HTTP 1.0 and Tomcat generated an error page in html.  This was the 
  message:

=
Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily
type Status report
message Moved Temporarily

description The requested resource (Moved Temporarily) has moved 
temporarily to a new location.
=

The Tomcat logs once again showed everything to be fine.

My knowledge of HTTP protocols is very limited so I have no idea what 
Tomcat means by Moved temporarily or what to do about it :).

The output from the telnet session mentioned that an initial address was 
refused.  Maybe that has something to do with it?


In case you have any ideas he is the shell output of the telnet I ran on 
localhost:


steve@linux:/usr/local/Tomcat/bin  telnet localhost 8080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP 1.0

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Wed, 16 Jan 2002 02:05:55 GMT
Location: http://localhost:8080/index.html
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Connection: close

htmlheadtitleApache Tomcat/4.0.1 - Error 
report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color 
: white;background-color : #0086b2;} BODY{font-family : 
sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color 
: white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE 
/headbodyh1Apache
Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily/h1HR size=1 
noshadepbtype/b Status report/ppbmessage/b uMoved 
Temporarily/u/ppbdescription/b uThe requested resource 
(Moved Temporarily) has moved temporarily to a new location./u/pHR 
size=1 noshade/body/htmlConnection closed by foreign host.
steve@linux:/usr/local/Tomcat/bin 
===





Ralph Einfeldt wrote:

 Okay, now we know that your tomcat is up and listening on port 8080.
 
 try the telnet sequence with localhost as hostname.
 
 
-Ursprüngliche Nachricht-
Von: Steve [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 15. Januar 2002 08:31
An: Tomcat Users List
Betreff: Re: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand
Alone Mode


Okay.  I executed some of these commands.  I didn't try the last part 
about telneting because I couldn't find a hostname.

Any clues you can get from this will be appreciated.

BTW the permissions of my Tomcat directory are as follows:
User: steve
Group: users

rwx rwx rwx

Maybe this has something to do with it.



Here is my output:

steve@linux:/usr/local/Tomcat/bin  startup.sh
Using CLASSPATH: 
/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
Using CATALINA_BASE: /usr/local/Tomcat
Using CATALINA_HOME: /usr/local/Tomcat
Using JAVA_HOME: /usr/local/JDK
steve@linux:/usr/local/Tomcat/bin 

steve@linux:/usr/local/Tomcat/bin  su root
Password:
root@linux:/usr/local/Tomcat/bin  lsof -i :8080
COMMAND  PID  USER   FD   TYPE DEVICE SIZE NODE NAME
java1185 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1212 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1213 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1214 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1215 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1216 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1217 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1218 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1219 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1220 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1221 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1222 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1223 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1224 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1225 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1226 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1227 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1228 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1229 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1230 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1231 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1232 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
root@linux:/usr/local/Tomcat/bin 





root@linux:/usr/local/Tomcat/bin  ps p 1232
   PID TTY  STAT   TIME COMMAND
  1232 pts/1S  0:00 
/usr/local/JDK/bin/i386/native_threads/java 
-classpath /usr/local/Tomcat/bin/bootstrap.

Windows UNC path problem in document location

2002-01-16 Thread Duggimpudi, Suresh Reddy

Hi,

In my project I have to use windows UNC path in document location. I tried
this, but no success. Can any one please help me in solving this problem?
Any kind of help is appreciated.

I added the following context in server.xml.

Context path=/helpdesk 
 docBase=//test/help
 crossContext=false
 debug=0 
 reloadable=true  
/Context

Thanks in advance.
-suresh


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




Tomcat-Apache security ...

2002-01-16 Thread Julien OIX

hi everybody,

I'd like that directories under my Virtual Host's DocumentRoot can't be
indexed by an  URL ...

I supposed that the Aapche configuration could resolve this (in a
Directory directive, put the line Options -Indexes), but it doesn't
work ...

Is this with tomcat configuration (server.xml or web.xml) that I can
coontrol this stuff ?

thanks in advance 

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

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




RE: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Justin Rowles

   BTW: If I specify http://MyHost.de/example I get a Not found
   error, while with http://MyHost.de/examples/ the result is a
   blank page. ?!?!?

In your TC context definition it *matter* whether or not you include the
final /.  If you want it to work either with or without, put both contexts
in.

This is a documented feature.  At least, I read it *somewhere*!

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



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




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




RE: Can I have all virtual hosts share one context on tomcat 3.2.4?

2002-01-16 Thread Cox, Charlie



 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 5:06 PM
 To: Tomcat Users List
 Subject: RE: Can I have all virtual hosts share one context on tomcat
 3.2.4?
 
 
 So, I assume I put a context tag inside each host tag, 
 each pointing to
 the same codebase?  

yes

Also, if I need a different instance for 
 every single
 Host, is there a way around this with a new version of tomcat?
 

I don't think there is a way around it, although I'm not sure what happens
when you put your servlets into /tomcat/lib. I haven't tried it.

you can use the Alias tag in TC4(3.3 might have this too) to treat 2
virtual hosts identically.

Charlie

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




AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-16 Thread Ralph Einfeldt

So tomcat is not only listening but also serving locally.

The 'Moved Temporarily' is just a redirect from / to /index.html

If there is a page index.html in your webapp, you should be able 
to visit the site from a browser locally.

Verify that your browser is not using a proxy, as the
proxy might be an additional source for an error.

 -Ursprüngliche Nachricht-
 Von: Steve [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 16. Januar 2002 03:20
 An: Tomcat Users List
 Betreff: Re: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 
 Work In Stand
 Alone Mode
 
 
 Sharp thinking Ralph.
 
 I finally got an error message when telneting to localhost 
 8080. I ran 
 GET / HTTP 1.0 and Tomcat generated an error page in html.  
 This was the 
   message:
 
 =
 Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily
 type Status report
 message Moved Temporarily
 
 description The requested resource (Moved Temporarily) has moved 
 temporarily to a new location.
 =
 
 The Tomcat logs once again showed everything to be fine.
 
 My knowledge of HTTP protocols is very limited so I have no idea what 
 Tomcat means by Moved temporarily or what to do about it :).
 
 The output from the telnet session mentioned that an initial 
 address was 
 refused.  Maybe that has something to do with it?
 
 
 In case you have any ideas he is the shell output of the 
 telnet I ran on 
 localhost:
 
 ==
 ==
 steve@linux:/usr/local/Tomcat/bin  telnet localhost 8080
 Trying ::1...
 telnet: connect to address ::1: Connection refused
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 GET / HTTP 1.0
 
 HTTP/1.1 302 Moved Temporarily
 Content-Type: text/html
 Date: Wed, 16 Jan 2002 02:05:55 GMT
 Location: http://localhost:8080/index.html
 Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
 Connection: close
 
 htmlheadtitleApache Tomcat/4.0.1 - Error 
 report/titleSTYLE!--H1{font-family : 
 sans-serif,Arial,Tahoma;color 
 : white;background-color : #0086b2;} BODY{font-family : 
 sans-serif,Arial,Tahoma;color : black;background-color : 
 white;} B{color 
 : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE 
 /headbodyh1Apache
 Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily/h1HR size=1 
 noshadepbtype/b Status report/ppbmessage/b uMoved 
 Temporarily/u/ppbdescription/b uThe requested resource 
 (Moved Temporarily) has moved temporarily to a new 
 location./u/pHR 
 size=1 noshade/body/htmlConnection closed by foreign host.
 steve@linux:/usr/local/Tomcat/bin 
 ==
 =
 
 
 
 
 
 Ralph Einfeldt wrote:
 
  Okay, now we know that your tomcat is up and listening on port 8080.
  
  try the telnet sequence with localhost as hostname.
  
  
 -Ursprüngliche Nachricht-
 Von: Steve [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 15. Januar 2002 08:31
 An: Tomcat Users List
 Betreff: Re: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand
 Alone Mode
 
 
 Okay.  I executed some of these commands.  I didn't try the 
 last part 
 about telneting because I couldn't find a hostname.
 
 Any clues you can get from this will be appreciated.
 
 BTW the permissions of my Tomcat directory are as follows:
 User: steve
 Group: users
 
 rwx rwx rwx
 
 Maybe this has something to do with it.
 
 
 
 Here is my output:
 
 steve@linux:/usr/local/Tomcat/bin  startup.sh
 Using CLASSPATH: 
 /usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
 Using CATALINA_BASE: /usr/local/Tomcat
 Using CATALINA_HOME: /usr/local/Tomcat
 Using JAVA_HOME: /usr/local/JDK
 steve@linux:/usr/local/Tomcat/bin 
 
 steve@linux:/usr/local/Tomcat/bin  su root
 Password:
 root@linux:/usr/local/Tomcat/bin  lsof -i :8080
 COMMAND  PID  USER   FD   TYPE DEVICE SIZE NODE NAME
 java1185 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1212 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1213 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1214 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1215 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1216 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1217 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1218 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1219 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1220 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1221 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1222 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1223 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1224 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1225 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
 java1226 steve6u  

RE: --- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Matt Sweetnam

What is the difference between Tomcat and Catalina? There is TOMCAT_HOME
and CATALINA_HOME.. which do you define?

 -Original Message-
From:   Marcelo Demestri [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 16, 2002 11:14 AM
To: Tomcat Users List
Subject:--- Please helpme: Tomcat visibility (I think!)

Hi all!
I hope that someone can help me, since this is urgent for me.
I have a servlet that processes certain information according to the
data
provided by the user.
My problem is: this servlet, when creating the path to call certain jsp,
uses a relative path of the type  / MyApp/html/arch.jsp .  My arch.jsp
is
in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp
If this structure of directories is not under ROOT (that is to say,
ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me 404 Not
Found.
As I said, I have a folder  MyApp  within  /webapps  but Tomcat does
not
find the jsp page. Inclusively I created a context for this application,
but
it does not work. Also it tries servlet mapping within web.xml without
results (good, in fact this is not related to the problem, since servlet
is
located by Tomcat... what it cannot find are the pages jsp).
This is a prove to do anything more general:  locate the jsp pages
outside
the structure of directories of Tomcat.
Any advice or suggestions?
Thanks in advance.

** My Server.xml
!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0
...
!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true
...
Context path=/MyApp docBase=MyApp debug=0
reloadable=true/
/Host
/Engine


** My web.xml
web-app
servlet
servlet-nameMyServlet/servlet-name
servlet-classMyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/servlet/MyServlet/url-pattern
/servlet-mapping
/web-app


Marcelo



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



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




Re: --- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Marcelo Demestri

Thanks Larry for the answer!

I try with /html/arch.jsp instead of /MyApp/html/arch.jsp but still
don't work.
By default, it would not have to be %CATALINA_HOME%/webapps the context
root? This is correct? I worked with IIS(+JRun), the request generated by my
servlet (/MyApp/html/arch.jsp) work in this environment, and when I began
with Tomcat I thought that wwwroot=webapps.
I must migrate all to Apache(1.3.22)+Tomcat(4.0.1) and what wanted is not to
have to modify the servlet (built by other person), and to make it work in
Apache+Tomcat as it works with IIS+JRun.

More suggestions are appreciate!
Thanks

Marcelo

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 5:13 AM
Subject: RE: --- Please helpme: Tomcat visibility (I think!)


 It looks like your relative path should be /html/arch.jsp,
 not /MyApp/html/arch.jsp.  When refering to a page
 within the same web application, you shouldn't include
 the context name. It worked under ROOT because /MyApp
 in this case isn't a context name but a directory name,
 making /MyApp/html/arch.jsp the correct URL.

 Cheers,
 Larry

  -Original Message-
  From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 16, 2002 12:14 PM
  To: Tomcat Users List
  Subject: --- Please helpme: Tomcat visibility (I think!)
 
 
  Hi all!
  I hope that someone can help me, since this is urgent for me.
  I have a servlet that processes certain information according
  to the data
  provided by the user.
  My problem is: this servlet, when creating the path to call
  certain jsp,
  uses a relative path of the type  / MyApp/html/arch.jsp .
  My arch.jsp is
  in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp
  If this structure of directories is not under ROOT (that is to say,
  ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me
  404 Not Found.
  As I said, I have a folder  MyApp  within  /webapps  but
  Tomcat does not
  find the jsp page. Inclusively I created a context for this
  application, but
  it does not work. Also it tries servlet mapping within web.xml without
  results (good, in fact this is not related to the problem,
  since servlet is
  located by Tomcat... what it cannot find are the pages jsp).
  This is a prove to do anything more general:  locate the jsp
  pages outside
  the structure of directories of Tomcat.
  Any advice or suggestions?
  Thanks in advance.
 
  ** My Server.xml
  !-- Define the top level container in our container hierarchy --
  Engine name=Standalone defaultHost=localhost debug=0
  ...
  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
  unpackWARs=true
  ...
  Context path=/MyApp docBase=MyApp debug=0
  reloadable=true/
  /Host
  /Engine
 
 
  ** My web.xml
  web-app
  servlet
  servlet-nameMyServlet/servlet-name
  servlet-classMyServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/servlet/MyServlet/url-pattern
  /servlet-mapping
  /web-app
 
 
  Marcelo
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

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



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




Re: Windows UNC path problem in document location

2002-01-16 Thread Anton Brazhnyk

 Hi,
 
 In my project I have to use windows UNC path in document location. I tried
 this, but no success. Can any one please help me in solving this problem?
 Any kind of help is appreciated.
 
 I added the following context in server.xml.
 
 Context path=/helpdesk 
  docBase=//test/help
  crossContext=false
  debug=0 
  reloadable=true  
 /Context
 
 Thanks in advance.
 -suresh
 
The obvious workaround is to map //test to t: for example
and use docBase=t:/help

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




Tomcat-Apache Connection Pools

2002-01-16 Thread McCay, Tim

Hi all,

I am currently looking to add a connection pool to my application.  

Has anyone have any good results with any I am currently looking at
http://www.javaexchange.com/ that CoolServlets use in there products.


Thanks any advice would be useful.

Tim 

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




tomcat or catalina?

2002-01-16 Thread Matt Sweetnam

What is the difference between Tomcat and Catalina? There is TOMCAT_HOME
and CATALINA_HOME.. which do you define?


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




mod_webapp and php

2002-01-16 Thread Sam De Francesco

Hi,

I'm trying to set up a virtual host that will allow the
user to have both JSP/Servlets and PHP running concurrently,
using mod_webapp. I'm using apache 1.3.20 and tomcat 4.

Should I be able to mix .php and .jsp files in the same
directory using mod_webapp, and have apache/tomcat figure
out who will handle it automatically? Or am I being optimistic?
Or must I separate them out into different directories so
that apache will know what to handle locally and what to pass
on to Tomcat? But if I have the / path being handled by tomcat, eg
as follows:

IfModule mod_webapp.c
WebAppConnectionconnwarp  localhost:8006
WebAppDeployROOTconn  /
/IfModule

is it possible to have php files parsed correctly
at all using this configuration? If so, do I need
to tell Apache to handle php files by itself, and how?

One other question, does a new WebAppDeploy line need to
be added to httpd.conf for every new webapp that gets
added?

Sorry for all the questions, just trying to increase my
understanding of how it all hangs together.

Regards and thanks,
Sam.



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




AW: Tomcat-Apache Connection Pools

2002-01-16 Thread Ralph Einfeldt

Have a look at 
http://www2.gvsu.edu/~millerjr/ResearchPaper.html

 -Ursprüngliche Nachricht-
 Von: McCay, Tim [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 16. Januar 2002 16:06
 An: 'Tomcat Users List'
 Betreff: Tomcat-Apache Connection Pools
 
 
 Hi all,
 
 I am currently looking to add a connection pool to my application.  
 
 Has anyone have any good results with any I am currently looking at
 http://www.javaexchange.com/ that CoolServlets use in there products.
 
 
 Thanks any advice would be useful.
 
 Tim 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Baer Peter

Hi all you,

thanks for your quick response. Before replying individually, I'd
like to post a couple of question.


Is the configuration depending on the existence of a directory or
symlink libexec?

I'm asking, because under SuSE Linux the Apache webserver modules
directory is /usr/lib/apache. Preceeding versions of Tomcat created
configuration files at startup automatically, with paths containing
libexec explicitly. The cure was a symlink libexec in 
/usr/local/httpd/htdocs pointing to /usr/lib/apache.
TC4 apparently does not create config files. And I *have* the
symlink, anyway. Just for better understanding...

Second question: Could anyone think of dependencies of SuSE vs RH,
that could explain my non-success?

Ok, here my individual replies to you:

Chris Newland: Thanks for your advice, I'll check out, what happens
with a mod_webapp.so built.so (and report the results, then).
Certainly a good idea, I think. And, BTW, it's interesting
that you already have Cocoon 2.0 --- this is, actually, where
we want to go with TC4. So in case we have trouble, there's
at least someone out there, who knows, how to do it ;-)

Anton Brazhnyk: Yes, if we don't make very soon, we'll drop back to
TC3.3 and mod_jk. But first I'd like to give the combination
of TC4 and mod_jk a go. Again I'll report my results, of
course.
And yes: Your messages are readable.

Tulan W. Hu: Yes, I have tried http://MyHost.de/examples/jsp/index.html.
The response is a blank page, just like with
http://MyHost.de/examples/, whereas http://MyHost.de/examples
(without the slash at the end) gives Not found.
In fact I followed your thread. Initially it looked as if you
had a very similar problem. However, your solution (just a slash
at the end of the URL) does not work for me, it seems... 8-(

Best wishes

Peter

-- 
+---+-+
|mailto:[EMAIL PROTECTED]   |
+-+


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




Re: AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-16 Thread Steve



Ralph Einfeldt wrote:

 So tomcat is not only listening but also serving locally.
 
 The 'Moved Temporarily' is just a redirect from / to /index.html
 
 If there is a page index.html in your webapp, you should be able 
 to visit the site from a browser locally.



I haven't gotten as far as making a webapp:).  I just installed Tomcat 
4.0.1 on Suse 7.2 with the jdk 1.3.1_02.   All of this has been about 
the initial testing with trying to get Tomcat's default page to come up 
when I type in http://localhost:8080.

I still haven't gotten there :).


 
 Verify that your browser is not using a proxy, as the
 proxy might be an additional source for an error.


No problems there.  I'm using Netscape 6.2.1.  Under Edit | Preferences 
| Advanced | Proxies it is set to a radio button that says Connect 
directly to the internet, no proxy.

I haven't had any luck using the konqueror browser either.

 
-Ursprüngliche Nachricht-
Von: Steve [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 16. Januar 2002 03:20
An: Tomcat Users List
Betreff: Re: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 
Work In Stand
Alone Mode


Sharp thinking Ralph.

I finally got an error message when telneting to localhost 
8080. I ran 
GET / HTTP 1.0 and Tomcat generated an error page in html.  
This was the 
  message:

=
Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily
type Status report
message Moved Temporarily

description The requested resource (Moved Temporarily) has moved 
temporarily to a new location.
=

The Tomcat logs once again showed everything to be fine.

My knowledge of HTTP protocols is very limited so I have no idea what 
Tomcat means by Moved temporarily or what to do about it :).

The output from the telnet session mentioned that an initial 
address was 
refused.  Maybe that has something to do with it?


In case you have any ideas he is the shell output of the 
telnet I ran on 
localhost:

==
==
steve@linux:/usr/local/Tomcat/bin  telnet localhost 8080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP 1.0

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Wed, 16 Jan 2002 02:05:55 GMT
Location: http://localhost:8080/index.html
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Connection: close

htmlheadtitleApache Tomcat/4.0.1 - Error 
report/titleSTYLE!--H1{font-family : 
sans-serif,Arial,Tahoma;color 
: white;background-color : #0086b2;} BODY{font-family : 
sans-serif,Arial,Tahoma;color : black;background-color : 
white;} B{color 
: white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE 
/headbodyh1Apache
Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily/h1HR size=1 
noshadepbtype/b Status report/ppbmessage/b uMoved 
Temporarily/u/ppbdescription/b uThe requested resource 
(Moved Temporarily) has moved temporarily to a new 
location./u/pHR 
size=1 noshade/body/htmlConnection closed by foreign host.
steve@linux:/usr/local/Tomcat/bin 
==
=





Ralph Einfeldt wrote:


Okay, now we know that your tomcat is up and listening on port 8080.

try the telnet sequence with localhost as hostname.



-Ursprüngliche Nachricht-
Von: Steve [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 15. Januar 2002 08:31
An: Tomcat Users List
Betreff: Re: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand
Alone Mode


Okay.  I executed some of these commands.  I didn't try the 

last part 

about telneting because I couldn't find a hostname.

Any clues you can get from this will be appreciated.

BTW the permissions of my Tomcat directory are as follows:
User: steve
Group: users

rwx rwx rwx

Maybe this has something to do with it.



Here is my output:

steve@linux:/usr/local/Tomcat/bin  startup.sh
Using CLASSPATH: 
/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
Using CATALINA_BASE: /usr/local/Tomcat
Using CATALINA_HOME: /usr/local/Tomcat
Using JAVA_HOME: /usr/local/JDK
steve@linux:/usr/local/Tomcat/bin 

steve@linux:/usr/local/Tomcat/bin  su root
Password:
root@linux:/usr/local/Tomcat/bin  lsof -i :8080
COMMAND  PID  USER   FD   TYPE DEVICE SIZE NODE NAME
java1185 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1212 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1213 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1214 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1215 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1216 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1217 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1218 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java1219 steve6u  IPv4   6403   TCP *:http-alt (LISTEN)
java   

RE: --- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Larry Isaacs

If you use:

Context path=/MyApp docBase=MyApp ...

or allow that docBase to be auto-served and have:

CATALINA_HOME/webapps/MyApp
CATALINA_HOME/webapps/MyApp/html/arch.jsp
CATALINA_HOME/webapps/MyApp/WEB-INF
... etc.

then /html/arch.jsp is the correct URL.

If you use:

Context path= docBase=ROOT ...

or allow that docBase to be auto and have:

CATALINA_HOME/webapps/ROOT/MyApp
CATALINA_HOME/webapps/ROOT/MyApp/html/arch.jsp
CATALINA_HOME/webapps/ROOT/WEB-INF
... etc.

then /MyApp/html/arch.jsp is the correct URL.
In this case MyApp gets treated as an ordinary directory
rather than as a web application.

If the IIS+JRun was working, I would assume you
were using a deployment similar to the later case
above.

Note, you don't state exactly what the servlet is
doing.  I could be wrong in my interpretation of what you
mean by call in creating the path to call certain jsp.
I'm assuming a RequestDispatcher include or forward.

Cheers,
Larry

 -Original Message-
 From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 16, 2002 3:01 PM
 To: Tomcat Users List
 Subject: Re: --- Please helpme: Tomcat visibility (I think!)
 
 
 Thanks Larry for the answer!
 
 I try with /html/arch.jsp instead of /MyApp/html/arch.jsp 
 but still
 don't work.
 By default, it would not have to be %CATALINA_HOME%/webapps 
 the context
 root? This is correct? I worked with IIS(+JRun), the request 
 generated by my
 servlet (/MyApp/html/arch.jsp) work in this environment, 
 and when I began
 with Tomcat I thought that wwwroot=webapps.
 I must migrate all to Apache(1.3.22)+Tomcat(4.0.1) and what 
 wanted is not to
 have to modify the servlet (built by other person), and to 
 make it work in
 Apache+Tomcat as it works with IIS+JRun.
 
 More suggestions are appreciate!
 Thanks
 
 Marcelo
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 16, 2002 5:13 AM
 Subject: RE: --- Please helpme: Tomcat visibility (I think!)
 
 
  It looks like your relative path should be /html/arch.jsp,
  not /MyApp/html/arch.jsp.  When refering to a page
  within the same web application, you shouldn't include
  the context name. It worked under ROOT because /MyApp
  in this case isn't a context name but a directory name,
  making /MyApp/html/arch.jsp the correct URL.
 
  Cheers,
  Larry
 
   -Original Message-
   From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 16, 2002 12:14 PM
   To: Tomcat Users List
   Subject: --- Please helpme: Tomcat visibility (I think!)
  
  
   Hi all!
   I hope that someone can help me, since this is urgent for me.
   I have a servlet that processes certain information according
   to the data
   provided by the user.
   My problem is: this servlet, when creating the path to call
   certain jsp,
   uses a relative path of the type  / MyApp/html/arch.jsp .
   My arch.jsp is
   in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp
   If this structure of directories is not under ROOT (that 
 is to say,
   ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me
   404 Not Found.
   As I said, I have a folder  MyApp  within  /webapps  but
   Tomcat does not
   find the jsp page. Inclusively I created a context for this
   application, but
   it does not work. Also it tries servlet mapping within 
 web.xml without
   results (good, in fact this is not related to the problem,
   since servlet is
   located by Tomcat... what it cannot find are the pages jsp).
   This is a prove to do anything more general:  locate the jsp
   pages outside
   the structure of directories of Tomcat.
   Any advice or suggestions?
   Thanks in advance.
  
   ** My Server.xml
   !-- Define the top level container in our container 
 hierarchy --
   Engine name=Standalone defaultHost=localhost debug=0
   ...
   !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps
   unpackWARs=true
   ...
   Context path=/MyApp docBase=MyApp debug=0
   reloadable=true/
   /Host
   /Engine
  
  
   ** My web.xml
   web-app
   servlet
   servlet-nameMyServlet/servlet-name
   servlet-classMyServlet/servlet-class
   /servlet
   servlet-mapping
   servlet-nameMyServlet/servlet-name
   url-pattern/servlet/MyServlet/url-pattern
   /servlet-mapping
   /web-app
  
  
   Marcelo
  
  
  
   --
   To unsubscribe:   
 mailto:[EMAIL PROTECTED]
   For additional commands: 
 mailto:[EMAIL PROTECTED]
   Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL 

Connection reset..

2002-01-16 Thread Ravindra K. Bhat

What does...
IOException in: connection rest by peer: socket write error..mean? and how
can you fix it?



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




Re: tomcat or catalina?

2002-01-16 Thread David Smith

The difference is version.  In Tomcat 4, CATALINA_HOME is the environment 
variable to set for where Tomcat lives.  In Tomcat 3.x.x, TOMCAT_HOME is the 
environment variable for where Tomcat lives.

I think it was done primarily as a migration feature so you could have both 
running and they wouldn't run into each other.

--David

On Wednesday 16 January 2002 10:23 am, you wrote:
 What is the difference between Tomcat and Catalina? There is TOMCAT_HOME
 and CATALINA_HOME.. which do you define?


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

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




Installing Tomcat 3.2.4 on WIN2k/IIS 5.0

2002-01-16 Thread William Cheng

Users,

I am having trouble with the installation of Tomcat 3.2.4 on Win2k.  
I've read through the Tomcat IIS HowTo and a minimalists guide.  
Currently, I cannot view jsp files.  I've configured the worker 
file.  I've added the registry key for the ISAPI redirector.  I've 
added the environmental variables and have added a path to PATH.  I 
do not understand how to configure the urimapworker.  Do i have to do 
anything with this file?  Currently, startup results in opening a new 
window and the last line that appears is PoolTCPConnector: Starting 
Ajp12ConnectionHandler on 8007.  Is this correct.  Should more script 
run after this?  Have i forgotten anything?  Currently, Tomcat is 
running.  However, i do not think it is working correctly.  Any help 
would be greatly appreciated.

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




RE: tomcat or catalina?

2002-01-16 Thread Walter De Wit

Catalina is the name of Tomcat 4.0.
So Tomcat 4.0 uses CATALINA_HOME. 
Previous Tomcat versions use TOMCAT_HOME.
When both variables exist, this is probably because you installed both
versions.
When I do a text search in the /bin directory on TOMCAT_HOME there are no
results, so I presume this variable is no longer used in Tomcat 4.0

-Original Message-
From: Matt Sweetnam [mailto:[EMAIL PROTECTED]]
Sent: woensdag 16 januari 2002 16:23
To: Tomcat Users List
Subject: tomcat or catalina?


What is the difference between Tomcat and Catalina? There is TOMCAT_HOME
and CATALINA_HOME.. which do you define?


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

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




R: Tomcat-Apache Connection Pools

2002-01-16 Thread Vercesi Paolo

I use dbconnectionbroker from javaexchange with Tomcat 3.3 for pooling
connections with Postgresql and Oracle (thin) JDBC drivers, and I haven't
found any problem.

But I'm still in a developing phase and so I can't give you much better
information about performance and stability.

  
  Hi all,
  
  I am currently looking to add a connection pool to my application.  
  
  Has anyone have any good results with any I am currently looking at
  http://www.javaexchange.com/ that CoolServlets use in there 
 products.
  
  
  Thanks any advice would be useful.
  
  Tim 


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




AW: AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-16 Thread Ralph Einfeldt

I'm not familiar with the default install. 
(The last install is a year ago and wasn't done by me)

To see something, there must be a index.html somewhere
in the default context, if not you won't see anything
but 'file not found'.

What kind of error do you get in the browser?

 -Ursprüngliche Nachricht-
 Von: Steve [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 16. Januar 2002 16:48
 An: Tomcat Users List
 Betreff: Re: AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In
 Stand Alone Mode
 
 
 
 
 Ralph Einfeldt wrote:
 
  So tomcat is not only listening but also serving locally.
  
  The 'Moved Temporarily' is just a redirect from / to /index.html
  
  If there is a page index.html in your webapp, you should be able 
  to visit the site from a browser locally.
 
 
 
 I haven't gotten as far as making a webapp:).  I just 
 installed Tomcat 
 4.0.1 on Suse 7.2 with the jdk 1.3.1_02.   All of this has been about 
 the initial testing with trying to get Tomcat's default page 
 to come up 
 when I type in http://localhost:8080.
 
 I still haven't gotten there :).
 
 
  
  Verify that your browser is not using a proxy, as the
  proxy might be an additional source for an error.
 
 
 No problems there.  I'm using Netscape 6.2.1.  Under Edit | 
 Preferences 
 | Advanced | Proxies it is set to a radio button that says Connect 
 directly to the internet, no proxy.
 
 I haven't had any luck using the konqueror browser either.
 
  
 -Ursprüngliche Nachricht-
 Von: Steve [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 16. Januar 2002 03:20
 An: Tomcat Users List
 Betreff: Re: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 
 Work In Stand
 Alone Mode
 
 
 Sharp thinking Ralph.
 
 I finally got an error message when telneting to localhost 
 8080. I ran 
 GET / HTTP 1.0 and Tomcat generated an error page in html.  
 This was the 
   message:
 
 =
 Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily
 type Status report
 message Moved Temporarily
 
 description The requested resource (Moved Temporarily) has moved 
 temporarily to a new location.
 =
 
 The Tomcat logs once again showed everything to be fine.
 
 My knowledge of HTTP protocols is very limited so I have no 
 idea what 
 Tomcat means by Moved temporarily or what to do about it :).
 
 The output from the telnet session mentioned that an initial 
 address was 
 refused.  Maybe that has something to do with it?
 
 
 In case you have any ideas he is the shell output of the 
 telnet I ran on 
 localhost:
 
 ==
 ==
 steve@linux:/usr/local/Tomcat/bin  telnet localhost 8080
 Trying ::1...
 telnet: connect to address ::1: Connection refused
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 GET / HTTP 1.0
 
 HTTP/1.1 302 Moved Temporarily
 Content-Type: text/html
 Date: Wed, 16 Jan 2002 02:05:55 GMT
 Location: http://localhost:8080/index.html
 Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
 Connection: close
 
 htmlheadtitleApache Tomcat/4.0.1 - Error 
 report/titleSTYLE!--H1{font-family : 
 sans-serif,Arial,Tahoma;color 
 : white;background-color : #0086b2;} BODY{font-family : 
 sans-serif,Arial,Tahoma;color : black;background-color : 
 white;} B{color 
 : white;background-color : #0086b2;} HR{color : #0086b2;} 
 --/STYLE 
 /headbodyh1Apache
 Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily/h1HR size=1 
 noshadepbtype/b Status report/ppbmessage/b uMoved 
 Temporarily/u/ppbdescription/b uThe requested resource 
 (Moved Temporarily) has moved temporarily to a new 
 location./u/pHR 
 size=1 noshade/body/htmlConnection closed by foreign host.
 steve@linux:/usr/local/Tomcat/bin 
 ==
 =
 
 
 
 
 
 Ralph Einfeldt wrote:
 
 
 Okay, now we know that your tomcat is up and listening on 
 port 8080.
 
 try the telnet sequence with localhost as hostname.
 
 
 
 -Ursprüngliche Nachricht-
 Von: Steve [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 15. Januar 2002 08:31
 An: Tomcat Users List
 Betreff: Re: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 
 Work In Stand
 Alone Mode
 
 
 Okay.  I executed some of these commands.  I didn't try the 
 
 last part 
 
 about telneting because I couldn't find a hostname.
 
 Any clues you can get from this will be appreciated.
 
 BTW the permissions of my Tomcat directory are as follows:
 User: steve
 Group: users
 
 rwx rwx rwx
 
 Maybe this has something to do with it.
 
 
 
 Here is my output:
 
 steve@linux:/usr/local/Tomcat/bin  startup.sh
 Using CLASSPATH: 
 /usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
 Using CATALINA_BASE: /usr/local/Tomcat
 Using CATALINA_HOME: /usr/local/Tomcat
 Using JAVA_HOME: /usr/local/JDK
 steve@linux:/usr/local/Tomcat/bin 
 
 steve@linux:/usr/local/Tomcat/bin  su root
 Password:
 root@linux:/usr/local/Tomcat/bin 

Status 503 - Servlet invoker is currently unavailable

2002-01-16 Thread graghavan

does any one know:
if in tomcat 4.0, the InvokerServlet works or it is there as a
decoration or a future planned feature.
with an unregistered servlet class snuck into the working
webapps/examples/web-inf/classes directory, i got the error:   HTTP
Status 503 - Servlet invoker is currently unavailable
the archives are out of commission at this time for me to do a search.
pls comment if you have seen the error message before.
tnx.
graghavan




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




RE: Windows UNC path problem in document location

2002-01-16 Thread Sreedhar, Dantam

Hi Anton,

Currently I am using this option only and I want replace drive mappings with
UNC path, as I am running tomcat as service and at the time of starting the
service, no drives are mapped. I can avoid this problem by using UNC path. 

Thanks,
Sreedhar

-Original Message-
From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 8:35 PM
To: Tomcat Users List
Subject: Re: Windows UNC path problem in document location


This message uses a character set that is not supported by the Internet
Service.  To view the original message content,  open the attached message.
If the text doesn't display correctly, save the attachment to disk, and then
open it using a viewer that can display the original character set. 

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




java.io.IOException: Illegal to flush within a custom tag ?

2002-01-16 Thread hhager

Yes, I've seen the bug report on this, and it says 
that the JSP 1.1 spec makes it illegal to call flush() within 
a custom tag, and using the pageContext.include(some.jsp) 
method does just that, thus the error: 

java.io.IOException: Illegal to flush within a custom tag 

bug report: 
http://w6.metronet.com/~wjm/tomcat/2001/Jan/msg00640.html

But they say to use tomcat 4.0 to get past this bug because 
the newer spec removed this restriction.  However, with 
tomcat-4.0.1, I still get that error.  So has this 
restriction really been removed or not yet?  Any other way 
to include a jsp page within a nested custom tag?  

thanks, John. 

o00o
John W. Hager -- orgo services
email: [EMAIL PROTECTED]
  tel: 619.232.1829
0oo0


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




Servicing/relaying HTTP proxy request with tomcat/catalina

2002-01-16 Thread Coetmeur, Alain


Is it possible to make catalina behave like a 
classic HTTP proxy... 
At least to intercept proxy URL and transmit them to
a webapp, that could answer for them...

as far as I know, proxu request deffers from classic request
by the fact the URL don't start with / but with
protocol:

is it possible to declare that URL
http:/* is serviced by a given servlet ?

I think about a filtering proxy, that log the
requested URL, make statistics, relays, blocks
or modify requests...



--
Alain Coetmeur

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




Re: Re: Can't get it working: TC4.0.x + warp + Apache + SuSE Linux 7.3

2002-01-16 Thread Baer Peter


Hi all you,

thanks for your quick response. Before replying individually, I'd
like to post a couple of question.


Is the configuration depending on the existence of a directory or
symlink libexec?

I'm asking, because under SuSE Linux the Apache webserver modules
directory is /usr/lib/apache. Preceeding versions of Tomcat created
configuration files at startup automatically, with paths containing
libexec explicitly. The cure was a symlink libexec in 
/usr/local/httpd/htdocs pointing to /usr/lib/apache.
TC4 apparently does not create config files. And I *have* the
symlink, anyway. Just for better understanding...

Second question: Could anyone think of dependencies of SuSE vs RH,
that could explain my non-success?

Ok, here my individual replies to you:

Chris Newland: Thanks for your advice, I'll check out, what happens
 with a mod_webapp.so built.so (and report the results, then).
 Certainly a good idea, I think. And, BTW, it's interesting
 that you already have Cocoon 2.0 --- this is, actually, where
 we want to go with TC4. So in case we have trouble, there's
 at least someone out there, who knows, how to do it [;-)]

Anton Brazhnyk: Yes, if we don't make very soon, we'll drop back to
 TC3.3 and mod_jk. But first I'd like to give the combination
 of TC4 and mod_jk a go. Again I'll report my results, of
 course.
 And yes: Your messages are readable.

Tulan W. Hu: Yes, I have tried http://MyHost.de/examples/jsp/index.html.
 The response is a blank page, just like with
 http://MyHost.de/examples/, whereas http://MyHost.de/examples
 (without the slash at the end) gives Not found.
 In fact I followed your thread. Initially it looked as if you
 had a very similar problem. However, your solution (just a slash
 at the end of the URL) does not work for me, it seems... 8-(

Best wishes

 Peter

-- 
+---+-+
|mailto:[EMAIL PROTECTED]   |
+-+


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




RE: tomcat or catalina?

2002-01-16 Thread Matt Sweetnam

Thanks.. that clears up some confusion for me. :0)

 -Original Message-
From:   David Smith [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 16, 2002 10:19 AM
To: Tomcat Users List
Subject:Re: tomcat or catalina?

The difference is version.  In Tomcat 4, CATALINA_HOME is the
environment 
variable to set for where Tomcat lives.  In Tomcat 3.x.x, TOMCAT_HOME is
the 
environment variable for where Tomcat lives.

I think it was done primarily as a migration feature so you could have
both 
running and they wouldn't run into each other.

--David

On Wednesday 16 January 2002 10:23 am, you wrote:
 What is the difference between Tomcat and Catalina? There is
TOMCAT_HOME
 and CATALINA_HOME.. which do you define?


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

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



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




Threads problem with Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris x86 2.8 box (with Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit))

2002-01-16 Thread Roman Medina


  Hi ppl:

 I'm running Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris
x86 2.8 box (with Sun JDK 1.2), and I'm in trouble. When I thought all
was working ok I realized that with some applications my Tomcat
crashes!! This happens after receiving several errors (see attached
log). Any help would be greatly appreciated. I'm in a hurry... :-(

---
Thread-34 (TID:0x8bed968, sys_thread_t:0x8bed8b0, state:CW,
thread_t: t@82, threadID:0xd9560d74, stack_bottom:0xd9561000,
stack_size:0x2) prio=5

[1] java.lang.Thread.sleep(Native Method)
[2] batmap.map.MapCheckConnection.run(MapCheckConnection.java:24)
---
Thread-33 (TID:0x8cbf030, sys_thread_t:0x8cbef78, state:CW,
thread_t: t@81, threadID:0xd95b0d74, stack_bottom:0xd95b1000,
stack_size:0x2) prio=5

[1] java.lang.Thread.sleep(Native Method)
[2] batmap.map.MapCheckConnection.run(MapCheckConnection.java:24)
---
SeedGenerator Thread (TID:0x877c258, sys_thread_t:0x877c1a0,
state:CW, thread_t: t@26, threadID:0xd9610d74,
stack_bottom:0xd9611000, stack_size:0x2) prio=1

[1] java.lang.Object.wait(Object.java:424)
[2] sun.security.provider.SeedGenerator.run(SeedGenerator.java:107)
[3] java.lang.Thread.run(Thread.java:478)
---
Thread-18 (TID:0x8181940, sys_thread_t:0x8181888, state:MW,
thread_t: t@1, threadID:0x804c058, stack_bottom:0x8048000,
stack_size:0x848000) prio=5

---
MonitorRunnable (TID:0x868c0f0, sys_thread_t:0x868c038, state:CW,
thread_t: t@25, threadID:0xd9aa0d74, stack_bottom:0xd9aa1000,
stack_size:0x2) prio=5

[1]
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(Unknown
Source)
[2] java.lang.Thread.run(Thread.java:478)
---
Thread-16 (TID:0x867e328, sys_thread_t:0x867e270, state:R, thread_t:
t@24, threadID:0xd9ae0d74, stack_bottom:0xd9ae1000,
stack_size:0x2) prio=5

[1] java.net.SocketInputStream.socketRead(Native Method)
[2] java.net.SocketInputStream.read(SocketInputStream.java:85)
[3] org.apache.tomcat.modules.server.Ajp13.readN(Unknown Source)
[4] org.apache.tomcat.modules.server.Ajp13.receive(Unknown Source)
[5] org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Unknown
Source)
[6]
org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Unknown
Source)
[7]
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
[8] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
[9]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[10] java.lang.Thread.run(Thread.java:478)
---
Thread-15 (TID:0x86592a0, sys_thread_t:0x86591e8, state:R, thread_t:
t@23, threadID:0xd9b20d74, stack_bottom:0xd9b21000,
stack_size:0x2) prio=5 *current thread*

[1] com.coolservlets.util.StringUtils.hash(StringUtils.java:224)
[2]
com.coolservlets.forum.database.DbAuthorizationFactory.getAuthorization(DbAuthorizationFactory.java:84)
[3] UserLogin.doGet(UserLogin.java)
[4] javax.servlet.http.HttpServlet.service(HttpServlet.java)
[5] javax.servlet.http.HttpServlet.service(HttpServlet.java)
[6] org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
[7] org.apache.tomcat.core.Handler.invoke(Unknown Source)
[8] org.apache.tomcat.core.Handler.service(Unknown Source)
[9] org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
[10] org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
[11] org.apache.tomcat.core.ContextManager.service(Unknown Source)
[12]
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
[13] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
[14]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[15] java.lang.Thread.run(Thread.java:479)
---
Thread-14 (TID:0x868eee8, sys_thread_t:0x868ee30, state:R, thread_t:
t@22, threadID:0xd9b60d74, stack_bottom:0xd9b61000,
stack_size:0x2) prio=5

[1] java.net.PlainSocketImpl.socketAccept(Native Method)
[2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406)
[3] java.net.ServerSocket.implAccept(ServerSocket.java:238)
[4] java.net.ServerSocket.accept(ServerSocket.java:223)
[5] org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown
Source)
[6] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
[7]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[8] java.lang.Thread.run(Thread.java:479)
---
Thread-13 (TID:0x8685840, sys_thread_t:0x8685788, state:CW,
thread_t: t@21, threadID:0xd9ba0d74, stack_bottom:0xd9ba1000,
stack_size:0x2) prio=5

[1] java.lang.Object.wait(Object.java:424)
[2]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[3] java.lang.Thread.run(Thread.java:479)
---
MonitorRunnable (TID:0x8689c98, sys_thread_t:0x8689be0, state:CW,
thread_t: t@20, threadID:0xd9be0d74, stack_bottom:0xd9be1000,
stack_size:0x2) prio=5

[1]

Re: tomcat or catalina?

2002-01-16 Thread Craig R. McClanahan

On Wed, 16 Jan 2002, Matt Sweetnam wrote:

 Date: Wed, 16 Jan 2002 09:23:25 -0600
 From: Matt Sweetnam [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: tomcat or catalina?

 What is the difference between Tomcat and Catalina? There is TOMCAT_HOME
 and CATALINA_HOME.. which do you define?


Tomcat 3.x uses TOMCAT_HOME, while Tomcat 4.x uses CATALINA_HOME.

Craig



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




RE: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Heitzso

I recently fought something similar on RH7.2 
and fell back to mod_jk but left tomcat at 4.0.1.
That combo is working _much_ better than
warp and tomcat 4.0.1.

Our problem in brief:
standalone tomcat finds welcome-list and index.html
warp does not find welcome-list and index.html
warp finds index.html if fully spec'ed in URL
warp failed to catch some servlets
mod_jk found the servlets

-Original Message-
From: Baer Peter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 9:49 AM
To: [EMAIL PROTECTED]
Subject: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE
Linux 7.3


Hi all you,

thanks for your quick response. Before replying individually, I'd
like to post a couple of question.


Is the configuration depending on the existence of a directory or
symlink libexec?

I'm asking, because under SuSE Linux the Apache webserver modules
directory is /usr/lib/apache. Preceeding versions of Tomcat created
configuration files at startup automatically, with paths containing
libexec explicitly. The cure was a symlink libexec in 
/usr/local/httpd/htdocs pointing to /usr/lib/apache.
TC4 apparently does not create config files. And I *have* the
symlink, anyway. Just for better understanding...

Second question: Could anyone think of dependencies of SuSE vs RH,
that could explain my non-success?

Ok, here my individual replies to you:

Chris Newland: Thanks for your advice, I'll check out, what happens
with a mod_webapp.so built.so (and report the results, then).
Certainly a good idea, I think. And, BTW, it's interesting
that you already have Cocoon 2.0 --- this is, actually, where
we want to go with TC4. So in case we have trouble, there's
at least someone out there, who knows, how to do it ;-)

Anton Brazhnyk: Yes, if we don't make very soon, we'll drop back to
TC3.3 and mod_jk. But first I'd like to give the combination
of TC4 and mod_jk a go. Again I'll report my results, of
course.
And yes: Your messages are readable.

Tulan W. Hu: Yes, I have tried http://MyHost.de/examples/jsp/index.html.
The response is a blank page, just like with
http://MyHost.de/examples/, whereas http://MyHost.de/examples
(without the slash at the end) gives Not found.
In fact I followed your thread. Initially it looked as if you
had a very similar problem. However, your solution (just a slash
at the end of the URL) does not work for me, it seems... 8-(

Best wishes

Peter

-- 
+---+-+
|mailto:[EMAIL PROTECTED]   |
+-+


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

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




encodeURL bug: doesn't work with virtual hosts or ports

2002-01-16 Thread Nicholas Ide


Tomcat 4.0.1
Apache 1.3.2 (tried with mod_webapp and mod_jk)

encodeURL(http://foo:80/junk;) does not encode the
sessionId even with cookies disabled, unless foo is
the ServerName and 80 is the Listen port.

In our environment, foo is a virtual hostname and 1234 
is a virtual port.  We use a load balancing product from Resonate
to forward the foo:80 request to bar:9080.  So, the machine
which is running the servlet is actually bar and the effective
port on that machine is 9080.  When the servlet does an
encodeURL(relativepath) it correctly encodes the session id.
But, if the servlet does an encodeURL(http://foo/junk;) it does
not encode the session id.

Apparently, encodeURL is trying to be too smart and is trying to 
distinguish between a URL that refers to the current servlet 
and a URL that goes outside.  Unfortunately, encodeURL apparently
doesn't have enough information to do this job correctly.  It would
be much better if encodeURL would ALWAYS encode the session id
(if cookies are off) rather than trying to second guess the caller.

getRequestURL also produces the wrong answer.
With mod_webapp, it uses the hostname from the ServerName rather 
than the VIP name.  With mod_jk, the hostname is correct, but it uses
the Listen port rather than the port specified by the user.

Questions:  (Or, whose bug is it?)

Do you consider these to be mod_jk and mod_webapp bugs?

Is it reasonable to expect that getRequestURL will yield
EXACTLY the user request, rather than a guess based on
the server configuration?

Is it incorrect to use encodeURL with a fully specified URL?

Thanks,

Nick Ide


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




Cannot display page

2002-01-16 Thread Matt Sweetnam

I'm getting a:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot
be displayed.
From the browser when I go to http://localhost:8080
I'm running Tomcat version 4.0.1 with JDK of 1.3.1 
The log file reads something like this:

[11:28:53,632,EmbeddedCatalinaServiceSX] StandardHost[localhost]:
MAPPING configuration error for request URI 
[11:28:53,632,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4]
process.invoke
java.lang.NullPointerException
at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherVa
lve.java:280)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106)
at java.lang.Thread.run(Unknown Source)

Anyone have any problem with this? Or even a thought on what is causing
it? I thought it was the JDK version I was using so I went back to a JDK
that had worked in the past (1.3.0) and it still threw this exception.
I'm totally puzzled. 
:-|

Thanks,
Matt


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




tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Martin Sujkowski

Hello,

I just installed tomcat 4.01 on a windows 2000 server. I followed all the
steps very diligently and still failed to get it to work. I went through all
the troubleshooting steps and none of them fixed my problem. The problem is
that I get a 401 error when try to open
http://localhost/examples/jsp/index.html  .The troubleshooting section
doesn't list this kind of error. Does anyone have any ideas?
Thanks for any help.

Sincerely

Martin


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




Aache+Tomcat+load balancing!!!

2002-01-16 Thread UANCHEBALDO

 I'm a student at the second University of Roma Tor Vergata and use
 Apache
 and Tomcat for my thesis's
 work. I have one PC with APACHE 1.3.12 and more PC with TOMCAT-3.3
 everyone
 with more workers, and use
 load balancing. this is my workers.properties file (for simplicity two
 host
 with Tomcat everyone with two
 workers):

 # workers.properties -
 #
 # This file provides jk derived plugins with the needed information to
 # connect to the different tomcat workers. Note that the distributed
 # version of this file requires modification before it is usable by a
 # plugin.
 #
 # As a general note, the characters $( and ) are used internally to
 define
 # macros. Do not use them in your own configuration!!!
 #
 # Whenever you see a set of lines such as:
 # x=value
 # y=$(x)\something
 #
 # the final value for y will be value\something
 #
 # Normaly all you will need to do is un-comment and modify the first
 three
 # properties, i.e. workers.tomcat_home, workers.java_home and ps.
 # Most of the configuration is derived from these.
 #
 # When you are done updating workers.tomcat_home, workers.java_home and
 ps
 # you should have 3 workers configured:
 #
 # - An ajp12 worker that connects to localhost:8007
 # - An ajp13 worker that connects to localhost:8009
 # - A jni inprocess worker.
 # - A load balancer worker
 #
 # However by default the plugins will only use the ajp12 worker. To have
 # the plugins use other workers you should modify the worker.list
 property.
 #
 #

 # OPTIONS ( very important for jni mode )

 #
 # workers.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 # workers.tomcat_home=c:\tomcat

 workers.tomcat_home=/usr/local/tomcat

 #
 # workers.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 # workers.java_home=c:\jdk1.3

 workers.java_home=/usr/java

 #
 # You should configure your environment slash... ps=\ on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 # ps=\
 ps=/

 #
 #-- ADVANCED MODE 
 #-
 #

 #
 #-- DEFAULT worket list --
 #-
 #
 #
 # The workers that your plugins should create and work with
 #
 # Add 'inprocess' if you want JNI connector
 # write the name of workers if you do not use the load balancing

 worker.list=loadbalancer

 #
 #-- DEFAULT ajp12 WORKER DEFINITION --
 #-
 #

 #
 # Defining a worker named ajp12 and of type ajp12
 # Note that the name and the type do not have to match.
 #

 worker.ajp12.port=8007

 # IP address of the host
 worker.ajp12.host=xxx.xxx.xxx.xxx
 worker.ajp12.type=ajp12

 #
 # Another work on the same machine
 #
 worker.ajpA12.port=8008
 worker.ajpA2.host=xxx.xxx.xxx.xxx
 worker.ajpA12.type=ajp12

 worker.ajpB12.port=8007
 worker.ajpB12.host=yyy.yyy.yyy.yyy
 worker.ajpB12.type=ajp12

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #  lbfactor must be  0
 #  Low lbfactor means less work done by the worker.
 worker.ajp12.lbfactor=1
 worker.ajpA12.lbfactor=1
 worker.ajpB12.lbfactor=10
 #
 #-- DEFAULT ajp13 WORKER DEFINITION --
 #-
 #

 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13.port=8008
 worker.ajp13.host=yyy.yyy.yyy.yyy
 worker.ajp13.type=ajp13

 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #  lbfactor must be  0
 #  Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=10


 #
 # Specify the size of the open connection cache, 1 is the default.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) workers perform wighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #  If a worker dies, the load balancer will check its state
 # once in a while. Until then all work is redirected to peer
 # workers.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13, ajp12, ajpA12, ajpB12

 #
 #-- DEFAULT JNI WORKER DEFINITION-
 #-
 #

 #
 # Defining a worker named inprocess and of type jni
 # Note that the name and the type do not have to match.
 #
 worker.inprocess.type=jni

 #
 #-- CLASSPATH DEFINITION -
 

jsp wont open unless port 8080 is specified in browser

2002-01-16 Thread William Cheng

hi all

how can i get the my jsp files to open without specifying port 8080 
on the browser.  if i dont specify 8080 and login screen pops up.  
thanks for any information

Will

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




RE: Threads problem with Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris x86 2.8 box (with Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit))

2002-01-16 Thread Guido Medina

Try upgrading to jdk 1.3.lastest_lastest

-Original Message-
From: Roman Medina [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 1:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Threads problem with Apache 1.3.22 + Tomcat 3.3 + Cocoon
1.8.2 on a Solaris x86 2.8 box (with Solaris VM (build
Solaris_JDK_1.2.2_05a, native threads, sunwjit))



  Hi ppl:

 I'm running Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris
x86 2.8 box (with Sun JDK 1.2), and I'm in trouble. When I thought all
was working ok I realized that with some applications my Tomcat
crashes!! This happens after receiving several errors (see attached
log). Any help would be greatly appreciated. I'm in a hurry... :-(

---
Thread-34 (TID:0x8bed968, sys_thread_t:0x8bed8b0, state:CW,
thread_t: t@82, threadID:0xd9560d74, stack_bottom:0xd9561000,
stack_size:0x2) prio=5

[1] java.lang.Thread.sleep(Native Method)
[2] batmap.map.MapCheckConnection.run(MapCheckConnection.java:24)
---
Thread-33 (TID:0x8cbf030, sys_thread_t:0x8cbef78, state:CW,
thread_t: t@81, threadID:0xd95b0d74, stack_bottom:0xd95b1000,
stack_size:0x2) prio=5

[1] java.lang.Thread.sleep(Native Method)
[2] batmap.map.MapCheckConnection.run(MapCheckConnection.java:24)
---
SeedGenerator Thread (TID:0x877c258, sys_thread_t:0x877c1a0,
state:CW, thread_t: t@26, threadID:0xd9610d74,
stack_bottom:0xd9611000, stack_size:0x2) prio=1

[1] java.lang.Object.wait(Object.java:424)
[2] sun.security.provider.SeedGenerator.run(SeedGenerator.java:107)
[3] java.lang.Thread.run(Thread.java:478)
---
Thread-18 (TID:0x8181940, sys_thread_t:0x8181888, state:MW,
thread_t: t@1, threadID:0x804c058, stack_bottom:0x8048000,
stack_size:0x848000) prio=5

---
MonitorRunnable (TID:0x868c0f0, sys_thread_t:0x868c038, state:CW,
thread_t: t@25, threadID:0xd9aa0d74, stack_bottom:0xd9aa1000,
stack_size:0x2) prio=5

[1]
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(Unknown
Source)
[2] java.lang.Thread.run(Thread.java:478)
---
Thread-16 (TID:0x867e328, sys_thread_t:0x867e270, state:R, thread_t:
t@24, threadID:0xd9ae0d74, stack_bottom:0xd9ae1000,
stack_size:0x2) prio=5

[1] java.net.SocketInputStream.socketRead(Native Method)
[2] java.net.SocketInputStream.read(SocketInputStream.java:85)
[3] org.apache.tomcat.modules.server.Ajp13.readN(Unknown Source)
[4] org.apache.tomcat.modules.server.Ajp13.receive(Unknown Source)
[5] org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Unknown
Source)
[6]
org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Unknown
Source)
[7]
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
[8] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
[9]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[10] java.lang.Thread.run(Thread.java:478)
---
Thread-15 (TID:0x86592a0, sys_thread_t:0x86591e8, state:R, thread_t:
t@23, threadID:0xd9b20d74, stack_bottom:0xd9b21000,
stack_size:0x2) prio=5 *current thread*

[1] com.coolservlets.util.StringUtils.hash(StringUtils.java:224)
[2]
com.coolservlets.forum.database.DbAuthorizationFactory.getAuthorization(DbAu
thorizationFactory.java:84)
[3] UserLogin.doGet(UserLogin.java)
[4] javax.servlet.http.HttpServlet.service(HttpServlet.java)
[5] javax.servlet.http.HttpServlet.service(HttpServlet.java)
[6] org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
[7] org.apache.tomcat.core.Handler.invoke(Unknown Source)
[8] org.apache.tomcat.core.Handler.service(Unknown Source)
[9] org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
[10] org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
[11] org.apache.tomcat.core.ContextManager.service(Unknown Source)
[12]
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
[13] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
[14]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[15] java.lang.Thread.run(Thread.java:479)
---
Thread-14 (TID:0x868eee8, sys_thread_t:0x868ee30, state:R, thread_t:
t@22, threadID:0xd9b60d74, stack_bottom:0xd9b61000,
stack_size:0x2) prio=5

[1] java.net.PlainSocketImpl.socketAccept(Native Method)
[2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406)
[3] java.net.ServerSocket.implAccept(ServerSocket.java:238)
[4] java.net.ServerSocket.accept(ServerSocket.java:223)
[5] org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown
Source)
[6] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
[7]
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
[8] java.lang.Thread.run(Thread.java:479)
---
Thread-13 (TID:0x8685840, sys_thread_t:0x8685788, state:CW,
thread_t: t@21, threadID:0xd9ba0d74, stack_bottom:0xd9ba1000,

Re: AW: AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-16 Thread Steve



Ralph Einfeldt wrote:

 I'm not familiar with the default install. 
 (The last install is a year ago and wasn't done by me)


By default install I only mean what you get once you uncompress Tomcat.
Usually with the default install( once you have the env variables set 
up) you get sent to a tomcat welcome page if you type 
http://localhost:8080 into your browser...if tomcat is functioning 
properly

This is what I haven't been able to get with Tomcat 4.0.1, jdk 1.3.1_02.




 
 To see something, there must be a index.html somewhere
 in the default context, if not you won't see anything
 but 'file not found'.
 
 What kind of error do you get in the browser?


If I am connected to the internet none.

Netscape just sends me to some general page in its domain:
http://search.netscape.com/search.psp?cp=clkussrpcharset=UTF-8search=localhost

If am not connected to the internet I get an pop up with the message
the connection was refused when attempting to contact info.netscape.com





 
 
-Ursprüngliche Nachricht-
Von: Steve [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 16. Januar 2002 16:48
An: Tomcat Users List
Betreff: Re: AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In
Stand Alone Mode




Ralph Einfeldt wrote:


So tomcat is not only listening but also serving locally.

The 'Moved Temporarily' is just a redirect from / to /index.html

If there is a page index.html in your webapp, you should be able 
to visit the site from a browser locally.



I haven't gotten as far as making a webapp:).  I just 
installed Tomcat 
4.0.1 on Suse 7.2 with the jdk 1.3.1_02.   All of this has been about 
the initial testing with trying to get Tomcat's default page 
to come up 
when I type in http://localhost:8080.

I still haven't gotten there :).



Verify that your browser is not using a proxy, as the
proxy might be an additional source for an error.


No problems there.  I'm using Netscape 6.2.1.  Under Edit | 
Preferences 
| Advanced | Proxies it is set to a radio button that says Connect 
directly to the internet, no proxy.

I haven't had any luck using the konqueror browser either.

 

-Ursprüngliche Nachricht-
Von: Steve [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 16. Januar 2002 03:20
An: Tomcat Users List
Betreff: Re: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 
Work In Stand
Alone Mode


Sharp thinking Ralph.

I finally got an error message when telneting to localhost 
8080. I ran 
GET / HTTP 1.0 and Tomcat generated an error page in html.  
This was the 
 message:

=
Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily
type Status report
message Moved Temporarily

description The requested resource (Moved Temporarily) has moved 
temporarily to a new location.
=

The Tomcat logs once again showed everything to be fine.

My knowledge of HTTP protocols is very limited so I have no 

idea what 

Tomcat means by Moved temporarily or what to do about it :).

The output from the telnet session mentioned that an initial 
address was 
refused.  Maybe that has something to do with it?


In case you have any ideas he is the shell output of the 
telnet I ran on 
localhost:

==
==
steve@linux:/usr/local/Tomcat/bin  telnet localhost 8080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP 1.0

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Wed, 16 Jan 2002 02:05:55 GMT
Location: http://localhost:8080/index.html
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Connection: close

htmlheadtitleApache Tomcat/4.0.1 - Error 
report/titleSTYLE!--H1{font-family : 
sans-serif,Arial,Tahoma;color 
: white;background-color : #0086b2;} BODY{font-family : 
sans-serif,Arial,Tahoma;color : black;background-color : 
white;} B{color 
: white;background-color : #0086b2;} HR{color : #0086b2;} 

--/STYLE 

/headbodyh1Apache
Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily/h1HR size=1 
noshadepbtype/b Status report/ppbmessage/b uMoved 
Temporarily/u/ppbdescription/b uThe requested resource 
(Moved Temporarily) has moved temporarily to a new 
location./u/pHR 
size=1 noshade/body/htmlConnection closed by foreign host.
steve@linux:/usr/local/Tomcat/bin 
==
=





Ralph Einfeldt wrote:



Okay, now we know that your tomcat is up and listening on 

port 8080.

try the telnet sequence with localhost as hostname.




-Ursprüngliche Nachricht-
Von: Steve [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 15. Januar 2002 08:31
An: Tomcat Users List
Betreff: Re: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 

Work In Stand

Alone Mode


Okay.  I executed some of these commands.  I didn't try the 


last part 


about telneting because I couldn't find a hostname.

Any clues you can get from 

Re: --- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Marcelo Demestri

Thanks you very much Larry but...
What do you mean with or allow that docBase to be auto-served ?

My servlet receives user's parameters (the webapp-but here this concepts
is personal and a little different for the official term- to deploy) and
according to them it looks for the information that needs to display the
contents of this application (i.e. jsp pages). I wanted to be able to locate
this information in any place, but only works when I locate it in the
webapps/ROOT.

If I put the jsp pages in a anyone directory (i.e.
c:/projects/MyApp/html/*.jsp) and wanted that the call of my servlet
/MyApp/html/arch.jsp worked, how I would have to do it? Defining a context
project? Defining to project like context root?

In IIS I can define an application (can be anyone folder) and
automatically it enters under the publication hierarchy
inetpub/wwwroot/folder, and as inetpub/wwwroot is publication's root,
request of the type /folder/html/arch.jsp is made without errors.

I hope not to have entangled much! and Pardon by my English, is not very
good: -)

Marcelo

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 7:58 AM
Subject: RE: --- Please helpme: Tomcat visibility (I think!)


 If you use:

 Context path=/MyApp docBase=MyApp ...

 or allow that docBase to be auto-served and have:

 CATALINA_HOME/webapps/MyApp
 CATALINA_HOME/webapps/MyApp/html/arch.jsp
 CATALINA_HOME/webapps/MyApp/WEB-INF
 ... etc.

 then /html/arch.jsp is the correct URL.

 If you use:

 Context path= docBase=ROOT ...

 or allow that docBase to be auto and have:

 CATALINA_HOME/webapps/ROOT/MyApp
 CATALINA_HOME/webapps/ROOT/MyApp/html/arch.jsp
 CATALINA_HOME/webapps/ROOT/WEB-INF
 ... etc.

 then /MyApp/html/arch.jsp is the correct URL.
 In this case MyApp gets treated as an ordinary directory
 rather than as a web application.

 If the IIS+JRun was working, I would assume you
 were using a deployment similar to the later case
 above.

 Note, you don't state exactly what the servlet is
 doing.  I could be wrong in my interpretation of what you
 mean by call in creating the path to call certain jsp.
 I'm assuming a RequestDispatcher include or forward.

 Cheers,
 Larry

  -Original Message-
  From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 16, 2002 3:01 PM
  To: Tomcat Users List
  Subject: Re: --- Please helpme: Tomcat visibility (I think!)
 
 
  Thanks Larry for the answer!
 
  I try with /html/arch.jsp instead of /MyApp/html/arch.jsp
  but still
  don't work.
  By default, it would not have to be %CATALINA_HOME%/webapps
  the context
  root? This is correct? I worked with IIS(+JRun), the request
  generated by my
  servlet (/MyApp/html/arch.jsp) work in this environment,
  and when I began
  with Tomcat I thought that wwwroot=webapps.
  I must migrate all to Apache(1.3.22)+Tomcat(4.0.1) and what
  wanted is not to
  have to modify the servlet (built by other person), and to
  make it work in
  Apache+Tomcat as it works with IIS+JRun.
 
  More suggestions are appreciate!
  Thanks
 
  Marcelo
 
  - Original Message -
  From: Larry Isaacs [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, January 16, 2002 5:13 AM
  Subject: RE: --- Please helpme: Tomcat visibility (I think!)
 
 
   It looks like your relative path should be /html/arch.jsp,
   not /MyApp/html/arch.jsp.  When refering to a page
   within the same web application, you shouldn't include
   the context name. It worked under ROOT because /MyApp
   in this case isn't a context name but a directory name,
   making /MyApp/html/arch.jsp the correct URL.
  
   Cheers,
   Larry
  
-Original Message-
From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 12:14 PM
To: Tomcat Users List
Subject: --- Please helpme: Tomcat visibility (I think!)
   
   
Hi all!
I hope that someone can help me, since this is urgent for me.
I have a servlet that processes certain information according
to the data
provided by the user.
My problem is: this servlet, when creating the path to call
certain jsp,
uses a relative path of the type  / MyApp/html/arch.jsp .
My arch.jsp is
in the path %CATALINA_HOME%/webapps/MyApp/html/arch.jsp
If this structure of directories is not under ROOT (that
  is to say,
ROOT/MyApp/html/arch.jsp), Tomcat gives back an Error to me
404 Not Found.
As I said, I have a folder  MyApp  within  /webapps  but
Tomcat does not
find the jsp page. Inclusively I created a context for this
application, but
it does not work. Also it tries servlet mapping within
  web.xml without
results (good, in fact this is not related to the problem,
since servlet is
located by Tomcat... what it cannot find are the pages jsp).
This is a prove 

Re: Re: Can't get it working: TC4.0.x + warp + Apache + SuSE Linux 7.3

2002-01-16 Thread Tulan W. Hu

I believe the symlink should work fine. (at least it works on solaris 8)
The libexec should be under 'ServerRoot' instead of 'DocumentRoot'.
Run httpd -l and make sure the mod_so is in the list.
Put
LoadModule webapp_module libexec/mod_webapp.so
in the httpd.conf

- Original Message -
From: Baer Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 11:08 AM
Subject: Re: Re: Can't get it working: TC4.0.x + warp + Apache + SuSE Linux
7.3

 Is the configuration depending on the existence of a directory or
 symlink libexec?



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




tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Martin Sujkowski

well i got passed my first problem by myself. Somehow figured it out. But
here is a backup one just in case someone wanted to help me:
None of the examples on the index.html page (jsp) work. All I get is
is this:

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

C:\jakarta-tomcat\work\localhost\examples\jsp\mail\sendmail$jsp.java:61:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error, 1 warning

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:539)







any suggestions?




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




RE: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Mike Curwen

If you're on Windows 2000 Server, then you probably have IIS running on port
80?  So localhost:8080 should be used to specify Tomcat.

401 is Unauthorized, which indicates your request lacked authorization to
access the resource.



-Original Message-
From: Martin Sujkowski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 11:55 AM
To: Tomcat Users List
Subject: tomcat 4.01 and win2000 server-cant get it to work


Hello,

I just installed tomcat 4.01 on a windows 2000 server. I followed all the
steps very diligently and still failed to get it to work. I went through all
the troubleshooting steps and none of them fixed my problem. The problem is
that I get a 401 error when try to open
http://localhost/examples/jsp/index.html  .The troubleshooting section
doesn't list this kind of error. Does anyone have any ideas?
Thanks for any help.

Sincerely

Martin


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


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




URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Ramkumar Menon

I am getting the following error when I try accessing the database via a
datasource .

javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

I am using Tomcat 4.0. My Server.xml contains the following.

 Context path=/soap docBase=soap-2_2/webapps/soap debug=1
reloadable=true 
   Resource name=jdbc/TestDataSource auth=Container
type=com.evermind.sql.DriverManagerDataSource/
  ResourceParams name=jdbc/TestDataSource

  parameter
nameuser/name
valuelogger/value
  /parameter

  parameter
namepassword/name
valuelogger/value
  /parameter

parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter

  parameter
namedriverName/name
valuejdbc:oracle:thin:@temp-sun.uk.company.com:1521:db1/value
  /parameter
  /ResourceParams
 /Context

The web.xml I am using contains the following

resource-ref
  descriptionlogging schema access/description
  res-ref-namejdbc/TestDataSource/res-ref-name
  res-typecom.evermind.sql.DriverManagerDataSource/res-type
  res-authContainer/res-auth
/resource-ref



Please guide me.


thanks,

Ram



Re: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Chetna Bhatt

Hi,
Try this link mabe some configuration problem:
http://www.onjava.com/pub/a/onjava/2001/03/29/tomcat.html

regards
chetna

Martin Sujkowski wrote:

 Hello,

 I just installed tomcat 4.01 on a windows 2000 server. I followed all the
 steps very diligently and still failed to get it to work. I went through all
 the troubleshooting steps and none of them fixed my problem. The problem is
 that I get a 401 error when try to open
 http://localhost/examples/jsp/index.html  .The troubleshooting section
 doesn't list this kind of error. Does anyone have any ideas?
 Thanks for any help.

 Sincerely

 Martin

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


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




Re: Status 503 - Servlet invoker is currently unavailable

2002-01-16 Thread Craig R. McClanahan

On Wed, 16 Jan 2002, graghavan wrote:

 Date: Wed, 16 Jan 2002 11:41:09 -0500
 From: graghavan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: Status 503 - Servlet invoker is currently unavailable

 does any one know:
 if in tomcat 4.0, the InvokerServlet works or it is there as a
 decoration or a future planned feature.
 with an unregistered servlet class snuck into the working
 webapps/examples/web-inf/classes directory, i got the error:   HTTP
 Status 503 - Servlet invoker is currently unavailable
 the archives are out of commission at this time for me to do a search.
 pls comment if you have seen the error message before.
 tnx.
 graghavan


The invoker servlet works fine for me, and for lots of other people.
There is most likely some problem in finding the servlet class you are
trying to invoke.  The details of what is wrong are in the stack trace
that shows on the error page, and/or in the log files in the logs
directory.

One guaranteed way to get an error is to use web-inf as the directory
name.  It must be WEB-INF (all capitals), even on a Windows system.

Craig


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




Re: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Marcelo Demestri

Generally (by default in the installation), Tomcat qualifies port 8080 for
HTTP requests, unless you changes explicitly this port in the server.xml
configuration file.
Test with http://localhost:8080/examples/jsp/index.html

Marcelo

- Original Message -
From: Martin Sujkowski [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 9:55 AM
Subject: tomcat 4.01 and win2000 server-cant get it to work


 Hello,

 I just installed tomcat 4.01 on a windows 2000 server. I followed all the
 steps very diligently and still failed to get it to work. I went through
all
 the troubleshooting steps and none of them fixed my problem. The problem
is
 that I get a 401 error when try to open
 http://localhost/examples/jsp/index.html  .The troubleshooting section
 doesn't list this kind of error. Does anyone have any ideas?
 Thanks for any help.

 Sincerely

 Martin


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



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




Re: jsp wont open unless port 8080 is specified in browser

2002-01-16 Thread Martin Sujkowski

i get a similar thing except if i dont use 8080 i get page cannot be
displayed screen.
With 8080 i still am getting internal server error with bunch of other crap
below it.

Martin
- Original Message -
From: William Cheng [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 1:15 PM
Subject: jsp wont open unless port 8080 is specified in browser


 hi all

 how can i get the my jsp files to open without specifying port 8080
 on the browser.  if i dont specify 8080 and login screen pops up.
 thanks for any information

 Will

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


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




Re: Threads problem with Apache 1.3.22 + Tomcat 3.3 + Cocoon 1. 8.2 on a Solaris x86 2.8 box (with Solaris VM (build Solaris_JDK_1.2.2_05 a, native threads, sunwjit))

2002-01-16 Thread Roman Medina

On Wed, 16 Jan 2002 14:14:33 -0400, you wrote:

Try upgrading to jdk 1.3.lastest_lastest

 Is it a know bug in 1.2 then??? Have anybody info about this bug?
Thx

--
Román Medina-Heigl Hernández
Sysadmin  Security Officer
@ BatMap S.A.

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




Servlet threw load() exception

2002-01-16 Thread August Detlefsen

I am getting this huge exception when attempting to start the one of my
webapps (webmail). At the end, it says 'starting completed', but the
webapp doesn't run. Anyone know what the exception means? 

Server: 
RedHat 7.1 
JDK 1.3.1 
Apache 1.3.2 - mod_webapp - Tomcat 4.0.1 

Short form: ___
2002-01-15 17:35:01 StandardContext[/webmail]: Servlet /webmail threw
load() exception 
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception 
...
- Root Cause - 
java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 


Full Error: 
2002-01-15 17:35:00 StandardContext[/webmail]: Configuring application
event listeners 
2002-01-15 17:35:00 StandardContext[/webmail]: Sending application
start events 
2002-01-15 17:35:00 StandardContext[/webmail]: Starting filters 
2002-01-15 17:35:00 StandardContext[/webmail]: Posting standard context
attributes 
2002-01-15 17:35:00 StandardWrapper[/webmail:default]: Loading
container servlet default 
2002-01-15 17:35:00 default: init 
2002-01-15 17:35:00 jwma: init 
2002-01-15 17:35:01 StandardWrapper[/webmail:invoker]: Loading
container servlet invoker 
2002-01-15 17:35:01 invoker: init 
2002-01-15 17:35:01 jsp: init 
2002-01-15 17:35:01 StandardContext[/webmail]: Servlet /webmail threw
load() exception 
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception 
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:826) 
at
org.apache.catalina.servlets.ManagerServlet.start(ManagerServlet.java:587)

at
org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:287)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
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:243)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:518)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:215)

at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)

at java.lang.Thread.run(Thread.java:484) 
- Root Cause - 
java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:139)

at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)

at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)

at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:138)

at

Re: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Terry McBride

Unless you hooked up mod_jk you have to specify the
port try http://localhost:8080/examples/jsp/index.html
 


--- Martin Sujkowski [EMAIL PROTECTED]
wrote:
 Hello,
 
 I just installed tomcat 4.01 on a windows 2000
 server. I followed all the
 steps very diligently and still failed to get it to
 work. I went through all
 the troubleshooting steps and none of them fixed my
 problem. The problem is
 that I get a 401 error when try to open
 http://localhost/examples/jsp/index.html  .The
 troubleshooting section
 doesn't list this kind of error. Does anyone have
 any ideas?
 Thanks for any help.
 
 Sincerely
 
 Martin
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


=
I'm concerned about a better world. I'm concerned about justice; I'm concerned about 
brotherhood; I'm concerned about truth. And when one is concerned about that, he can 
never advocate violence. For through violence you may murder a murderer, but you can't 
murder murder. Through violence you may murder a liar, but you can't establish truth. 
Through violence you may murder a hater, but you can't murder hate through violence. 
Darkness cannot put out darkness; only light can do that.

-M. L. King, Jr., 16 August 1967

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




INDIANNIC : Re: Configuring IIS 5.0 with Tomcat 4.0.1 - working!

2002-01-16 Thread IndianNIC-TOMCAT

Hi

thank u for the trouble u have taken and the help

i was successful in setting up this particular url for
http://209.11.42.166:8080
(or http://localhost:8080 )

using tomcat 4.0.1 and IIS 5.0
based on your advice
now if possible could advise further
we need to set up jsp for a website say for example
what are the addions / changes to be made to various files
www.aaaonlinux.com
how shud we go about that
thanks in advance

rajesh

- Original Message -
From: chris brown [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 8:16 PM
Subject: Configuring IIS 5.0 with Tomcat 4.0.1 - working!


 Thanks to everyone who provided me with suggestions. I got it working by
 useful the files and steps described at:

 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
 http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/

 One other thing took a while to fix... but that's the fault (well, a
 feature) of IIS.  I didn't install Tomcat within the inetpub
directory,
 so my folders only had Windows security permissions allowing the current
 Windows user or the administrator to access my Tomcat webapp files, NOT
the
 default anonymous internet access windows account.  Once I authorised
the
 appropriate users to access the folders for my webapp, I could access the
 site via IIS.  I had to do this for the jakarta alias too.

 Thanks for the help, hope this helps others too!

 - Chris



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




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




Re: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Martin Sujkowski

thanks for the help!
I got servelts to work. Jsps still not working.
Martin
- Original Message -
From: Chetna Bhatt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 1:54 PM
Subject: Re: tomcat 4.01 and win2000 server-cant get it to work


 Hi,
 Try this link mabe some configuration problem:
 http://www.onjava.com/pub/a/onjava/2001/03/29/tomcat.html

 regards
 chetna

 Martin Sujkowski wrote:

  Hello,
 
  I just installed tomcat 4.01 on a windows 2000 server. I followed all
the
  steps very diligently and still failed to get it to work. I went through
all
  the troubleshooting steps and none of them fixed my problem. The problem
is
  that I get a 401 error when try to open
  http://localhost/examples/jsp/index.html  .The troubleshooting section
  doesn't list this kind of error. Does anyone have any ideas?
  Thanks for any help.
 
  Sincerely
 
  Martin
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]


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


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




URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Ramkumar Menon

hi,

I am getting the following error when I try accessing the database via a
datasource .

javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

I am using Tomcat 4.0. My Server.xml contains the following.

 Context path=/soap docBase=soap-2_2/webapps/soap debug=1
reloadable=true 
   Resource name=jdbc/TestDataSource auth=Container
type=com.evermind.sql.DriverManagerDataSource/
  ResourceParams name=jdbc/TestDataSource

  parameter
nameuser/name
valuelogger/value
  /parameter

  parameter
namepassword/name
valuelogger/value
  /parameter

parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter

  parameter
namedriverName/name
valuejdbc:oracle:thin:@temp-sun.uk.company.com:1521:db1/value
  /parameter
  /ResourceParams
 /Context

The web.xml I am using contains the following

resource-ref
  descriptionlogging schema access/description
  res-ref-namejdbc/TestDataSource/res-ref-name
  res-typecom.evermind.sql.DriverManagerDataSource/res-type
  res-authContainer/res-auth
/resource-ref



Please guide me.


thanks,

Ram



RE: --- Please helpme: Tomcat visibility (I think!)

2002-01-16 Thread Larry Isaacs



 -Original Message-
 From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 16, 2002 6:38 PM
 To: Tomcat Users List
 Subject: Re: --- Please helpme: Tomcat visibility (I think!)
 
 
 Thanks you very much Larry but...
 What do you mean with or allow that docBase to be auto-served ?

You don't have to specify a Context... in server.xml.  It will
auto-serve subdirectories of the Host appBase directory which
is webapps in the default installation.

 
 My servlet receives user's parameters (the webapp-but here 
 this concepts
 is personal and a little different for the official term- 
 to deploy) and
 according to them it looks for the information that needs to 
 display the
 contents of this application (i.e. jsp pages). I wanted to be 
 able to locate
 this information in any place, but only works when I locate it in the
 webapps/ROOT.
 
 If I put the jsp pages in a anyone directory (i.e.
 c:/projects/MyApp/html/*.jsp) and wanted that the call of my servlet
 /MyApp/html/arch.jsp worked, how I would have to do it? 
 Defining a context
 project? Defining to project like context root?

Here you would typically include a Context declaration in your
server.xml since the web application is outside the auto-served
webapps directory, i.e.

Context path=/MyApp docBase=c:/projects/MyApp ...

 
 In IIS I can define an application (can be anyone folder) and
 automatically it enters under the publication hierarchy
 inetpub/wwwroot/folder, and as inetpub/wwwroot is 
 publication's root,
 request of the type /folder/html/arch.jsp is made without errors.

Note that IIS's inetpub/wwwroot folder is equivalent to
Tomcat's webapps/ROOT folder, not the webapps folder.
Both wwwroot and ROOT are root contexts.

Your servlet appears to be hard coded to work only if your content
is deployed under a root context.  You will have to choose between
keeping this restriction or fixing your servlet to be more flexible.
Not knowing much about your servlet, I can't speculate what the fix
would be.

Cheers,
Larry

 
 I hope not to have entangled much! and Pardon by my English, 
 is not very
 good: -)
 
 Marcelo
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 16, 2002 7:58 AM
 Subject: RE: --- Please helpme: Tomcat visibility (I think!)
 
 
  If you use:
 
  Context path=/MyApp docBase=MyApp ...
 
  or allow that docBase to be auto-served and have:
 
  CATALINA_HOME/webapps/MyApp
  CATALINA_HOME/webapps/MyApp/html/arch.jsp
  CATALINA_HOME/webapps/MyApp/WEB-INF
  ... etc.
 
  then /html/arch.jsp is the correct URL.
 
  If you use:
 
  Context path= docBase=ROOT ...
 
  or allow that docBase to be auto and have:
 
  CATALINA_HOME/webapps/ROOT/MyApp
  CATALINA_HOME/webapps/ROOT/MyApp/html/arch.jsp
  CATALINA_HOME/webapps/ROOT/WEB-INF
  ... etc.
 
  then /MyApp/html/arch.jsp is the correct URL.
  In this case MyApp gets treated as an ordinary directory
  rather than as a web application.
 
  If the IIS+JRun was working, I would assume you
  were using a deployment similar to the later case
  above.
 
  Note, you don't state exactly what the servlet is
  doing.  I could be wrong in my interpretation of what you
  mean by call in creating the path to call certain jsp.
  I'm assuming a RequestDispatcher include or forward.
 
  Cheers,
  Larry
 
   -Original Message-
   From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 16, 2002 3:01 PM
   To: Tomcat Users List
   Subject: Re: --- Please helpme: Tomcat visibility (I think!)
  
  
   Thanks Larry for the answer!
  
   I try with /html/arch.jsp instead of /MyApp/html/arch.jsp
   but still
   don't work.
   By default, it would not have to be %CATALINA_HOME%/webapps
   the context
   root? This is correct? I worked with IIS(+JRun), the request
   generated by my
   servlet (/MyApp/html/arch.jsp) work in this environment,
   and when I began
   with Tomcat I thought that wwwroot=webapps.
   I must migrate all to Apache(1.3.22)+Tomcat(4.0.1) and what
   wanted is not to
   have to modify the servlet (built by other person), and to
   make it work in
   Apache+Tomcat as it works with IIS+JRun.
  
   More suggestions are appreciate!
   Thanks
  
   Marcelo
  
   - Original Message -
   From: Larry Isaacs [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Wednesday, January 16, 2002 5:13 AM
   Subject: RE: --- Please helpme: Tomcat visibility (I think!)
  
  
It looks like your relative path should be /html/arch.jsp,
not /MyApp/html/arch.jsp.  When refering to a page
within the same web application, you shouldn't include
the context name. It worked under ROOT because /MyApp
in this case isn't a context name but a directory name,
making /MyApp/html/arch.jsp the correct URL.
   
Cheers,
Larry
   
 -Original Message-
  

RE: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Josh Knowles

Posting multiple times within the hour doesn't get your question answered faster.

-Original Message-
From: Ramkumar Menon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 11:52 AM
To: [EMAIL PROTECTED]
Subject: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY
Importance: High


hi,

I am getting the following error when I try accessing the database via a
datasource .

javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

I am using Tomcat 4.0. My Server.xml contains the following.

 Context path=/soap docBase=soap-2_2/webapps/soap debug=1
reloadable=true 
   Resource name=jdbc/TestDataSource auth=Container
type=com.evermind.sql.DriverManagerDataSource/
  ResourceParams name=jdbc/TestDataSource

  parameter
nameuser/name
valuelogger/value
  /parameter

  parameter
namepassword/name
valuelogger/value
  /parameter

parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter

  parameter
namedriverName/name
valuejdbc:oracle:thin:@temp-sun.uk.company.com:1521:db1/value
  /parameter
  /ResourceParams
 /Context

The web.xml I am using contains the following

resource-ref
  descriptionlogging schema access/description
  res-ref-namejdbc/TestDataSource/res-ref-name
  res-typecom.evermind.sql.DriverManagerDataSource/res-type
  res-authContainer/res-auth
/resource-ref



Please guide me.


thanks,

Ram

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




Re: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Charles Baker


--- Ramkumar Menon [EMAIL PROTECTED] wrote:
 hi,
 
 I am getting the following error when I try
 accessing the database via a
 datasource .
 


Dude, this is a mostly volunteer mailing list. People
help out as they can, not on demand and not for pay.
Also, in the USA, email w/ ALL CAPITAL LETTERS is
considered to be SHOUTING and thus RUDE. This may or
may not be true in other countries/cultures. Just
thought I would let you know before you make to many
people angry with you.


=
[EMAIL PROTECTED]
Hacking is a Good Thing!
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




RE: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Michael Wentzel

 Posting multiple times within the hour doesn't get your 
 question answered faster.

Yeah, most of the time it can do just the opposite and get you 
on the bad end of a mail filter;)  To state the obvious, it appears
you problem is around the Resource/Resource Param elements.  So I
would start doing some research around that area.  I not real
familiar with 4.0 since we work primary with 3.x so that's as much
help as I can provide.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

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




Tomcat 4.01 + Apache 1.3 + mod_webapp: problem with root context

2002-01-16 Thread Oli Gauti Gudmundsson

Hey everyone.
I've been looking for a solution to my problem for two days now, scanning
through the archives without any luck. So, I'm hoping someone here can help
me.
 
Following are the specs of my system:
 
Tomcat 4.01
Apache 1.3
JDK 1.2
Solaris 7
 
I built Apache and mod_webapp, and Tomcat now successfully serves up dynamic
content through Apache.
 
Before I can describe the problem, I'll have to give you some background
information. 
 
The first thing you need to know, is that I have a number of domain names
all pointing to the same IP address (server1.mydomain.com,
server2.mydomain.com, etc.). Apache listens on that IP address, and the same
web application serves all those domain names. The thing is that my web
application responds differently to the different domain names. For example
if the user goes to server1.mydomain.com in his browser, he gets a different
looking page than if he would go to server2.mydomain.com. The web
application selects the right content by reading the hostname.
 
The second thing you need to know, is that the webapp runs in the root
context.
 
Now, I've put the following lines into my httpd.conf:
 
WebAppConnection conn warp localhost:8044
WebAppDeploy mywebapp conn /

(and yes, I deliberately changed the warp port to 8044 for reasons that are
not the subject of this discussion). Also the ServerName in httpd.conf is
set to the IP address of the server.
 
Let's say that my IP address is 123.45.67.89. Now, if I point my browser to
http://123.45.67.89 http://123.45.67.89 , the webapplication serves up
dynamic content. But if I point it to http://server1.mydomain.com
http://server1.mydomain.com  (which is pointing to 123.45.67.89), it
redirects me to http://123.45.67.89 http://123.45.67.89 . The same goes
for server2.mydomain.com, etc. 
 
And things get even stranger. If I include the index.jsp in the path, then
the server does not redirect!!! That is, if I point the browser to
http://server1.mydomain.com/index.jsp
http://server1.mydomain.com/index.jsp  (appending the /index.jsp), then
Apache does not redirect and the webapp can serve the correct content.
 
This just started to happen after I upgraded Tomcat from 3.2 using mod_jserv
to Tomcat 4.01 using mod_webapp.
 
I know that you can add virtual hosts in httpd.conf, but that is an
unacceptable solution for me, because the httpd.conf should not be edited if
a new domain name is added.
 
I need some workaround for this, so that the hostname that the user inputs
stays the same.
 
If you can think of a solution, please bear in mind that it must fulfill the
following requirements:
 
1. The webapp MUST run in the root context.
2. The Apache httpd.conf SHOULD NOT HAVE TO BE EDITED if a new domain name
pointing to the IP address of the server is added.
 
Any help is greatly appreciated.
 
Gauti.



RE: jsp wont open unless port 8080 is specified in browser

2002-01-16 Thread Travis Schmid

Using port 8080 connects directly to Tomcat running in stand-alone mode.  If
you want to use port 80 (the web server standard/default), you must either
use a web server and configure it to pass all *.jsp pages to Tomcat, or
configure Tomcat to listen to port 80 instead of 8080.  Connecting Tomcat to
a web server is detailed in the documentation:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html (for version
3.2).  This page has links detailing how to setup Tomcat with Netscape,
Apache and IIS.
To change the port Tomcat listens on to port 80, change the following
section of your server.xml file as follows:
Change the http connector section from:
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port 
value=8080/
/Connector
To:
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port 
value=80/
/Connector

Note this only works if you don't have another web server already listening
on that port.  You can't have both Tomcat and another web server on the same
port.


 -Original Message-
 From: Martin Sujkowski [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 16, 2002 11:10 AM
 To: Tomcat Users List
 Subject: Re: jsp wont open unless port 8080 is specified in browser
 
 
 i get a similar thing except if i dont use 8080 i get page cannot be
 displayed screen.
 With 8080 i still am getting internal server error with bunch 
 of other crap
 below it.
 
 Martin
 - Original Message -
 From: William Cheng [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 16, 2002 1:15 PM
 Subject: jsp wont open unless port 8080 is specified in browser
 
 
  hi all
 
  how can i get the my jsp files to open without specifying port 8080
  on the browser.  if i dont specify 8080 and login screen pops up.
  thanks for any information
 
  Will
 
  --
  To unsubscribe:   
mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


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

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




JSP not compiling under Tomcat

2002-01-16 Thread Lambrechts, Beth Anne [Telenor]

Hello -

I have multiple jsps running under Tomcat 4/Apache.  However, I have a
single one that Tomcat does not recognize as a jsp file and does not
compile it.

Anyone have any ideas on why this would be the case?

Thanks.
Beth Anne


Beth Anne Lambrechts
Telenor Satellite Services, Inc.
[EMAIL PROTECTED]
301-214-3659


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




HELP! VAJ 4.0, Tomcat 4.0 Apache SOAP - How to Debug in IDE

2002-01-16 Thread Thomas Thornbury

Does anyone know how to get the Tomcat class loader to load a class from
the VisualAge workspace.  I'm already loading Tomcat from within
VisualAge?  Is this possible?


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




FW: JSP not compiling under Tomcat

2002-01-16 Thread Lambrechts, Beth Anne [Telenor]

Also - as an update - I have two different SUN/Solaris 8 boxes that I am
running this on - it works fine on one and not the other one - very
strange!



  -Original Message-
 From: Lambrechts, Beth Anne [Telenor]  
 Sent: Wednesday, January 16, 2002 3:56 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  JSP not compiling under Tomcat
 
 Hello -
 
 I have multiple jsps running under Tomcat 4/Apache.  However, I have a
 single one that Tomcat does not recognize as a jsp file and does not
 compile it.
 
 Anyone have any ideas on why this would be the case?
 
 Thanks.
 Beth Anne
 
 
 Beth Anne Lambrechts
 Telenor Satellite Services, Inc.
 [EMAIL PROTECTED]
 301-214-3659
 

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




Re: jsp wont open unless port 8080 is specified in browser

2002-01-16 Thread Martin Sujkowski

Thanks a lot for your help Travis. I dont suppose you could tell me how to
configure my windows 2000 server to pass all jsp
files to tomcat would you?

Thanks again.
martin
- Original Message -
From: Travis Schmid [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 3:54 PM
Subject: RE: jsp wont open unless port 8080 is specified in browser


 Using port 8080 connects directly to Tomcat running in stand-alone mode.
If
 you want to use port 80 (the web server standard/default), you must either
 use a web server and configure it to pass all *.jsp pages to Tomcat, or
 configure Tomcat to listen to port 80 instead of 8080.  Connecting Tomcat
to
 a web server is detailed in the documentation:
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html (for version
 3.2).  This page has links detailing how to setup Tomcat with Netscape,
 Apache and IIS.
 To change the port Tomcat listens on to port 80, change the following
 section of your server.xml file as follows:
 Change the http connector section from:
 Connector className=org.apache.tomcat.service.PoolTcpConnector
 Parameter name=handler

 value=org.apache.tomcat.service.http.HttpConnectionHandler/
 Parameter name=port
 value=8080/
 /Connector
 To:
 Connector className=org.apache.tomcat.service.PoolTcpConnector
 Parameter name=handler

 value=org.apache.tomcat.service.http.HttpConnectionHandler/
 Parameter name=port
 value=80/
 /Connector

 Note this only works if you don't have another web server already
listening
 on that port.  You can't have both Tomcat and another web server on the
same
 port.


  -Original Message-
  From: Martin Sujkowski [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 16, 2002 11:10 AM
  To: Tomcat Users List
  Subject: Re: jsp wont open unless port 8080 is specified in browser
 
 
  i get a similar thing except if i dont use 8080 i get page cannot be
  displayed screen.
  With 8080 i still am getting internal server error with bunch
  of other crap
  below it.
 
  Martin
  - Original Message -
  From: William Cheng [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, January 16, 2002 1:15 PM
  Subject: jsp wont open unless port 8080 is specified in browser
 
 
   hi all
  
   how can i get the my jsp files to open without specifying port 8080
   on the browser.  if i dont specify 8080 and login screen pops up.
   thanks for any information
  
   Will
  
   --
   To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]


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

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


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




Use of Java Classes in .JSP fails under Tomcat 3.2

2002-01-16 Thread Jerry Jalenak

Hi All,

When I attempt to access methods defined in Java from a .JSP, I am receiving
a message that the method is not being found.  For example, I have been
testing with the following .JSP:

%@page import=java.util.*, java.lang.*%
%
// Test

String myString = 100 ;
int myInt = parseInt(myString) ;
out.println(myInt is  + myInt) ;

%
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN
html
head
titleSimple Test of JAVA Classes/title
body
/body
/html

When I run this .JSP under Tomcat 3.2, I am receiving the following message:

Error: 500
Location: /testapps/javaTest.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSP/usr/tomcat/work/localhost_8080%2Ftestapps/_0002fjavaTest_0002ejspjavaTes
t_jsp_0.java:65: Method parseInt(java.lang.String) not found in class
_0002fjavaTest_0002ejspjavaTest_jsp_0.
int myInt = parseInt(myString) ;
^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

I have looked at the installation guides and FAQ's for Tomcat 3.2 concerning
the use of the Classpath environment variable, as well as the use of the
WEB-INF/classes directory.  Everything appears to be set up correctly on my
system, but I am sure there is something that I am missing
configuration-wise.  

Thanks in advance for the help.  I'm getting tired of coding work-arounds
for the lack of these classes and methods!

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




RE: jsp wont open unless port 8080 is specified in browser

2002-01-16 Thread Travis Schmid

It depends on which web server you are using.  For Apache using mod_jk you
use the JKMount directive in your mod_jk.conf-auto file like this:
JkMount /*.jsp workername

For IIS you modify the uriworkermap.properties file.  Add something like
this:
/*.jsp=workername

Both examples do the same thing, map all jsp files to the appropriate Tomcat
worker for the root context.

It's all explained in the web server setup docs I gave you a link to.

 -Original Message-
 From: Martin Sujkowski [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 16, 2002 1:09 PM
 To: Tomcat Users List
 Subject: Re: jsp wont open unless port 8080 is specified in browser
 
 
 Thanks a lot for your help Travis. I dont suppose you could 
 tell me how to
 configure my windows 2000 server to pass all jsp
 files to tomcat would you?
 
 Thanks again.
 martin
 - Original Message -
 From: Travis Schmid [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 16, 2002 3:54 PM
 Subject: RE: jsp wont open unless port 8080 is specified in browser
 
 
  Using port 8080 connects directly to Tomcat running in 
 stand-alone mode.
 If
  you want to use port 80 (the web server standard/default), 
 you must either
  use a web server and configure it to pass all *.jsp pages 
 to Tomcat, or
  configure Tomcat to listen to port 80 instead of 8080.  
 Connecting Tomcat
 to
  a web server is detailed in the documentation:
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html 
 (for version
  3.2).  This page has links detailing how to setup Tomcat 
 with Netscape,
  Apache and IIS.
  To change the port Tomcat listens on to port 80, change the 
 following
  section of your server.xml file as follows:
  Change the http connector section from:
  Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler
 
  value=org.apache.tomcat.service.http.HttpConnectionHandler/
  Parameter name=port
  value=8080/
  /Connector
  To:
  Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler
 
  value=org.apache.tomcat.service.http.HttpConnectionHandler/
  Parameter name=port
  value=80/
  /Connector
 
  Note this only works if you don't have another web server already
 listening
  on that port.  You can't have both Tomcat and another web 
 server on the
 same
  port.
 
 
   -Original Message-
   From: Martin Sujkowski [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 16, 2002 11:10 AM
   To: Tomcat Users List
   Subject: Re: jsp wont open unless port 8080 is specified 
 in browser
  
  
   i get a similar thing except if i dont use 8080 i get 
 page cannot be
   displayed screen.
   With 8080 i still am getting internal server error with bunch
   of other crap
   below it.
  
   Martin
   - Original Message -
   From: William Cheng [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, January 16, 2002 1:15 PM
   Subject: jsp wont open unless port 8080 is specified in browser
  
  
hi all
   
how can i get the my jsp files to open without 
 specifying port 8080
on the browser.  if i dont specify 8080 and login 
 screen pops up.
thanks for any information
   
Will
   
--
To unsubscribe:
  mailto:[EMAIL PROTECTED]
   For additional commands: 
 mailto:[EMAIL PROTECTED]
   Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: jsp wont open unless port 8080 is specified in browser

2002-01-16 Thread Michael Wentzel

 Thanks a lot for your help Travis. I dont suppose you could 
 tell me how to
 configure my windows 2000 server to pass all jsp
 files to tomcat would you?

You need to follow the link Travis provided and how to configure IIS.
Windows 2000 will not pass on the request.  IIS is the WebServer provided
with Windows 2000 Server, or alternatively you can use Apache, but make 
sure you turn off IIS.

This is an issue that is handled well by the documentation so this should
be your first resource.  In addition, this question has been answered and
discussed several times(innumerable) on this list in the past so if you
encounter stumbling blocks(I can assure you someone has asked the question
before), please check one of the list archives and search for IIS or Apache
respectively.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

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




Re: Use of Java Classes in .JSP fails under Tomcat 3.2

2002-01-16 Thread jeff . guttadauro


It's just like the message says...  parseInt( String ) is not a method found
in your jsp page.  Make that Integer.parseInt(myString) and you're golden.

also... fyi, you don't close the head tag in your html.

HTH,
-Jeff




   
   
Jerry Jalenak
   
Jerry.Jalenak@LTo: '[EMAIL PROTECTED]' 
   
ABONE.com  [EMAIL PROTECTED]   
   
cc:
   
01/16/02 03:13  Subject: Use of Java Classes in .JSP 
fails under Tomcat 3.2   
PM 
   
Please respond 
   
to Tomcat Users   
   
List  
   
   
   
   
   





org.apache.jasper.JasperException: Unable to compile class for
JSP/usr/tomcat/work/localhost_8080%2Ftestapps/_0002fjavaTest_0002ejspjavaTes
t_jsp_0.java:65: Method parseInt(java.lang.String) not found in class
_0002fjavaTest_0002ejspjavaTest_jsp_0.
  int myInt = parseInt(myString) ;
  ^
1 error


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






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




RE: Use of Java Classes in .JSP fails under Tomcat 3.2

2002-01-16 Thread Michael Wentzel

 When I attempt to access methods defined in Java from a .JSP, 
 I am receiving
 a message that the method is not being found.  For example, I 
 have been
 testing with the following .JSP:
 
 %@page import=java.util.*, java.lang.*%
 %
   // Test
 
   String myString = 100 ;
   int myInt = parseInt(myString) ;
   out.println(myInt is  + myInt) ;
 
 %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN
 html
   head
   titleSimple Test of JAVA Classes/title
   body
   /body
 /html
 
 When I run this .JSP under Tomcat 3.2, I am receiving the 
 following message:
 
 Error: 500
 Location: /testapps/javaTest.jsp
 Internal Servlet Error:
 
 org.apache.jasper.JasperException: Unable to compile class for
 JSP/usr/tomcat/work/localhost_8080%2Ftestapps/_0002fjavaTest_0
 002ejspjavaTes
 t_jsp_0.java:65: Method parseInt(java.lang.String) not found in class
 _0002fjavaTest_0002ejspjavaTest_jsp_0.
   int myInt = parseInt(myString) ;
   ^

You can't simply say parseInt(1.00);  you have to let the compiler
know what instance, or in this case static instance, you want to call
the method on.  The reason for this is this method may be defined in
several different class and the compiler won't know which to use.
What the compiler is actually telling you is it looked for a method with
the signature int parseInt(String s) defined in the current class(the JSP).

Therefore, use the following,

Integer.parseInt(1.00)

This notifies the compiler to use the parseInt method in the Integer
class.  Also, just as a note, the import of java.lang.* is unnecessary.
This is an implicit import.

I would suggest getting a good java book and reading up on the basics of
java before diving head first into servlets, jsp, and Tomcat.  This is a
very core theory in java and it doesn't seem like to fully understand the
core theories of java yet.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

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




Re: Use of Java Classes in .JSP fails under Tomcat 3.2

2002-01-16 Thread Jason Koeninger

On Wed, 16 Jan 2002 15:13:58 -0600, Jerry Jalenak wrote:

When I attempt to access methods defined in Java from a .JSP, I am receiving
a message that the method is not being found.  For example, I have been
testing with the following .JSP:

%@page import=java.util.*, java.lang.*%
%
   // Test

   String myString = 100 ;
   int myInt = parseInt(myString) ;

How can you call parseInt without specifying a class?  Wouldn't this work 
better?

int myInt = Integer.parseInt( myString );

Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com



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




Location to place generated files with Catalina/JBoss

2002-01-16 Thread Paul Cody

I am using an Embedded Catalina 4.0 service in JBoss 2.4.x.  My packaging
structure is:

myapp.ear
 myejb.jar
 mywebapp.war (mapping /myservlet/* to servlet 'MyServlet')
  mypage.jsp

The ear file is copied to ${jboss-home}/deploy and hotdeployed to some
opaque location. Mypage shows up as:

http:mymachine:myport/mywebapp/myservlet/mypage.jsp

The question is, where in the filesystem can I put generated html and image
files such that they can be picked up by Tomcat?  

Confused,
Paul

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




Re: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM

2002-01-16 Thread ROSHAN NAVENDRA

The best way to do it is: 

On your desktop, right-click the MyCoputer icon and select Properties.

Select the Advanced tab, and click on environment variables. 
Under system variables you can then creat the JAVA_HOME and TOMCAT_HOME variables.

This is detailed further in the following page,

http://www.onjava.com/lpt/a//onjava/2001/03/29/tomcat.html 

Rosh.

 [EMAIL PROTECTED] 01/16/02 09:40PM 
set JAVA_HOME=c:\jdk1.3
set TOMCAT_HOME=c:\tomcat
- Original Message - 
From: babs boyejo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 08:58
Subject: JAVA_HOME AND TOMCAT_HOME SETUP PROBLEM


 Dear All,
 
 1)how do you set the java_home to the jdk installation
 ?
 2)and will this be in the autoexec.bat or where?
 3)where and how do you set the tomcat_home?
 
 Regards
 Vic
 
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/ 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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



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




RE: Use of Java Classes in .JSP fails under Tomcat 3.2

2002-01-16 Thread Jerry Jalenak

Thanks to everyone for the quick response.  And yes, I am new to Java, so
some of the 'basics' I'm still learning.  Unfortunately, my boss expects me
to be the expert in Java, JSP, Tomcat, etc. NOW.

Thanks again to everyone.

Jerry

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




Connecting Apache and Tomcat

2002-01-16 Thread Charles Horan

I am having difficulty finding either mod_jk or mod_webapp to connect Apache
1.3.x to Tomcat 4.1. If anybody could send a URL or info I would greatly
appreciate it.


Regards
Charles Horan


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




  1   2   >