Re: Action on close

2002-10-08 Thread David Mossakowski

You're right and that's what I said.  Jake got the right answer.

BTW why 'Death to all load on startup servlets'?  Personal preference?

d.

jon wingfield wrote:
 You can't rely on the destroy() method on the servlet for this purpose. The
 container has the right to unload servlets when it chooses as a part of
 resources management. If you are using a servlet 2.3 spec container use the
 ServletContextListener as Jake suggests.
 
 flame-retardent-suit
 Death to all load on startup servlets ;)
 /flame-retardent-suit
 
 Jon
 
 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
 Sent: 07 October 2002 16:07
 To: Tomcat Users List
 Subject: Re: Action on close
 
 
 Yep,
 
 Servlet 2.3 introduced the concenpt of the ServletContextListener which
 contains
  contextInitialized() and contextDestroyed() which are guaranteed to be
 loaded
 once at startup and once at shutdown, respectively.
 
 You just need a class that implements ServletContextListener and specify it
 in
 the web.xml as:
 
 listener
 listener-class
 org.myapp.listeners.MyServletContextListener
 /listener-class
 /listener
 
 There you go.
 
 Jake
 
 Quoting David Mossakowski [EMAIL PROTECTED]:
 
 
There's a destroy() method called on a servlet when it is unloaded from
Tomcat.  You can't depend on that to mean that Tomcat is shutting down
but maybe it could be helpful.

d.

Yuriy Stul wrote:

Hello,
it is possible to specify a class what must be called (loaded) on

 startup
 
(web.xml, servlet load-on-startup ...). It is working fine.

My question is it possible to specify any servlet what will be loaded

before

Tomcat shutdown?

Thanks in advance


Regards,
   Yuriy
Sr. Software Eng.
mailto:[EMAIL PROTECTED]
http://www.bladefusion.com


--
To unsubscribe, e-mail:

mailto:[EMAIL PROTECTED]

For additional commands, e-mail:

mailto:[EMAIL PROTECTED]




--
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




 
 
 ***
 
Disclaimer

This message is intended only for the use of the Addressee and
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

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]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: JK2+Apache2: LogFactory java Error: NoClassDefFoundError

2002-10-08 Thread David Mossakowski

You should put the logging jar into tomcat/lib or webapps/yourwebapp/lib 
depending on how it's used.

System classpath does not matter for Tomcat (a good thing) so you need 
to put things in the right places in order for them to work or specify 
in your startup script where else to look for jars.

d.

Brzezinski, Paul J wrote:
 Getting an error message when I start Tomcat 4.1.12 on Solaris 8 SPARC:
 
 15750 [main] ERROR server.JkMain  - Can't create apr
 java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 
 I'm using the Apache Tomcat/4.1.12-LE-jdk14.
 
 FYI: CLASSPATH set to:
 
 /server/lib/commons-logging.jar:/em/opt/j2sdk1.4.0_02/lib/tools.jar:.:/em/op
 t/j2sdk1.4.0_02/lib/jta.jar:/em/opt/jaf-1.0.2/activation.jar:/em/opt/javamai
 l-1.3/mail.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar
 
 
 Anyone else run into this?
 
 Know how to solve it?  
 
 Is it a CLASSPATH env var problem?
 
 
 
 
 --
 mailto:[EMAIL PROTECTED]
 Enterprise Distributed Capabilities
 EDS Corporation
 248-265-8283
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: Action on close

2002-10-07 Thread David Mossakowski

There's a destroy() method called on a servlet when it is unloaded from 
Tomcat.  You can't depend on that to mean that Tomcat is shutting down 
but maybe it could be helpful.

d.

Yuriy Stul wrote:
 Hello,
 it is possible to specify a class what must be called (loaded) on startup
 (web.xml, servlet load-on-startup ...). It is working fine.
 
 My question is it possible to specify any servlet what will be loaded before
 Tomcat shutdown?
 
 Thanks in advance
 
 
 Regards,
Yuriy
 Sr. Software Eng.
 mailto:[EMAIL PROTECTED]
 http://www.bladefusion.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Tomcat-Apache-SSL problem

2002-10-04 Thread David Mossakowski

Assuming you're using VirtualHost, do you specify the right JkMount 
paths in VirtualHost sections in your Apache that serve the secure port?

d.


