RE: Should i use J2re instead of jdk in my Tomcat server ?

2002-05-06 Thread Brian Bernardo

Yes, you need the jdk installed.  JAVA_HOME should point to the jdk
installation directory.

B

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 06, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: Should i use J2re instead of jdk in my Tomcat server ? 

Its a simple doubt. I ve downloaded the j2re1.4 version to mount my TomCat
Jsp/Servlet environment. But,  tomcat still asking for Java  home, whenever
i try to start it up. So, it always returns me an error. Otherwise, i guess
that if i install  j2sdk (instead of jre), i will get success! Am i right?
Regards, Euclides.  

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

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




RE: Servlet init() callin twice on startup. PLease help.

2002-04-29 Thread Brian Bernardo

How about you give a little background info?  If you are using webappdeploy
in apache, the comment out the below line in your server.xml file:


   Context path=
docBase=../../../../webapp
crossContext=true
debug=0
reloadable=false
trusted=false/


People always miss that one when using mod_webapp.  Give more info, so the
list can be of greater assistance.

Brian





-Original Message-
From: IvanLatysh [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 29, 2002 11:25 AM
To: Tomcat Users List
Subject: Re: Servlet init() callin twice on startup. PLease help.

Hello, Donie!
You wrote to 'Tomcat Users List' [EMAIL PROTECTED] on Mon,
29 Apr 2002 19:14:32
+0100:

 DK Do you have  the servlet mapped twice in web.xml?

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-namePostmaster/display-name
  descriptionOn-Line data validation system./description
  servlet
servlet-nameexecloader/servlet-name
servlet-classpostmaster.execLoader/servlet-class
load-on-startup9/load-on-startup
  /servlet
  servlet
servlet-nameservlet-shtml/servlet-name
 
servlet-classcom.borland.jbuilder.webserverglue.shtml.ShtmlLoaderEcho/ser
vlet-class
  /servlet
  servlet
servlet-namesqltest/servlet-name
servlet-classpostmaster.sqlTest/servlet-class
  /servlet
  servlet
servlet-namevalidator/servlet-name
servlet-classpostmaster.validator.validator/servlet-class
  /servlet
  servlet-mapping
servlet-nameservlet-shtml/servlet-name
url-pattern*.shtml/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namesqltest/servlet-name
url-pattern/sqltest/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namevalidator/servlet-name
url-pattern/validator/url-pattern
  /servlet-mapping
/web-app

---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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

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




RE: tomcat/apache with ALIASES (Was canonical names)

2002-04-26 Thread Brian Bernardo

Can you send me your httpd.conf file then, because I still get the same
problem following your suggestion below.

Brian


-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 8:28 AM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

I just tried this, and it works!
Also, 'UseCanonicalName' is On.
Ken



Ken Anderson wrote:
 h... have you tried Apache's ServerAlias Directive? I know this 
 works with static content, but I'm not sure if mod_webapp respects it or 
 not..
 
 VirtualHost 192.168.1.1
 ServerName blah1.blah.com
 ServerAlias blah2.blah.com
 DocumentRoot /blah
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy webappconn  /test
 /VirtualHost
 
 Ken
 
 
 
 Brian Bernardo wrote:
 
 While that technically works, it launches a separate tomcat instance 
 within
 the single JVM instance.  Watch the logs in catalina.out and you see that
 for each WebAppDeploy line a new instance is launched.  This offers
 functionality, but sharing resources is never a good idea if you want any
 scalability.  This site is expected to get 550 concurrent sessions at any
 time.  This will not work out in such a demanding environment.

 Basically the line:

 Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost  :bt1.domain.com

 Suggests that tomcat launches using the one instance per targetHost.  
 If you
 have one WebAppDeploy and regardless of how you got there (proxy,
 mod_rewrite, virtual hosts etc) once you access any resource from the 
 webapp
 directory, you get forwarded to http://targetHost/webapp and you lose the
 user supplied prefix (bad thing).

 Any other suggestions out there?  There has to be a way to restrict 
 (or add)
 more than one targetHost for tomcat to allow several access methods.

 Brian




 -Original Message-
 From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 
 2002 2:02 PM
 To: Tomcat Users List
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)

 Does something like this work?

 -
 NameVirtualHost 192.168.1.1

 VirtualHost 192.168.1.1
 ServerName blah1.blah.com
 DocumentRoot /blah
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy webappconn  /test
 /VirtualHost

 VirtualHost 192.168.1.1
 ServerName blah2.blah.com
 DocumentRoot /blah
 WebAppConnection conn2  warp  localhost:8008
 WebAppDeploy webappconn2  /test
 /VirtualHost

 Ken


 Brian Bernardo wrote:

 First of all, I am very proficient with DNS; that was not the 
 question.  I
 want users who go to http://name.domain/webapps to have the same
 webappdeployment as http://name2.domain/webapps.  It is important that
 however they got there (domain prefix) be maintained throughout their
 session.  This works fine for static content, but as soon as anyone goes


 to

 http://name?.domain/webapps they get redirected over to
 http://ServerName/webapps.  ServerName is defined within the apache
 httpd.conf file (same with vitualhost name).  That is not good.  
 There has
 to be a way to have either virtual hosts or some method for tomcat to


 serve

 the same dynamic content regardless of how they got there without
 redirecting. 
 Any one know how to accomplish this?

 B


 -Original Message-
 From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, 
 April 25, 2002 8:28 AM
 To: Tomcat Users List
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)

 No. I use A and CNAMES depending on the situation.  Do you have proper
 aliases set up in Apache?


 Joe

 - Original Message -
 From: Oki DZ [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, April 25, 2002 2:28 AM
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)


 On 04/25 15:33 Hamish Marson wrote:


 What you're using (Or trying to use)  is aliases... The DNS records 
 (CNAME
 etc
 al) are named after what they point AT (or more accurately) resolve to.


 Thus


 the CNAME record (Canonical name) points or resolves to the REAL 
 name of


 the


 host. (Literally, the dictionary term for canonical is the real 
 one). Just
 like
 the A record resolves TO the address...



 I think I have the same problems...
 So, how do you set up virtual hosts in Tomcat?
 I have tried to have Host ../ elements in a Tomcat service and I used
 CNAMEs
 in them. It seemed that any hosts in the service would resolve to the 
 same
 contexts contained in the service (even though I have supplied different
 URLs;
 ie: different FQDNs).

 I guess the answer would be: just use A records (that point to the 
 same IP
 number). Is it correct...?

 Oki

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



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

RE: tomcat/apache with ALIASES (Was canonical names)

2002-04-26 Thread Brian Bernardo


I am using Apache 1.3.24 on Solaris 8, and was using tomcat 4.03 with the
4.03 connector.  I upgraded to tomcat 4.04b2 and compiled the connector too,
but still have the same problem.  The targetHost entry always is the
ServerName.  This sucks.  This is a terribly lame limitation with tomcat.
WebLogic can do it, even back with 5.0!!

Brian






-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 10:46 AM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)


This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with 
tomcat 4.04b2. mod_webapp built from 
'jakarta-tomcat-connectors-4.0.4-b2-src'

Here are the relevant sections of httpd.conf:

-
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

UseCanonicalName On

NameVirtualHost 192.168.1.10

VirtualHost 192.168.1.10
 DocumentRoot /home/user/public_html
 ServerName www.domain.com
 ServerAlias test.domain.com
 WebAppConnection conn warp localhost:8008
 WebAppDeploy mywebapp conn /go
/VirtualHost
-

Ken Anderson


Brian Bernardo wrote:
 Can you send me your httpd.conf file then, because I still get the same
 problem following your suggestion below.
 
 Brian
 
 
 -Original Message-
 From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, April 26, 2002 8:28 AM
 To: Tomcat Users List
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)
 
 I just tried this, and it works!
 Also, 'UseCanonicalName' is On.
 Ken
 
 
 
 Ken Anderson wrote:
 
h... have you tried Apache's ServerAlias Directive? I know this 
works with static content, but I'm not sure if mod_webapp respects it or 
not..

VirtualHost 192.168.1.1
ServerName blah1.blah.com
ServerAlias blah2.blah.com
DocumentRoot /blah
WebAppConnection conn  warp  localhost:8008
WebAppDeploy webappconn  /test
/VirtualHost

Ken



Brian Bernardo wrote:


While that technically works, it launches a separate tomcat instance 
within
the single JVM instance.  Watch the logs in catalina.out and you see that
for each WebAppDeploy line a new instance is launched.  This offers
functionality, but sharing resources is never a good idea if you want any
scalability.  This site is expected to get 550 concurrent sessions at any
time.  This will not work out in such a demanding environment.

Basically the line:

Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost  :bt1.domain.com

Suggests that tomcat launches using the one instance per targetHost.  
If you
have one WebAppDeploy and regardless of how you got there (proxy,
mod_rewrite, virtual hosts etc) once you access any resource from the 
webapp
directory, you get forwarded to http://targetHost/webapp and you lose the
user supplied prefix (bad thing).

Any other suggestions out there?  There has to be a way to restrict 
(or add)
more than one targetHost for tomcat to allow several access methods.

Brian




-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 
2002 2:02 PM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

Does something like this work?

-
NameVirtualHost 192.168.1.1

VirtualHost 192.168.1.1
ServerName blah1.blah.com
DocumentRoot /blah
WebAppConnection conn  warp  localhost:8008
WebAppDeploy webappconn  /test
/VirtualHost

VirtualHost 192.168.1.1
ServerName blah2.blah.com
DocumentRoot /blah
WebAppConnection conn2  warp  localhost:8008
WebAppDeploy webappconn2  /test
/VirtualHost

Ken


Brian Bernardo wrote:


First of all, I am very proficient with DNS; that was not the 
question.  I
want users who go to http://name.domain/webapps to have the same
webappdeployment as http://name2.domain/webapps.  It is important that
however they got there (domain prefix) be maintained throughout their
session.  This works fine for static content, but as soon as anyone goes


to


http://name?.domain/webapps they get redirected over to
http://ServerName/webapps.  ServerName is defined within the apache
httpd.conf file (same with vitualhost name).  That is not good.  
There has
to be a way to have either virtual hosts or some method for tomcat to


serve


the same dynamic content regardless of how they got there without
redirecting. 
Any one know how to accomplish this?

B


-Original Message-
From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, 
April 25, 2002 8:28 AM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

No. I use A and CNAMES depending on the situation.  Do you have proper
aliases set up in Apache?


Joe

- Original Message -
From: Oki DZ [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 2:28 AM
Subject: Re: tomcat/apache with ALIASES (Was canonical names)


On 04/25 15:33 Hamish Marson wrote:



What you're using (Or trying to use)  is aliases... The DNS records

RE: tomcat/apache with ALIASES (Was canonical names)

2002-04-26 Thread Brian Bernardo
: paw/signon/WebBasedCallBack.class
loading entry: paw/signon/WebBasedUserPasswordCallBack.class
Fri Apr 26 04:02:32 : 104 : TRACE : System : signon: Abilizer Signon
Service, 1.0
  cells: UserNamePasswordCell SignOffCell UserName Password
ContactInfo RegisterC
ell 
Fri Apr 26 04:02:32 : 104 : TRACE : System : INSTALLING ... system.jar
loading entry: META-INF/manifest.xml
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.br
owse.BrowseDirectoryStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.cl
assification.ClassificationAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.gr
oup.GroupAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.gr
oup.TargetGroupAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.na
vigation.NavStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.pe
rmission.CheckPermissionAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.pe
rmission.LockAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.pe
rmission.PagePermissionAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.pe
rmission.PermissionAssetStorage
Fri Apr 26 04:02:32 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.pr
operty.PropertyAssetStorage
Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.se
rvice.ServiceAssetStorage
Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.si
te.AttrDefinitionAssetStorage
Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.si
te.SiteStorageManager
Fri Apr 26 04:02:33 : 104 : TRACE : system : Found AssetStorage type:
paw.system.asset.us
er.UserAssetStorage
Fri Apr 26 04:02:34 : 104 : TRACE : system : Loaded service implmentation:
paw.system.imp
l.NativeService
Fri Apr 26 04:02:35 : 104 : TRACE : System : system: Core Framework, 1.0
  cells: TCAttrFields ContainerRefCell URLCell ServiceCell JSPCell
HTMLUploadCell
 SOAPCell 
Fri Apr 26 04:02:35 : 104 : TRACE : System : INSTALLING ... wsdl.jar
loading entry: META-INF/manifest.xml
loading entry: paw/wsdl/WSDLInputCell$AsyncGet.class
loading entry: paw/wsdl/WSDLInputCell.class
loading entry: paw/wsdl/WSDLResultsCell.class
Fri Apr 26 04:02:35 : 104 : TRACE : System : wsdl: Framework Extensions.,
1.0
  cells: WSDLResultsCell WSDLInputCell 
Fri Apr 26 04:02:35 : 104 : TRACE : system : CALLING STARTUP CLASSES ...
Fri Apr 26 04:02:35 : 104 : TRACE : system : *** Reading the license file
***
Fri Apr 26 04:02:49 : 104 : TRACE : system : targetHost  :172.16.40.104









-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

What do you mean by 'targetHost' entry?
Ken


Brian Bernardo wrote:
 I am using Apache 1.3.24 on Solaris 8, and was using tomcat 4.03 with the
 4.03 connector.  I upgraded to tomcat 4.04b2 and compiled the connector
too,
 but still have the same problem.  The targetHost entry always is the
 ServerName.  This sucks.  This is a terribly lame limitation with tomcat.
 WebLogic can do it, even back with 5.0!!
 
 Brian
 
 
 
 
 
 
 -Original Message-
 From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, April 26, 2002 10:46 AM
 To: Tomcat Users List
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)
 
 
 This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with 
 tomcat 4.04b2. mod_webapp built from 
 'jakarta-tomcat-connectors-4.0.4-b2-src'
 
 Here are the relevant sections of httpd.conf:
 
 -
 LoadModule webapp_module modules/mod_webapp.so
 AddModule mod_webapp.c
 
 UseCanonicalName On
 
 NameVirtualHost 192.168.1.10
 
 VirtualHost 192.168.1.10
  DocumentRoot /home/user/public_html
  ServerName www.domain.com
  ServerAlias test.domain.com
  WebAppConnection conn warp localhost:8008
  WebAppDeploy mywebapp conn /go
 /VirtualHost
 -
 
 Ken Anderson
 
 
 Brian Bernardo wrote:
 
Can you send me your httpd.conf file then, because I still get the same
problem following your suggestion below.

Brian


-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 8:28 AM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

I just tried this, and it works!
Also, 'UseCanonicalName' is On.
Ken



Ken Anderson wrote:


h... have you tried Apache's ServerAlias Directive? I know this 
works with static content, but I'm not sure if mod_webapp respects it or 
not..

VirtualHost 192.168.1.1
ServerName blah1.blah.com

RE: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Brian Bernardo

First of all, I am very proficient with DNS; that was not the question.  I
want users who go to http://name.domain/webapps to have the same
webappdeployment as http://name2.domain/webapps.  It is important that
however they got there (domain prefix) be maintained throughout their
session.  This works fine for static content, but as soon as anyone goes to
http://name?.domain/webapps they get redirected over to
http://ServerName/webapps.  ServerName is defined within the apache
httpd.conf file (same with vitualhost name).  That is not good.  There has
to be a way to have either virtual hosts or some method for tomcat to serve
the same dynamic content regardless of how they got there without
redirecting.  

Any one know how to accomplish this?

B


-Original Message-
From: Joseph Molnar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 8:28 AM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

No. I use A and CNAMES depending on the situation.  Do you have proper
aliases set up in Apache?


Joe

- Original Message -
From: Oki DZ [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 2:28 AM
Subject: Re: tomcat/apache with ALIASES (Was canonical names)


On 04/25 15:33 Hamish Marson wrote:
 What you're using (Or trying to use)  is aliases... The DNS records (CNAME
 etc
 al) are named after what they point AT (or more accurately) resolve to.
Thus
 the CNAME record (Canonical name) points or resolves to the REAL name of
the
 host. (Literally, the dictionary term for canonical is the real one). Just
 like
 the A record resolves TO the address...

I think I have the same problems...
So, how do you set up virtual hosts in Tomcat?
I have tried to have Host ../ elements in a Tomcat service and I used
CNAMEs
in them. It seemed that any hosts in the service would resolve to the same
contexts contained in the service (even though I have supplied different
URLs;
ie: different FQDNs).

I guess the answer would be: just use A records (that point to the same IP
number). Is it correct...?

Oki

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



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

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




RE: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Brian Bernardo

While that technically works, it launches a separate tomcat instance within
the single JVM instance.  Watch the logs in catalina.out and you see that
for each WebAppDeploy line a new instance is launched.  This offers
functionality, but sharing resources is never a good idea if you want any
scalability.  This site is expected to get 550 concurrent sessions at any
time.  This will not work out in such a demanding environment.

Basically the line:

Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost  :bt1.domain.com

Suggests that tomcat launches using the one instance per targetHost.  If you
have one WebAppDeploy and regardless of how you got there (proxy,
mod_rewrite, virtual hosts etc) once you access any resource from the webapp
directory, you get forwarded to http://targetHost/webapp and you lose the
user supplied prefix (bad thing).

