Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
Using the manager app (/manager/status) I am seeing multiple threads in
the 'Service' mode with times of well over 60 minutes! Here is an
example: 

Stage   TimeB Sent  B Recv  Client  VHost   Request
S   5192947 ms  0 KB0 KB67.152.68.16dev1.mycompany.com  
GET / HTTP/1.1

I know that these connections came in during a period of particularly
heavy load and the server couldn't respond to them right away. No
response was ever sent back to the browser but the threads stay open
and eat up a resource until the app server has to be restarted. 

Is there any setting that will cause such orphaned connections to be
terminated and returned to the pool? 

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



RE: Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
I have maxThreads set at 250. When a high percentage of that 250 are
eaten up servicing essentially dead connections is when the server gets
unresponsive. 

What I am interested in is how tomct can know that a thread is no
longer viable -say if it has been in service mode for more than 5
minutes and hasn't sent anything. 




--- Bovy, Stephen J [EMAIL PROTECTED] wrote:

 MaxThreads 
 
 
 Stephen Bovy
 Computer Associates
 6100 Center Drive
 Suite 700
 Los Angeles, CA 90045
 Tel: (310) 957-3930
 Fax: (310) 957-3917
 e-mail: [EMAIL PROTECTED]
 -Original Message-
 From: August Detlefsen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 5:21 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5.5 Running out of Threads
 
 Using the manager app (/manager/status) I am seeing multiple threads
 in
 the 'Service' mode with times of well over 60 minutes! Here is an
 example: 
 
 Stage TimeB Sent  B Recv  Client  VHost   Request
 S 5192947 ms  0 KB0 KB67.152.68.16
 dev1.mycompany.comGET / HTTP/1.1
 
 I know that these connections came in during a period of particularly
 heavy load and the server couldn't respond to them right away. No
 response was ever sent back to the browser but the threads stay open
 and
 eat up a resource until the app server has to be restarted. 
 
 Is there any setting that will cause such orphaned connections to be
 terminated and returned to the pool? 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Tomcat 5.5 not closing active connections

2005-09-01 Thread August Detlefsen
Does tomcat ever close a connection once it is in the 'Service' mode? 

Using the manager app (/manager/status) I am seeing multiple threads in
the 'Service' mode with times of well over 60 minutes! Here is an
example: 

Stage   TimeB Sent  B Recv  Client  VHost   Request
S   5192947 ms  0 KB0 KB67.152.68.16dev1.mycompany.com  
GET / HTTP/1.1

I know that these connections came in during a period of particularly
heavy load and the server couldn't respond to them right away. No
response was ever sent back to the browser but the threads stay open
and eat up a resource until the app server has to be restarted. 

Is there any setting that will cause such orphaned connections to be
terminated and returned to the pool? 

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



Explicitly close ServletOutputStream?

2005-06-21 Thread August Detlefsen
If you use response.getOutputStream() to get an output stream for
binary data such as PDF or images, do you need to explicitly close that
stream when you are done writing to it or does the servlet container do
it for you automatically? 

Thanks,
August

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



Force Non-SSL

2005-05-25 Thread August Detlefsen
In my webapp I force clients to use SSL encryption for logins with a
security constraint and transport-guarantee elements like this: 

security-constraint
  web-resource-collection
web-resource-nameLogin/web-resource-name
url-pattern/login/*/url-pattern
  /web-resource-collection

  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

However, once a user hits the login page, every subsequent page also
uses https. Is there a way to force them back to regular http once they
leave the login section? 

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



Re: Force Non-SSL

2005-05-25 Thread August Detlefsen
Is there no way to do it? SSL creates a lot of overhead for a site that
is serving up 100MB image files. 




--- Tim Funk [EMAIL PROTECTED] wrote:
 no
 
 -Tim
 
 August Detlefsen wrote:
  In my webapp I force clients to use SSL encryption for logins with
 a
  security constraint and transport-guarantee elements like this: 
  
  security-constraint
web-resource-collection
  web-resource-nameLogin/web-resource-name
  url-pattern/login/*/url-pattern
/web-resource-collection
  
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint
  
  However, once a user hits the login page, every subsequent page
 also
  uses https. Is there a way to force them back to regular http once
 they
  leave the login section? 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-11 Thread August Detlefsen
Where do you get the non-buggy version? The TC 5.5 release notes don't
mention anything changing in jsvc since version 5.5.3. 

Is 5.5.9 now released? Does it include the jsvc fixes? 






--- Bill Barker [EMAIL PROTECTED] wrote:
 
 August Detlefsen [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  In TC 5.5.7, the tomcat start/stop script for Linux/Solaris
  (/etc/init.d/tomcat) stops tomcat by simply killing the process:
 
   stop)
 #
 # Stop Tomcat
 #
 PID=`cat /var/run/jsvc.pid`
 kill $PID
 ;;
 
  Do user sessions ever get a chance to be serialized if tomcat is
  stopped in such a manner?
 
 They do if you're not using the broken version of jsvc that ships
 with 
 Tomcat.  The non-buggy jsvc program catches SIGTERM and performs a
 clean 
 shutdown of Tomcat.
 
 
  I have noticed that users are forced to login again (we determine
 login
  status based on an object in a user's session) after tomcat
 restarts
  and I need to know if the object is getting serialized at all.
 
  Is there a better stop procedure?
 
 Nope. 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-11 Thread August Detlefsen
One mroe question: 

If you are using jsvc can you still use the
$CATALINA_HOME/bin/[shutdown|startup].sh scripts to do manual tomcat
restarts? 




--- August Detlefsen [EMAIL PROTECTED] wrote:
 Where do you get the non-buggy version? The TC 5.5 release notes
 don't
 mention anything changing in jsvc since version 5.5.3. 
 
 Is 5.5.9 now released? Does it include the jsvc fixes? 
 
 
 
 
 
 
 --- Bill Barker [EMAIL PROTECTED] wrote:
  
  August Detlefsen [EMAIL PROTECTED] wrote in message 
  news:[EMAIL PROTECTED]
   In TC 5.5.7, the tomcat start/stop script for Linux/Solaris
   (/etc/init.d/tomcat) stops tomcat by simply killing the process:
  
stop)
  #
  # Stop Tomcat
  #
  PID=`cat /var/run/jsvc.pid`
  kill $PID
  ;;
  
   Do user sessions ever get a chance to be serialized if tomcat is
   stopped in such a manner?
  
  They do if you're not using the broken version of jsvc that ships
  with 
  Tomcat.  The non-buggy jsvc program catches SIGTERM and performs a
  clean 
  shutdown of Tomcat.
  
  
   I have noticed that users are forced to login again (we determine
  login
   status based on an object in a user's session) after tomcat
  restarts
   and I need to know if the object is getting serialized at all.
  
   Is there a better stop procedure?
  
  Nope. 
  
  
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-08 Thread August Detlefsen
In TC 5.5.7, the tomcat start/stop script for Linux/Solaris
(/etc/init.d/tomcat) stops tomcat by simply killing the process: 

  stop)
#
# Stop Tomcat
#
PID=`cat /var/run/jsvc.pid`
kill $PID
;;

Do user sessions ever get a chance to be serialized if tomcat is
stopped in such a manner? 

I have noticed that users are forced to login again (we determine login
status based on an object in a user's session) after tomcat restarts
and I need to know if the object is getting serialized at all. 

Is there a better stop procedure? 

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



NoClassDefFoundError at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)

2005-04-05 Thread August Detlefsen
Tomcat: 5.5.7
Java: 1.5.0_02
OS: SunOS 5.9 (Solaris 9)

I am getting the following errors in my catalina.out: 

Apr 5, 2005 11:26:57 AM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor ROOT.xml
java.lang.NoClassDefFoundError
at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4016)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1169)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1301)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1561)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1550)
at java.lang.Thread.run(Thread.java:595)
Apr 5, 2005 11:26:57 AM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor manager.xml
java.lang.NoClassDefFoundError
at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4016)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1169)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1301)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1561)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1550)
at java.lang.Thread.run(Thread.java:595)



From the source code for StandardContext.java, line 4141 is: 

  TldConfig tldConfig = new TldConfig();

What I don't understand is how there can be a NoClassDefFoundError for
TldConfig when: 

1. TldConfig is clearly imported in line 85: 
  import org.apache.catalina.startup.TldConfig;

2. TldConfig.class resides in the same .jar as StandardContext.class
(catalina.jar)

It seems to me that there should be no NoClassDefFoundError because
StandardContext would not even be able to compile without TldConfig. 

Is there a problem with the classloader? Is my configuration completely
wrong? Can anyone shed some light on this? Any help would be most
appreciated. 

Thanks,
August

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



Only a type can be imported. com.mycompany.InputAttributes resolves to a package

2005-03-02 Thread August Detlefsen
Every once in a while when I am compiling JSPs I get this error: 

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

Generated servlet error:
Only a type can be imported. com.mycompany.InputAttributes resolves to
a package




No new imports have been added to the JSP file (only minor text
changes) and the exact same classes were imported correctly in the
previous compilation. The only thing that clears this up is a restart
of tomcat (version 5.5 on Solaris-SPARC). 

Has anyone else seen this behaviour? How can it be stopped? 

Thanks,
August

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



Example of a logAbandonded stack trace?

2003-10-15 Thread August Detlefsen
Can someone please post an example of the stack trace produced when
abandoned connections are logged? 

I am seeing stack traces like these in my logs and I'd like to know if
they are coming from abandoned connections: 

2003-10-08 10:17:25 StandardWrapperValve[admin]: Servlet.service() for
servlet admin threw exception
javax.servlet.ServletException: Nested error: java.sql.SQLException: Io
exception: Socket closed
at
eschedule.AdminController.dispatchSelectEvent(AdminController.java:1075)
at eschedule.AdminController.service(AdminController.java:133)
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:256)
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:2407)
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:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.sql.SQLException: Io exception: Socket closed
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at
oracle.jdbc.driver.OracleConnection.setAutoCommit(OracleConnection.java:799)
at
org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:237)
at
org.exolab.castor.jdo.engine.TransactionContextImpl.getConnection(TransactionContextImpl.java:214)
at
org.exolab.castor.persist.ClassMolder.load(ClassMolder.java:693)
at
org.exolab.castor.persist.LockEngine.load(LockEngine.java:359)
at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:649)
at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:555)
at
org.exolab.castor.persist.ClassMolder.load(ClassMolder.java:796)
at
org.exolab.castor.persist.LockEngine.load(LockEngine.java:359)
at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:649)
at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:555)
at
org.exolab.castor.jdo.engine.DatabaseImpl.load(DatabaseImpl.java:302)
at
org.exolab.castor.jdo.engine.DatabaseImpl.load(DatabaseImpl.java:315)
at
eschedule.AdminController.dispatchSelectEvent(AdminController.java:1053)
at eschedule.AdminController.service(AdminController.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

RE: long delay in ie

2002-12-13 Thread August Detlefsen
Which JVM are you using to load the applets? 



--- Turner, John [EMAIL PROTECTED] wrote:
 
 My company uses IE exclusively, and while we don't use 4.1.x in
 production
 yet, we have been doing a significant amount of testing and have not
 seen
 this problem.
 
 If it works in one browser but not another, it's a browser issue.  Do
 you
 have the latest/greatest (I say that with tongue in cheek) updates to
 IE?
 IE is notorious for breaking critical functionality in between minor
 releases.  6.0.01 might work fine, but 6.0.02 might be
 totally
 unusable, etc.
 
 John
 
 
  -Original Message-
  From: Ron Day [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 12, 2002 1:41 PM
  To: Tomcat Users List
  Subject: RE: long delay in ie
  
  
  I experienced exactly the same problem going from 4.0.3 to 4.1.12.
  
  I posted it on this list, but have not resolved it as
 yet...
  
  I have no images or applets on my pages !
  
  just html
  
  ron
  
  -Original Message-
  From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 12, 2002 12:32 PM
  To: [EMAIL PROTECTED]
  Subject: long delay in ie
  
  
  Hello Tomcat users,
  
  I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My 
  application is a .jsp
  page(s) with about 10 light weight applets sitting in a page. 
   When using IE
  to access this, there is a very long delay to load the page 
  or the browser
  just hangs.  When using Mozilla browser, everything works fine.
  
  Also noted when IE shows the file names it is loading currently on
 the
  status bar, it loads many files quickly but is getting stuck 
  on small .gif
  files.  I found two questions on the web related to this 
  situation, one
  asking the jar file takes a long time to download when Tomcat 
  is upgraded.
  The other asks about why the .gif files would take a long 
  time to download.
  But neither questions has been answered.
  
  Has anybody seen or heard similar problems.  Any help is
 appreciated.
  Thanks
  -Iqbal
  
  
  --
  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! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL

2002-07-31 Thread August Detlefsen

mod_jk IS installed: 

Apache 2.0.39 - mod_jk - TC 4.0.4 (Solaris 8)

I have never seen that line on any of my other servers though. Is it
from an older version of mod_jk? 

I could not get jk to compile on Solaris, so I had to download a binary
from somewhere. Could there be extra debug output turned on in this
version? Any tips on getting it to compile on Solaris 8? 

-August


--- Toby Saville [EMAIL PROTECTED] wrote:
 It means your trying to use the JK Module to connect Apache and
 Tomcat. look
 for LoadModule jk_module in either apache_install/conf/httpd.conf
 or in
 tomcat_install/conf/auto/mod_jk.conf. 
 
 Or look in apache_install to see if there is a directory called
 libexec.
 If there is, but there is no file called mod_jk.so, you may have to
 download
 a copy from the apache site if you want to use mod_jk to connect
 tomcat and
 apache. if you dont want to use mod_jk (im guessing not if you dont
 know
 what it is), comment or delete the line LoadModule jk_module
 mentioned above
 and also the line AddModule mod_jk.c in your httpd.conf file (this
 line may
 not be present).
 
 have phun
 
 -t0bes
 
 -Original Message-
 From: August Detlefsen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 11:34 AM
 To: Tomcat Users List
 Subject: ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL
 
 
 I am seeing this error in my log files when I startup tomcat:
 
 mod_jk location: libexec/mod_jk.so
 Make sure it is installed corectly or  set the config location
 Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL /
 Starting service Tomcat-Apache
 
 There is no mention of it in the list archives. Anyone have an idea
 what this means? 
 
 TC seems to startup fine...
 
 -August
 
 __
 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]
 
 
 ***
 This message is intended for the addressee named and 
 may  contain confidential information. If you are not the 
 intended recipient, please delete it and notify the sender. 
 Views expressed in this message are those of the 
 individual sender, and are not necessarily the views of the
 Department of  Information Technology  Management.
 
 This email message has been swept by MIMEsweeper 
 for the presence of computer viruses.
 ***
 
 
 --
 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]




ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL

2002-07-30 Thread August Detlefsen

I am seeing this error in my log files when I startup tomcat:

mod_jk location: libexec/mod_jk.so
Make sure it is installed corectly or  set the config location
Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL /
Starting service Tomcat-Apache

There is no mention of it in the list archives. Anyone have an idea
what this means? 

TC seems to startup fine...

-August

__
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: Login-Password http://localhost/manager ????? Please help me....

2002-07-25 Thread August Detlefsen

In order to use the manager app, you have to have the role 'manager'
defined for your username. 



--- IT-INDIA.com [EMAIL PROTECTED] wrote:
 hi,
 
 I have installed TomCat 4.0.4 on W2K.
 Everything seems OK. I can access the
 examples and run them thru http://localhost:8080
 
 Now when I access http://localhost:8080/manager
 I enter tomcat/tomcat it doesn't run this way.
 
 I have also gone thru the user configuration file
 where I found 3 default users. I've tried all those.
 
 So far  I haven't done anything with the configuration
 files. Could anyone tell me the default login/password
 of http://localhost:8080/manager   ???
 
 
 best regards,
 
 Sameer Arora
 [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]




Cannot compile CoyoteServerSocketFactory - overridden method does not throw java.security.KeyManagementException

2002-07-24 Thread August Detlefsen

Has anyone ever seen this error before? I am trying to build the latest
version of the connectors and I run into this error when trying to
compile: 

[javac]
/root/dl/jakarta-tomcat-connectors-4.0.4-src/coyote/src/java/org/apache/coyote/tomcat4/CoyoteServerSocketFactory.java:102:
createSocket(int,int,java.net.InetAddress) in
org.apache.coyote.tomcat4.CoyoteServerSocketFactory cannot implement
createSocket(int,int,java.net.InetAddress) in
org.apache.catalina.net.ServerSocketFactory; overridden method does not
throw java.security.KeyManagementException