haixi liu wrote:
 Hello,
 
 I am having a problem accessing my webapps using https protocol.
 
 My server conf is: Tomcat 4.0.5 + Apache 1.3.26 + mod_jk 1.2 + mod_ssl
 
 https works if I access static pages like 
 https://myhost/manual/index.html, but does not work with my webapp 
 (https://myhost/mywebapp/index.jsp).
 
 However, http works with my webapp (http://myhost/mywebapp/index.jsp).
 
 I tried mod_jk.so compiled by myself and the one from jakarta website
 
(http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386/mod_jk-1.3-eapi.so)
 
 with mod_ssl, neither worked.
 
 Could someone give me a hint of what's going on, and how to fix this?
 
 Thanks a lot
 Haixi
 
 
 
 _
 Join the world’s largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: error 500 - bug ?

2002-10-03 Thread David Mossakowski

Greetings,

When does this error happen?  When accessing that one changed JSP page 
or all the pages?  Does restarting the server help?  Does this problem 
appear after you change a jsp filename to something else?  Does this 
problem go away after you restart?  You may also try to shut down tomcat 
then remove all compiled JSP files and sessions then start back up.

Powodzenia :),
d.

Skorupski Pawe ,(PZUZ) wrote:
 Included servlet error: 500
 Hi,
 
 I keep getting the following error. The problem occurs when I changed (even
 one letter) in any file - is it a bug or my mistake (what is in this case
 rather not possible).
 Thanks for help.
 
 Pawe
 
 Internal Servlet Error:
 org.apache.jasper.JasperException: Unable to compile class for JSPerror:
 Can't write:
 /var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
 ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
 1 error
 
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
   at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
   at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
 led Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
   at org.apache.tomcat.core.Handler.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
   at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
 Code)
   at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
   at
 p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
 jspService(Compiled Code)
   at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
   at org.apache.tomcat.core.Handler.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
   at org.apache.tomcat.core.ContextManager.internalService(Compiled
 Code)
   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
   at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
 (Compiled Code)
   at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
   at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
 Code)
   at java.lang.Thread.run(Compiled Code)
 
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: AW: AW: Graphics on a web server

2002-10-02 Thread David Mossakowski

If you're running jdk 1.4 and are still getting the X error after 
specifying headless as you are then the only conclusion is that this 
option is not passed correctly.

Our startup options modify the JAVA_OPTS not the CATALINA_OPTS like this:

JAVA_OPTS = -server -Djava.awt.headless=true ... 

HTH

d.