Any other suggestions out there?  There has to be a way to restrict (or add)
more than one targetHost for tomcat to allow several access methods.

Brian




-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 2:02 PM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

Does something like this work?

-
NameVirtualHost 192.168.1.1

VirtualHost 192.168.1.1
ServerName blah1.blah.com
DocumentRoot /blah
WebAppConnection conn  warp  localhost:8008
WebAppDeploy webappconn  /test
/VirtualHost

VirtualHost 192.168.1.1
ServerName blah2.blah.com
DocumentRoot /blah
WebAppConnection conn2  warp  localhost:8008
WebAppDeploy webappconn2  /test
/VirtualHost

Ken


Brian Bernardo wrote:
 First of all, I am very proficient with DNS; that was not the question.  I
 want users who go to http://name.domain/webapps to have the same
 webappdeployment as http://name2.domain/webapps.  It is important that
 however they got there (domain prefix) be maintained throughout their
 session.  This works fine for static content, but as soon as anyone goes
to
 http://name?.domain/webapps they get redirected over to
 http://ServerName/webapps.  ServerName is defined within the apache
 httpd.conf file (same with vitualhost name).  That is not good.  There has
 to be a way to have either virtual hosts or some method for tomcat to
serve
 the same dynamic content regardless of how they got there without
 redirecting.  
 
 Any one know how to accomplish this?
 
 B
 
 
 -Original Message-
 From: Joseph Molnar [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, April 25, 2002 8:28 AM
 To: Tomcat Users List
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)
 
 No. I use A and CNAMES depending on the situation.  Do you have proper
 aliases set up in Apache?
 
 
 Joe
 
 - Original Message -
 From: Oki DZ [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, April 25, 2002 2:28 AM
 Subject: Re: tomcat/apache with ALIASES (Was canonical names)
 
 
 On 04/25 15:33 Hamish Marson wrote:
 
What you're using (Or trying to use)  is aliases... The DNS records (CNAME
etc
al) are named after what they point AT (or more accurately) resolve to.
 
 Thus
 
the CNAME record (Canonical name) points or resolves to the REAL name of
 
 the
 
host. (Literally, the dictionary term for canonical is the real one). Just
like
the A record resolves TO the address...
 
 
 I think I have the same problems...
 So, how do you set up virtual hosts in Tomcat?
 I have tried to have Host ../ elements in a Tomcat service and I used
 CNAMEs
 in them. It seemed that any hosts in the service would resolve to the same
 contexts contained in the service (even though I have supplied different
 URLs;
 ie: different FQDNs).
 
 I guess the answer would be: just use A records (that point to the same IP
 number). Is it correct...?
 
 Oki
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



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

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




tomcat/apache with canonical names

2002-04-24 Thread Brian Bernardo


I am trying to use canonical names under apache 1.3.20 to work with tomcat
4.01.  Right now when I go to http://cname1.domain/webapps
http://cname1.domain/webapps  I get forwarded to http://servername/webapps
http://servername/webapps  where servername is the ServerName set within
the apache global config.  I want to be able to use canonical names with DNS
to send cname1, cname2 and cname3 to ServerName, but keep the user supplied
URL (usecanonicalname off).  With this setup static pages work great, but
tomcat supplied pages break:

http://cname1.domain/webapps http://cname1.domain/webapps   ends up being
redirected to http://servername/webapps http://servername/webapps 

Is there a way around this?  I really need to keep the user supplied domain
prefix (cname) their entire session.

This is running on a Solaris 8 box and here is my WebAppDeploy line.  It
appears to deploy under whatever the ServerName name is as its targetHost
and cannot deviate from that.  

IfModule mod_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy../../../../webapps   conn/webapps/
/IfModule

-Brian



Webappdeploy line help

2002-04-15 Thread Brian Bernardo

Help.

Is there a way to use tomcat to serve up from multiple urls within one
instance?  After starting apache I get an instance for every WebAppDeploy
line and I am not sure if this is bad or how much it effects
performance/scalability.

I have the following lines in my httpd.conf:

IfModule mod_webapp.c
WebAppConnection conn warp gumby.abilizer.com:8008
WebAppInfo   /webapp-info
WebAppDeploy../../webapp   conn/
WebAppDeploy../../webapp   conn /url1
WebAppDeploy../../webapp   conn /url2
WebAppDeploy../../webapp   conn /url3
/IfModule

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




RE: Webappdeploy line help

2002-04-15 Thread Brian Bernardo


Backround/Env info

Tomcat and Apache are running on physically different machines both on a
Solaris 8 sparc platform.  There is only one JVM instance running
(process) but after reading the catalina.out file I can see that the
installs/loads the jars all over again.  Once for each webappdeploy line.
My concern is scalability/performance and whether this is really bad or not.
Functionality is there, nothing is broken.

B


-Original Message-
From: Joseph Molnar [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 15, 2002 12:26 PM
To: Tomcat Users List
Subject: Re: Webappdeploy line help


I suggest managing your webapps from Tomcat instead of from Apache (ie put
the virtual 'links' there).  You do this buy managing 'contexts' in the
server.xml.

In terms of instances, are you using a Unix (and if so which one), or
Windows? On Linux, many of the instances you may see are actually threads,
not processes.



Joseph Molnar
http://www.codesta.com/



- Original Message -
From: Brian Bernardo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 12:15 PM
Subject: Webappdeploy line help


 Help.

 Is there a way to use tomcat to serve up from multiple urls within one 
 instance?  After starting apache I get an instance for every 
 WebAppDeploy line and I am not sure if this is bad or how much it 
 effects performance/scalability.

 I have the following lines in my httpd.conf:

 IfModule mod_webapp.c
 WebAppConnection conn warp gumby.abilizer.com:8008
 WebAppInfo   /webapp-info
 WebAppDeploy../../webapp   conn/
 WebAppDeploy../../webapp   conn /url1
 WebAppDeploy../../webapp   conn /url2
 WebAppDeploy../../webapp   conn /url3
 /IfModule

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



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

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




change a webapp's context

2002-04-10 Thread Brian K. Buckley

Hi all,

What must one do to change a webapp's context?

I initially deployed my webapp by dropping test.war into Tomcat's webapp
directory and it deployed properly.

After testing it out to my satisfaction, I wanted my users to access the
webapp by entering , http://www.example.com; instead of
http://www.example.com/test;, so I added this line to Tomcat's server.xml

Context path= docBase=test debug=0/

and removed the existing Context with path= and restarted Tomcat.  At
first it appeared to work but I quickly noticed a lot of flaky problems,
which went away when I undid the line and reverted back to the test
context.

What's the best way to change a webapp context?  Are there directories or
files to delete or move or any other suggestions?

Regards,
-Brian   (using Tomcat 4.0.4-b2-01)


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




RE: response.sendRedirect not redirecting

2002-03-17 Thread Brian Adams

add return; just after response.sendR.

-Original Message-
From: Mostafa Al-Mallawani [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 7:12 AM
To: 'Tomcat Users List'
Subject: response.sendRedirect not redirecting


Hi,
I have a problem with redirecting.  In my JSP page I keep checking for
errors, whenever I catch one, I set a variable on the session object and
then forward to an error page; this could happen up to 5 times in one
page.  The weird thing is, redirection works on some pages and does
absolutely nothing on some other pages.  Execution just passes over
response.sendRedirect(../error.jsp); like it doesn't even exist.
Please help, this is really frustrating.  Thanks.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 08, 2002 3:45 PM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?

The exception seems to be occurring because the Home servlet forwards
more
than once (to different locations) - first to home.jsp, then later to
the
Create servlet.
It is definitely the fact that it is forwarding to more than one place,
that
is causing the problem.  I know this because if I call the Login servlet
and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can
see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.
Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same
forwarding
mechanism (except to different servlets), and these give exactly the
same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException:
Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this
exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example)
from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has
already
been committed
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at
zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at
zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)

RE: Unix (Solaris) HTML Editor for Apache and Tomcat, Recommendations?

2002-03-10 Thread Brian Adams

netbaens! it will do that and more (java) when you are ready for servlets!
:)
www.netbeans.org


-Original Message-
From: C Cayetano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 10:25 PM
To: Tomcat Users List
Subject: Unix (Solaris) HTML Editor for Apache and Tomcat,
Recommendations?


All,

Does any have a suggestion of a good unix based HTML editor, similar to
Dreamweaver, that can handle the HTML WYSIWYG interface as well as the
ability to edit code for JSP scripting?

Thanks


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



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




RE: Tomcat 4 Realms and MySQL

2002-03-05 Thread Brian Owens

Apress publishing company has a book that deals with this topic called Apache 
Jakarta-Tomcat (I forget the authors name but if you go to Amazon.com you will find 
it).  Basically you define your mySQL schema into the Realm section for your virtual 
server.  Then you comment out the MemoryRealm, it doesn't work to have both defined.  
The book deals specifically with mySQL.  With the info in the book I was able to get 
mine working with PostgreSQL.  Good luck.

-Original Message-
From: John M. Hollingsworth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 Realms and MySQL

Hello. I would like to be able to use a MySQL table for my user authentication instead 
of the unencryptable tomcat-users.xml.  I have looked for this documentation, but have 
yet to find it.  Anyone have ideas/knowledge they care to impart?

John Hollingsworth


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



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




Re: Compiling mod_webapp.so ...

2002-03-04 Thread brian ally

'lo,

this warning may be ignored. The group that wrote mod_SSL needed to add 
some hooks into the server engine, and created the EAPI. The warning was 
added by them. BUT, most, if not all, modules do not depend on EAPI. 
 AFAIK, these changes haven't _officially_ been accepted.

The warning is showing up because you've installed the apache rpm, which 
was compiled by redhat with the -DEAPI flag. With the older mod_webapp, 
you didn't see it because, once again, it was an rpm. If you were to 
uninstall apache and compile from source you wouldn't see it. i see it 
because i'm running mod_SSL. i suggest you ignore it for now, keep your 
server as it is, and, if you get any weird crashes, try the deapi 
mod_webapp. There's a mod compiled with -DEAPI floating around at the 
jakarta site (but i can't remember the name/version).

/b

Julien OIX wrote:

Hi everyone,

Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've
done a snapshot from cvs to compile my own .so .
It seems that the bug has diseappered, but when I restart Apache, it
tells me :

Starting httpd: [Mon Mar  4 09:18:05 2002] [warn] Loaded DSO
modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash
under EAPI! (please recompile it with -DEAPI)


Here are the steps to compile :

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
jakarta-tomcat-connectors/webapp
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
apr

cd $SNAPSHOT/webapp

./support/buildconf.sh
./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/
make

and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/

does anyone know where to include the -DEAPI compiling flag ?

I'm using these RPM's on a Linux RedHat 7.1

apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
mod_bandwidth-2.0.3-2)

tomcat4-4.0.2-3

thanks in advance.

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

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





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




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread brian ally

Are you starting tomcat as root? On my linux box, if i su to root, all 
manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
dash). Could this be your problem?

/b

Abhishek Pamecha wrote:

it is there..

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path



First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

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


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





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




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread brian ally

i don't run as root; i think i misundertood/mixed up the situation with 
an earlier post or from wherever

/b

David Cassidy wrote:

Brian,

For a very large number of reasons it's probably best not to run
tomcat under the super user account...

You might want to try setting the LD_LIBRARY_PATH
env in your startup / shutdown scripts...

Or you might want to look at ldconfig ...

D


brian ally wrote:

Are you starting tomcat as root? On my linux box, if i su to root, all
manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
dash). Could this be your problem?

/b

Abhishek Pamecha wrote:

it is there..

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path



First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library.

regards,
Watanabe.

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


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


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



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





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




RE: Is this error?

2002-03-03 Thread Brian Adams

Hi,
this is not normal. looks like you had tomcat already running and you tried
to start it again.
tomcat was trying to bind port 8080 and it was already bound by something(in
this case tomcat). that is why you see your welcome page on 8080.
To stop this error make sure you are only starting tomcat once.

B

-Original Message-
From: Ryuji Yokoyama [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 10:16 AM
To: [EMAIL PROTECTED]
Subject: Is this error?


Hello All!

I just installed Tomcat4.0.3.  When I ran Tomcat.  I got following
exceptions.  However, Tomcat seems working.  I could see welcome page at
localhost:8080.  Is my Tomcat working correctly?  And what does mean these
exceptions?  How can I get rid of these expceptions?  I am using Tomcat
with Apache on Windows.

Thanks in advance.






Catalina.start: LifecycleException: null.open: java.net.BindException:
Address
already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in
use:
JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)





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



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




RE: Combining Apache, Tomcat, J2EE

2002-03-03 Thread Brian Adams

if the j2ee a container (app server)?
As far as tomcat goes there are two chioces you have, mod_jk (older)
mod_webapp(newer).
which you pick is up to you. the Apache mods are in you apache build and
there is a readme doc in the mod directory on how to setup the mod.
can't help with the j2ee servers that are running.
B

