Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-06-30 Thread Luminous Heart

Do I understand that mod_jk version 1 works with
tomcat4.1 and apache2.0.x? I somehow understood from
the configuration files, that look for mod_jk2.so that
you can not use but jk2. If my understanding is wrong
please let me know, and if you got any config tips on
that.

Thanks.

--- Liam Morley [EMAIL PROTECTED] wrote:
 I've temporarily given up on trying to configure
 mod_jk2 as my last post 
 on the issue came up without a response. (I'm
 secretly hoping that the 
 person developing jk2 is listening and is currently
 looking through the 
 logs I posted seeing if anything looks familiar..
 other than that, I'm 
 sticking with mod_jk v1 for production and getting
 ready to see if 4.1.6 
 is the answer to my prayers tomorrow.)
 
 Liam Morley
 
 Luminous Heart wrote:
 
 Was anyone able to get this combination to work on
 Linux? I am having lots of problems compiling
 especially mod_jk2.
 
 If anyone can share their configuration, or suggest
 a
 mini HowTo, I would appreciate that.
 
 Regards.
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-06-30 Thread Luminous Heart

I am doing similar to what you have here. When I start
my tomcat I get this error in my catalina.out
Quote
INFO: Initializing Coyote HTTP/1.1 on port 8003
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with
Ajp13Connector
   at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224)
-

---
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.3
/Quote 

Then I start my apache with apachectl startssl. When I
go to my
http://www.myserver.com:8003/examples/jsp/dates/date.jsp
I get this error:
Quote 
type Exception report

message 

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

exception 

javax.servlet.ServletException: Servlet.init() for
servlet jsp threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:947)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656)
/Quote 

What am I doing wrong?

--- Brian Millett [EMAIL PROTECTED] wrote:
 On Sun, 2002-06-30 at 17:11, Luminous Heart wrote:
  Do I understand that mod_jk version 1 works with
  tomcat4.1 and apache2.0.x? 
 
 Here is my stuff for tomcat 4.1.6, apache 2.0.39,
 redhat 7.2
 
 server.xml: (comment out the jk2 stuff)
 
 !-- Define a Coyote/JK2 AJP 1.3 Connector on
 port 8009 --
 !-- 
 Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5
 maxProcessors=75
enableLookups=true
 redirectPort=8443
acceptCount=10 debug=0
 connectionTimeout=2
useURIValidationHack=false
   

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 --
 
 !-- 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=3/
 
 
 Then in the apache httpd.conf I include this
 mod_jk.conf file:
 IfModule mod_jk.c

###
 # Apache Coyote JK Configuration File   
   