Here is the full output from ant: 

Buildfile: build.xml

coyote:

detect:

build-prepare:

build-main:
 [echo] - Java-utils -
 [echo] -- puretls.present = ${puretls.present}
 [echo] -- jsse.present = true
 [echo] -- commons-logging = true
 [echo] -- jmx = true

init:
 [echo]  Coyote 1.0-dev 

prepare:

static:

report-tc4:
 [echo] Tomcat4 detected 

report-tc33:

report:

compile.shared:

compile.tomcat4:
[javac] Compiling 2 source files to
jakarta-tomcat-connectors-4.0.4-src/coyote/build/classes
[javac]
jakarta-tomcat-connectors-4.0.4-src/coyote/src/java/org/apache/coyote/tomcat4/CoyoteServerSocketFactory.java:102:
createSocket(int,int,java.net.InetAddress) in
org.apache.coyote.tomcat4.CoyoteServerSocketFactory cannot implement
createSocket(int,int,java.net.InetAddress) in
org.apache.catalina.net.ServerSocketFactory; overridden method does not
throw java.security.KeyManagementException
[javac] public class CoyoteServerSocketFactory
[javac]^
[javac] 1 error

BUILD FAILED

jakarta-tomcat-connectors-4.0.4-src/coyote/build.xml:181: Compile
failed, messages should have been provided.

Total time: 2 seconds

__
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: JWMA and Tomcat 4.0.4

2002-07-24 Thread August Detlefsen

I have it running just fine with TC 4.0.4 on Linux. I did have to tweak
it quite a bit though. Let me know what kind of prolems you are
having...

-August