Dr A.C. Marshall wrote:
 I have been looking further into this. The reason that I cannot get
 graphics to work on our web server is becuase we are getting a library
 error - for some reason the library libmlib.so is not being found
 despite the fact that it is present and on the LD_LIBRARY_PATH. Most
 most odd, esp. as java manages to find all the other libraries in the
 same dir with the same permissions, eg, libawt.so.
 
 Does this sound familliar to anybody?
 
 Adam Marshall
 
 On Mon, 16 Sep 2002, Ralph Einfeldt wrote:
 
 |Depending on which linux/unix you have xvfb migh aready be
 |part of the distribution.
 |
 |The important part of the startscript is something like
 |
 |XVFBARGS=:99 -screen 0 1024x768x24 -fbdir /var/run -ac
 |
 |You have to set it up, so that it is started by the init
 |process. (How to do that depends on your unix, there are
 |2 common solutions: bsd and system V, look at
 |http://www.slackware.com/config/init.php or
 
|http://www.redhat.com/support/resources/tips/Boot-Process-Tips/Boot-Process-Tips-3.html)
 |
 |For tomcat you just have to set an environment variable
 |DISPLAY with the value localhost:99.0
 |
 |Are you shure that /usr/java/jre is jdk 1.4 ?
 |
 |Verify this with
 |
 |/usr/java/jre/bin/java -version
 |
 |(To be honest, I havn't used the headless option myself,
 | but have seen some posts where people reported success)
 |
 |
 | -Ursprüngliche Nachricht-
 | Von: Dr A.C. Marshall [mailto:[EMAIL PROTECTED]]
 | Gesendet: Montag, 16. September 2002 19:07
 | An: Tomcat Users List
 | Betreff: Re: AW: Graphics on a web server
 |
 | On Mon, 16 Sep 2002, Ralph Einfeldt wrote:
 |snip/
 |
 | So one would install xvfb on the web server? Is that all
 | there is to it?
 | Surely one must have to tell the JVM about the virtual framebuffer?
 |
 | I set in the startup script
 |
 |  CATALINA_OPTS=-Xms64M -Xmx256M -Duser.home=/usr/java/jre
 | -Djava.awt.headless=true
 |  export CATALINA_OPTS
 |
 |  java.lang.InternalError: Can't connect to X11 window server
 | using ':0.0' as the value of the DISPLAY variable.
 |
 |snip/
 |
 |--
 |To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 |For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 |
 |
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




virtual hosts in Apache and Tomcat conf files

2002-10-02 Thread David Mossakowski

What is the difference between specifying VirtualHost in apache conf 
file vs. Host element in Tomcat server.xml file?

Does this depend on the connector used?  Would using Host elements in 
server.xml remove dependency on what connector is used?

Thanks,
d.

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Doubt about multiple applications

2002-10-02 Thread David Mossakowski

There is no reason for this to be the case.  You must be doing something 
else wrong.

There is nothing stopping you from copying application webapps/A into a 
directory called webapps/Aprime and still have this application working 
(this requires using links in JSPs that dont hardcode A as in 
href=/A/something.jsp of course).

d.

Ricardo de Souza Moura wrote:
 I am using Tomcat 4.0...
 I have two applications, A and B
 
 in the lib directory of A I have a file1.jar, and in the lib directory 
 of B I have the same file, file1.jar.
 
 I am not wanting to put my file file1.jar in the lib directory of Tomcat.
 
 But when the Tomcat load the applications, only one get access this 
 resource, file1.jar. Why ?
 
 Only one application works...
 
 But if I put only one application by time all works 
 
 Sorry my bad English !!!
 Thanks !!!
 
 _
 MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
 fotos: http://photos.msn.com.br
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: Concurrency Problems

2002-10-01 Thread David Mossakowski

I believe that this is controlled by the maxProcessors in the Connector 
element in your server.xml file

d.

Tomcat Forum wrote:
 
 Hi Everybody,
 Iam having some problems with simutaneous users on the Tomcat 4.0 
 server. I have made a java client for testing Tomcat with multiple 
 users. This client makes multiple threads with each requesting login and 
 then some page from the tomcat server. But if I send more than 25 
 threads I start getting exceptions from the server like  
 java.net.ConnectException: Connection refused: connect.
 Can somebody please tell me what is the maximum number of 
 simultaneous users Tomcat can support and is there any way to configure 
 this?
 I'll appericiate ur help.
 Mandeep
 
 
 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: changing the jdk associated with Tomcat

2002-09-27 Thread David Mossakowski

Change JAVA_HOME to point to jdk1.3 (be careful to have all the required 
jars that don't come with 1.3 but are required)

d.

neal wrote:
 If Tomcat is installed and pointing to JDK1.3 but one wants to point instead
 to JDK1.4, is there an easy way to do this?
 
 If so, I'm not finding it.  Seems like one would need to completely
 uninstall and reinstall tomcat???
 
 Thanks.
 Neal
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: Questions about Tomcat/Servlets

2002-09-27 Thread David Mossakowski

Obviously in both cases only the .class file can be run.

What differs is when and how they get compiled.  Your servlet's source 
is not monitored ever but your JSP source is.  Therefore when the JSP 
source changes the container recompiles it and executes teh new .class 
file.  In the case of a servlet, changing source is not detected but (if 
configured) changed .class file is.  In order to have a new .class file 
you need to compile the .java file yourself.

Servlet .class file is no different from HelloWorld.class file.  It just 
requires some stuff on classpath in order to get compiled and it can't 
be run directly but is invoked by the servlet container.  You can write 
your own servlet container if you want too.  Make it an HTTP server. 
When a request for it is made (http://localhost/SillyServlet) have it 
load your servlet class by name (cast it to HttpServlet) and  execute 
its init() and then its doGet() method with the right parameters.

d.


Kenny G. Dubuisson, Jr. wrote:
 Hello all again.  I have 3 simple questions that I'd like to see if anyone
 knows (please let me know if this is off topic or not).
 
 1)  I'm working on teaching myself JSP/Servlets.  I wanted to know if when a
 servlet is run the .class or the .java file is what got run.  So I
 renamed one of Tomcat's example files (HelloWorldExample.class) to a
 *.bak.  Once my test was done I renamed it back to the original file name.
 Now it won't run.  Gives me a Apache Tomcat/4.0.5 - HTTP Status 503 -
 Servlet org.apache.catalina.INVOKER.HelloWorldExample is currently
 unavailable error.  I thought it maybe had something to do with the java
 and class files having the same time stamp so I copied both from the
 original Tomcat distribution and it still won't run.  Man I'm stuck on this
 one...any ideas?
 
 2) How do you get a .class file when you create a .java Servlet file?  I
 was hoping that if I delete a .class file and the .java file still
 exists, the .class file gets recreated/recompiled automatically by Tomcat.
 
 3) What the heck does Jakarta mean?  I'm voting that it's a small Italian
 cart used for transporting fish remains.
 
 Thanks,
 Kenny
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Which server.xml component marks JVM bounds

2002-09-11 Thread David Mossakowski

Contexts share one JVM correct?  Do Hosts share the same JVM?  The 
server.xml file has a comment about a Server as a representation of the 
entire JVM.  Does that mean that there is no way to have Host elements 
have their own JVM?

I'm trying to avoid having completely separate installations of Tomcat 
with their own server.xml file.  Applications served from the same 
server have to be separated into their own JVMs... (maybe even because 
they need to run with an older servlet specification because someone was 
too lazy to port them to the newer calls :)

Any suggestions appreciated.

thanks,
d.

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: session timeout on Tomcat

2002-09-11 Thread David Mossakowski