###
 
 JkWorkersFile
 /opt/apache/conf/workers.properties
 JkLogFile /opt/apache/logs/mod_jk.log
 JkLogLevel debug
 
 Alias /examples
 /opt/jakarta-tomcat/webapps/examples
 Directory /opt/jakarta-tomcat/webapps/examples
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
 /Directory
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 Alias /struts-example
 /opt/jakarta-tomcat/webapps/struts-example
 Directory
 /opt/jakarta-tomcat/webapps/struts-example
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
 /Directory
 JkMount /struts-example ajp13
 JkMount /struts-example/* ajp13
 
 Alias /struts-documentation
 /opt/jakarta-tomcat/webapps/struts-documentation
 Directory
 /opt/jakarta-tomcat/webapps/struts-documentation
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
 /Directory
 JkMount /struts-documentation ajp13
 JkMount /struts-documentation/* ajp13
 
 Alias /struts-exercise-taglib
 /opt/jakarta-tomcat/webapps/struts-exercise-taglib
 Directory

/opt/jakarta-tomcat/webapps/struts-exercise-taglib
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
 /Directory
 JkMount /struts-exercise-taglib ajp13
 JkMount /struts-exercise-taglib/* ajp13
 
 Alias /cocoon /opt/jakarta-tomcat/webapps/cocoon
 Directory /opt/jakarta-tomcat/webapps/cocoon
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
 /Directory
 JkMount /cocoon ajp13
 JkMount /cocoon/* ajp13
 
 /IfModule
 
 
 -- 
 Brian Millett
 Enterprise Consulting Group Shifts in paradigms
 (314) 205-9030 often cause nose
 bleeds.
 [EMAIL PROTECTED]   Greg Glenn

Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-06-30 Thread Luminous Heart

It seems that tomcat4.1.6 and tomcat4.1.3 (for this
matter) do not like jdk1.4! I get errors about not
being able to compile jsp files. If I switch Java_Home
to jdk1.2 it compiles fine. But of course 1.2 does not
support some of the new features in tomcat like
keepSocketAlive.

I guess I should stop here and wait till tc4.1 has
matured before I dip in it.

Regards.

--- Luminous Heart [EMAIL PROTECTED] wrote:
 I am doing similar to what you have here. When I
 start
 my tomcat I get this error in my catalina.out
 Quote
 INFO: Initializing Coyote HTTP/1.1 on port 8003
 ServerLifecycleListener: createMBeans:
 MBeanException
 java.lang.Exception: ManagedBean is not found with
 Ajp13Connector
at

org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224)
 -
 
 ---
   at
 java.lang.reflect.Method.invoke(Method.java:324)
   at

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.3
 /Quote 
 
 Then I start my apache with apachectl startssl. When
 I
 go to my

http://www.myserver.com:8003/examples/jsp/dates/date.jsp
 I get this error:
 Quote 
 type Exception report
 
 message 
 
 description The server encountered an internal error
 () that prevented it from fulfilling this request.
 
 exception 
 
 javax.servlet.ServletException: Servlet.init() for
 servlet jsp threw exception
   at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:947)
   at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656)
 /Quote 
 
 What am I doing wrong?
 
 --- Brian Millett [EMAIL PROTECTED] wrote:
  On Sun, 2002-06-30 at 17:11, Luminous Heart wrote:
   Do I understand that mod_jk version 1 works with
   tomcat4.1 and apache2.0.x? 
  
  Here is my stuff for tomcat 4.1.6, apache
 2.0.39,
  redhat 7.2
  
  server.xml: (comment out the jk2 stuff)
  
  !-- Define a Coyote/JK2 AJP 1.3 Connector on
  port 8009 --
  !-- 
  Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5
  maxProcessors=75
 enableLookups=true
  redirectPort=8443
 acceptCount=10 debug=0
  connectionTimeout=2
 useURIValidationHack=false

 

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
  --
  
  !-- 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=3/
  
  
  Then in the apache httpd.conf I include this
  mod_jk.conf file:
  IfModule mod_jk.c
 

###
  # Apache Coyote JK Configuration File 
  

 

###
  
  JkWorkersFile
  /opt/apache/conf/workers.properties
  JkLogFile /opt/apache/logs/mod_jk.log
  JkLogLevel debug
  
  Alias /examples
  /opt/jakarta-tomcat/webapps/examples
  Directory /opt/jakarta-tomcat/webapps/examples
   Options Indexes MultiViews All
   AllowOverride FileInfo AuthConfig Limit
   Limit GET POST
  Order deny,allow
  Deny from all
  Allow from 192.168.250.
   /Limit
  /Directory
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  
  Alias /struts-example
  /opt/jakarta-tomcat/webapps/struts-example
  Directory
  /opt/jakarta-tomcat/webapps/struts-example
   Options Indexes MultiViews All
   AllowOverride FileInfo AuthConfig Limit
   Limit GET POST
  Order deny,allow
  Deny from all
  Allow from 192.168.250.
   /Limit
  /Directory
  JkMount /struts-example ajp13
  JkMount /struts-example/* ajp13
  
  Alias /struts-documentation
  /opt/jakarta-tomcat/webapps/struts-documentation
  Directory
 
 /opt/jakarta-tomcat/webapps/struts-documentation
   Options Indexes MultiViews All
   AllowOverride FileInfo AuthConfig Limit
   Limit GET POST
  Order deny,allow
  Deny from all
  Allow from 192.168.250.
   /Limit
  /Directory
  JkMount /struts-documentation ajp13
  JkMount /struts-documentation/* ajp13
  
  Alias /struts-exercise-taglib
 
 /opt/jakarta-tomcat/webapps/struts-exercise-taglib
  Directory
 

/opt/jakarta-tomcat/webapps/struts-exercise-taglib
   Options Indexes MultiViews All
   AllowOverride FileInfo AuthConfig Limit
   Limit GET POST
  Order deny,allow
  Deny from all
  Allow from 192.168.250.
   /Limit
  /Directory
  JkMount /struts-exercise-taglib ajp13
  JkMount /struts-exercise-taglib/* ajp13
  
  Alias /cocoon /opt/jakarta-tomcat/webapps/cocoon
  Directory /opt/jakarta-tomcat/webapps/cocoon
   Options Indexes

Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-07-01 Thread Luminous Heart

I am using new directory for each version of tomcat.
But the problem, that I noticed is that tomcat4.1.x
does not like JDK1.4. Is it only me?


--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Mon, 1 Jul 2002, Brian Millett wrote:
 
  Date: Mon, 01 Jul 2002 07:13:09 -0500
  From: Brian Millett [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: Tomcat Users List
 [EMAIL PROTECTED]
  Subject: Re: apache2.0.39 + tomcat4.1.x +
 mod_jk2.so
 
  On Sun, 2002-06-30 at 20:41, Luminous Heart wrote:
   It seems that tomcat4.1.6 and tomcat4.1.3 (for
 this
   matter) do not like jdk1.4! I get errors about
 not
   being able to compile jsp files. If I switch
 Java_Home
   to jdk1.2 it compiles fine. But of course 1.2
 does not
   support some of the new features in tomcat like
   keepSocketAlive.
  
  I only get jsp errors when I forget to delete the
 work dir after
  upgrading a version of jasper.  Try deleting
 'work/*', then try again.
 
 Or install the new Tomcat in a new directory. 
 Installing new versions on
 top of old ones is just asking for trouble.
 
 Craig
 
 
  --
  Brian Millett
  Enterprise Consulting Group Shifts in
 paradigms
  (314) 205-9030 often cause
 nose bleeds.
  [EMAIL PROTECTED]   Greg Glenn
 
 
  --
  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]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Re[2]: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-07-01 Thread Luminous Heart

I am not sure why I am having bad luck with that combo
on Linux then!


--- Jacob Kjome [EMAIL PROTECTED] wrote:
 Hello Luminous,
 
 Works fine for me using Tomcat-4.1.6, Apache-2.0.39,
 and j2sdk1.4.0_01
 on Win2k.
 
 Jake
 
 Monday, July 01, 2002, 2:28:22 PM, you wrote:
 
 LH I am using new directory for each version of
 tomcat.
 LH But the problem, that I noticed is that
 tomcat4.1.x
 LH does not like JDK1.4. Is it only me?
 
 
 LH --- Craig R. McClanahan [EMAIL PROTECTED]
 wrote:
  
  
  On Mon, 1 Jul 2002, Brian Millett wrote:
  
   Date: Mon, 01 Jul 2002 07:13:09 -0500
   From: Brian Millett [EMAIL PROTECTED]
   Reply-To: Tomcat Users List
  [EMAIL PROTECTED]
   To: Tomcat Users List
  [EMAIL PROTECTED]
   Subject: Re: apache2.0.39 + tomcat4.1.x +
  mod_jk2.so
  
   On Sun, 2002-06-30 at 20:41, Luminous Heart
 wrote:
It seems that tomcat4.1.6 and tomcat4.1.3
 (for
  this
matter) do not like jdk1.4! I get errors
 about
  not
being able to compile jsp files. If I switch
  Java_Home
to jdk1.2 it compiles fine. But of course 1.2
  does not
support some of the new features in tomcat
 like
keepSocketAlive.
   
   I only get jsp errors when I forget to delete
 the
  work dir after
   upgrading a version of jasper.  Try deleting
  'work/*', then try again.
  
  Or install the new Tomcat in a new directory. 
  Installing new versions on
  top of old ones is just asking for trouble.
  
  Craig
  
  
   --
   Brian Millett
   Enterprise Consulting Group Shifts in
  paradigms
   (314) 205-9030 often cause
  nose bleeds.
   [EMAIL PROTECTED]   Greg Glenn
  
  
   --
   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]
  
 
 
 LH
 __
 LH Do You Yahoo!?
 LH Yahoo! - Official partner of 2002 FIFA World Cup
 LH http://fifaworldcup.yahoo.com
 
 LH --
 LH To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 LH For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 -- 
 Best regards,
  Jacob   
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




apache2.0.39 + tomcat4.1.x Virtual Hosts

2002-07-02 Thread Luminous Heart

I managed to upgrade to the above combo on Linux. My
site runs 2 different domain names. Each of these
domains has 3 subsites something like sub1.domain1.com
and sub2.domain2.com. 

All my applications set in /usr/local/tomcat/webapps.
I have Virtual Hosts and Contexts defined for my
applications. For example AppX1 should only be
accessed from www.domain2.com/AppX1/index.jsp, when I
type www.domain1.com/AppX1/index.jsp I still can see
that application. 

My server.xml defines Host for each domain I have,
also these hosts are mapped to VirtualHosts in my
mod_jk.conf. 

Why virtual hosts is not working with 2.0.39 while the
same configuration was working fine with 1.3.14 with
tc2.3.x?

If anyone has a tip I would appreciate it so much.


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): a failed attempt

2002-07-06 Thread Luminous Heart

If you are able to get tomcat4 + apache2 to work with
VirtualHosts; i.e domain2.com/app1 domain1.com/app2
but not domain2.com/app2 domain1.com/app1. If this
seperation of VirtualHosts and Contexts worked for
you, please ##PLEASE## let me know how you did it. 

I upgraded from apache1.3+tc2.3 where my virtualhosts
and contexts did not cross. Now I can not get any
virtual host or context/application to stay in its
pin. I have posted three messages on this board with
this regard, but it seems either noone has ran into a
problem or no one has done similar work.

So, again, if you are going that path let me know.

Regards.

--- Daniel Farinha [EMAIL PROTECTED]
wrote:
 Of course!
 
 I did read somewhere that you can use mod_jk, but I
 must admit after so
 many frustrating hours trying to make mod_jk2 work I
 forgot about that
 and was just about to go back to Apache 1.3.
 Thank you for reminding me, I have now linked
 tomcat4 and apache2 with
 mod_jk.
 
 Still, in order to compile mod_jk from the
 connectors-4.0.4 source I had
 first to compile the coyote code, and therefore hack
 the source as I
 mentioned in my original post. This didn't happen
 with connectors-4.0.2.
 A bit of a nuisance...
 
 Anyway, with this working my next task is to get it
 working with tomcat
 and apache on separate boxes. More hours of
 frustration I bet ;)
 I could hardly find any documentation regarding this
 kind of setup, can
 anyone offer any useful pointers?
 
 Andrew, thanks again for the tip.
 
 Dan
 
  -Original Message-
  From: Andrew Conrad [mailto:[EMAIL PROTECTED]] 
  Sent: 07 July 2002 00:00
  To: 'Tomcat Users List';
 [EMAIL PROTECTED]
  Subject: RE: tomcat_4.0.4 + apache_2.0.39 +
 mod_jk2 (linux): 
  a failed attempt
  
  
  You know that you could use mod_jk with Apache 2,
 correct?
  
  - Andrew
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Apache2.0.39 VirtualHosts Does not work Even when tomcat is out!

2002-07-09 Thread Luminous Heart

I have disabled tomcat for this experiment. I have
built apache2.0.39 with tomcat4.0.4 on RH linux7.1.

I have two domain names that use one ip address:

- domain1.com
- domain2.com
- ip: 10.0.0.15 

the two domains point at two directories:
- /usr/local/apache2/htdocs/domain1
- /usr/local/apache2/htdocs/domain2

My configuration is not working for any domain. I have
disabled tomcat and removed domain2. When I point my
browser at http://www.domain1.com I get an index.html
page that is located on /usr/local/apache2/htdocs and
NOT the one in domain1. Even when I point at
http://www.domain2.com I still get the same. 

To troubleshoot, I renamed the whole directory htdocs
into webpages to see if apache is seeking that
directory regardless of my configuration. It seems
that my findings are true. Now when I point my browser
at either domain I get a 403 error 

Access forbidden!
You don't have permission to access the requested
directory. There is either no index document or the
directory is read-protected. 
If you think this is a server error, please contact
the webmaster 
Error 403


I am attaching my httpd.conf file so someone might
take a look and tell me where am going wrong.

Thank you all in advance.

Dump-Of-File-HTTPD.CONF

ServerRoot /usr/local/apache2


IfModule !mpm_winnt.c
IfModule !mpm_netware.c
#LockFile logs/accept.lock
/IfModule
/IfModule


IfModule !mpm_netware.c
IfModule !perchild.c
#ScoreBoardFile logs/apache_runtime_status
/IfModule
/IfModule


IfModule !mpm_netware.c
PidFile logs/httpd.pid
/IfModule

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100
KeepAliveTimeout 15

IfModule prefork.c
StartServers 5
MinSpareServers  5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild  0
/IfModule

IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75 
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

IfModule perchild.c
NumServers   5
StartThreads 5
MinSpareThreads  5
MaxSpareThreads 10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
/IfModule

Listen 2003
#Listen 80


LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module
modules/mod_auth_digest.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
IfDefine SSL
LoadModule ssl_module modules/mod_ssl.so
/IfDefine
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module
modules/mod_vhost_alias.so
LoadModule negotiation_module
modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

ExtendedStatus On

IfModule !mpm_winnt.c
IfModule !mpm_netware.c

User nobody
Group #-1
/IfModule
/IfModule

ServerAdmin [EMAIL PROTECTED]

ServerName www.domain1.com
UseCanonicalName Off

Directory /
Options FollowSymLinks
AllowOverride None
/Directory



UserDir public_html


DirectoryIndex index.html index.jsp index.html.var

AccessFileName .htaccess

Files ~ ^\.ht
Order allow,deny
Deny from all
/Files

TypesConfig conf/mime.types

DefaultType text/plain

IfModule mod_mime_magic.c
MIMEMagicFile conf/magic
/IfModule

HostnameLookups Off

ErrorLog logs/error_log

LogLevel warn

LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\
\%{User-Agent}i\ combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent

CustomLog logs/access_log common

CustomLog logs/referer_log referer
CustomLog logs/agent_log agent

ServerSignature On

Alias /icons/ /usr/local/apache2/icons/

Directory /usr/local/apache2/icons
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory

Alias /manual /usr/local/apache2/manual

Directory /usr/local/apache2/manual
Options Indexes FollowSymLinks MultiViews
IncludesNoExec
AddOutputFilter Includes 

Error starting tc4.1.7b!

2002-07-11 Thread Luminous Heart

I downloaded tc4.1.7beta binary, expanded on my linux
box and fired startup.sh after setting 

JAVA_HOME=/usr/local/j2sdk1.4.0

export CATALINA_OPTS='-Xms1 -Xmx15000
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.et
eks.java2d.PJAGraphicsEnvironment
-Djava.awt.fonts=/usr/local/j2sdk1.4.0/jre/lib/fonts/'

When I typed
http://localhost:8080/examples/jsp/dates/date.jsp I
got the following error. The same thing happen when I
try the ROOT.

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

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

Generated servlet error:
[javac] Compiling 1 source file
/usr/local/tomcat/work/Standalone/localhost/examples/jsp/dates/date$jsp.java:101:
handlePageException(java.lang.Exception) in
javax.servlet.jsp.PageContext cannot be applied to
(java.lang.Throwable)
  if (pageContext != null)
pageContext.handlePageException(t);
  ^
1 error

Any idea?

Regards.


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




RE: Error starting tc4.1.7b!

2002-07-11 Thread Luminous Heart

I added this -server option to catalina options. Thank
you for pointing that out. But how to get read of the
compile errors? Have you been able to get 4.1.7 to
work?

regards.

--- Jackson, Stephen [EMAIL PROTECTED]
wrote:
 when you getting it working another very good option
 to try is -server.
 It can improve performace by up to 50% (depending on
 OS).
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 12:15 PM
 To: Tomcat Users List
 Subject: Error starting tc4.1.7b!
 
 
 I downloaded tc4.1.7beta binary, expanded on my
 linux
 box and fired startup.sh after setting 
 
 JAVA_HOME=/usr/local/j2sdk1.4.0
 
 export CATALINA_OPTS='-Xms1 -Xmx15000
 -Dawt.toolkit=com.eteks.awt.PJAToolkit
 -Djava.awt.graphicsenv=com.et
 eks.java2d.PJAGraphicsEnvironment

-Djava.awt.fonts=/usr/local/j2sdk1.4.0/jre/lib/fonts/'
 
 When I typed
 http://localhost:8080/examples/jsp/dates/date.jsp I
 got the following error. The same thing happen when
 I
 try the ROOT.
 
 org.apache.jasper.JasperException: Unable to compile
 
 class for JSP
 
 An error occurred at line: -1 in the jsp file: null
 
 Generated servlet error:
 [javac] Compiling 1 source file

/usr/local/tomcat/work/Standalone/localhost/examples/jsp/dates/date$jsp.java
 :101:
 handlePageException(java.lang.Exception) in
 javax.servlet.jsp.PageContext cannot be applied to
 (java.lang.Throwable)
   if (pageContext != null)
 pageContext.handlePageException(t);
   ^
 1 error
 
 Any idea?
 
 Regards.
 
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




tc4.1.7b connector (native2) build problem

2002-07-11 Thread Luminous Heart

./configure --with-apache2=/usr/local/apache2
--with-tomcat41=/usr/local/tomcat
--with-java=/usr/local/j2sdk1.4.0
--with-apxs2=/usr/local/apache2/bin/apxs

everything works fine but near the end I get:
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for apache-2.0
configure: error: can't locate /usr/local/apache2/


What is going on?


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




jdk1.4 vs jdk1.2

2002-07-14 Thread Luminous Heart

Tomcat 4.1.7 fails to compile any jsp files giving
some stupid error about handleException. If I change
the JDK to 1.2 everything works fine. Is tomcat4.1.x
allergic to jdk1.4?


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




RE: jdk1.4 vs jdk1.2

2002-07-14 Thread Luminous Heart
)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)





Apache Tomcat/4.1.7
== End Error =

--- Clay Graham [EMAIL PROTECTED] wrote:
 I know that tomcat 4.1.x is not allergic to jdk1.4,
 it is what I am running. (4.1.3  jdk1.4)
 
 the devil of course my friend is in the details,
 what exactly is your stupid error...
 
 clay
 
 
 
 
 -Original Message-
 From: Luminous Heart [SMTP:[EMAIL PROTECTED]]
 Sent: Sunday, July 14, 2002 1:51 PM
 To:   Tomcat Users List; Joe Schiavone
 Subject:  jdk1.4 vs jdk1.2
 
 Tomcat 4.1.7 fails to compile any jsp files giving
 some stupid error about handleException. If I change
 the JDK to 1.2 everything works fine. Is tomcat4.1.x
 allergic to jdk1.4?
 
 
 __
 Do You Yahoo!?
 Yahoo! Autos - Get free new car price quotes
 http://autos.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




RE: jdk1.4 vs jdk1.2

2002-07-14 Thread Luminous Heart

Here you go, just a peice of the error page.

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

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

Generated servlet error:
[javac] Compiling 1 source file
/usr/local/tomcat/work/Standalone/localhost/_/index$jsp.java:276:
handlePageException(java.lang.Exception) in
javax.servlet.jsp.PageContext cannot be applied to
(java.lang.Throwable)
  if (pageContext != null)
pageContext.handlePageException(t);
  ^
1 error

I found I have a copy of servlet.jar in my pja_2_3
directory. I thought that was the reason. I deleted
that copy. Even copied the latest servlet.jar from
tomcat4.1.7 to the pja directory but nothing changed,
same error as above.

--- Clay Graham [EMAIL PROTECTED] wrote:
 I know that tomcat 4.1.x is not allergic to jdk1.4,
 it is what I am running. (4.1.3  jdk1.4)
 
 the devil of course my friend is in the details,
 what exactly is your stupid error...
 
 clay
 
 
 
 
 -Original Message-
 From: Luminous Heart [SMTP:[EMAIL PROTECTED]]
 Sent: Sunday, July 14, 2002 1:51 PM
 To:   Tomcat Users List; Joe Schiavone
 Subject:  jdk1.4 vs jdk1.2
 
 Tomcat 4.1.7 fails to compile any jsp files giving
 some stupid error about handleException. If I change
 the JDK to 1.2 everything works fine. Is tomcat4.1.x
 allergic to jdk1.4?
 
 
 __
 Do You Yahoo!?
 Yahoo! Autos - Get free new car price quotes
 http://autos.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




RE: jdk1.4 vs jdk1.2

2002-07-14 Thread Luminous Heart

When I start tomcat I get these messages at the
prompt:
 ../bin/startup.sh 
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.0

As you can see, JAVA_HOME is set to
usr/local/j2sdk1.4.0. Which is the correct jdk1.4. I
have JAVA_HOME defined in the catalina.sh script.
Should I do anything else/different?

--- Clay Graham [EMAIL PROTECTED] wrote:
 it seems to me that your compiler is not being
 called. the root cause is 
 probably your JAVA_HOME specification. secondly make
 sure you are pointing 
 to the JDK1.4 not JRE1.4 because there is no javac
 in JRE...
 
 maybe helps you?
 
 clay
 
 
 -Original Message-
 From: Luminous Heart [SMTP:[EMAIL PROTECTED]]
 Sent: Sunday, July 14, 2002 2:12 PM
 To:   Tomcat Users List; [EMAIL PROTECTED]
 Subject:  RE: jdk1.4 vs jdk1.2
 
 Hope the log is not too excessive!
 
 == Error ==
 
 HTTP Status 500 -
 


  
 
 
 type Exception report
 
 message
 
 description The server encountered an internal error
 () that prevented it from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: Unable to compile
 class for JSP
   at

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
  
 va:481)
   at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
  
 va:182)
   at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
   at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
  
 tionFilterChain.java:247)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
  
 erChain.java:193)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
  
 e.java:260)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
  
 nvokeNext(StandardPipeline.java:643)
   at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
  
 e.java:191)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
  
 nvokeNext(StandardPipeline.java:643)
   at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
   at

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

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
  
 nvokeNext(StandardPipeline.java:643)
   at

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

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
  
 nvokeNext(StandardPipeline.java:641)
   at

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

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
  
 nvokeNext(StandardPipeline.java:641)
   at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
  
 java:174)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
  
 nvokeNext(StandardPipeline.java:643)
   at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
   at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
  
 onnection(Http11Protocol.java:380)
   at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
  
 .java:533)
   at java.lang.Thread.run(Thread.java:536)
 
 
 root cause
 
 org.apache.jasper.JasperException: Unable to compile
 class for JSP
 
 An error occurred at line: -1 in the jsp file: null
 
 Generated servlet error:
 [javac] Compiling 1 source file

/usr/local/tomcat/work/Standalone/localhost/_/index$jsp.java:276:
 handlePageException(java.lang.Exception) in
 javax.servlet.jsp.PageContext cannot be applied to
 (java.lang.Throwable

RE: jdk1.4 vs jdk1.2 ==Here is the error page. MAYBE A DEVELOPER OF THIS THING WOULD KNOW!

2002-07-14 Thread Luminous Heart
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Apache Tomcat/4.1.7

--- Luminous Heart [EMAIL PROTECTED] wrote:
 When I start tomcat I get these messages at the
 prompt:
  ../bin/startup.sh 
 Using CATALINA_BASE:   /usr/local/tomcat
 Using CATALINA_HOME:   /usr/local/tomcat
 Using CATALINA_TMPDIR: /usr/local/tomcat/temp
 Using JAVA_HOME:   /usr/local/j2sdk1.4.0
 
 As you can see, JAVA_HOME is set to
 usr/local/j2sdk1.4.0. Which is the correct jdk1.4. I
 have JAVA_HOME defined in the catalina.sh script.
 Should I do anything else/different?
 
 --- Clay Graham [EMAIL PROTECTED] wrote:
  it seems to me that your compiler is not being
  called. the root cause is 
  probably your JAVA_HOME specification. secondly
 make
  sure you are pointing 
  to the JDK1.4 not JRE1.4 because there is no javac
  in JRE...
  
  maybe helps you?
  
  clay
  
  
  -Original Message-
  From:   Luminous Heart
 [SMTP:[EMAIL PROTECTED]]
  Sent:   Sunday, July 14, 2002 2:12 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject:RE: jdk1.4 vs jdk1.2
  
  Hope the log is not too excessive!
  
  == Error ==
  
  HTTP Status 500 -
  
 


   
  
  
  type Exception report
  
  message
  
  description The server encountered an internal
 error
  () that prevented it from fulfilling this request.
  
  exception
  
  org.apache.jasper.JasperException: Unable to
 compile
  class for JSP
  at
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
   
  va:481)
  at
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
   
  va:182)
  at
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
  at
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  at
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
  at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
   
  tionFilterChain.java:247)
  at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
   
  erChain.java:193)
  at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
   
  e.java:260)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
   
  nvokeNext(StandardPipeline.java:643)
  at
 

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995

How to get InitParameters.

2002-07-18 Thread Luminous Heart

I can access my parameters if I put them in this
format.

Context  Parameter ... //Contect

But if I use this format, which what I really want, I
can not access them using getInitParameter(name)

servlet
servlet-nametestbed/servlet-name
jsp-fileMail/testbed.jsp/jsp-file
init-param
  param-nameprotocol/param-name
  param-valueimap/param-value
/init-param
init-param
  param-namembox/param-name
  param-valueInbox/param-value
/init-param
init-param
 init-param
  param-namehost/param-name
  param-valuelocalhost/param-value
/init-param
  /servlet

What am I doing wrong! I am using tc4.

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




RE: How to get InitParameters.

2002-07-18 Thread Luminous Heart

Howdy back :)

This code, 
out.println(Try tip from **[EMAIL PROTECTED]**: 
+ getServletConfig().getInitParameter(host));

out.println(br);

out.println(h3Servlet init parameters/h3);
java.util.Enumeration e = getInitParameterNames();
while (e.hasMoreElements()) {
String key = (String)e.nextElement();
String value = getInitParameter(key);
out.println(+ key +  =  + value + br);

}

OutPut
Try tip from **[EMAIL PROTECTED]**: null 

Servlet init parameters
logVerbosityLevel = ERROR
/OutPut

out.println(h3Servlet init parameters/h3);
java.util.Enumeration e = getInitParameterNames();
while (e.hasMoreElements()) {
String key = (String)e.nextElement();
String value = getInitParameter(key);
out.println(+ key +  =  + value + br);

}
Will result in:

OutPut
Context init parameters
FoldersListFile = .mailfolderlist
SMTPHost = mail.myDomain.com
mbox = Inbox
other_mbox = Inbox
UploadDir = /usr/local/tomcat/webapps/xApp/upload/
BaseDir = /xApp/
imapsockettimeout = 1800
host = MyDomain.com
protocol = imap
imapconnectionzise = 4
MailUserHome = /home/mailuser/
imapconnectiontimeout = 1800
another shot at host: MyDomain.com 
/OutPut

From my xApp/WEB-INF/web.xml:

 servlet
servlet-nametestbed/servlet-name
jsp-fileMail/testbed.jsp/jsp-file
init-param
  param-nameprotocol/param-name
  param-valueimap/param-value
/init-param
  
 init-param
  param-namembox/param-name
  param-valueInbox/param-value
/init-param
init-param
  param-nameMailUserHome/param-name
  param-value/home/mailuser//param-value
/init-param
init-param
  param-nameBaseDir/param-name
  param-value/xApp//param-value
/init-param
init-param
  param-namehost/param-name
  param-valuemyDomain.com/param-value
/init-param
  init-param
  param-nameSMTPHost/param-name
  param-valuemail.myDomain.com/param-value
/init-param
init-param
  param-nameimapconnectiontimeout/param-name
  param-value60 * 30/param-value
/init-param
init-param
  param-nameimapsockettimeout/param-name
  param-value60 * 30/param-value
/init-param
 
init-param
  param-nameimapconnectionzise/param-name
  param-value4/param-value
/init-param
init-param
  param-nameUploadDir/param-name
 
param-value/usr/local/tomcat/webapps/xApp/upload//param-value
/init-param
 
init-param
  param-nameFoldersListFile/param-name
  param-value.mailfolderlist/param-value
/init-param
  /servlet
 
From my /usr/local/tomcat/conf/server.xml:

  Context path=/xApp
docBase=/usr/local/tomcat/webapps/xApp debug=0
reloadable=true 
Parameter name=protocol value=imap
override=false/
  Parameter name=other_mbox value=Inbox
override=false/
  Parameter name=mbox value=Inbox
override=false/
  Parameter name=MailUserHome
value=/home/mailuser/ override=false/
  Parameter name=BaseDir value=/xApp/
override=false/
  Parameter name=host value=myDomain.com
override=false/
 
  Parameter name=SMTPHost
value=mail.myDomain.com override=false/
  Parameter name=imapconnectiontimeout
value=1800 override=false/
  Parameter name=imapsockettimeout value=1800
override=false/
 
  Parameter name=imapconnectionzise value=4
override=false/
  Parameter name=UploadDir
value=/usr/local/tomcat/webapps/xApp/upload/
override=false/
 
  Parameter name=FoldersListFile
value=.mailfolderlist override=false/
/Context

if you notice the imapsockettimeout = 1800 exists in
server.xml while in web.xml it is  60 * 30 as in :
param-nameimapsockettimeout/param-name
  param-value60 * 30/param-value

And yes, my tomcat starts fine, and all the apps on it
work just fine. The only thing is passing parameters
to jsp on start.

Thank you for your help.

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 Howdy,
 Getting init parameters is usually a simple deal. 
 Please post the code
 you're using to get the parameters, and the results
 you get.  I'm
 assuming your tomcat environment is set up
 correctly, no errors on
 startup, the examples run, etc.?
 
 Typically,
 getServletConfig().getInitParameter(param-name)
 will get
 you back param-value.  
 
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 2:03 PM
 To: Tomcat Users List
 Subject: How to get InitParameters.
 
 I can access my parameters if I put them in this
 format.
 
 Context  Parameter ... //Contect
 
 But if I use this format, which what I really want,
 I
 can not access them using getInitParameter(name)
 
 servlet
 servlet-nametestbed/servlet-name
 jsp-fileMail/testbed.jsp/jsp-file
 init-param
   param-nameprotocol/param-name
   param-valueimap/param-value
 /init-param
 init-param
   param-namembox/param-name
   param-valueInbox/param-value
 /init-param
 init-param
  init-param
   param-namehost

I find lots of these messages in my mod_jk.log. Should I worry? I am using tc4.0.4 with apache2

2002-07-23 Thread Luminous Heart

[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (844)]:
Error connecting to the Tomcat process.
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (1153)]:
In jk_endpoint_t::service, ajp_send_request failed in
send loop 0
[Tue Jul 23 12:18:15 2002]  [jk_connect.c (151)]:
jk_open_socket, connect() failed errno = 111
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (599)]:
In jk_endpoint_t::ajp_connect_to_endpoint, failed
errno = 111
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (844)]:
Error connecting to the Tomcat process.
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (1153)]:
In jk_endpoint_t::service, ajp_send_request failed in
send loop 1
[Tue Jul 23 12:18:15 2002]  [jk_connect.c (151)]:
jk_open_socket, connect() failed errno = 111
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (599)]:
In jk_endpoint_t::ajp_connect_to_endpoint, failed
errno = 111
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (844)]:
Error connecting to the Tomcat process.
[Tue Jul 23 12:18:15 2002]  [jk_ajp_common.c (1153)]:
In jk_endpoint_t::service, ajp_send_request failed in
send loop 2


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: mod_jk load balacing configuration

2002-07-25 Thread Luminous Heart

This is my barebone configuration for tomcat4.0.4
3instances with loadbalancer. My OS is RHLinux 7.1,
and tomcat is 
connected to apache2.0.39 using mod_jk.so.

I hope this will be helpful to you and I would
appreciate it if anyone has a comment or enhancement.

### httpd.conf
Include /usr/local/tomcat/conf/mod_jk.conf

prod_jk resides in the main instance of tomcat. You do
not need to have mod_jk.conf in every instance of
tomcat.

### mod_jk.conf
This file will include all your virtual hosts
definition together with needed parameters for mod_jk.
All the defaults can go there, I am not going to put
my stuff here for you, but get the hint ;)

JkMount /* loadbalancer
JkMount /servlet/* loadbalancer

JkMount /manager loadbalancer
JkMount /manager/* loadbalancer

 Worker.properties.

workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/j2sdk1.4.0
ps=/

worker.list=tc13,intra13, extra13, loadbalancer

worker.tc13.port=8039
worker.tc13.host=localhost
worker.tc13.type=ajp13
worker.tc13.lbfactor=1

worker.intra13.port=8049
worker.intra13.host=localhost
worker.intra13.type=ajp13
worker.intra13.lbfactor=1

worker.extra13.port=8059
worker.extra13.host=localhost
worker.extra13.type=ajp13
worker.extra13.lbfactor=1


worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tc13, intra13,
extra13

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

 End Worker file. 
You need to copy your original tomcat to X number of
instances that you want to have running on your
server.
Make sure you reflect the number of instances with the
right number of workers that you define. For example
if you 
have 3 tomcatS you must have 3 workers.

Make the following changes to your server.xml for each
copy of tomcat.
!-- Change Server Port per tomcat instance in the
sever.xml.--
Server port=8015 shutdown=SHUTDOWN debug=0


 !-- Change Connector port per tomcat instance in the
server.xml --
Connector
className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8039 minProcessors=5
maxProcessors=75
   acceptCount=50 debug=0/


!-- Define the top level container in our container
hierarchy --
!--
You MUST add jvmRoute=WorkerName to each or the
tomcat instances. Also define your defaultHost,
although this is 
not needed for load balancing, it is good to have.
--
Engine jvmRoute=tc13 name=Standalone
defaultHost=www.domainA.com debug=0


Although I have 3 instances of tomcat, I decided to
have one copy of webapps. Since I am running Linux I
made a softlink to 
my /usr/local/webapps in each of my instances. This
way if you fix a bug in one of your applications you
do not have 
to repeat it all over. But that is your call where to
have your webapps.

I do not think you need anything else to get your load
balancing going. Start your tomcatS, then appache and
test. I would
look at the log files to see which one is accepting
requests, and then shutdown one at a time and see the
effects.

Enjoy.

--- Jason Koeninger [EMAIL PROTECTED] wrote:
 I'm not sure about documentation, but I've
 participated in a 
 few mailing list discussions quite some time ago
 about load 
 balancing.  The only reason I knew anything about it
 (don't 
 run load balancing myself) is that I've spent some
 time in 
 workers.properties.  IIRC, there are comments and
 sample 
 directives in workers.properties that show how to
 configure 
 load balancing.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Thu, 25 Jul 2002 09:44:34 -0400, Chris Ruegger
 wrote:
 
 Is the load balancing configuration of mod_jk
 documentated somewhere? Pointers to RTFM
 appreciated!
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: Apache, Tomcat and Struts

2002-07-25 Thread Luminous Heart

I believe your virtualhost setup is the problem here.
I had a go with virtualhosts. Make sure you have the
directory serving a specific virtualhost defined
inside the virtualhost block otherwise it will be
going to the default directory of the server.

Hope this would hlep.

--- Chris Ruegger [EMAIL PROTECTED] wrote:
 Situation:
 RedHat Linux 7.2 with Apache forwarding requests to
 Tomcat 4.0.4 works OK.
 
 I'm using Struts in my Tomcat application. What I
 want to have happen is this:
 
 1. Client connects to Apache with some URL foo.com
 2. Apache has been set up to look for an index.do
 welcome-file via the DirectoryIndex
 Directive
 3. Apache/AJP3 configured such that all *.do
 patterns get sent to Tomcat
 4. Using Struts/Tomcat, I have mapped index.do to
 some Action in struts-config.xml
 5. Tomcat process action for index.do, runs logic,
 forwards to JSP, etc.
 
 I have set this up on my Linux machine. I had to add
 a dummy index.do file in the
 document root that is empty. This seemed to be
 necessary to get Apache and Tomcat
 to try to return it, and it sets the processing
 above into motion.
 
 Problem:
 All works fine when I access Apache from the Linux
 machine itself as localhost.
 However when I access Apache from another machine as
 foo.com, Apache
 seems to be return the empty index.do file and
 does not forward on to Tomcat.
 How can I get this to work when I access everything
 from a remote machine?
 
 Some relevant entries from my config files:
 httpd.conf:
 IfModule mod_dir.c
   DirectoryIndex index.do index.jsp index.html
 /IfModule
 
 mod_jk.conf:
 
 VirtualHost localhost
   ServerName localhat
   JkMount /*.do ajp13
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
 /VirtualHost
 
 Is this a reasonable approach end-to-end, or how
 have other people implemented
 the same funcitionality?
 
 Thanks!
 
 
 
 
 
 
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




java.lang.IllegalStateException: getOutputStream()

2002-07-25 Thread Luminous Heart

When I open an email attachment, it works fine, but
then I get this error, if I click twice on the
hyperlink to the attachment. Obviously, this is a
webmail application.

2002-07-25 11:26:51 StandardWrapperValve[jsp]:
Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has
already been called for this response
at
org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:750)
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:165)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:177)
at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198)
at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193)
at
org.apache.jsp.doAttachment$jsp._jspService(doAttachment$jsp.java:259)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Clustering with Tomcat

2002-07-28 Thread Luminous Heart

Here is a great article by Shyam Kumar posted on
O'Reilly onJava.com website.
http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html?page=1

The article comes with the needed code to implement
clustering. I hope someone would pass it to the core
development, this might move tomcat into a clustering
server by design.

Regards.

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




RE: Apache-tomcat integration

2002-08-01 Thread Luminous Heart

I saw at the end of your reply this block:
contents of /etc/tomcat4/conf/tomcat4.conf:
JAVA_HOME=/usr/java/current

CATALINA_HOME=/var/tomcat4
JASPER_HOME=/var/tomcat4

TOMCAT_USER=tomcat

Why are you using tomcat4.conf? I mean I have not used
a .conf for tomcat and I guess my cluster of 3 tomcats
4.0.4 and apache2.0.39 with mod_jk are working fine.
What is the use of using tomcat.conf?

Thank you in advance.

--- Thomas Cherry [EMAIL PROTECTED] wrote:
 Sorry for the delay, I have been busy.
 
 Ok, I have a mandrake system with Apache 1.3 and
 tomcat 4.01.  I have a 
 copy of mod_jk from tomcat 3.x and was thinking that
 I could reuse the 
 same lib.  I started configuring apache and tomcat
 but it does not seem 
 to work so I am including the content of my config
 files in this 
 letter.  If someone could look at these settings and
 tell me what I did 
 wrong, that would be great.  Thanks.
 
 Last line in httpd.conf:
 Include /etc/tomcat4/conf/mod_jk.conf
 
 contents of /etc/tomcat4/conf/mod_jk.conf:
   LoadModule jk_module libexec/mod_jk.so
   
   JkWorkersFile
 /etc/tomcat4/conf/jk/workers.properties
   JkLogFile /var/tomcat4/logs/mod_jk.log
 
   JkLogLevel info
   
   AddModule mod_env.c
 
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
 
   JkMount /admin ajp13
   JkMount /admin/* ajp13
 
   JkMount /examples ajp13
   JkMount /examples/* ajp13
 
   JkMount /examples/servlet/* ajp13
   JkMount /examples/jsp/* ajp13
 #IfModule !mod_jk.c
 #/IfModule
 
 contents of /etc/tomcat4/conf/jk/workers.properties:
 workers.tomcat_home=/etc/tomcat4
 workers.java_home=/usr/java/current
 ps=/
 
 worker.list=ajp13
 
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 
 
 contents of /etc/tomcat4/conf/tomcat4.conf:
 JAVA_HOME=/usr/java/current
 
 CATALINA_HOME=/var/tomcat4
 JASPER_HOME=/var/tomcat4
 
 TOMCAT_USER=tomcat
 
 On Friday, July 26, 2002, at 09:39  PM,
 tomcat-user-digest-
 [EMAIL PROTECTED] wrote:
 
  From: Turner, John [EMAIL PROTECTED]
  Date: Fri Jul 26, 2002  04:24:52  PM US/Eastern
  To: 'Tomcat Users List'
 [EMAIL PROTECTED]
  Subject: RE: Apache-tomcat integration
 
 
 
  It would help if you could give us more
 information, such as target
  operating system, etc.
 
  In general, there are all sorts of resources
 available, such as this one
  from the tomcat site:
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
 
  and this one, also from the tomcat site:
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html
 
  Some people have found the resources here to be
 helpful:
  http://www.galatea.com/flashguides/index
 
  John Turner
  [EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: How to keep track of sessions

2002-08-14 Thread Luminous Heart

Is this a bug in tomcat 4.0.4? Notice that these two
errors that am posting are from two different
applications in the same context.

Please help.

Thanks.


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



type Exception report

message Internal Server Error

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

exception 

javax.servlet.ServletException:
java.lang.NullPointerException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at
org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1043)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.Exception: java.lang.NullPointerException
at
org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1032)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at

java.lang.NullPointerException tc4.0.4

2002-08-17 Thread Luminous Heart

I get this error the first time I try to access the
jsp page, if I reload it works fine. What is wrong?

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



type Exception report

message Internal Server Error

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

exception 

java.lang.NullPointerException
at
org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61)
at
org.postgresql.Connection.ExecSQL(Connection.java:398)
at
org.postgresql.jdbc2.Statement.execute(Statement.java:130)
at
org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
at
org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:99)
at
com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown
Source)
at
org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)






__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

I keep on asking this question but noone helps. Is it
a bug in TC?

Why do I get NullPointerException? If I press refresh
a couple of times I would go through. 

2002-08-19 00:53:32 StandardWrapperValve[jsp]:
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61)
at
org.postgresql.Connection.ExecSQL(Connection.java:398)
at
org.postgresql.jdbc2.Statement.execute(Statement.java:130)
at
org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
at
org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:99)
at
com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown
Source)
at
org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

Well, it is a big application. And it was working fine
with tc3.x. I have never had such a problem. I noticed
that I had to do lots of modifications to my code to
get TC4.0.4 work. What is different?

--- Campano, Troy [EMAIL PROTECTED]
wrote:
 Have you tried commenting out different parts of
 your code to see what part is causing this problem?
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 19, 2002 11:14 AM
 To: Tomcat Users List
 Subject: It would be great IF somebody answered me,
 ONCE, for change :(
 
 
 I keep on asking this question but noone helps. Is
 it
 a bug in TC?
 
 Why do I get NullPointerException? If I press
 refresh
 a couple of times I would go through. 
 
 2002-08-19 00:53:32 StandardWrapperValve[jsp]:
 Servlet.service() for servlet jsp threw exception
 java.lang.NullPointerException
 at

org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61)
 at

org.postgresql.Connection.ExecSQL(Connection.java:398)
 at

org.postgresql.jdbc2.Statement.execute(Statement.java:130)
 at

org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
 at

org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:99)
 at

com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown
 Source)
 at

org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207)
 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.java:201)
 at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at

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

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

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

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at

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

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

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

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at

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

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

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

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at

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

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

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

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

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

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

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

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

org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
 at

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

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

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

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at

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

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

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

org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
 at

org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536

Re: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

I bet you are the Snot, not just Snotty. How was I
being snotty by asking for someone to help. Yes we are
all obligated towards each other. That is the basic
concept of OpenSource, if you have not noticed. We are
a community of highly involved professionals and we
think that we have to be there for eachother. And
trust me. I would reply to you ASAP if I knew the
solution. So if you do not know the solution do not
fill up the bandwidth with your counterproductive
emails.

Best regards.

--- Paul Caton [EMAIL PROTECTED] wrote:
 Common sense should tell you that posting snotty
 subject-lines will
 not help persuade list users to answer you. You seem
 to think that
 someone has an *obligation* to jump and answer you
 as soon as
 possible, but this is not the case. Be patient and
 polite and I'll bet
 someone responds.
 
 Paul Caton
 
 -- 
 
 Project Analyst/Electronic Publications Editor, WWP
 Scholarly Technology Group
 
  e-mail: [EMAIL PROTECTED]
 tel: (401) 863-3619
 address: Box 1841, Brown University, Providence RI
 02912
 
   
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart
 = myConn.prepareStatement (select * from
DataBaseTableName where username = ? and useripaddress
= ? order by timestamp desc);
ps.setString(1, inUser);
ps.setString(2, inIPadd);
//out.println(inUser  inIPadd are not empty!);
ValueEntered = true;

}else

if (((inUser != null)  !inUser.equals()) 
((inDate != null)  !inDate.equals()))
{
ps = myConn.prepareStatement (select * from
DataBaseTableName where username = ? and timestamp =
? order by timestamp desc);
ps.setString(1, inUser);
ps.setString(2, inDate);
//out.println(inUser  inDate are not empty!);
ValueEntered = true;
}else

if (((inIPadd != null)  !inIPadd.equals()) 
((inDate != null)  !inDate.equals()))
{
ps = myConn.prepareStatement (select * from
DataBaseTableName where username = ? and useripaddress
= ? order by timestamp desc);
ps.setString(1, inUser);
ps.setString(2, inIPadd);
//out.println(inIPadd  inDate are not empty!);
ValueEntered = true;
}

}
if(ValueEntered)
{
  ValueEntered = false;
ResultSet returnedRecord = ps.executeQuery();


String Attempt = 0;
String dUser = ;
String userIP = ;
String timestamper = ;
int counter = 0;

if (returnedRecord.next())
{
%

html
head
LINK REL=STYLESHEET HREF=general.css
TYPE=text/css
/head
body
table align=center bgcolor=grey width=90%
tr bgcolor=#8090aa
td width=2%Number/td
td width=25%Username/td
td width=25%IP/td
td width=5%Logins/td
td width=25%Stamp/td
/tr

%}  //end testReturned.
returnedRecord.previous(); //keep here to make sure
you reset the cursor!

boolean isGrey = false;
String cellcolor = #ee00ff;
try{
while(returnedRecord.next())
{
dUser = returnedRecord.getString(username);
userIP =
returnedRecord.getString(useripaddress);
Attempt =
returnedRecord.getString(DataBaseTableName);
timestamper =
returnedRecord.getString(timestamp);
if (counter % 2 == 0)
cellcolor = #aaffee;
else cellcolor = #aaff80;

counter++;
%
tr bgcolor =%=cellcolor%
td%=counter%/td
td%=dUser%/td
td%=userIP%/td
td%=Attempt%/td
td%=timestamper%/td
/tr

%
isGrey = true;
}

}catch(java.lang.IndexOutOfBoundsException iobe){

}catch (java.lang.NullPointerException npe){}

  
%
/table
/body
/html
%}

ps.close();
  thisManager.returnConnection(myConn);

/* End Log user access count to the system */
}%