-Original Message-
From: Neal Brinn [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: Combining Apache, Tomcat, J2EE


I've manage to install Apache (with PHP), Tomcat 4, and J2EE 1.3 on Solaris
8.  Apache spawns one server, Tomcat spawns another, and J2EE spawns three
servers.  Is there anyway I can combine these five servers on the Apache
server?  This way I can use one single address to process php, jsp, and java
servlets.

Thanks,
Neal


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




RE: Is this error?

2002-03-03 Thread Brian Adams

Hi Again,
this is not normal. looks like you had tomcat already running and you tried
to start it again.
tomcat was trying to bind port 8080 and it was already bound by something(in
this case tomcat). that is why you see your welcome page on 8080.
To stop this error make sure you are only starting tomcat once.

B

-Original Message-
From: Ryuji Yokoyama [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 10:00 AM
To: [EMAIL PROTECTED]
Subject: Is this error?


Hello All!

I just installed Tomcat4.0.3.  When I ran Tomcat.  I got following
exceptions.  However, Tomcat seems working.  I could see welcome page at
localhost:8080.  Is my Tomcat working correctly?  And what does mean these
exceptions?  How can I get rid of these expceptions?  I am using Tomcat
with Apache on Windows.

Thanks in advance.






Catalina.start: LifecycleException: null.open: java.net.BindException:
Address
already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in
use:
JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)





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



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




RE: Apache 1.3.23 +Tomcat 4.0.2

2002-03-03 Thread Brian Adams

Hi David,
There is a two mods you can use.  mod_jk and mod_webapp.
webapp
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/webapp/

jk_mod
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/

also,
http://www.jguru.com/faq/Servlets is a great site for FAQ on tomcat.  Alex
sends us a list of QA posts on jguru

B

-Original Message-
From: David Maixner [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 8:50 AM
To: Tomcat Users List
Subject: Apache 1.3.23 +Tomcat 4.0.2


I want to ask where can I find new ducument about Apache+Tomcat-HOWTO,
because I only found this:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat/Attic/Tomcat%2bApache-HOWTO
?rev=1.4content-type=text/vnd.viewcvs-markup
and it is too old (for Tomcat 3.1). I need Tomcat runnig under Apache for my
school-work. In that document is only written something about mod_jserv (I
can't find this module) and something about /path/to/tomcat/etc/tomcat.conf
(but this file doesn't exist). Please help me, I need it as soon as
possible.
Thank you very very much for your answers,
David Maixner


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




Re: SSL Client authentication with standalone Tomcat

2002-03-02 Thread Brian Palmer

Wolfgang Stein [EMAIL PROTECTED] writes:

 As far as i understand the client-auth handshake,
 the server sends a list of trusted CAs to the client.
 
 This list is take from
 JAVA_HOME_set_in_your_tomcat\lib\security\cacerts
 So you have to import your CA-cert into that file,
 instead of your .keystore .
 There is no need to import the client cert into cacerts or keystore.

First, sorry for not responding earlier to this thread. My laptop died
and stopped my forward momentum for a few days.

This solved my problem; I had thought I needed to do something like
that, but hadn't known how, exactly. Thanks a lot!

-- 
Brian Palmer
Whoever fights monsters should see to it that in the process he does
not become a monster. And when you look long into an abyss, the abyss
also looks into you  - Nietzsche


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




RE: Can't make WebAppConectionWork

2002-03-01 Thread Brian Adams

Hi Daniel,
1. have you looked at the logs on apache and tomcat?
2. FYI, start tomcat first then start apache
3. there may be a bug that is affecting you (not sure)
when you restart try
http://localhost/examples/jsp/num/numguess.jsp

there are binary images(jpg) that would crash the web_app mod if you are
suffering from this bug.


B

-Original Message-
From: Daniel R Thomas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:36 PM
To: [EMAIL PROTECTED]
Subject: Can't make WebAppConectionWork


I've been trying to install tomcat4 onto my apache server today(windows
98).  I downloaded the executable installed and installed tomcat.  I then
ran it, and it worked at port 8080 of my machine.  I then downloaded the
mod_webapp package and installed it as per its instructions.  I then added
the following 4 lines to my httpd.conf file
LoadModule webapp_module modules/mod_webapp.so
AddModule_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

to attemp to access the examples directory in the tomcat intallation
folder.  after restarting both servers, I am gettting a 404 on
myServer/examples/  is there something I'm forgetting to do?
Thanks


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



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




Custom 404 Page

2002-02-27 Thread Brian Owens

How do I set an ErrorDocument-like directive in Tomcat?  I have a custom 404 page 
setup in my Apache httpd.conf file, but when users enter a URL for a file not on my 
website they get the standard Apache-Tomcat 404 page.  For example, instead of going 
to /index.html (which is a valid file), I type /ind (which is not a valid file).  I 
don't think this is the same as the welcome file since I think that only refers to no 
filename being supplied.  In my case an invalid filename is supplied.  I'm running 
Apache 1.3.20 and Tomcat 4.0.2.

Thanks,
Brian



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




RE: mySQL/JDBC/Tomcat4 documentation

2002-02-27 Thread Brian Owens

Sometimes with certain JDBC Drivers you must do a 
Class.forName(driver).newInstance() for it to load properly.

Brian

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:04 PM
To: 'Tomcat Users List'
Subject: RE: mySQL/JDBC/Tomcat4 documentation

Right at line 2 in your code is were we are having trouble. Apparenlty our
code is written the same way, but it still doesn't seem like the JDBC driver
has loaded:

java.sql.SQLException: org.gjt.mm.mysql.Driver

The driver is in the WEB-INF/lib/ directory.

Is there a config file that needs to allow permissions for this?

-Original Message-
From: DingHui [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 6:34 PM
To: Tomcat Users List
Subject: Re: mySQL/JDBC/Tomcat4 documentation


The following code demonstrate how to initilize MYSQL JDBC driver.

try {
   Class.forName(org.gjt.mm.mysql.Driver);
  } catch (ClassNotFoundException e) {
   System.out.println(e);
  }

  try {
   Connection con =
DriverManager.getConnection(jdbc:mysql://localhost/mydata, username,
password);
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery(SELECT NAME FROM TEST);
  // Display the SQL Results
 while(rs.next()) {
  System.out.println(rs.getString(NAME));
  }

  // Make sure our database resources are released
  rs.close();
  stmt.close();
  con.close();
   }catch (SQLException se) {
  // Inform user of any SQL errors
   System.out.println(SQL Exception:  + se.getMessage());
   se.printStackTrace(System.out);
   }
- Original Message -
From: Steve Madonna [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 8:38 AM
Subject: mySQL/JDBC/Tomcat4 documentation


 Anyone know were I can get some documentation on installing
 mm.mysql-2.0.4-bin.jar file? I keep getting that not sutible driver
error
 everyone keeps talking about.

 Thx in advance.

 -Steve




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




RE: tomcat 4.0 and soap 2.2

2002-02-27 Thread Brian Owens

I use JDK 1.4 with tomcat 4.0.2 with no problems, SOAP 2.2 too.

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:00 PM
To: Tomcat Users List
Subject: RE: tomcat 4.0 and soap 2.2

sure
hmm no well tomcat 4.02 I think works with jdk 1.4.
both work with soap 2.2.

hope it helps

[EMAIL PROTECTED]

 -Original Message-
 From: Joo Park [mailto:[EMAIL PROTECTED]]
 Sent: 27. febrúar 2002 22:02
 To: [EMAIL PROTECTED]
 Subject: tomcat 4.0 and soap 2.2


 Hello,

 Will Tomcat 4.0 work with soap 2.2?  And also, will tomcat
 4.0 work with jdk 1.4?

 thanks in advance!


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



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




RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread Brian Adams

Look in the logs directory and tell us what is happening. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:17 AM
To: [EMAIL PROTECTED]
Subject: Stupid Tomcat Question (NEWBIE!)




Hi,

I've recently downloaded and installed Tomcat 4.0.1 onto my Apache webserver
and
everything seemed to be working ok for a week or so...

However, the problem now is that Tomcat appears to have died on me!  Whenver
I
try to view

http://www.dpt-ltd.co.uk:8180/index.html

then nothing happens.  My  browser just sits there trying to open the page,
but
strangely it never times out.  I've tried stopping and restarting the Tomcat
service several times but it doesn't make any difference.  I've also tried
using
 port 8080 and again it doesn't help.

I know this is a very vague question, but do you have any idea what could be
wrong?  Is there any debugging I could do other than continually restarting
the
service?  Are there any log files I could look at which might help?  It
seems
strange that this worked fine up until recently and as far as I know I've
made
no
changes whatsoever to my Tomcat configuration.

Sorry if this is a dumb question but I'm new to all this.  Please reply
off-list
 if at all possible.

Thanks in advance.



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

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




RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread Brian Adams

freaken look at them!
This ain't yo mommas listserve!
delete them all start it once then see what files are generated.
open them and READ!


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:24 AM
To: Tomcat Users List
Subject: RE: Stupid Tomcat Question (NEWBIE!)




The following files all appear under my var/tomcat4/logs directory.  Which
file(s) are of interest.?

catalina_log.2002-01-18.txt
www.dpt-ltd.co.uk_access_log.2002-02-22.txt
catalina_log.2002-02-07.txt
www.dpt-ltd.co.uk_examples_log.2002-01-18.txt
catalina_log.2002-02-13.txt
www.dpt-ltd.co.uk_examples_log.2002-02-07.txt
catalina_log.2002-02-19.txt
www.dpt-ltd.co.uk_examples_log.2002-02-13.txt
catalina_log.2002-02-20.txt
www.dpt-ltd.co.uk_examples_log.2002-02-14.txt
catalina_log.2002-02-21.txt
www.dpt-ltd.co.uk_examples_log.2002-02-15.txt
catalina_log.2002-02-22.txt
www.dpt-ltd.co.uk_examples_log.2002-02-19.txt
catalina_log.2002-02-25.txt
www.dpt-ltd.co.uk_examples_log.2002-02-20.txt
catalina.out
www.dpt-ltd.co.uk_examples_log.2002-02-21.txt
localhost_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_examples_log.2002-02-22.txt
localhost_examples_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-01-18.txt
localhost_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-07.txt
www.dpt-ltd.co.uk_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-13.txt
www.dpt-ltd.co.uk_access_log.2002-02-07.txt
www.dpt-ltd.co.uk_log.2002-02-19.txt
www.dpt-ltd.co.uk_access_log.2002-02-13.txt
www.dpt-ltd.co.uk_log.2002-02-20.txt
www.dpt-ltd.co.uk_access_log.2002-02-19.txt
www.dpt-ltd.co.uk_log.2002-02-21.txt
www.dpt-ltd.co.uk_access_log.2002-02-20.txt
www.dpt-ltd.co.uk_log.2002-02-22.txt
www.dpt-ltd.co.uk_access_log.2002-02-21.txt





Brian Adams [EMAIL PROTECTED] on 25/02/2002 12:21:28

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   'Tomcat Users List' [EMAIL PROTECTED]
cc:(bcc: James Reid/DPT-LTD)

Subject:  RE: Stupid Tomcat Question (NEWBIE!)




Look in the logs directory and tell us what is happening.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:17 AM
To: [EMAIL PROTECTED]
Subject: Stupid Tomcat Question (NEWBIE!)




Hi,

I've recently downloaded and installed Tomcat 4.0.1 onto my Apache webserver
and
everything seemed to be working ok for a week or so...

However, the problem now is that Tomcat appears to have died on me!  Whenver
I
try to view

http://www.dpt-ltd.co.uk:8180/index.html

then nothing happens.  My  browser just sits there trying to open the page,
but
strangely it never times out.  I've tried stopping and restarting the Tomcat
service several times but it doesn't make any difference.  I've also tried
using
 port 8080 and again it doesn't help.

I know this is a very vague question, but do you have any idea what could be
wrong?  Is there any debugging I could do other than continually restarting
the
service?  Are there any log files I could look at which might help?  It
seems
strange that this worked fine up until recently and as far as I know I've
made
no
changes whatsoever to my Tomcat configuration.

Sorry if this is a dumb question but I'm new to all this.  Please reply
off-list
 if at all possible.

Thanks in advance.



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

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








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

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




RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread Brian Adams

this snippet--
BindException:
Address (at that port) is already in use.
Looks like it may be the port where your mod_webapp is running.
check all your ports and that tomcat is configured for and make certain that
there is not something already running.
ports:
8080
8009
8008
I think are some of the default ports use by tomcat.
look in your conf/server.xml file and search through it for the word port.
should be several instances of this usage.
FYI, netstat is the command used to check for port usage (in case you don't
know). 'netstat -a' should give you a full output of all your ports in use
(Bound).
B



--
means that the address is already in use

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:54 AM
To: Tomcat Users List
Subject: RE: Stupid Tomcat Question (NEWBIE!)




Thanks for your words of encouragement.  I've deleted all the files and
restarted the service, and the following appears in catalina.out.  Does it
give
any clues, and what do I do to resolve the problem?

Catalina.start: LifecycleException:  Error creating server socket:
java.net.BindException: Address already in use
LifecycleException:  Error creating server socket:  java.net.BindException:
Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java)
at org.apache.catalina.startup.Catalina.start(Catalina.java)
at org.apache.catalina.startup.Catalina.execute(Catalina.java)
at org.apache.catalina.startup.Catalina.process(Catalina.java)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java)

at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java)
at org.apache.catalina.startup.Catalina.start(Catalina.java)
at org.apache.catalina.startup.Catalina.execute(Catalina.java)
at org.apache.catalina.startup.Catalina.process(Catalina.java)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)





Brian Adams [EMAIL PROTECTED] on 25/02/2002 12:29:50

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   'Tomcat Users List' [EMAIL PROTECTED]
cc:(bcc: James Reid/DPT-LTD)

Subject:  RE: Stupid Tomcat Question (NEWBIE!)




freaken look at them!
This ain't yo mommas listserve!
delete them all start it once then see what files are generated.
open them and READ!


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:24 AM
To: Tomcat Users List
Subject: RE: Stupid Tomcat Question (NEWBIE!)




The following files all appear under my var/tomcat4/logs directory.  Which
file(s) are of interest.?

catalina_log.2002-01-18.txt
www.dpt-ltd.co.uk_access_log.2002-02-22.txt
catalina_log.2002-02-07.txt
www.dpt-ltd.co.uk_examples_log.2002-01-18.txt
catalina_log.2002-02-13.txt
www.dpt-ltd.co.uk_examples_log.2002-02-07.txt
catalina_log.2002-02-19.txt
www.dpt-ltd.co.uk_examples_log.2002-02-13.txt
catalina_log.2002-02-20.txt
www.dpt-ltd.co.uk_examples_log.2002-02-14.txt
catalina_log.2002-02-21.txt
www.dpt-ltd.co.uk_examples_log.2002-02-15.txt
catalina_log.2002-02-22.txt
www.dpt-ltd.co.uk_examples_log.2002-02-19.txt
catalina_log.2002-02-25.txt
www.dpt-ltd.co.uk_examples_log.2002-02-20.txt
catalina.out
www.dpt-ltd.co.uk_examples_log.2002-02-21.txt
localhost_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_examples_log.2002-02-22.txt
localhost_examples_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-01-18.txt
localhost_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-07.txt
www.dpt-ltd.co.uk_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-13.txt
www.dpt-ltd.co.uk_access_log.2002-02-07.txt
www.dpt-ltd.co.uk_log.2002-02-19.txt
www.dpt-ltd.co.uk_access_log.2002-02-13.txt
www.dpt-ltd.co.uk_log.2002-02-20.txt
www.dpt-ltd.co.uk_access_log.2002-02-19.txt
www.dpt-ltd.co.uk_log.2002-02-21.txt
www.dpt-ltd.co.uk_access_log.2002-02-20.txt
www.dpt-ltd.co.uk_log.2002-02-22.txt
www.dpt-ltd.co.uk_access_log.2002-02-21.txt





Brian Adams [EMAIL PROTECTED] on 25/02/2002 12:21:28

Please respond to Tomcat Users List [EMAIL

RE: JSP Taglib Explanation please

2002-02-24 Thread Brian Adams

Pavel I have tons of taglibs on my app and it does not go through it twice.
it actually runs the code twice?


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 9:21 AM
To: Tomcat User
Subject: JSP Taglib Explanation please


Hello everyone,

Is there anyone here that helped develop the JSP Tag concept
that could explain why JSP taglib bodies go through their 
bodies twice (going through doStartTag, doAfterBody and doEndTag twice)?

This would be extremely helpful for me so I can understand
how to proceed with certain applications.

Thank you

Paul

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



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




RE: Tomcat 4 and Apache

2002-02-24 Thread Brian Adams

Kristian,
Here are my files... look at them and see if you can find yours..
I am not running Virtual hosts but I have hooks into both mod_jk and
mpd_webapp (currently I only use mod_jk).
see if this helps.
I think I am using examples and a webapp named bbb.
Goodluck,
B

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 and Apache


 I'm treading in quicksand here. But did you add the JkMount statements? I
 was getting the a similar error Can't locate API module
 structure... with
 mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
 Maybe I'm wrong. Just trying to help :-)

No, that's not the problem either - I get the Can't locate... error with
mod_jk, I get Invalid virtual host name errors with mod_webapp.

Thanks anyway =)
Kristian


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



!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Uncomment this entry to enable JMX MBeans support --
!--
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 port=-1 login=admin password=admin/
--

  !-- Global JNDI resources --
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --

   !-- Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=false
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
   --

!-- Define an AJP 1.3 Connector on port 8009 --

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/


!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--

RE: Tomcat 4 and Apache

2002-02-23 Thread Brian Adams

Hi Kristian,
I think I see the problem.
you do NOT need the line:
AddModule mod_jk.c


I have seen this error before and I am no connection geek but I thought this
line was not needed for mod_jk and I cchecked with my config and myne does
not have it either.

Goodluck,
brian

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and Apache


Hi everyone,

I'm sorry that I'm probably the 100th person to ask this, but I have
searched google groups and the archives of this mailing list, both of which
failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.

I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
gives me the following error:
Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
Can't locate API module structure `mod_jk' in file
c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
wurde nicht gefunden:

The last bit translates to The specified procedure was not found. The
relevant lines in my httpd.conf are
LoadModule mod_jk modules/mod_jk.dll
AddModule mod_jk.c

I had more luck with mod_webapp, which loads properly using these lines:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008

But when I add either (or both) of these lines
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

apache -t gives me the following error:
C:\Programme\Wamp\Apacheapache -t
Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
Invalid virtual host name

where in line 256 is either one (or the first of)
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

I have found out that other users had this problem when their ServerName
directive was commented out in their httpd.conf, and I have tried that
already, without luck.

Does anybody have an idea how to solve this problem?

Thank you very much
Kristian


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



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




RE: New bie problem about Tomcat

2002-02-23 Thread Brian Adams

the service in not supposed to be called at init load time.  notice the
request response parameters in it.  this is called by http get or post
don't know why it loads twice..
B

-Original Message-
From: Krishna Bhamidi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: New bie problem about Tomcat


Hi,

I have a problem about a servlet that I want to start on load of Tomcat. I
included into the web.xml for the application under the on-load.

The init method of the servlet is called two times, but not the service
method of the servlet. I am not sure why the init method should get called 2
times?

We are using Tomcat 4.0 on Apache. What do we do to execute a servlet on
web-server startup?

Krishna.



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




TC 3.2.x work with JDK1.4

2002-02-22 Thread Brian Radovich

Howdy

Does anyone know if Tomcat 3.2.3 or 3.2.4 will work with j2se1.4?

Thanks

Brian

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




RE: What should I do?

2002-02-21 Thread Brian Adams

number 2.  
I had problems with tomcat locking up and I changed to jk_mod.
I have been running for months now. :)
goodlick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 12:12 PM
To: [EMAIL PROTECTED]
Subject: What should I do?


I've had big problems with my project and found that when I alleviate apache
and mod-webapp, the problem goes away (using the browser to talk to tomcat
on port 8080).  So my question is what to do now.

Bearing in mind that my server runs win2k, should I:
1) Continue without an HTTP frontend to Tomcat?  Is that bad?
2) Use a different connector besides mod-webapp?
3) use a different HTTP frontend such as IIS with another
connector/redirector?

The problem I'm trying to solve is the crashing of apache or mod-webapp
when it gets 2 simultaneous requests.
-- 




__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


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

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




RE: mod_jk for Windows -- HELP

2002-02-21 Thread Brian Adams

going to bed but here is my windows 2k tomcat 4.0.1 and apache 1.3.2ish
mod_jk conf files.
goodluck
B


-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 10:24 PM
To: Tomcat Users List
Subject: mod_jk for Windows -- HELP


I'm using Apache 1.3.20 and Tomcat 4.0.2. I've tried
my level best to make mod_webapp work for me. But I
had very little luck to make it run, Apache couldn't
find many static files!

I heard mod_jk is another (probably, a better) option.
Can some body direct me to a link where I can find the
appropriate documentation of mod_jk for Windows.

Thanks in advance.

-Surya

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




workers.properties
Description: Binary data

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Uncomment this entry to enable JMX MBeans support --
!--
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 port=-1 login=admin password=admin/
--

  !-- Global JNDI resources --
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --

   !-- Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=false
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
   --