Your browsers shared the session which is what the session id being the 
same suggests.  Use two physicly separate computers (KVM switch ok) to 
do the same test to be absolutely sure that this is still happening (it 
won't :)

d.

randie ursal wrote:
 hi,
 
  could somebody explain to me what possibly went wrong about my 
 application.
 
  what i did was, i set the maxInactiveIinterval time for 30 secs. on my 
 servlet then i added
  to my HttpSession object  an object that implements 
 HttpSessionBindingListener so that i can
  keep track and see what happen when session expires. this scenario 
 works fine, my session
  was invalidated after session timeout and the sessionlistener was 
 notified.
 
  my problem is when i access my web application by using two browsers 
 and let the
  1st browser remain idle until session expires.  the 2nd browser session 
 also expires
  when 1st browser session expires
   i can say this because it put a trace line on valueUnbound of the 
 sessionlistener object
  and two session id were displayed this was the session of both browser.
 
  what went wrong with this?
 
  i'm using Tomcat 4.0
 
 thanks a lot
 randie
 
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Tomcat and SSL

2002-09-10 Thread David Mossakowski

John,

Do you mean an actual instance that you can stop and start separately 
and which has its ports completely different from other instances?

If so where do they get their requests from?  One Apache server with 
multiple virtual hosts?  Or do you have multiple Apache servers as well.

Thanks,
d.

Turner, John wrote:
 The server overhead is going to be minimal by adding a second tomcat
 instance.  You are already using all the resources you are going to use by
 having two applications run in one instance.  Splitting them out might
 increase resource usage 10-20%, but I would be really surprised if it was
 more than that.
 
 I have 13 instances of tomcat (3.1) running on a server with medium to
 medium-high traffic, and usage is very low, relatively speaking.
 
 John Turner
 [EMAIL PROTECTED]
 
 
-Original Message-
From: Mario Klaver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 12:48 PM
To: [EMAIL PROTECTED]
Subject: Tomcat and SSL


Hello all,

I've the following question: I have two application running under one 
instance of tomcat. One application must run on the normal 
http port (8080) 
and the other must run on a secure port (8443). How is this possible? 
Because I enabled two connectors in server.xml and now both 
applications 
are available on both ports.

One solution I can think of is to have two instances of 
tomcat running (one 
for the first application running on connector 8080 and the 
other with the 
other application and only enable ssl) but I rather donot do 
that because 
it will slow down my server.

Can somebody tell me if there is another solution?

Thanx in advance,

Regards,
Mario
**
**
Mario Klaver
Senior Consultant
Cap Gemini Ernst  Young
Telecom Media Networks
Mobile: +31 (0) 6 185 134 01
Office: +32 (0) 2708 1723
Email: [EMAIL PROTECTED]


--
**
**
This message contains information that may be privileged or 
confidential and
is the property of the Cap Gemini Ernst  Young Group. It is 
only intended
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain, 
copy disseminate,
distribute, or use this message or any part thereof. If you 
receive this
message in error, please notify the sender immediately and 
delete all copies
of this message.
**
**

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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread David Mossakowski

Try this:

private static final String
SQL_CALL_GETTERMIDS = exec P.dbo.TO_GetTermIDs 
@term=?,@symbol=?,@side=?,@where=?,@rowcount=?,@num_term_ids=?,@time_in_ms=?;

private static final int INIT_IDS_LIST_SIZE = 50;


1,2,3,4 and 5 are input parameters 6 and 7 are output.  This is using 
microsoft sql driver.

conn = connPoolMgr.getConnection();
  CallableStatement cs = 
(CallableStatement)connPoolMgr.getUserData(conn);

  cs.setString(1, request.termId);
  cs.setString(2, request.symbol);
  cs.setString(3, request.side);
  cs.setString(4, request.whereClause);
  cs.setString(5, request.maxTermIdsReturned);

 cs.registerOutParameter(6, Types.NUMERIC);
 cs.registerOutParameter(7, Types.NUMERIC);

  ResultSet rs = cs.executeQuery();

  ArrayList ids = new ArrayList(INIT_IDS_LIST_SIZE);

  while (rs.next())
  {
 String id = rs.getString(1);
 ids.add(id);
  }

HTH
d.


Turner, John wrote:
 The 11th is the return_status.  Actually, #1 is the return status.
 According to the CallableStatement docs, you have to account for every ?
 in your statement.  There is 1 return status, 5 input parameters, and 5
 output parameters: 1 + 5 + 5 = 11.
 
 cstmt = sConn.prepareCall({? = call
 sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)});
 
 John Turner
 
 -Original Message-
 From: Peter Lin [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 8:07 AM
 To: Tomcat Users List
 Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
 
 
 
 correct me if I'm wrong, but I count only 10
 parameters. in one line you have
 cstmt.registerOutParameter(11, Types.VARCHAR);
 
 where is the 11th parameter?
 
 peter lin
 
 
 
 --- Turner, John [EMAIL PROTECTED] wrote:
 
Thanks, but I'm not getting any Java-related error
messages.  The Java code
just blows right on through, as everything keys off
of the return status,
which is always false or negative.  This is
because the stored procedure
never executes, and according to the debug log
printed by the driver, it's
parameter related...that is, whatever I am doing
with set*() and
registerOutParameter() doesn't match up with what
the procedure is
expecting.

That's my question...can anyone point me to a
resource that shows how to
call real-world stored procedures correctly with
CallableStatement?  By
real-world I don't mean rudimentary take two
numbers and add them
together or get a row from a table procedures, I
can already do that.
I'm looking for a more advanced tutorial, something
that shows how to have
inputs, outputs, in/outputs, and a return status,
all at once.  It must be
possible, I just can't figure it out, and can't find
any resources that
explain how to do it.  We have VB DLLs calling these
procedures in
production, so I know the procedures work, at least
in conjunction with VB.

John Turner

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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Re: Root Context Problem

2002-08-16 Thread David Mossakowski

You should load the library once in init and put it into servlet context 
so that for each subsequent request you will use the loaded library.

d.

Taral Shah wrote:
 but suppose my two different servlets needs to load the library then what
 should i do.
 Also the same question stays there, Why am I able to execute the code if i
 write the context path in url(I mean i am able to load the dll second time)
 Also there isnt any method to unload the dll(as far as I know), then what
 should be the possible solution?
 
 Thanks
 Taral Shah
 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]; Taral Shah
 [EMAIL PROTECTED]
 Sent: Friday, August 16, 2002 1:14 PM
 Subject: Re: Root Context Problem
 
 
 
 
 On Fri, 16 Aug 2002, Taral Shah wrote:
 
 
