Installing a jar-file

2003-10-20 Thread anja . mentges




Hi,
I have packed an existing WebApplication in a *.jar file to deploy it to another
Webserver. Where do I have to put the jar-file on the webserver ad what do I
have to configure on Tomcat to let it use the jar-file?


Mit freundlichen Grüßen/ Best Regards

Anja Mentges

_
BBS
LOG-QM-DST
51063 Köln, Gebäude 2975, Raum 02.B2.06
Schanzenstr. 41
Tel.: +49 0214 30 35537
Fax:  +49 0214 30 39217
E-Mail:  [EMAIL PROTECTED]
Internet :  http://www.bayer-ag.de



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



Re: Meaning of entries in mod_jk.log

2003-10-20 Thread Volker
Bill Barker schrieb:

 Volker [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  can anyone please explain me the meaning of following entries in my
  mod_jk.log?
  Attempting to map ...
  Why does mod_jk try to map something here?

 It's checking to see if the URL matches any of your JkMount statements.
 Nothing more, nothing less.  When it is done without a match, it allows
 Apache to continue to handle the request (and presumably return a 404 page).

Hello Bill,

thanks for your answer. But why do you think a 404 error is returned? Like
mentioned before those paths and files EXIST
/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif.

The only reason I run Apache  TomCat in conjunction with mod_jk ist that I need
tomcat for special servlets that should run via port 80.
All the usual port 80 requests (i.e. html files) should result in retrieving
the right files because they are accessible for apache.

Any idea?

Best regards

Volker

  Are those outputs normal (For example
  /fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif does exist
  on my web server!) ?
 
  [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif'
  [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (599)]:
  jk_uri_worker_map_t::map_uri_to_worker, done without a match
  [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/r_flirter1.gif'
  [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (599)]:
  jk_uri_worker_map_t::map_uri_to_worker, done without a match
  [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/r_luzy.gif'
  [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (599)]:
  jk_uri_worker_map_t::map_uri_to_worker, done without a match
  [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  map URI
  '/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_flirtheart1.gif'
  [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (599)]:
  jk_uri_worker_map_t::map_uri_to_worker, done without a match
 
  Thx and best regards
 
  Volker

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


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



RE: Problem running servlet

2003-10-20 Thread Swapan Mazumdar
i am new to Tomcat. iam able to run jsp fine but not able to run even
HelloWorld servlet.
 
Ashish,

It seems that you might be getting some sort of exception explaining root
cause too.
It would be of help to diagnose if you can post the exception report here.

rg,
SM

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



tomcat runs nut no ssl | newbie

2003-10-20 Thread Benoit Moeremans
Hello all,

I discovered since a while tomcat and décided to install the version 5. Everythings 
runs, except the ssl. The port is still no open. The certificate is created and is the 
homedir of the user who runs the service.
I see nothing in the log.

Oct 17, 2003 5:09:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 1300
Oct 17, 2003 5:09:25 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8020
Oct 17, 2003 5:09:25 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=8/45  
config=/home/bmo/tomcat5/jakarta-tomcat-5.0.12/conf/jk2.properties
Oct 17, 2003 5:09:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9233 ms



Here is my configuration:

   !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
q
Connector port=1300
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
  Factory className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS /
Connector port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
  Factory clientAuth=false protocol=TLS /
   /Connector

 Engine name=extranet defaultHost=localhost debug=0^M


Any help?

Thnx in advance



Connect to MySQL.

2003-10-20 Thread Nuno Paquete
Hi everyone.
I'm having problems to connetc to MySQL.
I put the connector driver in the respective directory, like it's writen in 
MySQL web site but i can connect. I think it's not a problem of source code, 
i think it a problem with the driver.
Does anyone can tell me where should i put the driver?
Thanks in advance.

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



Re: tomcat runs nut no ssl | newbie

2003-10-20 Thread kataoka
hello
(B
(B!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
(B!--
(BConnector className="org.apache.coyote.tomcat5.CoyoteConnector"
(B
(Bmaybe you have to delete !-- and -- that means 
(Bcomment-out this Connector Directive.
(B
(B
(B
(BHello all,
(B
(BI discovered since a while tomcat and d$BqD(Bided to install the version 5. 
(BEverythings runs, except the ssl. The port is still no open. The 
(Bcertificate is created and is the homedir of the user who runs the service.
(BI see nothing in the log.
(B
(BOct 17, 2003 5:09:25 PM org.apache.coyote.http11.Http11Protocol start
(BINFO: Starting Coyote HTTP/1.1 on port 1300
(BOct 17, 2003 5:09:25 PM org.apache.jk.common.ChannelSocket init
(BINFO: JK2: ajp13 listening on /0.0.0.0:8020
(BOct 17, 2003 5:09:25 PM org.apache.jk.server.JkMain start
(BINFO: Jk running ID=0 time=8/45  config=/home/bmo/tomcat5/jakarta-tomcat-5.
(B0.12/conf/jk2.properties
(BOct 17, 2003 5:09:25 PM org.apache.catalina.startup.Catalina start
(BINFO: Server startup in 9233 ms
(B
(B
(B
(BHere is my configuration:
(B
(B   !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
(Bq
(BConnector port="1300"
(B   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
(B   enableLookups="false" redirectPort="8443" acceptCount="100"
(B   debug="0" connectionTimeout="2"
(B   disableUploadTimeout="true" /
(B
(B!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
(B!--
(BConnector className="org.apache.coyote.tomcat5.CoyoteConnector"
(B   port="8443" minProcessors="5" maxProcessors="75"
(B   enableLookups="true" disableUploadTimeout="true"
(BacceptCount="100" debug="0" scheme="https" secure="true"
(B  Factory className="org.apache.coyote.tomcat5.
(BCoyoteServerSocketFactory"
(B   clientAuth="false" protocol="TLS" /
(BConnector port="8443"
(B   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
(B   enableLookups="false" disableUploadTimeout="true"
(B   acceptCount="100" debug="0" scheme="https" secure="true"
(B  Factory clientAuth="false" protocol="TLS" /
(B   /Connector
(B
(B Engine name="extranet" defaultHost="localhost" debug="0"^M
(B
(B
(BAny help?
(B
(BThnx in advance
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: Connect to MySQL.

2003-10-20 Thread Schalk
The driver should go into your WEB-INF/lib directory.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Nuno Paquete [mailto:[EMAIL PROTECTED]
:: Sent: Monday, October 20, 2003 2:16 PM
:: To: [EMAIL PROTECTED]
:: Subject: Connect to MySQL.
:: 
:: Hi everyone.
:: I'm having problems to connetc to MySQL.
:: I put the connector driver in the respective directory, like it's writen
in
:: MySQL web site but i can connect. I think it's not a problem of source
code,
:: i think it a problem with the driver.
:: Does anyone can tell me where should i put the driver?
:: Thanks in advance.
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: tomcat runs nut no ssl | newbie

2003-10-20 Thread Bill Barker
And using the Factory ... is deprecated in Tomcat 5.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 hello

 !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.coyote.tomcat5.CoyoteConnector

 maybe you have to delete !-- and -- that means
 comment-out this Connector Directive.



 Hello all,
 
 I discovered since a while tomcat and d$BqD(Bided to install the version 5.
 Everythings runs, except the ssl. The port is still no open. The
 certificate is created and is the homedir of the user who runs the
service.
 I see nothing in the log.
 
 Oct 17, 2003 5:09:25 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 1300
 Oct 17, 2003 5:09:25 PM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8020
 Oct 17, 2003 5:09:25 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=8/45
config=/home/bmo/tomcat5/jakarta-tomcat-5.
 0.12/conf/jk2.properties
 Oct 17, 2003 5:09:25 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 9233 ms
 
 
 
 Here is my configuration:
 
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
 q
 Connector port=1300
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443
acceptCount=100
debug=0 connectionTimeout=2
disableUploadTimeout=true /
 
 !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true disableUploadTimeout=true
 acceptCount=100 debug=0 scheme=https secure=true
   Factory className=org.apache.coyote.tomcat5.
 CoyoteServerSocketFactory
clientAuth=false protocol=TLS /
 Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
   Factory clientAuth=false protocol=TLS /
/Connector
 
  Engine name=extranet defaultHost=localhost debug=0^M
 
 
 Any help?
 
 Thnx in advance




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



Re: Installing a jar-file

2003-10-20 Thread Bill Barker
Probably,  mv myapp.jar myapp.war.  In the case of Tomcat, you would drop
the resulting war-file into $CATALINA_HOME/webapps.  For your app server,
please consult their documentation.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]




Hi,
I have packed an existing WebApplication in a *.jar file to deploy it to
another
Webserver. Where do I have to put the jar-file on the webserver ad what do I
have to configure on Tomcat to let it use the jar-file?


Mit freundlichen Grüßen/ Best Regards

Anja Mentges

_
BBS
LOG-QM-DST
51063 Köln, Gebäude 2975, Raum 02.B2.06
Schanzenstr. 41
Tel.: +49 0214 30 35537
Fax:  +49 0214 30 39217
E-Mail:  [EMAIL PROTECTED]
Internet :  http://www.bayer-ag.de
=




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



RE: Connect to MySQL.

2003-10-20 Thread Stephen Reilly
Hey there,

I am quite a newbie, but I have just gone through the process of setting
up MySQL (4.0.15, I think) for Tomcat (4.1.27).

I used the mysql-connector-java-3.0.9-stable-bin.jar from MySQL.com, and
put this in the common/lib directory of Tomcat.

I can post up the contents of the server.xml and web.xml, but I pretty
much just followed the Jakarta tutorials at. 

Hope this helps,
Stephen


-Original Message-
From: Nuno Paquete [mailto:[EMAIL PROTECTED] 
Sent: 20 October 2003 13:16
To: [EMAIL PROTECTED]
Subject: Connect to MySQL.

Hi everyone.
I'm having problems to connetc to MySQL.
I put the connector driver in the respective directory, like it's writen
in 
MySQL web site but i can connect. I think it's not a problem of source
code, 
i think it a problem with the driver.
Does anyone can tell me where should i put the driver?
Thanks in advance.

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


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



Re: Newbie to Tomcat server.

2003-10-20 Thread Bogdan Brzozowski
Thank you very much, that was exactly this problem.
After adding manager role for tomcat user
my application is succesfully installed
and running on Tomcat server. I have another
dummy question: where should I put
my FirstPage.jsp file? My application context name
is /jsp_xml/ (Tomcat manager shows this name
on the list of running applications). When I refer
to http:\\localhost:8080\jsp_xml\ (in web browser)
I see an empty directory. When I refer to
http:\\localhost:8080\jsp_xml\FirstPage.jsp server

Bogdan Brzozowski
Soft. Dept. Manager

NOVUM Ltd.
Spokojna 9A
18-400 Lomza
POLAND

phone: +48 604 52 72 50
email: [EMAIL PROTECTED]

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:03 PM
Subject: RE: Newbie to Tomcat server.



 Howdy,
 Does that tomcat user in tomcat-users.xml file have a role=manager
defined?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Bogdan Brzozowski [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 7:33 AM
 To: Tomcat Users List
 Subject: Re: Newbie to Tomcat server.
 
 Hi Holger,
 Thank you for your respond. I know that Tomcat users
 aren't OS users. There is only one user named tomcat (with
 password tomcat) in tomcat-users.xml file after installing
 Tomcat.
 
 Regards
 Bogdan Brzozowski
 --
 tel. +48 604 52 72 50
 email: [EMAIL PROTECTED]
 
 - Original Message -
 From: Holger Klawitter [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 12:14 PM
 Subject: Re: Newbie to Tomcat server.
 
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
   1. When I try to run Tomcat administration utility and
   log as usewr tomcat with password tomcat I receive
   http status 403, that acces to requested source is denied.
 
  Tomcat-Users have nothing to do with UNIX-Users. Tomcat maintains an
own
 user
  database (by default in $TOMCAT_HOME/conf/tomcat-users.xml). All
operate
 from
  UNIX' point of view as the UNIX user under which tomcat is currently
 running.
 
   2. When I try to install my simple single JSP page
   using ant install command I also receive status 403 from server.
 
  I've never used that feature, but it might be the result of the same
 problem.
 
  Mit freundlichem Gruß / With kind regards
  Holger Klawitter
  - --
  lists at klawitter dot de
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.2.2 (GNU/Linux)
 
  iD8DBQE/j8Ej1Xdt0HKSwgYRAvkxAKCAUdTN1NW3/PKZe3xI3SVU0PTIyQCgmPY4
  s9WvJpRskEJZBK0kLcFp/rg=
  =nNV8
  -END PGP SIGNATURE-
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Re: Newbie to Tomcat server.

2003-10-20 Thread Bogdan Brzozowski
Sorry for sending unfinished email
(I don't like Microsoft software - too many shortcuts...).

Thank you very much, that was exactly this problem.
After adding manager role for tomcat user
my application is succesfully installed
and running on Tomcat server. I have another
dummy question: where should I put
my FirstPage.jsp file? My application context name
is /jsp_xml/ (Tomcat manager shows this name
on the list of running applications). When I refer
to http:\\localhost:8080\jsp_xml\ (in web browser)
I see an empty directory. When I refer to
http:\\localhost:8080\jsp_xml\FirstPage.jsp server
Tomcat raises 404 status that requested resource
is not available. I've got in my home
directory recommended by Tomcat documentation
structure:

jsp_xml\
src\FistPage.jsp
docs\
web\
WEB-INF\web.xml
build.xml
build.properties

Bogdan Brzozowski
Soft. Dept. Manager

NOVUM Ltd.
Spokojna 9A
18-400 Lomza
POLAND

phone: +48 604 52 72 50
email: [EMAIL PROTECTED]



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



Re: Specify one file for all directory mappings

2003-10-20 Thread Tim Funk
A simple way is to extend the default servlet. Then when the default servlet 
is asked to doa  directory listing you can .forward() to your jsp or servlet. 
Otherwise you can call super and keep the default functionality for serving 
images and other static assets.

-Tim

Eric Bessette wrote:
Is there a way to specify one file, like the one below, for all directory
mappings?
file (index.jsp):
%@ taglib uri=struts-tiles prefix=tile %
tile:insert definition=project.layout.main flush=true
tile:put name=sidebar value=${
pageContent.request.requestURI }/sidebar.jsp /
tile:put name=content value=${
pageContent.request.requestURI }/content.jsp /
/tile:insert
The file would be used for all uri's that end with directories, like
http://host/project/dir1/ and http://host/project/dir1/dir2/.
I tried using the welcome-file-list in my web.xml to do this, but it looks
like those files are only relative.
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-file/shared/index.jsp/welcome-file
welcome-fileindex.html/welcome-file
/welcome-file-list
Is there anyway to configure Tomcat, Struts, or Tiles to do this?


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


Re: tomcat jitters, then hangs - please help

2003-10-20 Thread Noam Camiel
Hi folks,
A week's gone by and all seems fine.  Server is stable and working properly.
Thanks for all who helped out! Ryan, Remi Yoav and Arthur, many thanks.
It may be a good idea to document this for others who may stumble over this
problem.
All the best
Noam Camiel

Details:
Problem: Tomcat Server becomes unresponsive to new requests after several
hours, regardless of load.
OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4)
Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 3:06 PM
Subject: RE: tomcat jitters, then hangs - please help



Howdy,
Cool, please keep us updated ;)  I want these linux questions better
documented in the list archives ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Noam Camiel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 6:37 AM
To: Euan Guttridge; Tomcat Users List
Subject: Re: tomcat jitters, then hangs - please help

Hi Euan

Please note the server is now up for 48 hours strait.
The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5
I will update again in another 48 hours or if the server hangs,
whichever
comes first.

Regards,
Noam

- Original Message -
From: Euan Guttridge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 9:42 AM
Subject: FW: tomcat jitters, then hangs - please help


 Hi Noam,

 I work with Ryan on tomcat issues. I would be grateful if you would
let
me
 know if your tomcat installation is *still* up (another 24 hours)
since
the
 NPTL change as below.


 Regards,
 Euan

 -Original Message-
 From: Noam Camiel [mailto:[EMAIL PROTECTED]
 Sent: 14 October 2003 14:46
 To: Tomcat Users List
 Subject: Re: tomcat jitters, then hangs - please help


 Hi,

 On Friday, October 10, 2003 11:09 AM Ryan Lissack
 [EMAIL PROTECTED]  wrote:

  Remy pointed out to me previously that RH9 uses a new form of
threading
 and
  based on this we have done some investigation.
 
  RH9 uses NTPL (Native POSIX Thread Library)
  http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-
notes/x86/
 
  It is possible to revert to the older form of threading,
LinuxThreads,
 by
  setting an environment variable, namely:
  LD_ASSUME_KERNEL=kernel-version
  - 2.4.1 - Linuxthreads with floating stacks
  - 2.2.5 - Linuxthreads without floating stacks
 
  This does not revert back to an older kernel, it just changes the
GNU C
  library used
http://www-106.ibm.com/developerworks/java/library/j-jtc/
 
  We will be testing with these settings starting today and, if we
continue
 to
  have problems, we will be trying another distro.

 setting the LD_ASSUME_KERNEL variable, the server is now running over
24
 hours strait.
 Still, nothing conclusive as of yet..
 Ryan, thanks for the information above.  Do you have move information
 regarding this configuration? do you still encounter problems?


 On Monday, October 13, 2003 9:59 PM Joe Zendle
[EMAIL PROTECTED]
 wrote:

  We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9.
The
  thing wouldn't work for more than about 12 hours. IMHO, there are
some
  fundamental problems with tomcat as of late. Hate to say it but we
  solved the problem by throwing away tomcat and using jetty! We are
very
  pleased so far. Jetty is very fast and about 1/3 the memory
footprint.
 
  Good luck.


 Hi Joe,
 Thanks for sharing the info, I am considering what you suggest as
well.
 As a last try before moving away from Tomcat, I'm trying out the
suggestion
 from Ryan above.
 Regards,
 Noam.



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


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



What did I do to get an (Unknown source

2003-10-20 Thread Jim Lynch
I'm getting the following trace as a result of calling 
printStackTrace().  What have I done to cause it to lose the source 
locations?

java.lang.ClassCastException: java.lang.NullPointerException
  at com.sgi.patches.dao.PatchDao.getPatchList(Unknown Source)
  at com.sgi.patches.servlets.PatchesRequestHandler.doPost(Unknown Source)
  at com.sgi.patches.servlets.PatchesRequestHandler.doGet(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Thanks,
Jim.


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


Re: What did I do to get an (Unknown source

2003-10-20 Thread frode
On Mon, Oct 20, 2003 at 07:37:35 -0400, Jim Lynch wrote:
 I'm getting the following trace as a result of calling 
 printStackTrace().  What have I done to cause it to lose the source 
 locations?
 
 java.lang.ClassCastException: java.lang.NullPointerException
   at com.sgi.patches.dao.PatchDao.getPatchList(Unknown Source)
   at com.sgi.patches.servlets.PatchesRequestHandler.doPost(Unknown Source)
   at com.sgi.patches.servlets.PatchesRequestHandler.doGet(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 

Searching google for 'unknown source stacktrace' gives the following
link as hit #2:

http://www-level3.experts-exchange.com/Programming/Programming_Languages/Java/Q_20710659.html

- Frode


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



RE: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo

2003-10-20 Thread Larry Isaacs
The constructor being looked for exists only in the JSP 2.0
implementation.  Your error implies that the TagAttributeInfo
class, found in jsp-api.jar in tomcat-5.0.12's common/lib
directory, is being overridden by an older JSP 1.2 or 1.1
version of this class, probably in a servlet.jar or j2ee.jar
somewhere in you setup.  You will need to remove the out of
date classes/jar to get it to work.

Cheers,
Larry


 -Original Message-
 From: Stack Buffer [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 18, 2003 7:18 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.NoSuchMethodError: 
 javax.servlet.jsp.tagext.TagAttributeInfo
 
 
 Hi all,
 I am running tomcat-5.0.12 on a win2k machine with 
 j2sdk1.4.2, I just recently downloaded the 
 jakarta-taglibs-standard-1.1.0-B1 and I copied the jar files 
 (jstl.jar, standard.jar) into tomcats common/lib directory, 
 plus I copied the following tlds into my WEB-INF: 
 core.tld,x.tld,fmt.tld. I also updated my web.xml to reflect 
 these new tags,
 but I keep getting the  error message below when try to 
 access the page. Any help???
  
 in my jsp page:
  
 %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
  
 in my web.xml:
  
 taglib
 taglib-urihttp://java.sun.com/jsp/jstl/fmt/taglib-uri
 taglib-location/WEB-INF/fmt.tld/taglib-location
   /taglib
   taglib
 taglib-urihttp://java.sun.com/jsp/jstl/core/taglib-uri
 taglib-location/WEB-INF/c.tld/taglib-location
   /taglib
   
   taglib
 taglib-urihttp://java.sun.com/jsp/jstl/x/taglib-uri
 taglib-location/WEB-INF/x.tld/taglib-location
   /taglib
  
 
 exception message 
 exception
 javax.servlet.ServletException: 
 javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;Z
 Ljava/lang/String;ZZ)V
 org.apache.jasper.servlet.JspServlet.service(JspServlet.ja
 va:256)   
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 
 root cause 
 java.lang.NoSuchMethodError: 
 javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;Z
 Ljava/lang/String;ZZ)V
 org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(
 TagLibraryInfoImpl.java:577)  
 org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(Ta
 gLibraryInfoImpl.java:437)
 org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibr
 aryInfoImpl.java:295) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoI
 mpl.java:204) 
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.
 java:460) 
 org.apache.jasper.compiler.Parser.parseDirective(Parser.ja
 va:525)   
 org.apache.jasper.compiler.Parser.parseElements(Parser.jav
 a:1625)   
 org.apache.jasper.compiler.Parser.parse(Parser.java:173)  
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:247)
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:149)
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:135) 
 
 
 
 -
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 

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



RE: Internal Server Error

2003-10-20 Thread Shapira, Yoav

Howdy,
What does your JSP look like that's throwing this error?  Or is this
just thrown by a default tomcat installation with none of your personal
stuff?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 12:20 AM
To: 'Tomcat Users List'
Subject: Internal Server Error

Hi guys,

For some reason, my tomcat won't start. It says there's a 500
Internal server error with:

exception

javax.servlet.ServletException: org/apache/naming/JndiPermission
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:247)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:193)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
e.java:256)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
e.java:191)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
1
6)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
:180)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
a
lve.java:171)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:172)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
java:174)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:6
0
1)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:392)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
6
5)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:619)
   at java.lang.Thread.run(Thread.java:534)


What does this mean?

Anosn



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Problem running servlet

2003-10-20 Thread Shapira, Yoav

Howdy,
It's your servlet-mapping url-pattern (/servet/*) that's wrong.  Use
/servlet/Hello and go to http://yourserver/yourapp/servlet/Hello.  Read
the spec about servlet-mappings.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Swapan Mazumdar [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 3:44 AM
To: 'Tomcat Users List'
Subject: RE: Problem running servlet

i am new to Tomcat. iam able to run jsp fine but not able to run even
HelloWorld servlet.

Ashish,

It seems that you might be getting some sort of exception explaining
root
cause too.
It would be of help to diagnose if you can post the exception report
here.

rg,
SM

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: tomcat jitters, then hangs - please help

2003-10-20 Thread Shapira, Yoav

Howdy,
Yup, it's good to document, so I'm glad you did.  Now if only people
would search the archives before asking questions for the zillionth
time, we'd be in good shape ;)  Glad it's working for you.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Noam Camiel [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 7:37 AM
To: Tomcat Users List
Subject: Re: tomcat jitters, then hangs - please help

Hi folks,
A week's gone by and all seems fine.  Server is stable and working
properly.
Thanks for all who helped out! Ryan, Remi Yoav and Arthur, many thanks.
It may be a good idea to document this for others who may stumble over
this
problem.
All the best
Noam Camiel

Details:
Problem: Tomcat Server becomes unresponsive to new requests after
several
hours, regardless of load.
OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4)
Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 3:06 PM
Subject: RE: tomcat jitters, then hangs - please help



Howdy,
Cool, please keep us updated ;)  I want these linux questions better
documented in the list archives ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Noam Camiel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 6:37 AM
To: Euan Guttridge; Tomcat Users List
Subject: Re: tomcat jitters, then hangs - please help

Hi Euan

Please note the server is now up for 48 hours strait.
The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5
I will update again in another 48 hours or if the server hangs,
whichever
comes first.

Regards,
Noam

- Original Message -
From: Euan Guttridge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 9:42 AM
Subject: FW: tomcat jitters, then hangs - please help


 Hi Noam,

 I work with Ryan on tomcat issues. I would be grateful if you would
let
me
 know if your tomcat installation is *still* up (another 24 hours)
since
the
 NPTL change as below.


 Regards,
 Euan

 -Original Message-
 From: Noam Camiel [mailto:[EMAIL PROTECTED]
 Sent: 14 October 2003 14:46
 To: Tomcat Users List
 Subject: Re: tomcat jitters, then hangs - please help


 Hi,

 On Friday, October 10, 2003 11:09 AM Ryan Lissack
 [EMAIL PROTECTED]  wrote:

  Remy pointed out to me previously that RH9 uses a new form of
threading
 and
  based on this we have done some investigation.
 
  RH9 uses NTPL (Native POSIX Thread Library)
  http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-
notes/x86/
 
  It is possible to revert to the older form of threading,
LinuxThreads,
 by
  setting an environment variable, namely:
  LD_ASSUME_KERNEL=kernel-version
  - 2.4.1 - Linuxthreads with floating stacks
  - 2.2.5 - Linuxthreads without floating stacks
 
  This does not revert back to an older kernel, it just changes the
GNU C
  library used
http://www-106.ibm.com/developerworks/java/library/j-jtc/
 
  We will be testing with these settings starting today and, if we
continue
 to
  have problems, we will be trying another distro.

 setting the LD_ASSUME_KERNEL variable, the server is now running
over
24
 hours strait.
 Still, nothing conclusive as of yet..
 Ryan, thanks for the information above.  Do you have move
information
 regarding this configuration? do you still encounter problems?


 On Monday, October 13, 2003 9:59 PM Joe Zendle
[EMAIL PROTECTED]
 wrote:

  We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9.
The
  thing wouldn't work for more than about 12 hours. IMHO, there are
some
  fundamental problems with tomcat as of late. Hate to say it but we
  solved the problem by throwing away tomcat and using jetty! We are
very
  pleased so far. Jetty is very fast and about 1/3 the memory
footprint.
 
  Good luck.


 Hi Joe,
 Thanks for sharing the info, I am considering what you suggest as
well.
 As a last try before moving away from Tomcat, I'm trying out the
suggestion
 from Ryan above.
 Regards,
 Noam.




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


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary
and/or privileged.  This e-mail is intended only for the individual(s)
to
whom it is addressed, and may not be saved, copied, printed, disclosed
or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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

RE: What did I do to get an (Unknown source

2003-10-20 Thread Shapira, Yoav

Howdy,
You compiled it without debug enabled in javac.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 7:38 AM
To: Tomcat Users List
Subject: What did I do to get an (Unknown source

I'm getting the following trace as a result of calling
printStackTrace().  What have I done to cause it to lose the source
locations?

java.lang.ClassCastException: java.lang.NullPointerException
   at com.sgi.patches.dao.PatchDao.getPatchList(Unknown Source)
   at com.sgi.patches.servlets.PatchesRequestHandler.doPost(Unknown
Source)
   at com.sgi.patches.servlets.PatchesRequestHandler.doGet(Unknown
Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Thanks,
Jim.



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Problem running servlet

2003-10-20 Thread Schalk
You can also set-up a servlet mapping that points all url's that end with
*.hello (* meaning anything such as hi.hello or whatever else) to point to
your Hello servlet. That way you can access the servlet by simply going to
for example:

http://localhost:8080/myapp/hi.hello

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
:: Sent: Monday, October 20, 2003 3:04 PM
:: To: Tomcat Users List
:: Subject: RE: Problem running servlet
:: 
:: 
:: Howdy,
:: It's your servlet-mapping url-pattern (/servet/*) that's wrong.  Use
:: /servlet/Hello and go to http://yourserver/yourapp/servlet/Hello.  Read
:: the spec about servlet-mappings.
:: 
:: Yoav Shapira
:: Millennium ChemInformatics
:: 
:: 
:: -Original Message-
:: From: Swapan Mazumdar [mailto:[EMAIL PROTECTED]
:: Sent: Monday, October 20, 2003 3:44 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Problem running servlet
:: 
:: i am new to Tomcat. iam able to run jsp fine but not able to run even
:: HelloWorld servlet.
:: 
:: Ashish,
:: 
:: It seems that you might be getting some sort of exception explaining
:: root
:: cause too.
:: It would be of help to diagnose if you can post the exception report
:: here.
:: 
:: rg,
:: SM
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: 
:: This e-mail, including any attachments, is a confidential business
communication,
:: and may contain information that is confidential, proprietary and/or
privileged.  This
:: e-mail is intended only for the individual(s) to whom it is addressed,
and may not be
:: saved, copied, printed, disclosed or used by anyone else.  If you are not
the(an)
:: intended recipient, please immediately delete this e-mail from your
computer system
:: and notify the sender.  Thank you.
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



Name mail is not bound in this Context error??

2003-10-20 Thread Jim Lynch
This is not starting the week out very good.  I'm trying to duplicate 
the code in the Tomcat example, SendMail.java.  I'm getting the 
following error:

03-10-20 
09:06:46|ERROR|gi.oasis.servlets.FeedbackRequestHandler|Feedback error 
java.lang.Exception: OpusMail encountered exception: 
javax.naming.NameNotFoundException: Name mail is not bound in this Context

Here's (part of) the source:
try {
  Context initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  Session session = (Session) envCtx.lookup(mail/Session);
What did I miss?  I found a

ResourceParams name=mail/Session

element in the server.xml file and even added another one, but that 
didn't improve anything.

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


cannot build jk on solaris

2003-10-20 Thread Javier Sanchez Monzon
hi

I want to build jk2 from source, but i only can run the ./configure command.  
when i type make nothing hapens.  I only can see the mod_jk2.c and mod_jk2.dsp 
on apache13.  But noting about mod_jk.so


regards, 

Tino

-
This mail sent through IMP: http://horde.org/imp/


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



Re: What did I do to get an (Unknown source

2003-10-20 Thread Jim Lynch
Hm.  That's strange.  I don't even know how to change the debug setting.

Thanks,
Jim.
Shapira, Yoav wrote:

Howdy,
You compiled it without debug enabled in javac.
Yoav Shapira
Millennium ChemInformatics


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


cannot build jk on solaris

2003-10-20 Thread Javier Sanchez Monzon


hi 

I want to build jk2 from source, but i only can run the ./configure command.   
when i type make nothing hapens.  I only can see the mod_jk2.c and mod_jk2.dsp 
on apache13.  But noting about mod_jk.so 


regards, 

Tino 
 
 


-
This mail sent through IMP: http://horde.org/imp/


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



RE: Name mail is not bound in this Context error??

2003-10-20 Thread Shapira, Yoav

Howdy,
Try to list the bindings in your context.  Your server.xml is probably
not set up correctly, so tomcat isn't binding a mail/Session JNDI entry
into your env context.  Post your server.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:24 AM
To: Tomcat Users List
Subject: Name mail is not bound in this Context error??

This is not starting the week out very good.  I'm trying to duplicate
the code in the Tomcat example, SendMail.java.  I'm getting the
following error:


03-10-20
09:06:46|ERROR|gi.oasis.servlets.FeedbackRequestHandler|Feedback error
java.lang.Exception: OpusMail encountered exception:
javax.naming.NameNotFoundException: Name mail is not bound in this
Context

Here's (part of) the source:
 try {

   Context initCtx = new InitialContext();
   Context envCtx = (Context) initCtx.lookup(java:comp/env);
   Session session = (Session) envCtx.lookup(mail/Session);


What did I miss?  I found a

ResourceParams name=mail/Session

element in the server.xml file and even added another one, but that
didn't improve anything.

Thanks,
Jim.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: What did I do to get an (Unknown source

2003-10-20 Thread Shapira, Yoav

Howsy,
Then maybe someone else did, or if it's a 3rd party distribution maybe
they just compiled it without debug (which is a fairly routine thing to
do).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:26 AM
To: Tomcat Users List
Subject: Re: What did I do to get an (Unknown source

Hm.  That's strange.  I don't even know how to change the debug
setting.

Thanks,
Jim.

Shapira, Yoav wrote:

 Howdy,
 You compiled it without debug enabled in javac.

 Yoav Shapira
 Millennium ChemInformatics



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: xerces version used by Tomcat 4.1.27

2003-10-20 Thread Giuliano Gavazzi
At 9:39 -0400 2003/10/09, Shapira, Yoav wrote:
Howdy,
He didn't ask about 5.0.12, as the subject says.
Yoav Shapira
Millennium ChemInformatics
on similar grounds, could you tell me how hard is for you to edit the 
content of your replies...

g

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


Re: tomcat jitters, then hangs - please help

2003-10-20 Thread Remy Maucherat
Noam Camiel wrote:

Hi folks,
A week's gone by and all seems fine.  Server is stable and working properly.
Thanks for all who helped out! Ryan, Remi Yoav and Arthur, many thanks.
It may be a good idea to document this for others who may stumble over this
problem.
All the best
Noam Camiel
Details:
Problem: Tomcat Server becomes unresponsive to new requests after several
hours, regardless of load.
OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4)
Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5
Thanks :)
Very good news :)
I think I'll need to add that in the release notes (and putting it in 
the FAQ would be good as well). Very weird symptoms, though. The only 
explanation for the bug is if the thread waiting on the socket just 
vanishes (there's no way it can go out of the blocking accept loop 
otherwise - I reviewed that quite extensively ;-)).

Q: would the assume kernel 2.4 work as well ? I believe it would, but it 
could be worth confirming it eventually. This is not critical, obviously.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


warp connector under tomcat 4.1?

2003-10-20 Thread Javier Sanchez Monzon


Hi all there, 

do you know if the warp connector still works on the tomcat 4.1.27 ? I have 
an apache 1.3(solaris), this is already setup with mod_webapp.  On the other 
side i have tomcat 4.1.27 and my application that want to present.  Do you 
know if this tomcat version still have the warpConnector and the warpEngine ? 


regards, 
tino


-
This mail sent through IMP: http://horde.org/imp/


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



ENC: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Guys,
i am still having problems when Tomcat 4.1.18 became a NT 4.0's service.
This error (showed below) always happens whenever my app try to work with
the result set. Is it a hint? Of course, if i stop  making TomCat a NT
service, the problem doesnt happen anymore and my app runs fine...
A hint: no logs are generated by NT and the Tomcat service is UP!
Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever it
tries to deal with the result set.Very strange! Another problem: since i
remove tool.jar from classpath, neither static nor dinamics pages are
loaded.
Still needing help.





HTTP Status 500 - 




type Exception report

message 

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

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment variables
are irrelevant other than during the service installation process.  To
change CLASSPATH or any other Java environment settings, he would have to
edit the registry.

It is not clear as to whether by dynamic pages he is referring to JSPs,
servlets, or those which access the database.  If it is only JSPs which
fail, then I would suspect that the jvm.dll pointed to is incorrect (common
problem with 4.1.24).  If it is only database access (which the original
post implied) then I would stick with my original hunch that it is a
permissions issue, depending upon the database/driver.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


no, set your

JAVA_HOME=c:\j2sdk1.4.1_01

nothing else
then set

PATH=%JAVA_HOME%\bin;%PATH%

in your computer environments, not the user environment

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


I ve put tools.jar at my JAVA HOME - like that --
c:\j2sdk1.4.1_01\lib\tools.jar. Unfortunatelly, this problem goes on
I am still needing help. Euclides.

RE: xerces version used by Tomcat 4.1.27

2003-10-20 Thread Shapira, Yoav

Howdy,

At 9:39 -0400 2003/10/09, Shapira, Yoav wrote:
Howdy,
He didn't ask about 5.0.12, as the subject says.

Yoav Shapira
Millennium ChemInformatics

on similar grounds, could you tell me how hard is for you to edit the
content of your replies...

I don't understand your question (assuming it was directed at me).  ??

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Connect to MySQL.

2003-10-20 Thread Wilson, Allen
Are you trying to make the connection to MySQL as part of the tomcat
startup (Connection Pooling)? If so, I put the jar file in the
jre/lib/ext of my java installation.

Allen

-Original Message-
From: Nuno Paquete [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 7:16 AM
To: [EMAIL PROTECTED]
Subject: Connect to MySQL.


Hi everyone.
I'm having problems to connetc to MySQL.
I put the connector driver in the respective directory, like it's writen
in 
MySQL web site but i can connect. I think it's not a problem of source
code, 
i think it a problem with the driver.
Does anyone can tell me where should i put the driver?
Thanks in advance.

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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

RE: HTTP 403 - isapi_redirector

2003-10-20 Thread Dionne, Patrice
Yes, I will. But so far it doesn't look good! Hopefully, I will find something. Or at 
least a work around.

-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 17 octobre, 2003 14:02
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Sorry, out of my range of experience, if you figure it out, will you send
out the solution?


-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 3:36 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


No, the login.jsp page is not under a restricted folder and is not spécified
as a restricted ressource. 

I can access it directly without any authentification.

The login form is well configured in the web.xml because if I bypass IIS and
access directly a restricted ressource on tomcat (on port 8080) the login
form is displayed.


-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 16:29
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Is your form inside the secured folder?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 3:25 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


This is the environement:

IIS 5 
Tomcat 4.1.24 (listen on port 8080)
Win2k Avanced Server
Browser: IE 6 or Netscape 7.1 don't make any difference



-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 16:20
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


What version of IIS?

-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 4:19 PM
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Do you get the form if you go directly to it through IIS, I mean
http://host/site/form.jsp 


-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 1:51 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


I'm not getting the form if I go via IIS on port 80 but if I try directly
via Tomcat on port 8080 I get it. So the set up (web.xml) is fine on tomcat.



-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 14:04
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


With form based authentication, are you getting the form?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


Thanks James, I did try your solution but nothing changed



-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 12:06
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


I ran into the same problem and switched to using a form based
authentication which seems to work fine. It seems to be some problem with
iis intercepting the login info?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: HTTP 403 - isapi_redirector


Hi all,

Environement:
IIS 5 (isapi_redirector.dll) (listen on port 80)
Tomcat 4.1.24 (listen on port 8080)
Win2k Avanced Server
Browser: IE 6 or Netscape 7.1

Here is my problem.

I get a HTTP Status 403 - Access to the requested resource has been denied
when I try to access a protected ressource(in web.xml) via IIS on port 80
which redirect to a Tomcat 4.1.24 on port 8080.

Not suprising because the ressource is secured into the web.xml. I use a
BASIC authentification. But the thing is that I never get the pop-up window
asking for my credentials (username/password). So, I never get the chance to
authentificate myself (username/password).

I'm able to surf any non-restricted ressources on the webapp without any
problem. So, the isapi_redirector is well configured.

I've tried to access a protected ressource on the webapp directly on port
8080 (bypassing IIS) and I received the pop-up window asking for my
credentials (username/password). So everything is fine with Tomcat.

I've set the log level to debug the isapi_redirector.dll and this is what
I get when I try to access a restricted ressource:

[Thu Oct 16 10:08:16 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc
started [Thu Oct 16 10:08:16 2003]  [jk_isapi_plugin.c (759)]: In
HttpFilterProc Virtual Host redirection of
/206.162.174.213/dpi/export/viewfiles.jsp
[Thu Oct 16 10:08:16 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Oct 16 10:08:16 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/206.162.174.213/dpi/export/viewfiles.jsp'
[Thu Oct 16 10:08:16 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Oct 16
10:08:16 2003]  [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default

RE: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo

2003-10-20 Thread Stack Buffer

True dat!!
 
Thanks Larry, Yes actually I had an old servlet.jar in my setup plus the client jar 
files that come with jboss-3.0.0.
I guess I have to look for a newer JBOSS huh??
thanks once again.
Edward
Larry Isaacs [EMAIL PROTECTED] wrote:
The constructor being looked for exists only in the JSP 2.0
implementation. Your error implies that the TagAttributeInfo
class, found in jsp-api.jar in tomcat-5.0.12's common/lib
directory, is being overridden by an older JSP 1.2 or 1.1
version of this class, probably in a servlet.jar or j2ee.jar
somewhere in you setup. You will need to remove the out of
date classes/jar to get it to work.

Cheers,
Larry


 -Original Message-
 From: Stack Buffer [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 18, 2003 7:18 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.NoSuchMethodError: 
 javax.servlet.jsp.tagext.TagAttributeInfo
 
 
 Hi all,
 I am running tomcat-5.0.12 on a win2k machine with 
 j2sdk1.4.2, I just recently downloaded the 
 jakarta-taglibs-standard-1.1.0-B1 and I copied the jar files 
 (jstl.jar, standard.jar) into tomcats common/lib directory, 
 plus I copied the following tlds into my WEB-INF: 
 core.tld,x.tld,fmt.tld. I also updated my web.xml to reflect 
 these new tags,
 but I keep getting the error message below when try to 
 access the page. Any help???
 
 in my jsp page:
 
 
 
 in my web.xml:
 
 
 http://java.sun.com/jsp/jstl/fmt
 /WEB-INF/fmt.tld
 
 
 http://java.sun.com/jsp/jstl/core
 /WEB-INF/c.tld
 
 
 
 http://java.sun.com/jsp/jstl/x
 /WEB-INF/x.tld
 
 
 
 exception message 
 exception
 javax.servlet.ServletException: 
 javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;Z
 Ljava/lang/String;ZZ)V 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.ja
 va:256) 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 
 root cause 
 java.lang.NoSuchMethodError: 
 javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;Z
 Ljava/lang/String;ZZ)V 
 org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(
 TagLibraryInfoImpl.java:577) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(Ta
 gLibraryInfoImpl.java:437) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibr
 aryInfoImpl.java:295) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoI
 mpl.java:204) 
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.
 java:460) 
 org.apache.jasper.compiler.Parser.parseDirective(Parser.ja
 va:525) 
 org.apache.jasper.compiler.Parser.parseElements(Parser.jav
 a:1625) 
 org.apache.jasper.compiler.Parser.parse(Parser.java:173) 
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:247) 
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:149) 
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:135) 
 
 
 
 -
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 

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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

RE: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo

2003-10-20 Thread Stack Buffer

True dat!!
 
Thanks Larry, Yes actually I had an old servlet.jar in my setup plus the client jar 
files that come with jboss-3.0.0.
I guess I have to look for a newer JBOSS huh??
thanks once again.
Edward
Larry Isaacs [EMAIL PROTECTED] wrote:
The constructor being looked for exists only in the JSP 2.0
implementation. Your error implies that the TagAttributeInfo
class, found in jsp-api.jar in tomcat-5.0.12's common/lib
directory, is being overridden by an older JSP 1.2 or 1.1
version of this class, probably in a servlet.jar or j2ee.jar
somewhere in you setup. You will need to remove the out of
date classes/jar to get it to work.

Cheers,
Larry


 -Original Message-
 From: Stack Buffer [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 18, 2003 7:18 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.NoSuchMethodError: 
 javax.servlet.jsp.tagext.TagAttributeInfo
 
 
 Hi all,
 I am running tomcat-5.0.12 on a win2k machine with 
 j2sdk1.4.2, I just recently downloaded the 
 jakarta-taglibs-standard-1.1.0-B1 and I copied the jar files 
 (jstl.jar, standard.jar) into tomcats common/lib directory, 
 plus I copied the following tlds into my WEB-INF: 
 core.tld,x.tld,fmt.tld. I also updated my web.xml to reflect 
 these new tags,
 but I keep getting the error message below when try to 
 access the page. Any help???
 
 in my jsp page:
 
 
 
 in my web.xml:
 
 
 http://java.sun.com/jsp/jstl/fmt
 /WEB-INF/fmt.tld
 
 
 http://java.sun.com/jsp/jstl/core
 /WEB-INF/c.tld
 
 
 
 http://java.sun.com/jsp/jstl/x
 /WEB-INF/x.tld
 
 
 
 exception message 
 exception
 javax.servlet.ServletException: 
 javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;Z
 Ljava/lang/String;ZZ)V 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.ja
 va:256) 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 
 root cause 
 java.lang.NoSuchMethodError: 
 javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;Z
 Ljava/lang/String;ZZ)V 
 org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(
 TagLibraryInfoImpl.java:577) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(Ta
 gLibraryInfoImpl.java:437) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibr
 aryInfoImpl.java:295) 
 org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoI
 mpl.java:204) 
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.
 java:460) 
 org.apache.jasper.compiler.Parser.parseDirective(Parser.ja
 va:525) 
 org.apache.jasper.compiler.Parser.parseElements(Parser.jav
 a:1625) 
 org.apache.jasper.compiler.Parser.parse(Parser.java:173) 
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:247) 
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:149) 
 org.apache.jasper.compiler.ParserController.parse(ParserContro
 ller.java:135) 
 
 
 
 -
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 

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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

AW: newbie: servlet examples work, jsp not

2003-10-20 Thread Sven Busse
hello,

ahmm, still having this problem and don't know
what to do, sorry ...


 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Gesendet: Sonntag, 19. Oktober 2003 18:37
 An: Tomcat Users List
 Betreff: Re: newbie: servlet examples work, jsp not
 
 
 hello,
 
 i tried %JAVA_HOME%\bin\javac and it works properly.
 
 Any other ideas?
 
  You don't need to set your classpath. Tomcat does that for you.
  
  You should double check that your JAVA_HOME environment 
 variable is set 
  properly. From the command line type: %JAVA_HOME%\bin\javac
  You should see a menu of switches for the compiler.
  If not, check to see where your JAVA_HOME environment 
 variable is pointing by 
  typing: echo %JAVA_HOME%
  
  You might also want to get tomcat working as a standalone 
 before integrating 
  with Apache to cut down on the number of simultaneous 
 issues to be debugged.
  http://localhost:8080/examples
  
  
  
  
  
  
  On Sunday 19 October 2003 06:35 am, you wrote:
   hello,
  
   i am working in windows xp. i have the jsdk 1.4.1 
 installed. i also
   installed apache2 and tomcat 4.1 as described in the HowTo:
   http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
  
   after installation, i wanted to try the examples at
   http://localhost/examples. the servlet examples work, but 
 the jsp examples
   not. i get the following error:
  
   org.apache.jasper.JasperException: Unable to compile class for JSP
  
   An error occurred at line: -1 in the jsp file: null
  
   Generated servlet error:
   [javac] Compiling 1 source file
  
   and in the logs i have:
  
   Unable to find a javac compiler;
   com.sun.tools.javac.Main is not on the classpath.
   Perhaps JAVA_HOME does not point to the JDK
  
   But my Java_Home does point to c:\j2sdk1.4.1
   and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
  
   So, what am i making wrong? thank you in
   advance.
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: What did I do to get an (Unknown source

2003-10-20 Thread Endre Stølsvik
On Mon, 20 Oct 2003, Shapira, Yoav wrote:

|
| Howdy,
| You compiled it without debug enabled in javac.

It usually show line# anyway, but actual debugging is pretty limited when
not compiled with debug.

I'd assume that it was JIT'ed away - the Just In Time compilation have
made the original line# unavailable - some JVM's write compiled code
instead for the Unknown source.

Also, if it have been obfuscated by some external program, the line#
information is removed, deliberatly.

Endre.

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



Re: Name mail is not bound in this Context error??

2003-10-20 Thread Jim Lynch
Before I post an 11k file, I wanted to make an observation.  The 
SendMail example works fine, doesn't it require a working server.xml file?

Jim.

Shapira, Yoav wrote:

Howdy,
Try to list the bindings in your context.  Your server.xml is probably
not set up correctly, so tomcat isn't binding a mail/Session JNDI entry
into your env context.  Post your server.xml.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:24 AM
To: Tomcat Users List
Subject: Name mail is not bound in this Context error??
This is not starting the week out very good.  I'm trying to duplicate
the code in the Tomcat example, SendMail.java.  I'm getting the
following error:
03-10-20
09:06:46|ERROR|gi.oasis.servlets.FeedbackRequestHandler|Feedback error
java.lang.Exception: OpusMail encountered exception:
javax.naming.NameNotFoundException: Name mail is not bound in this
Context

Here's (part of) the source:
   try {
 Context initCtx = new InitialContext();
 Context envCtx = (Context) initCtx.lookup(java:comp/env);
 Session session = (Session) envCtx.lookup(mail/Session);
What did I miss?  I found a

ResourceParams name=mail/Session


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


RE: Name mail is not bound in this Context error??

2003-10-20 Thread Shapira, Yoav

Howdy,
That depends on which SendMail example you're using ;)  If your SendMail
code uses a JNDI Mail Session, then yes you need to modify server.xml.

You don't need to post all of server.xml, only your context and its JNDI
definitions.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 10:19 AM
To: Tomcat Users List
Subject: Re: Name mail is not bound in this Context error??

Before I post an 11k file, I wanted to make an observation.  The
SendMail example works fine, doesn't it require a working server.xml
file?

Jim.

Shapira, Yoav wrote:

 Howdy,
 Try to list the bindings in your context.  Your server.xml is
probably
 not set up correctly, so tomcat isn't binding a mail/Session JNDI
entry
 into your env context.  Post your server.xml.

 Yoav Shapira
 Millennium ChemInformatics



-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:24 AM
To: Tomcat Users List
Subject: Name mail is not bound in this Context error??

This is not starting the week out very good.  I'm trying to duplicate
the code in the Tomcat example, SendMail.java.  I'm getting the
following error:


03-10-20
09:06:46|ERROR|gi.oasis.servlets.FeedbackRequestHandler|Feedback
error
java.lang.Exception: OpusMail encountered exception:
javax.naming.NameNotFoundException: Name mail is not bound in this

 Context

Here's (part of) the source:
try {

  Context initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  Session session = (Session) envCtx.lookup(mail/Session);


What did I miss?  I found a

ResourceParams name=mail/Session



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: tomcat jitters, then hangs - please help

2003-10-20 Thread Francois JEANMOUGIN
Hi,


LD_ASSUME_KERNEL
  Problem: Tomcat Server becomes unresponsive to new requests after
 several
  hours, regardless of load.
  OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4)
  Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5
[...]
 Q: would the assume kernel 2.4 work as well ? I believe it would, but
 it
 could be worth confirming it eventually. This is not critical,
 obviously.

I understood LD_ASSUME_KERNEL is controlling the way the libpthread interact with both 
the kernel and the applications. I saw lot of things written about this supposed-to-be 
improved lib from RedHat but the optimizations doesn't seem to be usable by those 
popular Jvm.

François.


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



Re: Name mail is not bound in this Context error??

2003-10-20 Thread Jim Lynch
That gave me the info I needed.  The configuration has to be in my 
context.xml file.  Or an appropriate place in the server.xml file.  I 
tried to put in in a global resources section and that wasn't working.

Thanks,
Jim.
Shapira, Yoav wrote:
Howdy,
That depends on which SendMail example you're using ;)  If your SendMail
code uses a JNDI Mail Session, then yes you need to modify server.xml.
You don't need to post all of server.xml, only your context and its JNDI
definitions.
Yoav Shapira
Millennium ChemInformatics


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


Re: tomcat runs nut no ssl | newbie

2003-10-20 Thread Benoit Moeremans
Oops.. I forgot the comment line in xml, not the same as usually..  I feel a
(Blittle bit dummy.
(B
(BThnx :-)
(B- Original Message -
(BFrom: [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Monday, October 20, 2003 10:21 AM
(BSubject: Re: tomcat runs nut no ssl | newbie
(B
(B
(B hello
(B
(B !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
(B !--
(B Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
(B
(B maybe you have to delete !-- and -- that means
(B comment-out this Connector Directive.
(B
(B
(B
(B Hello all,
(B 
(B I discovered since a while tomcat and d$BqD(Bided to install the version 5.
(B Everythings runs, except the ssl. The port is still no open. The
(B certificate is created and is the homedir of the user who runs the
(Bservice.
(B I see nothing in the log.
(B 
(B Oct 17, 2003 5:09:25 PM org.apache.coyote.http11.Http11Protocol start
(B INFO: Starting Coyote HTTP/1.1 on port 1300
(B Oct 17, 2003 5:09:25 PM org.apache.jk.common.ChannelSocket init
(B INFO: JK2: ajp13 listening on /0.0.0.0:8020
(B Oct 17, 2003 5:09:25 PM org.apache.jk.server.JkMain start
(B INFO: Jk running ID=0 time=8/45
(Bconfig=/home/bmo/tomcat5/jakarta-tomcat-5.
(B 0.12/conf/jk2.properties
(B Oct 17, 2003 5:09:25 PM org.apache.catalina.startup.Catalina start
(B INFO: Server startup in 9233 ms
(B 
(B 
(B 
(B Here is my configuration:
(B 
(B!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
(B q
(B Connector port="1300"
(BmaxThreads="150" minSpareThreads="25" maxSpareThreads="75"
(BenableLookups="false" redirectPort="8443"
(BacceptCount="100"
(Bdebug="0" connectionTimeout="2"
(BdisableUploadTimeout="true" /
(B 
(B !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
(B !--
(B Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
(Bport="8443" minProcessors="5" maxProcessors="75"
(BenableLookups="true" disableUploadTimeout="true"
(B acceptCount="100" debug="0" scheme="https" secure="true"
(B   Factory className="org.apache.coyote.tomcat5.
(B CoyoteServerSocketFactory"
(BclientAuth="false" protocol="TLS" /
(B Connector port="8443"
(BmaxThreads="150" minSpareThreads="25" maxSpareThreads="75"
(BenableLookups="false" disableUploadTimeout="true"
(BacceptCount="100" debug="0" scheme="https" secure="true"
(B   Factory clientAuth="false" protocol="TLS" /
(B/Connector
(B 
(B  Engine name="extranet" defaultHost="localhost" debug="0"^M
(B 
(B 
(B Any help?
(B 
(B Thnx in advance
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

AW: newbie: servlet examples work, jsp not

2003-10-20 Thread Sven Busse
hello,

ahmm, still having this problem and don't know
what to do, sorry ...


 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Gesendet: Sonntag, 19. Oktober 2003 18:37
 An: Tomcat Users List
 Betreff: Re: newbie: servlet examples work, jsp not
 
 
 hello,
 
 i tried %JAVA_HOME%\bin\javac and it works properly.
 
 Any other ideas?
 
  You don't need to set your classpath. Tomcat does that for you.
  
  You should double check that your JAVA_HOME environment 
 variable is set 
  properly. From the command line type: %JAVA_HOME%\bin\javac
  You should see a menu of switches for the compiler.
  If not, check to see where your JAVA_HOME environment 
 variable is pointing by 
  typing: echo %JAVA_HOME%
  
  You might also want to get tomcat working as a standalone 
 before integrating 
  with Apache to cut down on the number of simultaneous 
 issues to be debugged.
  http://localhost:8080/examples
  
  
  
  
  
  
  On Sunday 19 October 2003 06:35 am, you wrote:
   hello,
  
   i am working in windows xp. i have the jsdk 1.4.1 
 installed. i also
   installed apache2 and tomcat 4.1 as described in the HowTo:
   http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
  
   after installation, i wanted to try the examples at
   http://localhost/examples. the servlet examples work, but 
 the jsp examples
   not. i get the following error:
  
   org.apache.jasper.JasperException: Unable to compile class for JSP
  
   An error occurred at line: -1 in the jsp file: null
  
   Generated servlet error:
   [javac] Compiling 1 source file
  
   and in the logs i have:
  
   Unable to find a javac compiler;
   com.sun.tools.javac.Main is not on the classpath.
   Perhaps JAVA_HOME does not point to the JDK
  
   But my Java_Home does point to c:\j2sdk1.4.1
   and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
  
   So, what am i making wrong? thank you in
   advance.
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: newbie: servlet examples work, jsp not

2003-10-20 Thread Mike Curwen
Are you on XP Home or XP Pro ? 
 
What's CATALINA_HOME ?
 
If you're using the LE version of Tomcat, remove it, and try installing
the 'full' (non-LE) version.

 -Original Message-
 From: Sven Busse [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 8:50 AM
 To: 'Tomcat Users List'
 Subject: AW: newbie: servlet examples work, jsp not
 
 
 hello,
 
 ahmm, still having this problem and don't know
 what to do, sorry ...
 
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Gesendet: Sonntag, 19. Oktober 2003 18:37
  An: Tomcat Users List
  Betreff: Re: newbie: servlet examples work, jsp not
  
  
  hello,
  
  i tried %JAVA_HOME%\bin\javac and it works properly.
  
  Any other ideas?
  
   You don't need to set your classpath. Tomcat does that for you.
   
   You should double check that your JAVA_HOME environment
  variable is set
   properly. From the command line type: %JAVA_HOME%\bin\javac You 
   should see a menu of switches for the compiler. If not, 
 check to see 
   where your JAVA_HOME environment
  variable is pointing by
   typing: echo %JAVA_HOME%
   
   You might also want to get tomcat working as a standalone
  before integrating
   with Apache to cut down on the number of simultaneous
  issues to be debugged.
   http://localhost:8080/examples
   
   
   
   
   
   
   On Sunday 19 October 2003 06:35 am, you wrote:
hello,
   
i am working in windows xp. i have the jsdk 1.4.1
  installed. i also
installed apache2 and tomcat 4.1 as described in the HowTo: 
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
   
after installation, i wanted to try the examples at 
http://localhost/examples. the servlet examples work, but
  the jsp examples
not. i get the following error:
   
org.apache.jasper.JasperException: Unable to compile 
 class for JSP
   
An error occurred at line: -1 in the jsp file: null
   
Generated servlet error:
[javac] Compiling 1 source file
   
and in the logs i have:
   
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
   
But my Java_Home does point to c:\j2sdk1.4.1
and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
   
So, what am i making wrong? thank you in
advance.
   
   

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


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



AW: RE: newbie: servlet examples work, jsp not

2003-10-20 Thread Sven Busse
hello,

i am using windows xp home edition.

CATALINA_HOME is the same as TOMCAT_HOME:

c:\tomcat

thanx

sven

 -Ursprngliche Nachricht-
 Von: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 20. Oktober 2003 18:06
 An: 'Tomcat Users List'; [EMAIL PROTECTED]
 Betreff: RE: newbie: servlet examples work, jsp not
 
 
 Are you on XP Home or XP Pro ? 
  
 What's CATALINA_HOME ?
  
 If you're using the LE version of Tomcat, remove it, and try 
 installing
 the 'full' (non-LE) version.
 
  -Original Message-
  From: Sven Busse [mailto:[EMAIL PROTECTED] 
  Sent: Monday, October 20, 2003 8:50 AM
  To: 'Tomcat Users List'
  Subject: AW: newbie: servlet examples work, jsp not
  
  
  hello,
  
  ahmm, still having this problem and don't know
  what to do, sorry ...
  
  
   -Ursprngliche Nachricht-
   Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Gesendet: Sonntag, 19. Oktober 2003 18:37
   An: Tomcat Users List
   Betreff: Re: newbie: servlet examples work, jsp not
   
   
   hello,
   
   i tried %JAVA_HOME%\bin\javac and it works properly.
   
   Any other ideas?
   
You don't need to set your classpath. Tomcat does that for you.

You should double check that your JAVA_HOME environment
   variable is set
properly. From the command line type: %JAVA_HOME%\bin\javac You 
should see a menu of switches for the compiler. If not, 
  check to see 
where your JAVA_HOME environment
   variable is pointing by
typing: echo %JAVA_HOME%

You might also want to get tomcat working as a standalone
   before integrating
with Apache to cut down on the number of simultaneous
   issues to be debugged.
http://localhost:8080/examples






On Sunday 19 October 2003 06:35 am, you wrote:
 hello,

 i am working in windows xp. i have the jsdk 1.4.1
   installed. i also
 installed apache2 and tomcat 4.1 as described in the HowTo: 
 
 http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

 after installation, i wanted to try the examples at 
 http://localhost/examples. the servlet examples work, but
   the jsp examples
 not. i get the following error:

 org.apache.jasper.JasperException: Unable to compile 
  class for JSP

 An error occurred at line: -1 in the jsp file: null

 Generated servlet error:
 [javac] Compiling 1 source file

 and in the logs i have:

 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK

 But my Java_Home does point to c:\j2sdk1.4.1
 and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar

 So, what am i making wrong? thank you in
 advance.


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


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

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



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



mod_webapp configuration

2003-10-20 Thread Javier Sanchez Monzon
 
Hi,  
 
 
has anyone setup the warp connector? for tomcat 4.1? I know that this 
connector is part of the tomcat 4.0, but i start my service configured with 
the warp connector without problems. but i do not see my application with 
http://localhost:portNumber.   
 
I did this:  
 
1.-mod_webapp, already installed on the apache 1.3.27 and works fine with 
other apps. 
2.- the setup on the $TOMCAT_HOME/conf/server.xml 
 
Service name=Tomcat-Apache 
 Service name=Tomcat-Apache 
 
Connector className=org.apache.catalina.connector.warp.WarpConnector 
 port=9081 address=localhost minProcessors=5 maxProcessors=75 
 enableLookups=true appBase=webapps/zeno 
 acceptCount=10 debug=0/ 
 
 
!-- Replace localhost with what your Apache ServerName is set to -- 
Engine className=org.apache.catalina.connector.warp.WarpEngine 
 name=Apache debug=0 
  !-- Global logger unless overridden at lower levels -- 
 
  Logger className=org.apache.catalina.logger.FileLogger 
  prefix=apache_log. suffix=.txt 
  timestamp=true/ 
 
  !-- Because this Realm is here, an instance will be shared globally -- 
 
  Realm className=org.apache.catalina.realm.MemoryRealm / 
 
/Engine 
 
  /Service 
 
3. i call the localhost:9081, and there is no answer 
 
4 Do i need to install any other programm in tomcat? 
 
regards,  
 
tino 

-
This mail sent through IMP: http://horde.org/imp/


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



Urgent please -crazy error when turnning tomcat a NT4.0 Servi c e

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ

Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT 4.0's
service. This error (showed below) always happens whenever my app try to
work with the result set. Is it a hint? Of course, if i stop  making TomCat
a NT service, the problem doesnt happen anymore and my app runs fine...
A hint: no logs are generated by NT and the Tomcat service is UP!
Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever it
tries to deal with the result set.Very strange! Another problem: since i
remove tool.jar from classpath, neither static nor dinamics pages are
loaded.
Still needing help.





HTTP Status 500 - 




type Exception report

message 

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

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment variables
are irrelevant other than during the service installation process.  To
change CLASSPATH or any other Java environment settings, he would have to
edit the registry.

It is not clear as to whether by dynamic pages he is referring to JSPs,
servlets, or those which access the database.  If it is only JSPs which
fail, then I would suspect that the jvm.dll pointed to is incorrect (common
problem with 4.1.24).  If it is only database access (which the original
post implied) then I would stick with my original hunch that it is a
permissions issue, depending upon the database/driver.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


no, set your

JAVA_HOME=c:\j2sdk1.4.1_01

nothing else
then set

PATH=%JAVA_HOME%\bin;%PATH%

in your computer environments, not the user environment

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


I ve put tools.jar at my JAVA HOME - like that --
c:\j2sdk1.4.1_01\lib\tools.jar. Unfortunatelly, this problem goes on
I am still needing 

RE: RE: newbie: servlet examples work, jsp not

2003-10-20 Thread Mike Curwen
I once purchased an HP laptop with XP Home.  I eventually had to return
it for a number of reasons:  
 
*at the time, I hated XP, and I couldn't get 2000 to install correctly.
*more importantly (for this list),  I couldn't get tomcat to function
properly.
 
It's as if it ignored both JAVA_HOME and CATALINA_HOME.  Numerous
reboots and careful inspection of the settings for typos left me
mystified as to the cause.
 
As I said, I eventually gave up and returned the laptop. So XP Home
makes me suspicious, because of my own experience with this OS.
 
As an aside, I use XP Pro at work, and it's the best Windows OS yet
(yes, I'm sure there are Linux geeks just waiting in the wings with
their comments).
 


 -Original Message-
 From: Sven Busse [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 11:21 AM
 To: 'Tomcat Users List'
 Subject: AW: RE: newbie: servlet examples work, jsp not
 
 
 hello,
 
 i am using windows xp home edition.
 
 CATALINA_HOME is the same as TOMCAT_HOME:
 
 c:\tomcat
 
 thanx
 
 sven
 
  -Ursprüngliche Nachricht-
  Von: Mike Curwen [mailto:[EMAIL PROTECTED]
  Gesendet: Montag, 20. Oktober 2003 18:06
  An: 'Tomcat Users List'; [EMAIL PROTECTED]
  Betreff: RE: newbie: servlet examples work, jsp not
  
  
  Are you on XP Home or XP Pro ?
   
  What's CATALINA_HOME ?
   
  If you're using the LE version of Tomcat, remove it, and try
  installing
  the 'full' (non-LE) version.
  
   -Original Message-
   From: Sven Busse [mailto:[EMAIL PROTECTED]
   Sent: Monday, October 20, 2003 8:50 AM
   To: 'Tomcat Users List'
   Subject: AW: newbie: servlet examples work, jsp not
   
   
   hello,
   
   ahmm, still having this problem and don't know
   what to do, sorry ...
   
   
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 19. Oktober 2003 18:37
An: Tomcat Users List
Betreff: Re: newbie: servlet examples work, jsp not


hello,

i tried %JAVA_HOME%\bin\javac and it works properly.

Any other ideas?

 You don't need to set your classpath. Tomcat does 
 that for you.
 
 You should double check that your JAVA_HOME environment
variable is set
 properly. From the command line type: 
 %JAVA_HOME%\bin\javac You
 should see a menu of switches for the compiler. If not, 
   check to see
 where your JAVA_HOME environment
variable is pointing by
 typing: echo %JAVA_HOME%
 
 You might also want to get tomcat working as a standalone
before integrating
 with Apache to cut down on the number of simultaneous
issues to be debugged.
 http://localhost:8080/examples
 
 
 
 
 
 
 On Sunday 19 October 2003 06:35 am, you wrote:
  hello,
 
  i am working in windows xp. i have the jsdk 1.4.1
installed. i also
  installed apache2 and tomcat 4.1 as described in the HowTo:
  
  http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
 
  after installation, i wanted to try the examples at
  http://localhost/examples. the servlet examples work, but
the jsp examples
  not. i get the following error:
 
  org.apache.jasper.JasperException: Unable to compile
   class for JSP
 
  An error occurred at line: -1 in the jsp file: null
 
  Generated servlet error:
  [javac] Compiling 1 source file
 
  and in the logs i have:
 
  Unable to find a javac compiler; 
 com.sun.tools.javac.Main is 
  not on the classpath. Perhaps JAVA_HOME does not 
 point to the 
  JDK
 
  But my Java_Home does point to c:\j2sdk1.4.1
  and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
 
  So, what am i making wrong? thank you in
  advance.
 
 
  

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

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




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


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

RE: Urgent please -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-20 Thread Mike Curwen
what database are you using?
 
If it's MSAccess, then make sure you set up your DSN to be a 'system'
DSN.

 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 11:24 AM
 To: '[EMAIL PROTECTED]'
 Subject: Urgent please -crazy error when turnning tomcat a 
 NT4.0 Servi ce
 
 
 
 Hi Guys,
 i am still having problems since Tomcat 4.1.18 was configured 
 as a NT 4.0's service. This error (showed below) always 
 happens whenever my app try to work with the result set. Is 
 it a hint? Of course, if i stop  making TomCat a NT service, 
 the problem doesnt happen anymore and my app runs fine... A 
 hint: no logs are generated by NT and the Tomcat service is 
 UP! Thanks in advance, Euclides.  
 
 -Mensagem original-
 De: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 17 de outubro de 2003 21:19
 Para: 'Tomcat Users List'
 Assunto: RES: Urgent help -crazy error when turnning tomcat a 
 NT4.0 Servi ce
 
 Hi guys,
 BELOW IS SHOWED THE ERROR! The problems happens at my 
 Servlet, whenever it tries to deal with the result set.Very 
 strange! Another problem: since i remove tool.jar from 
 classpath, neither static nor dinamics pages are loaded. 
 Still needing help.
 
 
 
 
 
 HTTP Status 500 - 
 
 --
 --
 
 
 type Exception report
 
 message 
 
 description The server encountered an internal error () that 
 prevented it from fulfilling this request.
 
 exception 
 
 java.lang.NullPointerException
   at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
   at BancoServlet.service(BancoServlet.java:249)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Application
 FilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterCh
 ain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.ja
 va:260)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.ja
 va:191)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2415)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.
 java:170)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:172
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at org.apache
 
 
 -Mensagem original-
 De: John Corrigan [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 17 de outubro de 2003 21:00
 Para: Tomcat Users List
 Assunto: RE: Urgent help -crazy error when turnning tomcat a 
 NT4.0 Service
 
 
 If Jose is using a 4.1.x version of Tomcat and using the 
 tools which are included with Tomcat for running it as a 
 service then environment variables are irrelevant other than 
 during the service installation process.  To change CLASSPATH 
 or any other Java environment settings, he would have to edit 
 the registry.
 
 It is not clear as to whether by dynamic pages he is 
 referring to JSPs, servlets, or those which access the 
 database.  If it is only JSPs which fail, then I would 
 suspect that the jvm.dll pointed to is incorrect (common 
 problem with 4.1.24).  If it is only database access (which 
 the original post implied) then I would stick with my 
 original hunch that it is a permissions issue, depending upon 
 the database/driver.
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 4:51 PM
 To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
 Subject: Re: Urgent help -crazy error when turnning tomcat a 
 NT4.0 Service
 
 
 no, set your
 
 

AW: RE: RE: newbie: servlet examples work, jsp not

2003-10-20 Thread Sven Busse
hello,

well, that would be bad. I don't have the time to re-install
everything now, ...

hmm ... 

 -Ursprngliche Nachricht-
 Von: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 20. Oktober 2003 18:25
 An: 'Tomcat Users List'; [EMAIL PROTECTED]
 Betreff: RE: RE: newbie: servlet examples work, jsp not
 
 
 I once purchased an HP laptop with XP Home.  I eventually had 
 to return
 it for a number of reasons:  
  
 *at the time, I hated XP, and I couldn't get 2000 to install 
 correctly.
 *more importantly (for this list),  I couldn't get tomcat to function
 properly.
  
 It's as if it ignored both JAVA_HOME and CATALINA_HOME.  Numerous
 reboots and careful inspection of the settings for typos left me
 mystified as to the cause.
  
 As I said, I eventually gave up and returned the laptop. So XP Home
 makes me suspicious, because of my own experience with this OS.
  
 As an aside, I use XP Pro at work, and it's the best Windows OS yet
 (yes, I'm sure there are Linux geeks just waiting in the wings with
 their comments).
  
 
 
  -Original Message-
  From: Sven Busse [mailto:[EMAIL PROTECTED] 
  Sent: Monday, October 20, 2003 11:21 AM
  To: 'Tomcat Users List'
  Subject: AW: RE: newbie: servlet examples work, jsp not
  
  
  hello,
  
  i am using windows xp home edition.
  
  CATALINA_HOME is the same as TOMCAT_HOME:
  
  c:\tomcat
  
  thanx
  
  sven
  
   -Ursprngliche Nachricht-
   Von: Mike Curwen [mailto:[EMAIL PROTECTED]
   Gesendet: Montag, 20. Oktober 2003 18:06
   An: 'Tomcat Users List'; [EMAIL PROTECTED]
   Betreff: RE: newbie: servlet examples work, jsp not
   
   
   Are you on XP Home or XP Pro ?

   What's CATALINA_HOME ?

   If you're using the LE version of Tomcat, remove it, and try
   installing
   the 'full' (non-LE) version.
   
-Original Message-
From: Sven Busse [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 8:50 AM
To: 'Tomcat Users List'
Subject: AW: newbie: servlet examples work, jsp not


hello,

ahmm, still having this problem and don't know
what to do, sorry ...


 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 19. Oktober 2003 18:37
 An: Tomcat Users List
 Betreff: Re: newbie: servlet examples work, jsp not
 
 
 hello,
 
 i tried %JAVA_HOME%\bin\javac and it works properly.
 
 Any other ideas?
 
  You don't need to set your classpath. Tomcat does 
  that for you.
  
  You should double check that your JAVA_HOME environment
 variable is set
  properly. From the command line type: 
  %JAVA_HOME%\bin\javac You
  should see a menu of switches for the compiler. If not, 
check to see
  where your JAVA_HOME environment
 variable is pointing by
  typing: echo %JAVA_HOME%
  
  You might also want to get tomcat working as a standalone
 before integrating
  with Apache to cut down on the number of simultaneous
 issues to be debugged.
  http://localhost:8080/examples
  
  
  
  
  
  
  On Sunday 19 October 2003 06:35 am, you wrote:
   hello,
  
   i am working in windows xp. i have the jsdk 1.4.1
 installed. i also
   installed apache2 and tomcat 4.1 as described in 
 the HowTo:
   
   http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
  
   after installation, i wanted to try the examples at
   http://localhost/examples. the servlet examples work, but
 the jsp examples
   not. i get the following error:
  
   org.apache.jasper.JasperException: Unable to compile
class for JSP
  
   An error occurred at line: -1 in the jsp file: null
  
   Generated servlet error:
   [javac] Compiling 1 source file
  
   and in the logs i have:
  
   Unable to find a javac compiler; 
  com.sun.tools.javac.Main is 
   not on the classpath. Perhaps JAVA_HOME does not 
  point to the 
   JDK
  
   But my Java_Home does point to c:\j2sdk1.4.1
   and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
  
   So, what am i making wrong? thank you in
   advance.
  
  
   
 

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

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

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




   
  
 

RES: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Oracle 8i - Oracle Thin driver

what database are you using?
 
If it's MSAccess, then make sure you set up your DSN to be a 'system'
DSN.

 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 11:24 AM
 To: '[EMAIL PROTECTED]'
 Subject: Urgent please -crazy error when turnning tomcat a 
 NT4.0 Servi ce
 
 
 
 Hi Guys,
 i am still having problems since Tomcat 4.1.18 was configured 
 as a NT 4.0's service. This error (showed below) always 
 happens whenever my app try to work with the result set. Is 
 it a hint? Of course, if i stop  making TomCat a NT service, 
 the problem doesnt happen anymore and my app runs fine... A 
 hint: no logs are generated by NT and the Tomcat service is 
 UP! Thanks in advance, Euclides.  
 
 -Mensagem original-
 De: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 17 de outubro de 2003 21:19
 Para: 'Tomcat Users List'
 Assunto: RES: Urgent help -crazy error when turnning tomcat a 
 NT4.0 Servi ce
 
 Hi guys,
 BELOW IS SHOWED THE ERROR! The problems happens at my 
 Servlet, whenever it tries to deal with the result set.Very 
 strange! Another problem: since i remove tool.jar from 
 classpath, neither static nor dinamics pages are loaded. 
 Still needing help.
 
 
 
 
 
 HTTP Status 500 - 
 
 --
 --
 
 
 type Exception report
 
 message 
 
 description The server encountered an internal error () that 
 prevented it from fulfilling this request.
 
 exception 
 
 java.lang.NullPointerException
   at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
   at BancoServlet.service(BancoServlet.java:249)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Application
 FilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterCh
 ain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.ja
 va:260)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.ja
 va:191)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2415)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:643)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.
 java:170)
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:172
 )
   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.invok
 eNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:480)
   at org.apache
 
 
 -Mensagem original-
 De: John Corrigan [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 17 de outubro de 2003 21:00
 Para: Tomcat Users List
 Assunto: RE: Urgent help -crazy error when turnning tomcat a 
 NT4.0 Service
 
 
 If Jose is using a 4.1.x version of Tomcat and using the 
 tools which are included with Tomcat for running it as a 
 service then environment variables are irrelevant other than 
 during the service installation process.  To change CLASSPATH 
 or any other Java environment settings, he would have to edit 
 the registry.
 
 It is not clear as to whether by dynamic pages he is 
 referring to JSPs, servlets, or those which access the 
 database.  If it is only JSPs which fail, then I would 
 suspect that the jvm.dll pointed to is incorrect (common 
 problem with 4.1.24).  If it is only database access (which 
 the original post implied) then I would stick with my 
 original hunch that it is a permissions issue, depending upon 
 the database/driver.
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 4:51 PM
 To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
 Subject: Re: Urgent help -crazy error when turnning tomcat a 
 NT4.0 Service
 
 
 no, set 

RE: Urgent please -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-20 Thread Wade Chandler
I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.





HTTP Status 500 - 





type Exception report

message 

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

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment
variables are irrelevant other than during the service installation
process.  To change CLASSPATH or any other Java environment settings, he
would have to edit the registry.

It is not clear as to whether by dynamic pages he is referring to
JSPs, servlets, or those which access the database.  If it is only JSPs
which fail, then I would suspect that the jvm.dll pointed to is
incorrect (common problem with 4.1.24).  If it is only 

Re: What did I do to get an (Unknown source

2003-10-20 Thread Jim Lynch
Thanks for the comments on the problem.  I recompiled with debug on.  No 
help.

A few more details.
This application is one of three that are running on this machine.  The 
other two work fine and all three a structured almost identically.  I 
use very similar build.xml and build.property files.  They are all 
deployed via war files.  The context.xml files are almost identical and 
the structure of the source and web directories is very similar.  Here 
is another strange error message:

log4j:ERROR Ignoring configuration file 
[null/WEB-INF/classes/log4j.properties].

I think the two problems may be related.  I have tomcat.home defined in 
my build.properties file.

Jim

Shapira, Yoav wrote:

Howsy,
Then maybe someone else did, or if it's a 3rd party distribution maybe
they just compiled it without debug (which is a fairly routine thing to
do).
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:26 AM
To: Tomcat Users List
Subject: Re: What did I do to get an (Unknown source
Hm.  That's strange.  I don't even know how to change the debug
setting.

Thanks,
Jim.
Shapira, Yoav wrote:


Howdy,
You compiled it without debug enabled in javac.
Yoav Shapira
Millennium ChemInformatics


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




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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


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


Re: JK2 woes

2003-10-20 Thread Daniel Gibby
David Bolshoy had this problem on Jun 2. 2003

Did you ever get this figured out? I have the same problem with much the 
same setup as you.
Apache and tomcat seem to run fine for a while, but then after some time 
(more quickly with more usage), I start receiving errors and connections 
to apache are refused:

Oct 19, 2003 10:26:54 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
... repeated up to 5 times...
[Sun Oct 19 10:26:54 2003] (error ) [jk_channel_un.c (422)]  
channelUn.receive(): error receiving -2 104 Connection reset by peer 
0x98a9cf0 95
Oct 19, 2003 10:26:54 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
Oct 19, 2003 10:26:54 AM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000

Any help is appreciated. I'm assuming that it is a JK2 issue. I'm 
including my workers2.properties below.
Thanks,
Daniel Gibby

setup:
Apache/2.0.40
Linux RedHat 9.0 compiled
jakarta-tomcat-4.1.27
jk2-connectors-2.0.2 compiled from native src
I assume it is something with the JK2 connectors.
Here's my workers2.properties:
[logger]
level=ERROR
# Log level. Supported: EMERG, ERROR, INFO, DEBUG
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
[workerEnv:]
info=Global server options
timing=1
debug=0
[status:status]
info=Status worker, displays runtime informations
[lb:unixsoc]
info=Default load balancer.
debug=0
[shm:]
info=Scoreboard. Required for reconfiguration and status with 
multiprocess servers
file=/usr/local/jakarta-tomcat/work/jk2.shm
size=1048576
debug=0
disabled=0

[channel.un:unixsocket]
file=/usr/local/jakarta-tomcat/work/jk2.socket
tomcatId=localhost:8009
group=unixsoc
[ajp13:unixsocket]
channel=channel.un:unixsocket
group=unixsoc
[uri:/go*]
group=unixsoc
[uri:*.jsp]
info=All JSP requests forwarded
group=unixsoc
#Then I have things for many of my domains that are probably redundant:
[uri:domain.com/go*]
group=unixsoc
[uri:domain.com/*.jsp]
info=All JSP requests forwarded
group=unixsoc
#etc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: What did I do to get an (Unknown source

2003-10-20 Thread Ralph Einfeldt

This happens sporadically to me to. 
I've nothing found to change that.

(I didn't try it with a different jvm)

 -Original Message-
 From: Jim Lynch [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 20, 2003 6:50 PM
 To: Tomcat Users List
 Subject: Re: What did I do to get an (Unknown source
 
 
 Thanks for the comments on the problem.  I recompiled with 
 debug on.  No help.
 

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



Re: JK2 woes

2003-10-20 Thread Daniel Gibby
Where can you look up what these error numbers mean?
SEVERE: receive error:   21000
Daniel Gibby wrote:

David Bolshoy had this problem on Jun 2. 2003

Did you ever get this figured out? I have the same problem with much 
the same setup as you.
Apache and tomcat seem to run fine for a while, but then after some 
time (more quickly with more usage), I start receiving errors and 
connections to apache are refused:

Oct 19, 2003 10:26:54 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
... repeated up to 5 times...
[Sun Oct 19 10:26:54 2003] (error ) [jk_channel_un.c (422)]  
channelUn.receive(): error receiving -2 104 Connection reset by peer 
0x98a9cf0 95
Oct 19, 2003 10:26:54 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
Oct 19, 2003 10:26:54 AM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000

Any help is appreciated. I'm assuming that it is a JK2 issue. I'm 
including my workers2.properties below.
Thanks,
Daniel Gibby

setup:
Apache/2.0.40
Linux RedHat 9.0 compiled
jakarta-tomcat-4.1.27
jk2-connectors-2.0.2 compiled from native src
I assume it is something with the JK2 connectors.
Here's my workers2.properties:
[logger]
level=ERROR
# Log level. Supported: EMERG, ERROR, INFO, DEBUG
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
[workerEnv:]
info=Global server options
timing=1
debug=0
[status:status]
info=Status worker, displays runtime informations
[lb:unixsoc]
info=Default load balancer.
debug=0
[shm:]
info=Scoreboard. Required for reconfiguration and status with 
multiprocess servers
file=/usr/local/jakarta-tomcat/work/jk2.shm
size=1048576
debug=0
disabled=0

[channel.un:unixsocket]
file=/usr/local/jakarta-tomcat/work/jk2.socket
tomcatId=localhost:8009
group=unixsoc
[ajp13:unixsocket]
channel=channel.un:unixsocket
group=unixsoc
[uri:/go*]
group=unixsoc
[uri:*.jsp]
info=All JSP requests forwarded
group=unixsoc
#Then I have things for many of my domains that are probably redundant:
[uri:domain.com/go*]
group=unixsoc
[uri:domain.com/*.jsp]
info=All JSP requests forwarded
group=unixsoc
#etc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


RES: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs:
line 413 -- soon after the statement rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413-  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.





HTTP Status 500 - 





type Exception report

message 

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

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


ENC: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs:
line 413 -- soon after the statement rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413-  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.





HTTP Status 500 - 





type Exception report

message 

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

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


doubt about environment tag!

2003-10-20 Thread Edson Alves Pereira
Hello folks, i´m trying to create a default attribute for all
sessions in my context, to do it i wrote this in my server.xml:

Context ... 
Environment name=database-name
type=java.lang.String
value=Oracle/
/Context

My problem here is, how do i get this value from a servlet? I´m
trying to do this on init( ) method as follow:

 public void init( ServletConfig cfg_ )
throws ServletException
 {
doSomething( cfg_.getServletContext( ).getAttribute( database-name );
  }


What did i wrong?

Regards,
Edson


RE: Connect to MySQL.

2003-10-20 Thread Mark Lenz

IMHO I wouldn't put the jar in your Java installation.  I would put it in
CATALINA_HOME/common/lib.

Mark Lenz
Software Engineer
Control Systems Group
Pierce Manufacturing, Inc.
(920) 832-3523
[EMAIL PROTECTED]


|-+---
| |   Wilson, Allen |
| |   [EMAIL PROTECTED]|
| |   search.com |
| |   |
| |   10/20/2003 08:58 AM |
| |   Please respond to   |
| |   Tomcat Users List |
| |   |
|-+---
  
---|
  |
   |
  |   To:   Tomcat Users List [EMAIL PROTECTED]
  |
  |   cc:  
   |
  |   Subject:  RE: Connect to MySQL.  
   |
  
---|




Are you trying to make the connection to MySQL as part of the tomcat
startup (Connection Pooling)? If so, I put the jar file in the
jre/lib/ext of my java installation.

Allen

-Original Message-
From: Nuno Paquete [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 7:16 AM
To: [EMAIL PROTECTED]
Subject: Connect to MySQL.


Hi everyone.
I'm having problems to connetc to MySQL.
I put the connector driver in the respective directory, like it's writen
in
MySQL web site but i can connect. I think it's not a problem of source
code,
i think it a problem with the driver.
Does anyone can tell me where should i put the driver?
Thanks in advance.

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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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





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



RE: doubt about environment tag!

2003-10-20 Thread Shapira, Yoav

Howdy,
What you did wrong is not read the documentation.  Environment entries in server.xml 
are JNDI bindings, not servlet context attributes or init parameters.  See 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 2:53 PM
To: 'Tomcat-User List'
Subject: doubt about environment tag!

   Hello folks, i´m trying to create a default attribute for all
sessions in my context, to do it i wrote this in my server.xml:

Context ... 
   Environment name=database-name
   type=java.lang.String
   value=Oracle/
/Context

   My problem here is, how do i get this value from a servlet? I´m
trying to do this on init( ) method as follow:

 public void init( ServletConfig cfg_ )
throws ServletException
 {
doSomething( cfg_.getServletContext( ).getAttribute( database-name );
  }


   What did i wrong?

   Regards,
   Edson



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Urgent please -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-20 Thread Wade Chandler
Jose,

I understand that the error is occuring on line 413 from this
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)

But what that fails to tell me is the exact call it is failing on.  Can
you paste that actual code to the list.  Then we could pin point the
issue.  As in, soon after the statement rs.next()...are you calling
getString or getFloat or some ResultSet method, are you calling new
java.io.File(pathToFile) then some other functions for some reason?
What is the exact call on line 413?  That is where it is failing.  The
code is the key to gettting help in this situation.  Maybe you can post
a whole block around the failing line.  That would be more helpful.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 1:36 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: ENC: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs: line 413 -- soon after the statement
rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413-  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.





HTTP Status 500 - 





type Exception report

message 

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

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

RE: Connect to MySQL.

2003-10-20 Thread Wade Chandler
Which version of MySQL are you using 4.1(alpha)?  I have had strange
issues on Linux vs. Windows.  I was running MySQL 4.1 on Linux.  I could
not for the love of anything connect using the jdbc driver on the Linux
VM, but could from a Windows workstation.  I revert MySQL to version 4.0
(release) and it worked like a champ for both.  No clue when MySQL is
going to be releasing 4.1 or testing that issue, but there definitely
seemed to be an issue.  I was getting unexpected end of stream errors
from the driver any time I tried to perform an an executeQuery
statement.

Wade

-Original Message-
From: Mark Lenz [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:11 PM
To: Tomcat Users List
Subject: RE: Connect to MySQL.



IMHO I wouldn't put the jar in your Java installation.  I would put it
in CATALINA_HOME/common/lib.

Mark Lenz
Software Engineer
Control Systems Group
Pierce Manufacturing, Inc.
(920) 832-3523
[EMAIL PROTECTED]


|-+---
| |   Wilson, Allen |
| |   [EMAIL PROTECTED]|
| |   search.com |
| |   |
| |   10/20/2003 08:58 AM |
| |   Please respond to   |
| |   Tomcat Users List |
| |   |
|-+---
 
---
|
  |
|
  |   To:   Tomcat Users List [EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject:  RE: Connect to MySQL.
|
 
---
|




Are you trying to make the connection to MySQL as part of the tomcat
startup (Connection Pooling)? If so, I put the jar file in the
jre/lib/ext of my java installation.

Allen

-Original Message-
From: Nuno Paquete [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 7:16 AM
To: [EMAIL PROTECTED]
Subject: Connect to MySQL.


Hi everyone.
I'm having problems to connetc to MySQL.
I put the connector driver in the respective directory, like it's writen
in MySQL web site but i can connect. I think it's not a problem of
source code, i think it a problem with the driver. Does anyone can tell
me where should i put the driver? Thanks in advance.

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

This message may contain proprietary or confidential company
information. Any unauthorized use or disclosure is prohibited.


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





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




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



RES: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Ok, here it is:

 private void recuperaDicaTopico( String topico1 , String id,
HttpServletRequest request, HttpServletResponse response, DataSource ds)
throws ServletException,IOException
{
try
 {
  //  NOVO Connection con = null;
  this.ds = ds;
  //con = ds.getConnection();
  PreparedStatement pstmt = null;
  ResultSet rs = null;
  String topico2 = topico1;
  System.out.println( topico1 );
  ArrayList al = new ArrayList();
  String query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }
  else 
{
   do 
 {
Dica total = getDica(rs);
al.add(total);
 } while (rs.next());
 System.out.println ( passei query);
 //fechaconection( con,pstmt,rs);
 fechaconection( pstmt,rs,con);
 String resultado1 = Resultado da consulta pelo Topico --  +
vetorTopico[Integer.parseInt(topico2)];
 request.setAttribute(origem,resultado1);
 request.setAttribute(array,al);   
 chamadevolta =
getServletContext().getRequestDispatcher(/rodrigo2.jsp);
 chamadevolta.forward(request,response);

}
}

catch(SQLException se)
{
  System.out.println( Erro na consulta a dicas: BancoServlet  +  se);
}
   }

t0
-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 15:34
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


Jose,

I understand that the error is occuring on line 413 from this
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)

But what that fails to tell me is the exact call it is failing on.  Can
you paste that actual code to the list.  Then we could pin point the
issue.  As in, soon after the statement rs.next()...are you calling
getString or getFloat or some ResultSet method, are you calling new
java.io.File(pathToFile) then some other functions for some reason?
What is the exact call on line 413?  That is where it is failing.  The
code is the key to gettting help in this situation.  Maybe you can post
a whole block around the failing line.  That would be more helpful.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 1:36 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: ENC: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs: line 413 -- soon after the statement
rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413-  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]

Re: Newbie to Tomcat server.

2003-10-20 Thread Jeff Tulley
Bogdan,
  This recommendation is just how you want your source code.  For
deployment, you would need something more like:
jsp_xml\
 FirstPage.jsp  (could still be in jsp_xml\src, see note below)
 docs\
 WEB-INF\
web.xml
classes\
lib\

Your build.xml needs to set this deployment up to look like this based
on your source code.
If you continue to have FirstPage.jsp in the src directory under
jsp_xml, it would have to be referenced as:
http://localhost:8080/jsp_xml/src/FirstPage.jsp 
And you would put any servlets that you create in WEB-INF\classes or
WEB-INF\lib (if they are in jar form)

If you were deploying with it exactly like you have outlined, then the
problem was probably that WEB-INF was not directly underneath jsp_xml as
it should be.  And, this directory jsp_xml is in tomcat's webapps
directory, right?

Actually, it looks like the documentation suggested that you put
FirstPage.jsp in web\, not in src\ (which is where java source code
should go, not JSP / HTML / CSS / images)  Maybe that was your problem,
and FirstPage.jsp was not ending up in the document root - jsp_xml\

- Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com
(Polski nie z krwi, lecz z serca)

 [EMAIL PROTECTED] 10/20/03 4:12:11 AM 
Sorry for sending unfinished email
(I don't like Microsoft software - too many shortcuts...).

Thank you very much, that was exactly this problem.
After adding manager role for tomcat user
my application is succesfully installed
and running on Tomcat server. I have another
dummy question: where should I put
my FirstPage.jsp file? My application context name
is /jsp_xml/ (Tomcat manager shows this name
on the list of running applications). When I refer
to http:\\localhost:8080\jsp_xml\ (in web browser)
I see an empty directory. When I refer to
http:\\localhost:8080\jsp_xml\FirstPage.jsp server
Tomcat raises 404 status that requested resource
is not available. I've got in my home
directory recommended by Tomcat documentation
structure:

jsp_xml\
src\FistPage.jsp
docs\
web\
WEB-INF\web.xml
build.xml
build.properties

Bogdan Brzozowski
Soft. Dept. Manager

NOVUM Ltd.
Spokojna 9A
18-400 Lomza
POLAND

phone: +48 604 52 72 50
email: [EMAIL PROTECTED] 



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


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



Tomcat 4.0.4 Manager Application

2003-10-20 Thread andrew
When I try and run the following command:

http://localhost:8080/manager/stop?path=/foo

I get the following error:

  java.lang.NoSuchMethodError: 
org.apache.naming.resources.ProxyDirContext.getDirContext()
Ljavax/naming/directory/DirContext;
at org.apache.catalina.core.StandardContext.stop
(StandardContext.java:3479)
at org.apache.catalina.core.StandardHost.stop(StandardHost.java:889)
at org.apache.catalina.servlets.HTMLManagerServlet.stop
(HTMLManagerServlet.java:418)
at org.apache.catalina.servlets.HTMLManagerServlet.doGet
(HTMLManagerServlet.java:139)
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:190)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:531)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke
(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

Thanks for any help.  I hope this message is appropriate for this list.



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



RE: Urgent please -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-20 Thread Mike Curwen
You've posted code for:
recuperaDicaTopico
but the stack trace shows the problem is in:
recuperaTopicoAssunto



 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 1:41 PM
 To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
 Subject: RES: Urgent please -crazy error when turnning tomcat 
 a NT4.0 Servi ce
 
 
 Ok, here it is:
 
  private void recuperaDicaTopico( String topico1 , String id, 
 HttpServletRequest request, HttpServletResponse response, 
 DataSource ds)
 throws ServletException,IOException
 {
 try
  {
   //  NOVO Connection con = null;
   this.ds = ds;
   //con = ds.getConnection();
   PreparedStatement pstmt = null;
   ResultSet rs = null;
   String topico2 = topico1;
   System.out.println( topico1 );
   ArrayList al = new ArrayList();
   String query = Select * FROM DICAS WHERE ID_TOPICO =  
 + topico2;
   pstmt = con.prepareStatement(query);
   rs = pstmt.executeQuery();
   if ( !rs.next() ) 
  {   // -- THIS IS LINE 413 --
 fechaconection( pstmt,rs,con);
 chamadevolta = 
 getServletContext().getRequestDispatcher(/semconteudo.jsp);
 chamadevolta.forward(request,response);
  }
   else 
 {
do 
  {
 Dica total = getDica(rs);
 al.add(total);
  } while (rs.next());
  System.out.println ( passei query);
  //fechaconection( con,pstmt,rs);
  fechaconection( pstmt,rs,con);
  String resultado1 = Resultado da consulta pelo 
 Topico --  + vetorTopico[Integer.parseInt(topico2)];
  request.setAttribute(origem,resultado1);
  request.setAttribute(array,al);   
  chamadevolta = 
 getServletContext().getRequestDispatcher(/rodrigo2.jsp);
  chamadevolta.forward(request,response);
 
 }
 }
 
 catch(SQLException se)
 {
   System.out.println( Erro na consulta a dicas: 
 BancoServlet  +  se);
 }
}
 
 t0
 -Mensagem original-
 De: Wade Chandler [mailto:[EMAIL PROTECTED]
 Enviada em: segunda-feira, 20 de outubro de 2003 15:34
 Para: 'Tomcat Users List'
 Assunto: RE: Urgent please -crazy error when turnning tomcat 
 a NT4.0 Servi ce
 
 
 Jose,
 
 I understand that the error is occuring on line 413 from this
   at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
   at BancoServlet.service(BancoServlet.java:249)
 
 But what that fails to tell me is the exact call it is 
 failing on.  Can you paste that actual code to the list.  
 Then we could pin point the issue.  As in, soon after the 
 statement rs.next()...are you calling getString or getFloat 
 or some ResultSet method, are you calling new
 java.io.File(pathToFile) then some other functions for some 
 reason? What is the exact call on line 413?  That is where it 
 is failing.  The code is the key to gettting help in this 
 situation.  Maybe you can post a whole block around the 
 failing line.  That would be more helpful.
 
 Wade
 
 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 1:36 PM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: ENC: Urgent please -crazy error when turnning tomcat 
 a NT4.0 Servi ce
 
 
 Answering your question...
 DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 
 4.0 SP6.0a Place where the error occurs: line 413 -- soon 
 after the statement
 rs.next()
 
 con.prepareStatement(query);
   rs = pstmt.executeQuery();
   if ( !rs.next() ) 
 LINE 413-  {
 
 If you have any other doubt let me know,
 Regards, Euclides.
 
 -Mensagem original-
 De: Wade Chandler [mailto:[EMAIL PROTECTED]
 Enviada em: segunda-feira, 20 de outubro de 2003 13:50
 Para: 'Tomcat Users List'
 Assunto: RE: Urgent please -crazy error when turnning tomcat 
 a NT4.0 Servi ce
 
 
 I would say it is a permissions error.  You are getting a 
 NullPointerException.  Which probably means something was not 
 found.  It could even be a targeting error.  The service is 
 probably being ran as a user with no permissions.  What are 
 you doing on the lines in the code from here:
   at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
   at BancoServlet.service(BancoServlet.java:249)
 This is the link to your problem.  It is not actually because 
 of Tomcat. I don't believe.  It is permissions and system 
 administration.  Paste your code.  We could help you better.  
 What type of database are you using?  Are you accessing any 
 files or directories?  That is the key to your problem.
 
 Wade
 
 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 12:24 PM
 To: '[EMAIL PROTECTED]'
 Subject: Urgent please -crazy 

jasperreports

2003-10-20 Thread Jan Behrens
Hi List,

we would like to use jasperreports (of sf.net) for printing in our webapp. I
am not sure though were to store the xml files for the reports so that they
will be found during runtime. Has anyone used jasperreports from within his
webapp and can give me a hint?

Thx

Jan


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



more problems with log4j and tomcat

2003-10-20 Thread El Toro
i'm still having a heck of a time getting log4j to
work for my webapp in tomcat...i even looked at the
mailing list archives but nothing really helped...here
is my current configuration (lots of info below):

i have a webapp under:

/%CATALINA_HOME%/webapps/ReportEngine
  - This directory basically contains a set of pretty
simple jsp's which execute methods from a custom
data layer.
/%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
  - my log4j.properties file lives here
/%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
  - my log4j jar as well as the jar containing the
custom data layer lives here.  I am using log4j
1.2.7.  the log4j jar does not appear anywhere
else in my classpath.

Here is my log4j.properties:

log4j.rootLogger=DEBUG, reporting
log4i.debug=true
log4j.appender.reporting=org.apache.log4j.RollingFileAppender
log4j.appender.reporting.File={$CATALINA_HOME}/logs/reporting.log
log4j.appender.reporting.ImmediateFlush=true
log4j.appender.reporting.Threshold=DEBUG
log4j.appender.reporting.DatePattern='.'-MM-dd
log4j.appender.reporting.layout=org.apache.log4j.PatternLayout
log4j.appender.reporting.layout.ConversionPattern=%d
[%t] %-5p %F:%L - %m%n

I don't see the file 'reporting.log' being created
ANYWHERE locally.  I also don't see any log4j output
in any of the logs under /$CATALINA-HOME$/logs or
under the console.

There is a connection factory contained in the data
layer jar mentioned above.  I know there is an
exception being thrown somewhere in there (b/c i'm not
receiving a connection)..probably due to a
configuration error in the database connection pool. 
Upon exception it should log a fatal error using
log4j.  Here is how I am doing the logging in the
connection factory:

first i define a member var in the connection factory
of type org.apache.log4j.Logger:

// private member var
private final static Logger logger =
Logger.getLogger(DBConnectionFactory.class);

when i encounter an excetion I log a fatal error:

logger.fatal(Naming exception encountered when
looking up datasource :  + ex.getMessage());

I've used the above method of using log4j for ejb
development with JBoss...so I don't think its the way
i'm calling/using log4j...rather a configuration
issue?

I've hit a brick wall here...i don't know what else to
do.  I've mismatched the jndi names so that the naming
exception being caught above should ALWAYS be thrown
b/c the jndi name i'm looking up doesn't exist. 
Anyone have any ideas as to what is wrong?

This is on a windows xp platform and i'm running
tomcat 4.1.2.

Any help would be greatly appreciated...thanks!

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: more problems with log4j and tomcat

2003-10-20 Thread Mike Curwen
log4.jar in WEB-INF/classes ?
 
Packaged classes go in WEB-INF/lib, unless you've unpacked the log4j.jar
file, in which case 'loose' class files go in the WEB-INF/classes
directory.
 


 -Original Message-
 From: El Toro [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 3:55 PM
 To: [EMAIL PROTECTED]
 Subject: more problems with log4j and tomcat
 
 
 i'm still having a heck of a time getting log4j to
 work for my webapp in tomcat...i even looked at the
 mailing list archives but nothing really helped...here
 is my current configuration (lots of info below):
 
 i have a webapp under:
 
 /%CATALINA_HOME%/webapps/ReportEngine
   - This directory basically contains a set of pretty
 simple jsp's which execute methods from a custom
 data layer.
 /%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
   - my log4j.properties file lives here
 /%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
   - my log4j jar as well as the jar containing the
 custom data layer lives here.  I am using log4j
 1.2.7.  the log4j jar does not appear anywhere
 else in my classpath.
 
 Here is my log4j.properties:
 
 log4j.rootLogger=DEBUG, reporting
 log4i.debug=true
 log4j.appender.reporting=org.apache.log4j.RollingFileAppender
 log4j.appender.reporting.File={$CATALINA_HOME}/logs/reporting.log
 log4j.appender.reporting.ImmediateFlush=true
 log4j.appender.reporting.Threshold=DEBUG
 log4j.appender.reporting.DatePattern='.'-MM-dd
 log4j.appender.reporting.layout=org.apache.log4j.PatternLayout
 log4j.appender.reporting.layout.ConversionPattern=%d
 [%t] %-5p %F:%L - %m%n
 
 I don't see the file 'reporting.log' being created
 ANYWHERE locally.  I also don't see any log4j output
 in any of the logs under /$CATALINA-HOME$/logs or
 under the console.
 
 There is a connection factory contained in the data
 layer jar mentioned above.  I know there is an
 exception being thrown somewhere in there (b/c i'm not
 receiving a connection)..probably due to a
 configuration error in the database connection pool. 
 Upon exception it should log a fatal error using
 log4j.  Here is how I am doing the logging in the
 connection factory:
 
 first i define a member var in the connection factory
 of type org.apache.log4j.Logger:
 
 // private member var
 private final static Logger logger =
 Logger.getLogger(DBConnectionFactory.class);
 
 when i encounter an excetion I log a fatal error:
 
 logger.fatal(Naming exception encountered when
 looking up datasource :  + ex.getMessage());
 
 I've used the above method of using log4j for ejb
 development with JBoss...so I don't think its the way
 i'm calling/using log4j...rather a configuration
 issue?
 
 I've hit a brick wall here...i don't know what else to
 do.  I've mismatched the jndi names so that the naming
 exception being caught above should ALWAYS be thrown
 b/c the jndi name i'm looking up doesn't exist. 
 Anyone have any ideas as to what is wrong?
 
 This is on a windows xp platform and i'm running
 tomcat 4.1.2.
 
 Any help would be greatly appreciated...thanks!
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: more problems with log4j and tomcat

2003-10-20 Thread El Toro
sorry...i copied and pasted that from the line
above...that should be /WEB-INF/lib.

--- Mike Curwen [EMAIL PROTECTED] wrote:
 log4.jar in WEB-INF/classes ?
  
 Packaged classes go in WEB-INF/lib, unless you've
 unpacked the log4j.jar
 file, in which case 'loose' class files go in the
 WEB-INF/classes
 directory.
  
 
 
  -Original Message-
  From: El Toro [mailto:[EMAIL PROTECTED] 
  Sent: Monday, October 20, 2003 3:55 PM
  To: [EMAIL PROTECTED]
  Subject: more problems with log4j and tomcat
  
  
  i'm still having a heck of a time getting log4j to
  work for my webapp in tomcat...i even looked at
 the
  mailing list archives but nothing really
 helped...here
  is my current configuration (lots of info below):
  
  i have a webapp under:
  
  /%CATALINA_HOME%/webapps/ReportEngine
- This directory basically contains a set of
 pretty
  simple jsp's which execute methods from a
 custom
  data layer.
 

/%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
- my log4j.properties file lives here
 

/%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
- my log4j jar as well as the jar containing the
  custom data layer lives here.  I am using
 log4j
  1.2.7.  the log4j jar does not appear anywhere
  else in my classpath.
  
  Here is my log4j.properties:
  
  log4j.rootLogger=DEBUG, reporting
  log4i.debug=true
 

log4j.appender.reporting=org.apache.log4j.RollingFileAppender
 

log4j.appender.reporting.File={$CATALINA_HOME}/logs/reporting.log
  log4j.appender.reporting.ImmediateFlush=true
  log4j.appender.reporting.Threshold=DEBUG
  log4j.appender.reporting.DatePattern='.'-MM-dd
 

log4j.appender.reporting.layout=org.apache.log4j.PatternLayout
 
 log4j.appender.reporting.layout.ConversionPattern=%d
  [%t] %-5p %F:%L - %m%n
  
  I don't see the file 'reporting.log' being created
  ANYWHERE locally.  I also don't see any log4j
 output
  in any of the logs under /$CATALINA-HOME$/logs or
  under the console.
  
  There is a connection factory contained in the
 data
  layer jar mentioned above.  I know there is an
  exception being thrown somewhere in there (b/c i'm
 not
  receiving a connection)..probably due to a
  configuration error in the database connection
 pool. 
  Upon exception it should log a fatal error using
  log4j.  Here is how I am doing the logging in the
  connection factory:
  
  first i define a member var in the connection
 factory
  of type org.apache.log4j.Logger:
  
  // private member var
  private final static Logger logger =
  Logger.getLogger(DBConnectionFactory.class);
  
  when i encounter an excetion I log a fatal error:
  
  logger.fatal(Naming exception encountered when
  looking up datasource :  + ex.getMessage());
  
  I've used the above method of using log4j for ejb
  development with JBoss...so I don't think its the
 way
  i'm calling/using log4j...rather a configuration
  issue?
  
  I've hit a brick wall here...i don't know what
 else to
  do.  I've mismatched the jndi names so that the
 naming
  exception being caught above should ALWAYS be
 thrown
  b/c the jndi name i'm looking up doesn't exist. 
  Anyone have any ideas as to what is wrong?
  
  This is on a windows xp platform and i'm running
  tomcat 4.1.2.
  
  Any help would be greatly appreciated...thanks!
  
  __
  Do you Yahoo!?
  The New Yahoo! Shopping - with improved product
 search
  http://shopping.yahoo.com
  
 

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

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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: more problems with log4j and tomcat

2003-10-20 Thread Shapira, Yoav

Howdy,

/%CATALINA_HOME%/webapps/ReportEngine
  - This directory basically contains a set of pretty
simple jsp's which execute methods from a custom
data layer.
/%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
  - my log4j.properties file lives here
/%CATALINA_HOME%/webapps/ReportEngine/WEB-INF/classes
  - my log4j jar as well as the jar containing the
custom data layer lives here.  I am using log4j
1.2.7.  the log4j jar does not appear anywhere
else in my classpath.

You've already corrected the above so that log4j.jar is in WEB-INF/lib,
not classes, which is good.

Here is my log4j.properties:

log4j.rootLogger=DEBUG, reporting
log4i.debug=true
log4j.appender.reporting=org.apache.log4j.RollingFileAppender
log4j.appender.reporting.File={$CATALINA_HOME}/logs/reporting.log
log4j.appender.reporting.ImmediateFlush=true
log4j.appender.reporting.Threshold=DEBUG
log4j.appender.reporting.DatePattern='.'-MM-dd
log4j.appender.reporting.layout=org.apache.log4j.PatternLayout
log4j.appender.reporting.layout.ConversionPattern=%d
[%t] %-5p %F:%L - %m%n

This is fine except for the {$CATALINA_HOME} syntax which is sketchy.
Have you tried ${CATALINA_HOME}?

I don't see the file 'reporting.log' being created
ANYWHERE locally.  I also don't see any log4j output
in any of the logs under /$CATALINA-HOME$/logs or
under the console.

Add -Dlog4j.debug=true to JAVA_OPTS in $CATALINA_HOME/bin/catalina.sh.
This will make log4j show debug information on how it's being
configured.

first i define a member var in the connection factory
of type org.apache.log4j.Logger:

You're using log4j correctly, that's not the problem.

Don't rely on some exception to test log4j: use simple logger.info
statements.

Check the tomcat logs for errors.  Make sure you have a valid,
well-formed web.xml file.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Why is certificate always presented?

2003-10-20 Thread Sonny Sukumar
Hi guys,

I've successfully set up SSL with my Tomcat
installation (4.1.27) with a CA-signed cert I bought,
but now Tomcat presents the certificate everytime I
try to even connect using regular http over port 80. 

I thought it was only supposed to be presented when
the browser requests a secure connection (like
https://...;) to the SSL port (443 in my case).

Or am I wrong?


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: tomcat jitters, then hangs - please help

2003-10-20 Thread Zhao Hui
Hi folks,

We encountered the same problem where tomcat on our linux box will hang
occasionally after several days, and we have yet to find the cause of the
problem. Looks like this might solve our problem :). Here is our
configuration :

OS : Redhat
Tomcat : 4
JVM : IBM JDK1.4

I would like to know more about how should we go about configuring the
LD_ASSUME_KERNEL. Please correct me if I am wrong.

 setenv LD_ASSUME_KERNEL 2.2.5

and that will do the trick? Does it depends on any kernel version?

Besides that, we observed that some of the threads that tomcat started did
not die after a few days, here is a snapshot of the tomcat processes (as an
example): [say I started the tomcat at 19 October and today is 22 October,
but there are still some threads running on 20 October]

tomcat4   1554 1  0 Oct19 ?   00:00:19
/opt/IBMJava2-141/bin/java -Djav
tomcat4   1587  1554  0 Oct19 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
tomcat4   1588  1587  0 Oct19 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
tomcat4   1589  1587  0 Oct19 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
tomcat4   1590  1587  0 Oct19 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
tomcat4   2071  1587  0 Oct19 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
tomcat4   2072  1587  0 Oct19 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
.
tomcat4   2088  1587  0 Oct20 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav
tomcat4   2089  1587  0 Oct20 ?00:00:00
/opt/IBMJava2-141/bin/java -Djav

I guess this might be the same issue here as well.

Any comment would be much appreciated. Thanks.

Regards,
Hui

- Original Message -
From: Francois JEANMOUGIN [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 12:45 AM
Subject: RE: tomcat jitters, then hangs - please help


Hi,


LD_ASSUME_KERNEL
  Problem: Tomcat Server becomes unresponsive to new requests after
 several
  hours, regardless of load.
  OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4)
  Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5
[...]
 Q: would the assume kernel 2.4 work as well ? I believe it would, but
 it
 could be worth confirming it eventually. This is not critical,
 obviously.

I understood LD_ASSUME_KERNEL is controlling the way the libpthread interact
with both the kernel and the applications. I saw lot of things written about
this supposed-to-be improved lib from RedHat but the optimizations doesn't
seem to be usable by those popular Jvm.

François.


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


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



Where is org.apache.tomcat.util.log.* for Tomcat 4.1.27?

2003-10-20 Thread Ted Weatherly
I get this compile-time error:

/tmp/jakarta-tomcat/src/catalina/src/share/org/apache/catalina/core/ApplicationFilterConfig.java:79: 
package org.apache.tomcat.util.log does not exist
import org.apache.tomcat.util.log.SystemLogHandler;
  ^
Where can I find the org.apache.tomcat.util.log files for Tomcat 4.1.27? 
 They don't seem to be under tomcat/catalina nor tomcat/jasper.

-Ted

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


JSP pages and interfaces

2003-10-20 Thread Josh G
I know I can use the [EMAIL PROTECTED] extends= % to set the base class of a 
jsp page, but is there a similar thing for interfaces?

I'm just rambling at the moment, trying to think up an easily 
implementable security scheme for our system.

--

I'm sick of the Internet. I want a yabby net.

[ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ]



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