!-- Define an AJP 1.3 Connector on port 8009 --

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/


!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector 

RE: Tomcat as a service...

2002-02-19 Thread Brian Adams

Kevin, have you set the service to Allow service to interact with desktop?
it is on the Log On panel if you right click your catalina service in the
services window.  this may help see what the heck windows is doing. 
Sorry if you've done this already...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 7:51 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service...



One other thing... I have tried now, every now and then over
the past 6 months to get Tomcat to run as an NT service.
I have NEVER been sucessful and I have tried 4 or 5 different
ways.  I kept thinking that there was some silly bug that was going
to be fixed in the next release.  Well, I just installed the Tomcat 4.0.2
exe file, and during the install, checked the option to install as NT
service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
set properly, and reboot, and ONCE AGAIN, no tomcat service.
The service is listed in the Admin Services console as being
automatically started, but it wont actually start.  When I try to start it
manually from the services panel, I get this message, Could not
start Tomcat on local computer.  The service did not return an error.
Could be windows internal error or internal error.  If there was no error
returned, then why WONT IT START   And if there was an error,
why not REPORT IT.  How about telling the user what is wrong so that
he/she can fix it.  Duh. Sorry to be so brash, but it has been this way
for a long time and noone seems to care about fixing it.
 -Kevin Schmidt
 Cincinnati, OH




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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

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




RE: Tomcat as a service...

2002-02-19 Thread Brian Adams

what was the output?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 8:09 AM
To: Tomcat Users List
Subject: RE: Tomcat as a service...




No, I didnt know about that flag.  I tried it though, and it doesnt seem to
help anything.
 -Kevin





Brian Adams [EMAIL PROTECTED] on 02/19/2002 08:57:21 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   'Tomcat Users List' [EMAIL PROTECTED]
cc:
Subject:  RE: Tomcat as a service...


Kevin, have you set the service to Allow service to interact with
desktop?
it is on the Log On panel if you right click your catalina service in the
services window.  this may help see what the heck windows is doing.
Sorry if you've done this already...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 7:51 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service...



One other thing... I have tried now, every now and then over
the past 6 months to get Tomcat to run as an NT service.
I have NEVER been sucessful and I have tried 4 or 5 different
ways.  I kept thinking that there was some silly bug that was going
to be fixed in the next release.  Well, I just installed the Tomcat 4.0.2
exe file, and during the install, checked the option to install as NT
service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
set properly, and reboot, and ONCE AGAIN, no tomcat service.
The service is listed in the Admin Services console as being
automatically started, but it wont actually start.  When I try to start it
manually from the services panel, I get this message, Could not
start Tomcat on local computer.  The service did not return an error.
Could be windows internal error or internal error.  If there was no error
returned, then why WONT IT START   And if there was an error,
why not REPORT IT.  How about telling the user what is wrong so that
he/she can fix it.  Duh. Sorry to be so brash, but it has been this way
for a long time and noone seems to care about fixing it.
 -Kevin Schmidt
 Cincinnati, OH




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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

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







--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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

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




HTTP Redirect, Mime Type, and IE

2002-02-18 Thread Brian O'Kelley

I apologize if this has already been answered.. I've looked around and
can't find anything that works.
 
I have a servlet, coming through Tomcat, that spits out PDF using FOP.
So far so good.
However, it requires the user to login first. If the user isn't logged
in, it redirects the user to an HTML page.
 
If I login, go to the page and generate a PDF file, then things are
fine. Up pops Acrobat.
If I then restart Tomcat to zap the session, and hit refresh, I see the
redirect happen on the server side, but IE pops up with an error. It
just shows a little broken image picture. I can do a view source, and I
see
htmlbody leftmargin=0 topmargin=0 scroll=no embed width=100%
height=100% fullscreen=yes src=
http://192.168.1.1/servlet/blah?blah=20 
http://192.168.1.1/servlet/blah?blah=20;/body/html
 
Any ideas on what's happening here? I was speculating that it was
ignoring the redirect, since I don't see the second request come into
Tomcat. So what's the deal? 
 
Thanks in advance,
Brian



Newbie can't run own JSP in Tomcat (404 - File Not Found)

2002-02-17 Thread Brian Peasland

Hello,

I'm running the following:

Tomcat 3.3 w/ JDK 1.4.0
Microsoft IIS 5.0

I installed Tomcat as per the directions in Tomcat IIS HowTo. When I go
to http://localhost:8080, I can get to the installed JSP examples. They all
appear to run fine. So this tells me that Tomcat is up  running just fine.

Now I wish to run one of my own, albeit simple JSP pages that connects to a
database and displays the results. When I try to load my JSP page in my
browser, I get the 404 - File Not Found error message. I know that I've got
the proper path to the JSP page. In my Tomcat window, I see the following
error messages:

Ctx() : Class not found: TOMCAT/JSP/dw/tkbrowse2/employees.jsp
Ctx() : Status code: 404 request:R(   +  /dw/tkbrowse2/employees.jsp +
null) msg:null

This tells me that it can find the class I'm referencing in my JSP page.
The only class in my JSP page is java.sql.*. I've added my jar files to my
CLASSPATH environment variable for this class, but it still can't find it.
Any ideas?

Thanks,
Brian


==
Brian Peasland - Database Administrator
Raytheon Systems Company
USGS - EROS Data Center
Sioux Falls, SD 57198
Phone: (605) 594-2742
Fax: (605) 594-2525
Email: [EMAIL PROTECTED]


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




RE: resource files not found in /WEB-INF/classes

2002-02-13 Thread Brian Adams

thanks Craig that is a much cleaner way!  I am adding this to my app and to
my helpful hints folder :)
B

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 10:15 PM
To: Tomcat Users List
Subject: Re: resource files not found in /WEB-INF/classes


See below.

On Tue, 12 Feb 2002, Michael Kintzer wrote:

 Date: Tue, 12 Feb 2002 18:56:38 -0800
 From: Michael Kintzer [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
 Subject: resource files not found in /WEB-INF/classes

 Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
 webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
 associated resource files required for an application mywebapp.  I have
 placed a properties file config.properties in my /WEB-INF/classes/
 directory but when I try to access it using this code:

 package com.myco.myproj

 .. imports and other code...

 try
 {
   File f = new File(config.properties);
   FileInputStream fis = new FileInputStream(f);
   Properties prop = new Properties();
   prop.load(fis);
 }
 catch (Exception e)
 {
   e.printStackTrace();
 }

 I continually get java.io.FileNotFoundException: config.properties (The
 system cannot find the file specified).

 I even tried adding a context element in my conf/server.xml file for my
web
 app like so:

 !-- myproj context --
   Context path=/myproj docBase=myproj debug=0 reloadable=true
 /

 but that had no effect.I've searched through all the documentation I
 could find and it all seems to indicate that any resource files in
 /WEB-INF/classes should be detectable.  Any ideas on what I may be doing
 incorrectly would be greatly appreciated.

 Thanks,


 Michael Kintzer

There are two issues here that I'd like to address:

* How do I make File I/O work for this kind of thing?

* What's a more portable way to do this?

For the first answer, the thing you have to remember is that relative
pathnames like config.properties are resolved, by the file i/o routines
of Java or any other language, against the current working directory of
the application you are running (Tomcat, in this case).  You can't count
on *anything* about where that really is, because it depends on how Tomcat
is initially started (and which version you are running).  BUT, you can do
this right if you compute the path relative to the base directory of your
webapp, like this:


File docBase = new File(getServletContext().getRealPath());
File f = new File(docBase, /WEB-INF/classes/config.properties);
FileInputStream fis = new FileInputStream(f);

Will this work?  Yes -- but only sometimes.  What happens if you configure
Tomcat to run your webapp directly from a WAR file (or you need to migrate
to an application server that does not support running webapps from
unpacked directories)?  Then, you are in trouble, because getRealPath()
will return null.

There are two approaches that work just fine at this point:

* Use ServletContext.getResourceAsStream().  This call is guaranteed
  to work on any servlet container, regardless of how it internally
  represents your webapp:

String path = /WEB-INF/classes/config.properties;
InputStream is =
  getServletContext().getResourceAsStream(path);

  This call works because the context-relative path is resolved by
  the container -- and it's required to work in all circumstances.

  Note that you can even use this approach to read things like the
  web.xml file at run time, if you wanted to:

InputStream is =
  getServletContext().getResourceAsStream(/WEB-INF/web.xml);

  Struts needs to do this (as an example use case) because it needs to
  know what servlet mappings you are using, and there is nothing in the
  Servlet API that makes this information available to a webapp.

* The fact that you are willing to put this file into the /WEB-INF/classes
  subdirectory means that you can rely on a similarly-named method
  provided by the JDK:

String path = config.properties;
InputStream is =
  this.getClass().getClassLoader().getResourceAsStream(path);

  This call works because it uses the capability of JDK class loaders
  to find resources that are included in the class path of your web
  application -- even if they are inside a JAR file.  It is particularly
  useful for configuring class libraries that might also be used outside
  of a web application environment, but it works here as well because the
  /WEB-INF/classes directory is always made visible to the class loader
  for your web application.

Bottom line: *PLEASE* avoid the use of file I/O to access
resources inside your web applications.  This is only going to cause you
portability grief later on.  You should get in the habit, from the very
beginning, of using the APIs that are made available to access
inside-the-webapp resources in a portable 

RE: database connect to db overr mod_webapp - possible bug

2002-02-12 Thread Brian Adams

can we see the errors?

-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:26 AM
To: Tomcat Users List
Subject: database connect to db overr mod_webapp - possible bug


Hi

I have a JSP which,when called direct into Tomcat (4.0.1) on Linux works
fine. It connects to a database, retrieves results, fine.

http://host_a:8080/ism/JSP/file.jsp?param1=valueparam2=value

host_a is a vrtual host defined in my apache config and in the DNS servers
on our LAN.

In the virtual host setting of Apache, I have 

WebAppConnection coni warp localhost:8008
WebAppDeploy ism   coni/ism/

Static pages,servlets and JSP are fine across mod_webapp. However, when I
try my database JSP, I get errors. This code is in the JSP when I go through
8080 and it WORKS, it connects to the DB and all goes 
OK. So my configuration of the jdbc/IsmDB must be OK. I created the JDBC
datasources as outlined at the Tomcat website.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
javax.sql.DataSource ds = (javax.sql.DataSource)envCtx.lookup(jdbc/IsmDB);
Connection conn = ds.getConnection();

However, when I connect to the page via Apache, the third line fails the
connection to the database fails. I replace those 4 lines with the following
and it works.

String sConn   = jdbc:oracle:thin:@ip:port:sid; // connnection string
DriverManager.registerDriver( new oracle.jdbc.driver.OracleDriver() );
Connection conn=DriverManager.getConnection( sConn, user, password );
Statement stmt= conn.createStatement();

So have I missed some configuration to make the database connection work
over mod_webapp or is this a bug ?

Thanks


Chris



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

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




RE: RE: database connect to db overr mod_webapp - possible bug

2002-02-12 Thread Brian Adams

Well, I can't tell you if it is a mod_webapp bug or not but if it was e I
would switch to mod_jk instead of mod_webapp and try it again.  mod_webapp
has had other problems but I hae not seen this one (not that I have really
looked).  can you switch to mod_jk and try it again?
B

-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:40 AM
To: Tomcat Users List
Subject: Re: RE: database connect to db overr mod_webapp - possible bug


Hi

can we see the errors?

Wow - fast response. Thank-you. Iactually just noticed that someone else
found the exact same thing. He got no replies.

http://groups.google.com/groups?q=mod_webapp+JDBChl=enselm=7774774d.010919
1826.5240aa0%40posting.google.comrnum=1

On the web page,I see this;

java.lang.NullPointerException
at org.apache.jsp.ism$jsp._jspService(ism$jsp.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)


The errors  in the apache log file in $CATALINA_HOME/logs are as follows:

2002-02-12 13:10:16 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp
 threw exception
java.lang.NullPointerException
at
org.apache.jsp.ismResult_0005fn$jsp._jspService(ismResult_0005fn$jsp.
java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
82)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)


Thanks


Chris


-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 

RE: File upload problem

2002-02-12 Thread Brian Adams

it can be a bug or not...
If you have tomcat running in stand alone(localhost:8080) as well as webapp
you can test the servlet by connecting directly to tomcat and see if it
works if it does, then you are probably affected by a webapp bug(the one you
read about)
B

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:36 PM
To: Tomcat Users
Subject: File upload problem


Hi all:

I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
MultipartWrapper Class to parse multipart-form-data encoding. The problem is
that the next exception is thrown when I try to upload a file:

java.io.IOException: unexpected end of part
at
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
at
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)

Sometimes the file is uploaded but it's broken because the size isn't well,
it less than the original. I have read in the list that there was a bug int
the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
tomcat and apache. Is this a bug? How can I solve the problem?

Than you all.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España




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

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




RE: File upload problem

2002-02-12 Thread Brian Adams

yes, well if you can't fix the bug try two things:
1. upgrade to 4.0.2 and try again
2. switch to mod_jk instead of mod_webapp.
goodluck,
B

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:01 PM
To: Tomcat Users List
Subject: Re: File upload problem


Hi:

If I upload the files running tomcat stand alone all work fine. That's the
reason to think is a connector problem, but I don't  know how can I solve it
or if exists a version of the connector that the repair the bug. I need
help.

Thanks.
-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España



- Original Message -
From: Brian Adams [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 8:32 PM
Subject: RE: File upload problem


 it can be a bug or not...
 If you have tomcat running in stand alone(localhost:8080) as well as
webapp
 you can test the servlet by connecting directly to tomcat and see if it
 works if it does, then you are probably affected by a webapp bug(the one
you
 read about)
 B

 -Original Message-
 From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 12, 2002 1:36 PM
 To: Tomcat Users
 Subject: File upload problem


 Hi all:

 I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
 MultipartWrapper Class to parse multipart-form-data encoding. The problem
is
 that the next exception is thrown when I try to upload a file:

 java.io.IOException: unexpected end of part
 at

com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
 at

com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)

 Sometimes the file is uploaded but it's broken because the size isn't
well,
 it less than the original. I have read in the list that there was a bug
int
 the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
 tomcat and apache. Is this a bug? How can I solve the problem?

 Than you all.

 -
 Miguel Ángel Medina López
 Logic Factory: www.logic-factory.com
 Granada - España




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

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


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

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




RE: resource files not found in /WEB-INF/classes

2002-02-12 Thread Brian Adams

try putting

File f = new File(webapps/mywebapp/WEB-INF/classes/config.properties);

or
File f = new File(../webapps/mywebapp/WEB-INF/classes/config.properties);
(in case path is in bin from startup)

BTW, I put mine in WEB-INF only not in classesbut that is me and I am
not a standard. :)




-Original Message-
From: Michael Kintzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 8:57 PM
To: Tomcat Users List (E-mail)
Subject: resource files not found in /WEB-INF/classes


Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
associated resource files required for an application mywebapp.  I have
placed a properties file config.properties in my /WEB-INF/classes/
directory but when I try to access it using this code:

package com.myco.myproj

.. imports and other code...

try
{
File f = new File(config.properties);
FileInputStream fis = new FileInputStream(f);
Properties prop = new Properties();
prop.load(fis);
}
catch (Exception e)
{
e.printStackTrace();
}

I continually get java.io.FileNotFoundException: config.properties (The
system cannot find the file specified).

I even tried adding a context element in my conf/server.xml file for my web
app like so:

!-- myproj context --
Context path=/myproj docBase=myproj debug=0 reloadable=true
/

but that had no effect.I've searched through all the documentation I
could find and it all seems to indicate that any resource files in
/WEB-INF/classes should be detectable.  Any ideas on what I may be doing
incorrectly would be greatly appreciated.

Thanks,


Michael Kintzer




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




RE: resource files not found in /WEB-INF/classes

2002-02-12 Thread Brian Adams

stop start the tomcat process and truy again :)
if (works)
 unitTestingPassed = true;
else
 unitTestingPassed = false;

:)


-Original Message-
From: Michael Kintzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 9:22 PM
To: 'Tomcat Users List'
Subject: RE: resource files not found in /WEB-INF/classes


Thanks Brian.  I went through and tried all of:

File f = new File(../webapps/mywebapp/WEB-INF/classes/config.properties);
File f = new File(webapps/mywebapp/WEB-INF/classes/config.properties);
File f = new File(mywebapp/WEB-INF/classes/config.properties);
File f = new File(WEB-INF/classes/config.properties);
File f = new File(classes/config.properties);
File f = new File(config.properties);

on separate iterations.  The first five threw exceptions, and the last one
worked, which blew my mind, since that was what I had originally (and it
wasn't working, hence the original email).   Something getting cached
somewhere?  I use Tomcat Manager to reload the application each time I
redeploy the files.

It's working, but I don't trust it to stay that way.

Michael

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:02 PM
To: Tomcat Users List
Subject: RE: resource files not found in /WEB-INF/classes


try putting

File f = new
File(webapps/mywebapp/WEB-INF/classes/config.properties);

or
File f = new
File(../webapps/mywebapp/WEB-INF/classes/config.properties);
(in case path is in bin from startup)

BTW, I put mine in WEB-INF only not in classesbut that is me and I am
not a standard. :)