Date: Fri, 16 Aug 2002 13:08:23 +0530
From: Taral Shah [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
 Taral Shah [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Root Context Problem

You may be right but then as I wrote in the mail if i send request as
http://ip/network/cgi/tjs/myexe.exe?abc  then it works, loads dll and
displays the data.

and if i send request as http://ip/cgi/tjs/myexe.exe?abc then it gives
error.
So i think its something with configuration problem for tomcat.
I have made network as my default web context.

 
 
 The problem with that theory is that Tomcat *never* loads *any* DLL files
 on its own.  The only way that can happen is if your application does it,
 by calling Runtime.loadLibrary() or something like that.  Its up to your
 app to ensure that this happens once and only once for the lifetime of a
 JVM.
 
 
Thanks
Taral Shah
 
 
 Craig
 
 
 
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Taral Shah
[EMAIL PROTECTED]
Cc: Josh [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 12:58 PM
Subject: Re: Root Context Problem




On Fri, 16 Aug 2002, Taral Shah wrote:


Date: Fri, 16 Aug 2002 09:36:23 +0530
From: Taral Shah [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
 Taral Shah [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED],
 Josh [EMAIL PROTECTED]
Subject: Root Context Problem

Hi,
I have posted this sort of problem before but didnt get any answer. Now

 I
 
have found the root casue for my problem, I request you all to please

guide

me.

I am having a particular client requirement where he send the url as

 shown
 
below:
http://ip/cgi/tjs/myexe.exe?abc

Now I am able to redirect /cgi/tjs/myexe.exe request to my servlet with
servlet mapping but Here It gives me the dll error.
My servlet is loading one dll, and when this code gets executed it gives

me

error ...dll already loaded.

My context is something likenetwork and If i dont make it default

context

and send request as
http://ip/network/cgi/tjs/myexe.exe?abc then I dont get this error.
but if i send request as shown at top then it fives me error. I tried to

put

my servlet in the ROOT context but still getting same error.

Does any one have any idea regarding this?


This isn't a Tomcat issue -- it is a restriction of most Java JVMs that
you can only load a single DLL once in the lifetime of a JVM.  It is up to
your application to ensure that this restriction is met (or to ignore the
exception if your app tries to load a DLL more than once anyway).


Thanks
Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]


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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Hooking up Tomcat to Apache

2002-08-15 Thread David Mossakowski

See below

Peter Alvin wrote:
 Tomcat is running fine in standalone mode but I'm having difficulty
 hooking it up to Apache.
 
 I've configured Tomcat's server.xml file and I have an include file
 in Apache's httpd.conf file that points to a copy of the auto
 -generated tomcat-apache.conf file (where I've corrected the path to
 the mod_jserv.so module).
 
 When surf to www.mydomain.com/appName I get a Cannot find server
 page (interestingly, not a 404).
 
 If you don't mind, I have a few questions.
 
 1) Fact1: When tomcat runs in standalone mode, its default port is
 8080.  Fact2: my auto-generated tomcat-apache.conf file has the line
 ApJServDefaultPort 8007.  Question: Does that mean I have to
 manually start Tomcat on 8007 (instead of 8080) in order to handle
 the requests from Apache?
 
No.  8007 is not the same as 8080 (obviously).  8080 is an HTTP 
connector that you can get to through a browser.  8007 port is for the 
AJP connector to send requests over.  They must be different.  You 
should see the 8007 port in your workers.properties file for the AJP 
connector.

 2) Does the adaptor, mod_jserv, open up a TCP connection to Tomcat in
 order to pass requests?  I guess so.  This sounds inefficient.
 
That's the 8007 port.

 3) There is another line in the tomcat-apache.conf file that states
 ApJServManual on, which, according to the manual says this:
 Instruct jserv not to start the Tomcat process. Automatically
 starting Tomcat is not implemented yet.   If that is true, how do I
 configure Tomcat to start automatically along with Apache?
 /etc/inittab for starting during system boot?
 
 My overall goal is to have only *.htm files
 (mydomain.com/fileXYZ.htm) handled by Tomcat.

I think this is a typo.  Tomcat should be handling the .jsp files and 
the HTML files should be left to apache to handle.

 Peter Alvin
 
David Mossakowski

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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Re: Load Balancing Concepts

2002-08-14 Thread David Mossakowski

Yes this works because each Apache instance knows of and can forward to 
all Tomcat instances by the way of workers.properties file.

d.