= End JSP =
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Mon, 19 Aug 2002, Luminous Heart wrote:
 
  Date: Mon, 19 Aug 2002 08:14:08 -0700 (PDT)
  From: Luminous Heart [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: Tomcat Users List
 [EMAIL PROTECTED]
  Subject: It would be great IF somebody answered
 me, ONCE, for change :(
 
  I keep on asking this question but noone helps. Is
 it
  a bug in TC?
 
 
 Since Tomcat doesn't do any database processing of
 its own, this issue is
 virtually guaranteed to be a bug in your code, or
 (much less likely, but
 possible) a bug in the postgres or poolman packages.
  THerefore, asking
 for help on a Tomcat list isn't likely to be useful
 -- especially since
 you don't include any of the code on your page that
 illustrates what you
 are trying to do.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

Mike,
Yes I am returning the connection to the pool after
closing the ps. As you can see in the jsp code that I
have attached earlier to Craig, I am closing the
preparedstatement then returning the instance. Here
again the snippet.

%
/table
/body
/html
%}

  ps.close();
  thisManager.returnConnection(myConn);

/* End Log user access count to the system */
}%

--- Mike Jackson [EMAIL PROTECTED] wrote:
 You might want to close your database connection, or
 at least return it to
 the pool (I don't see you doing that, it ought to be
 after you close the
 prepared statement).
 
 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]
 
  -Original Message-
  From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 8:36 AM
  To: Tomcat Users List
  Subject: Re: It would be great IF somebody
 answered me, ONCE, for change
  :(
 
 
  Hi Graig,
  Here is my jsp file. I am not sure what might be
  wrong. Although the same error happens in a bigger
  application in a tc cluster of 3 tomcats. Two of
 these
  tcs fail while one does not get any forwards after
  that.
 
  Please take a look at my code, if you do not mind.
 
  Best regards.
 
  = JSP =
  %@ page import=java.io.* %
  %@ page import=java.util.* %
  %@ page import=java.text.* %
 
  %@ page import=java.util.Properties %
  %@ page import=java.util.Date %
 
  %@ page contentType=text/html%
 
  %@ page import=com.codestudio.util.*%
  %@ page import=java.sql.*%
 
  !-- %@ include file=no-cache.jsp % --
 
  form action=UserAccount.jsp method=post
  name=access_form
table width=90% align=center
tr
th bgcolor=#FF colspan=3
 font
  size=5User Access/font/th
 
  tdnbsp;/td
  tdnbsp;/td
  tdnbsp;/td
/tr
tr
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by userid/font/th
  tr bgcolor=#c8d8f8
td valign=top colspan=2 bUser
  Name/bbr
  input type=text
 name=byusername
  size=25 value=  maxlength=25
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by Date/fontfont
 size=1/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bDate/bbr
  input type=text name=bydate
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5USER Access by IP Address/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bIP
 Address/bbr
  input type=text
 name=byipaddress
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
/tr
tr
  tdnbsp;/td
  td align=center bgcolor=#c8d8f8
input type=submit value=Submit
  name=submit
  /td
  tdnbsp;/td
/tr
  /table
  /form
  %
  String inUser = null;
  String inDate = null;
  String inIPadd = null;
 
  try{
 inUser =
  (request.getParameter(byusername)).trim();
 if (inUser == null) inUser = ;
 inDate =
 request.getParameter(bydate).trim();
 if (inDate == null) inDate = ;
 inIPadd =
  request.getParameter(byipaddress).trim();
 if (inIPadd == null) inIPadd = ;
 
  }catch(NullPointerException npe){
  out.println(Please choose a query option.);
 
  }
 
PreparedStatement ps = null;
   /* Log user access count to the system */
 
  SQLManager thisManager = null;
  if (thisManager == null)
thisManager = SQLManager.getInstance();
 
  Connection myConn = null;
 
   if (myConn == null)
 myConn = thisManager.requestConnection();
  if (((inUser != null)  !inUser.equals() ) ||
  ((inDate != null)  !inDate.equals()) ||
 ((inIPadd
  != null)  !inIPadd.equals()))
  {
 
  java.util.Date today = new
 java.util.Date();
  java.sql.Timestamp stamp = new
  java.sql.Timestamp(today.getTime());
 
  String stampStr = stamp.toString();
 
  String timeofday =
  stampStr.substring(11,stampStr.length());
  String date = stampStr.substring(0,11);
 
  String todayatZero = date + 
 00:00:00.;
 
  todayatZero = 2002-08-01 00:00:00.;
 
  inDate +=  00:00:00.;
 
  boolean ValueEntered = false;
  if (((inUser != null) (inDate != null) 
 (inIPadd
  != null))  (!inUser.equals() 
 !inDate.equals()
   !inIPadd.equals()) )
  {
  //out.println(all are not empty and not null!);
  ps = myConn.prepareStatement (select * from

RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

I am sorry, but I did not get what you mean with 
connection limit to be a hard limit, which one is
that?

I am including a copy of my pool.xml if you care do
point out what should be changed.

Thank you in advance.

 Pool.xml =
?xml version=1.0 encoding=UTF-8?

poolman

  management-modelocal/management-mode

  datasource

!-- == --
!-- Physical Connection Attributes --
!-- == --

!-- Standard JDBC Driver info --

dbnamewebdev/dbname
jndiNamewebdev/jndiName
driverorg.postgresql.Driver/driver
urljdbc:postgresql://localhost:6093/webdev/url

usernameJustAUserName/username
passwordJustAUserNamePassword/password

!-- Oracle needs this to be set to true --
nativeResultstrue/nativeResults

minimumSize1/minimumSize
maximumSize10/maximumSize
connectionTimeout600/connectionTimeout
userTimeout12/userTimeout
shrinkBy10/shrinkBy

   
logFile/usr/local/tomcat/logs/poolman.log/logFile
debuggingfalse/debugging

!-- Query Cache Attributes--

cacheEnabledfalse/cacheEnabled
cacheSize20/cacheSize
cacheRefreshInterval120/cacheRefreshInterval

  /datasource

/poolman

 End Pool.xml =
--- Mike Jackson [EMAIL PROTECTED] wrote:
 Actually now that I think about it more that might
 be the cause of the null
 pointer (but
 probably not).  In your poolman.xml file have you
 set the connection limit
 to be a hard
 limit?  If you timeout on connections (user timeout)
 is fairly high you
 could run out of
 connections, and it might return a null instead of
 a connection.
 
 But that's just a guess.  Also, you might was to
 also turn on logging (debug
 level) in
 poolman as well so that you can watch the
 connections getting checked out
 and in.
 
 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]
 
  -Original Message-
  From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 8:36 AM
  To: Tomcat Users List
  Subject: Re: It would be great IF somebody
 answered me, ONCE, for change
  :(
 
 
  Hi Graig,
  Here is my jsp file. I am not sure what might be
  wrong. Although the same error happens in a bigger
  application in a tc cluster of 3 tomcats. Two of
 these
  tcs fail while one does not get any forwards after
  that.
 
  Please take a look at my code, if you do not mind.
 
  Best regards.
 
  = JSP =
  %@ page import=java.io.* %
  %@ page import=java.util.* %
  %@ page import=java.text.* %
 
  %@ page import=java.util.Properties %
  %@ page import=java.util.Date %
 
  %@ page contentType=text/html%
 
  %@ page import=com.codestudio.util.*%
  %@ page import=java.sql.*%
 
  !-- %@ include file=no-cache.jsp % --
 
  form action=UserAccount.jsp method=post
  name=access_form
table width=90% align=center
tr
th bgcolor=#FF colspan=3
 font
  size=5User Access/font/th
 
  tdnbsp;/td
  tdnbsp;/td
  tdnbsp;/td
/tr
tr
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by userid/font/th
  tr bgcolor=#c8d8f8
td valign=top colspan=2 bUser
  Name/bbr
  input type=text
 name=byusername
  size=25 value=  maxlength=25
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by Date/fontfont
 size=1/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bDate/bbr
  input type=text name=bydate
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5USER Access by IP Address/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bIP
 Address/bbr
  input type=text
 name=byipaddress
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
/tr
tr
  tdnbsp;/td
  td align=center bgcolor=#c8d8f8
input type=submit value=Submit
  name=submit
  /td
  tdnbsp;/td
/tr
  /table
  /form
  %
  String inUser = null;
  String inDate = null;
  String inIPadd = null;
 
  try{
 inUser =
  (request.getParameter(byusername)).trim();
 if (inUser == null) inUser = ;
 inDate =
 request.getParameter(bydate).trim();
 if (inDate == null) inDate = ;
 inIPadd =
  request.getParameter(byipaddress).trim();
 if (inIPadd == null) inIPadd = ;
 
  }catch

Craig, PoolMan, latest version WAS the problem.

2002-08-19 Thread Luminous Heart

Ok. I reverted to an older version of PoolMan, where
we use pool.prop instead of pool.xml. That version
works fine. I have not hit the exception although I
tested it for sometime. 

Does that mean am stuck to the older poolman? Is there
a better solution to handle database pooling?

Thank you.

--- Luminous Heart [EMAIL PROTECTED] wrote:
 I am sorry, but I did not get what you mean with 
 connection limit to be a hard limit, which one is
 that?
 
 I am including a copy of my pool.xml if you care do
 point out what should be changed.
 
 Thank you in advance.
 
  Pool.xml =
 ?xml version=1.0 encoding=UTF-8?
 
 poolman
 
   management-modelocal/management-mode
 
   datasource
 
 !-- == --
 !-- Physical Connection Attributes --
 !-- == --
 
 !-- Standard JDBC Driver info --
 
 dbnamewebdev/dbname
 jndiNamewebdev/jndiName
 driverorg.postgresql.Driver/driver

 urljdbc:postgresql://localhost:6093/webdev/url
 
 usernameJustAUserName/username
 passwordJustAUserNamePassword/password
 
 !-- Oracle needs this to be set to true --
 nativeResultstrue/nativeResults
 
 minimumSize1/minimumSize
 maximumSize10/maximumSize
 connectionTimeout600/connectionTimeout
 userTimeout12/userTimeout
 shrinkBy10/shrinkBy
 


logFile/usr/local/tomcat/logs/poolman.log/logFile
 debuggingfalse/debugging
 
 !-- Query Cache Attributes--
 
 cacheEnabledfalse/cacheEnabled
 cacheSize20/cacheSize
 cacheRefreshInterval120/cacheRefreshInterval
 
   /datasource
 
 /poolman
 
  End Pool.xml =
 --- Mike Jackson [EMAIL PROTECTED] wrote:
  Actually now that I think about it more that might
  be the cause of the null
  pointer (but
  probably not).  In your poolman.xml file have you
  set the connection limit
  to be a hard
  limit?  If you timeout on connections (user
 timeout)
  is fairly high you
  could run out of
  connections, and it might return a null instead
 of
  a connection.
  
  But that's just a guess.  Also, you might was to
  also turn on logging (debug
  level) in
  poolman as well so that you can watch the
  connections getting checked out
  and in.
  
  --mikej
  -=-
  mike jackson
  [EMAIL PROTECTED]
  
   -Original Message-
   From: Luminous Heart
  [mailto:[EMAIL PROTECTED]]
   Sent: Monday, August 19, 2002 8:36 AM
   To: Tomcat Users List
   Subject: Re: It would be great IF somebody
  answered me, ONCE, for change
   :(
  
  
   Hi Graig,
   Here is my jsp file. I am not sure what might be
   wrong. Although the same error happens in a
 bigger
   application in a tc cluster of 3 tomcats. Two of
  these
   tcs fail while one does not get any forwards
 after
   that.
  
   Please take a look at my code, if you do not
 mind.
  
   Best regards.
  
   = JSP =
   %@ page import=java.io.* %
   %@ page import=java.util.* %
   %@ page import=java.text.* %
  
   %@ page import=java.util.Properties %
   %@ page import=java.util.Date %
  
   %@ page contentType=text/html%
  
   %@ page import=com.codestudio.util.*%
   %@ page import=java.sql.*%
  
   !-- %@ include file=no-cache.jsp % --
  
   form action=UserAccount.jsp method=post
   name=access_form
 table width=90% align=center
 tr
 th bgcolor=#FF colspan=3
  font
   size=5User Access/font/th
  
   tdnbsp;/td
   tdnbsp;/td
   tdnbsp;/td
 /tr
 tr
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2
 font
   size=5User Access by userid/font/th
   tr bgcolor=#c8d8f8
 td valign=top colspan=2 bUser
   Name/bbr
   input type=text
  name=byusername
   size=25 value=  maxlength=25
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2
 font
   size=5User Access by Date/fontfont
  size=1/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bDate/bbr
   input type=text name=bydate
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2
 font
   size=5USER Access by IP Address/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bIP
  Address/bbr
   input type=text
  name=byipaddress
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
 /tr
 tr
   tdnbsp;/td
   td align=center bgcolor=#c8d8f8
 input

RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

Thank you Mike,
I will test with this, although I tried to
troubleshoot the problem by going back to an older
version of poolman. It worked. Now I will try your
solution, that might help. But would the softlimiting
of the pool run my server out of sockets in case of
heavy access?


--- Mike Jackson [EMAIL PROTECTED] wrote:
 Add the following and the limit will be a soft limit
 (it can go above as
 needed)
 
 maximumSofttrue/maximumSoft
 
 
 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]
 
  -Original Message-
  From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 8:50 AM
  To: Tomcat Users List
  Subject: RE: It would be great IF somebody
 answered me, ONCE, for change
  :(
 
 
  I am sorry, but I did not get what you mean with
  connection limit to be a hard limit, which one is
  that?
 
  I am including a copy of my pool.xml if you care
 do
  point out what should be changed.
 
  Thank you in advance.
 
   Pool.xml
 =
  ?xml version=1.0 encoding=UTF-8?
 
  poolman
 
management-modelocal/management-mode
 
datasource
 
  !-- == --
  !-- Physical Connection Attributes --
  !-- == --
 
  !-- Standard JDBC Driver info --
 
  dbnamewebdev/dbname
  jndiNamewebdev/jndiName
  driverorg.postgresql.Driver/driver
 
 urljdbc:postgresql://localhost:6093/webdev/url
 
  usernameJustAUserName/username
  passwordJustAUserNamePassword/password
 
  !-- Oracle needs this to be set to true --
  nativeResultstrue/nativeResults
 
  minimumSize1/minimumSize
  maximumSize10/maximumSize
  connectionTimeout600/connectionTimeout
  userTimeout12/userTimeout
  shrinkBy10/shrinkBy
 
 
 

logFile/usr/local/tomcat/logs/poolman.log/logFile
  debuggingfalse/debugging
 
  !-- Query Cache Attributes--
 
  cacheEnabledfalse/cacheEnabled
  cacheSize20/cacheSize
 
 cacheRefreshInterval120/cacheRefreshInterval
 
/datasource
 
  /poolman
 
   End Pool.xml
 =
  --- Mike Jackson [EMAIL PROTECTED] wrote:
   Actually now that I think about it more that
 might
   be the cause of the null
   pointer (but
   probably not).  In your poolman.xml file have
 you
   set the connection limit
   to be a hard
   limit?  If you timeout on connections (user
 timeout)
   is fairly high you
   could run out of
   connections, and it might return a null
 instead of
   a connection.
  
   But that's just a guess.  Also, you might was to
   also turn on logging (debug
   level) in
   poolman as well so that you can watch the
   connections getting checked out
   and in.
  
   --mikej
   -=-
   mike jackson
   [EMAIL PROTECTED]
  
-Original Message-
From: Luminous Heart
   [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 8:36 AM
To: Tomcat Users List
Subject: Re: It would be great IF somebody
   answered me, ONCE, for change
:(
   
   
Hi Graig,
Here is my jsp file. I am not sure what might
 be
wrong. Although the same error happens in a
 bigger
application in a tc cluster of 3 tomcats. Two
 of
   these
tcs fail while one does not get any forwards
 after
that.
   
Please take a look at my code, if you do not
 mind.
   
Best regards.
   
= JSP
 =
%@ page import=java.io.* %
%@ page import=java.util.* %
%@ page import=java.text.* %
   
%@ page import=java.util.Properties %
%@ page import=java.util.Date %
   
%@ page contentType=text/html%
   
%@ page import=com.codestudio.util.*%
%@ page import=java.sql.*%
   
!-- %@ include file=no-cache.jsp % --
   
form action=UserAccount.jsp method=post
name=access_form
  table width=90% align=center
  tr
  th bgcolor=#FF colspan=3
   font
size=5User Access/font/th
   
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  tr
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by userid/font/th
tr bgcolor=#c8d8f8
  td valign=top colspan=2
 bUser
Name/bbr
input type=text
   name=byusername
size=25 value=  maxlength=25
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by Date/fontfont
   size=1/font
/th
tr bgcolor=#c8d8f8
  td valign=top bDate/bbr
input type=text
 name=bydate
 
=== message truncated ===


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http

RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

It is always nice to have an extra debugger handy :) I
am testing JTest but am not sure it is really what I
need. I would appreciate your help if you can send me
yours.

Thank you in advance.

--- micael [EMAIL PROTECTED] wrote:
 If you have a debugger, all you have to do is to
 follow the bouncing ball 
 and find the null reference.  That will be the
 fastest way to find this 
 problem.  It should not take long.  If you don't
 have a debugger, I will 
 send you one I made to use, and I like better than
 the standard debuggers.
 
 At 08:49 AM 8/19/2002 -0700, you wrote:
 I am sorry, but I did not get what you mean with
 connection limit to be a hard limit, which one is
 that?
 
 I am including a copy of my pool.xml if you care do
 point out what should be changed.
 
 Thank you in advance.
 
  Pool.xml =
 ?xml version=1.0 encoding=UTF-8?
 
 poolman
 
management-modelocal/management-mode
 
datasource
 
  !-- == --
  !-- Physical Connection Attributes --
  !-- == --
 
  !-- Standard JDBC Driver info --
 
  dbnamewebdev/dbname
  jndiNamewebdev/jndiName
  driverorg.postgresql.Driver/driver
 
 urljdbc:postgresql://localhost:6093/webdev/url
 
  usernameJustAUserName/username
  passwordJustAUserNamePassword/password
 
  !-- Oracle needs this to be set to true --
  nativeResultstrue/nativeResults
 
  minimumSize1/minimumSize
  maximumSize10/maximumSize
  connectionTimeout600/connectionTimeout
  userTimeout12/userTimeout
  shrinkBy10/shrinkBy
 
 

logFile/usr/local/tomcat/logs/poolman.log/logFile
  debuggingfalse/debugging
 
  !-- Query Cache Attributes--
 
  cacheEnabledfalse/cacheEnabled
  cacheSize20/cacheSize
 
 cacheRefreshInterval120/cacheRefreshInterval
 
/datasource
 
 /poolman
 
  End Pool.xml =
 --- Mike Jackson [EMAIL PROTECTED] wrote:
   Actually now that I think about it more that
 might
   be the cause of the null
   pointer (but
   probably not).  In your poolman.xml file have
 you
   set the connection limit
   to be a hard
   limit?  If you timeout on connections (user
 timeout)
   is fairly high you
   could run out of
   connections, and it might return a null
 instead of
   a connection.
  
   But that's just a guess.  Also, you might was to
   also turn on logging (debug
   level) in
   poolman as well so that you can watch the
   connections getting checked out
   and in.
  
   --mikej
   -=-
   mike jackson
   [EMAIL PROTECTED]
  
-Original Message-
From: Luminous Heart
   [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 8:36 AM
To: Tomcat Users List
Subject: Re: It would be great IF somebody
   answered me, ONCE, for change
:(
   
   
Hi Graig,
Here is my jsp file. I am not sure what might
 be
wrong. Although the same error happens in a
 bigger
application in a tc cluster of 3 tomcats. Two
 of
   these
tcs fail while one does not get any forwards
 after
that.
   
Please take a look at my code, if you do not
 mind.
   
Best regards.
   
= JSP
 =
%@ page import=java.io.* %
%@ page import=java.util.* %
%@ page import=java.text.* %
   
%@ page import=java.util.Properties %
%@ page import=java.util.Date %
   
%@ page contentType=text/html%
   
%@ page import=com.codestudio.util.*%
%@ page import=java.sql.*%
   
!-- %@ include file=no-cache.jsp % --
   
form action=UserAccount.jsp method=post
name=access_form
  table width=90% align=center
  tr
  th bgcolor=#FF colspan=3
   font
size=5User Access/font/th
   
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  tr
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by userid/font/th
tr bgcolor=#c8d8f8
  td valign=top colspan=2
 bUser
Name/bbr
input type=text
   name=byusername
size=25 value=  maxlength=25
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by Date/fontfont
   size=1/font
/th
tr bgcolor=#c8d8f8
  td valign=top bDate/bbr
input type=text
 name=bydate
value= size=25  maxlength=125
br
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5USER Access by IP Address/font

Re: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

Thank you Paul. I know we are NOT paid to help
eachother, but hey, maybe someday I would be able to
lend a hand. This is how a great software like Apache
is putting a wide smile on all our faces.

Regards.

--- Paul McGovern [EMAIL PROTECTED] wrote:
 
 Sorry, but you haven't included enough information
 for anyone to formulate an 
 answer. Based on the information all I can say is
 that you have a null 
 pointer exception. If you want a proper response,
 please include the code 
 segment that is going wrong, and config info from
 server.xml and web.xml.
 
 Also please bear in mind that nobody here, AFAIK, is
 being paid to answer.
 
 
 On Monday 19 August 2002 11:14, you wrote:
  I keep on asking this question but noone helps. Is
 it
  a bug in TC?
 
  Why do I get NullPointerException? If I press
 refresh
  a couple of times I would go through.
 
  2002-08-19 00:53:32 StandardWrapperValve[jsp]:
  Servlet.service() for servlet jsp threw exception
  java.lang.NullPointerException
  at
 

org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61)
  at
 

org.postgresql.Connection.ExecSQL(Connection.java:398)
  at
 

org.postgresql.jdbc2.Statement.execute(Statement.java:130)
  at
 

org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
  at
 

org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:
 99) at
 

com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown
  Source)
  at
 

org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207)
  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.j
 ava:201) at
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  at
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
  at
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
 nFilterChain.java:247) at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
 hain.java:193) at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
 ava:243) at
 

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

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

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

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
 ava:190) at
 

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

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas
 e.java:531) at
 

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

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
 246) at
 

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

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

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

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
  at
 

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

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

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

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

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

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

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

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