-Original Message-
From: Michael Kintzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 8:57 PM
To: Tomcat Users List (E-mail)
Subject: resource files not found in /WEB-INF/classes


Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
associated resource files required for an application mywebapp.  I have
placed a properties file config.properties in my /WEB-INF/classes/
directory but when I try to access it using this code:

package com.myco.myproj

.. imports and other code...

try
{
File f = new File(config.properties);
FileInputStream fis = new FileInputStream(f);
Properties prop = new Properties();
prop.load(fis);
}
catch (Exception e)
{
e.printStackTrace();
}

I continually get java.io.FileNotFoundException: config.properties (The
system cannot find the file specified).

I even tried adding a context element in my conf/server.xml file for my web
app like so:

!-- myproj context --
Context path=/myproj docBase=myproj debug=0 reloadable=true
/

but that had no effect.I've searched through all the documentation I
could find and it all seems to indicate that any resource files in
/WEB-INF/classes should be detectable.  Any ideas on what I may be doing
incorrectly would be greatly appreciated.

Thanks,


Michael Kintzer




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


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




RE: JDBC

2002-02-11 Thread Brian Adams

what problems are you having?  can you post an error or code or both?
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:48 AM
To: [EMAIL PROTECTED]
Subject: JDBC


I am having problems with my servlets that connect to a postgres
database. I am using the Tomcat 4, if anyone has any suggestions, i would be

gratefull!

thanks

_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

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




RE: JDBC

2002-02-11 Thread Brian Adams

where did you put your jdbc driver jar?  mine is named jdbc7.0-1.2.jar and
it is in my tomcat's common\lib directory.
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC


this is the error message

**
Cant find database Driver class: java.lang.ClassNotFoundException: 
postgresql.Driver
SQL Exception java.sql.SQLException: No suitable driver
**

and heres the coding

*
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

  public class hotellist extends HttpServlet
  {
   public void doGet(HttpServletRequest req,
 HttpServletResponse res)
   throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter out = res.getWriter();
 String url =
   jdbc:postgresql://dcsun2/dwt;
 String query =  select name,city from hotels order by city,name;

 out.println(HTML);
 out.println(BODY);


 try
 {
   Class.forName(postgresql.Driver);
 }
 catch(java.lang.ClassNotFoundException ex1)
 {
   out.println(Cant find database Driver class:  + ex1 +BR);
 }

 try{
   Connection con = 
DriverManager.getConnection(url,wwwuser,wwwuser);
   Statement stmt = con.createStatement();
   ResultSet rs =stmt.executeQuery(query);
   out.println(P STRONGHotel ---   City/STRONG);
   while (rs.next())
   {
 String hotelName = rs.getString(1);
 String cityName = rs.getString(2);
 out.println(BR  + hotelName +  ,  + cityName);
   }
   out.println(/P);
   stmt.close();
   con.close();
 }
 catch(SQLException ex2)
 {
   out.println(SQL Exception  + ex2);
 }
 out.println(/HTML);
 out.println(/BODY);
   }
}


***

i believe it's something to do with the postgres driver?

cheers


From: Brian Adams [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JDBC
Date: Mon, 11 Feb 2002 06:33:35 -0600

what problems are you having?  can you post an error or code or both?
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:48 AM
To: [EMAIL PROTECTED]
Subject: JDBC


I am having problems with my servlets that connect to a postgres
database. I am using the Tomcat 4, if anyone has any suggestions, i would 
be

gratefull!

thanks

_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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

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



_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

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




RE: JDBC

2002-02-11 Thread Brian Adams

cool! free drink...
:)


-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 7:06 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC



sorted!

thanks brian, i'll buy u a drink if i ever go to the states!!
cheers