Schnitzer, Jeff wrote:
 I have a conceptual question about load balancing Tomcat4.0.4 instances.
 I'm building a *very* high traffic site.  Traditionally this company handles
 high loads with layering like this:
 
 Non-sticky load balancer
 Several NES instances
 Many WebLogic instances
 
 This works because WebLogic session ids encode the IP of the WL instance,
 enabling any NES to always forward to the correct WL.
 
 Do mod_jk and Tomcat 4.0.4 work the same way?
 
 Does this work:
 
 Non-sticky load balancer
 Several Apache/mod_jk instances
 Many Tomcat 4.0.4 instances
 
 ?
 
 As a secondary question, is mod_jk the best way to load-balance Tomcat 4.0.4
 instances?  The Tomcat instances will most likely be running in Jboss 3.0.1.
 
 Thanks,
 Jeff Schnitzer
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Load balancing with mod_jk with more than one data center

2002-08-14 Thread David Mossakowski

Has anyone employed load balancing across multiple data centers in which 
web farms load balance only across their own web servers?  I have two 
data centers to work with and can't cross them for a request therefore I 
thought I would do two level load balancing with session stickiness.

One would be on the top level to get into a data center (BigIP) and then 
another level is to decide which web server to go to within the data 
center(Apache with mod_jk).

Has anyone done this?  How is it working out?

Thanks,
David Mossakowski

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Persistence in Tomact

2002-08-12 Thread David Mossakowski

Trying 'username' in db url instead of 'user'

d.

Ujwal Oswal wrote:
 Hi,
 
 Has anyone out there implemented Persistence Session using JDBC Based Store
  in Tomcat. If yes can you please let us know of the procedure. I tried
 modifing the Server.xml file but
 I am getting SQLException.
 
 Here are the exception 
 
 2002-08-08 15:50:42 JDBCStore[/examples]: The database connection is null or
 was found to be closed. Trying to re-open it.
 2002-08-08 15:50:42 JDBCStore[/examples]: A SQL exception occurred
 java.sql.SQLException: invalid arguments in call
 
 
 Heres part of my Server.xml (ONLY PERSISTENCE ELEMENT)
 
   Manager className=org.apache.catalina.session.PersistentManager
   debug=0
   saveOnRestart=true
   maxActiveSessions=-1
   minIdleSwap=-1
   maxIdleSwap=0
   maxIdleBackup=0
 Store className=org.apache.catalina.session.JDBCStore
debug=2
  
 connectionURL=jdbc:oracle:thin:@hocleunx02:1521:reqpro?user=x25agent_dev;pa
 ssword=x25agent_dev
driverName=oracle.jdbc.driver.OracleDriver
sessionDataCol=session_data
sessionIdCol=session_id
sessionLastAccessedCol=last_access
sessionMaxInactiveCol=max_inactive
sessionTable=tomcat_sessions
sessionValidCol=valid_session/
   /Manager
 
 Thanks
 Ujwal
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Apache/Tomcat Connectors List

2002-08-02 Thread David Mossakowski
 some of them
 come with the Tomcat distrib and some of them don't.  That is, there
 are two kinds of connectors, those for Tomcat standalone and those for
 integrating Tomcat with Apache (or some other web server).  The ones
 for Tomcat standalone and the Tomcat side of those for integrating
 Tomcat with Apache come with Tomcat, while the Apache side of those
 for integrating Tomcat with Apache don't.  They have to be gotten
 separately, perhaps via the connectors distribution (which I think
 includes all sides of all connectors).
 
 
 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

Look on the left-hand side under connectors.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:29 PM
To: '[EMAIL PROTECTED]'
Subject: Apache/Tomcat Connectors List

  Where can I find the list and the description of each connector for
Apache on the one hand
  and for Tomcat on the other hand ?

  Thanks a lot.
 
 
 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]
 
 --
 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]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Re: Multiple instances of Tomcat

2002-08-02 Thread David Mossakowski

You need to go through the server.xml file and for whatever connectors 
that use ports that you have uncommente the following fashion:

item 
original port   tomcat 1tomcat 2
--
server 
8005 
11005   12005
ajp 
8009 
11009   12009
http 
8080 
11080   12080

the ubeans site recommends commenting http standalone out but I wanted 
to keep it for testing so I changed that too

d.

Frank Diakovasilis wrote:
 I have come across this topic many times in this mailing list, but never
 paid attention since I never needed to but I now need to run multiple
 instances of Tomcat on a single server (IIS).  The only docs I came across
 say to set a CATALINA_BASE variable, and that is all they say.  What steps
 need to be taken to use multiple instances of Tomcat? What directories need
 to be duplicated, and what files need to be changed? also I am using the
 isapi redirect, what has to be done there? 
  
 I'd appreciate any help, Thanks.
  
 -Frank
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Re: How to abort the webapp load/deployment

2002-07-29 Thread David Mossakowski

You can try having a single servlet that has 'handlers' for it and so 
all requests go through it first and it dipatches them further to 
handlers.  I have this setup and map the servlet to something like 
/handler and then for an action such as handler/AuthenticationHandler 
the request goes to 'handler' servlet and it figures out what 
AuthenticationHandler is and if it exists it forwards the request to it.