org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392
 ) at
 

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

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

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

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
 a:174) at
 

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

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

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

org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
  at
 


Re: Design question

2002-08-19 Thread Luminous Heart

Yes Raju,
It should be doable. You can download TC latest and
hack some code. If you want to use some readily
availabe to help in the process, take a look at the
Tag libs available on Jakarta. Also there are a few
File Upload beans floating around the net, go to
google and type JSP File Upload Bean and see what you
will get.

I have a couple of applications where a user will
upload files to a remote server after authenticating.

regards.

--- Raju Lokhande [EMAIL PROTECTED] wrote:
 Greetings everybody,
  I am doing some research on possibility of using
 Tomcat to do a project. General requirements as
 follows
 1. A user will login to the web application and
 upload a file to a remote server. He or she can only
 access his or her WIN2K/NT domain to upload this
 file.
 2. User will download a file or a number of files
 from the remote server - again from his or her
 domain.
 I was told that I can do this job using Java Servlet
 and IBM Websphere or BEA Weblogic.
 I am not sure if this is possible in Tomcat. Has
 anybody done similar work using Tomcat. Can you
 share your experiences please?
 Thanks
 Raju Lokhande
 
 
 

*
 This message, together with any attachments, is
 intended only
 for the use of the individual or entity to which it
 is addressed. It
 may contain information that is confidential and
 prohibited from
 disclosure.  If you are not the intended recipient,
 you are
 hereby notified that any dissemination or copying of
 this
 message or any attachment is strictly prohibited. If
 you have
 received this message in error, please notify the
 original sender
 immediately by telephone or by return e-mail and
 delete this
 message along with any attachments, from your
 computer.
 Thank you.

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


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: Debugger for LUMINOUS ????