From: Brian Adams [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JDBC
Date: Mon, 11 Feb 2002 06:53:58 -0600

where did you put your jdbc driver jar?  mine is named jdbc7.0-1.2.jar and
it is in my tomcat's common\lib directory.
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC


this is the error message

**
Cant find database Driver class: java.lang.ClassNotFoundException:
postgresql.Driver
SQL Exception java.sql.SQLException: No suitable driver
**

and heres the coding

*
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

   public class hotellist extends HttpServlet
   {
public void doGet(HttpServletRequest req,
  HttpServletResponse res)
throws ServletException, IOException
{
  res.setContentType(text/html);
  PrintWriter out = res.getWriter();
  String url =
jdbc:postgresql://dcsun2/dwt;
  String query =  select name,city from hotels order by city,name;

  out.println(HTML);
  out.println(BODY);


  try
  {
Class.forName(postgresql.Driver);
  }
  catch(java.lang.ClassNotFoundException ex1)
  {
out.println(Cant find database Driver class:  + ex1 +BR);
  }

  try{
Connection con =
DriverManager.getConnection(url,wwwuser,wwwuser);
Statement stmt = con.createStatement();
ResultSet rs =stmt.executeQuery(query);
out.println(P STRONGHotel ---   City/STRONG);
while (rs.next())
{
  String hotelName = rs.getString(1);
  String cityName = rs.getString(2);
  out.println(BR  + hotelName +  ,  + cityName);
}
out.println(/P);
stmt.close();
con.close();
  }
  catch(SQLException ex2)
  {
out.println(SQL Exception  + ex2);
  }
  out.println(/HTML);
  out.println(/BODY);
}
}


***

i believe it's something to do with the postgres driver?

cheers


 From: Brian Adams [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: JDBC
 Date: Mon, 11 Feb 2002 06:33:35 -0600
 
 what problems are you having?  can you post an error or code or both?
 B
 
 -Original Message-
 From: vinny patel [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 11, 2002 3:48 AM
 To: [EMAIL PROTECTED]
 Subject: JDBC
 
 
 I am having problems with my servlets that connect to a postgres
 database. I am using the Tomcat 4, if anyone has any suggestions, i would
 be
 
 gratefull!
 
 thanks
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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

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



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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

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




RE: com.oreilly.servlet and damaged files

2002-02-09 Thread Brian Adams

I bet it is the connector!
run tomcat as stand alone (port 8080 by default) and access the servlet
without using apache and I bet money it will work!
:)
goodluck

-Original Message-
From: Reini [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 09, 2002 10:00 PM
To: [EMAIL PROTECTED]
Subject: com.oreilly.servlet and damaged files



I use com.oreilly.servlet Multipartrequest  (cos, version from June,
19th. 2001) with Tomcat 4.0.1 + mod_webapp + apache 1.3.22  (tested on
different machines, Redhat 7.x and Freebsd 4.4, same behaviour) to
upload files.

While uploads of text-files are ok, uploads of jpg or gif files result
in damaged files. The size of the uploaded files is about 1 % smaller
than the original files.

example of a jpg file:

original:
[..]
ÿØÿà^@^PJFIF^@^A^A^A^@`^@`^@^@ÿÛ^@C^^F^F^G^F^^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.'
,#^\^\(7),01444^_'9=82.342ÿÛ^@C^A.
.
[..]

uploaded file:
[..]
Øà^@^PJFIF^@^A^A^A^@`^@`^@^@Û^@C^^F^F^G^F^^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.'
,#^\^\(7),01444^_'9=82.342Û^@C^A.
.
[..]

(note the missing 'ÿ' in the uploaded file)
I experimented with settins of different character-encodings, without
result.

Anybody has any ideas how to fix this ?

~reini



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



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




RE: new

2002-02-07 Thread Brian Adams

Hi U,
Probably a Registry hack/bug that is not correct.  
check your \HKEY_Local_Machine\SOFTWARE\JavaSoft
check that default values are pointing to correct JRE Keys and that their
values are pointing to valid jdk paths.
If that does not work download the src version and install it...
B


-Original Message-
From: U [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: new


i'm new to this list so ...
after downloading the tomcat 4.0.1 for win32 it won't install not being able
to find the JDK.  but i do have the JSE 1.4 installed.
i assume i need to set some environment variable.
java_home points to JSE 1.4, etc.
any suggestions?
thanks.


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




RE: Problem with IE

2002-02-07 Thread Brian Adams

Worked for me!
 :)
in both


-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 10:18 PM
To: Tomcat Users List
Subject: Problem with IE


Hi,
I am using Apache Tomcat4.0. I am doing a project in Servlets. I do not get
my files working on IE with this kind of URL
http://globalleafs.com:8080/globalleafs/servlet/TestServlet

But the same URL works fine in Netscape. What could be the problem?

Uma





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




RE: PLEASE URGENT: log off problem!!!

2002-02-06 Thread Brian Adams

two reasons:
1. bug in jdk add -Xrs to wrapper.cmd_line in wrappers.properties.
2. don't run the service as interact with desktop.
goodluck
B


-Original Message-
From: Catalin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 4:03 PM
To: [EMAIL PROTECTED]
Subject: PLEASE URGENT: log off problem!!!




Hi, guys!



I have an jakarta-tomcat-3.3-m4 on a win2k professional OS that is
runnig as a service on that machine.
My problem is that every time an user does log-off from windows 2000
and after that does login, my jakarta service is stopped!!!
Another problem that I have is that I'm loosing the session variables
(by loosing the session itself) if I do nothing in my webapps for an half an
hour or so.


Please, could anyone help me with these? I'm running uot of time...


Thanks for tip.

Catalin


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

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




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Brian Adams

my guess is yes, if you do not check in jsp/servlets are on https
(request.isSecure())  and if you are allowing users to port 8080 (block it).
my guess...
:)



-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 7:33 AM
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I never saw an answer go by to the below question and was curious what it
would be. Does no one now the answer
Dean

Cressatti, Dominique wrote:

 Hi,

 I've got apache + mod_SSL + tomcat working
 (I don't deserve that much credit as mod_ssl worked
 right out the box) but I wonder couldn't the security bypassed,
 like for example accessing the page on port 8080 instead of port
 443 ?

 Dom


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

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




RE: Tomcat not getting installed

2002-02-04 Thread Brian Adams

Hi Uma,  
two issues and not sure which applies to you.
1.  there is a know problem with windows and an incorrect Registry entree
that can cause this problem.  
Fix:
a. Fix your jre/jdk registry entree in the Software branch.
b. download the source and install it by hand.  you will have to setup the
NT Service yourself if you want tomcat to run as a service.

2. I am not familiar with Visual Cafe so I don't know if you have a java.exe
in your path.  
Fix: a. can you run java from a command prompt by simply typing java.exe?
If so, install Tomcat via 1.b (above). If not, download jdk and install it
first.

Goodluck,
Brian Adams


-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 4:57 AM
To: Tomcat Users List
Subject: Tomcat not getting installed


Hi,
I am using JavaWebServer2.0(Trial Version) in WinXP. I have downloaded
Tomcat (.exe) file. when I try to install it , it says JDK is not found. I
have JDK installed with Visual Cafe in my PC. What should I do now?

Help me.

Uma

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




RE: Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT

2002-02-04 Thread Brian Adams

mod_jk, works great on NT

-Original Message-
From: YI,LI (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 8:31 AM
To: 'Tomcat Users List'
Subject: Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT


I have been struggling to make this work for two days, it was working fine
with Tomcat 3.2.1/mod_jk  Apache 1.3.14, but not with Tomcat 4.1 using
Warp, I've installed the latest Apache, still no luck.

Works with either TC or Apache alone, but with Warp connector, Apache always
hangs using 100% CPU, sometime right at the start, sometime when downloading
.gif. I've read different forums, some says mod_webapp.so compiled with EAPI
would work on Linux, some suggests to use different connector, some says
Apache has bug... my questions is:

1) what would be a good/reliable connector to use at this time?
2) anybody has any luck to make this work on NT?

Any help would be appreciated. 
Thanks,
Li

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

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




RE: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector

2002-02-03 Thread Brian Adams

Hi Anthony,
 Why not use mod_jk instead of WARP?  I have seen folks on the list that
have had no problems with WARP on non-Windows servers but I don't know the
problem rate of WARP. I had some troubles also (but on windows) and switched
to mod_jk.
B

-Original Message-
From: Anthony Jones [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 6:37 PM
To: Tomcat Users List
Subject: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector


Hi,

I am having problems implementing servlets and JSP pages using Tomcat 4.0.1
and Apache 1.3.20 (mod_ssl) on Solaris 8.

Initially, after searching on the web, I used the AJP connector as this
(according to what I read) was the recommeded connector to use.  After
having Tomcat hang several times and reading that Tomcat 4 only has beta
support for the AJP connector, I changed to the WARP connector. All seemed
to be going well, but eventually, instead of Tomcat hanging, Apache would
hang.

I found one reference on the internet to this problem, and this was stated
as a known problem with the WARP connector. The only probable solution was
that the latest WARP connector could be downloaded from the CVS area and
compiled. However, no guarantee was given that this would work.

Therefore, I find myself in the position of having to implement servlet and
JSP pages with Tomcat and have no reliable connector to use with Apache.
Also, I cannot use the standalone server in Tomcat as I need the SSL
encryption provided by Apache.

Does anybody know of any solution to this problem, or do I have to go back
to Tomcat 3.3.

Thanks for your help.

Regards,

--
Anthony Jones
Senior Programmer (Applications and Development)
Queensland Tertiary Admissions Centre (QTAC) Ltd

Phone: +61 7 38581285
email: [EMAIL PROTECTED]

  If a train station is where the train stops,
   what is a work station?
--


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



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




RE: triggering JSP page recompilation

2002-02-01 Thread Brian Adams

I'm sorry, come again?  I don't think you sent anything or I can't see it...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 1:14 PM
To: Tomcat Users List
Subject: Re: triggering JSP page recompilation








Guillermo Payet [EMAIL PROTECTED] on 02/01/2002 11:52:11 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  triggering JSP page recompilation


Hi,

I recently installed Tomcat 4.0.1, (We used JServ + GNUJSP before)
and all works well, except for an anoying little problem that I
can't figure out:

When someone modifies a file that's included from a JSP page with:
%@ include file=somefile%, this modification does not trigger
the recompilation of the including file.

If I not mistaken, with %@ include file=...%, the file is included during
compilation time. Tomcat will auto-reload the including file only if it has
been changed. I guess you could use jsp:include instead. The JSP engine
will include this file whenever the including jsp is called.


There must be a configuration switch to turn this on.

Any clues?

   --G

Hope this helps.
Thanks.
RS


--
Guillermo Payet
O C E A NG R O U P
email: [EMAIL PROTECTED]
web: http://www.oceangroup.com

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









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

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




RE: why use mod_webapp?

2002-01-31 Thread Brian Adams

same port! port 80 is http (apache) tomcat would then have to run alone on
another machine or Virtual IP.
the beauty is that we can now SSI jsp/servlet in html and you never bounce
to another port or have to add DNS entrees...
just a few reasons, you'll get more and better explained.
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: why use mod_webapp?


Hi Folks,
I'm already using mod_webapp for handling my tomcat traffic via
apache.  My question from a guy here is why do we do this and not just
create a simple re-direct page?  ie. create a directory with a 1 line
HTML page in it that re-directs to the tomcat HTTP server.  Are there
other advantages to using the WARP connector?

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Fax: 613-761-3629
EMail: [EMAIL PROTECTED]



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

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




RE: why use mod_webapp?

2002-01-31 Thread Brian Adams

Deducing
Why install apache? just put all your html and images in tomcat.  I
mean what is the point, right?
The point is loosely coupled technologies that can be seperated and
mananaged by the appropriate people.  html on apache can handle serving
static content faster than Tomcat. 
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:27 PM
To: Tomcat Users List
Subject: RE: why use mod_webapp?


Well, ya I know this.  But you could still have apache do a re-direct to
tomcat on whatever port it's lisening on (say 8080) and get the same
result.  My own personal opinion is mod_webapp is cleaner but I'm under
some pressue to say WHY it's better.  Can't really think of any good
reasons really.

Dave

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:23 PM
To: 'Tomcat Users List'
Subject: RE: why use mod_webapp?


same port! port 80 is http (apache) tomcat would then have to run alone
on
another machine or Virtual IP.
the beauty is that we can now SSI jsp/servlet in html and you never
bounce
to another port or have to add DNS entrees...
just a few reasons, you'll get more and better explained.
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: why use mod_webapp?


Hi Folks,
I'm already using mod_webapp for handling my tomcat traffic via
apache.  My question from a guy here is why do we do this and not just
create a simple re-direct page?  ie. create a directory with a 1 line
HTML page in it that re-directs to the tomcat HTTP server.  Are there
other advantages to using the WARP connector?

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Fax: 613-761-3629
EMail: [EMAIL PROTECTED]



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

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


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

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




RE: Help !!! JNI Tomcat (UnSatisfiedLinkError exception)

2002-01-30 Thread Brian Adams

Tomcat must not look in the \winnt\system32 directory.
put the dll in the same directory as the class file.
If you have tomcat starting as a service, try putting the dll in the
%TOMCAT_HOME% directory eg. C:\tomcat
lastly try putting the dll in %TOMCAT_HOME%\bin directory.
goodluck,
B

-Original Message-
From: Anil Bhagwat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Help !!! JNI  Tomcat (UnSatisfiedLinkError exception)


Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I
execute the JNI from a sample JAVA application. I have placed the DLL under
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters 
doesn't return any value. But, still it doesn't work. So, the problem is
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app
finds the DLL correctly but can't find the method within correctly. I
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw
quite few people have run into this issue, but didn't notice any resolution.
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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



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




RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-29 Thread Brian Adams

I wish I could tell you how but I don't know.
I know you need to get webapp source from jakarta-tomcat-connectors cvs.
and I know you have to get apr source from the apr cvs module.
but then I have no clue on how to build it in Windows.  I read about export
a Makfile and run NMAKE.exe on it
Sorry,
B

-Original Message-
From: lars_ake_gentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 5:28 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: AW: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


hi,

i would like to help you... and i have ms Visual studio... but wich files do
i need
to build the mod_webapp.so for win??? i have the same problems:-( i have
never worked with source code... i have downloaded the following files:
Makefile.in
Makefile.win
mod_webapp.c
when starting mod_webapp.c in ms Visual studio and i click on compile i
get an error:
Include file could not be found fatal error: c1083 httpd.h

where can i find the httpd.h file??? wich file do i need else???

thanx

lars.


-Ursprungliche Nachricht-
Von: Brian Adams [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Januar 2002 04:52
An: Tomcat Users List
Betreff: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


yep, wich I could help but I don't have MS Visual Studio.

CAN SOMEONE HELP PLEASE?  (not shouting just getting attention)  :)

We need mod_webapp.so for Windows and it has to be newer than the download
we can already get.
Has someone built it from CVS?
Thanks for the help folks,
B
good luck dennis!
In the mean time you should be able to run tomcat as a stand alone server
(port 8080) and get some work done.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

I tried TC 4.0.2-b2, but the same thing happened.  Looks like I
could use an already-built mod_webapp.c (or whatever else I might
need for this version, if someone could provide it), as I'm not
up to doing that yet.  Thanks.

Dennis

-Original Message-
From: Dennis.Johnson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:31 PM
To: bigb; tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Thanks.  Will get right on it...

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:30 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


try just tomcat 4.0.2-2b (does not matter zip exe) by its self and see
if it
fixes it.  I am not sure if it is the warp.jar or if the bug was in
mod_webapp.so.
I would try the new tomcat alone and see.
if not you'll have to download the mod_webapp.c and build it or ask some

one
to give you theirs.
let us know what you find. maybe I will bump up to 4.0.2-2b

B
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

Thanks for the reply.  Just to clarify...

You're suggesting that I install Tomcat 4.0.2-2b from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/bin/,
correct?  If so, is there a preference between the exe and zip?  Also, I
noticed that there's no /bin/win32 with a mod_webapp to download for
this
version.  Do I just keep the webapp-module-1.0-tc40-windows versions of
mod_webapp.so and libapr.dll that came with TC 4.0.1?  Please advise.

Thanks.

Dennis

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:05 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When

Tomcat and JNI

2002-01-29 Thread Brian Hanuska

What ClassLoader should load the java classes that contain JNI calls?

Currently the java classes that load the JNI calls are in the global web.xml file, in 
the jsp servlet's classpath:
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
  param-namelogVerbosityLevel/param-name
  param-valueDEBUG/param-value
/init-param
init-param
  param-nameclasspath/param-name
  param-value/appl/rware69/rware/lib/:/appl/rware69/rware/web/java/rwjavah
l.jar/param-value
/init-param
init-param
  param-namekeepgenerated/param-name
  param-valuetrue/param-value
/init-param
load-on-startup3/load-on-startup
  /servlet

The Tomcat docs have:
-
Tomcat 4.0 and JNI Based Applications:
-

Applications that require native libraries must ensure that the libraries have
been loaded prior to use.  Typically, this is done with a call like:

  static {
System.loadLibrary(path-to-library-file);
  }

in some class.  However, the application must also ensure that the library is
not loaded more than once.  If the above code were placed in a class inside
the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the
application were reloaded, the loadLibrary() call would be attempted a second
time.

To avoid this problem, place classes that load native libraries outside of the
web application, and ensure that the loadLibrary() call is executed only once
during the lifetime of a particular JVM.


Any help would be appreciated.

Thanks



Brian Hanuska



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




RE: Errors using warp connector

2002-01-29 Thread Brian Adams

Cool, I don't know about the others but I appreciate you doing this :)
Thanks!
B

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:57 PM
To: Tomcat Users List
Subject: RE: Errors using warp connector


Currently I have been able to compile the apr suite
(apr, apr-util, and apr-iconv by following the
instructions at

http://apr.apache.org/compiling_win32.html

I received 7 warnings from the source code downloaded
from CVS this morning.

However, using the Makefile.win to compile mod_warp
failed with some include path information problems.

I'm investigating that this afternoon.

Meanwhile, I tried to compile the source for the 1.0.1
release, and while it compiled some aspects of
mod_webapp, it did not create mod_webapp.so or
libapr.dll.

I know that the Makefile.win files are not to be
trusted, but I did not see the appropriate Visual C++
Studio project or workspace files for mod_webapp.

/mde/

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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

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




RE: Scheduled Process servlet: possible?

2002-01-29 Thread Brian Adams

I have a Thread class that does some stuff for me every night and I wrapped
that with a servlet that calls .start()  in the servlet init() method and
that servlet in loaded at start up via load-on-startup1/load-on-startup
tag in web.xml (look below)

this Thread class sleeps for 24 hours then wakes up and performs its duties
then sleeps



servlet
servlet-namePrinterCache/servlet-name
servlet-classPrinterCache/servlet-class
load-on-startup1/load-on-startup
/servlet






-Original Message-
From: Jeff Corliss [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: Scheduled Process servlet: possible?


Hi all,

Is it possible to have a servlet's service method
auto-invoked on a scheduled basis by its container? 
Like say for example you want to have your app do some
auto-archiving of old data on a regular basis or
something like that?

Thanks,
Jeff


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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

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




RE: Serving HTML and J2EE apps

2002-01-29 Thread Brian Adams

okay, how do you setup a Enterprise Stack h.
What is the text capacity of outlook?
three big pieces to install/consider:
HTML serving (Apache)
Servlet and jsp pages (Tomcat)
J2EE Applications with EJB and more (JBOSS and others)

installing:
Apache web server, Port 80 www.apache.org

Tomcat servlet engine (mod_jk or mod_webapp connects you to Apache or better
connects Apache to Tomcat) http://jakarta.apache.org/tomcat/index.html


GREAT INTRO CREATED BY RUSS!
http://abbott.calstatela.edu/courses/cs320b/Running%20a%20Servlet%20under%20
Tomcat.html
Thanks Russ!


Jboss Application server that is known to have docs on howto connect Tomcat
with JBOSS http://www.jboss.org

Java J2ee starter
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/


Good luck!
B




-Original Message-
From: Mike DiChiappari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 7:11 PM
To: [EMAIL PROTECTED]
Subject: Serving HTML and J2EE apps


How are people setting up servers to serve both HTML and J2EE apps?
I would like to setup my app so that both HTML and web apps (JSPs)
are accessed using a web server (like Apache) and using port 80 (for
both HTML and JSPs).  I would prefer to not make any reference to
port 8080 (or whatever port a J2EE server may use).  I would like my
users to be unaware of having to deal with ports.Is this
considered a standard thing to do?  What are most people doing?

Mike




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



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




RE: urgent -- tomcat as NT services interrupt unexpected

2002-01-28 Thread Brian Adams

no log attached. send again please

-Original Message-
From: Sabrina Liu [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: urgent -- tomcat as NT services interrupt unexpected


Dear Sir or Madam,

We are using JDK1.2.2, Tomcat3.2.3, working on NT server. When we use tomcat
as standalone servlet
support, everything is working fine. But when we use tomcat as NT services,
tomcat services will interrupt
every two days unexpected. Attached is the log file. Please help us to
figure out what's the problem is or what
we should work on? This is really an urgent issure. Thank you in advance for
your help.

Sabrina


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

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




RE: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation

2002-01-28 Thread Brian Adams

search through this archive.  this is a known problem with Windoz.  There is
a registry edit that has to be made...
I just downloaded the source and installed that.

I would search for:
Couldn't find a Java Development Kit


good luck,
B
-Original Message-
From: Michael Kastner [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 11:47 AM
To: Tomcat Users List
Subject: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation


Why would this happen?

When I try to install jakarta-tomcat-4_0_1.exe on my server I receive this
error message:

Couldn't find a Java Development Kit installed on this computer. Please
download on from http://java.sun.com;

This is strange, because there is a jdk installed (how else could JRun be
running on the server)?

The same happened on my development machine. First I thought, that might be
because I have JDK 1.4.0 on my dev machine. But obviously the reason is
something else.

Can anybody help me?

What is the installation procedure's criteria for a jdk?

Michael Kastner


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

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




RE: com.oreilly.servlet.MultipartRequest IO Error

2002-01-28 Thread Brian Adams

I saw it in the past 6 weeks come across the list and I believe it is in the
Warp connector.  hte guy was saying that the file did not end or start with
(can't remember which) FF.

Maybe download from the CVS and build yourself...
I'm sure someone else will have better memory.
goodluck,
B


-Original Message-
From: J S (l) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:39 PM
To: Tomcat Users List
Subject: com.oreilly.servlet.MultipartRequest IO Error


Please, anyone with information regarding the following error, either
post a reply or email me asap.

We are attempting to allow users to upload image files via form on our
jsp site.  We get the following error upon trying to parse the posted
data:

java.io.IOException: unexpected end of part

We are running tomcat 4.0.1
JDK 1.3.1
modwebApp
Apache 1.3.22

I have read where this might be a bug with either Tomcat itself or the
WARP connector, but have been unable to find any responses to the bug
report.
Any assistance is greatly appreciated.

J Sears



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

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




RE: com.oreilly.servlet.MultipartRequest IO Error

2002-01-28 Thread Brian Adams

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg06327.html

here is one problem.


-Original Message-
From: J S (l) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:39 PM
To: Tomcat Users List
Subject: com.oreilly.servlet.MultipartRequest IO Error


Please, anyone with information regarding the following error, either
post a reply or email me asap.

We are attempting to allow users to upload image files via form on our
jsp site.  We get the following error upon trying to parse the posted
data:

java.io.IOException: unexpected end of part

We are running tomcat 4.0.1
JDK 1.3.1
modwebApp
Apache 1.3.22

I have read where this might be a bug with either Tomcat itself or the
WARP connector, but have been unable to find any responses to the bug
report.
Any assistance is greatly appreciated.

J Sears



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

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




RE: com.oreilly.servlet.MultipartRequest IO Error

2002-01-28 Thread Brian Adams

no, just recompile the new warp connector and place it into the directory.

-Original Message-
From: J S (l) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:49 PM
To: Tomcat Users List
Subject: RE: com.oreilly.servlet.MultipartRequest IO Error


Thanks for your quick response.  I just have one more question...would I
have to completely recompile tomcat to recompile the WARP connector or
not?

J Sears
On Mon, 2002-01-28 at 12:41, Brian Adams wrote:
 I saw it in the past 6 weeks come across the list and I believe it is in
the
 Warp connector.  hte guy was saying that the file did not end or start
with
 (can't remember which) FF.
 
 Maybe download from the CVS and build yourself...
 I'm sure someone else will have better memory.
 goodluck,
 B
 
 
 -Original Message-
 From: J S (l) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 12:39 PM
 To: Tomcat Users List
 Subject: com.oreilly.servlet.MultipartRequest IO Error
 
 
 Please, anyone with information regarding the following error, either
 post a reply or email me asap.
 
 We are attempting to allow users to upload image files via form on our
 jsp site.  We get the following error upon trying to parse the posted
 data:
 
 java.io.IOException: unexpected end of part
 
 We are running tomcat 4.0.1
 JDK 1.3.1
 modwebApp
 Apache 1.3.22
 
 I have read where this might be a bug with either Tomcat itself or the
 WARP connector, but have been unable to find any responses to the bug
 report.
 Any assistance is greatly appreciated.
 
 J Sears
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



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

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




RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-28 Thread Brian Adams

bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.  
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When I
press Stop and then Refresh (IE 5.5), I get the following error:
WebApp: Error 500, (File: pr_warp.c Line: 438), Invalid packet 16.
After Stop, Back, and then try to load the /examples/jsp/index.html
URL again, the 1st graphic (gears, for Execute the example) is
loaded, but it hangs trying to load the 2nd graphic.  If I Stop and
try to click one of the example Execute links, I get the 500 error
again.  On the other hand, clicking Source brings up the next page
with the link for the source (e.g., Source code for numguess example)
... along with the two graphics (gears for Execute and arrow for
Return).  And clicking the link brings up the source code; but clicking
either of the other links (Execute or Return) makes it hang again.  And
after this scenario, I have to stop both Tomcat and Apache, and then
start (1) Tomcat and then (2) Apache manually (or just reboot - and then
restart Apache to correct the first issue mentioned above.

Any suggestions would be greatly appreciated.  Thanks.

[Ashish - I finally got Apache to talk with Tomcat by restarting 
Apache.]

Dennis


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



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




RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-28 Thread Brian Adams

try just tomcat 4.0.2-2b (does not matter zip exe) by its self and see if it
fixes it.  I am not sure if it is the warp.jar or if the bug was in
mod_webapp.so.
I would try the new tomcat alone and see.
if not you'll have to download the mod_webapp.c and build it or ask some one
to give you theirs.
let us know what you find. maybe I will bump up to 4.0.2-2b

B
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

Thanks for the reply.  Just to clarify...

You're suggesting that I install Tomcat 4.0.2-2b from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/bin/,
correct?  If so, is there a preference between the exe and zip?  Also, I
noticed that there's no /bin/win32 with a mod_webapp to download for
this
version.  Do I just keep the webapp-module-1.0-tc40-windows versions of
mod_webapp.so and libapr.dll that came with TC 4.0.1?  Please advise.

Thanks.

Dennis

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:05 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When I
press Stop and then Refresh (IE 5.5), I get the following error:
WebApp: Error 500, (File: pr_warp.c Line: 438), Invalid packet 16.
After Stop, Back, and then try to load the /examples/jsp/index.html
URL again, the 1st graphic (gears, for Execute the example) is
loaded, but it hangs trying to load the 2nd graphic.  If I Stop and
try to click one of the example Execute links, I get the 500 error
again.  On the other hand, clicking Source brings up the next page
with the link for the source (e.g., Source code for numguess example)
... along with the two graphics (gears for Execute and arrow for
Return).  And clicking the link brings up the source code; but clicking
either of the other links (Execute or Return) makes it hang again.  And
after this scenario, I have to stop both Tomcat and Apache, and then
start (1) Tomcat and then (2) Apache manually (or just reboot - and then
restart Apache to correct the first issue mentioned above.

Any suggestions would be greatly appreciated.  Thanks.

[Ashish - I finally got Apache to talk with Tomcat by restarting
Apache.]

Dennis


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



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



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



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




RE: Errors using warp connector

2002-01-28 Thread Brian Adams

looks like Tomcat is trying to use a port already in use so it dies. then
Warp connector comes up and can not connect to taomcat.
get tomcat on the port first and working then bring up apache after that.
B

-Original Message-
From: Donald Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:30 PM
To: [EMAIL PROTECTED]
Subject: Errors using warp connector




Hello, I am trying to get the mod_webapp configured and have really been
goofing it up bigtime.  right now tomcat is inaccessible even when I place
the :8080 after the server name.
Has anybody seen this kind of error before?  I am thinking I need to look up
the source and recompile but I wanted to be sure that was my problem.  Kinda
looks like it's the least of my problems but I am just guessing here.  If
anybody can throw me a bone, it would be appreciated.


Here is a section of my error_log:

[Mon Jan 28 21:05:29 2002] [warn] Loaded DSO lib/apache/mod_webapp.so uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)
[Mon Jan 28 21:05:29 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:29 2002] [notice] Apache-AdvancedExtranetServer/1.3.20
(Mandrake Linux/3mdk) mod_ssl/2.8.4 OpenSSL/0.9.6b configured -- resuming
normal operations
[Mon Jan 28 21:05:29 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Mon Jan 28 21:05:29 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:29 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:29 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:42 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:42 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:43 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:43 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:43 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:43 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:44 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:44 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:44 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:05:44 2002] [error] Connection warpConnection cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection warpConnection
[Mon Jan 28 21:10:24 2002] [notice] caught SIGTERM, shutting down


this is setup at the top of my httpd.conf file
ServerType standalone
ServerRoot /etc/httpd
ServerName lnxwebsvr
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null

I have this configured at the bottom of my httpd.conf:

LoadModule webapp_module lib/apache/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
WebAppDeploy Guestbook warpConnection /Guestbook/


I am getting this in catalina.out. I am not sure what address the error is
referring to.

- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:477)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:526)
at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
at 

RE: SSL and certificates, AGAIN

2002-01-28 Thread Brian Adams

I hae not done this yet, but I want to learn.  Can we try and keep it on the
list?  I am a few weeks before I get a signed cert (www.geotrust.com
cheaper I think) so please keep me in the loop.  All I have learned so far
is self-signed certs.
Thanks,
B

-Original Message-
From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:58 PM
To: [EMAIL PROTECTED]
Subject: SSL and certificates, AGAIN


Greetings!

Three quick question to all who have SSL working with signed
certificates (not just self-signed):

1. What provider did you use? Verisign, Entrust, Thawte, etc?

2. Has anyone gotten signed certificates working with Thawte
certification?

3. Would you be willing to discuss this by personal email rather than
through the list (to conserve bandwidth).

Thanks,

-Richard



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



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




RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-28 Thread Brian Adams

yep, wich I could help but I don't have MS Visual Studio.

CAN SOMEONE HELP PLEASE?  (not shouting just getting attention)  :)

We need mod_webapp.so for Windows and it has to be newer than the download
we can already get.
Has someone built it from CVS?
Thanks for the help folks,
B
good luck dennis!
In the mean time you should be able to run tomcat as a stand alone server
(port 8080) and get some work done.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

I tried TC 4.0.2-b2, but the same thing happened.  Looks like I
could use an already-built mod_webapp.c (or whatever else I might
need for this version, if someone could provide it), as I'm not
up to doing that yet.  Thanks.

Dennis

-Original Message-
From: Dennis.Johnson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:31 PM
To: bigb; tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Thanks.  Will get right on it...

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:30 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


try just tomcat 4.0.2-2b (does not matter zip exe) by its self and see
if it
fixes it.  I am not sure if it is the warp.jar or if the bug was in
mod_webapp.so.
I would try the new tomcat alone and see.
if not you'll have to download the mod_webapp.c and build it or ask some

one
to give you theirs.
let us know what you find. maybe I will bump up to 4.0.2-2b

B
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

Thanks for the reply.  Just to clarify...

You're suggesting that I install Tomcat 4.0.2-2b from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/bin/,
correct?  If so, is there a preference between the exe and zip?  Also, I
noticed that there's no /bin/win32 with a mod_webapp to download for
this
version.  Do I just keep the webapp-module-1.0-tc40-windows versions of
mod_webapp.so and libapr.dll that came with TC 4.0.1?  Please advise.

Thanks.

Dennis

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:05 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When I
press Stop and then Refresh (IE 5.5), I get the following error:
WebApp: Error 500, (File: pr_warp.c Line: 438), Invalid packet 16.
After Stop, Back, and then try to load the /examples/jsp/index.html
URL again, the 1st graphic (gears, for Execute the example) is
loaded, but it hangs trying to load the 2nd graphic.  If I Stop and
try to click one of the example Execute links, I get the 500 error
again.  On the other hand, clicking Source brings up the next page
with the link for the source (e.g., Source code for numguess example)
... along with the two graphics (gears for Execute and arrow for
Return).  And clicking the link brings up the source code; but clicking
either of the other links (Execute or Return) makes it hang again.  And
after this scenario, I have to stop both Tomcat and Apache, and then
start (1) Tomcat and then (2) Apache manually (or just reboot - and then
restart Apache to correct the first issue mentioned above.

Any suggestions would be greatly appreciated.  Thanks.

[Ashish - I finally got Apache to talk with Tomcat by restarting
Apache.]

Dennis


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



--

RE: kindly confirm the uninstall steps...

2002-01-24 Thread Brian Claridge

Just shutdown the server and delete the tomcat directory.

Only version 4.0 has an un-install routine on windows.



--- [EMAIL PROTECTED] wrote:
 Can anyone kindly address this question?
 
 +Andy
 
   -Original Message-
  From:   Ruben, Andy B.  
  Sent:   Tuesday, January 15, 2002 4:09 PM
  To: '[EMAIL PROTECTED]'
  Subject:kindly confirm the uninstall steps...
  
  Folks-
  
  I loaded a copy of tomcat 3.2.1 on my laptop to test this server platform
  for the possibilities of developing .jsp's and as an alternate to IIS.
  However, due to a number of reasons, I have decided that migrating the
  platform of our webserver at this time is not a priority.
  
  Therefore, I would like to uninstall the Apache software from this laptop.
  I have looked through the dir structure for any README documents or
  uninstall instructions and could not find anything. Therefore, in order to
  avoid %^$ing any configs on this development machine, I wanted to confirm
  with you folks the uninstall steps first.  Please reply to confirm the
  steps below or correct me so that I can get the cleanest uninstall
  possible. 
  
  First, the OS on this computer is Windows 2K Professional, and has Tomcat
  3.2 on it as well as IIS 5.0. Since I did not see Tomcat (or any reference
  to Apache software) listed in the add/remove software area of the control
  panel, can I just:
  1-Go into the C:/jakarta-tomcat/bin directory and run the
  shutdown.bat?  
  2-After shutting down the apache server, then go ahead and DELETE the
  entire dir structure from my C:/ ?
  
  I guess that (again) I wanted to double check with you folks since I
  really liked the Apache products, but simply cannot find the time to
  implement this migration at this time.
  
  Thanks in advance for your help.
  
  
  
  Andy Ruben
  IT Specialist/Webmaster
  http://vaww.cheyenne.med.va.gov
  307.778.7523
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


=
Brian C. Claridge
Software/Web Developer
http://www.zerosleep.com
[EMAIL PROTECTED]

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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




Tomcat and RetrievalWare

2002-01-23 Thread Brian Hanuska

Is anyone using Convera's Retrievalware product with Tomcat?
I am looking for performance information.  
Any information would help, like OS that you are running on, number of simultaneous 
users supported, execute thread count, heap size.

Thanks



Brian Hanuska



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




RE: Invoking a process on the server from a servlet

2002-01-22 Thread Brian Adams

Mark is correct.  If you want you can have the servlet write to a file every
time you get a visitor and then write a seperate program that runs in your
tooltray. The other program should read the file and when a new line is
written then popup what ever it is you want to see.
 If it is in the your tooltray then the program will only work when you
login. :)
the servlet will just write to a special log file that is read by your new
little monitoring program.
goodluck,
Brian

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:46 AM
To: 'Tomcat Users List'
Subject: RE: Invoking a process on the server from a servlet


The problem is due to NT (or 2000) not allowing the Tomcat service to
interact with the desktop.  If you bring up Task Manager, you will probably
see your invoked process running, but it can't create window.  In fact, the
only way you will now be able to get rid of it will be to kill it in Task
Manager.

I don't know of any way around this.

-Original Message-
From: Stephen Clarke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:42 AM
To: tomcat
Subject: Invoking a process on the server from a servlet


I have the following code in my servlet, where 'out' is the
HttpServletResponse object.

  Runtime t = Runtime.getRuntime();

  try {

   Process proc = t.exec( c:\\TaskInfo.exe );

   out.write( invoked  );

  } catch ( java.io.IOException ioe ) {

   out.write( ioe.toString() );

  }

What I'm getting is invoked in the browser window, but nothing visibly
happens on my local machine( ie. server). I was hoping TaskInfo would start
up. What I really want to do is open a file in notepad to tell me a visitor
has just arrived. Am I barking up the wrong tree altogether. Should I
generate an event and listen for it in another app running as a listener in
the background, or is there just no way of invoking a process on localhost
from a servlet.

Thanks.

If this is the wrong place to be asking these questions, please let me know.

--
cf



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

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

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




RE: Invoking a process on the server from a servlet

2002-01-22 Thread Brian Adams

Good points.
I would NOT use interactive desktop at all.  the program will die when you
log out.
don't do it! :)

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:21 AM
To: Tomcat Users List
Subject: RE: Invoking a process on the server from a servlet



A few other thoughts of accomplishing the same thing:
1.  You could enable Interact with desktop in the service that would
allow it to open windows (but open huge security holes).  Also if your site
gets popular this will consume lots of memory when you can't close the
windows as fast as they are opening.
2.  Instead of opening a process you could send a message (via TCP)
to an application that would catch it and display the message
3.  Instead of opening a process you could update some internal list
and then have a web page (access restricted if you want) that would display
the results.  Then you could do an auto-refresh header if you desired.
4.  Make Tomcat SNMP enabled and then pass messages to the monitor
interface.  Then have your corporate management application listen for the
events and display messages accordingly.

 -Original Message-
 From: Brian Adams [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 22, 2002 10:34 AM
 To: 'Tomcat Users List'
 Subject: RE: Invoking a process on the server from a servlet
 
 
 Mark is correct.  If you want you can have the servlet write 
 to a file every
 time you get a visitor and then write a seperate program that 
 runs in your
 tooltray. The other program should read the file and when a 
 new line is
 written then popup what ever it is you want to see.
  If it is in the your tooltray then the program will only 
 work when you
 login. :)
 the servlet will just write to a special log file that is 
 read by your new
 little monitoring program.
 goodluck,
 Brian
 
 -Original Message-
 From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 22, 2002 9:46 AM
 To: 'Tomcat Users List'
 Subject: RE: Invoking a process on the server from a servlet
 
 
 The problem is due to NT (or 2000) not allowing the Tomcat service to
 interact with the desktop.  If you bring up Task Manager, you 
 will probably
 see your invoked process running, but it can't create window. 
  In fact, the
 only way you will now be able to get rid of it will be to 
 kill it in Task
 Manager.
 
 I don't know of any way around this.
 
 -Original Message-
 From: Stephen Clarke [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 22, 2002 10:42 AM
 To: tomcat
 Subject: Invoking a process on the server from a servlet
 
 
 I have the following code in my servlet, where 'out' is the
 HttpServletResponse object.
 
   Runtime t = Runtime.getRuntime();
 
   try {
 
Process proc = t.exec( c:\\TaskInfo.exe );
 
out.write( invoked  );
 
   } catch ( java.io.IOException ioe ) {
 
out.write( ioe.toString() );
 
   }
 
 What I'm getting is invoked in the browser window, but 
 nothing visibly
 happens on my local machine( ie. server). I was hoping 
 TaskInfo would start
 up. What I really want to do is open a file in notepad to 
 tell me a visitor
 has just arrived. Am I barking up the wrong tree altogether. Should I
 generate an event and listen for it in another app running as 
 a listener in
 the background, or is there just no way of invoking a process 
 on localhost
 from a servlet.
 
 Thanks.
 
 If this is the wrong place to be asking these questions, 
 please let me know.
 
 --
 cf
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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

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




RE: instructions for Apache webapp

2002-01-21 Thread Brian Adams

Hi Dean,
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/webapp/INSTALL.txt?r
ev=1.6content-type=text/vnd.viewcvs-markup

sorry if the URL is broken (Outlook sucks) but this doc comes with
mod_webapp.   I have given you a link to the install.txt file from the CVS
that houses mod_webapp.
If you download mod_webapp you will get this doc in it...
my advise is to get a nightly build of this module, some of the folks here
have made some changes to the module since it's formal release.
Goodluck,
Brian

-Original Message-
From: Dean Hall [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 2:37 AM
To: Tomcat User List
Subject: instructions for Apache  webapp


I'm a new Tomcat user trying to install Tomcat to work with Apache
1.3.22 (on RH Linux 6.2). I gave up trying to compile from source (for
the time being) because I didn't find the docs sufficient (yet) to be
sure it would work.

Now, I've installed the binary distro, and the docs seem to end before
describing how to get Tomcat to run with Apache. I read the
conf/server.xml file in the distro, and it seems to imply that some
other stuff needs to happen (like installing Apache with the mod_webapp)
for it to work properly, but I can find no documentation for this
procedure. I looked just to see if I could find any source for the
module in the apache source tree, and there is none. I looked in the
installation documentation, and there's no mod_webapp listed.

Is there something I'm missing? Some docs somewhere that I haven't seen
yet?

Dean.


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

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




RE: j2ee and Tomcat 4.0

2002-01-21 Thread Brian Adams

I do the first one, but I am not using EJB or other j2ee functions at this
time.  If you are just using serlvets and don't plan on installing an ap
server like jboss then my advice would be the first one. I believe the
servlet.jar comes with topcat you may have to point your dev env (CLASSPATH)
to it so that they both (tomcat and javac) use the save version.
Brian

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 12:53 AM
To: [EMAIL PROTECTED]
Subject: j2ee and Tomcat 4.0


Do we add the javax/servlets to j2se or do we use j2se in conjunction with 
j2ee with Catalina (Tomcat 4.0)?



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

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




RE: use JSP open new window

2002-01-21 Thread Brian Adams

yes,  I was thinking about this too and I would (if you had to) make the
call to the jsp page that wanted in a new window with a parameter like:
response.sendRedirect(http://localhost/window.jsp?window=1;);
return;

then in your window.jsp page put:

% 
if(1.equals(request.getParameter(window))){
%
script type='text/JavaScript'openWindow()/script 

%}%

That is if you wanted to have a page that could be seen in the original
window or in a seperate window.  I don't know if you need that function...
B


-Original Message-
From: Guillermo Labatte [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 5:55 AM
To: Tomcat Users List
Subject: Re: use JSP open new window


Galbayar wrote:

how to use sendRedirect method to open new browser window?

As far as I know, sendRedirect works at the HTTP level. In order to open 
a new browser window you need to operate at the HTML/JavaScript level.

Use something like script type='text/JavaScript'openWindow()/script 
in your HTML code in order to open a new window without user 
intervention. Please check the exact syntax in your HTML/JavaScript manuals.



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

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




RE: INSTALLING Tomcat-4.0 with JDK1.4 beta.

2002-01-18 Thread Brian Adams

It does work I am using it.  There is a registry error that causes that.  I
don't know how to fix the registry but others here do.
I download the src version for windows and installed by hand and it works
great on two machines! :)
ohh, you did not say what OS, I assumed Windows if not dunno..

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: INSTALLING Tomcat-4.0 with JDK1.4 beta.



Yes you guessed it...Tomcat4.0 won't install using jdk1.4 beta.  The first
thing it does is says it cant find a Java Development kit.  Works fine with
JDK1.3 so I'm guessing jdk1.4 will install once it is out of beta.  Correct?
There are some new utilities in jdk1.4 I'd like to use, but I've noticed
other things that don't work in jdk1.4 that traditionally works in the rest,
namely the way a class is imported.  

PM
-- 




__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


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

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




RE: benchmark

2002-01-18 Thread Brian Adams

thanks for sharing your info!
B

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: benchmark



Greetings everyone, a quick thanks to the tomcat
developers for their hardwork.

I just spent two week performing benchmarks on tomcat
4.0.1 and I thought some people might like to know the
results I got.

My comparison was between Orion 1.5.2 and tomcat
4.0.1. I used JMeter to perform the test hitting an
application that gets XML data from another system
over the internet. The data was about 1.2K in size and
the parser used was xerces 2 and xalan.

By no means is my test comprehensive, but it does show
that tomcat 4.0.1 out performs orion 1.5.2 for 1-45
clients. The application is a real app which I can't
describe, but it performs two separate requests to an
external system to get XML data, then transforms it
into HTML. The system was a 900mhz p3 with 256m RAM,
jdk 1.3.1.

Tomcat vs Orion
---
1 client - 7% faster
5 client - 2% faster
15 clients - 9% faster
45 clients - 20% faster

The settings were the default setting for both. No
optimization or tweaking was done. With the default
settings for 90 and 135 clients, tomcat would fail.
Once I cranked up the min and max processors to 2-3x
the defaults, it was able to complete the tests.

I hope others find this interesting.

f00zbll

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

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

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




RE: response.sendRedirect

2002-01-17 Thread Brian Adams

Poking fun
have you // your session.invalidate and tried it? :) sorry it begged the
question! 
my answer is dunno, try commenting it out and then try it or swapping the
two lines
/Poking fun

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 2:26 PM
To: '[EMAIL PROTECTED]'
Subject: response.sendRedirect


I have the following code snipet in a .JSP...

if (userStatus.equals (Failed))
{
session.invalidate() ;  // Kill this
session.
response.sendRedirect(htmlHome) ;   // Redirect
the user to our home page.
return ;
}

When this condition occurs, the response.sendRedirect fails with the
following message:

javax.servlet.ServletException: Response has already been committed

According to the response object documentation, the sendRedirect 'must be
called before the response is committed (in other words, before the status
code and headers have been written).' Obviously, the response has been
committed, else I wouldn't be getting the error!

My question - is the session.invalidate() doing this to me, or is it
something else that I am completely unaware of?

Thanks.

Jerry Jalenak
LabOne, Inc.

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



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

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




RE: Can a url have a space in it?

2002-01-17 Thread Brian Adams

if it is in your URL then it should %20  that represents a space in a string
so
if uRL was http:/localhost/servlet/test?file=my%20documents
then when your do :
String paramV = request.getParameter(file);
out.println(File Path is:  + paramV);


this should make paramV = my documents

is this what your looking for?
B
Anyone correct me if I am wrong please.


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 5:31 PM
To: Tomcat Users List
Subject: Can a url have a space in it?


When using tomcat 3.2.4, is it invalid to create a folder called /my
folder?  It looks like tomcat turns the url into my%folder, which I
thought should work, but it can't find any files in this directory.  Is this
correct, is there something I can do to allow tomcat to find files in a
directory with a space in it?

Brandon


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



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




RE: Can a url have a space in it?

2002-01-17 Thread Brian Adams

dude, I am with ya now!
okay, I tried on my server just now and it work!
I made a directory named a b inside my $TOMCAT4/webapps/test/  folder and
put in it a index.jsp page.
Ten I tried localhost:8080/test/a b/index.jsp and it worked...
so then I said h wonder if it works through Apache so I did
localhost/test/a b/index.jsp  (notice port 80 now) and it also worked...
I wonder what is wrong with yours...
:(


I did this on a dev box: win2000, tomcat 4.0.1ish and apache 1.3
B

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 6:17 PM
To: Tomcat Users List
Subject: RE: Can a url have a space in it?


Thanks for responding Brian,

Users are creating folders with spaces in them, not in the parameters, so
the url is like this...

http://localhost/my folder/index.html

tomcat (or the browser) is successfully turning the url into

http://localhost/my%20folder/index.html

When you click on that url though, you get a 404 error.

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 6:08 PM
To: Tomcat Users List
Subject: RE: Can a url have a space in it?


if it is in your URL then it should %20  that represents a space in a string
so
if uRL was http:/localhost/servlet/test?file=my%20documents
then when your do :
String paramV = request.getParameter(file);
out.println(File Path is:  + paramV);


this should make paramV = my documents

is this what your looking for?
B
Anyone correct me if I am wrong please.


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 5:31 PM
To: Tomcat Users List
Subject: Can a url have a space in it?


When using tomcat 3.2.4, is it invalid to create a folder called /my
folder?  It looks like tomcat turns the url into my%folder, which I
thought should work, but it can't find any files in this directory.  Is this
correct, is there something I can do to allow tomcat to find files in a
directory with a space in it?

Brandon


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



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



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



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




RE: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0

2002-01-14 Thread Brian Adams

Hi Terry, 
I think if you take a close look at the archive you will see that
many of us have not installed mod_webapp on windos with success.
The hanging is probably on the connector that mod_webapp uses.  I bet money
if you make a jsp page that has no images it will work.  then add a gif and
it should work.  add a jpeg and hang time for ever

there is a bug and you can get the latest mod_webapp code from the jakarta
cvs and build it(youll need MS Visual Studio 5.0 or higher) 
OR
you can install mod_jk (if your requirements allow) and you'll be happy for
now.  I had the same problem with no real luck just good advise so I
installed mod_jk and that works for me.  My windows box is a development box
not production(thank god) and it works fine.
Good luck
Brian Adams

-Original Message-
From: Terry McBride [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0 


After searching the archives all I have seen is that
people seem to get this to work pretty easily.
Unfortunately not me :( .  They've been working
seperately for a while.

When I use mod_webapp and run tomcat apache hangs
forever.  I tried telnet localhost 80 and it just sits
there.  Same thing with the web browser (doesn't even
come back with page not found-just hangs).  If they
are both running and I shutdown tomcat, boom, apache
works.

Apache's error.log contains nothing.  No tomcat logs
contain anything.

Has anybody out there had the same problem?  How do I
fix it?  It's coming up on crunch time for me and I'm
scared that tomcat standalone will not be able to
handle the traffic.  I work for the King Papers
Project at Stanford and we're trying to launch this
before the Holiday.

Thanks for any help,
Terry

#Here is output from tomcat to the console --#
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b6-dev
Starting service Tomcat-Apache
Apache Tomcat/4.0-b6-dev
[org.apache.catalina.connector.warp.WarpConnectionHandler]
New instance created
[org.apache.catalina.connector.warp.WarpConnectionHandler]
Setting connection
[org.apache.catalina.connector.warp.WarpConnectionHandler]
Setting Request ID 0



# Here is part of my httpd.conf ---#
ServerName 171.64.248.194

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

WebAppConnection launch warp localhost:8008
WebAppDeploy launchpads launch /launchpads
WebAppInfo /webapp-info

# Here is part of my server.xml ---#  Service
name=Tomcat-Apache

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

!-- Replace localhost with what your Apache
ServerName is set to --
Engine
className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=171.64.248.194
debug=0 appBase=webapps

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




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

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

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




RE: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0

2002-01-14 Thread Brian Adams

I don;t have MS Studio either.  
If your apache is not working at all I think you have a config problem.  I
would think something is wrong in your httpd.conf file

you don't need to step down to tomcat 3  I use tomcat 4 with mod_jk


-Original Message-
From: Terry McBride [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:35 PM
To: Tomcat Users List
Subject: RE: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0 


Thanks Brian,

I must be a bad archive searcher.

I the simptoms seem different though because apache
isn't working AT ALL when tomcat is running.  Even a
text.html file in htdocs dir.

I do not have access to Visual Studio.  Has anyone out
there compiled the latest mod_webapp for Windows?  If
so, does it work (including jpg ;)?  If so can you
please email me the libapr.dll and mod_webapp.so.

I am guessing I am not going to get my wish.  So does
this thread contain good instructions?
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg38624.html

I guess I nees to download Tomcat 3.

Thanks for any help,
Terry

--- Brian Adams [EMAIL PROTECTED] wrote:
 Hi Terry, 
   I think if you take a close look at the archive you
 will see that
 many of us have not installed mod_webapp on windos
 with success.
 The hanging is probably on the connector that
 mod_webapp uses.  I bet money
 if you make a jsp page that has no images it will
 work.  then add a gif and
 it should work.  add a jpeg and hang time for
 ever
 
 there is a bug and you can get the latest mod_webapp
 code from the jakarta
 cvs and build it(youll need MS Visual Studio 5.0 or
 higher) 
 OR
 you can install mod_jk (if your requirements allow)
 and you'll be happy for
 now.  I had the same problem with no real luck just
 good advise so I
 installed mod_jk and that works for me.  My windows
 box is a development box
 not production(thank god) and it works fine.
 Good luck
 Brian Adams
 
 -Original Message-
 From: Terry McBride [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 14, 2002 2:10 PM
 To: [EMAIL PROTECTED]
 Subject: mod_webapp hanging apache Win 2000 apache
 1.3.22 tomcat4.0 
 
 
 After searching the archives all I have seen is that
 people seem to get this to work pretty easily.
 Unfortunately not me :( .  They've been working
 seperately for a while.
 
 When I use mod_webapp and run tomcat apache hangs
 forever.  I tried telnet localhost 80 and it just
 sits
 there.  Same thing with the web browser (doesn't
 even
 come back with page not found-just hangs).  If they
 are both running and I shutdown tomcat, boom, apache
 works.
 
 Apache's error.log contains nothing.  No tomcat logs
 contain anything.
 
 Has anybody out there had the same problem?  How do
 I
 fix it?  It's coming up on crunch time for me and
 I'm
 scared that tomcat standalone will not be able to
 handle the traffic.  I work for the King Papers
 Project at Stanford and we're trying to launch this
 before the Holiday.
 
 Thanks for any help,
 Terry
 
 #Here is output from tomcat to the console --#
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0-b6-dev
 Starting service Tomcat-Apache
 Apache Tomcat/4.0-b6-dev

[org.apache.catalina.connector.warp.WarpConnectionHandler]
 New instance created

[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Setting connection

[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Setting Request ID 0
 
 
 
 # Here is part of my httpd.conf ---#
 ServerName 171.64.248.194
 
 LoadModule webapp_module modules/mod_webapp.so
 AddModule mod_webapp.c
 
 WebAppConnection launch warp localhost:8008
 WebAppDeploy launchpads   launch /launchpads
 WebAppInfo /webapp-info
 
 # Here is part of my server.xml ---#  Service
 name=Tomcat-Apache
 
 Connector

className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5
 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/
 
 !-- Replace localhost with what your Apache
 ServerName is set to --
 Engine

className=org.apache.catalina.connector.warp.WarpEngine
   name=Apache defaultHost=171.64.248.194
 debug=0 appBase=webapps
 
   !-- 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
 
 
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL

RE: mod_webapp and Tomcat tip

2002-01-11 Thread Brian Adams

cool tip..
did not know that. 
thanks,
Brian

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: mod_webapp and Tomcat tip


Hi,

This may be obvious but, it helped me.

Enabling the /webapp-info context as specified in the README file for
mod_webapp will tell you where it's looking for your Tomcat web apps:

Add this line:
WebAppInfo /webapp-info

to your Apache httpd.conf file.

Browsing http://host.com/webapp-info will tell you where mod_webapp is
looking.  The Local Deployment Path is where it's trying to access your
web apps.

Saved me some head scratching.

-Mark

.oO Mark Donoghue
.oO System Administrator
.oO ST, Pearson Education
.oO mark[dot]donoghue[at]pearsoned[dot]com

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

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




RE: mod_webapp.c

2002-01-09 Thread Brian Adams

don't actually need the file just a handle to the module (Load...).
try it :)


-Original Message-
From: Ansalvish, Dave R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 11:58 AM
To: '[EMAIL PROTECTED]'
Subject: mod_webapp.c


Hi,

 I got TOMCAT 4.0.1 installed and running on my Solaris boxes as a
standalone server.  Now I'm ready to integrated TOMCAT with our Apache
servers.  So after reading the online documentation I downloaded the Solaris
version of mod_webapp.so.  Now I must be getting stupid or senile, but
according to the documentation I need to have an 'add module mod_webapp.c'
in the my httpd.conf.  Since I only downloaded the 'so' file. Where can I
get the mod_webapp.c or don't I actually need the file.

Dave

Also,

 I want to thank all those people who sent me helpful hints on getting
TOMCAT working on my one Solaris server. I finally traced the problem to an
httpproxy that was installed by another administrator and it ran on port
8080.

Dave Ansalvish

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

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




RE: Tomcat v4.01 refuses to install on WinXP

2002-01-09 Thread Brian Adams

this is a know problem it is in your registry.
I don't know where exactly but it has been posted here before.look through
the last 45 days and you will see it.
or wait and someone will answer with more precision than me. :)


-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 3:53 AM
To: Tomcat User
Subject: Tomcat v4.01 refuses to install on WinXP


Hi all,

I have had a long lasting headache trying to get the Installshield
version of Tomcat to install at all under Windows XP.

I have tried both the IBM JDK v1.3, and the Sun JDK (enterprise edition)
v1.3, and neither of these JDKs can be found by the Tomcat
Installshield. In both cases the error message is:

Couldn't find a Java Development Kit installed on this computer. Please
download one from http://java.sun.com;

There is nothing I can find in the release notes to say that XP is
specifically not supported, nor is there an explanation anywhere of
where Tomcat is trying to find the JDK (registry? environment? somewhere
else?), nor is there is an option to say point me at a JDK, which is a
pretty obvious pice of functionality to have.

I've just sold the concept of Tomcat to a bunch of people as being
pretty easy to use - so far it's impossible to use under windows, and
I'm pretty embarrassed about the whole thing. Is there some guiding
light anyone can share?

Regards,
Graham
-- 
-
[EMAIL PROTECTED]There's a moon
over Bourbon Street
tonight...

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




RE: Standard SSL question

2002-01-09 Thread Brian Adams

actually you can just use
request.isSecure();
it is built in to ServletRequest
:)


-Original Message-
From: Corey A. Johnson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 5:55 PM
To: Tomcat Users List
Subject: Re: Standard SSL question


I have done something similar..  by checking the start of the String
returned by request.getHeader(host)  And do a response.semdRedirect to
the secure version of the page.

if(!request.getHeader(host).startsWith(https:))
response.sendRedirect(https://www.domain.com/securePage.jsp;);

Or you can redirect to an error page.. and have it META REFRESH and link
to the secure version.

Hope that helps.

Cj

Steve Mactaggart wrote:

Hello all,

I need to make it that certain pages on the site are accessed via SSL, is
there a way in tomcat to reject the connection of http to a specific page
(ie securePage.jsp) but still allow http access to other pages (ie.
standardPage.jsp).

Pages like login, CC submission etc..  need to be secure and I want to make
sure that they are always accessed via SSL.

Hope there's an answer..


Steve Mactaggart
Senior Java Developer /
Team Leader

303 Sport
BH: 9620 7477
FAX 9620 7377





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



--
corey a. johnson  cni  1.321.259.1984  1.800.264.5547




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



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




RE: Odd Apache+Tomcat errors

2002-01-07 Thread Brian Adams

are you logging at debug level?
what does it show when you do?

SSLLog logs/SSL.log 
SSLLogLevel debug
 
in your httpd.conf (in case you are not familiar)
B 


-Original Message-
From: Mario Felarca [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Odd Apache+Tomcat errors


At 04:34 PM 01/07/2002 -0500, you wrote:

I had the same lock-up problem for the myapp sample webapp when Apache,
Tomcat, and IE5.0 where all running on the same win2000Pro box.

I got the myapp sample webapp to work (serve images) though in both of the
following two situations:

1.  running IE5.0 browser from a different machine (from that running
Apache
and Tomcat)
2.  Using Netscape 6.2 on the same machine as Apache and Tomcat.

Interesting. I haven't tried the NS 6.2 yet, but I know that we are 
experiencing these drop-outs even when browsing from machines other than 
the server itself.

Does anyone have any ideas as to how to try to pin this down further? I too 
think it has to do with the connector but I would like to isolate it to be 
sure, and if possible try to find some way to reduce the number of request 
drops.

Would trying to use another connector help? Or would removing SSL from the 
equation help?

Thanks in advance,

Mario-


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


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

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




RE: JDBC for mySQL

2002-01-01 Thread Brian Adams

yep!
http://jdbc.postgresql.org/

http://sourceforge.net/project/showfiles.php?group_id=15923

both work with tomcat!
have fun.
B

-Original Message-
From: Simon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 01, 2002 12:44 PM
To: Tomcat Users List
Subject: JDBC for mySQL


Sorry, this goes a little out of topic.

Are there JDBC driver for MySQL and postgres? Any these drivers work with
tomcat?

Simon.


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



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




RE: Problem with the mod_webapp connector

2001-12-27 Thread Brian Adams

Hi Marcelo,
If you check the archive around mid November to Dec 10 you will see many
posts from me and others on this problem.
Bottom line, it no worky!
I heard of some that download the warp connector from cvs and compiled tthat
and they never replied to the list to say if it worked or not.  I finally
went back to mod_jk on my windows box but use warp webapp on linux(works
just fine)
sorry not more
B
  -Original Message-
  From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 27, 2001 5:59 PM
  To: Tomcat Users List
  Subject: Problem with the mod_webapp connector


  Hi everybody!  I have a mission for this list :-)

  When I install Tomcat 4.0.1 and Apache 1.3.22 in an environment W2K
  professional with JDK 1.3.1 and the mod_webapp WARP connector, I get the

  following problem:

  Whenever I try to access the Tomcat example index page:

  [...]/examples/jsp/index.html

  The plain text is displayed, but then Apache hangs downloading the gifs.

  And I have to restart Apache.

  However I do not have the problem running Tomcat in Stand-alone mode.

  Thanks in advance and i will appreciate so much a solution to this
  trouble.


  Marcelo







RE: servlet can't access postgreSQL database

2001-12-24 Thread Brian Adams

Hi, I am running it on Windows and  put it in common\lib  and did not touch
any files and it sees it.
hmmm...
I have a redhat box and I have not dropped in the jar yet I will try...
B

-Original Message-
From: Sanjeev Rathore [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 10:50 PM
To: [EMAIL PROTECTED]
Subject: servlet can't access postgreSQL database


Hi

I am trying to use servlet to access postgreSQL
database but I am not able to. I am able to run
servlets just fine as long as they don't try to access
postgreSQL database.  If I run stand alone Java
program, then I am able to access postgreSQL database
just fine.  I use: export
CLASSPATH=/usr/local/jakarta-tomcat-4.0/common/lib/jdbc7.1-1.2.jar:${CLASSPA
TH}
to install the driver.  I am using RedHat 7.2, and
have installed all the postgreSQL RPMs that came with
the CD.  Please can somebody help me as to what I am
doing wrong.  Do I have to edit some XML file?

thanks,
Sanjeev R.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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



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




RE: servlet can't access postgreSQL database

2001-12-24 Thread Brian Adams

yep, just dropped it in common/lib in RedHat and restarted tomcat and it
worked.
:)
B
checked conf files, no sign of any postrgesql confs.


-Original Message-
From: Sanjeev Rathore [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 10:50 PM
To: [EMAIL PROTECTED]
Subject: servlet can't access postgreSQL database


Hi

I am trying to use servlet to access postgreSQL
database but I am not able to. I am able to run
servlets just fine as long as they don't try to access
postgreSQL database.  If I run stand alone Java
program, then I am able to access postgreSQL database
just fine.  I use: export
CLASSPATH=/usr/local/jakarta-tomcat-4.0/common/lib/jdbc7.1-1.2.jar:${CLASSPA
TH}
to install the driver.  I am using RedHat 7.2, and
have installed all the postgreSQL RPMs that came with
the CD.  Please can somebody help me as to what I am
doing wrong.  Do I have to edit some XML file?

thanks,
Sanjeev R.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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



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




<    1   2   3   4   5   6   >