It works very nice.

d.

Extance, Paul wrote:
 Hello,
 
 Is it possible to write a 'validation' servlet, that does some basic checks,
 which if fail, cause the whole web application to be unavailable?
 
 This servlet would be flagged as load-on-startup such that it was the
 first one to execute.
 
 I'm trying to achive something similar to JBoss 2.x where if the verifier
 fails for an EAR, it does not deploy it at all. I want the similar concept
 but for my Web Application, such that critical initialization errors make
 the the whole application unavailable.
 
 I can't find anythingin in the Java Servlet Spec to indicate that this is
 possible, or anything in the tomcat documenation.
 
 Thoughts?
 
 Thanks 
 
 PaulE
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Re: client authorization.

2002-07-17 Thread David Mossakowski

then it really has nothing to do with Tomcat.

Your ASPs need to implement SSL (sorry i'm not versed in ASP :)

In Java you would need to import the client certificate (if not 
certified by a certified CA) into the JVM and tell it to trust it 
explicitly.

d.

Anthony Geoghegan wrote:
 What if the client isn't a browser but a Microsoft ASP based HTTPXML call?
 
 Best Regards,
 Anthony Geoghegan.
 J2EE Developer
 CPS Ireland Ltd.
 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, July 17, 2002 5:09 PM
 Subject: RE: client authorization.
 
 
 

On Wed, 17 Jul 2002, Tathagat (London) wrote:


Date: Wed, 17 Jul 2002 16:03:30 +0100
From: Tathagat (London) [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: client authorization.

They only describe how to get a certificate on server side. I mean

 server
 
can show a certificate to client, but it does not say how do the client
sends a certificate to the server.


You need to import a *client* certificate into your browser (following the
procedures for your browser -- it has nothing to do with Tomcat).

Then, when the server is set up to challenge for client certificates
(which it will if you use CLIENT-CERT as the authentication mechanism, or
you've set the clientAuth attribute on the HTTPS connector), the browser
will pop up a dialog asking you which of your client certificates you want
to send in response.


I think we need to find this thing out.,


Craig



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 16:59
To: Tomcat Users List
Subject: Re: client authorization.




On Wed, 17 Jul 2002, Anthony Geoghegan wrote:


Date: Wed, 17 Jul 2002 11:18:33 +0100
From: Anthony Geoghegan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: client authorization.

Is it possible to use client certificate authorization without a

 password
 
and its associated dialog?


Tomcat 4.x can do this.  See the docs for the version of Tomcat you are
using:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html


Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.

Craig




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


--
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
--


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

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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




load balancing with jk

2002-07-17 Thread David Mossakowski

Has anyone tried hooking up two instances of Tomcat to two instances of 
Apache for a crossover effect?

Both Tomcat servers would effectively be serving both Apache servers. 
Or both Apache servers would have the same workers.properties configuration.

I hope I'm explaining this clearly.

Apache - Tomcat
   |   ^
   v   |
Tomcat -- Apache

So whichever Apache gets the request it will still go to the original 
Tomcat.

Thanks,
d.

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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




Re: mod_jk problem

2002-07-10 Thread David Mossakowski

About that 'load-balanced Tomcat'...

Are you load balancing them through an Apache connector (the mod_jk this 
thread is about)?

Is it possible to use the catalina HTTPConnector?  I suppose it would 
require telling HTTPConnector that there are multiple instances of 
Tomcat right?  WOuld that be the Tomcat workers stuff?

I'm conisdering using standalone Tomcat in load balanced, https 
environment and would really appreciate any suggestions on this.

How is Tomcat's SSL performance?

Thanks,
d.

Eddie Bush wrote:
 Oh - I was going to add that I'm trying to set up http - https 
 redirection, and it's anything but obvious to me how I should go about 
 it.  I think I could probably set up a load-balanced Tomcat pretty 
 easily, but I _cannot_ seem to figure out how I should do the http/https 
 thing.  If you have seen any resources on doing such a thing, I'd really 
 appreciate your sending them my way.
 
 Thanks!
 
 Eddie
 
 STEVE R BURRUS wrote:
 
 Hello, I am Steve Burrus and I am 1 of your fellow Tomcat Server 
 users, and I was
 wondering if you would kindly email me the link to access the 
 mod_jk.dll file
 which allows one to connect the Apache 2.* HTTP Server with the 
 Tomcat 4.*
 Server. And, in your response to me, you might also throw in some 
 info on how
 you use the directives in Apache's configuration file!!

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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: mod_jk problem

2002-07-10 Thread David Mossakowski

Yeah I haven't found any way of doing load balancing without Apache 
either.  My question was hopefull but you only confirmed my earlier 
findings :(.

We're probably going with hardware SSL so I wouldn't need Apache to 
handle this and that's why I want standalone Tomcats (I was curious 
about their performance with SSL though).

In any case you're right about not a lot of people worrying about this. 
  It seems like load balancing is not very commonly used.

Good luck,
d.

Eddie Bush wrote:
 Yep - that's why I mentioned that as the favorable solution hehe - I 
 guess I should have clearified.  Whereas you've probably (had the joy of 
 having) implemented this, I just read about it.  Hey, by the way, Craig 
 - have you followed my struggle at all?  How would _you_ suggest I 
 implement http/https and redirects back and forth under Tomcat + Apache 
 + mod_jk?  I'd love a tip or two =)  I trust your word a great deal.
 
 Thanks,
 
 Eddie
 
 Craig R. McClanahan wrote:
 

 On Wed, 10 Jul 2002, Eddie Bush wrote:

 You peaked my interest.  I did some digging.  I see no mention of doing
 load-balancing that does not include Apache.  There are other ways:

 DNS Load Balancing (affinity not guaranteed - dead server = bad 
 requests)
 Clustering (better - but SSL geeks affinity)

 As it happens, you can wire a hardware SSL-decoder in front of your
 cluster-manager and overcome the shortcomings of that approach.  I think
 the best solution is Apache + Tomcat though.  It's undoubtedly
 cheaper/easier.  So - you ready to install Apache yet?  Breeze over to
 the Oreilly site and look for Apache Wrangler and something called
 LAMP.  You'll find an article that will point you to a script that will
 download/install Apache + SSL (it even pre-configures it for you -
 whatever that means).  If you have the option of using RPMs, I'd go with
 that option though.  RPM == good (IMHO).

 One thing you will need to ensure is that your load balancing solution
 routes all requests for the same session back to the same Tomcat instance
 (like the balancing through Apache does).

 HTH,

 Eddie


 Craig

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


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: JSP variable problem

2002-07-09 Thread David Mossakowski

If you are making requests of servlets, create cResource there and put 
it into REQUEST and not session and then forward to the JSP page to 
display.

d.

Raphael Di Cicco wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 I'm faced with a problem that is maybe really easy to solve...
 
 I have n JSP pages, and they all have a form. Each page contains a JAVA object 
 associated to it (called cRessource).
 
 Because I want to keep these objects within the page, this is what I have done 
 :
 created a cRessource for each page
 saved it in the session in a String as this : myRessource + index (index is 
 unique to each page)
 When I have submitted the form, I do a session.getAttribute(myRessource + 
 index)
 When I come for the first time to a page I create my ressource and put it in 
 the session.
 
 
 The problem is that this is very heavy in memory, I want to destroy every 
 myRessource once I quit the page. I tried to use jspDetroy method but :
 I have no idea when exactly this is called
 I cannot use my index variable in it
 
 I hope I have been clear and someone has an idea on this
 
 Thanks
 Raphaël
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE9KqOoh2ITK4xBkFERAq38AJ9DYAEYGBOvQGwNO6RBinptbhHH5wCfcSkn
 iSDAXqcoa3ZVHQSFybECJ0E=
 =cHmv
 -END PGP SIGNATURE-
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




OT JBoss site offline?

2002-07-02 Thread David Mossakowski

Does anyone know what's going on?

d.

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: Question about context paths and IMG URL's

2002-07-01 Thread David Mossakowski

I always do this in my JSP pages:

%=request.getContextPath()%/graphics/clear.gif

This way whatever you have your servlet mapped to it will work

d.

Chris Bailey wrote:
 But doesn't that just say the images directory _relative_ to the current
 page?  And, given that that page is generated by a servlet, I don't think
 that will work right will it?  Or does that actually say relative to the
 context?  I don't see how though, since this is just HTML and thus it means
 it's relative to the page (unless the servlet container/Tomcat does some
 magic to re-interpret the request?).
 
 -Original Message-
 From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 28, 2002 12:09 PM
 To: 'Tomcat Users List'
 Subject: RE: Question about context paths and IMG URL's
 
 
 It should be
   img src=images/foo.gif
 J
 -Original Message-
 From: Chris Bailey [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 28, 2002 12:22 PM
 To: Tomcat Mailing List
 Subject: Question about context paths and IMG URL's
 
 
 I seem to have confused myself about the proper way to specify an image
 location in HTML that my servlet spits out.  If I have an images directory
 at the root of my webapp, is it safe to always do this:
 
img src=/images/foo.gif
 
 Or, how does the context path attribute play into this?  We always set our
 path to  (our app is the only one running in the container).  But, I'm
 wondering about this if we wish to make it a bit more generic so that we
 could just give a customer a WAR file and let them set it up in their
 container as they wish.
 
 
 Chris Bailey   mailto:[EMAIL PROTECTED]
 Code Intensity   http://www.codeintensity.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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




Re: load balance session

2002-06-27 Thread David Mossakowski

 From what I read you don't share the session.  The way it works (if 
it's set up correctly ) is that your jvmRoute in Engine section of 
Tomcat is appended to the sessionid and that's how the connector knows 
to which Tomcat the subsequent requests should be sent.

If that tomcat dies the sessions on that server are lost but your 
application is accessible because the connector routes the requests to 
the tomcat that survived.

d.


Stone Shi wrote:
 Hello all,
 
   I have setup a apache server connected two tomcat servers with AJP13 load
 balance.
 How can I share the session between 2 tomcat servers?
   
  Thank you!
 
 Stone
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


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