2002-08-19 Thread Luminous Heart

Thank you micael, I will give it a shot. :)

--- micael [EMAIL PROTECTED] wrote:
 Here you go.  I just dumped the package in here. 
 You use it as follows:
 
 new

Debugger().add(blah1).add(blah2).add(blah3).log(Test
 1, true);
 
 where blah1, blah2, etc. are variables you want to
 test.  The debugger is 
 overloaded for all data types.  The Test 1 gives
 you a reference in the 
 log of the test, and the true makes sure prior tests
 are saved.  If you 
 want to write over prior tests, put in false.  If
 you don't want to name 
 the test, leave it out.  That is overloaded too. 
 You will need to figure 
 out a way to set your own paths for where you want
 the log file to 
 appear.  The javadoc info is pretty much obvious. 
 You can just take the 
 fancy stuff out and put in the path hardcoded, if
 you like.  I usually 
 rename the class: DELETE_ME.java when I use it. 
 This is for students.
 
 Micael

 ATTACHMENT part 2 application/zip name=debugger.zip;
x-mac-type=705A4950; x-mac-creator=705A4950
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




NotSerializableException

2002-08-20 Thread Luminous Heart

I am not asking tomcat to serialize my app, nor do I
have any serialization in this application.  Why am I
getting this new exception?