--- Adrian [EMAIL PROTECTED] wrote:
 I tried it today with 4.0.4 but, there were parsing errors,  I was
 able to get it to run on FreeBSD with Tomcat 3.2.3  and the Native
 jdk
 however .
 It`s not a FreeBSD problem, it just the JWMA is built to run on the
 older
 Tomcat engine.
 
 - Original Message -
 From: Salvatore Denaro [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, July 23, 2002 10:32 PM
 Subject: JWMA and Tomcat 4.0.4
 
 
  Has anyone gotten JWMA to work with tomcat4.0.4 on FreeBSD?
 
  http://jwma.sourceforge.net/ looks to be rather plug and play on
 tomcat
  3.2.3 on my windows box, but I'd much rather run it on my allways
  running freebsd machine.
 
  Thanks.
 
 
  --
  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! Health - Feel better, live better
http://health.yahoo.com

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




DirectoryIndex not working on Apache 2.0.39 - mod_jk - Tomcat 4.0.4

2002-07-24 Thread August Detlefsen

I've integrated Apache 2.0.39 with TC 4.0.4, but it is not picking up
index.jsp as a welcome file. index.jsp does load fine if you explicitly
specify it in the URL, however: 

works: http://www.myserver.com/index.jsp
not:   http://www.myserver.com/
works: http://www.myserver.com/index.html

I've tried specifing DirectoryIndex in httpd.conf:
DirectoryIndex index.jsp index.html

I've done many many searches of the docs and mail archives and the best
thing I've been able to find is to redirect calls for / to index.jsp: 

IfModule mod_alias.c
   RedirectMatch   ((/.*|)/)$  $1index.jsp
/IfModule

Unfortunately this wont work in cases where you have mixed content
(some dirs use index.jsp, some use index.html) or in cases where
servlets are mapped to directory-style paths: 

http://www.myserver.com/admin/  --maps to-- AdminServlet

Could mod_jk be somehow overriding requests before mod_dir has a chance
to find the proper index file? 

In Apache 2, mod_dir appears to be compiled-in. Is there a way to
instead compile it as a shared object in order to control the load
order/execution order? 

Please let me know if anyone has an answer, thanks,
August


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




Solved: DirectoryIndex not working on Apache 2.0.39 - mod_jk - Tomcat 4.0.4

2002-07-24 Thread August Detlefsen

You need to download and build version 1.50 of mod_jk.c from CVS. The
version distributed in jakarta-tomcat-connectors-4.0.4-src.tar.gz is
1.44. 

-August


--- August Detlefsen [EMAIL PROTECTED] wrote:
 I've integrated Apache 2.0.39 with TC 4.0.4, but it is not picking up
 index.jsp as a welcome file. index.jsp does load fine if you
 explicitly
 specify it in the URL, however: 
 
 works: http://www.myserver.com/index.jsp
 not:   http://www.myserver.com/
 works: http://www.myserver.com/index.html
 
 I've tried specifing DirectoryIndex in httpd.conf:
 DirectoryIndex index.jsp index.html
 
 I've done many many searches of the docs and mail archives and the
 best
 thing I've been able to find is to redirect calls for / to index.jsp:
 
 
 IfModule mod_alias.c
RedirectMatch   ((/.*|)/)$  $1index.jsp
 /IfModule
 
 Unfortunately this wont work in cases where you have mixed content
 (some dirs use index.jsp, some use index.html) or in cases where
 servlets are mapped to directory-style paths: 
 
 http://www.myserver.com/admin/  --maps to-- AdminServlet
 
 Could mod_jk be somehow overriding requests before mod_dir has a
 chance
 to find the proper index file? 
 
 In Apache 2, mod_dir appears to be compiled-in. Is there a way to
 instead compile it as a shared object in order to control the load
 order/execution order? 
 
 Please let me know if anyone has an answer, thanks,
 August
 
 
 __
 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]
 


__
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: Webdav servlet

2002-07-18 Thread August Detlefsen

I tried using the WebDAV servlet some time back, but it doesn't work as
well as I'd hoped (at least, with DW UltraDev that my developers
demanded). If you are using Apache-Tomcat you can try mod_webdav
instead, though it requires a separate port for each virtual host. If
you need, I can post the config.




--- David Goodenough [EMAIL PROTECTED] wrote:
 I am trying to use the webDAV servlet under tomcat 4.0.3 (as shipped
 with
 JWSDP).  So I copied the directory across from an ordinary 4.0.3, and
 sure
 enough I can see the HTML page.  But when I connect to the site using
 the
 URL http://localhost:8080/webdav all I see is the webdav context
 files.
 
 How do I extend this to other contexts.  Do I have to copy the
 servlet
 (or rather the bits of web.xml that define it) into all the other
 contexts
 or can I someho
 
 --
 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: Cobranding - Share Controller, Split View

2002-07-15 Thread August Detlefsen

Is there any support for this in TC 4.0.4? We can't upgrade to 4.1
until it is officially released. 

Is there some way to get a handle on the ServletContext representing
ROOT? Then I can easily load the params I need. 

How about ServletContext.getContext(/) -I tried this in my init()
method, but it only returns null: 

public void init(ServletConfig config)
throws ServletException {

super.init(config);

//get this servlet's context and location
ServletContext application = config.getServletContext();
ServletContext root= application.getContext(/);

//the rest...
}

The api docs for getContext() say: 

   In a security conscious environment, the servlet container 
may return null for a given URL.

How can I know if I am hitting a security constraint? If that is the
problem, is there a way to bypass the security to allow access to the
ROOT context, but only from this one app? 

-August



--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Sun, 14 Jul 2002, August Detlefsen wrote:
 
  Date: Sun, 14 Jul 2002 23:15:53 -0700 (PDT)
  From: August Detlefsen [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Cobranding - Share Controller, Split View
 
  I am currently developing several cobranded sites that share the
 same
  functionality. I want to be able to share the same set of servlets
  across multiple cobrands.
 
  I know I can treat the servlets as a separate webapp and deploy
 them to
  each separate host, but if I do this, will they be able to access
 the
  different configuration ( context-param and JNDI resources )
  specified in the each ROOT context's web.xml?
 
 
 One way to do this in Tomcat 4.1.x is to take advantage of the
 ResourceLink element.  Basically, you define the resources you want
 to
 share once in the GlobalNamingResources section of server.xml, and
 then
 embed a ResourceLink for each resource in the Context element for
 the
 various webapps.  From the point of view of the application, it just
 looks
 like a normal application resource -- the app doesn't know that it is
 actually getting resolved to the underlying shared resource by a
 link.
 
 This is very handy when you use the global resources to establish all
 the
 default behavior, then override just the resources a particular app
 needs
 to customize that app.  The app itself thinks of all resources as
 being
 local, so it doesn't need to be modified to look two different
 places.
 
  -August
 
 
 Craig
 
 
 --
 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: Cobranding - Share Controller, Split View

2002-07-15 Thread August Detlefsen

This will work, but then I'd have to add a different servlet definition
for each cobrand (and code the views with different references as
well?). There must be a simpler way..?




--- Henner Zeller [EMAIL PROTECTED] wrote:
 
 Hi,
  I know I can treat the servlets as a separate webapp and deploy
 them to
  each separate host, but if I do this, will they be able to access
 the
  different configuration ( context-param and JNDI resources )
  specified in the each ROOT context's web.xml? 
 
 What about having the same servlet referenced more than once in the
 same 
 web.xml with different init-params ? Consider you have Servlet 
 com.codemagi.FooServlet, then you could do
 
   servlet
 servlet-name
com.gargelmarf.FooServlet
 /servlet-name
 servlet-class
 com.codemagi.FooServlet
 /servlet-class
 init-param
param-namebrandType/param-name
param-value1/param-value
 /init-param
 {...}
   /servlet
 
   servlet
 servlet-name
com.foobaz.FooServlet
 /servlet-name
 servlet-class
 com.codemagi.FooServlet
 /servlet-class
 init-param
param-namebrandType/param-name
param-value2/param-value
 /init-param
 {...}
   /servlet
 --
 All these servlets can be accessed from the same context, but
 have different names. The servlet com.codemagi.FooServlet reads the
 init-param to determine the brand.
 If you access:
   /mycontext/servlet/com.gargelmarf.FooServlet
   /mycontext/servlet/com.foobaz.FooServlet
 all that is called are two different instances of
 com.codemagi.FooServlet,
 sharing the same context but with different init-params.
 
 Probably this is the easiest way to do it.
 
 ciao,
  -hen
 
 
 --
 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]




Cobranding - Share Controller, Split View

2002-07-14 Thread August Detlefsen

I am currently developing several cobranded sites that share the same
functionality. I want to be able to share the same set of servlets
across multiple cobrands. 

I know I can treat the servlets as a separate webapp and deploy them to
each separate host, but if I do this, will they be able to access the
different configuration ( context-param and JNDI resources )
specified in the each ROOT context's web.xml? 

-August

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




Where do serialized Objects go?

2002-07-12 Thread August Detlefsen

If I reload a context using the manager, Objects in my session get
serialized -but where do they go? 

Are they actually written somewhere or only stored in memory? 

Do Objects get serialized when you do a full Tomcat restart? If so,
where? Is there any chance that an Object could survive a full restart?

%0«Ñ   ¯
What would I have to do to clear them out? 

__
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: Where do serialized Objects go?

2002-07-12 Thread August Detlefsen

Aha. Thanks! I never found them before because that file is deleted
from the filesystem as soon as it is read back in...




--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Fri, 12 Jul 2002, August Detlefsen wrote:
 
  Date: Fri, 12 Jul 2002 18:31:01 -0700 (PDT)
  From: August Detlefsen [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Where do serialized Objects go?
 
  If I reload a context using the manager, Objects in my session get
  serialized -but where do they go?
 
 
 They get serialized to a file called SESSIONS.ser in the work
 directory
 for each webapp.  NOTE - only session attributes that are
 Serializable get
 the benifit of this.
 
  Are they actually written somewhere or only stored in memory?
 
  Do Objects get serialized when you do a full Tomcat restart? If so,
  where? Is there any chance that an Object could survive a full
 restart?
  %0«Ñ¯
 
 Yes, they survive a full restart as long as you don't delete the
 SESSIONS.ser file.
 
  What would I have to do to clear them out?
 
 
 cd $CATALINA_HOME/work/{servicename}/{hostname}/{context-path}
 rm SESSIONS.ser
 
 Craig
 
 
 --
 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: The best website database!

2002-07-01 Thread August Detlefsen


--- Charles Baker [EMAIL PROTECTED] wrote:
 
 Not saying you're wrong or right, but what do you see
 as the glaring holes in Postgres 7.2? And certainly
 not wanting to start any flame wars.


I started using Postgres about a year ago after many Oracle-based
projects. The biggest things I have missed so far are that there are no
built-in CONNECT BY, ROLLUP, and CUBE functions and the fact that
Postgres seems to slow down significantly if it is not VACUUM'd
frequently. However, these are not 'glaring holes' by any means and
they should not deter you from using Postgres in any way, especially as
an alternative to Access. 

By the way, there is a good solution for exporting data from Access to
Postgres available open source from: 

http://www.rot13.org/~dpavlin/projects/sql/exportSQL3.txt

(Just save as an Access Module and run -it creates the SQL statements
to recreate the whole DB in Postgres)

-August

__
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: Mailing List Load.... Forum???

2002-06-27 Thread August Detlefsen

Don't forget www.mail-archive.com. They have a great search tool for
this list (and many many others): 

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

-August





--- Liam Morley [EMAIL PROTECTED] wrote:
 Milt,
 I'm probably coming into this a bit late in the game (and a bit 
 uninvolved at that).. but I wound up at 
 http://nagoya.apache.org/jive/index.jsp at one point in time, and
 that 
 to me looks very much like a Tomcat forum. What am I missing?
 
 Liam Morley
 
 Milt Epstein wrote:
 
 On Thu, 27 Jun 2002, Hanks Mei wrote:
 
   
 
 Hi,
 
   Well ofcourse I know that the mailing list is heavily loaded, but
 it is going beyond my control...
 
 Can we have forum kind of mechanism instead, so that the users can
 log in to the net wherein queries/replies can be placed.
 
  This is my request. I feel that this approach will help the tomcat
 users a lot.
 
 Any other solutions are welcome...
 
 It is tooo... much for my mail client and net connection
 to handle, so I am signing off.
 
 Will look forward for the tomcat forum... ;-)
 
 
 
 I think there are a number of reasons why this won't be turned into
 a
 web forum, including some historical ones.  However, with web
 archives
 of mailing lists, including this one, there essentially is a web
 forum
 version already (especially since this list doesn't require you to
 be
 a subscribe in order to post, so you can continue to post questions
 via email).
 
 Here are a couple of pages that talk about jakarta-related mailing
 lists and archives:
 
 http://jakarta.apache.org/site/mail.html
 http://jakarta.apache.org/site/mail2.html
 
 I've found
 
 http://marc.theaimsgroup.com/
 
 to be a good archive.
 
 Milt Epstein
 Research Programmer
 Systems and Technology Services (STS)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 
 
 --
 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: Age old question...

2002-06-27 Thread August Detlefsen


--- Milt Epstein [EMAIL PROTECTED] wrote:
 On 26 Jun 2002, Keith Pemberton wrote:
 
 Well, I'm not sure mod_jk will be any different.  And is this any
 more
 than a minor aesthetic issue?

Not when most of your users can barely type one / , much less two! 


 FWIW, here's something a bit weird, I tried this on a machine where I
 have web_app and tomcat 4.0.3 set up, the first time I tried
 /examples, I got a 404 Not Found error.  Then I tried /examples/ and
 it worked, I got the directory listing of that directory.  Then I
 tried /examples again, and it kept working, adding the trailing /
 itself!  When I try it to tomcat standalone, it works both ways.

Did your browser add the trailing slash or did the server? 

I have tried to find a solution for this using mod_rewrite, but webapp
is overriding all of my rewites. If anyone has a solution I would
really like to know!

-August



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




JNDI - What resources are loaded?

2002-06-27 Thread August Detlefsen

Is there a way to list all of the JNDI Resources that are loaded for a
particular context? 



__
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: Parameters for virtual servers in server.xml? Is it possible?

2002-06-18 Thread August Detlefsen

You can put parameters such as this in web.xml for each webapp:

context-param
  param-nameserviceProvider/param-name
  param-valueservice1/param-value
  descriptionThis is the description/description
/context-param

Then you can get them in your servlet using: 

application.getInitParameter(serviceProvider);
//application is your javax.servlet.ServletContext


--- Donie Kelly [EMAIL PROTECTED] wrote:
 Can anybody answer this question?
 
 I want to add parameters which are available to a servlet but
 different for
 each virtual host. I need to have a value called service provider id
 which
 is all I need to get the extra required information from LDAP. I need
 to do
 this so that the same code can be used across all virtual hosts
 
 Any ideas how this can be done
 Donie
 
 --
 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: Null Pointer Exception - would you please take a look?

2002-06-18 Thread August Detlefsen

If you are trying to insert a NULL into a NOT NULL column (or are
trying to insert special chars or the String is too long), you should
get a SQLException, not a NullPointerException. 

You should recheck that you are actually getting a valid Connection



--- Eddie Bush [EMAIL PROTECTED] wrote:
 There are also no nulls in that column.
 
 - Original Message -
 From: Eddie Bush [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Tuesday, June 18, 2002 8:09 AM
 Subject: Re: Null Pointer Exception - would you please take a look?
 
 
 
  - Original Message -
  From: John Gregg [EMAIL PROTECTED]
 
 
   Is the String you're setting null?  I can't say how your driver
 handles
  that
   case, but maybe it doesn't like it.  The jdk javadocs don't
 mention it.
  Is
   the String too big for the column, does it have weird characters
 in it?
  If
 
  There are no special characters in that  field, although I never
 imagined
  that the field size might cause a problem.  I will check that.
 
  Thank You!
 
 
 
  --
  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: AW: mapping upper-case to lower !

2002-06-14 Thread August Detlefsen

This would work, but mod_rewrite and mod_webapp interfere with each
other - webapp grabs all URLs before rewrite has a chance to work on
them...


--- Ralph Einfeldt [EMAIL PROTECTED] wrote:
 Store all files in lower case and write a filter 
 that tranforms any requested jsp name to lower
 case. (Of course the same works with upper case)
 
 But that requires that all (!!!) jsp files name 
 have the same case.
 
  -Ursprüngliche Nachricht-
  Von: Walid Al-Abbadi [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 13. Juni 2002 17:36
  An: Tomcat Users List
  Betreff: Re: mapping upper-case to lower !
 
 i know that easy solution .. but i want  a general one to 
  my application
  , so any user can type Capital/small letters to request the 
  page without
  any limitation on only using small letters ! 
  
  
 
 --
 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: Tomcat Performance is good!

2002-06-14 Thread August Detlefsen

That is interesting. I always thought perl was better for big text
searches...

Did you give it a database backend? 
What API are you using for the search? 
Or is your performance improvement strictly due to the precompiled
always-on nature of servlets (as opposed to interpreted perl)?

-August

--- Sébastien_Dui [EMAIL PROTECTED] wrote:
 Let's hope that it will also work for applications without acts of
 god... 
 
 
 
 -Message d'origine-
 De : Trenton D. Adams [mailto:[EMAIL PROTECTED]]
 Envoyé : sam. 15 juin 2002 0:06
 À : 'Tomcat Users List'
 Objet : Tomcat Performance is good!
 
 
 I've recently been doing some fiddling with Tomcat.  I've built a
 King
 James Bible search program.  I based it off of my brother's perl
 bible
 search program.  It outputs all identical HTML to the perl version. 
 It
 was already out performing it by a couple of seconds on one
 particular
 search.  The search for perl took about 6 seconds and the search in
 the
 J2EE version on tomcat took approx 4 seconds.  With some code
 efficiency
 improvements, I've gotten that down to less than 3 seconds.
 
 Just thought you might all like to hear some good news about Tomcat.
 
 
 Tomcat 4.0.3
 Apache 1.3.20
 Perl 5.6.0
 
 
 --
 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: [offtopic] IDE for Tomcat?

2002-06-13 Thread August Detlefsen

But how many of these IDEs work remotely? Those of us who can only make
ssh connections to our servers are stuck with emacs and ant...

I have tried IntelliJ IDEA and it works over WebDAV (mount the webapp
as a drive using WebDrive or similar), but then you have to deal with
WebDAV slowness...

-August



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




Line Numbers in compiled code...

2002-06-12 Thread August Detlefsen

How do I get line numbers in my stack trace? 

All the org.apache and javax class show line numbers, but my classes do
not:

java.lang.NullPointerException
at showplan.Controller.dispatchContentAction(Controller.java)
at showplan.Controller.service(Controller.java)
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:528)
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:2343)
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.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:484)

__
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: AW: How many rows have a ResultSet?

2002-06-12 Thread August Detlefsen

LoL @ Oracle. It works great with Postgres!


--- Power-Netz (Schwarz) [EMAIL PROTECTED] wrote:
  If you are using JDBC 1.2 you can do it like this (snippet): 
  
  //declare your Statement to return a scroll insensitive result set 
  //before you make the query
  stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
  ResultSet.CONCUR_READ_ONLY);
  
  //get the number of rows by scrolling to the last row, 
  //getting its number, then returning to the start: 
  try {
  resultSet.last();
  numberOfRows = resultSet.getRow();
  resultSet.beforeFirst();
  } catch (Exception e) {
  e.printStackTrace();
  }
 
 This will only work, IF the underlying driver really supports all
 methods
 offered by JDBC. !this is not for sure! - see ORACLE who did not
 implement
 all resultset navigation methods.
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 maiƒ‰

__
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: AW: Line Numbers in compiled code...

2002-06-12 Thread August Detlefsen

Danke Ralph, this will help immensely.  

I did some more research and using ant for builds, that translates into
setting debug=on inside your javac element. 

Now I can't wait for my next bug! Well maybe not...

-A

--- Ralph Einfeldt [EMAIL PROTECTED] wrote:
 - Make shure that you compile with -g.
 - If you did it and you still don't get the numbers, 
   it may help to disable the jit/hotspot compiler.
 
  -Ursprüngliche Nachricht-
  Von: August Detlefsen [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 12. Juni 2002 09:56
  An: Tomcat Users List
  Betreff: Line Numbers in compiled code...
 snip/
  How do I get line numbers in my stack trace? 
  
  All the org.apache and javax class show line numbers, but my 
  classes do not:
 snip/
 
 --
 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: Whats wrong with this code?

2002-06-10 Thread August Detlefsen

What error are you getting? 



--- Juan [EMAIL PROTECTED] wrote:
 This piece of code don't work if the '@' is not found:
 
   String em = usuario.getEmail();
   int p = em.indexOf('@');
   out.println(Integer.toString(p));
 
 if the '@' is within the string, it works well. Why?
 
 Thanks in advance,
 
 Juan José Velázquez Garcia
 Web Development
 www.htmlspider.com.br
 
 
 
 --
 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: How many rows have a ResultSet?

2002-06-10 Thread August Detlefsen

Am I correct in assuming you want the number of rows BEFORE you iterate
the result set? 

If you are using JDBC 1.2 you can do it like this (snippet): 

//declare your Statement to return a scroll insensitive result set 
//before you make the query
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);

//get the number of rows by scrolling to the last row, 
//getting its number, then returning to the start: 
try {
resultSet.last();
numberOfRows = resultSet.getRow();
resultSet.beforeFirst();
} catch (Exception e) {
e.printStackTrace();
}




--- Anibal Constante Brito [EMAIL PROTECTED] wrote:
  Hy,
 
  you can use rs.RecordCount
 
  Regards
  Marcus
 
 the ResultSet don't have this property?, sorry, but you answer don't
 help
 me.
 
 Owen.
 
 --
 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]




Writing XML

2002-06-10 Thread August Detlefsen

There seem to be a million libraries out there for reading and parsing
XML, but how can I WRITE XML? 

I essentially want to take a Collection of Objects (like a List of
Strings) and create an XML Object from that (That I could save to the
filesystem or a database, or pass along to another Servlet for
processing). 

Can anyone recommend a good API for doing this? 

Thanks,
August

__
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: web.xml DTD

2002-06-09 Thread August Detlefsen

Thanks Craig, the DTD from servlet.jar was just what I needed. 

-August

--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Fri, 7 Jun 2002, August Detlefsen wrote:
 
  Date: Fri, 7 Jun 2002 16:54:28 -0700 (PDT)
  From: August Detlefsen [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: web.xml DTD
 
  Where can I find the DTD for web.xml? I want to make sure I have
 the
  elements in the correct order.
 
 
 It is in the servlet specification, which you can download from:
 
   http://java.sun.com/products/servlet/download.html
 
 You can also extract the DTDs that Tomcat uses from the servlet.jar
 file
 that is in the common/lib subdirectory -- it looks at these
 internal
 copies so that DTD validation can occur even if your server is not
 connected to the Internet.
 
  Thanks,
  August
 
 Craig
 
 
 --
 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: Solaris JVM never seems to garbage collect, runs out eventually.

2002-06-07 Thread August Detlefsen

Ralph, you mention using jikes as a possible alternative...

Will jikes work with JDK 1.4? 
Are there any other benefits to using jikes besides the memory leak
issue? 

-August



--- Dave Hladky [EMAIL PROTECTED] wrote:
 Rick Fincher wrote:
 
 The javac in J2SE 1.4 has the memory leak 1.1.1 works OK under
 Solaris.
 
 - Original Message -
 From: Ralph Einfeldt [EMAIL PROTECTED]
 
 - First make shure that you don't have memory leaks on your own.
 - Make shure that you store as few data in sessions as possible.
   Remember that the sessions stay around for 30 minutes after the
   last action in the action. (30 minutes is the default for the
   session timeout). This way the number of concurrent sessions
   can be much higher than the number of active sessions. If you
   get 1 user per minute and each stays for one minute you will have
   30 concurrent session, but only 1 active session.
 
 - The only memory leak that I know in this environment is the java
   compiler of the JDK. It has been reported that in some versions
   of the JDK javac has a memory leak. So each time tomcat compiles
   a page you will lose some memory.
   There are two solutions to this problem:
   - Use only precompiled JSP's (jspc)
   - Use another compiler (jikes) (Don't know if it's available
 for solaris)
 
 - I have read that some VM versions have trouble to invoke the gc
   if there isn't any available memory. It was suggested to issue
   a System.gc() if your free memory is below a watermark.
   I didn't investigate this further.
 
 - Use OptimizeIT to find out where the leaks are.
 
 -Ursprüngliche Nachricht-
 Von: David Hladky [mailto:[EMAIL PROTECTED]]
 
 snip/
 
 Could someone with experience tuning Solaris JVMs
 give me and my friends a hint or two on how to force the JVM to
 
 garbage
 
 collect/tune.  Or is this just a memory leak in Tomcat and or
 JBOSS?
 
 snip/
 
 
 Thanks for the hints, We've torn our code apart with OptimizeIt and
 found out that it really isn't the problem.  I think you are on to
 something about the jsp precompiled thing though.  Thanks again. 
 I'll try a few of the other things you've mentioned. 
 
 --
 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]




web.xml DTD

2002-06-07 Thread August Detlefsen

Where can I find the DTD for web.xml? I want to make sure I have the
elements in the correct order. 

Thanks,
August

__
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: AW: how to virtual hosting with apache 13.x, tomcat 4.0.3, mod_webapp

2002-06-05 Thread August Detlefsen

Works for me... I have about 10 virtual hosts sharing the same
connection. 


--- Nikola Milutinovic [EMAIL PROTECTED] wrote:
  You only need one WebAppConnection statement - The same connection
 is
  shared by multiple vhosts/webapps. Try it like this: 
  
  WebAppConnection conn warp localhost:8008
  
  VirtualHost 193.10.10.25
 DocumentRoot /path/to/website1
 ServerName www.website1.org
 WebAppDeploy website1 conn /website1
  /VirtualHost
   
  VirtualHost 193.10.10.25
 DocumentRoot /path/to/website2
 ServerName www.website2.org
 WebAppDeploy website2 conn /website2
  /VirtualHost
 
 Will this work? I have seen that each connection registers a
 ServerName on the Tomcat side. I'm not saying it is not supported,
 but I had problems with some previous instances. I must confess that
 those instances refused to work even for one VHost, so I cannot claim
 that *that* will not work. Have you tried it?
 
 Nix.
 


__
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: AW: how to virtual hosting with apache 13.x, tomcat 4.0.3, mod_webapp

2002-06-04 Thread August Detlefsen

You only need one WebAppConnection statement - The same connection is
shared by multiple vhosts/webapps. Try it like this: 

WebAppConnection conn warp localhost:8008

VirtualHost 193.10.10.25
   DocumentRoot /path/to/website1
   ServerName www.website1.org
   WebAppDeploy website1 conn /website1
/VirtualHost
 
VirtualHost 193.10.10.25
   DocumentRoot /path/to/website2
   ServerName www.website2.org
   WebAppDeploy website2 conn /website2
/VirtualHost





--- Ralph Einfeldt [EMAIL PROTECTED] wrote:
 Although I'm not using mod_webapp I would suggest:
 
 VirtualHost 193.10.10.25
   DocumentRoot /path/to/website1
   ServerName www.website1.org
   WebAppConnection conn warp localhost:8008
   WebAppDeploy website1 conn /website1
 /VirtualHost
 
 VirtualHost 193.10.10.25
   DocumentRoot /path/to/website2
   ServerName www.website2.org
   WebAppConnection conn warp localhost:8008
   # If you want a seperate instance for each virtual host
   # you have to change the port number to make it unique
   WebAppDeploy website1 conn /website2
 /VirtualHost
 
  -Ursprüngliche Nachricht-
  Von: pascal GEND [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 4. Juni 2002 11:48
  An: [EMAIL PROTECTED]
  Betreff: how to virtual hosting with apache 13.x, tomcat 4.0.3,
  mod_webapp
  
 snip/ 
  know how to do in my httpd.conf: Where to put, for instance
  
  WebAppConnection conn warp localhost:8008
  WebAppDeploy website1 conn /website1 (I have now to use the 
  bad way http://www.myweb.org/website1 which is totally incorrect
  WebAppDeploy website2 conn /website2 (I have now to use the 
  bad way http://www.myweb.org/website2 which is totally incorrect)
  
 snip/ 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto%Û4Æ{[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: Having a Newbie Delamere here.

2002-06-04 Thread August Detlefsen

Still having this problem? I think in here you need to add rs.next() or
rs.first() to move to the first row of the ResultSet before you call
rs.getString():

if (bPageExists)
{
  sQuery = SELECT * FROM tblforms WHERE PageOrder =  + iPage;
  stmt = conn.createStatement();
  rs = stmt.executeQuery(sQuery);

  //ADDED: 
  rs.first();

  // Assign values from the database
  sSubTitle = rs.getString(SubTitle);
  sFormName = rs.getString(FormName);
  sContent = rs.getString(Content);
  
  iBackPage = iPage - 1;
  iNextPage = iPage + 1;

  rs.close();
  stmt.close();
}



--- Nicholas Orr [EMAIL PROTECTED] wrote:
 Again coming from the ASP world of doing things.
 in ASP you can open a connection to a Database (DB) and execute a
 bunch of
 queries and do whatever you need to then after you have finished
 close the
 connection.
 
 Now I have tried to do this in jsp, but not having much luck.  Keep
 getting
 'Result set type is TYPE_FORWARD_ONLY'
 
 Cause In ASP when you start a new ResultSet, after you have closed
 the
 previous one, (asp equiv = recordset) It automatically goes back to
 the
 begining as it should, but in jsp it seems to just hang around at
 rs.last().
 
 !I don't know!
 
 Well if you could help, I would appreciate it, Source included.
 
 Regards,
 
 Nicholas
 
 
 
 

**
 The information contained in this e-mail is confidential and is
 intended only for the use of the addressee(s).
 If you receive this e-mail in error, any use, distribution or
 copying of this e-mail is not permitted. You are requested to
 forward unwanted e-mail and address any problems to the
 MIM Holdings Limited Support Centre.
 
 For general enquires: ++61 7 3833 8000
 Support Centre e-mail:[EMAIL PROTECTED]
 Support Centre phone: Australia 1800500646
   International ++61 7 38338042

**
 
 

 ATTACHMENT part 2 application/octet-stream name=LanIDForm.jsp
 --
 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: Can all virtual hosts use a webapp that is put inside $tomcat _home$/webapps?

2002-05-15 Thread August Detlefsen

Is this also supported in TC 4.x? 



--- Larry Isaacs [EMAIL PROTECTED] wrote:
 I don't believe Tomcat 3.2.x supports auto-serving the
 webapps directory for hosts other than the default host.
 However, this is supported in Tomcat 3.3.x.  The
 AutoWebApp ... element in the server.xml file supports
 specifying the directory and host, e.g.:
 
 AutoWebApp dir=webapps host=DEFAULT /
 AutoWebApp dir=webapps host=www.domain.com /
 
 For details see:
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#AutoWebApp
 
 Cheers,
 Larry
 
  -Original Message-
  From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, May 14, 2002 7:58 PM
  To: Tomcat Users List
  Subject: RE: Can all virtual hosts use a webapp that is put 
  inside $tomcat_home$/webapps?
  
  
  Everyone must have gone home...I'm really hoping that someone 
  can help with
  this, it seems like it would be a common problem.
  
  Tomcat 3.2.x will not find files inside a webapp unless that webapp
 is
  specifically declared inside each virtual host in the 
  server.xml file.  I
  want to be able to put all my webapps inside 
  $tomcat_home$/webapps so that
  they will automatically be found.  Since we have many virtual 
  hosts, each
  using several different webapps, is there any way to avoid 
  the myWebapp
  context entry below for hundreds of diffent virtual hosts?
  
  
  Host name=www.domain.com
   Context path=
   docBase=/usr/local/vhosts/domain.com/httpdocs
   crossContext=false
   debug=0
   reloadable=true
   /Context
  
   Context path=/myWebapp
   docBase=/usr/local/tomcat/webapps/myWebapp
   crossContext=true
   debug=0
   reloadable=true
   trusted=false
   /Context
  /Host
  
  
  
  Please help!  We've been banging our heads on this all day!
  
  Thanks
  
  Brandon
  
  
  -Original Message-
  From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 14, 2002 5:06 PM
  To: Tomcat Users List
  Subject: Can all virtual hosts use a webapp that is put inside
  $tomcat_home$/webapps?
  
  
  I have many virtual hosts.  Right now, they all access a 
  webapp because I
  have set the context to that webapp inside their Host tag 
  in server.xml.
  I would like to change it so that all I have to do is put the 
  webapp inside
  $tomcat_home$/webapps.  Is this possible so that I can avoid 
  the redundant
  entries in server.xml, or does virtual hosting cause a 
  problem with this?  I
  am using tomcat 3.2.4, thanks in advance for any help!
  
  
  Brandon
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user- [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!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: Restart Session Persistence

2002-05-14 Thread August Detlefsen

If you want certain session data to not be serialized, just make those
variables transient in whatever bean classes you are using in session.
This will prevent just those variables from being saved.

public class UserBean implements Serializable {

  private String username; 
  private transient String password;  //password won't serialize

//getters and setters, other methods, etc.

}

-August



--- Bill Boland [EMAIL PROTECTED] wrote:
 
 Hello all. I've been having a bit of a problem with the restart
 session
 persistence in Tomcat 4.0.3.
 I've been examining the documentation on the Manager
 (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
 and I saw a few others who were having some problems with it (mainly
 with static attributes or JNDI). Even if I wasn't having a problem
 with
 it I may not want session data serialized on the web tier in some
 applications (example: for security reasons) while in other it may be
 a
 good thing. Until I figure out why I'm getting some
 ClassNotFoundExceptions when the web application is starting up, I
 thought I'd throw out this sample snippet from my server.xml that
 turns
 this off for a single web application. It beats deleting the
 SESSIONS.ser each time.
 
   Context path=/test
  docBase=C:\webapps\test
  debug=0 
   Manager
 className=org.apache.catalina.session.StandardManager pathname=
 /
   /Context
 
 The source code states that if the pathname is null, it will not use
 persistence. Not knowing how to set it to null from server.xml, I
 tried
 setting the pathname to an empty value (vs. the default SESSIONS.ser)
 and that seems to have disabled it. It didn't really disable it, but
 it
 couldn't create the relative file in the web application's work
 directory since it existed as the directory itself. I see exceptions
 in
 my log file...but at least my sessions are no longer persistent for
 this
 one application. You could probably put a bad file name with
 characters
 that are invalid for files of your O/S and get the same results.
 
 Now for the question and answer portion of the show...
 
 Is there a better way to do this? I guess I could create my own
 custom
 Manager class but it seems that 99.9% of this is already there...I
 just
 can't set pathname to null from server.xml (or can I?). If not, do
 you
 think setting pathname to the empty string is a reasonable
 enhancement
 that could be added (possibly to StandardManager.setPathname()) so
 that
 it be turned off (without generating exceptions).
 
 Also, again for security reasons, shouldn't the persistent sessions
 (SESSIONS.ser) be deleted once loaded?
 
 Thanks for any thoughts. 
 
 bill
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: off-topic: sun website broken?

2002-05-13 Thread August Detlefsen

Seems to be working for me. Of course I find the fact that the whole
sun.com site is static html and cgi very disheartening...



--- Milind Nirgun [EMAIL PROTECTED] wrote:
 This post is not directly tomcat related but since most people on the
 list 
 would be frequent browsers of the java website, I thought I would
 take a 
 chance. 
 Is the java and Sun website broken? I am getting a lot of broken
 links all 
 over. Around the same time, Sun upgraded its website, I upgraded my
 linux and 
 have been configuring the netfilters to get it right, so I am not
 sure 
 whether it me or them.
 
 Sorry for posting this question here, but appreciate all responses.
 Thanks
 Milind
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: Problem Uploading Image files

2002-05-13 Thread August Detlefsen

Make sure you have the latest version of mod_webapp installed. There
was a bug in multipart handling in earlier versions. 


--- Lawlor, Frank [EMAIL PROTECTED] wrote:
 We have been using the O'Reilly multipart upload code, but
 are having problems uploading image (jpg, gif) files.  I have 
 tried this on Tomcat 3.3, 4.0.3 and 4.0.425 with same results.
 
 Same results going thru IIS front end and talking 
 directly to tomcat on port 8080.
 
 The uploaded file is ALMOST identical to the original,
 but all the x8X values are converted to x3F ('?').
 
 Any ideas what may be causing this or how to fix it? 
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating
 technology
 strategy and software solutions.
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: tomcat 4.0 DB connection pooling (using JNDI) and Oracle DB

2002-05-10 Thread August Detlefsen

So does anyone know if this is scheduled to be fixed in 4.0.4? Is there
a change log on the site? 

What about 4.1? Is it released yet? The docs in the 4.1 section all
refer to 4.0.x.


--- Valera Molyakov [EMAIL PROTECTED] wrote:
 I completely agree with Nikola !
 
 After numerous attempts I too could not receive pooled connection
 through
 tyrex.
 
 It not supports JDBC 2.0 API for connection pooling !!! :(
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

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




Re: cgi-bin

2002-05-03 Thread August Detlefsen

Implement the CGIServlet. 

In $CATALINA_HOME/conf/web.xml, uncomment: 

  servlet
servlet-namecgi/servlet-name
   
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/load-on-startup
   /servlet

There are configuration comments in web.xml for how to set the params. 

One caveat: The CGIServlet only works with GET requests, not POST.

-August



--- James Williamson [EMAIL PROTECTED] wrote:
 It all depends what Tomcat/Apache connector you're
 using, by default you can't stop requests being redirected
 to Tomcat using mod_webapp, although you can with jk.
 
 Regards, 
 
 James Williamson
 www.nameonthe.net
 UK Tomcat Hosting
 
 - Original Message - 
 From: Ken Anderson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, May 03, 2002 12:26 AM
 Subject: Re: cgi-bin
 
 
  kidding?
  um... rewrite them as servlets, or reinstall apache.
  Ken
  
  
  Oki DZ wrote:
   Hi,
   
   I replaced Apache with Tomcat; problem is, what should I do so
 that 
   these cgi scripts could get executed...?
   
   Thanks in advance,
   Oki
   
   -- 
   To unsubscribe:  
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
   
   
   
  
  
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: plz help

2002-05-03 Thread August Detlefsen

I have had the same problem. Usually I'll make a stored procedure for
inserts that takes as parameters the values you wish to store, inserts
the new row and returns the new ID. 

This is for Postgres, but you can adapt it to your DB:

CREATE FUNCTION new_row(INTEGER, VARCHAR, VARCHAR, DATE, DATE, DATE)
RETURNS INTEGER AS '
DECLARE
in_some_number ALIAS FOR $1;
in_firstname ALIAS FOR $2;
in_lastname ALIAS FOR $3;
in_online_date ALIAS FOR $4;
in_retire_date ALIAS FOR $5;
in_data_date ALIAS FOR $6;
newId INTEGER NOT NULL DEFAULT 0;
BEGIN
SELECT INTO newId nextVal(\'row_id_seq\');

RAISE NOTICE ''ID %'',newId;

INSERT INTO my_table
(row_id, some_number, firstname, lastname, online_date,
retire_date, data_date)
VALUES (newId, in_some_number, in_firstname, in_lastname,
in_online_date, in_retire_date, in_data_date);

RETURN newId;

END;
' LANGUAGE 'plpgsql';




--- Phillip Morelock [EMAIL PROTECTED] wrote:
 AFAIK you can't do this.
 
 with HTTP file uploads you have to store the data immediately or it
 is lost.
 You have to store the file part to a temp file, then do all your
 work, then
 come back and move the file and give it your new name, or delete it
 if your
 transaction didn't go through.
 
 
 
 
 On 5/3/02 1:01 AM, # Lalit Nagpal # [EMAIL PROTECTED] wrote:
 
  
  sorry out of topic
  
  i am uploading files along with some form data, strategy is i store
 form data
  first the primary key is auto_incremented and then i name the
 uploaded files
  with the primary key so that i can recognize which uploaded file
 belongs to
  who. now when i store the record in mysql i get back a resultset
 which
  contains no value (returned by statement.executeQuery(insert ...)).
 How to get
  the primary key which is auto generated (incremented by mysql)
 after inserting
  a record (primary key of the inserted record).
  
  suggestions welcome and thanx in advance
  
  
  
  
  # Lalit Nagpal #
  
  
  -
  Do You Yahoo!?
  Yahoo! Health - your guide to health and wellness
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




RE: Apache login attempts

2002-05-01 Thread August Detlefsen

Normally it will ask you again and again until you click cancel. Do you
have some special configuration? 



--- Collins, Jim [EMAIL PROTECTED] wrote:
 Any Apache gurus out there who know how I can force Apache to give a
 user
 more than one login attempt if they enter the wrong user name or
 password.
 
 Thanks
 
 Jim.
 
  -Original Message-
  From: Collins, Jim [mailto:[EMAIL PROTECTED]]
  Sent: 26 April 2002 13:47
  To: 'Tomcat Users List'
  Subject: Apache login attempts
  
  
  I know this is not a Tomcat problem but does anyone know how 
  I can configure
  Apache to allow a user more than on login attempt.
  
  Many thanks
  
  Jim.
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 
 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not an
 intended
 recipient of this email you must not copy, distribute or take any 
 further action in reliance on it and you should delete it and notify
 the
 sender immediately. Email is not a secure method of communication and
 
 Nomura International plc cannot accept responsibility for the
 accuracy
 or completeness of this message or any attachment(s). Please examine
 this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then
 please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those
 of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura International plc
 is
 regulated by the Financial Services Authority and is a member of the
 London Stock Exchange.
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: Trouble getting Apache talking to Tomcat

2002-04-23 Thread August Detlefsen

Try this: 

LoadModule webapp_module  libexec/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection warpConnection warp 64.105.155.196:8008
WebAppDeploy examples warpConnection /examples



--- zonker harris [EMAIL PROTECTED] wrote:
 Hey all,
 
 I've set up Tomcat, I've put mod_webapp.so into apache's libexec 
 directory and after i restart Tomcat, when I restart apache it throws
 
 this error.
 
 # ../bin/apachectl start
 Syntax error on line 1159 of /usr/local/apache/conf/httpd.conf:
 Invalid command 'WebAppMount', perhaps mis-spelled or defined by a 
 module not included in the server configuration
 ../bin/apachectl start: httpd could not be started
 
 this is the relevant section of the httpd.conf
  LoadModule webapp_module libexec/mod_webapp.so
   WebAppConnection warpConnection warp 64.105.155.196:8008
   WebAppMount examples warpConnection /examples
 
 if i comment out WebAppMount, apache will start (but not talk to
 tomcat)
 
 Apache version
 Server version: Apache/1.3.22 (Unix)
 Server built:   Oct 10 2001 14:50:42
 
 Tomcat version
 4.0-B3
 
 I am sure I am just missing something stupid, any assist toward 
 enlightenment would be appreciated
 
 thanks
 
 zonker
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: Directory Listing per web-app

2002-04-18 Thread August Detlefsen

Define the default servlet for each webapp in which you need a
different setting (in WEBAPP_DIR/WEB-INF/web.xml). 


--- Chad Perry [EMAIL PROTECTED] wrote:
 I know I can turn off directory listing for the entire tomcat 4.0.3
 server via the conf/web.xml:
 
 
   servlet
 .
 .
 .
   param-namelistings/param-name
   param-valuefalse/param-value
 .
 .
   /servlet
 
 
 But how can one turn it off on a per web-app, per directory basis?
 
 
 Thanks
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: Money for Projects

2002-04-18 Thread August Detlefsen

You can already donate to thousands of charities (including Apache and
EFF) using JustGive.org. Because they are sponsored, they are able to
send 100% of your donation to the charity and there is no added service
fee. 

http://www.justgive.org




--- Christopher Reed [EMAIL PROTECTED] wrote:
 100% of the designated amount goes to the beneficiary, and we add a
 separate 10% service fee which we hope will someday cover our
 expenses.
 If it's too much...then the market will drive it down. If it's too
 little, then we won't be around long or we'll raise it;) If someone
 can
 do a better job at delivering the service, they can click the (0)
 in
 any screen of our service, download a tarball of our source, set up a
 bunch of machines and compete.-Reed
 
 
  On Wed, 17 Apr 2002 11:57:56 -0700 (PDT)
 Timothy Fisher [EMAIL PROTECTED] wrote:
 
  Do you know how much they skim off the top for their
  service fee?
  
  --- Jay Gardner [EMAIL PROTECTED] wrote:
   O.K., my bad! I went and looked and this looks like
   a reputable site. I hope
   the money does indeed go to the right places.
   
   --Jay Gardner
   
   -Original Message-
   From: Jay Gardner [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, April 17, 2002 12:15 PM
   To: Tomcat Users List
   Subject: RE: Money for Projects
   
   Sorry for the knee-jerk reaction! I am all for
   rewarding developers for
   their hard work. I just don't want some organization
   skimming off the top
   when you can just as easily contact a developer or
   organization directly and
   donate that way. I guess I need to go find out about
   the service before
   passing judgment.
   
   --Jay Gardner
   
   -Original Message-
   From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, April 17, 2002 12:09 PM
   To: 'Tomcat Users List'
   Subject: RE: Money for Projects
   
   
   imo there's nothing wrong with what this person is
   putting together. what's
   the harm.
   
   
   -Original Message-
   From: Jay Gardner [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, April 17, 2002 1:57 PM
   To: Tomcat Users List
   Subject: RE: Money for Projects
   
   
   Go away and don't come back!!
   
   -Original Message-
   From: Christopher Reed [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, April 17, 2002 12:00 PM
   To: [EMAIL PROTECTED]
   Subject: OT: Money for Projects
   
   
   Apologies in advance if this feels spammy.
   
   I have been working with a few folks on a grassroots
   way for people to
   donate money to various non-profits  projects such
   as Apache, Hurd,
   EFF, or even to a given developer.  This donation
   might be in response
   to some helpful feedback given by that developer in
   response to a
   question; it might be because their name and URL
   were in some software
   they used.  Affero takes a bit off the top for our
   expenses , which we
   think is reasonable given the costs involved in
   credit card auth and the
   like. The software used to deliver the service is
   open source.
   
   Take a look at a the link I created below
   
   People can go to that URL and donate money, 35% of
   which goes to the
   Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.
   
   We're very interested in any comments and feedback
   on the
   site/service. You can check it out at
   http://www.affero.com.
   BTW, we have been told that we should lower our
   $15.00 minimum donation.
   What do you think?
   
   Thanks
   
   Reed
   
  
 
 ~
  ~~~ How valuable is my contribution? Share your feedback
   at Affero:
   http://svcs.affero.net/rm.php?r=creedp=Projects
   
   Office: 415 371 9900
   [EMAIL PROTECTED]
   http://www.affero.com
   
   --
   To unsubscribe:  
   mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
   
   --
   To unsubscribe:  
   mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
   --
   To unsubscribe:  
   mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
   
   --
   To unsubscribe:  
   mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
   
   --
   To unsubscribe:  
   mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Tax Center - online filing with TurboTax
  http://taxes.yahoo.com/
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 


Re: Is there a native JDBC driver for MS Access?

2002-04-10 Thread August Detlefsen

There are JDBC drivers for Access out there, but you have to pay for
them: 

http://www.idssoftware.com/jdbcdrv.html

http://www.atinav.com/products/aveconnect/MSAccess.htm

(I have no idea how either of these performs though)



--- chuck amadi [EMAIL PROTECTED] wrote:
 Adrian Beech wrote:
 
 Um, okay then how stable is the JDBC/ODBC bridge?  As I
 previously
 mentioned in my initial posting some bits and peices that I've read
 suggest
 that this method of connecting to a DB back end is, or can be, a
 little
 dodgy.  The comments basically revolved around the premise that the
 bridge
 is not capable of being threaded and it is considered by Sun to
 still be
 experimental.  I got the impression that there is potential for data
 loss or
 corruption along with performance related issues.
 
 I guess I really need to know if it is reasonable to use Tomcat to
 host an
 environment that relies on this sort of DB connectivity.
 
 Adrian
 [EMAIL PROTECTED]
 
 
 - Original Message -
 From: Matt Gregory [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, April 06, 2002 11:06 PM
 Subject: Re: Is there a native JDBC driver for MS Access?
 
 
 No, you are forced to use the JDBC/ODBC bridge or purchase one of
 the
 proprietary drivers available.  I know there are Paradox, FoxPro
 and dBase
 IV drivers but I have not seen any for Access.
 
 - Original Message -
 From: Adrian Beech [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Sunday, April 07, 2002 6:47 AM
 Subject: Is there a native JDBC driver for MS Access?
 
 
 G'day all,
 
 Is there a native JDBC driver for MS Access?  A few postings I've
 seen in
 the list archive make mentioned that the JDBC/ODBC bridge is a bit
 dodgy.
 
 I have Tomcat 4.03 running as a standalone on a Win 2k pro box with
 JDK
 1.3.1 installed.
 
 I'm rather new to Tomcat, JSP, JDBC, etc...
 
 Any help would be appreciated.
 
 Adrian Beech
 [EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 I was under the impression that it was recommended that you obtain a 
 commercial JDBC driver from a vendor such as your RDBMS /middleware 
 vendor as the JDBC-ODBC driver is usaually used for experimental use
 or 
 if no other is available.
 Anyway there is mysql odbc which works fine with Mysql back-end and 
 front-end M$ Aceess 2000.
 
 Cheers Chuck Amadi
 Systems Programmer
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




/lib and /common/lib What's the difference?

2002-04-10 Thread August Detlefsen

Is there a difference between $CATALINA_HOME/lib and
$CATALINA_HOME/common/lib ? 

Does it matter whether something is deployed in one or the other? 

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Slide + TC4 + Apache with virtual hosts

2002-04-10 Thread August Detlefsen

Can anyone give me an example of a config to do this? 

My setup is: 

Apache 1.3 using mod_webapp to connect to Tomcat 4.0.2

I have multiple virtual hosts defined (in server.xml and
httpd.conf) that I want to access via Slide's WebDAV component. 

Looking at the server.xml that came with Slide's default server I see
Host entries like this: 

  !-- Define the default virtual host --
  Host name=localhost8081 debug=0 appBase=blank
unpackWARs=false className=wrappers.catalina.WebdavHost

I tried adding the className param to the virtual hosts defined in my
existing server.xml, but then Tomcat fails to start with this
exception. Why would it no longer be able to find
org/apache/catalina/core/StandardHost? -it is still in
$CATALINA_HOME/server/lib/catalina.jar : 

Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: org/apache/catalina/core/StandardHost
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:671)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1090)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




WebdavServlet

2002-04-09 Thread August Detlefsen

How do I implement security using the WebdavServlet? mod_dav uses a
standard .htpasswd file to track the various developers' logins, is
this similar?

Can I limit the types of DAV actions that can be performed?

Where is the DAV lock information stored?

Does anyone know the possible init-params for the WebdavServlet? I got
these from the web.xml in the example, but are there other params?: 

 servlet
servlet-namewebdav/servlet-name
   
servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param
!-- Uncomment this to enable read and write access --
init-param
  param-namereadonly/param-name
  param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: WebdavServlet

2002-04-09 Thread August Detlefsen

--- Remy Maucherat [EMAIL PROTECTED] wrote:
  How do I implement security using the WebdavServlet? mod_dav uses a
  standard .htpasswd file to track the various developers' logins, is
  this similar?
 
 It uses the standard security provided by the container.


So I have to configure a Realm? Or will it work with Single Sign On? 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: WebdavServlet

2002-04-09 Thread August Detlefsen

Thanks a lot Remy, I've got it working for everything except PUT. 

I notice in the source that the PUT method is not implemented in
WebdavServlet. Is this supposed to be handled by the DefaultServlet?




--- Remy Maucherat [EMAIL PROTECTED] wrote:
  --- Remy Maucherat [EMAIL PROTECTED] wrote:
How do I implement security using the WebdavServlet? mod_dav
 uses a
standard .htpasswd file to track the various developers'
 logins, is
this similar?
  
   It uses the standard security provided by the container.
 
 
  So I have to configure a Realm? Or will it work with Single Sign
 On?
 
 Both. The security check is declared in web.xml (same as with a
 standard
 webapp).
 
 Remy
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: NIGHTMARE

2002-04-08 Thread August Detlefsen

Search the list!

I posted my whole virtual hosts config for Apache 1.3/TC 4 ages ago and
it works like a champ.


--- Thomas Cherry [EMAIL PROTECTED] wrote:
 I agree.  I gave up trying to get tomcat and apache to talk together
 and
 would have loved better documentation, and perhaps examples that
 work.
 Don't get me wrong, I love tomcat, I just want to put my vote in for
 better
 docs.
 
 on 4/8/02 10:56 AM, Javier A. Leyba at [EMAIL PROTECTED] wrote:
 
  On 08/04/2002 at 11:48 Martin Mauri wrote:
  
  Do what you want. I feel sorry about you. You're losing the best
 and
  calling
  Tomcat a crap tells you're a loser.
  I've installed Tomcat in 5 minutes.
  
  
  
  Hi Martin
  
  I could say yes and no.
  
  I think Tomcat is great, but installatin is not so easy as Apache
 with PHP and
  documentation about installing sucks.
  
  I guess people need more clear examples to do simple configuration
 tasks till
  get the idea. I've installed Tomcat in my XP in 10 minutes but I'm
 trying to
  get virtual hosts working from 3 days ago. I'm frustrated and feel
 myself like
  a newbie, but I´m not a newbie (damn !)
  
  IMHO
  
  jl
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: NullPointerException when using JDBC ResultSet next() method

2002-04-08 Thread August Detlefsen

The stack trace says that your NullPointer occurs on line 45, but line
45 is blank. Is there some more code that you didn't ost? Import
statements, perhaps? 

I think it probably happened here: 

stmt = con.createStatement();

-IE: You were not able to get a Connection, con is null and calling its
methods will give you the NullPointer. Are you sure the driver loaded
properly?


--- Philip Kazmier, CEM RD [EMAIL PROTECTED] wrote:
 
 
 I am getting this error in a servlet compiled on Win2K, using
 JDK1.3.1 and
 Tomcat 3.3 with MySQL 3.23.47:
 
 Location: /PSSoftware/servlet/ListAllOpenBugs
 Internal Servlet Error:
 java.lang.NullPointerException
   at ListAllOpenBugs.doGet(ListAllOpenBugs.java:45)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
   at org.apache.tomcat.core.Handler.invoke(Unknown Source)
   at org.apache.tomcat.core.Handler.service(Unknown Source)
   at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
   at org.apache.tomcat.core.ContextManager.internalService(Unknown
 Source)
   at org.apache.tomcat.core.ContextManager.service(Unknown Source)
   at

org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
 Source)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
   at java.lang.Thread.run(Thread.java:484)
 
 
 Here is the servlet code:
 
 public class MySQLTest extends HttpServlet
 {
   public void doGet(HttpServletRequest req, HttpServletResponse res)
 throws ServletException, IOException
   {
   Connection con = null;
   Statement stmt = null;
   ResultSet rs = null;
 
   res.setContentType(text/html);
   PrintWriter out = res.getWriter();
 
   try
   {
   // Load the MySQL driver
   Class.forName(org.gjt.mm.mysql.Driver);
   //try {
   
 //Class.forName(twz1.jdbc.mysql.jdbcMysqlDriver);
   //}
   //catch(Exception e){out.println(e);}
 
   // Get a connection to the database
   con =

DriverManager.getConnection(jdbc:mysql://localhost:3306/test?user=rootpass
 word=typhoon);
   
   // Create a statement object
   stmt = con.createStatement();
 
   // Execute and SQL query, get a result set
   rs = stmt.executeQuery(SELECT * from test);
 
   // Display the result set as a list
   
 out.println(HTMLHEADTITLETest/TITLE/HEAD);
   out.println(BODY);
   out.println(UL);
   while(rs.next()) 
   {
   out.println(LI + rs.getString(test));
   }
   out.println(/UL);
   out.println(/BODY/HTML);
 
   }
   catch (ClassNotFoundException e)
   {
   out.println(Couldn't load the database driver-  +
 e.getMessage());
   }
   catch(SQLException e)
   {
   out.println(SQLException caught:  +
 e.getMessage());
   }
 
   finally
   {
   try
   {
   if (con != null) con.close();
   }
   catch(SQLException ignored) { }
   }
   }
 };
 
 As you can see I tried this with Oracle.  I get the same result when
 I used
 Oracle.
 
 Thanks.
 
 Phil Kazmier
 Developer,  CEM
 NICE Systems
 Denver, Colorado
 Office (720) 264-4284
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




RE: Kinda not topical

2002-04-05 Thread August Detlefsen

I loved the IntelliJ demo I saw at JavaOne, but I need the ability to
edit files that are actually ON the server, without downloading them
all to my local environment. 

Does anyone offer an IDE that can do this without using NFS (say over
an SSH connection)? 


--- Mark Shaw [EMAIL PROTECTED] wrote:
 Vladimir
 
 I've been using IDEA from IntelliJ (www.intellij.com) for awhile and
 it's
 very nice.  It's designed to truly enhance the server-side
 developer's daily
 experience with great re-factoring and search features.  It's also
 fairy
 simple to use and navigate unlike all the bloated EJB based IDE's out
 there.
 
 
 (No, I don't work for the company...)
 -Mark
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: Kinda not topical

2002-04-05 Thread August Detlefsen

Thanks for the tip. I am using Emacs right now, but I want to try out
the other options. Is WebDAV secure?




--- Matt Gregory [EMAIL PROTECTED] wrote:
 Emacs and vi/vim can be used remotely via SSH.  You can also create a
 WebDAV
 compliant filesystem and edit the files that way.
 
 - Original Message -
 From: August Detlefsen [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 05, 2002 3:00 PM
 Subject: RE: Kinda not topical
 
 
  I loved the IntelliJ demo I saw at JavaOne, but I need the ability
 to
  edit files that are actually ON the server, without downloading
 them
  all to my local environment.
 
  Does anyone offer an IDE that can do this without using NFS (say
 over
  an SSH connection)?
 
 
  --- Mark Shaw [EMAIL PROTECTED] wrote:
   Vladimir
  
   I've been using IDEA from IntelliJ (www.intellij.com) for awhile
 and
   it's
   very nice.  It's designed to truly enhance the server-side
   developer's daily
   experience with great re-factoring and search features.  It's
 also
   fairy
   simple to use and navigate unlike all the bloated EJB based IDE's
 out
   there.
  
  
   (No, I don't work for the company...)
   -Mark
  
   --
   To unsubscribe:  
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Tax Center - online filing with TurboTax
  http://taxes.yahoo.com/
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Does CGIServlet work with POST?

2002-03-18 Thread August Detlefsen

I setup the CGIServlet for one of my customers using a perl CGI. After
much debugging and delving into perl code, we tried switching the
form's POST method to GET and it worked fine after that. 

Does CGIServlet not support POST? 

-August

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: Information required _getString()

2002-03-15 Thread August Detlefsen

If there are no line breaks stored, then of course you will not get any
out. 

What database are you using? Maybe it doesn't allow line breaks in the
VARCHAR type?
 
What are you using to get the values IN to the database? Are you using
some JDBC abstraction that strips the line breaks prior to INSERT?

What DB driver are you using? Maybe it is flawed? 




--- puneet sachar [EMAIL PROTECTED] wrote:
 Listen August 
 
 the values store in database not with line break but
 as white space
 
 u do one thing include a text area and then add thre
 values in database the value store and goes as white
 space no line break ..
 
 plz help me 
 try to find out ...with more people 
 
 and thanx a lot for ur support
 
 Reagrds
 Puneet Sachar
 e-Developer
 Shyama software solutions
 New Delhi
 91-011-4675836
 --- August Detlefsen [EMAIL PROTECTED] wrote:
  Puneet, 
  
  Are the entries stored in the DB with the line
  breaks? Do you just need
  a way to translate \n or \r\n to BR for display on
  the HTML page? 
  
  
  
  --- puneet sachar [EMAIL PROTECTED] wrote:
   Hello fellow developer
   
   I got stuck somewhere 
   
   actually there is a form which collect the detail
   resume of the candidate and in database it is
  saved as
   string of varchar(7000) in sql database
   
   now when i collect that data base by sending the
   required querry the resume is colected through get
   string ..
   
   No problem is that 
   if the resume mention like this ..
   
   Resume 
   
   
   Candidate name - two
   
   ,,
   
   
   
   
   
   but when i want to print ..evry cahracter comes in
  st.
   line ..
   
   
   how i get in the same patten as filled by
  candidate 
   
   PLZ i cannot change the database.
   
   
   Reagrds
   Puneet Sachar
   
   __
   Do You Yahoo!?
   Yahoo! Sports - live college hoops coverage
   http://sports.yahoo.com/
   
   --
   To unsubscribe:  
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Sports - live college hoops coverage
  http://sports.yahoo.com/
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: Information required _getString()

2002-03-14 Thread August Detlefsen

Puneet, 

Are the entries stored in the DB with the line breaks? Do you just need
a way to translate \n or \r\n to BR for display on the HTML page? 



--- puneet sachar [EMAIL PROTECTED] wrote:
 Hello fellow developer
 
 I got stuck somewhere 
 
 actually there is a form which collect the detail
 resume of the candidate and in database it is saved as
 string of varchar(7000) in sql database
 
 now when i collect that data base by sending the
 required querry the resume is colected through get
 string ..
 
 No problem is that 
 if the resume mention like this ..
 
 Resume 
 
 
 Candidate name - two
 
 ,,
 
 
 
 
 
 but when i want to print ..evry cahracter comes in st.
 line ..
 
 
 how i get in the same patten as filled by candidate 
 
 PLZ i cannot change the database.
 
 
 Reagrds
 Puneet Sachar
 
 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: apache tomcat integration syntax error in httpd.conf

2002-03-13 Thread August Detlefsen

For virtual hosts, you have to create the webapp connection AFTER you
specify the NameVirtualHost, like this: 

NameVirtualHost 12.34.56.78

# create the webapp connection
WebAppConnection conn  warp  localhost:8008
WebAppInfo /webapp-info


Then actually deploy the webapps within your virtual host blocks: 

VirtualHost 12.34.56.78
ServerName www.mycompany.com
DocumentRoot /path/to/mycompany.com
WebAppDeploy ROOT  conn  /
WebAppDeploy manager   conn  /manager
/VirtualHost


--- Paul Phillips [EMAIL PROTECTED] wrote:
 Here's what else I found since first writing the email quoted below.
 
 FYI - Tomcat 4.0.3
 mod_webapp binary for linux i386 (I did not compile it)
 
 If I comment out the WebAppDeploy line, then apachectl configtest
 (and 
 start) report the same error of invalid virtual host name for the 
 following WebAppInfo line.
 
 If I comment out both the WebAppDeploy line and the WebAppInfo line, 
 apachectl configtest reports syntax OK.  However, that is useless, 
 because I haven't associated any tomcat webapps to an apache URL.
 
 I tried adding a trailing slash to /examples, but that didn't change 
 anything.
 
 If anybody has any ideas, I would be most grateful.
 
 Regards,
 Paul Phillips
 
 
 
 --On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips 
 [EMAIL PROTECTED] wrote:
 
  Hello -
 
  I am trying to integrate Apache and Tomcat with the warp connector.
 
  I am following the instructions at:
  http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
  which are dated March 6, 2002, so they aren't too old!
 
  I have followed the instructions exactly as stated on my RedHat
 Linux 7.2
  platform.  I am not using the RedHat Apache, but rather I built it
 from
  scratch.
 
  Per the instructions, I added these lines to the very end of
 httpd.conf
 
  IfModule mod_webapp.c
   WebAppConnection conn  warp  localhost:8008
   WebAppDeploy examplesconn  /examples
   WebAppInfo /webapp-info
  /IfModule
 
  When I run apachectl configtest, I get this error message:
  Syntax error line xxx
  Invalid virtual host name
 
  The line number is the line that is:
   WebAppDeploy examplesconn  /examples
 
  I cannot figure out why it thinks this is a virtual host name, or
 what I
  have wrong that is producing the syntax error.
 
  Can anyone help?
 
  Thanks
  Paul Phillips
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 ___
 Paul Phillips
 Director of Orchestral Activities, Meadows School of the Arts
 Southern Methodist University
 
 You must sing every note you play, sing even through the rests!
 Arturo Toscanini
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




How often do I need to restart Apache

2002-03-13 Thread August Detlefsen

I am using Apache 1.3 and TC 4. 

Do I need to restart Apache every time I restart Tomcat, or only when
the Apache-Tomcat configuration changes? 

For example, if I only make changes to the classes in
$TOMCAT_HOME/classes or $TOMCAT_HOME/lib I know I need to restart
Tomcat, but do I need to restart Apache too?

Thanks,
August

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Re: JDBC, tomcat setup question

2002-03-13 Thread August Detlefsen

This is definately a RTFM issue, buuut: 

Put your .jar files in: /path/to/tomcat/lib 

There is no need to change the classpath, TC picks it up automatically
when it is started. 


--- Leila Lappin [EMAIL PROTECTED] wrote:
 Hi all,
 
 I'm trying to set up tomcat and port an application that I developed
 and tested using Jrun, being new to the environment and I have two
 questions. My first question is adding additional jar files like jdbc
 jar files. I've been reading through a lot of material trying to
 figure out how to set up tomcat environment to do so, couldn't find
 any clear references. Under Jrun every web-application has a user
 classpath that can be modified for additional jar files and third
 party software. I can't find any such feature in tomcat. Can someone
 please give me some advice or where to find information on this
 issue? 
 
 I haven't read through all documentation yet but the general
 impression I've been getting is that to modify tomcat's environment
 and behavior the server must be rebuilt and can't be changed by
 simply switching the run time environment that supports a new
 feature. This brings me to my second question, in the document
 tomcat-3.2/tomcat-ssl-howto.html it is indicates that to use Tomcat
 with SSL it has to rebuild. Does that mean that if I download the
 binary I will not have the version that works with SSL? Or better yet
 if someday in the future I needed to add something that's not part of
 the features of the download then I would have to download and
 rebuild to get it?
 
 I thank you all in advance for you patience and help. As you may have
 guessed I'm new to both tomcat and Linux.
 
 Leila
 
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Re: JDBC, tomcat setup question

2002-03-13 Thread August Detlefsen

Sorry, Leila, my comment was not meant to offend, but yours is the #1
question asked on this list (Where do I put my jar files?). 

Hmmm... There really should be a FAQ for all this stuff...



--- Leila Lappin [EMAIL PROTECTED] wrote:
 I have been reading the documentation but IMHO they are written for
 people
 who already know the environment and are pretty comfortable with
 jakarta
 family of products.  I'm new to both linux and tomcat.  Anyway I
 found a
 forum where I may find some answers.
 
 thanks again.
 
 
 - Original Message -
 From: Dave Whitla [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 13, 2002 6:27 PM
 Subject: Re: JDBC, tomcat setup question
 
 
 
  - Original Message -
  From: Leila Lappin [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED];
  [EMAIL PROTECTED]
  Sent: Thursday, March 14, 2002 3:36 PM
  Subject: Re: JDBC, tomcat setup question
 
 
   thanks for the response, what is RTFM?
  
 
  Read The ..um ..er lovely Manuals
 
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: JDBC, tomcat setup question

2002-03-13 Thread August Detlefsen

Not the same...

How many people even know what a class loader is when they start using
Tomcat..? 


--- Emir Alikadic [EMAIL PROTECTED] wrote:
 On 3/13/2002 9:57 PM, August Detlefsen wrote:
  Sorry, Leila, my comment was not meant to offend, but yours is the
 #1
  question asked on this list (Where do I put my jar files?). 
  
  Hmmm... There really should be a FAQ for all this stuff...
 
 How about a HOWTO, as in Class Loader HOWTO: 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
 
 
 Emir.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: Closing Connections.

2002-03-12 Thread August Detlefsen

Yes you have to close the connections! Nothing will drop your server
faster than running out of DB connections. 

If you open your connection with this: 

Connection conn = DriverManager.getConnection(url, user, password);

Then you close it like this: 

conn.close();



--- Hari Yellina [EMAIL PROTECTED] wrote:
 Hi All,
 
  Is it neccesary for us to close the connetions for the database. Is
 the
 java garbage collector gonna do the job for us.
 
 If that is not the case please tell me how to close the connections.
 We have
 a application containing 800 pages . Every page has a connection open
 . Do
 we require to close all the applications.
 
 Regards, Hari Yellina.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Re: Help in JSP

2002-03-11 Thread August Detlefsen

You specify your statement as this:

 String scall = begin sp_GetClatTypeIE(?, ?); end;;

Which has 2 ?s, but you are only setting the first one: 

 cs.setInt(1, interString);

What does your error message say? If this is the problem, Oracle should
return something like 'Invalid parameters specified'.


--- Neo Gigs [EMAIL PROTECTED] wrote:
 hi there,
 
 thanks for the reminder, yet there is no results return as output. I
 tried
 to replace the line:
 
 return output;
 
 with
 
 return  + interString;
 
 and it return my input value...
 
 - Original Message -
 From: Karthikeyan .K.V [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, March 09, 2002 12:34 PM
 Subject: RE: Help in JSP
 
 
  Think  use  the output= statement before u use  the close
 function
  statement.
 
  Karthik
 
  -Original Message-
  From: Neo Gigs [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 08, 2002 9:53 PM
  To: Tomcat Users List
  Subject: Help in JSP
 
 
  Hi there all,
 
  I had a JSP page that talks to a JBeans, but the problem is my Bean
 is
  actually doing DB connectivity to a Oracle db, as no result
 returned from
  the Bean.
 
  As I had tested with the application of the same codes.
 
  Could anyone help me to scan thru, whats wrong with this?
 
  package com.mbf.beans;
 
  import java.sql.*;
  import java.math.*;
  import java.io.*;
  import oracle.jdbc.driver.*;
 
  public class SpTest
  {
  private int interString;
  private String output;
 
  public String getInput()
  {
  // First detect class existance
  try{
  Class.forName(oracle.jdbc.driver.OracleDriver);
  } catch (java.lang.ClassNotFoundException e){
  System.err.print(Class Not Found error! +
 e.getMessage());
  }
 
  // Now try to open db connection and do the fetching
  try{
  // DriverManager.registerDriver(new
  oracle.jdbc.driver.OracleDriver());
  String url = jdbc:oracle:thin:@10.97.2.50:1521:REL4;
  String scall = begin sp_GetClatTypeIE(?, ?); end;;
  Connection conn = DriverManager.getConnection(url,
 tux,
  tux);
  CallableStatement cs = conn.prepareCall(scall);
  cs.registerOutParameter(2, Types.VARCHAR);
  cs.setInt(1, interString);
  cs.execute();
  cs.close();
  conn.close();
  output = cs.getString(2);
  } catch (SQLException e) {
  System.err.println(Error:  + e.getMessage());
  }
  return output;
  }
 
  public void setInput(String s)
  {
  // Here to assign input parameters
  interString = Integer.parseInt(s);
  }
  }
 
  Thanks
 
  Regards,
 
  Neo Gigs
  
  VB?
  http://communities.msn.com.my/VisualBasicwithNeo
  http://www.vbcity.com/forum
  http://www.vbweb.co.uk
  Get paid cash receive email?
  http://www.MintMail.com/?m=1414418
  Reading SMS got paid?
  http://www.dynamicsms.com.au/intro.asp?ref=0123502385refc=348
  Malaysianshop.com http://www.malaysianshop.com
  More Traffic?
  http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924c=xbad1
  
  Note:This is intended to addressees only, if you wanna be removed,
 let me
  know.
 
 
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Re: Help in JSP

2002-03-11 Thread August Detlefsen

You specify your statement as this:

 String scall = begin sp_GetClatTypeIE(?, ?); end;;

Which has 2 ?s, but you are only setting the first one: 

 cs.setInt(1, interString);

What does your error message say? If this is the problem, Oracle should
return something like 'Invalid parameters specified'.


--- Neo Gigs [EMAIL PROTECTED] wrote:
 hi there,
 
 thanks for the reminder, yet there is no results return as output. I
 tried
 to replace the line:
 
 return output;
 
 with
 
 return  + interString;
 
 and it return my input value...
 
 - Original Message -
 From: Karthikeyan .K.V [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, March 09, 2002 12:34 PM
 Subject: RE: Help in JSP
 
 
  Think  use  the output= statement before u use  the close
 function
  statement.
 
  Karthik
 
  -Original Message-
  From: Neo Gigs [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 08, 2002 9:53 PM
  To: Tomcat Users List
  Subject: Help in JSP
 
 
  Hi there all,
 
  I had a JSP page that talks to a JBeans, but the problem is my Bean
 is
  actually doing DB connectivity to a Oracle db, as no result
 returned from
  the Bean.
 
  As I had tested with the application of the same codes.
 
  Could anyone help me to scan thru, whats wrong with this?
 
  package com.mbf.beans;
 
  import java.sql.*;
  import java.math.*;
  import java.io.*;
  import oracle.jdbc.driver.*;
 
  public class SpTest
  {
  private int interString;
  private String output;
 
  public String getInput()
  {
  // First detect class existance
  try{
  Class.forName(oracle.jdbc.driver.OracleDriver);
  } catch (java.lang.ClassNotFoundException e){
  System.err.print(Class Not Found error! +
 e.getMessage());
  }
 
  // Now try to open db connection and do the fetching
  try{
  // DriverManager.registerDriver(new
  oracle.jdbc.driver.OracleDriver());
  String url = jdbc:oracle:thin:@10.97.2.50:1521:REL4;
  String scall = begin sp_GetClatTypeIE(?, ?); end;;
  Connection conn = DriverManager.getConnection(url,
 tux,
  tux);
  CallableStatement cs = conn.prepareCall(scall);
  cs.registerOutParameter(2, Types.VARCHAR);
  cs.setInt(1, interString);
  cs.execute();
  cs.close();
  conn.close();
  output = cs.getString(2);
  } catch (SQLException e) {
  System.err.println(Error:  + e.getMessage());
  }
  return output;
  }
 
  public void setInput(String s)
  {
  // Here to assign input parameters
  interString = Integer.parseInt(s);
  }
  }
 
  Thanks
 
  Regards,
 
  Neo Gigs
  
  VB?
  http://communities.msn.com.my/VisualBasicwithNeo
  http://www.vbcity.com/forum
  http://www.vbweb.co.uk
  Get paid cash receive email?
  http://www.MintMail.com/?m=1414418
  Reading SMS got paid?
  http://www.dynamicsms.com.au/intro.asp?ref=0123502385refc=348
  Malaysianshop.com http://www.malaysianshop.com
  More Traffic?
  http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924c=xbad1
  
  Note:This is intended to addressees only, if you wanna be removed,
 let me
  know.
 
 
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Re: Help ! Connection busy

2002-03-11 Thread August Detlefsen

You have to explicitly close your JDBC statements and connections when
you are done with them. Make sure you are using these for Statement and
Connection, respectively: 

stmt.close();
//and
conn.close();


--- Gurmeet [EMAIL PROTECTED] wrote:
 I am getting [Microsoft][ODBC SQL Server Driver]Connection is busy
 with
 results for another h
 stmt
 
 How do I get rid of this?
 
 Regards
 Gurmeet
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Re: managerapp with virtual domain

2002-02-27 Thread August Detlefsen

You have to deploy the manager context separately for each virtual
host. Add this in server.xml, for each Host/Host block:

!-- Tomcat Manager Context --
Context path=/manager docBase=/usr/local/tomcat/webapps/manager
debug=0 privileged=true /

-August

--- Jean-Luc BEAUDET [EMAIL PROTECTED] wrote:
 Daniel A. Melo a écrit :
 
  Hi all,
 
  anyone know how to configure the manager app to work on virtual
 domains???
 
  []´s
 
  Daniel A.
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]Coul
 
 Could yu please be more explicit ?
 
 What do yu intend to do ?
 
 Jean-Luc B
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




RE: What does manager do anyway?

2002-02-27 Thread August Detlefsen

I now think that session data was wiped on a reload only if I made
changes to one of the beans. It makes sense: If they get serialized at
TC shutdown, but startup detects a different class signature, they
can't be re-serialized...






--- August Detlefsen [EMAIL PROTECTED] wrote:
 Yes. On login, a bean is put in the user's session with name, whether
 the user is authenticated, and some other tracking data and it is
 indeed Serializable.  
 
 
 --- Cox, Charlie [EMAIL PROTECTED] wrote:
  
  
   -Original Message-
   From: August Detlefsen [mailto:[EMAIL PROTECTED]]
   Sent: Monday, February 25, 2002 7:24 PM
   To: Tomcat Users List
   Subject: Re: What does manager do anyway? 
   
   
   Thanks Craig, Glad to know I can add a servlet without having to
   restart the entire server! I'll try a redeploy for the next
 servlet
  I
   add. 
   
   As for the sessions, prior to installing this servlet, they were
 in
   fact getting dropped each time I reloaded with the manager. I was
   forced to login again with every start-stop. Could this be
 because
  the
   webapp was strictly JSP, with no servlet component? 
   
  
  that's odd because I don't have this problem. I put a String into
 the
  session during login and it stays after stop/start provided that my
  session
  didn't timeout. I use servlets, but it shouldn't matter because
 jsp's
  are
  also servlets.
  
  are your objects Serializable as Craig mentioned?
  
  Charlie
  
   
   
   
   --- Craig R. McClanahan [EMAIL PROTECTED] wrote:


On Mon, 25 Feb 2002, August Detlefsen wrote:

 Date: Mon, 25 Feb 2002 15:24:31 -0800 (PST)
 From: August Detlefsen [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: What does manager do anyway?

 Can I use manager to pick up changes in my webapp's web.xml?

 I added a new servlet and tried stop-start via the manager
 and
  it
was
 not picked up. Likewise with manager/reload.

 Do I have to do a full remove-install for it to pick up the
changes?


Yes.  That's a current restriction of the way that an
 application
reload
is implemented (in org.apache.catalina.core.StandardContext),
 not
  of
the
manager webapp servlet itself.

 Also, isn't stopping and starting a context supposed to
 remove
  any
 active sessions in the context?


No (and this works across shutting down and restarting Tomcat
 as
well).
As a matter of fact, if your session attributes are
 Serializable,
they will get saved and restored as well.  This is a
 tremendously
helpful
feature when you're debugging a webapp that takes multiple
interactions to
get to the page you're testing, you make a change, and don't
 want
  to
take
the time to navigate from the top of your application's tree
  again.

Note, however, that this is a *Tomcat* feature, not 
   anything required
by
the specs, so you cannot count on it on any other server.

 -August

Craig
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Greetings - Send FREE e-cards for every occasion!
 http://greetings.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




Re: Debugging JSPs and Servlets

2002-02-27 Thread August Detlefsen

For the quick and dirty approach, you can put System.out.println()
statements in your code and find the output in:

TOMCAT_HOME/logs/catalina.out



--- Sriram Narayanan [EMAIL PROTECTED] wrote:
 2/27/02 11:17:26 PM, Nitin Vira [EMAIL PROTECTED] wrote:
 
 Hello,
 
 I am trying to create an environment that will assist in debugging
 jsps, i think one of the basic ways to do debugging is through
 logging, I want 
 to log various request coming in along with the request parameters, i
 checked the access loggs but they only logg GET request also it
 doesnt 
 logg the parameters, is there anyway i can logg POST request too
 along with the request parameters, i can possibly use a filter to do
 it, will that 
 be a right approach also can i configure a filter to run for all the
 servlets? Also is it possible to logg something like forwards to
 another page and 
 including other pages, also if you have any other suggestions to add
 features that will assist in debugging that i can implement i will
 greatly 
 appreciate it.
 
 
 Use Log4J. (http://jakarta.apache.org/log4j) 
 
 Log4J has something called Logging Levels, e.g. DEBUG, ERROR, INFO
 etc...
 
 Let's say you have some 15 packages with some 10 classes in each.
 
 In each class, instantiate a Logger with the statement
 
 static Logger logger = Logger.getInstance(MyClass.class.getName());
 
 Now within the class, write both DEBUG level statements and INFO
 level statements:
 
 e.g. 
 
 public void someTask(String first, String second){
   logger.debug(just entered the someTask method, args are  + first +
 : + second);
   logger.info(about to calculate something);
   int x = calculate();
   logger.debug(the calculation result was  + x);
 }
 
 Now, DEBUG levels happen to be lower in importance than INFO levels. 
 
 Log4J can be instructed on which level to log via a properties file.
 So, you can change log levels, or even disable loggin altogether via
 an external properties file. No changes to the code are required at
 all.
 
 Also, you can specify that the log outputs from a particular class
 should be redirected to one file, while all other logs could go to
 another file, or 
 even a JDBC target.
 
 
 Thanks,
 Nitin
 
 
 Sriram
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




Re: J2EE, JSP, SERVLETS

2002-02-26 Thread August Detlefsen

There are a couple of reasons to pick JSP. I usually tell bosses that
we use java because it is easy to replicate across multiple hardware as
the demand for the app grows (They love thinking about growing demand).


Security is an issue too, especially with M$ products (not sure about
PHP). How many viruses have we seen in the past few years effecting
IIS, Exchange and NT? 

There are some good whitepapers comparing JSP to other technologies on
the JavaSoft site. here's one:

Comparing Methods For Server-Side Dynamic Content White Paper
http://java.sun.com/products/jsp/jspservlet.html

Decisions, Decisions: J2EETM vs. .NET 
http://www.theserverside.com/resources/article.jsp?l=J2EE-vs-DOTNET


--- hanasaki [EMAIL PROTECTED] wrote:
 What are your boss' looking for?  What motivates them?
 
 Keith Ng wrote:
  nono
  dun get me wrong
  im currently doing a J2EE project based on
  servlets/jsp/javamail/jdbc/possibly EJB(low possibility)
  there are 2 things i need to do.
  
  1)i need to noe if i ve been missing out on some of the
 capabilities, which
  i did not implement
  2) i need to write in my report the major advantages my web
 application has
  over the others. I noe jsp/servlets are the best around but i cant
 quite
  explain.
  
  However, some kind souls have emailed me and explained to me and
 help clear
  some of my doubts.
  
  -Original Message-
  From: Rick K [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 26, 2002 3:41 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: Re: J2EE, JSP, SERVLETS
  
  
  --- Keith Ng [EMAIL PROTECTED] wrote:
  
 Hi guys
 
 There has been a question thats bugging me for qute
 some time. I noticed
 many bank sites, or big companies use JSP/SERVLETS
 for their websites. Is
 there a particular reason why jsp/servlets are
 preferred over
 asp/php/coldfusion? I even realise a site
 (dbs.com.sg)using applet textfield
 as their forms ... isit supposed to be more secure
 this way? Can someone
 clear my doubts? thanks
 
  
  Why does it bug you that big companies use servlets
  and JSP? Why do you have doubts about Java?
  
  
  
  __
  Do You Yahoo!?
  Yahoo! Sports - Coverage of the 2002 Olympic Games
  http://sports.yahoo.com
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
  
  
  
  _
  
  Do You Yahoo!?
  
  Get your free @yahoo.com address at http://mail.yahoo.com
  
  
  
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 -- 
 =
 = [EMAIL PROTECTED]  =
 = Spam : Unhealthy and High in Sodium and Cholesterol   =
 =
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




RE: What does manager do anyway?

2002-02-26 Thread August Detlefsen

Yes. On login, a bean is put in the user's session with name, whether
the user is authenticated, and some other tracking data and it is
indeed Serializable.  


--- Cox, Charlie [EMAIL PROTECTED] wrote:
 
 
  -Original Message-
  From: August Detlefsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 25, 2002 7:24 PM
  To: Tomcat Users List
  Subject: Re: What does manager do anyway? 
  
  
  Thanks Craig, Glad to know I can add a servlet without having to
  restart the entire server! I'll try a redeploy for the next servlet
 I
  add. 
  
  As for the sessions, prior to installing this servlet, they were in
  fact getting dropped each time I reloaded with the manager. I was
  forced to login again with every start-stop. Could this be because
 the
  webapp was strictly JSP, with no servlet component? 
  
 
 that's odd because I don't have this problem. I put a String into the
 session during login and it stays after stop/start provided that my
 session
 didn't timeout. I use servlets, but it shouldn't matter because jsp's
 are
 also servlets.
 
 are your objects Serializable as Craig mentioned?
 
 Charlie
 
  
  
  
  --- Craig R. McClanahan [EMAIL PROTECTED] wrote:
   
   
   On Mon, 25 Feb 2002, August Detlefsen wrote:
   
Date: Mon, 25 Feb 2002 15:24:31 -0800 (PST)
From: August Detlefsen [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: What does manager do anyway?
   
Can I use manager to pick up changes in my webapp's web.xml?
   
I added a new servlet and tried stop-start via the manager and
 it
   was
not picked up. Likewise with manager/reload.
   
Do I have to do a full remove-install for it to pick up the
   changes?
   
   
   Yes.  That's a current restriction of the way that an application
   reload
   is implemented (in org.apache.catalina.core.StandardContext), not
 of
   the
   manager webapp servlet itself.
   
Also, isn't stopping and starting a context supposed to remove
 any
active sessions in the context?
   
   
   No (and this works across shutting down and restarting Tomcat as
   well).
   As a matter of fact, if your session attributes are Serializable,
   they will get saved and restored as well.  This is a tremendously
   helpful
   feature when you're debugging a webapp that takes multiple
   interactions to
   get to the page you're testing, you make a change, and don't want
 to
   take
   the time to navigate from the top of your application's tree
 again.
   
   Note, however, that this is a *Tomcat* feature, not 
  anything required
   by
   the specs, so you cannot count on it on any other server.
   
-August
   
   Craig
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread August Detlefsen

Usually when I get that exception on startup it means that tomcat
didn't comletely shut down the previous time. Try running the
shutdown.sh script again to make sure it fully shut down. 

-August


--- Victor Martinez [EMAIL PROTECTED] wrote:
 This exception tells you that other program is listening at this
 port, so
 tomcat can?t listen there and don?t start.
 Stop the other program after you start tomcat or change ports where
 tomcat
 will listen.
 
 Vico
 
 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 25 de febrero de 2002 13:54
 Para: Tomcat Users List
 Asunto: RE: Stupid Tomcat Question (NEWBIE!)
 
 
 
 
 Thanks for your words of encouragement.  I've deleted all the files
 and
 restarted the service, and the following appears in catalina.out. 
 Does it
 give
 any clues, and what do I do to resolve the problem?
 
 Catalina.start: LifecycleException:  Error creating server socket:
 java.net.BindException: Address already in use
 LifecycleException:  Error creating server socket: 
 java.net.BindException:
 Address already in use
 at

org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
 va)
 at

org.apache.catalina.core.StandardService.initialize(StandardService.java)
 at

org.apache.catalina.core.StandardServer.initialize(StandardServer.java)
 at org.apache.catalina.startup.Catalina.start(Catalina.java)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
 - Root Cause -
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
 at java.net.ServerSocket.init(ServerSocket.java:170)
 at java.net.ServerSocket.init(ServerSocket.java:121)
 at

org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
 rSocketFactory.java)
 
 at

org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
 va)
 at

org.apache.catalina.core.StandardService.initialize(StandardService.java)
 at

org.apache.catalina.core.StandardServer.initialize(StandardServer.java)
 at org.apache.catalina.startup.Catalina.start(Catalina.java)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
 
 
 
 
 
 Brian Adams [EMAIL PROTECTED] on 25/02/2002 12:29:50
 
 Please respond to Tomcat Users List
 [EMAIL PROTECTED]
 
 To:   'Tomcat Users List' [EMAIL PROTECTED]
 cc:(bcc: James Reid/DPT-LTD)
 
 Subject:  RE: Stupid Tomcat Question (NEWBIE!)
 
 
 
 
 freaken look at them!
 This ain't yo mommas listserve!
 delete them all start it once then see what files are generated.
 open them and READ!
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 25, 2002 6:24 AM
 To: Tomcat Users List
 Subject: RE: Stupid Tomcat Question (NEWBIE!)
 
 
 
 
 The following files all appear under my var/tomcat4/logs directory. 
 Which
 file(s) are of interest.?
 
 catalina_log.2002-01-18.txt
 www.dpt-ltd.co.uk_access_log.2002-02-22.txt
 catalina_log.2002-02-07.txt
 www.dpt-ltd.co.uk_examples_log.2002-01-18.txt
 catalina_log.2002-02-13.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-07.txt
 catalina_log.2002-02-19.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-13.txt
 catalina_log.2002-02-20.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-14.txt
 catalina_log.2002-02-21.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-15.txt
 catalina_log.2002-02-22.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-19.txt
 catalina_log.2002-02-25.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-20.txt
 catalina.out
 www.dpt-ltd.co.uk_examples_log.2002-02-21.txt
 localhost_access_log.2002-01-18.txt
 www.dpt-ltd.co.uk_examples_log.2002-02-22.txt
 localhost_examples_log.2002-01-18.txt
 www.dpt-ltd.co.uk_log.2002-01-18.txt
 localhost_log.2002-01-18.txt
 www.dpt-ltd.co.uk_log.2002-02-07.txt
 www.dpt-ltd.co.uk_access_log.2002-01-18.txt
 www.dpt-ltd.co.uk_log.2002-02-13.txt
 www.dpt-ltd.co.uk_access_log.2002-02-07.txt
 www.dpt-ltd.co.uk_log.2002-02-19.txt
 www.dpt-ltd.co.uk_access_log.2002-02-13.txt
 www.dpt-ltd.co.uk_log.2002-02-20.txt
 www.dpt-ltd.co.uk_access_log.2002-02-19.txt
 www.dpt-ltd.co.uk_log.2002-02-21.txt
 www.dpt-ltd.co.uk_access_log.2002-02-20.txt
 www.dpt-ltd.co.uk_log.2002-02-22.txt
 www.dpt-ltd.co.uk_access_log.2002-02-21.txt
 
 
 
 
 
 Brian Adams [EMAIL PROTECTED] on 25/02/2002 12:21:28
 
 Please respond to Tomcat Users List
 [EMAIL PROTECTED]
 
 To:   'Tomcat Users List' [EMAIL 

Re: Writing a bean

2002-02-25 Thread August Detlefsen

You can't define methods inside regular scriptlet blocks % ... %. You
have to use a declaration block %! ... % for the printContent()
method. You may have to make the method static as well. 

-August



--- Uma Maheswar [EMAIL PROTECTED] wrote:
 Hi,
 I wanted to write a java bean inside my JSP programme. My requirement
 is like this
 
 %
 Connection con = (.);
 statement = con.createStatement();
 request.getParameter(name);
 request.getParameter(phone);
 rs = st.executeQuery(select * from uma where name=+name);
 if(rs.next())
 {
 out.println(name is present in db);
 printContent();
 }
 else
 {
 int x = st.executeUpdate(insert into uma
 values('+name+','+phone+');
 }
 %
 %
 public void printContent()
 {
 I wanted to do some printing stuff here basically HTML coding.
 }
 %
 
 The printContent() method is giving me errors. I get Statement
 Expected near the above method. Can any one help me? If there is any
 other way could any one tell me what it is?
 
 Uma
 


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

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




Re: What does manager do anyway?

2002-02-25 Thread August Detlefsen

Thanks Craig, Glad to know I can add a servlet without having to
restart the entire server! I'll try a redeploy for the next servlet I
add. 

As for the sessions, prior to installing this servlet, they were in
fact getting dropped each time I reloaded with the manager. I was
forced to login again with every start-stop. Could this be because the
webapp was strictly JSP, with no servlet component? 




--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Mon, 25 Feb 2002, August Detlefsen wrote:
 
  Date: Mon, 25 Feb 2002 15:24:31 -0800 (PST)
  From: August Detlefsen [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: What does manager do anyway?
 
  Can I use manager to pick up changes in my webapp's web.xml?
 
  I added a new servlet and tried stop-start via the manager and it
 was
  not picked up. Likewise with manager/reload.
 
  Do I have to do a full remove-install for it to pick up the
 changes?
 
 
 Yes.  That's a current restriction of the way that an application
 reload
 is implemented (in org.apache.catalina.core.StandardContext), not of
 the
 manager webapp servlet itself.
 
  Also, isn't stopping and starting a context supposed to remove any
  active sessions in the context?
 
 
 No (and this works across shutting down and restarting Tomcat as
 well).
 As a matter of fact, if your session attributes are Serializable,
 they will get saved and restored as well.  This is a tremendously
 helpful
 feature when you're debugging a webapp that takes multiple
 interactions to
 get to the page you're testing, you make a change, and don't want to
 take
 the time to navigate from the top of your application's tree again.
 
 Note, however, that this is a *Tomcat* feature, not anything required
 by
 the specs, so you cannot count on it on any other server.
 
  -August
 
 Craig
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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

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




RE: JSP Taglib Explanation please

2002-02-25 Thread August Detlefsen

It depends on the particular taglib... The taglib's processing methods
(doInitBody(), doStartTag(), doEndTag(), doAfterBody(), etc) return
ints (EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE, etc) to
indicate what should be processed next. 

It is possible that your taglib's doEndTag() method is returning a
value that would make it evaluate again. 



--- Pavel Brun [EMAIL PROTECTED] wrote:
 can anybody verify if JSP taglib code goes through twice?
 Anybody...all I
 need
 is an answer. I have been trying to find out this information through
 three
 different topic posts, but no answers to date. Is it by design that
 JSP
 taglib
 code is processed twice???
 
 Thanks
 
 Paul
 
 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 24, 2002 10:45 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: JSP Taglib Explanation please
 
 
 so, for example, if you have a taglib like:
 
 xtags:transform xml=... xsl=.../
 
 this line would run all the code associated with the tag twice???
 
 That is what I am getting...is this by design??
 
 Paul
 
 -Original Message-
 From: Brian Adams [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 24, 2002 10:31 AM
 To: Tomcat Users List
 Subject: RE: JSP Taglib Explanation please
 
 
 Pavel I have tons of taglibs on my app and it does not go through it
 twice.
 it actually runs the code twice?
 
 
 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 24, 2002 9:21 AM
 To: Tomcat User
 Subject: JSP Taglib Explanation please
 
 
 Hello everyone,
 
 Is there anyone here that helped develop the JSP Tag concept
 that could explain why JSP taglib bodies go through their
 bodies twice (going through doStartTag, doAfterBody and doEndTag
 twice)?
 
 This would be extremely helpful for me so I can understand
 how to proceed with certain applications.
 
 Thank you
 
 Paul
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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

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




updating with jsp:setProperty property=* /

2002-02-22 Thread August Detlefsen

I realize that the spec says:

   If a request parameter has an empty or null value, the 
   corresponding bean property is not set. 

But, is there a way to make this work for updates when you actually
want to remove a value from the bean? 

Lets say I have a contact manager app and I want to delete a value from
a field (for example, my colleague no longer has a phone extension). I
delete the value from the form and submit to a page that uses:

   jsp:setProperty name=mybean property=* /

Since the phone extension field is now empty or null, that new value
never gets passed to my bean. 

Does anyone have a way around this short of setting each property
individually? 

Thanks,
August

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

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




RE: System.out.println

2002-02-15 Thread August Detlefsen

System.out statements also get written to: 

/path/to/tomcat/logs/catalina.out





--- krithikav [EMAIL PROTECTED] wrote:
 Thanks, I am seeing the output now.
 
 Regards,
 Krithika
 
 -Original Message-
 From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 12:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: System.out.println
 
 
 You can see it in the console or window where your tomcat is running.
 
 ***
 Pedro Gaspar
 PT Prime
 DMK / GSV
 Tel:  +351 21 500 41 43
 Fax: +351 21 500 45 85
 Email: [EMAIL PROTECTED]
 ***
 
  [EMAIL PROTECTED] 02/15/02 07:04 
 Hi,
 Where do I see the output from System.out.println given in a java
 class
 placed under WEB-INF\classes? I am new to Tomcat and developing a
 sample
 application.
 
 Regards,
 Krithika
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

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




SSL and multipart/form-data POST ?

2002-02-08 Thread August Detlefsen

Is it possible to use SSL with multipart/form-data on a POST operation?


The send form in my webmail app uses a multipart post for attachments.
It works fine over regular http, but chokes on https. Is this a
limitation of Tomcat-Apache-mod_ssl or am I barking up the wrong tree? 

form method=post enctype=multipart/form-data
action=/webmail/jwmasm

Thanks,
August

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: way to get list of all session variables and values?

2002-02-07 Thread August Detlefsen

Try this in your JSP: 

%
if (true) {  //turn output on and off

Enumeration e = session.getAttributeNames();
while (e.hasMoreElements()) {
String name  = (String)e.nextElement();
Object value = session.getAttribute(name);
%
B%= name % = /B%= value %BR
%
}
}
%


--- C Cayetano [EMAIL PROTECTED] wrote:
 All,
 
 Is there a wat to get a listing of all session variables and their
 values?
 
 Thanks
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: Mapping multiple hosts to single Host

2002-02-06 Thread August Detlefsen

In httpd.conf, inside each VirtualHost, you can set the ServerAlias
directive - it will allow the same VirtualHost to recognize multiple
domain names: 

NameVirtualHost 12.34.56.78

VirtualHost 12.34.56.78
ServerName myCompany.com
ServerAlias myCompany.net myCompany.org myOtherCompany.com

#deploy webapps for this site
WebAppDeploy ROOT  conn  /
WebAppDeploy manager   conn  /manager

/VirtualHost

This way you can have multiple domains point to the same Host in
server.xml. I am not sure if Apache passes the original domain name or
the aliased one to Tomcat though. 

Otherwise you will have to create multiple Hosts in server.xml and
deploy your context in each one. Does anyone know how to configure TC
to recognize the same webapp across all Hosts?

-August


--- [EMAIL PROTECTED] wrote:
 I've read many posts about virtual hosts and Tomcat with and without 
 mod_jk/mod_webapp, but haven't found a real answer to my question. 
 We want to 
 map multiple hosts to a single Host config in server.xml.  I
 thought the 
 defaultHost setting would do this, but it doesn't work.  If I have
 DNS entries 
 for server1.xyz.com and server2.abc.com that point to the same IP
 address and 
 an Apache virtual host and on to mod_webapp, if I don't define and
 Host 
 settings, Tomcat will serve out any web apps in the webapps
 directory.  The 
 problem is that I'd like to run the manager app, but that requires 
 privileged=true which (as far as I know) must be done in a
 HostContext 
 config.  Basically we want to map multiple domains to a webapp and
 based on 
 the host value, send a response out.  Kind of along the lines of
 Apache's 
 wildcard host syntax.
 
 Hope the post isn't too confusing.  Any ideas?
 
 -Pat
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: getParameterMap() question

2002-02-06 Thread August Detlefsen

All request parameters are Strings: 

public java.lang.String getParameter(java.lang.String name)

Try casting entry.getValue() to (String):

(String)(entry.getValue())




--- Steven Elliott [EMAIL PROTECTED] wrote:
 Sorry if this is somewhat offtopic but maybe some experts here can
 help
 clear this up for me.
 
 I would like to use the ServletRequest.getParameterMap() in a JSP
 page using
 the request object.
 
 I post a form in the previous page using the POST method and the
 request in
 processed with the following code:
 
 Map map = request.getParameterMap();
 Iterator itr = map.entrySet().iterator();
 while (itr.hasNext()) {
 Map.Entry entry = (Map.Entry)itr.next();
 System.out.println(entry.getKey()+ = +entry.getValue());
 }
 
 What gets printout is the following:
 
 name = [Ljava.lang.String;@5349e2
 surName = [Ljava.lang.String;@17d3f0
 etc.
 
 So the key is correctly output but the value is not?  If I try this
 with
 something like System.getProperties() both the key and value are
 output
 correctly.
 
 So what is the secret for making this work with the request object?
 
 TIA
 
 Steven
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: Multi-user problem

2002-02-06 Thread August Detlefsen

In the past I have had good luck with the SQL Server JDBC drivers from
iNet software: 

http://www.inetsoftware.de/English/Produkte/JDBC_Overview/ms.htm

Though I wouldn't really recommend SQL Server for anything if you do
not have to use it...


--- [EMAIL PROTECTED] wrote:
 Tom Drake [EMAIL PROTECTED] wrote:
 
 As suggested, I will try to find a different driver (instead of the
 odbc/jdbc bridge) to connect to MSSQL2k.
 In the meantime.. I reflect on your other thoughts...
 
 See my comments below.
 ... snip ...
 |
 | The NEXTIMAGE servlet looks something like this pseudo-code:
 | public static void login(...){ Tell database user is logged in. }
 | public static void logout(...) {Tell database user is logged out.}
 | public static void updateaccesstime(...) {Tell Database I made a
 request}
 Are the above functions keeping class data
 (such as a connection to your database)?
 
 If a 'login' request gets a new database connection,
 then any other thread that is using
 the original connection will break.
 
 Do other instances of the servlet count as other threads?
 
 I'm not sure I understand what you mean by keeping class data, so
 I've copied the 3 methods here.  In an attempt to answer your
 question...
 1) None of my servlets use multithreading.. I'm new to Java and
 haven't learned that yet.
 2) A database connection is opened as soon as necessary in the
 servlet and I expect it to remain available until the servlet closes.
  I do not expect it to be available across multiple instances.
 3) The database connection is forced closed at the end of the
 servlet.
 
 Here's the code for the 3 routines plus the database connect and
 disconnect (please don't laugh.. this is the result of a very steep
 learning curve and a bunch of troubleshooting).  As you see, the
 login/out methods expect an existing statement (which is bound to a
 connection) as a parameter:
 
 
 //---
 public static void login(String userid, Statement st) {
 String s=;
 System.err.println(Login);
 try {
 s=
 use sqaa +
 update emps +
 set loggedin=1, +
 lastaccess='+thelper.getcurtime()+' +
 where userid='+userid+' ;
 st.executeUpdate(s);
 } catch (Exception exc) {
 System.err.println(Error during login().);
 System.err.println(  +exc.getClass().getName());
 System.err.println(  +exc.getMessage());
 System.err.println(s);
 return;
 }
 }
 //
 public static void logout(int userrecordid, String userid,
 Statement st) {
 String s=;
 System.err.println(Logout);
 try {
 System.err.println(..logging out);
 s=
 use sqaa +
 update emps +
 set loggedin=0 +
 where userid='+userid+' ;
 st.executeUpdate(s);
 
 System.err.println(..cancelling reservations for
 +userrecordid+, +userid);
 s=
 use sqaa +
 update images +
 set auditorid=null, auditorstatus='U' +
 where auditorid=+userrecordid+ +
 and auditorstatus='X';
 st.executeUpdate(s);
 
 System.err.println(Done logging out.);
 
 } catch (Exception exc) {
 System.err.println(Error during logout.);
 System.err.println(  +exc.getClass().getName());
 System.err.println(  +exc.getMessage());
 System.err.println(s);
 return;
 }
 }
 //
 public static void updateaccesstime(String userid, Statement st)
 {
 String s=;
 System.err.println(Updateaccesstime);
 s=
 use sqaa +
 update emps +
 set lastaccess = '+thelper.getcurtime()+' +
 where userid='+userid+' ;
 try {
 st.executeUpdate(s);
 
 } catch (Exception exc) {
 System.err.println(Error during updateaccesstime().);
 System.err.println(  +exc.getClass().getName());
 System.err.println(  +exc.getMessage());
 System.err.println(s);
 return;
 }
 }
 
 
 //Open JDBC Connection (This occurs right after getting the
 POST parameters):
 try{
 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
 con =
 DriverManager.getConnection(jdbc:odbc:sqaa,philg,);
 query = con.createStatement();
 }
 catch (Exception exc) {
 System.err.println(Error creating JDBC connection.);
 System.err.println(exc.getClass().getName());
 System.err.println(exc.getMessage());
 thelper.fileServe(out,c:/html/except.html);
 return;
 }
 
 

Re: Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-04 Thread August Detlefsen

I have found that it does not pick up changes to WEB-INF/classes,
though it does recognise changes to WEB-INF/lib. My solution is to
update the jar (jar -uvf) whenever I change a class. My build script
(run from WEB-INF/src dev directory) goes something like this: 

#!/bin/bash

export
CLASSPATH=$CLASSPATH:.:/usr/local/catalina/classes/:/usr/local/j2sdkee1.2.1/lib/j2ee.jar

echo $CLASSPATH

FILE=$1
if [ $1 =  ]; then
echo building all java files
FILE=*
fi

find . -name $FILE.java -exec javac {} \; -print

find . -name $FILE.class -exec jar -uvf ../lib/myWebapp.jar {} \;


--- Jon Shoberg [EMAIL PROTECTED] wrote:
 All fixed :)
 
 Can tomcat/catalina check the classes directory to make sure none of
 them
 have been modified.  Obviosuly it will check my JSPs but apparently
 not so
 when I have to change a class. Currently I have to reload the
 applciation.
 
 Any thoughts?
 
 Thanks for the help.
 
 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 9:10 AM
 To: Tomcat Users List
 Subject: RE: RE: Catalina Beans - Class Path Problem
 
 
 I am not sure if you are running this in Windows but if you go to
 something
 equivalent to starting this at the command line, type startup debug
 in the
 %CATALINA_HOME%\bin directory and see if your classes or jars are
 loaded?
 
 Paul
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 8:29 AM
 To: Tomcat Users List
 Subject: Re: RE: Catalina Beans - Class Path Problem
 
 
 I am having the same problem only my clases ARE directly in the
 classes
 folder. Also, my utility classes, which are neither servlets nor
 Beans, are
 also giving me the same problem. Please help!!! I have tried
 packaging them
 and then without packaging. I am not sure what to do now. I am not
 using any
 IDE nor am I using a deployment tool.
 
 
 Tomcat Users List [EMAIL PROTECTED] wrote:
  Please see my comments below:
 
 All your classes and/or beans should go into:
 
   ./webapps/gateway/WEB-INF/classes, or
   ./webapps/gateway/WEB-INF/lib
 
 This should help you out. :-)
 
 Paul
 
 -Original Message-
 From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 8:12 PM
 To: Tomcat Users List
 Subject: Catalina Beans - Class Path Problem
 
 
 Short Version:
 
 For some reason, I can not get my JSP pages to compile when loading a
 little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml
 
 Long Version:
 
 A)Installed tomcat, got it running, all of the example programs
 work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp
 
 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml
 
 So I understand this to be creating a bean with id Words
 from the
 class ./webapps/gateway/classes/gwclasses/words.class in the
 kw.jsp.
 However, I am getting a compiler error saying
 
 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63:
 Class
 gwclasses.words not found
 
 
 Any thoughts ?
 
 
 Thanks
 
 
 
 
 
 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:
 
 
 
 
 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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

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




Re: HELP on server.xml PLEASE

2002-02-01 Thread August Detlefsen

I am pretty sure that you need to add the contexts within your virtual
hosts. If the same context needs to be accessed from multiple virtual
hosts, you have to define it for each one. 

Does anyone know of a way to deploy a context across multiple virtual
hosts? 




--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote:
 My forte is Java and at the XML configuration of Tomcat I suck. 
 Could 
 someone please help me with this?  It would be greatly appreciated.
 
 If I add the following to servlet.xml, then I get the startup.sh to
 create 
 the proper directories under TOMCAT_HOME/work/.  But, then I cannot
 reach 
 my site with the urls.  If I don't add these, then I can reach the
 site, 
 but without the create of the appropriate subfolders.  What is up?
 
 
 
   Context path=/ourforge
   docBase=webapps/ourforge
   debug=0
   reloadable=true
   /Context
   Context path=/micael
   docBase=webapps/micael
   debug=0
   reloadable=true 
   /Context
   Context path=/db
   docBase=webapps/db
   debug=0
   reloadable=true 
   /Context
   Context path=/ctr
   docBase=webapps/ctr
   debug=0
   reloadable=true 
   /Context
 
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
   parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the entire
 JVM,
   which may contain one or more Service instances.  The Server
   listens for a shutdown command on the indicated port.
 
   Note:  A Server is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this
 level.
   --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
 
!-- A Service is a collection of one or more Connectors that
 share
 a single Container (and therefore the web applications
 visible
 within that Container).  Normally, that Container is an
 Engine,
 but this is not required.
 
 Note:  A Service is not itself a Container, so you may
 not
 define subcomponents such as Valves or Loggers at this
 level.
 --
 
!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
 
  !-- A Connector represents an endpoint by which requests are
 received
   and responses are returned.  Each Connector passes requests
 on to the
   associated Container (normally an Engine) for processing.
 
   By default, a non-SSL HTTP/1.1 Connector is established on
 port 8080.
   You can also enable an SSL HTTP/1.1 Connector on port 8443
 by
   following the instructions below and uncommenting the
 second 
 Connector
   entry.  SSL support requires the following steps (see the
 SSL Config
   HOWTO in the Tomcat 4.0 documentation bundle for more
 detailed
   instructions):
   * Download and install JSSE 1.0.2 or later, and put the JAR
 files
 into $JAVA_HOME/jre/lib/ext.
   * Execute:
   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg
 RSA 
 (Windows)
   $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg
 RSA  (Unix)
 with a password value of changeit for both the
 certificate and
 the keystore itself.
 
   By default, DNS lookups are enabled when a web application
 calls
   request.getRemoteHost().  This can have an adverse impact
 on
   performance, so you can disable it by setting the
   enableLookups attribute to false.  When DNS lookups are
 disabled,
   request.getRemoteHost() will return the String version of
 the
   IP address of the remote client.
  --
 
  !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
  Connector
 className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
 acceptCount=10 debug=0
 connectionTimeout=6/
  !-- Note : To disable connection timeouts, set
 connectionTimeout value
   to -1 --
 
  !-- Define an SSL HTTP/1.1 Connector on port 8443 --
  !--
  Connector
 className=org.apache.catalina.connector.http.HttpConnector
 port=8443 minProcessors=5 maxProcessors=75
 enableLookups=true
  acceptCount=10 debug=0 scheme=https secure=true
Factory
 className=org.apache.catalina.net.SSLServerSocketFactory
 clientAuth=false protocol=TLS/
  /Connector
  --
 
  !-- Define an AJP 1.3 Connector on port 8009 --
  !--
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
  --
 
  !-- Define a Proxied HTTP/1.1 

Re: triggering JSP page recompilation

2002-02-01 Thread August Detlefsen

If you are using includes for things like header and footer, have you
considered forwarding body content to a template page instead? 

Using the Jakarta-Taglibs request library: 

http://jakarta.apache.org/taglibs/doc/request-doc/intro.html

You can do something like this: 

BODY PAGE: 

%@ taglib uri=request.jar prefix=req %

req:setattribute name=content

(HTML, JSP, etc - Whatever needs to go in the body of the page goes
here...)

/req:setattribute

jsp:forward page=/template.jsp /


TEMPLATE PAGE (template.jsp): 

(HTML header)

(HTML sidebar)

%= request.getAttribute(content) %

(HTML footer)


This way you can alter the template page to your heart's content and
never have to worry about recompiling the body pages. You can even have
multiple templates for each body page (for example if you want to have
a printer friendly version of a page without the navigation). 

-August


--- Nick Wesselman [EMAIL PROTECTED] wrote:
 
 
 As I mentioned before, GNUJSP keeps a
 record of what files include what, and if told to, recompiles all
 including files when an included file changes.  
 
 I don't recall gnujsp doing this--I've always had to touch files when
 I 
 change an included file with gnujsp as well.
 
 Nick
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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

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




Re: jsp class loading

2002-01-31 Thread August Detlefsen

You can put the jar in WEB-INF/lib, but to use the classes in a JSP,
you have to import them in the page element: 

%@ page
import=my.package.*, my.package.util.*
%

--- Drinkwater, GJ  (Glen) [EMAIL PROTECTED] wrote:
 I have written some java classes to help my servlet/jsp
 configuration.  But
 the problem is that i want them to be accessable to my servlet and my
 jsp.
 i have jar the file and put them in the web-inf/lib folder and also
 in the
 java_home/jre/lib/ext folder.  The servlets pick up the classes
 automatically but the jsp cannot 'see' them.  
 
 can anybody help.  Do i have to add a package to the classes before i
 jar
 them and then access then vis jsp with the package name in th eimport
 header.
 
 The only way at the moment i have suceeded is to put the classes in
 the
 java_home/jre/classes folder and call them when needed but i would
 particularly like them to be in the lib folder of the application for
 portability.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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

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




  1   2   >