2002-08-19 21:06:27 StandardManager[/NoPassApp]
Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
com.sun.mail.imap.IMAPFolder
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1268)
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:810)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
at
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
at
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.NotSerializableException:
com.sun.mail.imap.IMAPFolder
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1338)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:827)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
... 2 more


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: NotSerializableException

2002-08-20 Thread Luminous Heart

I only add the imap session to the HttpSession. But I
do not write it to disk. What is the best way to stop
this behavior?

--- Peter Davison [EMAIL PROTECTED] wrote:
 It looks like Tomcat is trying to serialize a
 session.  Are you storing an
 IMAPFolder object in the session?
 
 It kacks because com.sun.mail.imap.IMAPFolder is not
 serializable.
 
 P.
 
 
 On Tue, 20 Aug 2002 07:41:48 -0700 (PDT)
 Luminous Heart [EMAIL PROTECTED] wrote:
 
  I am not asking tomcat to serialize my app, nor do
 I
  have any serialization in this application.  Why
 am I
  getting this new exception?
  
  2002-08-19 21:06:27 StandardManager[/NoPassApp]
  Exception loading sessions from persistent storage
  java.io.WriteAbortedException: writing aborted;
  java.io.NotSerializableException:
  com.sun.mail.imap.IMAPFolder
  at
 

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
  at
 

java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
  at
 

java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  at
 

java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
  at
 

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at
 

java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at
 

org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1
  268)
  at
 

org.apache.catalina.session.StandardSession.readObjectData(StandardSession.ja
  va:810)
  at
 

org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
  at
 

org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
  at
 

org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
  at
 

org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
  at java.lang.Thread.run(Thread.java:536)
  Caused by: java.io.NotSerializableException:
  com.sun.mail.imap.IMAPFolder
  at
 

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
  at
 

java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
  at
 

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
  at
 

java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
  at
 

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
  at
 

java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
  at
 

org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
  1338)
  at
 

org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.j
  ava:827)
  at
 

org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
  at
 

org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
  at
 

org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
  ... 2 more
  
  
  __
  Do You Yahoo!?
  HotJobs - Search Thousands of New Jobs
  http://www.hotjobs.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 --
 Peter Davison
 [EMAIL PROTECTED]
 
 When I hear a man applauded by the mob I always feel
 a pang of pity
 for him.  All he has to do to be hissed is to live
 long enough.
   -- H.L. Mencken, Minority Report
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: NotSerializableException

2002-08-20 Thread Luminous Heart

Hi Andreas, I know quite enough about persistence, I
am a senior java developer myself. But the issue is
with tomcat handling persistence. Should I isolate my
imap variables and declare them transient so tomcat
will not write them to its storage?

--- Andreas Probst [EMAIL PROTECTED] wrote:
 Obviously it does serialization. It loads a session
 from 
 persistent storage. Serialization is a means to make
 objects 
 persistent. Having written that I must confess I
 don't know 
 about sessions in Tomcat...
 
  I am not asking tomcat to serialize my app, nor do
 I
  have any serialization in this application.  Why
 am I
  getting this new exception?
  
  2002-08-19 21:06:27 StandardManager[/NoPassApp]
  Exception loading sessions from persistent storage
  java.io.WriteAbortedException: writing aborted;
  java.io.NotSerializableException:
  com.sun.mail.imap.IMAPFolder
  at
 

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
  at
 

java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
  at
 

java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  at
 

java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
  at
 

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at
 

java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at
 

org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1268)
  at
 

org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:810)
  at
 

org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
  at
 

org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
  at
 

org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
  at
 

org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
  at java.lang.Thread.run(Thread.java:536)
  Caused by: java.io.NotSerializableException:
  com.sun.mail.imap.IMAPFolder
  at
 

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
  at
 

java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
  at
 

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
  at
 

java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
  at
 

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
  at
 

java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
  at
 

org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1338)
  at
 

org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:827)
  at
 

org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
  at
 

org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
  at
 

org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
  ... 2 more
  
  
  __
  Do You Yahoo!?
  HotJobs - Search Thousands of New Jobs
  http://www.hotjobs.com
  
  --
  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]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: NotSerializableException

2002-08-20 Thread Luminous Heart

I am using the javasoft (sun) standard API for mail. I
believe am currently using javamail 1.2, from jsp and
javabeans.

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 Hi,
 What code are you using to read to/from an IMAP
 server?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 10:42 AM
 To: Tomcat Users List
 Subject: NotSerializableException
 
 I am not asking tomcat to serialize my app, nor do
 I
 have any serialization in this application.  Why am
 I
 getting this new exception?
 
 2002-08-19 21:06:27 StandardManager[/NoPassApp]
 Exception loading sessions from persistent storage
 java.io.WriteAbortedException: writing aborted;
 java.io.NotSerializableException:
 com.sun.mail.imap.IMAPFolder
 at

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
 at

java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845
 )
 at

java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
 at

java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164
 6)
 at

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
 at

java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
 at

org.apache.catalina.session.StandardSession.readObject(StandardSession.
 java
 :1268)
 at

org.apache.catalina.session.StandardSession.readObjectData(StandardSess
 ion.
 java:810)
 at

org.apache.catalina.session.StandardManager.load(StandardManager.java:4
 11)
 at

org.apache.catalina.session.StandardManager.start(StandardManager.java:
 617)
 at

org.apache.catalina.core.StandardContext.reload(StandardContext.java:24
 97)
 at

org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:
 1332
 )
 at java.lang.Thread.run(Thread.java:536)
 Caused by: java.io.NotSerializableException:
 com.sun.mail.imap.IMAPFolder
 at

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
 at

java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1
 330)
 at

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302
 )
 at

java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
 1245
 )
 at

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
 at

java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
 at

org.apache.catalina.session.StandardSession.writeObject(StandardSession
 .jav
 a:1338)
 at

org.apache.catalina.session.StandardSession.writeObjectData(StandardSes
 sion
 .java:827)
 at

org.apache.catalina.session.StandardManager.unload(StandardManager.java
 :507
 )
 at

org.apache.catalina.session.StandardManager.stop(StandardManager.java:6
 54)
 at

org.apache.catalina.core.StandardContext.reload(StandardContext.java:24
 09)
 ... 2 more
 
 
 __
 Do You Yahoo!?
 HotJobs - Search Thousands of New Jobs
 http://www.hotjobs.com
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:tomcat-user-
 [EMAIL PROTECTED]
 
  This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
  --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: NotSerializableException

2002-08-20 Thread Luminous Heart

That is a good question. Now I am totally confused. I
am not sure if tomcat is throwing this exception
because of the predefined imap object that
server.xml has. Or because of my webmail application
that uses imap. Is there a simple way to figure that
out? I guess I can try to clean all the mail refrences
in the server.xml and see what is going to happen.

regards.
--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 Howdy,
 Then I think the issue is having the IMAP carried in
 the Session object.
 It should be marked as transient so that it's not
 persisted with the
 tomcat session persistence mechanism. 
 Alternatively, you can
 re-consider whether you need the whole IMAP session
 in your tomcat
 session, or only certain (serializable) parts from
 it, e.g. the folder
 name or whatever.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 11:11 AM
 To: Tomcat Users List
 Subject: RE: NotSerializableException
 
 I am using the javasoft (sun) standard API for
 mail. I
 believe am currently using javamail 1.2, from jsp
 and
 javabeans.
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
  Hi,
  What code are you using to read to/from an IMAP
  server?
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Luminous Heart
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 10:42 AM
  To: Tomcat Users List
  Subject: NotSerializableException
  
  I am not asking tomcat to serialize my app, nor
 do
  I
  have any serialization in this application.  Why
 am
  I
  getting this new exception?
  
  2002-08-19 21:06:27 StandardManager[/NoPassApp]
  Exception loading sessions from persistent
 storage
  java.io.WriteAbortedException: writing aborted;
  java.io.NotSerializableException:
  com.sun.mail.imap.IMAPFolder
  at
 

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
  at
 

java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:184
 5
  )
  at
 

java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
  at
 

java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:16
 4
  6)
  at
 

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at
 

java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at
 

org.apache.catalina.session.StandardSession.readObject(StandardSession
 .
  java
  :1268)
  at
 

org.apache.catalina.session.StandardSession.readObjectData(StandardSes
 s
  ion.
  java:810)
  at
 

org.apache.catalina.session.StandardManager.load(StandardManager.java:
 4
  11)
  at
 

org.apache.catalina.session.StandardManager.start(StandardManager.java
 :
  617)
  at
 

org.apache.catalina.core.StandardContext.reload(StandardContext.java:2
 4
  97)
  at
 

org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java
 :
  1332
  )
  at java.lang.Thread.run(Thread.java:536)
  Caused by: java.io.NotSerializableException:
  com.sun.mail.imap.IMAPFolder
  at
 

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
  at
 

java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
 1
  330)
  at
 

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:130
 2
  )
  at
 

java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
 :
  1245
  )
  at
 

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
  at
 

java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
  at
 

org.apache.catalina.session.StandardSession.writeObject(StandardSessio
 n
  .jav
  a:1338)
  at
 

org.apache.catalina.session.StandardSession.writeObjectData(StandardSe
 s
  sion
  .java:827)
  at
 

org.apache.catalina.session.StandardManager.unload(StandardManager.jav
 a
  :507
  )
  at
 

org.apache.catalina.session.StandardManager.stop(StandardManager.java:
 6
  54)
  at
 

org.apache.catalina.core.StandardContext.reload(StandardContext.java:2
 4
  09)
  ... 2 more
  
  
 
 __
  Do You Yahoo!?
  HotJobs - Search Thousands of New Jobs
  http://www.hotjobs.com
  
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:tomcat-user-
  [EMAIL PROTECTED]
 
   This e-mail, including any attachments, is a
  confidential business communication, and may
 contain
  information that is confidential, proprietary
 and/or
  privileged.  This e-mail is intended only for the
  individual(s) to whom it is addressed, and may
 not
  be saved, copied, printed, disclosed or used by
  anyone else.  If you are not the(an) intended
  recipient, please immediately delete this e-mail
  from your computer system and notify the sender.
  Thank you.
 
 
=== message

How to configure VirtualHosts

2002-06-15 Thread Luminous Heart

How do you configure Virtual Hosts with ssl and tomcat
on apache2? It does not seem to work like the
documents say.

I have one machine with one IP address, but multiple
domain-names. I want to be able to use every
virtualhost with one domain name and get the right
context. How can I do that?

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Tomcat Clustering.

2002-09-01 Thread Luminous Heart

Greetings,

I have a cluster of 3 tomcats running on linux box. I
have the three tc4.0.4 instances in a loadbalancing
mode. The problem is when one fails none of the others
pick up and my app wont serve any requests untill I
shut the faulty tc. Only at that point one of the
other two will work. And if I restart the faulty one
it will start working again.

Should there be a failover behavior or loadbalance on
tc does not support that?

Thank you.

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: Tomcat Clustering.

2002-09-02 Thread Luminous Heart

Here is my workers file. Please notice that I mounting
tomcat context as such in my mod_jk.conf file:
   JkMount /* loadbalancer
   JkMount /servlet/* loadbalancer

loadbalancer is defined in the following workers file.

Thank you in advance.

=== workers.properties =
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/j2sdk1.4.0
ps=/
 
worker.list=tc13,intra13, extra13, loadbalancer
 
worker.tc13.port=8039
worker.tc13.host=localhost
worker.tc13.type=ajp13
worker.tc13.lbfactor=1
 
worker.intra13.port=8049
worker.intra13.host=localhost
worker.intra13.type=ajp13
worker.intra13.lbfactor=1
 
worker.extra13.port=8059
worker.extra13.host=localhost
worker.extra13.type=ajp13
worker.extra13.lbfactor=1
 
worker.tc41Intra.port=9009
worker.tc41Intra.host=localhost
worker.tc41Intra.type=ajp13
worker.tc41Intra.lbfactor=1
 
 
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tc13, intra13,
extra13
 
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

== End workers.properties ==
--- David Cassidy [EMAIL PROTECTED] wrote:
 Would you like to post your workers file
 
 D
 
 
 Luminous Heart wrote:
 
 Greetings,
 
 I have a cluster of 3 tomcats running on linux box.
 I
 have the three tc4.0.4 instances in a loadbalancing
 mode. The problem is when one fails none of the
 others
 pick up and my app wont serve any requests untill I
 shut the faulty tc. Only at that point one of the
 other two will work. And if I restart the faulty
 one
 it will start working again.
 
 Should there be a failover behavior or loadbalance
 on
 tc does not support that?
 
 Thank you.
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: Tomcat Clustering.

2002-09-02 Thread Luminous Heart

I will try your suggestion and hope it works for me.
Thanks a million for your help.

--- David Cassidy [EMAIL PROTECTED] wrote:
 I think i can see what it is :)
 
 Your workers.list defines for mod_jk what servers to
 use.
 
 In the case below it will use tc13 until it doesn't
 work / too overworked.
 
 Change the line so it's
 
 worker.list=loadbalancer
 
 Now your balanced_workers will work as the
 loadbalancer is in control.
 
 worker.loadbalancer.balanced_workers=tc13, intra13,
 extra13
 
 Hope this works
 
 David
 
 
 Luminous Heart wrote:
 
 Here is my workers file. Please notice that I
 mounting
 tomcat context as such in my mod_jk.conf file:
JkMount /* loadbalancer
JkMount /servlet/* loadbalancer
 
 loadbalancer is defined in the following workers
 file.
 
 Thank you in advance.
 
 === workers.properties =
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=/usr/local/j2sdk1.4.0
 ps=/
  
 worker.list=tc13,intra13, extra13, loadbalancer
  
 worker.tc13.port=8039
 worker.tc13.host=localhost
 worker.tc13.type=ajp13
 worker.tc13.lbfactor=1
  
 worker.intra13.port=8049
 worker.intra13.host=localhost
 worker.intra13.type=ajp13
 worker.intra13.lbfactor=1
  
 worker.extra13.port=8059
 worker.extra13.host=localhost
 worker.extra13.type=ajp13
 worker.extra13.lbfactor=1
  
 worker.tc41Intra.port=9009
 worker.tc41Intra.host=localhost
 worker.tc41Intra.type=ajp13
 worker.tc41Intra.lbfactor=1
  
  
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tc13, intra13,
 extra13
  
 worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
 worker.inprocess.cmd_line=start

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 == End workers.properties ==
 --- David Cassidy [EMAIL PROTECTED] wrote:
   
 
 Would you like to post your workers file
 
 D
 
 
 Luminous Heart wrote:
 
 
 
 Greetings,
 
 I have a cluster of 3 tomcats running on linux
 box.
   
 
 I
 
 
 have the three tc4.0.4 instances in a
 loadbalancing
 mode. The problem is when one fails none of the
   
 
 others
 
 
 pick up and my app wont serve any requests untill
 I
 shut the faulty tc. Only at that point one of the
 other two will work. And if I restart the faulty
   
 
 one
 
 
 it will start working again.
 
 Should there be a failover behavior or
 loadbalance
   
 
 on
 
 
 tc does not support that?
 
 Thank you.
 

__
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 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]
 
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




NullPointerException on Netscape 6.2

2002-09-02 Thread Luminous Heart

I get this exception everytime I try to login into my
application, running on tc4.0.4, on Netscape 6.2.
However that the application works fine with all
versions of IE. I am sure it is a Netscape issue, but
has anyone experienced anything like that?

It seems that my username and password are not passed
through when I sign in using netscape. Does netscape
support tomcat sessions?

== Exception on Netscape 6.2 =
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal
Server Error

type Exception report

message Internal Server Error

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

exception

javax.servlet.ServletException: 
java.lang.NullPointerException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at
org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1090)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.Exception: NullPointerException::
java.lang.NullPointerException
at
org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1074)
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.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at

Re: Tomcat Clustering.

2002-09-02 Thread Luminous Heart

Ok. I made the modifications you suggested. As you saw
in my workers file I have 3 tcs; tc13, extra13, and
intra13.
I turned cookies on with IE. When I go to
http://mySite.com I see a cookie being set by let us
say tc13. Then I click on the link to my application
on the front page and sometimes I get another cookie
sent by tc13, other times by another worker. And of
course I am using tc13 as an example, but I saw this
behavior with the three.

Does that mean I am in good shape now? Clustering is a
great thing. I am thinking to move next to Oriely's
memory space clustering model. Has anyone tried it?

Thank, David, for your help.

--- David Cassidy [EMAIL PROTECTED] wrote:
 helps only good if it works ...
 
 let us know if it does !
 
 you might want to see what jsessionid gets set to.
 if the loadbalancer is working correctly it'll
 append the servers name 
 to the
 jsessionid cookie.
 
 If you've got mozilla you can examine the cookies
 easily
 
 D
 
 
 Luminous Heart wrote:
 
 I will try your suggestion and hope it works for
 me.
 Thanks a million for your help.
 
 --- David Cassidy [EMAIL PROTECTED] wrote:
   
 
 I think i can see what it is :)
 
 Your workers.list defines for mod_jk what servers
 to
 use.
 
 In the case below it will use tc13 until it
 doesn't
 work / too overworked.
 
 Change the line so it's
 
 worker.list=loadbalancer
 
 Now your balanced_workers will work as the
 loadbalancer is in control.
 
 worker.loadbalancer.balanced_workers=tc13,
 intra13,
 extra13
 
 Hope this works
 
 David
 
 
 Luminous Heart wrote:
 
 
 
 Here is my workers file. Please notice that I
   
 
 mounting
 
 
 tomcat context as such in my mod_jk.conf file:
   JkMount /* loadbalancer
   JkMount /servlet/* loadbalancer
 
 loadbalancer is defined in the following workers
   
 
 file.
 
 
 Thank you in advance.
 
 === workers.properties =
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=/usr/local/j2sdk1.4.0
 ps=/
 
 worker.list=tc13,intra13, extra13, loadbalancer
 
 worker.tc13.port=8039
 worker.tc13.host=localhost
 worker.tc13.type=ajp13
 worker.tc13.lbfactor=1
 
 worker.intra13.port=8049
 worker.intra13.host=localhost
 worker.intra13.type=ajp13
 worker.intra13.lbfactor=1
 
 worker.extra13.port=8059
 worker.extra13.host=localhost
 worker.extra13.type=ajp13
 worker.extra13.lbfactor=1
 
 worker.tc41Intra.port=9009
 worker.tc41Intra.host=localhost
 worker.tc41Intra.type=ajp13
 worker.tc41Intra.lbfactor=1
 
 
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tc13,
 intra13,
 extra13
 
 worker.inprocess.type=jni
   
 

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
 
 
 worker.inprocess.cmd_line=start
   
 

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
 

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 
 == End workers.properties ==
 --- David Cassidy [EMAIL PROTECTED] wrote:
  
 
   
 
 Would you like to post your workers file
 
 D
 
 
 Luminous Heart wrote:
 

 
 
 
 Greetings,
 
 I have a cluster of 3 tomcats running on linux
   
 
 box.
 
 
  
 
   
 
 I

 
 
 
 have the three tc4.0.4 instances in a
   
 
 loadbalancing
 
 
 mode. The problem is when one fails none of the
  
 
   
 
 others

 
 
 
 pick up and my app wont serve any requests
 untill
   
 
 I
 
 
 shut the faulty tc. Only at that point one of
 the
 other two will work. And if I restart the
 faulty
  
 
   
 
 one

 
 
 
 it will start working again.
 
 Should there be a failover behavior or
   
 
 loadbalance
 
 
  
 
=== message truncated ===


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-01 Thread Luminous Heart

httpd: module mod_jk.c is not compatible with this
version of Apache (found 20020612, need 20020903).
Please contact the vendor for the correct version.

I tried compiling different mod_jk's from jakarta
site, but still get the same error. I am running
apache 42, new compile and trying to compile 4.1.12.
What is the best way to compile mod_jk, knowing that
my old mod_jk is not working here.

Thanks.

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-02 Thread Luminous Heart

You are right, it is rh Linux 7.1. Event the binaries
from johnturner.com did not work. Same error.

--- Robert L Sowders [EMAIL PROTECTED] wrote:
 First thing you do is let us know what OS you are
 using.
 
 
 
 
 
 Luminous Heart [EMAIL PROTECTED]
 10/01/2002 08:46 PM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 cc: 
 Subject:tomcat 4.1.12 with
 apache2.0.42 and mod_jk
 
 httpd: module mod_jk.c is not compatible with this
 version of Apache (found 20020612, need 20020903).
 Please contact the vendor for the correct version.
 
 I tried compiling different mod_jk's from jakarta
 site, but still get the same error. I am running
 apache 42, new compile and trying to compile 4.1.12.
 What is the best way to compile mod_jk, knowing that
 my old mod_jk is not working here.
 
 Thanks.
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com
 
 --
 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]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

Sorry, I do not do rpms. They are too tidy for me ;)
let us put it that way. Yes, I can safely say I tried
almost every build of the connectors. I am running
jdk1.4.1 though.

--- Henri Gomez [EMAIL PROTECTED] wrote:
   httpd: module mod_jk.c is not compatible with
 this
   version of Apache (found 20020612, need
 20020903).
 
 Did you tried with one from JK 1.2.0 release ?
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/rpms/
 
 Since you're a Redhat user, may I recommand you to
 get also the Apache
 2.0.42 rpm :
 
 http://ftp.falsehope.com/home/gomez/apache2/
 
 
 Regards
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

As a matter of fact I have been building apache since
the dawn of it ;) Also I have been building/using
tomcat since it was a jserv module, in corporate
environments too. So the whole process is in my hands.
Now that I wanted to experiment with Tomcat 4.1, I am
seeing this behavior. I was discouraged, a couple of
months ago, from using 4.1.x because it was in
pre-alpha then unstable beta. Now that it is released
I thought things should be better.

I have a cluster of 4.0.4 running, with apache 2.0.39,
pretty good on my system.

Thank you for the teasing, but I will appreciate it if
you have a helping tip too ;)

Regards,

--- Henri Gomez [EMAIL PROTECTED] wrote:
  When you use an RPM, you're letting someone else
 decide where to put 
  things on your machine, and how to configure your
 machine. You are 
  trusting someone else to do the right thing
 every time.  Some people 
  find that annoying and risky, and prefer to make
 their own decisions. ;)
 
 I understand that point and rpm packagers does their
 best to avoid any
 complication, for example my rpms for Apache 2.0,
 allow a coexistance
 with Apache 1.3 installed (diff conf dir, www dirs,
 lib dir..., listen 
 ports).
 
 rpm is great when you are a newbie or when you have
 to duplicate a
 configuration on farms of machines and want so have
 a reproductible
 process.
 
 And when an user goes with a customly built package
 like Apache 2.0.42,
 he should be prepared to also have to build himself
 the others packages,
 like jk ;-)
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

yes I built 2.0.42. What is the relation then?

--- Henri Gomez [EMAIL PROTECTED] wrote:
 Hum,
 
 Having a Redhat box and not using rpm is strange,
 btw if you have build an Apache 2.0.42 on your
 system,
 you should be able to build mod_jk 1.2.0 :
 
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/jk/aphowto.html
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

That is exactly my opinion, but did not want to start
a religious war about the validity of rpms :)

Thank you, John, for making my case.


--- Turner, John [EMAIL PROTECTED] wrote:
 
 When you use an RPM, you're letting someone else
 decide where to put things
 on your machine, and how to configure your machine.
 You are trusting someone
 else to do the right thing every time.  Some
 people find that annoying and
 risky, and prefer to make their own decisions. ;)
 
 John
 
 
  -Original Message-
  From: Henri Gomez [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 9:03 AM
  To: [EMAIL PROTECTED]
  Subject: Re: tomcat 4.1.12 with apache2.0.42 and
 mod_jk
  
  
  Hum,
  
  Having a Redhat box and not using rpm is strange,
  btw if you have build an Apache 2.0.42 on your
 system,
  you should be able to build mod_jk 1.2.0 :
  
  
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
  release/v1.2.0/doc/jk/aphowto.html
  
  
  --
  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]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: AW: Too Many Sessions!

2002-10-10 Thread Luminous Heart

If you make your code availabe that could help
pinpointing where things are going wrong with you.

--- Cindy Ballreich [EMAIL PROTECTED] wrote:
 At 01:18 PM 10/10/02 -0400, Shapira, Yoav wrote:
 Hi,
 Just a curiosity question: does your session
 listener keep a count of sessions?  And if so, how
 does that count compare to the manager webapp's
 count?
 
 That's an interesting idea. It's pretty easy to see
 from the logs how many sessions are being created
 and not destroyed. I don't have the manager webapp
 running right now, but I may give that a try. I've
 been thinking that maybe these aren't real
 sessions (otherwise they'd eventually time out,
 wouldn't they?) and this might be a good way to
 verify that.
 
 Cindy
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Tomcat + Grinder.

2002-10-13 Thread Luminous Heart

Has anyone heard of the Grinder loadtest tool? I am
trying to use it with Tomcat but there is not enough
info about it.


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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